From 58c9d7f367d2b88316350b4e1f52db68a2dfaa4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E6=98=93=E5=A7=90QwQ?= <45892418+SocialSisterYi@users.noreply.github.com> Date: Fri, 24 Jun 2022 23:50:01 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E3=80=90gRPC=20API=E3=80=91=20proto?= =?UTF-8?q?=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bilibili/community/service/dm/v1/dm.proto | 376 ++++++++++++++---- .../community/service/govern/v1/govern.proto | 6 +- grpc_api/bilibili/im/interfaces/v1/im.proto | 82 ++-- grpc_api/bilibili/im/type/im.proto | 237 ++++++----- .../bilibili/metadata/network/network.proto | 22 +- .../metadata/restriction/restriction.proto | 6 +- .../bilibili/tv/interfaces/dm/v1/dm.proto | 164 +++++--- 7 files changed, 596 insertions(+), 297 deletions(-) diff --git a/grpc_api/bilibili/community/service/dm/v1/dm.proto b/grpc_api/bilibili/community/service/dm/v1/dm.proto index 5f0e0ce..533353a 100644 --- a/grpc_api/bilibili/community/service/dm/v1/dm.proto +++ b/grpc_api/bilibili/community/service/dm/v1/dm.proto @@ -18,6 +18,38 @@ service DM { 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 { // @@ -40,6 +72,43 @@ message BuzzwordShowConfig { 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 { // 弹幕id @@ -64,13 +133,6 @@ message CommandDm { string idStr = 10; } -// 弹幕属性位值 -enum DMAttrBit { - DMAttrBitProtect = 0; // 保护弹幕 - DMAttrBitFromLive = 1; // 直播弹幕 - DMAttrHighLike = 2; // 高赞弹幕 -} - // 弹幕ai云屏蔽列表 message DanmakuAIFlag { // 弹幕ai云屏蔽条目 @@ -106,12 +168,16 @@ message DanmakuElem { // 弹幕属性位(bin求AND) // bit0:保护 bit1:直播 bit2:高赞 int32 attr = 13; + // + string animation = 22; } // 弹幕ai云屏蔽条目 message DanmakuFlag { - int64 dmid = 1; // 弹幕dmid - uint32 flag = 2; // 评分 + // 弹幕dmid + int64 dmid = 1; + // 评分 + uint32 flag = 2; } // 云屏蔽配置信息 @@ -126,45 +192,49 @@ message DanmakuFlagConfig { // 弹幕默认配置 message DanmuDefaultPlayerConfig { - bool player_danmaku_use_default_config = 1; // 是否使用推荐弹幕设置 - bool player_danmaku_ai_recommended_switch = 4; // 是否开启智能云屏蔽 - int32 player_danmaku_ai_recommended_level = 5; // 智能云屏蔽等级 - bool player_danmaku_blocktop = 6; // 是否屏蔽顶端弹幕 - bool player_danmaku_blockscroll = 7; // 是否屏蔽滚动弹幕 - bool player_danmaku_blockbottom = 8; // 是否屏蔽底端弹幕 - bool player_danmaku_blockcolorful = 9; // 是否屏蔽彩色弹幕 - bool player_danmaku_blockrepeat = 10; // 是否屏蔽重复弹幕 - bool player_danmaku_blockspecial = 11; // 是否屏蔽高级弹幕 - float player_danmaku_opacity = 12; // 弹幕不透明度 - float player_danmaku_scalingfactor = 13; // 弹幕缩放比例 - float player_danmaku_domain = 14; // 弹幕显示区域 - int32 player_danmaku_speed = 15; // 弹幕速度 - bool inline_player_danmaku_switch = 16; // 是否开启弹幕 - int32 player_danmaku_senior_mode_switch = 17; // + bool player_danmaku_use_default_config = 1; // 是否使用推荐弹幕设置 + bool player_danmaku_ai_recommended_switch = 4; // 是否开启智能云屏蔽 + int32 player_danmaku_ai_recommended_level = 5; // 智能云屏蔽等级 + bool player_danmaku_blocktop = 6; // 是否屏蔽顶端弹幕 + bool player_danmaku_blockscroll = 7; // 是否屏蔽滚动弹幕 + bool player_danmaku_blockbottom = 8; // 是否屏蔽底端弹幕 + bool player_danmaku_blockcolorful = 9; // 是否屏蔽彩色弹幕 + bool player_danmaku_blockrepeat = 10; // 是否屏蔽重复弹幕 + bool player_danmaku_blockspecial = 11; // 是否屏蔽高级弹幕 + float player_danmaku_opacity = 12; // 弹幕不透明度 + float player_danmaku_scalingfactor = 13; // 弹幕缩放比例 + float player_danmaku_domain = 14; // 弹幕显示区域 + int32 player_danmaku_speed = 15; // 弹幕速度 + bool inline_player_danmaku_switch = 16; // 是否开启弹幕 + int32 player_danmaku_senior_mode_switch = 17; // + int32 player_danmaku_ai_recommended_level_v2 = 18; // + map player_danmaku_ai_recommended_level_v2_map = 19; // } // 弹幕配置 message DanmuPlayerConfig { - bool player_danmaku_switch = 1; // 是否开启弹幕 - bool player_danmaku_switch_save = 2; // 是否记录弹幕开关设置 - bool player_danmaku_use_default_config = 3; // 是否使用推荐弹幕设置 - bool player_danmaku_ai_recommended_switch = 4; // 是否开启智能云屏蔽 - int32 player_danmaku_ai_recommended_level = 5; // 智能云屏蔽等级 - bool player_danmaku_blocktop = 6; // 是否屏蔽顶端弹幕 - bool player_danmaku_blockscroll = 7; // 是否屏蔽滚动弹幕 - bool player_danmaku_blockbottom = 8; // 是否屏蔽底端弹幕 - bool player_danmaku_blockcolorful = 9; // 是否屏蔽彩色弹幕 - bool player_danmaku_blockrepeat = 10; // 是否屏蔽重复弹幕 - bool player_danmaku_blockspecial = 11; // 是否屏蔽高级弹幕 - float player_danmaku_opacity = 12; // 弹幕不透明度 - float player_danmaku_scalingfactor = 13; // 弹幕缩放比例 - float player_danmaku_domain = 14; // 弹幕显示区域 - int32 player_danmaku_speed = 15; // 弹幕速度 - bool player_danmaku_enableblocklist = 16; // 是否开启屏蔽列表 - bool inline_player_danmaku_switch = 17; // 是否开启弹幕 - int32 inline_player_danmaku_config = 18; // - int32 player_danmaku_ios_switch_save = 19; // - int32 player_danmaku_senior_mode_switch = 20; // + bool player_danmaku_switch = 1; // 是否开启弹幕 + bool player_danmaku_switch_save = 2; // 是否记录弹幕开关设置 + bool player_danmaku_use_default_config = 3; // 是否使用推荐弹幕设置 + bool player_danmaku_ai_recommended_switch = 4; // 是否开启智能云屏蔽 + int32 player_danmaku_ai_recommended_level = 5; // 智能云屏蔽等级 + bool player_danmaku_blocktop = 6; // 是否屏蔽顶端弹幕 + bool player_danmaku_blockscroll = 7; // 是否屏蔽滚动弹幕 + bool player_danmaku_blockbottom = 8; // 是否屏蔽底端弹幕 + bool player_danmaku_blockcolorful = 9; // 是否屏蔽彩色弹幕 + bool player_danmaku_blockrepeat = 10; // 是否屏蔽重复弹幕 + bool player_danmaku_blockspecial = 11; // 是否屏蔽高级弹幕 + float player_danmaku_opacity = 12; // 弹幕不透明度 + float player_danmaku_scalingfactor = 13; // 弹幕缩放比例 + float player_danmaku_domain = 14; // 弹幕显示区域 + int32 player_danmaku_speed = 15; // 弹幕速度 + bool player_danmaku_enableblocklist = 16; // 是否开启屏蔽列表 + bool inline_player_danmaku_switch = 17; // 是否开启弹幕 + int32 inline_player_danmaku_config = 18; // + int32 player_danmaku_ios_switch_save = 19; // + int32 player_danmaku_senior_mode_switch = 20; // + int32 player_danmaku_ai_recommended_level_v2 = 21; // + map player_danmaku_ai_recommended_level_v2_map = 22; // } // 弹幕显示区域自动配置 @@ -187,27 +257,36 @@ message DanmuPlayerViewConfig { // web端用户弹幕配置 message DanmuWebPlayerConfig { - bool dm_switch = 1; // 是否开启弹幕 - bool ai_switch = 2; // 是否开启智能云屏蔽 - int32 ai_level = 3; // 智能云屏蔽等级 - bool blocktop = 4; // 是否屏蔽顶端弹幕 - bool blockscroll = 5; // 是否屏蔽滚动弹幕 - bool blockbottom = 6; // 是否屏蔽底端弹幕 - bool blockcolor = 7; // 是否屏蔽彩色弹幕 - bool blockspecial = 8; // 是否屏蔽重复弹幕 - bool preventshade = 9; // - bool dmask = 10; // - float opacity = 11; // - int32 dmarea = 12; // - float speedplus = 13; // - float fontsize = 14; // 弹幕字号 - bool screensync = 15; // - bool speedsync = 16; // - string fontfamily = 17; // - bool bold = 18; // 是否使用加粗 - int32 fontborder = 19; // - string draw_type = 20; // 弹幕渲染类型 - int32 senior_mode_switch = 21; // + bool dm_switch = 1; // 是否开启弹幕 + bool ai_switch = 2; // 是否开启智能云屏蔽 + int32 ai_level = 3; // 智能云屏蔽等级 + bool blocktop = 4; // 是否屏蔽顶端弹幕 + bool blockscroll = 5; // 是否屏蔽滚动弹幕 + bool blockbottom = 6; // 是否屏蔽底端弹幕 + bool blockcolor = 7; // 是否屏蔽彩色弹幕 + bool blockspecial = 8; // 是否屏蔽重复弹幕 + bool preventshade = 9; // + bool dmask = 10; // + float opacity = 11; // + int32 dmarea = 12; // + float speedplus = 13; // + float fontsize = 14; // 弹幕字号 + bool screensync = 15; // + bool speedsync = 16; // + string fontfamily = 17; // + bool bold = 18; // 是否使用加粗 + int32 fontborder = 19; // + string draw_type = 20; // 弹幕渲染类型 + int32 senior_mode_switch = 21; // + int32 ai_level_v2 = 22; // + map ai_level_v2_map = 23; // +} + +// 弹幕属性位值 +enum DMAttrBit { + DMAttrBitProtect = 0; // 保护弹幕 + DMAttrBitFromLive = 1; // 直播弹幕 + DMAttrHighLike = 2; // 高赞弹幕 } // @@ -227,25 +306,26 @@ message DmExpoReportRes { // 修改弹幕配置-请求 message DmPlayerConfigReq { - int64 ts = 1; // - PlayerDanmakuSwitch switch = 2; // 是否开启弹幕 - PlayerDanmakuSwitchSave switch_save = 3; // 是否记录弹幕开关设置 - PlayerDanmakuUseDefaultConfig use_default_config = 4; // 是否使用推荐弹幕设置 - PlayerDanmakuAiRecommendedSwitch ai_recommended_switch = 5; // 是否开启智能云屏蔽 - PlayerDanmakuAiRecommendedLevel ai_recommended_level = 6; // 智能云屏蔽等级 - PlayerDanmakuBlocktop blocktop = 7; // 是否屏蔽顶端弹幕 - PlayerDanmakuBlockscroll blockscroll = 8; // 是否屏蔽滚动弹幕 - PlayerDanmakuBlockbottom blockbottom = 9; // 是否屏蔽底端弹幕 - PlayerDanmakuBlockcolorful blockcolorful = 10; // 是否屏蔽彩色弹幕 - PlayerDanmakuBlockrepeat blockrepeat = 11; // 是否屏蔽重复弹幕 - PlayerDanmakuBlockspecial blockspecial = 12; // 是否屏蔽高级弹幕 - PlayerDanmakuOpacity opacity = 13; // 弹幕不透明度 - PlayerDanmakuScalingfactor scalingfactor = 14; // 弹幕缩放比例 - PlayerDanmakuDomain domain = 15; // 弹幕显示区域 - PlayerDanmakuSpeed speed = 16; // 弹幕速度 - PlayerDanmakuEnableblocklist enableblocklist = 17; // 是否开启屏蔽列表 - InlinePlayerDanmakuSwitch inlinePlayerDanmakuSwitch = 18; // 是否开启弹幕 - PlayerDanmakuSeniorModeSwitch senior_mode_switch = 19; // + int64 ts = 1; // + PlayerDanmakuSwitch switch = 2; // 是否开启弹幕 + PlayerDanmakuSwitchSave switch_save = 3; // 是否记录弹幕开关设置 + PlayerDanmakuUseDefaultConfig use_default_config = 4; // 是否使用推荐弹幕设置 + PlayerDanmakuAiRecommendedSwitch ai_recommended_switch = 5; // 是否开启智能云屏蔽 + PlayerDanmakuAiRecommendedLevel ai_recommended_level = 6; // 智能云屏蔽等级 + PlayerDanmakuBlocktop blocktop = 7; // 是否屏蔽顶端弹幕 + PlayerDanmakuBlockscroll blockscroll = 8; // 是否屏蔽滚动弹幕 + PlayerDanmakuBlockbottom blockbottom = 9; // 是否屏蔽底端弹幕 + PlayerDanmakuBlockcolorful blockcolorful = 10; // 是否屏蔽彩色弹幕 + PlayerDanmakuBlockrepeat blockrepeat = 11; // 是否屏蔽重复弹幕 + PlayerDanmakuBlockspecial blockspecial = 12; // 是否屏蔽高级弹幕 + PlayerDanmakuOpacity opacity = 13; // 弹幕不透明度 + PlayerDanmakuScalingfactor scalingfactor = 14; // 弹幕缩放比例 + PlayerDanmakuDomain domain = 15; // 弹幕显示区域 + PlayerDanmakuSpeed speed = 16; // 弹幕速度 + PlayerDanmakuEnableblocklist enableblocklist = 17; // 是否开启屏蔽列表 + InlinePlayerDanmakuSwitch inlinePlayerDanmakuSwitch = 18; // 是否开启弹幕 + PlayerDanmakuSeniorModeSwitch senior_mode_switch = 19; // + PlayerDanmakuAiRecommendedLevelV2 ai_recommended_level_v2 = 20; // } // @@ -280,6 +360,14 @@ message DmSegMobileReq { int64 segment_index = 4; // 是否青少年模式 int32 teenagers_mode = 5; + // + int64 ps = 6; + // + int64 pe = 7; + // + int32 pull_mode = 8; + // + int32 from_scene = 9; } // ott弹幕列表-响应 @@ -361,6 +449,10 @@ message DmViewReply { BuzzwordConfig buzzword_config = 15; // 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 Expressions expressions = 12; + // + repeated PostPanel post_panel = 13; + // + repeated string activity_meta = 14; } // @@ -429,6 +525,14 @@ message Expressions { repeated Expression data = 1; } +// +message Label { + // + string title = 1; + // + repeated string content = 2; +} + // message Period { // @@ -441,6 +545,8 @@ message Period { message InlinePlayerDanmakuSwitch {bool value = 1;} // 智能云屏蔽等级 message PlayerDanmakuAiRecommendedLevel {bool value = 1;} +// +message PlayerDanmakuAiRecommendedLevelV2 {int32 value = 1;} // 是否开启智能云屏蔽 message PlayerDanmakuAiRecommendedSwitch {bool value = 1;} // 是否屏蔽底端弹幕 @@ -474,6 +580,51 @@ message PlayerDanmakuSwitchSave {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 { // @@ -482,6 +633,19 @@ message Response { string message = 2; } +// +enum SubtitleAiStatus { + None = 0; // + Exposure = 1; // + Assist = 2; // +} + +// +enum SubtitleAiType { + Normal = 0; // + Translate = 1; // +} + // 单个字幕信息 message SubtitleItem { // 字幕id @@ -498,6 +662,12 @@ message SubtitleItem { UserInfo author = 6; // 字幕类型 SubtitleType type = 7; + // + string lan_doc_brief = 8; + // + SubtitleAiType ai_type = 9; + // + SubtitleAiStatus ai_status = 10; } enum SubtitleType { @@ -505,6 +675,44 @@ enum SubtitleType { 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 { // 用户mid diff --git a/grpc_api/bilibili/community/service/govern/v1/govern.proto b/grpc_api/bilibili/community/service/govern/v1/govern.proto index 6ae4ac2..6656eaa 100644 --- a/grpc_api/bilibili/community/service/govern/v1/govern.proto +++ b/grpc_api/bilibili/community/service/govern/v1/govern.proto @@ -23,9 +23,11 @@ message QoeReportReq { // string business_type = 5; // - QoeScoreResult score_result = 6; + int64 oid = 6; // - string business_data = 7; + QoeScoreResult score_result = 7; + // + string business_data = 8; } // diff --git a/grpc_api/bilibili/im/interfaces/v1/im.proto b/grpc_api/bilibili/im/interfaces/v1/im.proto index 029c181..110f727 100644 --- a/grpc_api/bilibili/im/interfaces/v1/im.proto +++ b/grpc_api/bilibili/im/interfaces/v1/im.proto @@ -71,21 +71,6 @@ message DummyRsp { reserved 1; } -// -enum ENUM_FOLD { - FOLD_NO = 0; // - FOLD_YES = 1; // - FOLD_UNKNOWN = 2; // -} - -// -enum ENUM_UNREAD_TYPE{ - UNREAD_TYPE_ALL = 0; // - UNREAD_TYPE_FOLLOW = 1; // - UNREAD_TYPE_UNFOLLOW = 2; // - UNREAD_TYPE_DUSTBIN = 3; // -} - // 表情资源信息 message EmotionInfo { // 表情 @@ -99,6 +84,21 @@ message EmotionInfo { string gif_url = 4; } +// +enum ENUM_FOLD { + FOLD_NO = 0; // + FOLD_YES = 1; // + FOLD_UNKNOWN = 2; // +} + +// +enum ENUM_UNREAD_TYPE{ + UNREAD_TYPE_ALL = 0; // + UNREAD_TYPE_FOLLOW = 1; // + UNREAD_TYPE_UNFOLLOW = 2; // + UNREAD_TYPE_DUSTBIN = 3; // +} + // message MsgDetail { // @@ -476,6 +476,10 @@ message RspSingleUnread { int32 dustbin_push_msg = 4; // int64 dustbin_unread = 5; + // + int64 biz_msg_unfollow_unread = 6; + // + int64 biz_msg_follow_unread = 7; } // -响应 @@ -509,13 +513,13 @@ message RspUpdateTotalUnread { } // -enum SESSION_TYPE { // - UNKNOWN = 0; // - UN_FOLD_SESSION = 1; // +enum SESSION_TYPE { + UNKNOWN = 0; // + UN_FOLD_SESSION = 1; // UN_FOLLOW_SINGLE_SESSION = 2; // - MY_GROUP_SESSION = 3; // - ALL_SESSION = 4; // - DUSTBIN_SESSION = 5; // + MY_GROUP_SESSION = 3; // + ALL_SESSION = 4; // + DUSTBIN_SESSION = 5; // } // @@ -564,39 +568,3 @@ message SysMsgInterfaceLastMsgRsp { // int64 id = 4; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/grpc_api/bilibili/im/type/im.proto b/grpc_api/bilibili/im/type/im.proto index a7d6cf7..c9b086d 100644 --- a/grpc_api/bilibili/im/type/im.proto +++ b/grpc_api/bilibili/im/type/im.proto @@ -12,30 +12,30 @@ message AccountInfo { // enum CmdId { - EN_CMD_ID_INVALID = 0; //非法cmd + EN_CMD_ID_INVALID = 0; //非法cmd - //msg_svr - EN_CMD_ID_SEND_MSG = 200001; // 发消息 + // msg_svr + EN_CMD_ID_SEND_MSG = 200001; // 发消息 - //sync_msg_svr - EN_CMD_ID_SYNC_MSG = 500001; // 同步消息 - EN_CMD_ID_SYNC_RELATION = 500002; // 同步相关链 - EN_CMD_ID_SYNC_ACK = 500003; // 客户端同步消息完成后,向服务器确认同步进度 - EN_CMD_ID_SYNC_FETCH_SESSION_MSGS = 500006; // 多端同步版本拉取消息 + // sync_msg_svr + EN_CMD_ID_SYNC_MSG = 500001; // 同步消息 + EN_CMD_ID_SYNC_RELATION = 500002; // 同步相关链 + EN_CMD_ID_SYNC_ACK = 500003; // 客户端同步消息完成后,向服务器确认同步进度 + EN_CMD_ID_SYNC_FETCH_SESSION_MSGS = 500006; // 多端同步版本拉取消息 - //session_svr - EN_CMD_ID_SESSION_SVR_GET_SESSIONS = 1000001; // 拉会话列表 - EN_CMD_ID_SESSION_SVR_NEW_SESSIONS = 1000002; // 新消息到达时获取会话列表 - EN_CMD_ID_SESSION_SVR_ACK_SESSIONS = 1000003; // 获取已读位置有更新的会话列表 - EN_CMD_ID_SESSION_SVR_UPDATE_ACK = 1000004; // 更新已读进度 - EN_CMD_ID_SESSION_SVR_SET_TOP = 1000005; // 置顶/取消置顶 - EN_CMD_ID_SESSION_SVR_REMOVE_SESSION = 1000007; // 删除会话 - EN_CMD_ID_SESSION_SVR_SINGLE_UNREAD = 1000008; // 单聊未读信息数 - EN_CMD_ID_SESSION_SVR_MY_GROUP_UNREAD = 1000009; // 我创建的应援团未读数 + // session_svr + EN_CMD_ID_SESSION_SVR_GET_SESSIONS = 1000001; // 拉会话列表 + EN_CMD_ID_SESSION_SVR_NEW_SESSIONS = 1000002; // 新消息到达时获取会话列表 + EN_CMD_ID_SESSION_SVR_ACK_SESSIONS = 1000003; // 获取已读位置有更新的会话列表 + EN_CMD_ID_SESSION_SVR_UPDATE_ACK = 1000004; // 更新已读进度 + EN_CMD_ID_SESSION_SVR_SET_TOP = 1000005; // 置顶/取消置顶 + EN_CMD_ID_SESSION_SVR_REMOVE_SESSION = 1000007; // 删除会话 + EN_CMD_ID_SESSION_SVR_SINGLE_UNREAD = 1000008; // 单聊未读信息数 + EN_CMD_ID_SESSION_SVR_MY_GROUP_UNREAD = 1000009; // 我创建的应援团未读数 EN_CMD_ID_SESSION_SVR_UPDATE_UNFLW_READ = 1000010; // 未关注的人批量设置为已读 - EN_CMD_ID_SESSION_SVR_GROUP_ASSIS_MSG = 1000011; // 应援团消息助手 - EN_CMD_ID_SESSION_SVR_ACK_ASSIS_MSG = 1000012; // 更新应援团小助手消息已拉取进度 - EN_CMD_ID_SESSION_SVR_SESSION_DETAIL = 1000015; // 拉会话详情 + EN_CMD_ID_SESSION_SVR_GROUP_ASSIS_MSG = 1000011; // 应援团消息助手 + EN_CMD_ID_SESSION_SVR_ACK_ASSIS_MSG = 1000012; // 更新应援团小助手消息已拉取进度 + EN_CMD_ID_SESSION_SVR_SESSION_DETAIL = 1000015; // 拉会话详情 EN_CMD_ID_SESSION_SVR_BATCH_SESS_DETAIL = 1000016; // 批量拉会话详情 EN_CMD_ID_SESSION_SVR_BATCH_RM_SESSIONS = 1000017; // 批量删除会话 } @@ -96,7 +96,7 @@ message HighText { } // -message ImgInfo{ +message ImgInfo { // string url = 1; // @@ -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 { // 发送方mid @@ -158,90 +190,91 @@ message Msg { // 消息来源 enum MsgSource { - EN_MSG_SOURCE_UNKONW = 0; // - EN_MSG_SOURCE_IOS = 1; // - EN_MSG_SOURCE_ANDRIOD = 2; // - EN_MSG_SOURCE_H5 = 3; // - EN_MSG_SOURCE_PC = 4; // - EN_MSG_SOURCE_BACKSTAGE = 5; // - EN_MSG_SOURCE_BIZ = 6; // - EN_MSG_SOURCE_WEB = 7; // - EN_MSG_SOURCE_AUTOREPLY_BY_FOLLOWED=8; // - EN_MSG_SOURCE_AUTOREPLY_BY_RECEIVE_MSG = 9; // - EN_MSG_SOURCE_AUTOREPLY_BY_KEYWORDS = 10; // - EN_MSG_SOURCE_AUTOREPLY_BY_VOYAGE = 11; // - EN_MSG_SOURCE_VC_ATTACH_MSG = 12; // + EN_MSG_SOURCE_UNKONW = 0; // + EN_MSG_SOURCE_IOS = 1; // + EN_MSG_SOURCE_ANDRIOD = 2; // + EN_MSG_SOURCE_H5 = 3; // + EN_MSG_SOURCE_PC = 4; // + EN_MSG_SOURCE_BACKSTAGE = 5; // + EN_MSG_SOURCE_BIZ = 6; // + EN_MSG_SOURCE_WEB = 7; // + EN_MSG_SOURCE_AUTOREPLY_BY_FOLLOWED = 8; // + EN_MSG_SOURCE_AUTOREPLY_BY_RECEIVE_MSG = 9; // + EN_MSG_SOURCE_AUTOREPLY_BY_KEYWORDS = 10; // + EN_MSG_SOURCE_AUTOREPLY_BY_VOYAGE = 11; // + EN_MSG_SOURCE_VC_ATTACH_MSG = 12; // }; // 消息类型 enum MsgType { // 基础消息类型 - EN_INVALID_MSG_TYPE = 0; // 空空的~ - EN_MSG_TYPE_TEXT = 1; // 文本消息 - EN_MSG_TYPE_PIC = 2; // 图片消息 - EN_MSG_TYPE_AUDIO = 3; // 语音消息 - EN_MSG_TYPE_SHARE = 4; // 分享消息 - EN_MSG_TYPE_DRAW_BACK = 5; // 撤回消息 - EN_MSG_TYPE_CUSTOM_FACE = 6; // 自定义表情 - EN_MSG_TYPE_SHARE_V2 = 7; // 分享v2消息 - EN_MSG_TYPE_SYS_CANCEL = 8; // 系统撤销 - EN_MSG_TYPE_MINI_PROGRAM = 9; // 小程序 + EN_INVALID_MSG_TYPE = 0; // 空空的~ + EN_MSG_TYPE_TEXT = 1; // 文本消息 + EN_MSG_TYPE_PIC = 2; // 图片消息 + EN_MSG_TYPE_AUDIO = 3; // 语音消息 + EN_MSG_TYPE_SHARE = 4; // 分享消息 + EN_MSG_TYPE_DRAW_BACK = 5; // 撤回消息 + EN_MSG_TYPE_CUSTOM_FACE = 6; // 自定义表情 + EN_MSG_TYPE_SHARE_V2 = 7; // 分享v2消息 + EN_MSG_TYPE_SYS_CANCEL = 8; // 系统撤销 + EN_MSG_TYPE_MINI_PROGRAM = 9; // 小程序 // 扩展消息类型 - EN_MSG_TYPE_NOTIFY_MSG = 10; // 业务通知 - EN_MSG_TYPE_VIDEO_CARD = 11; // 视频卡片 - EN_MSG_TYPE_ARTICLE_CARD = 12; // 专栏卡片 - EN_MSG_TYPE_PICTURE_CARD = 13; // 图片卡 - EN_MSG_TYPE_COMMON_SHARE_CARD = 14; // 异形卡 - EN_MSG_TYPE_BIZ_MSG_TYPE = 50; // + EN_MSG_TYPE_NOTIFY_MSG = 10; // 业务通知 + EN_MSG_TYPE_VIDEO_CARD = 11; // 视频卡片 + EN_MSG_TYPE_ARTICLE_CARD = 12; // 专栏卡片 + EN_MSG_TYPE_PICTURE_CARD = 13; // 图片卡 + EN_MSG_TYPE_COMMON_SHARE_CARD = 14; // 异形卡 + 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_STATUS_CHANGED = 102; // 群状态变更 - EN_MSG_TYPE_GROUP_DYNAMIC_CHANGED = 103; // 群动态变更 - EN_MSG_TYPE_GROUP_LIST_CHANGED = 104; // 群列表变更 - EM_MSG_TYPE_FRIEND_LIST_CHANGED = 105; // 好友列表变更 - EN_MSG_TYPE_GROUP_DETAIL_CHANGED = 106; // 群详情发生变化 - EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED = 107; // 群成员角色发生变化 - EN_MSG_TYPE_NOTICE_WATCH_LIST = 108; // - EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED = 109; // 消息系统,收到新的reply - EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED = 110; // - EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED = 111; // - EN_MSG_TYPE_NOTIFY_NEW_UP_RECIEVED = 112; // - EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED_V2 = 113; // - EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED_V2 = 114; // - EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED_V2 = 115; // - EN_MSG_TYPE_GROUP_DETAIL_CHANGED_MULTI = 116; // 群详情发生变化,多端同步版本需要即时消息,无需落地 - EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED_MULTI = 117; // 群成员角色发生变化,多端同步版本需要即时消息,无需落地 - EN_MSG_TYPE_NOTIFY_ANTI_DISTURB = 118; // + EN_MSG_TYPE_GROUP_MEMBER_CHANGED = 101; // 群成员变更 + EN_MSG_TYPE_GROUP_STATUS_CHANGED = 102; // 群状态变更 + EN_MSG_TYPE_GROUP_DYNAMIC_CHANGED = 103; // 群动态变更 + EN_MSG_TYPE_GROUP_LIST_CHANGED = 104; // 群列表变更 + EM_MSG_TYPE_FRIEND_LIST_CHANGED = 105; // 好友列表变更 + EN_MSG_TYPE_GROUP_DETAIL_CHANGED = 106; // 群详情发生变化 + EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED = 107; // 群成员角色发生变化 + EN_MSG_TYPE_NOTICE_WATCH_LIST = 108; // + EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED = 109; // 消息系统,收到新的reply + EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED = 110; // + EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED = 111; // + EN_MSG_TYPE_NOTIFY_NEW_UP_RECIEVED = 112; // + EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED_V2 = 113; // + EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED_V2 = 114; // + EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED_V2 = 115; // + EN_MSG_TYPE_GROUP_DETAIL_CHANGED_MULTI = 116; // 群详情发生变化,多端同步版本需要即时消息,无需落地 + EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED_MULTI = 117; // 群成员角色发生变化,多端同步版本需要即时消息,无需落地 + EN_MSG_TYPE_NOTIFY_ANTI_DISTURB = 118; // // 系统通知栏消息类型 - EN_MSG_TYPE_SYS_GROUP_DISSOLVED = 201; // 群解散 - EN_MSG_TYPE_SYS_GROUP_JOINED = 202; // 入群 - EN_MSG_TYPE_SYS_GROUP_MEMBER_EXITED = 203; // 成员主动退群 - EN_MSG_TYPE_SYS_GROUP_ADMIN_FIRED = 204; // 房管被撤 - EN_MSG_TYPE_SYS_GROUP_MEMBER_KICKED = 205; // 成员被T - EN_MSG_TYPE_SYS_GROUP_ADMIN_KICK_OFF = 206; // 管理T人 - EN_MSG_TYPE_SYS_GROUP_ADMIN_DUTY = 207; // 管理上任 - EN_MSG_TYPE_SYS_GROUP_AUTO_CREATED = 208; // 自动创建 - EN_MSG_TYPE_SYS_FRIEND_APPLY = 210; // 好友申请 - EN_MSG_TYPE_SYS_FRIEND_APPLY_ACK = 211; // 好友申请通过 - EN_MSG_TYPE_SYS_GROUP_APPLY_FOR_JOINING = 212; // 用户加群申请 + EN_MSG_TYPE_SYS_GROUP_DISSOLVED = 201; // 群解散 + EN_MSG_TYPE_SYS_GROUP_JOINED = 202; // 入群 + EN_MSG_TYPE_SYS_GROUP_MEMBER_EXITED = 203; // 成员主动退群 + EN_MSG_TYPE_SYS_GROUP_ADMIN_FIRED = 204; // 房管被撤 + EN_MSG_TYPE_SYS_GROUP_MEMBER_KICKED = 205; // 成员被T + EN_MSG_TYPE_SYS_GROUP_ADMIN_KICK_OFF = 206; // 管理T人 + EN_MSG_TYPE_SYS_GROUP_ADMIN_DUTY = 207; // 管理上任 + EN_MSG_TYPE_SYS_GROUP_AUTO_CREATED = 208; // 自动创建 + EN_MSG_TYPE_SYS_FRIEND_APPLY = 210; // 好友申请 + EN_MSG_TYPE_SYS_FRIEND_APPLY_ACK = 211; // 好友申请通过 + EN_MSG_TYPE_SYS_GROUP_APPLY_FOR_JOINING = 212; // 用户加群申请 EN_MSG_TYPE_SYS_GROUP_ADMIN_ACCEPTED_USER_APPLY = 213; // 通知管理员,有其他管理员已经同意用户加群 // 聊天窗口通知消息类型 - EN_MSG_TYPE_CHAT_MEMBER_JOINED = 301; // 入群 - EN_MSG_TYPE_CHAT_MEMBER_EXITED = 302; // 退群 - EN_MSG_TYPE_CHAT_GROUP_FREEZED = 303; // 冻结 - EN_MSG_TYPE_CHAT_GROUP_DISSOLVED = 304; // 解散 - EN_MSG_TYPE_CHAT_GROUP_CREATED = 305; // 开通应援团 - EN_MSG_TYPE_CHAT_POPUP_SESSION = 306; // 弹出会话 + EN_MSG_TYPE_CHAT_MEMBER_JOINED = 301; // 入群 + EN_MSG_TYPE_CHAT_MEMBER_EXITED = 302; // 退群 + EN_MSG_TYPE_CHAT_GROUP_FREEZED = 303; // 冻结 + EN_MSG_TYPE_CHAT_GROUP_DISSOLVED = 304; // 解散 + EN_MSG_TYPE_CHAT_GROUP_CREATED = 305; // 开通应援团 + EN_MSG_TYPE_CHAT_POPUP_SESSION = 306; // 弹出会话 } // 接收方类型 enum RecverType { - EN_NO_MEANING = 0; // - EN_RECVER_TYPE_PEER = 1; // 单人 + EN_NO_MEANING = 0; // + EN_RECVER_TYPE_PEER = 1; // 单人 EN_RECVER_TYPE_GROUP = 2; // 群 EN_RECVER_TYPE_PEERS = 3; // 多人 } @@ -261,19 +294,19 @@ message RelationLog { // enum RelationLogType { EN_INVALID_LOG_TYPE = 0; // - EN_ADD_FRIEND = 1; // 添加好友 - EN_REMOVE_FRIEND = 2; // 删除好友 - EN_JOIN_GROUP = 3; // 加入群 - EN_EXIT_GROUP = 4; // 退出群 + EN_ADD_FRIEND = 1; // 添加好友 + EN_REMOVE_FRIEND = 2; // 删除好友 + EN_JOIN_GROUP = 3; // 加入群 + EN_EXIT_GROUP = 4; // 退出群 } // enum SESSION_TYPE { - INVALID_SESSION_TYPE = 0; // - UN_FOLD_SESSION = 1; // + INVALID_SESSION_TYPE = 0; // + UN_FOLD_SESSION = 1; // UN_FOLLOW_SINGLE_SESSION = 2; // - MY_GROUP_SESSION = 3; // - ALL_SESSION = 4; // + MY_GROUP_SESSION = 3; // + ALL_SESSION = 4; // } // 会话详情 @@ -328,4 +361,18 @@ message SessionInfo { AccountInfo account_info = 24; // 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; } diff --git a/grpc_api/bilibili/metadata/network/network.proto b/grpc_api/bilibili/metadata/network/network.proto index cce2a8f..2199b33 100644 --- a/grpc_api/bilibili/metadata/network/network.proto +++ b/grpc_api/bilibili/metadata/network/network.proto @@ -16,20 +16,20 @@ message Network { // 网络类型 enum NetworkType { NT_UNKNOWN = 0; // 未知 - WIFI = 1; // WIFI - CELLULAR = 2; // 移动网络 - OFFLINE = 3; // 未连接 - OTHERNET = 4; // 其他网络 - ETHERNET = 5; // 以太网 + WIFI = 1; // WIFI + CELLULAR = 2; // 蜂窝网络 + OFFLINE = 3; // 未连接 + OTHERNET = 4; // 其他网络 + ETHERNET = 5; // 以太网 } // 免流类型 enum TFType { TF_UNKNOWN = 0; // 正常计费 - U_CARD = 1; // 联通卡 - U_PKG = 2; // 联通包 - C_CARD = 3; // 移动卡 - C_PKG = 4; // 移动包 - T_CARD = 5; // 电信卡 - T_PKG = 6; // 电信包 + U_CARD = 1; // 联通卡 + U_PKG = 2; // 联通包 + C_CARD = 3; // 移动卡 + C_PKG = 4; // 移动包 + T_CARD = 5; // 电信卡 + T_PKG = 6; // 电信包 } diff --git a/grpc_api/bilibili/metadata/restriction/restriction.proto b/grpc_api/bilibili/metadata/restriction/restriction.proto index c8a3ac3..5aef6eb 100644 --- a/grpc_api/bilibili/metadata/restriction/restriction.proto +++ b/grpc_api/bilibili/metadata/restriction/restriction.proto @@ -4,9 +4,9 @@ package bilibili.metadata.restriction; // 模式类型 enum ModeType { - NORMAL = 0; // 正常模式 - TEENAGERS = 1; // 青少年模式 - LESSONS = 2; // 课堂模式 + NORMAL = 0; // 正常模式 + TEENAGERS = 1; // 青少年模式 + LESSONS = 2; // 课堂模式 } // 限制条件 diff --git a/grpc_api/bilibili/tv/interfaces/dm/v1/dm.proto b/grpc_api/bilibili/tv/interfaces/dm/v1/dm.proto index a3f88ba..00321a0 100644 --- a/grpc_api/bilibili/tv/interfaces/dm/v1/dm.proto +++ b/grpc_api/bilibili/tv/interfaces/dm/v1/dm.proto @@ -3,30 +3,64 @@ syntax = "proto3"; 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; - // + // 对象视频cid 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; - // + // int32 type = 4; - // + // 互动弹幕指令 string command = 5; - // + // 互动弹幕正文 string content = 6; // int32 state = 7; - // + // 出现时间 int32 progress = 8; - // + // 创建时间 string ctime = 9; - // + // 发布时间 string mtime = 10; - // + // 扩展json数据 string extra = 11; - // + // 弹幕id str类型 string id_str = 12; } @@ -101,44 +135,44 @@ message DanmakuFlagConfig { // 弹幕默认配置 message DanmuDefaultPlayerConfig { - bool player_danmaku_use_default_config = 1; // 是否使用推荐弹幕设置 - bool player_danmaku_ai_recommended_switch = 4; // 是否开启智能云屏蔽 - int32 player_danmaku_ai_recommended_level = 5; // 智能云屏蔽等级 - bool player_danmaku_blocktop = 6; // 是否屏蔽顶端弹幕 - bool player_danmaku_blockscroll = 7; // 是否屏蔽滚动弹幕 - bool player_danmaku_blockbottom = 8; // 是否屏蔽底端弹幕 - bool player_danmaku_blockcolorful = 9; // 是否屏蔽彩色弹幕 - bool player_danmaku_blockrepeat = 10; // 是否屏蔽重复弹幕 - bool player_danmaku_blockspecial = 11; // 是否屏蔽高级弹幕 - float player_danmaku_opacity = 12; // 弹幕不透明度 - float player_danmaku_scalingfactor = 13; // 弹幕缩放比例 - float player_danmaku_domain = 14; // 弹幕显示区域 - int32 player_danmaku_speed = 15; // 弹幕速度 - bool inline_player_danmaku_switch = 16; // 是否开启弹幕 - int32 player_danmaku_senior_mode_switch = 17; // + bool player_danmaku_use_default_config = 1; // 是否使用推荐弹幕设置 + bool player_danmaku_ai_recommended_switch = 4; // 是否开启智能云屏蔽 + int32 player_danmaku_ai_recommended_level = 5; // 智能云屏蔽等级 + bool player_danmaku_blocktop = 6; // 是否屏蔽顶端弹幕 + bool player_danmaku_blockscroll = 7; // 是否屏蔽滚动弹幕 + bool player_danmaku_blockbottom = 8; // 是否屏蔽底端弹幕 + bool player_danmaku_blockcolorful = 9; // 是否屏蔽彩色弹幕 + bool player_danmaku_blockrepeat = 10; // 是否屏蔽重复弹幕 + bool player_danmaku_blockspecial = 11; // 是否屏蔽高级弹幕 + float player_danmaku_opacity = 12; // 弹幕不透明度 + float player_danmaku_scalingfactor = 13; // 弹幕缩放比例 + float player_danmaku_domain = 14; // 弹幕显示区域 + int32 player_danmaku_speed = 15; // 弹幕速度 + bool inline_player_danmaku_switch = 16; // 是否开启弹幕 + int32 player_danmaku_senior_mode_switch = 17; // } // 弹幕配置 message DanmuPlayerConfig { - bool player_danmaku_switch = 1; // 是否开启弹幕 - bool player_danmaku_switch_save = 2; // 是否记录弹幕开关设置 - bool player_danmaku_use_default_config = 3; // 是否使用推荐弹幕设置 - bool player_danmaku_ai_recommended_switch = 4; // 是否开启智能云屏蔽 - int32 player_danmaku_ai_recommended_level = 5; // 智能云屏蔽等级 - bool player_danmaku_blocktop = 6; // 是否屏蔽顶端弹幕 - bool player_danmaku_blockscroll = 7; // 是否屏蔽滚动弹幕 - bool player_danmaku_blockbottom = 8; // 是否屏蔽底端弹幕 - bool player_danmaku_blockcolorful = 9; // 是否屏蔽彩色弹幕 - bool player_danmaku_blockrepeat = 10; // 是否屏蔽重复弹幕 - bool player_danmaku_blockspecial = 11; // 是否屏蔽高级弹幕 - float player_danmaku_opacity = 12; // 弹幕不透明度 - float player_danmaku_scalingfactor = 13; // 弹幕缩放比例 - float player_danmaku_domain = 14; // 弹幕显示区域 - int32 player_danmaku_speed = 15; // 弹幕速度 - bool player_danmaku_enableblocklist = 16; // 是否开启屏蔽列表 - bool inline_player_danmaku_switch = 17; // 是否开启弹幕 - int32 inline_player_danmaku_config = 18; // - int32 player_danmaku_ios_switch_save = 19; // + bool player_danmaku_switch = 1; // 是否开启弹幕 + bool player_danmaku_switch_save = 2; // 是否记录弹幕开关设置 + bool player_danmaku_use_default_config = 3; // 是否使用推荐弹幕设置 + bool player_danmaku_ai_recommended_switch = 4; // 是否开启智能云屏蔽 + int32 player_danmaku_ai_recommended_level = 5; // 智能云屏蔽等级 + bool player_danmaku_blocktop = 6; // 是否屏蔽顶端弹幕 + bool player_danmaku_blockscroll = 7; // 是否屏蔽滚动弹幕 + bool player_danmaku_blockbottom = 8; // 是否屏蔽底端弹幕 + bool player_danmaku_blockcolorful = 9; // 是否屏蔽彩色弹幕 + bool player_danmaku_blockrepeat = 10; // 是否屏蔽重复弹幕 + bool player_danmaku_blockspecial = 11; // 是否屏蔽高级弹幕 + float player_danmaku_opacity = 12; // 弹幕不透明度 + float player_danmaku_scalingfactor = 13; // 弹幕缩放比例 + float player_danmaku_domain = 14; // 弹幕显示区域 + int32 player_danmaku_speed = 15; // 弹幕速度 + bool player_danmaku_enableblocklist = 16; // 是否开启屏蔽列表 + bool inline_player_danmaku_switch = 17; // 是否开启弹幕 + int32 inline_player_danmaku_config = 18; // + int32 player_danmaku_ios_switch_save = 19; // } // 弹幕显示区域自动配置 @@ -214,6 +248,8 @@ message DmViewReply { string text_placeholder = 11; // 弹幕输入框文案 string input_placeholder = 12; + // + bool command_close = 13; } // 客户端弹幕元数据-请求 @@ -249,6 +285,38 @@ message SubtitleItem { 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 { // 用户mid @@ -265,6 +333,12 @@ message UserInfo { int32 rank = 6; } +// +message VideoGuide { + // + repeated CommandDm command_dms = 2; +} + // 智能防挡弹幕蒙版信息 message VideoMask { // 视频cid