update grpc_api from 7.26.0 (#728)
* update package bilibili.pgc.gateway.player.v2 from 7.26.0 * update package bilibili.app.viewunite.v1 from 7.26.0 * delete some unused grpc package based on 7.26.0 * update package bilibili.playershared from 7.26.0 * update package bilibili.polymer.app.search.v1 from 7.26.0 * redir package bilibili.polymer.contract.v1 * update package bilibili.app.dynamic.v2 from 7.26.0 * add package bilibili.app.search.v2 from 7.26.0 * fix: typo
This commit is contained in:
22
grpc_api/bilibili/app/dynamic/common/dynamic.proto
Normal file
22
grpc_api/bilibili/app/dynamic/common/dynamic.proto
Normal file
@@ -0,0 +1,22 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.dynamic.common;
|
||||
|
||||
|
||||
//
|
||||
message ItemWHRatio {
|
||||
//
|
||||
int32 ratio = 1;
|
||||
//
|
||||
int32 width = 2;
|
||||
//
|
||||
int32 height = 3;
|
||||
}
|
||||
|
||||
//
|
||||
enum WHRatio {
|
||||
W_H_RATIO_1_1 = 0;
|
||||
W_H_RATIO_16_9 = 1;
|
||||
W_H_RATIO_3_4 = 2;
|
||||
W_H_RATIO_CUSTOM = 3;
|
||||
}
|
||||
66
grpc_api/bilibili/app/dynamic/v2/campus.proto
Normal file
66
grpc_api/bilibili/app/dynamic/v2/campus.proto
Normal file
@@ -0,0 +1,66 @@
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.dynamic.v2;
|
||||
|
||||
import "bilibili/app/archive/middleware/v1/preload.proto";
|
||||
import "bilibili/pagination/pagination.proto";
|
||||
import "bilibili/app/dynamic/common/dynamic.proto";
|
||||
import "bilibili/app/dynamic/v2/dynamic.proto";
|
||||
|
||||
service Campus {
|
||||
//
|
||||
rpc WaterFlowRcmd (WaterFlowRcmdReq) returns (WaterFlowRcmdReply);
|
||||
}
|
||||
|
||||
//
|
||||
message CampusWaterFlowItem {
|
||||
//
|
||||
int32 item_type = 1;
|
||||
//
|
||||
bilibili.app.dynamic.common.ItemWHRatio wh_ratio = 2;
|
||||
//
|
||||
oneof item {
|
||||
WFItemDefault item_default = 3;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
message WaterFlowRcmdReq {
|
||||
//
|
||||
int64 campus_id = 1;
|
||||
//
|
||||
int32 page = 2;
|
||||
//
|
||||
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3;
|
||||
//
|
||||
CampusRcmdReqFrom from = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message WaterFlowRcmdResp {
|
||||
//
|
||||
repeated CampusWaterFlowItem items = 1;
|
||||
//
|
||||
bilibili.pagination.FeedPaginationReply offset = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message WFItemDefault {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string cover = 2;
|
||||
//
|
||||
CoverIconWithText bottom_left_1 = 3;
|
||||
//
|
||||
CoverIconWithText bottom_left_2 = 4;
|
||||
//
|
||||
CoverIconWithText bottom_right_1 = 5;
|
||||
//
|
||||
string uri = 6;
|
||||
//
|
||||
RcmdReason rcmd_reason = 7;
|
||||
//
|
||||
map<string, string> annotations = 8;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
59
grpc_api/bilibili/app/dynamic/v2/opus.proto
Normal file
59
grpc_api/bilibili/app/dynamic/v2/opus.proto
Normal file
@@ -0,0 +1,59 @@
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.dynamic.v2;
|
||||
|
||||
import "bilibili/app/archive/middleware/v1/preload.proto";
|
||||
import "bilibili/app/dynamic/v2/dynamic.proto";
|
||||
|
||||
service Opus {
|
||||
//
|
||||
rpc OpusDetail (OpusDetailReq) returns (OpusDetailResp);
|
||||
}
|
||||
|
||||
//
|
||||
message OpusDetailReq {
|
||||
//
|
||||
OpusType opus_type = 1;
|
||||
//
|
||||
int64 oid = 2;
|
||||
//
|
||||
int64 dyn_type = 3;
|
||||
//
|
||||
string share_id = 4;
|
||||
//
|
||||
int32 share_mode = 9;
|
||||
//
|
||||
int32 local_time = 10;
|
||||
//
|
||||
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 11;
|
||||
//
|
||||
Config config = 12;
|
||||
}
|
||||
|
||||
//
|
||||
message OpusDetailResp {
|
||||
//
|
||||
OpusItem opus_item = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message OpusItem {
|
||||
//
|
||||
int64 opus_id = 1;
|
||||
//
|
||||
OpusType opus_type = 2;
|
||||
//
|
||||
int64 oid = 3;
|
||||
//
|
||||
repeated Module modules = 4;
|
||||
//
|
||||
Extend extend = 5;
|
||||
}
|
||||
|
||||
enum OpusType {
|
||||
OPUS_TYPE_DYN = 0;
|
||||
OPUS_TYPE_ARTICLE = 1;
|
||||
OPUS_TYPE_NOTE = 2;
|
||||
OPUS_TYPE_WORD = 3;
|
||||
}
|
||||
110
grpc_api/bilibili/app/search/v2/search.proto
Normal file
110
grpc_api/bilibili/app/search/v2/search.proto
Normal file
@@ -0,0 +1,110 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.search.v2;
|
||||
|
||||
import "bilibili/broadcast/message/main/search.proto";
|
||||
|
||||
service Search {
|
||||
//
|
||||
rpc CancelChatTask (CancelChatTaskReq) returns (CancelChatTaskReply);
|
||||
//
|
||||
rpc GetChatResult (GetChatResultReq) returns (bilibili.broadcast.message.main.ChatResult);
|
||||
//
|
||||
rpc SearchEgg (SearchEggReq) returns (SearchEggReply);
|
||||
//
|
||||
rpc SubmitChatTask (SubmitChatTaskReq) returns (SubmitChatTaskReply);
|
||||
}
|
||||
|
||||
//
|
||||
message CancelChatTaskReq {
|
||||
//
|
||||
string session_id = 1;
|
||||
//
|
||||
string from_source = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message CancelChatTaskReply {
|
||||
//
|
||||
int32 code = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message GetChatResultReq {
|
||||
//
|
||||
string query = 1;
|
||||
//
|
||||
string session_id = 2;
|
||||
//
|
||||
string from_source = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message SearchEggInfo {
|
||||
//
|
||||
int32 egg_type = 1;
|
||||
//
|
||||
int64 id = 2;
|
||||
//
|
||||
int32 is_commercial = 3;
|
||||
//
|
||||
string mask_color = 4;
|
||||
//
|
||||
int64 mask_transparency = 5;
|
||||
//
|
||||
string md5 = 6;
|
||||
//
|
||||
int32 re_type = 7;
|
||||
//
|
||||
string re_url = 8;
|
||||
//
|
||||
string re_value = 9;
|
||||
//
|
||||
int32 show_count = 10;
|
||||
//
|
||||
int64 size = 11;
|
||||
//
|
||||
int64 source = 12;
|
||||
//
|
||||
string url = 13;
|
||||
}
|
||||
|
||||
//
|
||||
message SearchEggInfos {
|
||||
//
|
||||
repeated SearchEggInfo egg_info = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message SearchEggReply {
|
||||
//
|
||||
int32 code = 1;
|
||||
//
|
||||
string seid = 2;
|
||||
//
|
||||
SearchEggInfos result = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message SearchEggReq {
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
message SubmitChatTaskReply {
|
||||
//
|
||||
int32 code = 1;
|
||||
//
|
||||
string session_id = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message SubmitChatTaskReq {
|
||||
//
|
||||
string query = 1;
|
||||
//
|
||||
string track_id = 2;
|
||||
//
|
||||
string from_source = 3;
|
||||
}
|
||||
|
||||
@@ -9,9 +9,9 @@ import "google/protobuf/any.proto";
|
||||
// 统一视频信息接口(7.23启用)
|
||||
service View {
|
||||
//
|
||||
rpc View(ViewRequest) returns (ViewReply);
|
||||
rpc View(ViewReq) returns (ViewReply);
|
||||
//
|
||||
rpc ViewProgress(ViewProgressRequest) returns (ViewProgressReply);
|
||||
rpc ViewProgress(ViewProgressReq) returns (ViewProgressReply);
|
||||
}
|
||||
|
||||
// 业务类型
|
||||
@@ -255,7 +255,7 @@ enum MaterialBizType {
|
||||
// 素材来源
|
||||
enum MaterialSource {
|
||||
//
|
||||
UNKNOWN = 0;
|
||||
DEFAULT = 0;
|
||||
// 必剪素材
|
||||
BIJIAN = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user