XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/bilibili-API-collect

update grpc proto from 7.49.0 (#833)

17b7cb8
陈寒彤 <70561268+cxw620@users.noreply.github.com>
提交于

代码差异

17 个文件 +1502 -101
Modified grpc_api/bilibili/api/probe/v1/probe.proto +1 -1
@@ -64,7 +64,7 @@ message CreateTopic {
64 64 //
65 65 message CreatTask {
66 66 //
67 string task = 1;
67 string name = 1;
68 68 }
69 69
70 70 //
Modified grpc_api/bilibili/api/ticket/v1/ticket.proto +40 -0
@@ -5,6 +5,46 @@ package bilibili.api.ticket.v1;
5 5 service Ticket {
6 6 // 获取鉴权用 Ticket
7 7 rpc GetTicket (GetTicketRequest) returns (GetTicketResponse);
8 // 获取 Webview 页面使用的 Ticket
9 rpc GenWebTicket (GenWebTicketRequest) returns (GenWebTicketResponse);
10 }
11
12 //
13 message GenWebTicketRequest {
14 //
15 map<string, string> context = 1;
16 //
17 string key_id = 2;
18 //
19 string hexsign = 3;
20 //
21 string token = 4;
22 }
23
24 //
25 message GenWebTicketResponse {
26 //
27 message Context {
28 //
29 string v_voucher = 1;
30 }
31 //
32 message Nav {
33 //
34 string img = 1;
35 //
36 string sub = 2;
37 }
38 //
39 string ticket = 1;
40 //
41 int64 created_at = 2;
42 //
43 int64 ttl = 3;
44 //
45 Context context = 4;
46 //
47 Nav nav = 5;
8 48 }
9 49
10 50 //
Modified grpc_api/bilibili/app/click/v1/heartbeat.proto +2 -1
@@ -3,7 +3,8 @@ syntax = "proto3";
3 3 package bilibili.app.click.v1;
4 4
5 5 service Click {
6
6 // 客户端心跳上传
7 rpc HeartBeat (HeartBeatReq) returns (HeartBeatReply);
7 8 }
8 9
9 10 // 账户信息
Modified grpc_api/bilibili/app/dynamic/v2/opus.proto +35 -0
@@ -5,12 +5,47 @@ package bilibili.app.dynamic.v2;
5 5
6 6 import "bilibili/app/archive/middleware/v1/preload.proto";
7 7 import "bilibili/app/dynamic/v2/dynamic.proto";
8 import "bilibili/pagination/pagination.proto";
8 9
9 10 service Opus {
11 //
12 rpc ListFav (ListFavReq) returns (ListFavResp);
10 13 //
11 14 rpc OpusDetail (OpusDetailReq) returns (OpusDetailResp);
12 15 }
13 16
17 //
18 message ListFavReq {
19 //
20 int32 local_time = 1;
21 //
22 bilibili.pagination.Pagination pagination = 2;
23 }
24
25 //
26 message ListFavResp {
27 //
28 repeated OpusFavItem item_list = 1;
29 //
30 bilibili.pagination.PaginationReply next_page = 2;
31 }
32
33 //
34 message OpusFavItem {
35 //
36 int64 opus_id = 1;
37 //
38 string card_uri = 2;
39 //
40 bilibili.app.dynamic.v2.MdlDynDrawItem cover_pic = 3;
41 //
42 bilibili.app.dynamic.v2.Paragraph text_paragraph = 4;
43 //
44 bilibili.app.dynamic.v2.CoverIconWithText bottom_text = 5;
45 //
46 string click_toast = 6;
47 }
48
14 49 //
15 50 message OpusDetailReq {
16 51 //
Modified grpc_api/bilibili/app/interfaces/v1/history.proto +3 -1
@@ -6,8 +6,10 @@ import "bilibili/app/archive/middleware/v1/preload.proto";
6 6
7 7 // 历史记录
8 8 service History {
9 // 获取历史记录tab
9 // 获取历史记录tab(旧版)
10 10 rpc HistoryTab (HistoryTabReq) returns (HistoryTabReply);
11 // 获取历史记录tab
12 rpc HistoryTabV2 (HistoryTabReq) returns (HistoryTabReply);
11 13 // 获取历史记录列表(旧版)
12 14 rpc Cursor (CursorReq) returns (CursorReply);
13 15 // 获取历史记录列表
Modified grpc_api/bilibili/app/interfaces/v1/media.proto +18 -4
@@ -4,16 +4,18 @@ package bilibili.app.interface.v1;
4 4
5 5 //
6 6 service Media {
7 //
8 rpc MediaTab(MediaTabReq) returns (MediaTabReply);
7 //
8 rpc MediaComment(MediaCommentReq) returns (MediaCommentReply);
9 9 //
10 10 rpc MediaDetail(MediaDetailReq) returns (MediaDetailReply);
11 11 //
12 rpc MediaVideo(MediaVideoReq) returns (MediaVideoReply);
12 rpc MediaFollow(MediaFollowReq) returns (MediaFollowReply);
13 13 //
14 14 rpc MediaRelation(MediaRelationReq) returns (MediaRelationReply);
15 15 //
16 rpc MediaFollow(MediaFollowReq) returns (MediaFollowReply);
16 rpc MediaTab(MediaTabReq) returns (MediaTabReply);
17 //
18 rpc MediaVideo(MediaVideoReq) returns (MediaVideoReply);
17 19 }
18 20
19 21 //
@@ -137,6 +139,18 @@ message MediaCard {
137 139 Button but_first = 5;
138 140 }
139 141
142 //
143 message MediaCommentReply {
144 //
145 string err_msg = 1;
146 }
147
148 //
149 message MediaCommentReq {
150 //
151 string id = 1;
152 }
153
140 154 //
141 155 message MediaDetailReply {
142 156 //
Modified grpc_api/bilibili/app/listener/v1/listener.proto +42 -42
@@ -9,76 +9,76 @@ import "bilibili/app/playurl/v1/playurl.proto";
9 9
10 10 // 听视频
11 11 service Listener {
12 //
13 rpc Ping (google.protobuf.Empty) returns (google.protobuf.Empty);
14 // 获取音频URL
15 rpc PlayUrl (PlayURLReq) returns (PlayURLResp);
16 12 //
17 13 rpc BkarcDetails (BKArcDetailsReq) returns (BKArcDetailsResp);
18 //
19 rpc Playlist (PlaylistReq) returns (PlaylistResp);
20 //
21 rpc PlaylistAdd (PlaylistAddReq) returns (google.protobuf.Empty);
22 //
23 rpc PlaylistDel (PlaylistDelReq) returns (google.protobuf.Empty);
24 // 推荐列表
25 rpc RcmdPlaylist (RcmdPlaylistReq) returns (RcmdPlaylistResp);
26 //
27 rpc PlayHistory (PlayHistoryReq) returns (PlayHistoryResp);
28 // 添加历史记录
29 rpc PlayHistoryAdd (PlayHistoryAddReq) returns (google.protobuf.Empty);
30 //
31 rpc PlayHistoryDel (PlayHistoryDelReq) returns (google.protobuf.Empty);
32 // 播放上报
33 rpc PlayActionReport (PlayActionReportReq) returns (google.protobuf.Empty);
34 // 三联
35 rpc TripleLike (TripleLikeReq) returns (TripleLikeResp);
36 // 点赞
37 rpc ThumbUp (ThumbUpReq) returns (ThumbUpResp);
38 14 // 投币
39 15 rpc CoinAdd (CoinAddReq) returns (CoinAddResp);
40 16 //
41 rpc FavItemAdd (FavItemAddReq) returns (FavItemAddResp);
17 rpc Event(EventReq) returns (EventResp);
18 // 创建收藏夹
19 rpc FavFolderCreate (FavFolderCreateReq) returns (FavFolderCreateResp);
42 20 //
43 rpc FavItemDel (FavItemDelReq) returns (FavItemDelResp);
21 rpc FavFolderDelete (FavFolderDeleteReq) returns (FavFolderDeleteResp);
22 // 收藏夹详细信息
23 rpc FavFolderDetail (FavFolderDetailReq) returns (FavFolderDetailResp);
24 // 用户收藏夹列表
25 rpc FavFolderList (FavFolderListReq) returns (FavFolderListResp);
26 //
27 rpc FavItemAdd (FavItemAddReq) returns (FavItemAddResp);
44 28 // 批量处理收藏
45 29 rpc FavItemBatch (FavItemBatchReq) returns (FavItemBatchResp);
46 30 //
31 rpc FavItemDel (FavItemDelReq) returns (FavItemDelResp);
32 //
47 33 rpc FavoredInAnyFolders (FavoredInAnyFoldersReq) returns (FavoredInAnyFoldersResp);
48 // 用户收藏夹列表
49 rpc FavFolderList (FavFolderListReq) returns (FavFolderListResp);
50 // 收藏夹详细信息
51 rpc FavFolderDetail (FavFolderDetailReq) returns (FavFolderDetailResp);
52 // 创建收藏夹
53 rpc FavFolderCreate (FavFolderCreateReq) returns (FavFolderCreateResp);
54 34 //
55 rpc FavFolderDelete (FavFolderDeleteReq) returns (FavFolderDeleteResp);
56 // 每日播单列表
57 rpc PickFeed (PickFeedReq) returns (PickFeedResp);
35 rpc Medialist(MedialistReq) returns (MedialistResp);
58 36 // 每日播单详情
59 37 rpc PickCardDetail (PickCardDetailReq) returns (PickCardDetailResp);
38 // 每日播单列表
39 rpc PickFeed (PickFeedReq) returns (PickFeedResp);
60 40 //
61 rpc Medialist(MedialistReq) returns (MedialistResp);
41 rpc Ping (google.protobuf.Empty) returns (google.protobuf.Empty);
42 // 播放上报
43 rpc PlayActionReport (PlayActionReportReq) returns (google.protobuf.Empty);
62 44 //
63 rpc Event(EventReq) returns (EventResp);
45 rpc PlayHistory (PlayHistoryReq) returns (PlayHistoryResp);
46 // 添加历史记录
47 rpc PlayHistoryAdd (PlayHistoryAddReq) returns (google.protobuf.Empty);
48 //
49 rpc PlayHistoryDel (PlayHistoryDelReq) returns (google.protobuf.Empty);
50 // 获取音频URL
51 rpc PlayUrl (PlayURLReq) returns (PlayURLResp);
52 //
53 rpc Playlist (PlaylistReq) returns (PlaylistResp);
54 //
55 rpc PlaylistAdd (PlaylistAddReq) returns (google.protobuf.Empty);
56 //
57 rpc PlaylistDel (PlaylistDelReq) returns (google.protobuf.Empty);
58 // 推荐列表
59 rpc RcmdPlaylist (RcmdPlaylistReq) returns (RcmdPlaylistResp);
60 // 点赞
61 rpc ThumbUp (ThumbUpReq) returns (ThumbUpResp);
62 // 三联
63 rpc TripleLike (TripleLikeReq) returns (TripleLikeResp);
64 64 }
65 65
66 66 //
67 67 service Music {
68 68 //
69 rpc FavTabShow(FavTabShowReq) returns (FavTabShowResp);
69 rpc Click(ClickReq) returns (ClickResp);
70 70 //
71 rpc MainFavMusicSubTabList(MainFavMusicSubTabListReq) returns (MainFavMusicSubTabListResp);
71 rpc FavTabShow(FavTabShowReq) returns (FavTabShowResp);
72 72 //
73 73 rpc MainFavMusicMenuList(MainFavMusicMenuListReq) returns (MainFavMusicMenuListResp);
74 74 //
75 rpc MenuEdit(MenuEditReq) returns (MenuEditResp);
75 rpc MainFavMusicSubTabList(MainFavMusicSubTabListReq) returns (MainFavMusicSubTabListResp);
76 76 //
77 77 rpc MenuDelete(MenuDeleteReq) returns (MenuDeleteResp);
78 78 //
79 rpc MenuSubscribe(MenuSubscribeReq) returns (MenuSubscribeResp);
79 rpc MenuEdit(MenuEditReq) returns (MenuEditResp);
80 80 //
81 rpc Click(ClickReq) returns (ClickResp);
81 rpc MenuSubscribe(MenuSubscribeReq) returns (MenuSubscribeResp);
82 82 }
83 83
84 84 //
Added grpc_api/bilibili/app/mine/v1/mine.proto +245 -0
@@ -0,0 +1,245 @@
1 syntax = "proto3";
2
3 package bilibili.app.mine.v1;
4
5 import "bilibili/app/dynamic/v2/dynamic.proto";
6
7 //
8 service Mine {
9 //
10 rpc PubModule (PubModuleReq) returns (PubModuleResp);
11 }
12
13 //
14 message Arc {
15 //
16 string date = 1;
17 //
18 Stat stat = 2;
19 //
20 string cover = 3;
21 //
22 int64 duration = 4;
23 //
24 int64 aid = 5;
25 //
26 int64 cid = 6;
27 //
28 int32 state = 7;
29 }
30
31 //
32 enum ArcState {
33 //
34 STATE_UNKNOWN = 0;
35 //
36 OPEN = 1;
37 //
38 ORANGE = 2;
39 //
40 WAIT = 3;
41 //
42 RECICLE = 4;
43 //
44 LOCK = 5;
45 //
46 FIXED = 6;
47 //
48 USER_DELAY = 7;
49 //
50 FAST_PUB = 8;
51 //
52 XCODE_FAIL = 9;
53 }
54
55 //
56 message Button {
57 //
58 string light_icon = 1;
59 //
60 string dark_icon = 2;
61 //
62 string url = 3;
63 //
64 string text = 4;
65 }
66
67 //
68 message CardMore {
69 //
70 Button button = 1;
71 }
72
73 //
74 message CardOpus {
75 //
76 bilibili.app.dynamic.v2.Paragraph word_paragraph = 1;
77 //
78 string cover = 2;
79 //
80 string url = 3;
81 //
82 SubTitleWithStat stat_title = 4;
83 //
84 Stat stat = 5;
85 //
86 string date = 6;
87 //
88 int64 dyn_id = 7;
89 //
90 bool has_share = 8;
91 //
92 int32 state = 9;
93 }
94
95 //
96 message CardPubGuide {
97 //
98 Title title = 1;
99 //
100 Button button = 2;
101 //
102 repeated PubGuideMaterial material = 3;
103 //
104 Button more_button = 4;
105 }
106
107 //
108 enum CardType {
109 //
110 CARD_UNKNOWN = 0;
111 //
112 PUBGUIDE = 1;
113 //
114 UGC = 2;
115 //
116 OPUS = 3;
117 //
118 MORE = 4;
119 }
120
121 //
122 message CardUGC {
123 //
124 string title = 1;
125 //
126 Color title_color = 2;
127 //
128 oneof subtitle {
129 //
130 string button_title = 3;
131 //
132 string stat_title = 4;
133 }
134 //
135 Arc arc = 5;
136 //
137 string url = 6;
138 //
139 bool has_share = 7;
140 }
141
142 //
143 message Color {
144 //
145 string light_color = 1;
146 //
147 string dark_color = 2;
148 }
149
150 //
151 enum OpusState {
152 //
153 OPUS_UNKNOWN = 0;
154 //
155 OPUS_OPEN = 1;
156 //
157 OPUS_NO_FORWARD = 2;
158 }
159
160 //
161 message PubCard {
162 //
163 oneof card {
164 //
165 CardPubGuide pub_guide = 1;
166 //
167 CardUGC ugc = 2;
168 //
169 CardOpus opus = 3;
170 //
171 CardMore more = 4;
172 }
173 //
174 CardType card_type = 5;
175 }
176
177 //
178 message PubGuideMaterial {
179 //
180 int64 id = 1;
181 //
182 Title title = 2;
183 //
184 string cover = 3;
185 //
186 string url = 4;
187 }
188
189 //
190 message PubModuleReq {
191 //
192 int64 user_original_state = 1;
193 //
194 repeated int64 dyn_ids = 2;
195 //
196 int64 card_num = 3;
197 }
198
199 //
200 message PubModuleResp {
201 //
202 repeated PubCard pub_card = 1;
203 }
204
205 //
206 message Stat {
207 //
208 string play_icon = 1;
209 //
210 string play = 2;
211 //
212 string like_icon = 3;
213 //
214 string like = 4;
215 }
216
217 //
218 message SubTitleWithButton {
219 //
220 string icon = 1;
221 //
222 string url = 2;
223 //
224 Color background_color = 3;
225 //
226 string text = 4;
227 //
228 Color text_color = 5;
229 }
230
231 //
232 message SubTitleWithStat {
233 //
234 repeated string icon = 1;
235 //
236 string text = 2;
237 }
238
239 //
240 message Title {
241 //
242 string main = 1;
243 //
244 string sub = 2;
245 }
Modified grpc_api/bilibili/app/nativeact/v1/nativeact.proto +1 -0
@@ -1,5 +1,6 @@
1 1 syntax = "proto3";
2 2
3 // Deprecated
3 4 package bilibili.app.nativeact.v1;
4 5
5 6 import "google/protobuf/any.proto";
Modified grpc_api/bilibili/app/playerunite/ugcanymodel/ugcanymodel.proto +12 -0
@@ -2,6 +2,7 @@ syntax = "proto3";
2 2
3 3 package bilibili.app.playerunite.ugcanymodel;
4 4
5 //
5 6 message ButtonStyle {
6 7 string text = 1;
7 8 string text_color = 2;
@@ -9,11 +10,21 @@ message ButtonStyle {
9 10 string jump_link = 4;
10 11 }
11 12
13 // 播放限制
12 14 enum PlayLimitCode {
15 //
13 16 PLC_UNKNOWN = 0;
17 // 未付费
14 18 PLC_NOTPAYED = 1;
19 //
20 PLC_ChargingPlusNotPass = 2;
21 //
22 PLC_ChargingPlusUpgrade = 3;
23 //
24 PLC_ChargingPlusReject = 4;
15 25 }
16 26
27 //
17 28 message PlayLimit {
18 29 PlayLimitCode code = 1;
19 30 string message = 2;
@@ -21,6 +32,7 @@ message PlayLimit {
21 32 ButtonStyle button = 4;
22 33 }
23 34
35 //
24 36 message UGCAnyModel {
25 37 PlayLimit play_limit = 1;
26 38 }
Modified grpc_api/bilibili/app/playurl/v1/playurl.proto +24 -5
@@ -32,6 +32,8 @@ message ArcConf {
32 32 bool disabled = 2;
33 33 //
34 34 ExtraContent extra_content = 3;
35 //
36 repeated int64 unsupport_scene = 4;
35 37 }
36 38
37 39 // 业务类型
@@ -112,6 +114,7 @@ enum ConfType {
112 114 PANORAMA = 27; // 全景
113 115 DOLBY = 28; // 杜比
114 116 COLORFILTER = 29; // 颜色滤镜
117 LOSSLESS = 30; // HIRES
115 118 }
116 119
117 120 //
@@ -243,6 +246,16 @@ enum Group {
243 246 C = 3; //
244 247 }
245 248
249 //
250 message LossLessItem {
251 //
252 bool is_lossless_audio = 1;
253 //
254 DashItem audio = 2;
255 //
256 bool need_vip = 3;
257 }
258
246 259 // 禁用功能配置
247 260 message PlayAbilityConf {
248 261 CloudConf background_play_conf = 1; // 后台播放
@@ -274,6 +287,7 @@ message PlayAbilityConf {
274 287 CloudConf inner_dm_conf = 27; // 一起看入口
275 288 CloudConf dolby_conf = 28; // 杜比音效
276 289 CloudConf color_filter_conf = 29; // 颜色滤镜
290 CloudConf loss_less_conf = 30; // HIRES
277 291 }
278 292
279 293 // 播放控件稿件配置
@@ -308,6 +322,7 @@ message PlayArcConf {
308 322 ArcConf dolby_conf = 28; // 杜比音效
309 323 ArcConf screen_recording_conf = 29; // 屏幕录制
310 324 ArcConf color_filter_conf = 30; // 颜色滤镜
325 ArcConf loss_less_conf = 31; // HIRES
311 326 }
312 327
313 328 // 编辑播放界面配置-响应
@@ -366,6 +381,8 @@ message PlayLimit {
366 381 enum PlayLimitCode {
367 382 PLCUnkown = 0; //
368 383 PLCUgcNotPayed = 1; //
384 PLCChargingPlusNotPass = 2; //
385 PLCChargingPlusUpgrade = 3; //
369 386 }
370 387
371 388 // 视频地址-回复
@@ -642,14 +659,16 @@ message VideoInfo {
642 659 DolbyItem dolby = 7;
643 660 //
644 661 VolumeInfo volume = 8;
662 //
663 LossLessItem loss_less_item = 9;
645 664 }
646 665
647 666 // 视频类型
648 667 enum VideoType {
649 Unknown_VALUE = 0; //
650 FLV_VALUE = 1; // flv格式
651 DASH_VALUE = 2; // dash格式
652 MP4_VALUE = 3; // mp4格式
668 Unknown = 0; //
669 FLV = 1; // flv格式
670 DASH = 2; // dash格式
671 MP4 = 3; // mp4格式
653 672 }
654 673
655 674 //
@@ -668,4 +687,4 @@ message VolumeInfo {
668 687 double target_i = 6;
669 688 //
670 689 double target_tp = 7;
671 }
690 }
Modified grpc_api/bilibili/app/search/v2/search.proto +23 -0
@@ -8,6 +8,8 @@ service Search {
8 8 //
9 9 rpc CancelChatTask (CancelChatTaskReq) returns (CancelChatTaskReply);
10 10 //
11 rpc GetChatAuth (GetChatAuthReq) returns (GetChatAutReply);
12 //
11 13 rpc GetChatResult (GetChatResultReq) returns (bilibili.broadcast.message.main.ChatResult);
12 14 //
13 15 rpc SearchEgg (SearchEggReq) returns (SearchEggReply);
@@ -29,6 +31,25 @@ message CancelChatTaskReply {
29 31 int32 code = 1;
30 32 }
31 33
34 //
35 message GetChatAuthReq {}
36
37 //
38 message GetChatAuthReply {
39 //
40 bool display = 1;
41 //
42 string icon = 2;
43 //
44 string icon_night = 3;
45 //
46 string jump_link = 4;
47 //
48 string text_guide = 5;
49 //
50 int32 jump_link_type = 6;
51 }
52
32 53 //
33 54 message GetChatResultReq {
34 55 //
@@ -37,6 +58,8 @@ message GetChatResultReq {
37 58 string session_id = 2;
38 59 //
39 60 string from_source = 3;
61 //
62 string track_id = 4;
40 63 }
41 64
42 65 //
Modified grpc_api/bilibili/dynamic/common/dynamic.proto +485 -4
Modified grpc_api/bilibili/dynamic/gw/gateway.proto +1 -0
Modified grpc_api/bilibili/dynamic/interfaces/campus/v1/api.proto +28 -1
Modified grpc_api/bilibili/gaia/gw/gw_api.proto +6 -2