返回提交历史
Modified
grpc_api/bilibili/app/archive/v1/archive.proto
+11
-7
Modified
grpc_api/bilibili/app/playeronline/v1/playeronline.proto
+47
-8
Modified
grpc_api/bilibili/app/playurl/v1/playurl.proto
+37
-1
Modified
grpc_api/bilibili/app/topic/v1/topic.proto
+187
-3
Modified
grpc_api/bilibili/app/wall/v1/wall.proto
+20
-11
Modified
grpc_api/bilibili/gaia/gw/gw_api.proto
+1
-1
Modified
grpc_api/bilibili/main/community/reply/v1/reply.proto
+53
-0
XFEstudio/bilibili-API-collect
update 【gRPC API】 proto files
ab5518c
代码差异
7 个文件
+356
-31
@@ -3,7 +3,7 @@ syntax = "proto3";
3
3
package bilibili.app.archive.v1;
4
4
5
5
// 稿件基本信息
6
message Arc{
6
message Arc {
7
7
// 稿件avid
8
8
int64 aid = 1;
9
9
// 稿件分P数
@@ -69,7 +69,7 @@ message Arc{
69
69
}
70
70
71
71
// UP主信息
72
message Author{
72
message Author {
73
73
// UP主mid
74
74
int64 mid = 1;
75
75
// UP主昵称
@@ -79,7 +79,7 @@ message Author{
79
79
}
80
80
81
81
// 分辨率
82
message Dimension{
82
message Dimension {
83
83
// 宽度
84
84
int64 width = 1;
85
85
// 高度
@@ -90,7 +90,7 @@ message Dimension{
90
90
}
91
91
92
92
// 分P信息
93
message Page{
93
message Page {
94
94
// 视频cid
95
95
int64 cid = 1;
96
96
// 分P序号
@@ -113,7 +113,7 @@ message Page{
113
113
}
114
114
115
115
// 稿件控制标志
116
message Rights{
116
message Rights {
117
117
// 老版是否付费
118
118
int32 bp = 1;
119
119
// 允许充电
@@ -138,10 +138,14 @@ message Rights{
138
138
int32 ugc_pay_preview = 11;
139
139
// 是否禁止后台播放
140
140
int32 no_background = 12;
141
//
142
int32 arc_pay = 13;
143
//
144
int32 pay_free_watch = 14;
141
145
}
142
146
143
147
// 合作成员信息
144
message StaffInfo{
148
message StaffInfo {
145
149
// 成员mid
146
150
int64 mid = 1;
147
151
// 成员角色
@@ -152,7 +156,7 @@ message StaffInfo{
152
156
}
153
157
154
158
// 状态数
155
message Stat{
159
message Stat {
156
160
// 稿件avid
157
161
int64 aid = 1;
158
162
// 播放数
@@ -6,16 +6,15 @@ package bilibili.app.playeronline.v1;
6
6
service PlayerOnline {
7
7
// 获取在线人数
8
8
rpc PlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply);
9
//
10
rpc PremiereInfo(PremiereInfoReq) returns (PremiereInfoReply);
11
//
12
rpc ReportWatch(ReportWatchReq) returns (NoReply);
9
13
}
10
14
11
// 获取在线人数-请求
12
message PlayerOnlineReq {
13
// 稿件 avid
14
int64 aid = 1;
15
// 视频 cid
16
int64 cid = 2;
17
// 是否在播放中
18
bool play_open = 3;
15
// 空回复
16
message NoReply {
17
19
18
}
20
19
21
20
// 获取在线人数-回复
@@ -30,4 +29,44 @@ message PlayerOnlineReply {
30
29
bool sdm_show = 4;
31
30
//
32
31
string sdm_text = 5;
32
//
33
int64 total_number = 6;
34
//
35
string total_number_text = 7;
36
}
37
38
// 获取在线人数-请求
39
message PlayerOnlineReq {
40
// 稿件 avid
41
int64 aid = 1;
42
// 视频 cid
43
int64 cid = 2;
44
// 是否在播放中
45
bool play_open = 3;
46
}
47
48
//
49
message PremiereInfoReply {
50
//
51
string premiere_over_text = 1;
52
//
53
int64 participant = 2;
54
//
55
int64 interaction = 3;
56
}
57
58
//
59
message PremiereInfoReq {
60
//
61
int64 aid = 1;
62
}
63
64
//
65
message ReportWatchReq {
66
//
67
int64 aid = 1;
68
//
69
string biz = 2;
70
//
71
string buvid = 3;
33
72
}
@@ -48,6 +48,18 @@ message Chronos {
48
48
string file = 2;
49
49
}
50
50
51
//
52
message ButtonStyle {
53
//
54
string text = 1;
55
//
56
string text_color = 2;
57
//
58
string bg_color = 3;
59
//
60
string jump_link = 4;
61
}
62
51
63
//
52
64
message CloudConf {
53
65
// 是否展示功能
@@ -65,6 +77,7 @@ enum CodeType {
65
77
NOCODE = 0; // 默认
66
78
CODE264 = 1; // H.264
67
79
CODE265 = 2; // H.265
80
CODEAV1 = 3; // av1
68
81
}
69
82
70
83
// 设置类型
@@ -129,6 +142,8 @@ message DashItem {
129
142
uint64 size = 7;
130
143
// 帧率
131
144
string frame_rate = 8;
145
//
146
string widevine_pssh = 9;
132
147
}
133
148
134
149
// dash视频流
@@ -155,6 +170,8 @@ message DashVideo {
155
170
int32 width = 10;
156
171
// 高度
157
172
int32 height = 11;
173
//
174
string widevine_pssh = 12;
158
175
}
159
176
160
177
// 杜比伴音信息
@@ -333,6 +350,24 @@ enum PlayErr {
333
350
WithMultiDeviceLoginErr = 1; // 管控类型的错误码
334
351
}
335
352
353
//
354
message PlayLimit {
355
//
356
PlayLimitCode code = 1;
357
//
358
string message = 2;
359
//
360
string sub_message = 3;
361
//
362
ButtonStyle button = 4;
363
}
364
365
//
366
enum PlayLimitCode {
367
PLCUnkown = 0; //
368
PLCUgcNotPayed = 1; //
369
}
370
336
371
// 视频地址-回复
337
372
message PlayURLReply {
338
373
// 清晰的
@@ -405,6 +440,8 @@ message PlayViewReply {
405
440
Event event = 6;
406
441
//
407
442
AB ab = 7;
443
//
444
PlayLimit play_limit = 8;
408
445
}
409
446
410
447
// 播放页信息-请求
@@ -575,7 +612,6 @@ message UpgradeButton {
575
612
string link = 2;
576
613
}
577
614
578
579
615
// 互动视频升级提示
580
616
message UpgradeLimit {
581
617
// 错误码
@@ -12,6 +12,16 @@ service Topic {
12
12
rpc TopicDetailsAll(TopicDetailsAllReq) returns (TopicDetailsAllReply);
13
13
//
14
14
rpc TopicDetailsFold(TopicDetailsFoldReq) returns (TopicDetailsFoldReply);
15
//
16
rpc TopicSetDetails(TopicSetDetailsReq) returns (TopicSetDetailsReply);
17
}
18
19
//
20
message ButtonMeta {
21
//
22
string text = 1;
23
//
24
string icon = 2;
15
25
}
16
26
17
27
//
@@ -32,6 +42,14 @@ message DetailsTopInfo {
32
42
string head_img_backcolor = 7;
33
43
//
34
44
int32 word_color = 8;
45
//
46
int32 mission_page_show_type = 9;
47
//
48
string mission_url = 10;
49
//
50
string mission_text = 11;
51
//
52
TopicSet topic_set = 12;
35
53
}
36
54
37
55
//
@@ -154,6 +172,18 @@ message OperationContent {
154
172
OperationCard operation_card = 1;
155
173
}
156
174
175
//
176
message PubLayer {
177
//
178
int32 show_type = 1;
179
//
180
string jump_link = 2;
181
//
182
ButtonMeta button_meta = 3;
183
//
184
bool close_pub_layer_entry = 4;
185
}
186
157
187
//
158
188
message RelationData {
159
189
//
@@ -194,6 +224,30 @@ message ThreePointItem {
194
224
string jump_url = 2;
195
225
}
196
226
227
//
228
message TimeLineEvents {
229
//
230
int64 event_id = 1;
231
//
232
string title = 2;
233
//
234
string time_desc = 3;
235
//
236
string jump_link = 4;
237
}
238
239
//
240
message TimeLineResource {
241
//
242
int64 time_line_id = 1;
243
//
244
string time_line_title = 2;
245
//
246
repeated TimeLineEvents time_line_events = 3;
247
//
248
bool has_more = 4;
249
}
250
197
251
//
198
252
message TopicActivities {
199
253
//
@@ -232,6 +286,8 @@ message TopicCardItem {
232
286
bilibili.app.dynamic.v2.DynamicItem dynamic_item = 2;
233
287
//
234
288
FoldCardItem ford_card_item = 3;
289
//
290
VideoSmallCardItem video_small_card_item = 4;
235
291
}
236
292
237
293
//
@@ -248,9 +304,10 @@ message TopicCardList {
248
304
249
305
//
250
306
enum TopicCardType {
251
ILLEGAL_TYPE = 0; //
252
DYNAMIC = 1; //
253
FOLD = 2; //
307
ILLEGAL_TYPE = 0; //
308
DYNAMIC = 1; //
309
FOLD = 2; //
310
VIDEO_SMALL_CARD = 3; //
254
311
}
255
312
256
313
//
@@ -263,6 +320,12 @@ message TopicDetailsAllReply {
263
320
TopicCardList topic_card_list = 3;
264
321
//
265
322
FunctionalCard functional_card = 4;
323
//
324
PubLayer pub_layer = 5;
325
//
326
TimeLineResource time_line_resource = 6;
327
//
328
TopicServerConfig topic_server_config = 7;
266
329
}
267
330
268
331
//
@@ -283,6 +346,14 @@ message TopicDetailsAllReq {
283
346
int32 need_refresh = 7;
284
347
//
285
348
string source = 8;
349
//
350
int32 topic_details_ext_mode = 9;
351
}
352
353
//
354
enum TopicDetailsExtMode {
355
MODE_ILLEGAL_TYPE = 0; //
356
STORY = 1; //
286
357
}
287
358
288
359
//
@@ -347,6 +418,87 @@ message TopicInfo {
347
418
string share_url = 17;
348
419
//
349
420
bool is_like = 18;
421
//
422
int32 type = 19;
423
//
424
string stats_desc = 20;
425
//
426
string fixed_topic_icon = 21;
427
}
428
429
//
430
message TopicServerConfig {
431
//
432
int64 pub_events_increase_threshold = 1;
433
//
434
int64 pub_events_hidden_timeout_threshold = 2;
435
//
436
int64 vert_online_refresh_time = 3;
437
}
438
439
//
440
message TopicSet {
441
//
442
int64 set_id = 1;
443
//
444
string set_name = 2;
445
//
446
string jump_url = 3;
447
//
448
string desc = 4;
449
}
450
451
//
452
message TopicSetDetailsReply {
453
//
454
TopicSetHeadInfo topic_set_head_info = 1;
455
//
456
repeated TopicInfo topic_info = 2;
457
//
458
bool has_more = 3;
459
//
460
string offset = 4;
461
//
462
TopicSetSortCfg sort_cfg = 5;
463
}
464
465
//
466
message TopicSetDetailsReq {
467
//
468
int64 set_id = 1;
469
//
470
int64 sort_by = 2;
471
//
472
string offset = 3;
473
//
474
int32 page_size = 4;
475
}
476
477
message TopicSetHeadInfo {
478
//
479
TopicSet topic_set = 1;
480
//
481
string topic_cnt_text = 2;
482
//
483
string head_img_url = 3;
484
//
485
string mission_url = 4;
486
//
487
string mission_text = 5;
488
//
489
string icon_url = 6;
490
//
491
bool is_fav = 7;
492
//
493
bool is_first_time = 8;
494
}
495
496
//
497
message TopicSetSortCfg {
498
//
499
int64 default_sort_by = 1;
500
//
501
repeated SortContent all_sort_by = 2;
350
502
}
351
503
352
504
//
@@ -394,3 +546,35 @@ message User {
394
546
//
395
547
string name_desc = 4;
396
548
}
549
550
//
551
message VideoCardBase {
552
//
553
string cover = 1;
554
//
555
string title = 2;
556
//
557
string up_name = 3;
558
//
559
int64 play = 4;
560
//
561
string jump_link = 5;
562
//
563
int64 aid = 6;
564
}
565
566
//
567
message VideoSmallCardItem {
568
//
569
VideoCardBase video_card_base = 1;
570
//
571
string cover_left_badge_text = 2;
572
//
573
int64 card_stat_icon1 = 3;
574
//
575
string card_stat_text1 = 4;
576
//
577
int64 card_stat_icon2 = 5;
578
//
579
string card_stat_text2 = 6;
580
}
@@ -8,16 +8,6 @@ service Wall {
8
8
rpc RuleInfo (RuleRequest) returns (RulesReply);
9
9
}
10
10
11
// 获取免流规则信息-请求
12
message RuleRequest {}
13
14
// 获取免流规则信息-响应
15
message RulesReply {
16
// 各ISP的免流规则信息组
17
// ISP如: cu ct cm
18
map<string,RulesInfo> rulesInfo = 1;
19
}
20
21
11
// 免流规则信息
22
12
message RuleInfo {
23
13
// 是否支持免流
@@ -29,10 +19,29 @@ message RuleInfo {
29
19
string a = 3;
30
20
// 匹配目标正则
31
21
string p = 4;
22
//
23
repeated string a_backup = 5;
24
}
25
26
// 获取免流规则信息-请求
27
message RuleRequest {
28
32
29
}
33
30
34
31
// 免流规则信息组
35
32
message RulesInfo {
36
33
// 免流规则信息
37
34
repeated RuleInfo rulesInfo = 1;
38
}
35
}
36
37
// 获取免流规则信息-响应
38
message RulesReply {
39
// 各ISP的免流规则信息组
40
// ISP如: cu ct cm
41
map<string,RulesInfo> rulesInfo = 1;
42
//
43
string hash_value = 2;
44
}
45
46
47
@@ -24,7 +24,7 @@ message DeviceAppList {
24
24
}
25
25
26
26
// 加密方式
27
enum EncryptType{
27
enum EncryptType {
28
28
INVALID_ENCRYPT_TYPE = 0; // 非法值
29
29
CLIENT_AES = 1; // 同客户端人工约定AES加密私钥,存储在客户端
30
30
SERVER_RSA_AES = 2; // 客户端随机生成一个用于AES加密的私钥,并用服务端下发的RSA公钥来加密
@@ -332,6 +332,26 @@ message MainListReq {
332
332
333
333
// 用户信息
334
334
message Member {
335
//
336
message Region {
337
//
338
int32 type = 1;
339
//
340
string icon = 2;
341
//
342
int32 show_status = 3;
343
}
344
//
345
message NftInteraction {
346
//
347
string itype = 1;
348
//
349
string metadata_url = 2;
350
//
351
string nft_id = 3;
352
//
353
Region region = 4;
354
}
335
355
/**********基础信息**********/
336
356
// 用户mid
337
357
int64 mid = 1;
@@ -402,6 +422,12 @@ message Member {
402
422
int32 face_nft_new = 31;
403
423
//
404
424
int32 is_senior_member = 32;
425
//
426
NftInteraction nft_interaction = 33;
427
//
428
string fans_guard_icon = 34;
429
//
430
string fans_honor_icon = 35;
405
431
}
406
432
407
433
// 排序方式
@@ -436,6 +462,8 @@ message Operation {
436
462
string link = 5;
437
463
//
438
464
string report_extra = 6;
465
//
466
string icon = 7;
439
467
}
440
468
441
469
//
@@ -587,6 +615,8 @@ message ReplyControl {
587
615
string time_desc = 23;
588
616
//
589
617
string biz_scene = 24;
618
//
619
string location = 25;
590
620
}
591
621
592
622
//
@@ -871,6 +901,19 @@ message UpSelection {
871
901
872
902
// 超链项
873
903
message Url {
904
//
905
message Extra {
906
//
907
int64 goods_item_id = 1;
908
//
909
string goods_prefetched_cache = 2;
910
//
911
int32 goods_show_type = 3;
912
//
913
bool is_word_search = 4;
914
//
915
int64 goods_cm_control = 5;
916
}
874
917
// 标题
875
918
string title = 1;
876
919
//
@@ -889,6 +932,16 @@ message Url {
889
932
bool is_half_screen = 8;
890
933
//
891
934
string exposure_report = 9;
935
//
936
Extra extra = 10;
937
//
938
bool underline = 11;
939
//
940
bool match_once = 12;
941
//
942
string pc_url = 13;
943
//
944
int32 icon_position = 14;
892
945
}
893
946
894
947
//