fix: unite grpc api protos from 7.41.0+ (#774)

* fix: viewunite grpc protos from 7.41.0+

* fix typo

* fix: OgvSeasons

* fix: Relates

* fix: pgcanymodel Stat

* fix: playshared.proto

* update: playerunite

* fix mistake in playunite proto
This commit is contained in:
陈寒彤
2023-08-06 12:46:21 +00:00
committed by GitHub
parent c19fd073f8
commit b01aae4cf4
6 changed files with 3112 additions and 108 deletions

View File

@@ -22,6 +22,52 @@ enum ArcType {
ARC_TYPE_INTERACT = 1;
}
//
message BackgroundInfo {
//
string drawable_color = 1;
//
string drawable_bitmap_url = 2;
//
int32 effects = 3;
}
//
message BadgeInfo {
//
string text = 1;
//
string bg_color = 2;
//
string bg_color_night = 3;
//
string text_color = 4;
//
GradientColor bg_gradient_color = 5;
//
string img = 6;
}
//
enum BizType {
//
BIZ_TYPE_UNKNOWN = 0;
//
BIZ_TYPE_UGC = 1;
//
BIZ_TYPE_PGC = 2;
//
BIZ_TYPE_PUGV = 3;
}
//
message BottomDisplay {
//
TextInfo title = 1;
//
string icon = 2;
}
// 按钮组件
message Button {
// 按钮文本
@@ -32,6 +78,79 @@ message Button {
map<string, string> report_params = 3;
}
enum ButtonAction {
//
BUTTON_UNKNOWN = 0;
//
PAY = 1;
//
VIP = 2;
//
PACK = 3;
//
LINK = 4;
//
COUPON = 5;
//
DEMAND = 6;
//
DEMAND_PACK = 7;
//
FOLLOW = 8;
//
APPOINTMENT = 9;
//
VIP_FREE = 10;
//
TASK = 11;
//
CHARGINGPLUS = 12;
//
BP = 13;
//
PRE_SELL = 14;
}
//
message ButtonInfo {
//
string text = 1;
//
string text_color = 2;
//
string text_color_night = 3;
//
string bg_color = 4;
//
string bg_color_night = 5;
//
string link = 6;
//
ButtonAction action_type = 7;
//
BadgeInfo badge_info = 8;
//
Report report = 9;
//
string left_strikethrough_text = 10;
//
TextInfo simple_text_info = 11;
//
string simple_bg_color = 12;
//
string simple_bg_color_night = 13;
//
GradientColor bg_gradient_color = 14;
//
map<string, string> order_report_params = 15;
//
TaskParam task_param = 16;
//
string frame_color = 17;
//
string icon = 18;
}
// 视频编码
enum CodeType {
NOCODE = 0; // 不指定
@@ -40,6 +159,24 @@ enum CodeType {
CODEAV1 = 3; // AV1
}
//
message ComprehensiveToast {
//
int32 type = 1;
//
ButtonInfo button = 2;
//
int32 show_style_type = 3;
//
string icon = 4;
//
TextInfo toast_text = 5;
//
Report report = 6;
//
map<string, string> order_report_params = 7;
}
// 功能类型
enum ConfType {
NoType = 0;
@@ -146,6 +283,37 @@ message DeviceConf {
ConfValue conf_value = 1;
}
//
message Dialog {
//
int32 style_type = 1;
//
BackgroundInfo background_info = 2;
//
TextInfo title = 3;
//
TextInfo subtitle = 4;
//
ImageInfo image = 5;
//
repeated ButtonInfo button = 6;
//
ButtonInfo bottom_desc = 7;
//
Report report = 8;
//
int32 count_down_sec = 9;
//
TextInfo right_bottom_desc = 10;
//
repeated BottomDisplay bottom_display = 11;
//
ExtData ext_data = 12;
//
int32 limit_action_type = 13;
}
// 当前分辨率信息
message Dimension {
// 宽
@@ -182,12 +350,38 @@ enum DrmTechType {
BILI_DRM = 3;
}
enum Effects {
//
EFFECTS_UNKNOWN = 0;
//
GAUSSIAN_BLUR = 1;
//
HALF_ALPHA = 2;
}
// 事件
message Event {
// 震动
Shake shake = 1;
}
//
message ExtData {
//
ExtDataType type = 1;
//
oneof data {
PlayListInfo play_list_info = 2;
}
}
enum ExtDataType {
//
EXT_DATA_TYPE_UNKNOWN = 0;
//
PLAY_LIST = 1;
}
// ? 错误码补充信息
message ExtraContent {
//
@@ -196,6 +390,28 @@ message ExtraContent {
int64 disable_code = 2;
}
//
message GradientColor {
//
string start_color = 1;
//
string end_color = 2;
}
//
enum GuideStyle {
//
STYLE_UNKNOWN = 0;
//
HORIZONTAL_IMAGE = 1;
//
VERTICAL_TEXT = 2;
//
SIMPLE_TEXT = 3;
//
CHARGING_TEXT = 4;
}
// 播放历史
message History {
//
@@ -218,6 +434,13 @@ message HistoryInfo {
int64 last_play_aid = 5;
}
//
message ImageInfo {
//
string url = 1;
}
//
message Interaction {
//
@@ -230,6 +453,16 @@ message Interaction {
int64 mark = 4;
}
//
enum LimitActionType {
//
LAT_UNKNOWN = 0;
//
SHOW_LIMIT_DIALOG = 1;
//
SKIP_CURRENT_EP = 2;
}
// HIRES伴音流信息
message LossLessItem {
// 是否为hires
@@ -253,7 +486,7 @@ message Node {
//
message PlayArc {
//
VideoType video_type = 1;
BizType video_type = 1;
//
uint64 aid = 2;
//
@@ -266,6 +499,10 @@ message PlayArc {
Interaction interaction = 6;
//
Dimension dimension = 7;
//
int64 duration = 8;
//
bool is_preview = 9;
}
// 播放页信息-响应: PlayArcConf
@@ -285,6 +522,49 @@ enum PlayErr {
WithMultiDeviceLoginErr = 1; // 管控类型的错误码
}
//
message PlayList {
//
int64 season_id = 1;
//
string title = 2;
//
string cover = 3;
//
string link = 4;
//
BadgeInfo badge_info = 5;
}
//
message PlayListInfo {
//
repeated PlayList play_list = 2;
}
// 视频下方广告 Banner
message PromptBar {
//
TextInfo title = 1;
//
TextInfo subtitle = 2;
//
string sub_title_icon = 3;
//
string bg_image = 4;
//
GradientColor bg_gradient_color = 5;
//
repeated ButtonInfo button = 6;
//
Report report = 7;
//
string full_screen_ip_icon = 8;
//
GradientColor full_screen_bg_gradient_color = 9;
}
// 播放页信息-响应: 高画质试看信息
message QnTrialInfo {
// 能否试看高画质
@@ -303,6 +583,16 @@ message QnTrialInfo {
Button quality_open_tip_btn = 8;
}
//
message Report {
//
string show_event_id = 1;
//
string click_event_id = 2;
//
string extends = 3;
}
// Dash Response, 未使用
message ResponseDash {
repeated DashItem video = 1;
@@ -348,6 +638,16 @@ message Shake {
string file = 1;
}
//
enum ShowStyleType {
//
SHOW_STYLE_TYPE_UNKNOWN = 0;
//
SHOW_STYLE_TYPE_ORDINARY = 1;
//
SHOW_STYLE_TYPE_RESIDENT = 2;
}
// 视频流信息
message Stream {
// 元数据
@@ -409,6 +709,27 @@ message StreamLimit {
string msg = 3;
}
//
message TaskParam {
//
string task_type = 1;
//
int64 activity_id = 2;
//
int64 tips_id = 3;
}
//
message TextInfo {
//
string text = 1;
//
string text_color = 2;
//
string text_color_night = 3;
}
// Toast信息
message Toast {
// toast文案
@@ -417,6 +738,21 @@ message Toast {
Button button = 2;
}
enum ToastType {
//
TOAST_TYPE_UNKNOWN = 0;
//
VIP_CONTENT_REMIND = 1;
//
VIP_DEFINITION_REMIND = 2;
//
VIP_DEFINITION_GUIDE = 3;
//
OGV_VIDEO_START_TOAST = 4;
//
CHARGING_TOAST = 5;
}
//
enum UnsupportScene {
//
@@ -425,15 +761,6 @@ enum UnsupportScene {
PREMIERE = 1;
}
// 视频类型
enum VideoType {
UNKNOWN = 0;
// 用户生成内容
UGC = 1;
// 专业生产内容
PGC = 2;
}
// 播放页信息-请求: 音视频VOD
message VideoVod {
// 视频aid
@@ -460,6 +787,16 @@ message VideoVod {
uint64 voice_balance = 10;
}
//
message ViewInfo {
//
map<string, Dialog> dialog_map = 1;
//
PromptBar prompt_bar = 2;
//
repeated ComprehensiveToast toasts = 3;
}
// 播放页信息-响应: VOD音视频信息
message VodInfo {
// 视频清晰度