update 【gRPC API】 proto files
This commit is contained in:
parent
8fb57b4ad1
commit
58c9d7f367
@ -18,6 +18,38 @@ service DM {
|
|||||||
rpc DmExpoReport (DmExpoReportReq) returns (DmExpoReportRes);
|
rpc DmExpoReport (DmExpoReportReq) returns (DmExpoReportRes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message Avatar {
|
||||||
|
//
|
||||||
|
string id = 1;
|
||||||
|
//
|
||||||
|
string url = 2;
|
||||||
|
//
|
||||||
|
AvatarType avatar_type = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum AvatarType {
|
||||||
|
AvatarTypeNone = 0; //
|
||||||
|
AvatarTypeNFT = 1; //
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message Bubble {
|
||||||
|
//
|
||||||
|
string text = 1;
|
||||||
|
//
|
||||||
|
string url = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message Button {
|
||||||
|
//
|
||||||
|
string text = 1;
|
||||||
|
//
|
||||||
|
int32 action = 2;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
message BuzzwordConfig {
|
message BuzzwordConfig {
|
||||||
//
|
//
|
||||||
@ -40,6 +72,43 @@ message BuzzwordShowConfig {
|
|||||||
int32 schema_type = 6;
|
int32 schema_type = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message CheckBox {
|
||||||
|
//
|
||||||
|
string text = 1;
|
||||||
|
//
|
||||||
|
CheckboxType type = 2;
|
||||||
|
//
|
||||||
|
bool default_value = 3;
|
||||||
|
//
|
||||||
|
bool show = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum CheckboxType {
|
||||||
|
CheckboxTypeNone = 0; //
|
||||||
|
CheckboxTypeEncourage = 1; //
|
||||||
|
CheckboxTypeColorDM = 2; //
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message ClickButton {
|
||||||
|
//
|
||||||
|
repeated string portrait_text = 1;
|
||||||
|
//
|
||||||
|
repeated string landscape_text = 2;
|
||||||
|
//
|
||||||
|
repeated string portrait_text_focus = 3;
|
||||||
|
//
|
||||||
|
repeated string landscape_text_focus = 4;
|
||||||
|
//
|
||||||
|
RenderType render_type = 5;
|
||||||
|
//
|
||||||
|
bool show = 6;
|
||||||
|
//
|
||||||
|
Bubble bubble = 7;
|
||||||
|
}
|
||||||
|
|
||||||
// 互动弹幕条目信息
|
// 互动弹幕条目信息
|
||||||
message CommandDm {
|
message CommandDm {
|
||||||
// 弹幕id
|
// 弹幕id
|
||||||
@ -64,13 +133,6 @@ message CommandDm {
|
|||||||
string idStr = 10;
|
string idStr = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 弹幕属性位值
|
|
||||||
enum DMAttrBit {
|
|
||||||
DMAttrBitProtect = 0; // 保护弹幕
|
|
||||||
DMAttrBitFromLive = 1; // 直播弹幕
|
|
||||||
DMAttrHighLike = 2; // 高赞弹幕
|
|
||||||
}
|
|
||||||
|
|
||||||
// 弹幕ai云屏蔽列表
|
// 弹幕ai云屏蔽列表
|
||||||
message DanmakuAIFlag {
|
message DanmakuAIFlag {
|
||||||
// 弹幕ai云屏蔽条目
|
// 弹幕ai云屏蔽条目
|
||||||
@ -106,12 +168,16 @@ message DanmakuElem {
|
|||||||
// 弹幕属性位(bin求AND)
|
// 弹幕属性位(bin求AND)
|
||||||
// bit0:保护 bit1:直播 bit2:高赞
|
// bit0:保护 bit1:直播 bit2:高赞
|
||||||
int32 attr = 13;
|
int32 attr = 13;
|
||||||
|
//
|
||||||
|
string animation = 22;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 弹幕ai云屏蔽条目
|
// 弹幕ai云屏蔽条目
|
||||||
message DanmakuFlag {
|
message DanmakuFlag {
|
||||||
int64 dmid = 1; // 弹幕dmid
|
// 弹幕dmid
|
||||||
uint32 flag = 2; // 评分
|
int64 dmid = 1;
|
||||||
|
// 评分
|
||||||
|
uint32 flag = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 云屏蔽配置信息
|
// 云屏蔽配置信息
|
||||||
@ -141,6 +207,8 @@ message DanmuDefaultPlayerConfig {
|
|||||||
int32 player_danmaku_speed = 15; // 弹幕速度
|
int32 player_danmaku_speed = 15; // 弹幕速度
|
||||||
bool inline_player_danmaku_switch = 16; // 是否开启弹幕
|
bool inline_player_danmaku_switch = 16; // 是否开启弹幕
|
||||||
int32 player_danmaku_senior_mode_switch = 17; //
|
int32 player_danmaku_senior_mode_switch = 17; //
|
||||||
|
int32 player_danmaku_ai_recommended_level_v2 = 18; //
|
||||||
|
map<int32, int32> player_danmaku_ai_recommended_level_v2_map = 19; //
|
||||||
}
|
}
|
||||||
|
|
||||||
// 弹幕配置
|
// 弹幕配置
|
||||||
@ -165,6 +233,8 @@ message DanmuPlayerConfig {
|
|||||||
int32 inline_player_danmaku_config = 18; //
|
int32 inline_player_danmaku_config = 18; //
|
||||||
int32 player_danmaku_ios_switch_save = 19; //
|
int32 player_danmaku_ios_switch_save = 19; //
|
||||||
int32 player_danmaku_senior_mode_switch = 20; //
|
int32 player_danmaku_senior_mode_switch = 20; //
|
||||||
|
int32 player_danmaku_ai_recommended_level_v2 = 21; //
|
||||||
|
map<int32, int32> player_danmaku_ai_recommended_level_v2_map = 22; //
|
||||||
}
|
}
|
||||||
|
|
||||||
// 弹幕显示区域自动配置
|
// 弹幕显示区域自动配置
|
||||||
@ -208,6 +278,15 @@ message DanmuWebPlayerConfig {
|
|||||||
int32 fontborder = 19; //
|
int32 fontborder = 19; //
|
||||||
string draw_type = 20; // 弹幕渲染类型
|
string draw_type = 20; // 弹幕渲染类型
|
||||||
int32 senior_mode_switch = 21; //
|
int32 senior_mode_switch = 21; //
|
||||||
|
int32 ai_level_v2 = 22; //
|
||||||
|
map<int32, int32> ai_level_v2_map = 23; //
|
||||||
|
}
|
||||||
|
|
||||||
|
// 弹幕属性位值
|
||||||
|
enum DMAttrBit {
|
||||||
|
DMAttrBitProtect = 0; // 保护弹幕
|
||||||
|
DMAttrBitFromLive = 1; // 直播弹幕
|
||||||
|
DMAttrHighLike = 2; // 高赞弹幕
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -246,6 +325,7 @@ message DmPlayerConfigReq {
|
|||||||
PlayerDanmakuEnableblocklist enableblocklist = 17; // 是否开启屏蔽列表
|
PlayerDanmakuEnableblocklist enableblocklist = 17; // 是否开启屏蔽列表
|
||||||
InlinePlayerDanmakuSwitch inlinePlayerDanmakuSwitch = 18; // 是否开启弹幕
|
InlinePlayerDanmakuSwitch inlinePlayerDanmakuSwitch = 18; // 是否开启弹幕
|
||||||
PlayerDanmakuSeniorModeSwitch senior_mode_switch = 19; //
|
PlayerDanmakuSeniorModeSwitch senior_mode_switch = 19; //
|
||||||
|
PlayerDanmakuAiRecommendedLevelV2 ai_recommended_level_v2 = 20; //
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -280,6 +360,14 @@ message DmSegMobileReq {
|
|||||||
int64 segment_index = 4;
|
int64 segment_index = 4;
|
||||||
// 是否青少年模式
|
// 是否青少年模式
|
||||||
int32 teenagers_mode = 5;
|
int32 teenagers_mode = 5;
|
||||||
|
//
|
||||||
|
int64 ps = 6;
|
||||||
|
//
|
||||||
|
int64 pe = 7;
|
||||||
|
//
|
||||||
|
int32 pull_mode = 8;
|
||||||
|
//
|
||||||
|
int32 from_scene = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ott弹幕列表-响应
|
// ott弹幕列表-响应
|
||||||
@ -361,6 +449,10 @@ message DmViewReply {
|
|||||||
BuzzwordConfig buzzword_config = 15;
|
BuzzwordConfig buzzword_config = 15;
|
||||||
//
|
//
|
||||||
repeated Expressions expressions = 16;
|
repeated Expressions expressions = 16;
|
||||||
|
//
|
||||||
|
repeated PostPanel post_panel = 17;
|
||||||
|
//
|
||||||
|
repeated string activity_meta = 18;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 客户端弹幕元数据-请求
|
// 客户端弹幕元数据-请求
|
||||||
@ -405,6 +497,10 @@ message DmWebViewReply {
|
|||||||
repeated string report_filter_content = 11;
|
repeated string report_filter_content = 11;
|
||||||
//
|
//
|
||||||
repeated Expressions expressions = 12;
|
repeated Expressions expressions = 12;
|
||||||
|
//
|
||||||
|
repeated PostPanel post_panel = 13;
|
||||||
|
//
|
||||||
|
repeated string activity_meta = 14;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -429,6 +525,14 @@ message Expressions {
|
|||||||
repeated Expression data = 1;
|
repeated Expression data = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message Label {
|
||||||
|
//
|
||||||
|
string title = 1;
|
||||||
|
//
|
||||||
|
repeated string content = 2;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
message Period {
|
message Period {
|
||||||
//
|
//
|
||||||
@ -441,6 +545,8 @@ message Period {
|
|||||||
message InlinePlayerDanmakuSwitch {bool value = 1;}
|
message InlinePlayerDanmakuSwitch {bool value = 1;}
|
||||||
// 智能云屏蔽等级
|
// 智能云屏蔽等级
|
||||||
message PlayerDanmakuAiRecommendedLevel {bool value = 1;}
|
message PlayerDanmakuAiRecommendedLevel {bool value = 1;}
|
||||||
|
//
|
||||||
|
message PlayerDanmakuAiRecommendedLevelV2 {int32 value = 1;}
|
||||||
// 是否开启智能云屏蔽
|
// 是否开启智能云屏蔽
|
||||||
message PlayerDanmakuAiRecommendedSwitch {bool value = 1;}
|
message PlayerDanmakuAiRecommendedSwitch {bool value = 1;}
|
||||||
// 是否屏蔽底端弹幕
|
// 是否屏蔽底端弹幕
|
||||||
@ -474,6 +580,51 @@ message PlayerDanmakuSwitchSave {bool value = 1;}
|
|||||||
// 是否使用推荐弹幕设置
|
// 是否使用推荐弹幕设置
|
||||||
message PlayerDanmakuUseDefaultConfig {bool value = 1;}
|
message PlayerDanmakuUseDefaultConfig {bool value = 1;}
|
||||||
|
|
||||||
|
//
|
||||||
|
message PostPanel {
|
||||||
|
//
|
||||||
|
int64 start = 1;
|
||||||
|
//
|
||||||
|
int64 end = 2;
|
||||||
|
//
|
||||||
|
int64 priority = 3;
|
||||||
|
//
|
||||||
|
int64 biz_id = 4;
|
||||||
|
//
|
||||||
|
PostPanelBizType biz_type = 5;
|
||||||
|
//
|
||||||
|
ClickButton click_button = 6;
|
||||||
|
//
|
||||||
|
TextInput text_input = 7;
|
||||||
|
//
|
||||||
|
CheckBox check_box = 8;
|
||||||
|
//
|
||||||
|
Toast toast = 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum PostPanelBizType {
|
||||||
|
PostPanelBizTypeNone = 0; //
|
||||||
|
PostPanelBizTypeEncourage = 1; //
|
||||||
|
PostPanelBizTypeColorDM = 2; //
|
||||||
|
PostPanelBizTypeNFTDM = 3; //
|
||||||
|
PostPanelBizTypeFragClose = 4; //
|
||||||
|
PostPanelBizTypeRecommend = 5; //
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum PostStatus {
|
||||||
|
PostStatusNormal = 0; //
|
||||||
|
PostStatusClosed = 1; //
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum RenderType {
|
||||||
|
RenderTypeNone = 0; //
|
||||||
|
RenderTypeSingle = 1; //
|
||||||
|
RenderTypeRotation = 2; //
|
||||||
|
}
|
||||||
|
|
||||||
// 修改弹幕配置-响应
|
// 修改弹幕配置-响应
|
||||||
message Response {
|
message Response {
|
||||||
//
|
//
|
||||||
@ -482,6 +633,19 @@ message Response {
|
|||||||
string message = 2;
|
string message = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum SubtitleAiStatus {
|
||||||
|
None = 0; //
|
||||||
|
Exposure = 1; //
|
||||||
|
Assist = 2; //
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum SubtitleAiType {
|
||||||
|
Normal = 0; //
|
||||||
|
Translate = 1; //
|
||||||
|
}
|
||||||
|
|
||||||
// 单个字幕信息
|
// 单个字幕信息
|
||||||
message SubtitleItem {
|
message SubtitleItem {
|
||||||
// 字幕id
|
// 字幕id
|
||||||
@ -498,6 +662,12 @@ message SubtitleItem {
|
|||||||
UserInfo author = 6;
|
UserInfo author = 6;
|
||||||
// 字幕类型
|
// 字幕类型
|
||||||
SubtitleType type = 7;
|
SubtitleType type = 7;
|
||||||
|
//
|
||||||
|
string lan_doc_brief = 8;
|
||||||
|
//
|
||||||
|
SubtitleAiType ai_type = 9;
|
||||||
|
//
|
||||||
|
SubtitleAiStatus ai_status = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum SubtitleType {
|
enum SubtitleType {
|
||||||
@ -505,6 +675,44 @@ enum SubtitleType {
|
|||||||
AI = 1; // AI生成字幕
|
AI = 1; // AI生成字幕
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message TextInput {
|
||||||
|
//
|
||||||
|
repeated string portrait_placeholder = 1;
|
||||||
|
//
|
||||||
|
repeated string landscape_placeholder = 2;
|
||||||
|
//
|
||||||
|
RenderType render_type = 3;
|
||||||
|
//
|
||||||
|
bool placeholder_post = 4;
|
||||||
|
//
|
||||||
|
bool show = 5;
|
||||||
|
//
|
||||||
|
repeated Avatar avatar = 6;
|
||||||
|
//
|
||||||
|
PostStatus post_status = 7;
|
||||||
|
//
|
||||||
|
Label label = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message Toast {
|
||||||
|
//
|
||||||
|
string text = 1;
|
||||||
|
//
|
||||||
|
int32 duration = 2;
|
||||||
|
//
|
||||||
|
bool show = 3;
|
||||||
|
//
|
||||||
|
Button button = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
enum ToastFunctionType {
|
||||||
|
ToastFunctionTypeNone = 0; //
|
||||||
|
ToastFunctionTypePostPanel = 1; //
|
||||||
|
}
|
||||||
|
|
||||||
// 字幕作者信息
|
// 字幕作者信息
|
||||||
message UserInfo {
|
message UserInfo {
|
||||||
// 用户mid
|
// 用户mid
|
||||||
|
|||||||
@ -23,9 +23,11 @@ message QoeReportReq {
|
|||||||
//
|
//
|
||||||
string business_type = 5;
|
string business_type = 5;
|
||||||
//
|
//
|
||||||
QoeScoreResult score_result = 6;
|
int64 oid = 6;
|
||||||
//
|
//
|
||||||
string business_data = 7;
|
QoeScoreResult score_result = 7;
|
||||||
|
//
|
||||||
|
string business_data = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@ -71,6 +71,19 @@ message DummyRsp {
|
|||||||
reserved 1;
|
reserved 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 表情资源信息
|
||||||
|
message EmotionInfo {
|
||||||
|
// 表情
|
||||||
|
string text = 1;
|
||||||
|
// 表情url
|
||||||
|
string url = 2;
|
||||||
|
// 表情大小
|
||||||
|
// 0:未知 1:min 2:max
|
||||||
|
int32 size = 3;
|
||||||
|
// gif url
|
||||||
|
string gif_url = 4;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
enum ENUM_FOLD {
|
enum ENUM_FOLD {
|
||||||
FOLD_NO = 0; //
|
FOLD_NO = 0; //
|
||||||
@ -86,19 +99,6 @@ enum ENUM_UNREAD_TYPE{
|
|||||||
UNREAD_TYPE_DUSTBIN = 3; //
|
UNREAD_TYPE_DUSTBIN = 3; //
|
||||||
}
|
}
|
||||||
|
|
||||||
// 表情资源信息
|
|
||||||
message EmotionInfo {
|
|
||||||
// 表情
|
|
||||||
string text = 1;
|
|
||||||
// 表情url
|
|
||||||
string url = 2;
|
|
||||||
// 表情大小
|
|
||||||
// 0:未知 1:min 2:max
|
|
||||||
int32 size = 3;
|
|
||||||
// gif url
|
|
||||||
string gif_url = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
message MsgDetail {
|
message MsgDetail {
|
||||||
//
|
//
|
||||||
@ -476,6 +476,10 @@ message RspSingleUnread {
|
|||||||
int32 dustbin_push_msg = 4;
|
int32 dustbin_push_msg = 4;
|
||||||
//
|
//
|
||||||
int64 dustbin_unread = 5;
|
int64 dustbin_unread = 5;
|
||||||
|
//
|
||||||
|
int64 biz_msg_unfollow_unread = 6;
|
||||||
|
//
|
||||||
|
int64 biz_msg_follow_unread = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -响应
|
// -响应
|
||||||
@ -509,7 +513,7 @@ message RspUpdateTotalUnread {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
enum SESSION_TYPE { //
|
enum SESSION_TYPE {
|
||||||
UNKNOWN = 0; //
|
UNKNOWN = 0; //
|
||||||
UN_FOLD_SESSION = 1; //
|
UN_FOLD_SESSION = 1; //
|
||||||
UN_FOLLOW_SINGLE_SESSION = 2; //
|
UN_FOLLOW_SINGLE_SESSION = 2; //
|
||||||
@ -564,39 +568,3 @@ message SysMsgInterfaceLastMsgRsp {
|
|||||||
//
|
//
|
||||||
int64 id = 4;
|
int64 id = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -118,6 +118,38 @@ message KeyHitInfos {
|
|||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message Medal {
|
||||||
|
//
|
||||||
|
int64 uid = 1;
|
||||||
|
//
|
||||||
|
int32 medal_id = 2;
|
||||||
|
//
|
||||||
|
int32 level = 3;
|
||||||
|
//
|
||||||
|
string medal_name = 4;
|
||||||
|
//
|
||||||
|
int32 score = 5;
|
||||||
|
//
|
||||||
|
int32 intimacy = 6;
|
||||||
|
//
|
||||||
|
int32 master_status = 7;
|
||||||
|
//
|
||||||
|
int32 is_receive = 8;
|
||||||
|
//
|
||||||
|
int64 medal_color_start = 9;
|
||||||
|
//
|
||||||
|
int64 medal_color_end = 10;
|
||||||
|
//
|
||||||
|
int64 medal_color_border = 11;
|
||||||
|
//
|
||||||
|
int64 medal_color_name = 12;
|
||||||
|
//
|
||||||
|
int64 medal_color_level = 13;
|
||||||
|
//
|
||||||
|
int64 guard_level = 14;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
message Msg {
|
message Msg {
|
||||||
// 发送方mid
|
// 发送方mid
|
||||||
@ -194,6 +226,7 @@ enum MsgType {
|
|||||||
EN_MSG_TYPE_PICTURE_CARD = 13; // 图片卡
|
EN_MSG_TYPE_PICTURE_CARD = 13; // 图片卡
|
||||||
EN_MSG_TYPE_COMMON_SHARE_CARD = 14; // 异形卡
|
EN_MSG_TYPE_COMMON_SHARE_CARD = 14; // 异形卡
|
||||||
EN_MSG_TYPE_BIZ_MSG_TYPE = 50; //
|
EN_MSG_TYPE_BIZ_MSG_TYPE = 50; //
|
||||||
|
EN_MSG_TYPE_MODIFY_MSG_TYPE = 51; //
|
||||||
|
|
||||||
// 功能类系统消息类型
|
// 功能类系统消息类型
|
||||||
EN_MSG_TYPE_GROUP_MEMBER_CHANGED = 101; // 群成员变更
|
EN_MSG_TYPE_GROUP_MEMBER_CHANGED = 101; // 群成员变更
|
||||||
@ -328,4 +361,18 @@ message SessionInfo {
|
|||||||
AccountInfo account_info = 24;
|
AccountInfo account_info = 24;
|
||||||
//
|
//
|
||||||
int32 live_status = 25;
|
int32 live_status = 25;
|
||||||
|
//
|
||||||
|
int32 biz_msg_unread_count = 26;
|
||||||
|
//
|
||||||
|
UserLabel user_label = 27;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message UserLabel {
|
||||||
|
//
|
||||||
|
int32 label_type = 1;
|
||||||
|
//
|
||||||
|
Medal medal = 2;
|
||||||
|
//
|
||||||
|
int32 guardian_relation = 3;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,7 @@ message Network {
|
|||||||
enum NetworkType {
|
enum NetworkType {
|
||||||
NT_UNKNOWN = 0; // 未知
|
NT_UNKNOWN = 0; // 未知
|
||||||
WIFI = 1; // WIFI
|
WIFI = 1; // WIFI
|
||||||
CELLULAR = 2; // 移动网络
|
CELLULAR = 2; // 蜂窝网络
|
||||||
OFFLINE = 3; // 未连接
|
OFFLINE = 3; // 未连接
|
||||||
OTHERNET = 4; // 其他网络
|
OTHERNET = 4; // 其他网络
|
||||||
ETHERNET = 5; // 以太网
|
ETHERNET = 5; // 以太网
|
||||||
|
|||||||
@ -3,30 +3,64 @@ syntax = "proto3";
|
|||||||
package bilibili.tv.interfaces.dm.v1;
|
package bilibili.tv.interfaces.dm.v1;
|
||||||
|
|
||||||
//
|
//
|
||||||
message CommandDmOtt {
|
message Chronos {
|
||||||
//
|
//
|
||||||
|
string md5 = 1;
|
||||||
|
//
|
||||||
|
string file = 2;
|
||||||
|
//
|
||||||
|
string sign = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 互动弹幕条目信息
|
||||||
|
message CommandDm {
|
||||||
|
// 弹幕id
|
||||||
int64 id = 1;
|
int64 id = 1;
|
||||||
//
|
// 对象视频cid
|
||||||
int64 oid = 2;
|
int64 oid = 2;
|
||||||
//
|
// 发送者mid
|
||||||
|
string mid = 3;
|
||||||
|
// 互动弹幕指令
|
||||||
|
string command = 4;
|
||||||
|
// 互动弹幕正文
|
||||||
|
string content = 5;
|
||||||
|
// 出现时间
|
||||||
|
int32 progress = 6;
|
||||||
|
// 创建时间
|
||||||
|
string ctime = 7;
|
||||||
|
// 发布时间
|
||||||
|
string mtime = 8;
|
||||||
|
// 扩展json数据
|
||||||
|
string extra = 9;
|
||||||
|
// 弹幕id str类型
|
||||||
|
string idStr = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ott互动弹幕条目信息
|
||||||
|
message CommandDmOtt {
|
||||||
|
// 弹幕id
|
||||||
|
int64 id = 1;
|
||||||
|
// 对象视频cid
|
||||||
|
int64 oid = 2;
|
||||||
|
// 发送者mid
|
||||||
int64 mid = 3;
|
int64 mid = 3;
|
||||||
//
|
//
|
||||||
int32 type = 4;
|
int32 type = 4;
|
||||||
//
|
// 互动弹幕指令
|
||||||
string command = 5;
|
string command = 5;
|
||||||
//
|
// 互动弹幕正文
|
||||||
string content = 6;
|
string content = 6;
|
||||||
//
|
//
|
||||||
int32 state = 7;
|
int32 state = 7;
|
||||||
//
|
// 出现时间
|
||||||
int32 progress = 8;
|
int32 progress = 8;
|
||||||
//
|
// 创建时间
|
||||||
string ctime = 9;
|
string ctime = 9;
|
||||||
//
|
// 发布时间
|
||||||
string mtime = 10;
|
string mtime = 10;
|
||||||
//
|
// 扩展json数据
|
||||||
string extra = 11;
|
string extra = 11;
|
||||||
//
|
// 弹幕id str类型
|
||||||
string id_str = 12;
|
string id_str = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -214,6 +248,8 @@ message DmViewReply {
|
|||||||
string text_placeholder = 11;
|
string text_placeholder = 11;
|
||||||
// 弹幕输入框文案
|
// 弹幕输入框文案
|
||||||
string input_placeholder = 12;
|
string input_placeholder = 12;
|
||||||
|
//
|
||||||
|
bool command_close = 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 客户端弹幕元数据-请求
|
// 客户端弹幕元数据-请求
|
||||||
@ -249,6 +285,38 @@ message SubtitleItem {
|
|||||||
UserInfo author = 6;
|
UserInfo author = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message TvViewProgressReply {
|
||||||
|
//
|
||||||
|
VideoGuide video_guide = 1;
|
||||||
|
//
|
||||||
|
Chronos chronos = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message TvViewProgressReq {
|
||||||
|
//
|
||||||
|
int64 aid = 1;
|
||||||
|
//
|
||||||
|
int64 cid = 2;
|
||||||
|
//
|
||||||
|
int64 up_mid = 3;
|
||||||
|
//
|
||||||
|
string engine_version = 4;
|
||||||
|
//
|
||||||
|
string message_protocol = 5;
|
||||||
|
//
|
||||||
|
string service_key = 6;
|
||||||
|
//
|
||||||
|
int64 sid = 7;
|
||||||
|
//
|
||||||
|
int64 pid = 8;
|
||||||
|
//
|
||||||
|
int64 from = 9;
|
||||||
|
//
|
||||||
|
string guest_access_key = 10;
|
||||||
|
}
|
||||||
|
|
||||||
// 字幕作者信息
|
// 字幕作者信息
|
||||||
message UserInfo {
|
message UserInfo {
|
||||||
// 用户mid
|
// 用户mid
|
||||||
@ -265,6 +333,12 @@ message UserInfo {
|
|||||||
int32 rank = 6;
|
int32 rank = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
message VideoGuide {
|
||||||
|
//
|
||||||
|
repeated CommandDm command_dms = 2;
|
||||||
|
}
|
||||||
|
|
||||||
// 智能防挡弹幕蒙版信息
|
// 智能防挡弹幕蒙版信息
|
||||||
message VideoMask {
|
message VideoMask {
|
||||||
// 视频cid
|
// 视频cid
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user