From ff05dc504ba46a59ff4b892de254f5ee48c20580 Mon Sep 17 00:00:00 2001 From: Hantong Chen Date: Sat, 3 May 2025 23:29:04 +0800 Subject: [PATCH 1/8] feat: gRPC proto (without comment) --- proto/bilibili/account/fission/v1.proto | 64 + proto/bilibili/account/interfaces/v1.proto | 66 + proto/bilibili/account/service/v1.proto | 36 + proto/bilibili/ad/v1.proto | 1367 +++ proto/bilibili/api/player/v1.proto | 76 + proto/bilibili/api/probe/v1.proto | 192 + proto/bilibili/api/ticket/v1.proto | 82 + .../bilibili/app/archive/middleware/v1.proto | 28 + proto/bilibili/app/archive/v1.proto | 198 + proto/bilibili/app/card/v1.proto | 1280 +++ proto/bilibili/app/click/v1.proto | 128 + proto/bilibili/app/distribution.proto | 185 + .../app/distribution/setting/download.proto | 12 + .../app/distribution/setting/dynamic.proto | 18 + .../distribution/setting/experimental.proto | 66 + .../app/distribution/setting/home.proto | 18 + .../app/distribution/setting/im.proto | 12 + .../distribution/setting/internaldevice.proto | 12 + .../app/distribution/setting/night.proto | 12 + .../app/distribution/setting/other.proto | 48 + .../app/distribution/setting/pegasus.proto | 56 + .../app/distribution/setting/play.proto | 66 + .../app/distribution/setting/privacy.proto | 22 + .../app/distribution/setting/search.proto | 20 + .../app/distribution/setting/story.proto | 18 + proto/bilibili/app/dynamic/common.proto | 26 + proto/bilibili/app/dynamic/v1.proto | 1539 ++++ proto/bilibili/app/dynamic/v2.proto | 7508 +++++++++++++++++ proto/bilibili/app/home/v1.proto | 484 ++ proto/bilibili/app/im/v1.proto | 1077 +++ proto/bilibili/app/interfaces/v1.proto | 1334 +++ proto/bilibili/app/listener/v1.proto | 1537 ++++ proto/bilibili/app/mine/v1.proto | 279 + proto/bilibili/app/playeronline/v1.proto | 72 + .../app/playerunite/pgcanymodel.proto | 20 + .../app/playerunite/pugvanymodel.proto | 112 + .../app/playerunite/ugcanymodel.proto | 78 + proto/bilibili/app/playerunite/v1.proto | 121 + proto/bilibili/app/playurl/v1.proto | 993 +++ proto/bilibili/app/resource/privacy/v1.proto | 64 + proto/bilibili/app/resource/v1.proto | 272 + proto/bilibili/app/search/v2.proto | 288 + proto/bilibili/app/show/gateway/v1.proto | 26 + proto/bilibili/app/show/mixture/v1.proto | 305 + proto/bilibili/app/show/popular/v1.proto | 117 + proto/bilibili/app/show/rank/v1.proto | 140 + proto/bilibili/app/show/region/v1.proto | 56 + proto/bilibili/app/space/v1.proto | 108 + proto/bilibili/app/splash/v1.proto | 132 + proto/bilibili/app/story/v1.proto | 147 + proto/bilibili/app/topic/v1.proto | 1188 +++ proto/bilibili/app/view/v1.proto | 3204 +++++++ proto/bilibili/app/viewunite/common.proto | 3137 +++++++ .../bilibili/app/viewunite/pgcanymodel.proto | 284 + .../bilibili/app/viewunite/pugvanymodel.proto | 561 ++ .../bilibili/app/viewunite/ugcanymodel.proto | 196 + proto/bilibili/app/viewunite/v1.proto | 1201 +++ proto/bilibili/app/wall/v1.proto | 42 + proto/bilibili/broadcast/live.proto | 42 + .../bilibili/broadcast/live/multi_conn.proto | 38 + proto/bilibili/broadcast/live/pk.proto | 314 + .../broadcast/live/universal_interact.proto | 526 ++ .../bilibili/broadcast/live/voice_room.proto | 220 + .../bilibili/broadcast/message/archive.proto | 20 + proto/bilibili/broadcast/message/bgroup.proto | 34 + .../broadcast/message/gamecenter.proto | 32 + proto/bilibili/broadcast/message/im.proto | 100 + proto/bilibili/broadcast/message/main.proto | 350 + proto/bilibili/broadcast/message/mall.proto | 42 + proto/bilibili/broadcast/message/push.proto | 44 + proto/bilibili/broadcast/message/reply.proto | 74 + proto/bilibili/broadcast/message/topic.proto | 20 + proto/bilibili/broadcast/message/tv.proto | 296 + proto/bilibili/broadcast/v1.proto | 426 + proto/bilibili/broadcast/v2.proto | 22 + proto/bilibili/cheese/gateway/player/v1.proto | 194 + .../community/interfacess/biligram/v1.proto | 596 ++ .../community/interfacess/cosmoconn/v1.proto | 220 + .../bilibili/community/service/cert/v1.proto | 42 + proto/bilibili/community/service/dm/v1.proto | 1352 +++ .../community/service/govern/v1.proto | 74 + proto/bilibili/creative_tool/editor/v2.proto | 422 + .../dagw/component/avatar/common.proto | 163 + proto/bilibili/dagw/component/avatar/v1.proto | 155 + .../dagw/component/avatar/v1/plugin.proto | 180 + proto/bilibili/dynamic/common.proto | 1642 ++++ .../dynamic/interfaces/campus/v1.proto | 32 + .../bilibili/dynamic/interfaces/feed/v1.proto | 960 +++ .../bilibili/dynamic/interfaces/vote/v1.proto | 112 + proto/bilibili/gaia/gw.proto | 126 + proto/bilibili/im/customer/independent.proto | 74 + proto/bilibili/im/customer/interfaces.proto | 398 + proto/bilibili/im/customer/model.proto | 540 ++ proto/bilibili/im/gateway/interfaces/v1.proto | 816 ++ proto/bilibili/im/interfaces/v1.proto | 730 ++ proto/bilibili/im/type.proto | 756 ++ .../live/app/interfaces/api/grpc/v1.proto | 152 + proto/bilibili/live/app/room/v1.proto | 538 ++ proto/bilibili/live/approom/api/grpc/v1.proto | 34 + proto/bilibili/live/play_gateway.proto | 42 + proto/bilibili/live/rtc.proto | 309 + proto/bilibili/live/rtc/datachannel.proto | 403 + .../live/rtc/datachannel/report.proto | 456 + proto/bilibili/live/xroom_extend/api/v1.proto | 34 + proto/bilibili/main/community/reply/v1.proto | 2164 +++++ proto/bilibili/main/community/reply/v2.proto | 336 + proto/bilibili/mall/tab3/dynamic/v1.proto | 316 + .../mall/tab3/playerunite/ugcanymodel.proto | 48 + proto/bilibili/mall/tab3/playerunite/v1.proto | 49 + .../bilibili/mall/tab3/viewunite/common.proto | 2187 +++++ .../mall/tab3/viewunite/ugcanymodel.proto | 136 + proto/bilibili/mall/tab3/viewunite/v1.proto | 850 ++ proto/bilibili/metadata.proto | 22 + proto/bilibili/metadata/device.proto | 52 + proto/bilibili/metadata/fawkes.proto | 24 + proto/bilibili/metadata/locale.proto | 32 + proto/bilibili/metadata/network.proto | 60 + proto/bilibili/metadata/parabox.proto | 18 + proto/bilibili/metadata/restriction.proto | 34 + proto/bilibili/pagination.proto | 40 + proto/bilibili/pangu/gallery/v1.proto | 322 + proto/bilibili/pgc/gateway/player/v1.proto | 272 + proto/bilibili/pgc/gateway/player/v2.proto | 1284 +++ proto/bilibili/playershared.proto | 1567 ++++ proto/bilibili/polymer/app/search/v1.proto | 3620 ++++++++ proto/bilibili/polymer/chronos/v1.proto | 44 + .../polymer/community/govern/v1.proto | 110 + proto/bilibili/polymer/contract.proto | 110 + proto/bilibili/polymer/list.proto | 46 + proto/bilibili/relation/interfaces.proto | 114 + proto/bilibili/rpc.proto | 16 + proto/bilibili/vas/garb/model.proto | 96 + proto/bilibili/vas/garb/service.proto | 71 + proto/bilibili/vega/deneb/v1.proto | 38 + proto/pgc/biz.proto | 10 + proto/pgc/gateway/vega/v1.proto | 80 + proto/version.json | 6 + 137 files changed, 59056 insertions(+) create mode 100644 proto/bilibili/account/fission/v1.proto create mode 100644 proto/bilibili/account/interfaces/v1.proto create mode 100644 proto/bilibili/account/service/v1.proto create mode 100644 proto/bilibili/ad/v1.proto create mode 100644 proto/bilibili/api/player/v1.proto create mode 100644 proto/bilibili/api/probe/v1.proto create mode 100644 proto/bilibili/api/ticket/v1.proto create mode 100644 proto/bilibili/app/archive/middleware/v1.proto create mode 100644 proto/bilibili/app/archive/v1.proto create mode 100644 proto/bilibili/app/card/v1.proto create mode 100644 proto/bilibili/app/click/v1.proto create mode 100644 proto/bilibili/app/distribution.proto create mode 100644 proto/bilibili/app/distribution/setting/download.proto create mode 100644 proto/bilibili/app/distribution/setting/dynamic.proto create mode 100644 proto/bilibili/app/distribution/setting/experimental.proto create mode 100644 proto/bilibili/app/distribution/setting/home.proto create mode 100644 proto/bilibili/app/distribution/setting/im.proto create mode 100644 proto/bilibili/app/distribution/setting/internaldevice.proto create mode 100644 proto/bilibili/app/distribution/setting/night.proto create mode 100644 proto/bilibili/app/distribution/setting/other.proto create mode 100644 proto/bilibili/app/distribution/setting/pegasus.proto create mode 100644 proto/bilibili/app/distribution/setting/play.proto create mode 100644 proto/bilibili/app/distribution/setting/privacy.proto create mode 100644 proto/bilibili/app/distribution/setting/search.proto create mode 100644 proto/bilibili/app/distribution/setting/story.proto create mode 100644 proto/bilibili/app/dynamic/common.proto create mode 100644 proto/bilibili/app/dynamic/v1.proto create mode 100644 proto/bilibili/app/dynamic/v2.proto create mode 100644 proto/bilibili/app/home/v1.proto create mode 100644 proto/bilibili/app/im/v1.proto create mode 100644 proto/bilibili/app/interfaces/v1.proto create mode 100644 proto/bilibili/app/listener/v1.proto create mode 100644 proto/bilibili/app/mine/v1.proto create mode 100644 proto/bilibili/app/playeronline/v1.proto create mode 100644 proto/bilibili/app/playerunite/pgcanymodel.proto create mode 100644 proto/bilibili/app/playerunite/pugvanymodel.proto create mode 100644 proto/bilibili/app/playerunite/ugcanymodel.proto create mode 100644 proto/bilibili/app/playerunite/v1.proto create mode 100644 proto/bilibili/app/playurl/v1.proto create mode 100644 proto/bilibili/app/resource/privacy/v1.proto create mode 100644 proto/bilibili/app/resource/v1.proto create mode 100644 proto/bilibili/app/search/v2.proto create mode 100644 proto/bilibili/app/show/gateway/v1.proto create mode 100644 proto/bilibili/app/show/mixture/v1.proto create mode 100644 proto/bilibili/app/show/popular/v1.proto create mode 100644 proto/bilibili/app/show/rank/v1.proto create mode 100644 proto/bilibili/app/show/region/v1.proto create mode 100644 proto/bilibili/app/space/v1.proto create mode 100644 proto/bilibili/app/splash/v1.proto create mode 100644 proto/bilibili/app/story/v1.proto create mode 100644 proto/bilibili/app/topic/v1.proto create mode 100644 proto/bilibili/app/view/v1.proto create mode 100644 proto/bilibili/app/viewunite/common.proto create mode 100644 proto/bilibili/app/viewunite/pgcanymodel.proto create mode 100644 proto/bilibili/app/viewunite/pugvanymodel.proto create mode 100644 proto/bilibili/app/viewunite/ugcanymodel.proto create mode 100644 proto/bilibili/app/viewunite/v1.proto create mode 100644 proto/bilibili/app/wall/v1.proto create mode 100644 proto/bilibili/broadcast/live.proto create mode 100644 proto/bilibili/broadcast/live/multi_conn.proto create mode 100644 proto/bilibili/broadcast/live/pk.proto create mode 100644 proto/bilibili/broadcast/live/universal_interact.proto create mode 100644 proto/bilibili/broadcast/live/voice_room.proto create mode 100644 proto/bilibili/broadcast/message/archive.proto create mode 100644 proto/bilibili/broadcast/message/bgroup.proto create mode 100644 proto/bilibili/broadcast/message/gamecenter.proto create mode 100644 proto/bilibili/broadcast/message/im.proto create mode 100644 proto/bilibili/broadcast/message/main.proto create mode 100644 proto/bilibili/broadcast/message/mall.proto create mode 100644 proto/bilibili/broadcast/message/push.proto create mode 100644 proto/bilibili/broadcast/message/reply.proto create mode 100644 proto/bilibili/broadcast/message/topic.proto create mode 100644 proto/bilibili/broadcast/message/tv.proto create mode 100644 proto/bilibili/broadcast/v1.proto create mode 100644 proto/bilibili/broadcast/v2.proto create mode 100644 proto/bilibili/cheese/gateway/player/v1.proto create mode 100644 proto/bilibili/community/interfacess/biligram/v1.proto create mode 100644 proto/bilibili/community/interfacess/cosmoconn/v1.proto create mode 100644 proto/bilibili/community/service/cert/v1.proto create mode 100644 proto/bilibili/community/service/dm/v1.proto create mode 100644 proto/bilibili/community/service/govern/v1.proto create mode 100644 proto/bilibili/creative_tool/editor/v2.proto create mode 100644 proto/bilibili/dagw/component/avatar/common.proto create mode 100644 proto/bilibili/dagw/component/avatar/v1.proto create mode 100644 proto/bilibili/dagw/component/avatar/v1/plugin.proto create mode 100644 proto/bilibili/dynamic/common.proto create mode 100644 proto/bilibili/dynamic/interfaces/campus/v1.proto create mode 100644 proto/bilibili/dynamic/interfaces/feed/v1.proto create mode 100644 proto/bilibili/dynamic/interfaces/vote/v1.proto create mode 100644 proto/bilibili/gaia/gw.proto create mode 100644 proto/bilibili/im/customer/independent.proto create mode 100644 proto/bilibili/im/customer/interfaces.proto create mode 100644 proto/bilibili/im/customer/model.proto create mode 100644 proto/bilibili/im/gateway/interfaces/v1.proto create mode 100644 proto/bilibili/im/interfaces/v1.proto create mode 100644 proto/bilibili/im/type.proto create mode 100644 proto/bilibili/live/app/interfaces/api/grpc/v1.proto create mode 100644 proto/bilibili/live/app/room/v1.proto create mode 100644 proto/bilibili/live/approom/api/grpc/v1.proto create mode 100644 proto/bilibili/live/play_gateway.proto create mode 100644 proto/bilibili/live/rtc.proto create mode 100644 proto/bilibili/live/rtc/datachannel.proto create mode 100644 proto/bilibili/live/rtc/datachannel/report.proto create mode 100644 proto/bilibili/live/xroom_extend/api/v1.proto create mode 100644 proto/bilibili/main/community/reply/v1.proto create mode 100644 proto/bilibili/main/community/reply/v2.proto create mode 100644 proto/bilibili/mall/tab3/dynamic/v1.proto create mode 100644 proto/bilibili/mall/tab3/playerunite/ugcanymodel.proto create mode 100644 proto/bilibili/mall/tab3/playerunite/v1.proto create mode 100644 proto/bilibili/mall/tab3/viewunite/common.proto create mode 100644 proto/bilibili/mall/tab3/viewunite/ugcanymodel.proto create mode 100644 proto/bilibili/mall/tab3/viewunite/v1.proto create mode 100644 proto/bilibili/metadata.proto create mode 100644 proto/bilibili/metadata/device.proto create mode 100644 proto/bilibili/metadata/fawkes.proto create mode 100644 proto/bilibili/metadata/locale.proto create mode 100644 proto/bilibili/metadata/network.proto create mode 100644 proto/bilibili/metadata/parabox.proto create mode 100644 proto/bilibili/metadata/restriction.proto create mode 100644 proto/bilibili/pagination.proto create mode 100644 proto/bilibili/pangu/gallery/v1.proto create mode 100644 proto/bilibili/pgc/gateway/player/v1.proto create mode 100644 proto/bilibili/pgc/gateway/player/v2.proto create mode 100644 proto/bilibili/playershared.proto create mode 100644 proto/bilibili/polymer/app/search/v1.proto create mode 100644 proto/bilibili/polymer/chronos/v1.proto create mode 100644 proto/bilibili/polymer/community/govern/v1.proto create mode 100644 proto/bilibili/polymer/contract.proto create mode 100644 proto/bilibili/polymer/list.proto create mode 100644 proto/bilibili/relation/interfaces.proto create mode 100644 proto/bilibili/rpc.proto create mode 100644 proto/bilibili/vas/garb/model.proto create mode 100644 proto/bilibili/vas/garb/service.proto create mode 100644 proto/bilibili/vega/deneb/v1.proto create mode 100644 proto/pgc/biz.proto create mode 100644 proto/pgc/gateway/vega/v1.proto create mode 100644 proto/version.json diff --git a/proto/bilibili/account/fission/v1.proto b/proto/bilibili/account/fission/v1.proto new file mode 100644 index 0000000..a6b6ccc --- /dev/null +++ b/proto/bilibili/account/fission/v1.proto @@ -0,0 +1,64 @@ +syntax = "proto3"; + +package bilibili.account.fission.v1; + +// +service Fission { + // + rpc Entrance (EntranceReq) returns (EntranceReply); + // + rpc Privacy (PrivacyReq) returns (PrivacyReply); + // + rpc Window (WindowReq) returns (WindowReply); +} + +// +message AnimateIcon { + // + string icon = 1; + // + string json = 2; +} + +// +message EntranceReply { + // + string icon = 1; + // + string name = 2; + // + string url = 3; + // + AnimateIcon animate_icon = 4; +} + +// +message EntranceReq { +} + +// +message PrivacyReply { + // + string message = 1; +} + +// +message PrivacyReq { + // + string activity_uid = 1; +} + +// +message WindowReply { + // + int32 type = 1; + // + string url = 2; + // + string report_data = 3; +} + +// +message WindowReq { +} + diff --git a/proto/bilibili/account/interfaces/v1.proto b/proto/bilibili/account/interfaces/v1.proto new file mode 100644 index 0000000..f0d3bfa --- /dev/null +++ b/proto/bilibili/account/interfaces/v1.proto @@ -0,0 +1,66 @@ +syntax = "proto3"; + +package bilibili.account.interfaces.v1; + +// +service AccountInterfaceV1 { + // + rpc MidByName (MidByNameReq) returns (MidByNameReply); + // + rpc UnameMessage (UnameMessageReq) returns (UnameMessageReply); + // + rpc UpdateNameV2 (UpdateNameReq) returns (UpdateNameReply); +} + +// +message MidByNameReply { + // + map name_map = 1; +} + +// +message MidByNameReq { + // + repeated string names = 1; +} + +// +message UnameMessageReply { + // + bool allow = 1; + // + bool realname_or_tel = 2; + // + string uname_message = 3; + // + string confirm_message = 4; + // + string condition_message = 5; + // + string bind_tel = 6; +} + +// +message UnameMessageReq { +} + +// +message UpdateNameReply { + // + int64 code = 1; + // + string msg = 2; + // + repeated string name_list = 3; + // + string name = 4; +} + +// +message UpdateNameReq { + // + string uname = 1; + // + string source = 2; +} + diff --git a/proto/bilibili/account/service/v1.proto b/proto/bilibili/account/service/v1.proto new file mode 100644 index 0000000..d100869 --- /dev/null +++ b/proto/bilibili/account/service/v1.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; + +package bilibili.account.service.v1; + +// +message Color { + // + string color_day = 1; + // + string color_night = 2; +} + +// +message ColorsInfo { + // + repeated int64 color_ids = 1; + // + repeated Color color = 2; +} + +// +message NameRender { + // + RenderSchemeEnum render_scheme = 1; + // + ColorsInfo colors_info = 2; +} + +// +enum RenderSchemeEnum { + // + Default = 0; + // + Colorful = 1; +} + diff --git a/proto/bilibili/ad/v1.proto b/proto/bilibili/ad/v1.proto new file mode 100644 index 0000000..8160d1b --- /dev/null +++ b/proto/bilibili/ad/v1.proto @@ -0,0 +1,1367 @@ +syntax = "proto3"; + +package bilibili.ad.v1; + +import "google/protobuf/any.proto"; +import "google/protobuf/wrappers.proto"; + +// +message AdAutoPlayVideoDto { + // + int64 avid = 1; + // + int64 cid = 2; + // + int64 page = 3; + // + string from = 4; + // + string url = 5; + // + string cover = 6; + // + bool auto_play = 7; + // + bool btn_dyc_color = 8; + // + int32 btn_dyc_time = 9; + // + int64 biz_id = 10; + // + repeated string process0_urls = 11; + // + repeated string play3_s_urls = 12; + // + repeated string play5_s_urls = 13; + // + int32 orientation = 14; + // + string from_spmid = 15; + // + int32 auto_play_value = 16; + // + int32 height = 17; + // + int32 width = 18; + // + repeated CustomPlayUrl custom_play_urls = 19; + // + repeated string play10_s_urls = 20; + // + repeated string play15_s_urls = 21; + // + repeated string process1_urls = 22; + // + repeated string process2_urls = 23; + // + repeated string process3_urls = 24; + // + repeated string process4_urls = 25; + // + repeated string play0_s_urls = 26; +} + +// +message AdBusinessMarkDto { + // + int32 type = 1; + // + string text = 2; + // + string text_color = 3; + // + string text_color_night = 4; + // + string bg_color = 5; + // + string bg_color_night = 6; + // + string border_color = 7; + // + string border_color_night = 8; + // + string img_url = 9; + // + int32 img_height = 10; + // + int32 img_width = 11; + // + string bg_border_color = 12; +} + +// +message AdButtonDto { + // + int32 type = 1; + // + string text = 2; + // + string jump_url = 3; + // + repeated string report_urls = 4; + // + string dlsuc_callup_url = 5; + // + int32 game_id = 6; + // + string game_monitor_param = 7; + // + int32 game_channel_id = 8; + // + string game_channel_extra = 9; + // + string callup_url = 10; + // + string game_sourcefrom = 11; + // + bool show_game_custom_text = 12; + // + string dlsuc_callup_text = 13; +} + +// +message AdCardCalenderInfo { + // + string title = 1; + // + int64 start_time = 2; + // + int64 end_time = 3; + // + int32 calender_id = 4; + // + string comment = 5; + // + string calendar_id_str = 6; +} + +// +message AdCardDto { + // + int32 card_type = 1; + // + string title = 2; + // + string desc = 3; + // + string extra_desc = 4; + // + string long_desc = 5; + // + string short_title = 6; + // + string danmu_title = 7; + // + int32 danmu_height = 8; + // + int32 danmu_width = 9; + // + int32 danmu_life = 10; + // + int32 danmu_begin = 11; + // + string danmu_color = 12; + // + string danmu_h5_url = 13; + // + string danmu_icon = 14; + // + int32 fold_time = 15; + // + string ad_tag = 16; + // + repeated AdCoverDto covers = 17; + // + string jump_url = 18; + // + string imax_landing_page_json_string = 19; + // + string callup_url = 20; + // + string universal_app = 21; + // + string ori_price = 22; + // + int32 cur_price = 23; + // + string price_desc = 24; + // + string price_symbol = 25; + // + string goods_cur_price = 26; + // + string goods_ori_price = 27; + // + AdGoodDto good = 28; + // + int32 rank = 29; + // + int32 hot_score = 30; + // + AdButtonDto button = 31; + // + string adver_logo = 32; + // + string adver_name = 33; + // + string adver_page_url = 34; + // + repeated string video_barrage = 35; + // + AdBusinessMarkDto ad_tag_style = 36; + // + AdAutoPlayVideoDto video = 37; + // + AdFeedbackPanelDto feedback_panel = 38; + // + int64 adver_mid = 39; + // + int64 adver_account_id = 40; + // + string duration = 41; + // + repeated QualityInfo quality_infos = 42; + // + string dynamic_text = 43; + // + AdverDto adver = 44; + // + int32 grade_level = 45; + // + bool support_transition = 46; + // + string transition = 47; + // + int32 under_player_interaction_style = 48; + // + string imax_landing_page_v2 = 49; + // + SubCardModule subcard_module = 50; + // + int32 grade_denominator = 51; + // + int32 star_level = 52; + // + Bulletin bulletin = 53; + // + Gift gift = 54; + // + repeated string game_tags = 55; + // + int32 ori_mark_hidden = 56; + // + bool use_multi_cover = 57; + // + WxProgramInfo wx_program_info = 58; + // + AndroidGamePageRes android_game_page_res = 59; + // + NotClickableArea not_clickable_area = 60; + // + ForwardReply forward_reply = 61; + // + string av_content = 62; + // + int32 anim_in_enable = 63; + // + string extra_params = 64; + // + int64 goods_item_id = 65; + // + int32 card_style = 66; + // + GameInfo game_info = 67; + // + LeftCoverBadgeNewStyle left_cover_badge_new_style = 68; + // + GameRank game_rank = 69; + // + string game_rating = 70; + // + FeedsRcmdReasonStyle rcmd_reason_style = 71; + // + int32 underframe_card_style = 72; + // + string lottery_text = 73; + // + AdCardCalenderInfo calender_info = 74; + // + int32 half_panel_interaction_style = 75; + // + int32 half_panel_content_type = 76; + // + StoryAnchor story_anchor = 77; + // + int32 jump_interaction_style = 78; + // + string warm_up_text = 79; + // + int32 live_page_type = 80; + // + int32 playpage_card_style = 81; + // + AppDownloadStyle app_download_style = 82; + // + repeated Text desc_list = 83; + // + string product_source = 84; + // + string coupon_desc = 85; + // + string coupon_price = 86; + // + string volume_desc = 87; + // + repeated string labels = 88; + // + int32 item_source = 89; +} + +// +message AdContentExtraDto { + // + string layout = 1; + // + repeated string show_urls = 2; + // + repeated string click_urls = 3; + // + repeated string danmu_list_show_urls = 4; + // + repeated string danmu_list_click_urls = 5; + // + repeated string danmu_detail_show_urls = 6; + // + repeated string danmu_trolley_add_urls = 7; + // + bool use_ad_web_v2 = 8; + // + repeated string open_whitelist = 9; + // + repeated AppPackageDto download_whitelist = 10; + // + AdCardDto card = 11; + // + int32 report_time = 12; + // + int32 appstore_priority = 13; + // + int32 sales_type = 14; + // + int32 preload_landingpage = 15; + // + bool special_industry = 16; + // + string special_industry_tips = 17; + // + bool enable_download_dialog = 18; + // + bool enable_share = 19; + // + int32 upzone_entrance_type = 20; + // + int32 upzone_entrance_report_id = 21; + // + AdShareInfoDto share_info = 22; + // + string topview_pic_url = 23; + // + string topview_video_url = 24; + // + int32 click_area = 25; + // + int64 shop_id = 26; + // + int64 up_mid = 27; + // + string track_id = 28; + // + int32 enable_store_direct_launch = 29; + // + int64 product_id = 30; + // + bool enable_double_jump = 31; + // + repeated string show1_s_urls = 32; + // + string from_track_id = 33; + // + bool store_callup_card = 34; + // + int32 landingpage_download_style = 35; + // + int32 special_industry_style = 36; + // + bool enable_h5_alert = 37; + // + int32 macro_replace_priority = 38; + // + int32 feedback_panel_style = 39; + // + string appstore_url = 40; + // + int32 enable_h5_pre_load = 41; + // + string h5_pre_load_url = 42; + // + string cm_from_track_id = 43; + // + string abtest = 44; + // + int32 download_url_type = 45; + // + int32 enable_auto_callup = 46; + // + string external_link_warning = 47; + // + int64 live_booking_id = 48; + // + string store_dplink_xiaomi = 49; + // + int64 lottery_id = 50; + // + bool enable_openapk_dialog = 51; + // + repeated LiveBookInfoDto live_booking_infos = 52; + // + int32 user_cancel_jump_type = 53; + // + string user_cancel_jump_url = 54; + // + string app_exp_params = 55; +} + +// +message AdCoverDto { + // + string url = 1; + // + int32 loop = 2; + // + string jump_url = 3; + // + repeated string report_urls = 4; + // + int32 image_height = 5; + // + int32 image_width = 6; + // + string night_url = 7; +} + +// +message AdDto { + // + int64 creative_id = 1; + // + string ad_cb = 2; + // + AdContentExtraDto extra = 3; + // + int32 cm_mark = 4; + // + int64 top_view_id = 5; + // + int32 creative_type = 6; + // + int32 card_type = 7; + // + int32 creative_style = 8; + // + bool is_ad = 9; + // + CreativeDto creative_content = 10; +} + +// +message AdFeedbackPanelDto { + // + string panel_type_text = 1; + // + repeated AdFeedbackPanelModuleDto feedback_panel_detail = 2; + // + string toast = 3; + // + string open_rec_tips = 4; + // + string close_rec_tips = 5; +} + +// +message AdFeedbackPanelModuleDto { + // + int32 module_id = 1; + // + string icon_url = 2; + // + int32 jump_type = 3; + // + string jump_url = 4; + // + string text = 5; + // + repeated AdSecondFeedbackPanelDto secondary_panel = 6; + // + string sub_text = 7; +} + +// +message AdGoodDto { + // + int64 item_id = 1; + // + int64 sku_id = 2; + // + int64 shop_id = 3; + // + int64 sku_num = 4; +} + +// +message AdOgvEpDto { + // + int64 epid = 1; + // + bool has_recommend = 2; +} + +// +message AdSecondFeedbackPanelDto { + // + int32 reason_id = 1; + // + string text = 2; +} + +// +message AdShareInfoDto { + // + string title = 1; + // + string subtitle = 2; + // + string image_url = 3; +} + +// +message AdsControlDto { + // + int32 has_danmu = 1; + // + repeated int64 cids = 2; + // + repeated AdOgvEpDto eps = 3; + // + int32 under_player_scroller_seconds = 4; + // + bool vip_skipped_ad = 5; + // + bool has_live_booking_ad = 6; + // + int32 under_player_banner_mode = 7; +} + +// +message AdverDto { + // + int64 adver_id = 1; + // + string adver_logo = 2; + // + string adver_name = 3; + // + int32 adver_type = 4; + // + string adver_page_url = 5; + // + string adver_desc = 6; +} + +// +message AndroidGamePageRes { + // + Module1 module1 = 1; + // + Module3 module3 = 2; + // + Module4 module4 = 3; + // + Module5 module5 = 4; + // + Module6 module6 = 5; + // + Module7 module7 = 6; + // + Module8 module8 = 7; + // + Module9 module9 = 8; + // + Module10 module10 = 9; + // + Module11 module11 = 10; + // + Module12 module12 = 11; + // + Module13 module13 = 12; + // + repeated int32 module_seq = 13; + // + string background_color = 14; + // + Module14 module14 = 15; +} + +// +message AndroidTag { + // + string text = 1; + // + int32 type = 2; +} + +// +message AppDownloadStyle { + // + int32 style = 1; + // + repeated string tags = 2; + // + string guide_text = 3; + // + repeated string head_imgs = 4; + // + repeated string detail_imgs = 5; + // + int32 detail_img_layout = 6; + // + string detail_text = 7; +} + +// +message AppPackageDto { + // + int64 size = 1; + // + string display_name = 2; + // + string apk_name = 3; + // + string url = 4; + // + string bili_url = 5; + // + string md5 = 6; + // + string icon = 7; + // + string dev_name = 8; + // + string auth_url = 9; + // + string auth_name = 10; + // + string version = 11; + // + string update_time = 12; + // + string privacy_name = 13; + // + string privacy_url = 14; +} + +// +message Bulletin { + // + string tag_text = 1; + // + string text = 2; +} + +// +message Comment { + // + int64 game_base_id = 1; + // + string user_name = 2; + // + string user_face = 3; + // + int32 user_level = 4; + // + string comment_no = 5; + // + int32 grade = 6; + // + string content = 7; + // + int32 up_count = 8; +} + +// +message CreativeDto { + // + string title = 1; + // + string description = 2; + // + string image_url = 3; + // + string image_md5 = 4; + // + string url = 5; + // + string click_url = 6; + // + string show_url = 7; + // + int64 video_id = 8; + // + string thumbnail_url = 9; + // + string thumbnail_url_md5 = 10; + // + string logo_url = 11; + // + string logo_md5 = 12; + // + string username = 13; +} + +// +message CustomPlayUrl { + // + int32 play_time = 1; + // + repeated string urls = 2; +} + +// +message FeedsRcmdReasonStyle { + // + string bg_color = 1; + // + string bg_color_night = 2; + // + int32 bg_style = 3; + // + string border_color = 4; + // + string border_color_night = 5; + // + string text_color = 6; + // + string text_color_night = 7; + // + string text = 8; +} + +// +message ForwardReply { + // + int64 comment_id = 1; + // + string message = 2; + // + string highlight_text = 3; + // + string highlight_prefix_icon = 4; + // + string callup_url = 5; + // + string jump_url = 6; + // + int32 jump_type = 7; + // + string author_name = 8; + // + string author_icon = 9; +} + +// +message FullText { + // + string icon = 1; + // + string icon_for_night = 2; + // + string jump_uri = 3; + // + string prefix = 4; + // + string text = 5; +} + +// +message GameInfo { + // + string game_logo = 1; + // + string game_name = 2; + // + string game_desc = 3; +} + +// +message GameRank { + // + string icon_url = 1; + // + string night_icon_url = 2; + // + string bkg_night_color = 3; + // + string bkg_day_color = 4; + // + string font_night_color = 5; + // + string font_day_color = 6; + // + string rank_content = 7; + // + string rank_link = 8; +} + +// +message Gift { + // + string icon = 1; + // + string night_icon = 2; + // + string text = 3; + // + string url = 4; +} + +// +message GiftCardInfo { + // + string desc = 1; + // + repeated string icon_urls = 2; +} + +// +message IosGamePageRes { + // + string logo = 1; + // + string name = 2; + // + string sub_titile = 3; + // + repeated string image_url = 4; + // + string desc = 5; + // + AdButtonDto game_button = 6; + // + double grade = 7; + // + string rank_num = 8; + // + string rank_name = 9; +} + +// +message LeftCoverBadgeNewStyle { + // + string icon_url = 1; + // + string icon_night_url = 2; + // + int32 icon_width = 3; + // + int32 icon_height = 4; +} + +// +message LiveBookInfoDto { + // + int64 live_booking_id = 1; + // + AdCardCalenderInfo calender_info = 2; + // + int32 live_page_type = 3; +} + +// +message Module1 { + // + string game_name = 1; + // + string game_icon = 2; + // + string developer_input_name = 3; + // + repeated AndroidTag tag_list = 4; +} + +// +message Module10 { + // + bool display = 1; + // + string latest_update = 2; +} + +// +message Module11 { + // + bool display = 1; + // + repeated int32 star_number_list = 2; + // + string comment_str = 3; + // + double grade = 4; +} + +// +message Module12 { + // + bool display = 1; + // + repeated Comment comment_list = 2; + // + string comment_num = 3; + // + bool show_all_comment = 4; +} + +// +message Module13 { + // + int64 pkg_size = 1; + // + string customer_service = 2; + // + string website = 3; + // + string authority = 4; + // + string privacy = 5; + // + string developer_name = 6; + // + string update_time = 7; + // + string game_version = 8; + // + string android_pkg_name = 9; +} + +// +message Module14 { + // + repeated Reward reward_list = 1; + // + bool display = 2; +} + +// +message Module3 { + // + bool display = 1; + // + repeated QualityParmas quality_params = 3; +} + +// +message Module4 { + // + bool display = 1; + // + int32 gift_num = 2; + // + string gift_name = 3; + // + int32 gift_icon_num = 4; + // + repeated string icon_urls = 5; + // + repeated int64 gift_info_ids = 6; +} + +// +message Module5 { + // + bool display = 1; + // + string game_summary = 2; +} + +// +message Module6 { + // + bool display = 1; + // + string game_desc = 2; +} + +// +message Module7 { + // + bool display = 1; + // + repeated ScreenShots screen_shots = 2; +} + +// +message Module8 { + // + bool display = 1; + // + repeated string tag_list = 2; +} + +// +message Module9 { + // + bool display = 1; + // + string dev_introduction = 2; +} + +// +message NotClickableArea { + // + int32 x = 1; + // + int32 y = 2; + // + int32 z = 3; +} + +// +message QualityInfo { + // + string icon = 1; + // + string text = 2; + // + bool is_bg = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string text_color = 6; + // + string text_color_night = 7; + // + repeated string user_faces = 8; + // + string icon_night = 9; + // + int32 bg_style = 10; + // + string border_color = 11; + // + string border_color_night = 12; +} + +// +message QualityParmas { + // + string first_line = 1; + // + string second_line = 2; + // + double grade = 3; + // + string rank_icon = 4; + // + int32 quality_type = 5; +} + +// +message Reward { + // + int32 level = 1; + // + string title = 2; + // + string content = 3; + // + string pic = 4; + // + bool reach = 5; +} + +// +message ScreenShots { + // + string url = 1; + // + int32 height = 2; + // + int32 width = 3; + // + int32 seq = 4; +} + +// +message SourceContentDto { + // + string request_id = 1; + // + int32 source_id = 2; + // + int32 resource_id = 3; + // + bool is_ad_loc = 4; + // + google.protobuf.Int32Value server_type = 5; + // + string client_ip = 6; + // + google.protobuf.Int32Value card_index = 7; + // + int32 index = 8; + // + AdDto ad_content = 9; +} + +// +message StoryAnchor { + // + int32 type = 1; + // + StoryCartIcon story_cart_icon = 2; + // + string title = 3; + // + string desc = 4; +} + +// +message StoryCartIcon { + // + string icon_url = 1; + // + string icon_text = 2; + // + string icon_title = 3; +} + +// +message SubCardModule { + // + string subcard_type = 1; + // + string icon = 2; + // + string desc = 3; + // + string rank_stars = 4; + // + string amount_number = 5; + // + string avatar = 6; + // + string title = 7; + // + AdButtonDto button = 8; + // + repeated TagInfo tag_infos = 9; + // + repeated QualityInfo quality_infos = 10; + // + string star_rating = 11; + // + string sub_desc = 12; + // + string price_symbol = 13; + // + string goods_price = 14; + // + repeated Comment comment_list = 15; + // + GiftCardInfo gift_card_info = 16; + // + string extra_img = 17; + // + repeated AdButtonDto choose_button_list = 18; + // + int64 component_id = 19; + // + int64 pop_delay_time = 20; + // + string callup_url = 21; + // + string jump_url = 22; + // + string ad_img_tag = 23; + // + FullText full_text = 24; + // + ForwardReply forward_reply = 25; + // + WxProgramInfo wx_program_info = 26; + // + string night_icon = 27; + // + string price_desc = 28; + // + string ori_price = 29; +} + +// +message Tab2ExtraDto { + // + string cover_url = 1; + // + string title = 2; + // + string desc = 3; + // + AdButtonDto button = 5; + // + int32 auto_animate_time_ms = 6; + // + bool enable_click = 7; + // + string panel_url = 8; + // + repeated AppPackageDto download_whitelist = 9; + // + repeated string open_whitelist = 10; + // + bool use_ad_web_v2 = 11; + // + bool enable_store_direct_launch = 12; + // + int32 sales_type = 13; + // + int32 landingpage_download_style = 15; + // + int32 appstore_priority = 16; + // + string appstore_url = 17; + // + int32 appstore_delay_time = 18; + // + int32 page_cover_type = 19; + // + int32 page_pull_type = 20; + // + AndroidGamePageRes android_game_page_res = 21; + // + IosGamePageRes ios_game_page_res = 22; + // + AdBusinessMarkDto ad_tag_style = 23; + // + AdFeedbackPanelDto feedback_panel = 24; + // + string ad_cb = 25; + // + int32 url_type = 26; + // + string av_content = 27; + // + int32 download_whitelist_mode = 28; + // + int64 download_whitelist_duration = 29; + // + string abtest = 30; + // + int32 download_url_type = 31; + // + int32 enable_auto_callup = 32; + // + string external_link_warning = 33; + // + string store_dplink_xiaomi = 34; + // + bool enable_openapk_dialog = 35; +} + +// +message TabExtraDto { + // + string tab_url = 1; + // + int32 enable_store_direct_launch = 2; + // + int32 store_callup_card = 3; + // + int32 sales_type = 4; + // + repeated AppPackageDto download_whitelist = 5; + // + bool special_industry = 6; + // + string special_industry_tips = 7; + // + repeated string open_whitelist = 8; + // + int32 landingpage_download_style = 9; + // + int32 appstore_priority = 10; + // + bool use_ad_web_v2 = 11; + // + bool enable_download_dialog = 12; + // + string appstore_url = 13; + // + int32 appstore_delay_time = 14; + // + string av_content = 15; +} + +// +message TabInfoDto { + // + string tab_name = 1; + // + google.protobuf.Any extra = 2; + // + int32 tab_version = 3; +} + +// +message TagInfo { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + string type = 8; +} + +// +message Text { + // + string text = 1; + // + string day_color = 2; + // + string night_color = 3; + // + int64 font_size = 4; + // + int32 text_decoration = 5; +} + +// +message WxProgramInfo { + // + string org_id = 1; + // + string name = 2; + // + string path = 3; +} + diff --git a/proto/bilibili/api/player/v1.proto b/proto/bilibili/api/player/v1.proto new file mode 100644 index 0000000..5794a42 --- /dev/null +++ b/proto/bilibili/api/player/v1.proto @@ -0,0 +1,76 @@ +syntax = "proto3"; + +package bilibili.api.player.v1; + +// +service Heartbeat { + // + rpc Mobile (HeartbeatReq) returns (HeartbeatReply); +} + +// +message HeartbeatReply { + // + int64 ts = 1; +} + +// +message HeartbeatReq { + // + int64 server_time = 1; + // + string session = 2; + // + int64 mid = 3; + // + int64 aid = 4; + // + int64 cid = 5; + // + string sid = 6; + // + int64 epid = 7; + // + string type = 8; + // + int32 sub_type = 9; + // + int32 quality = 10; + // + int64 total_time = 11; + // + int64 paused_time = 12; + // + int64 played_time = 13; + // + int64 video_duration = 14; + // + string play_type = 15; + // + int32 network_type = 16; + // + int64 last_play_progress_time = 17; + // + int64 max_play_progress_time = 18; + // + int32 from = 19; + // + string from_spmid = 20; + // + string spmid = 21; + // + string epid_status = 22; + // + string play_status = 23; + // + string user_status = 24; + // + int64 actual_played_time = 25; + // + int32 auto_play = 26; + // + int64 list_play_time = 27; + // + int64 detail_play_time = 28; +} + diff --git a/proto/bilibili/api/probe/v1.proto b/proto/bilibili/api/probe/v1.proto new file mode 100644 index 0000000..bb39b70 --- /dev/null +++ b/proto/bilibili/api/probe/v1.proto @@ -0,0 +1,192 @@ +syntax = "proto3"; + +package bilibili.api.probe.v1; + +// +service Probe { + // + rpc TestCode (CodeReq) returns (CodeReply); + // + rpc TestReq (ProbeReq) returns (ProbeReply); + // + rpc TestStream (stream ProbeStreamReq) returns (stream ProbeStreamReply); + // + rpc TestSub (ProbeSubReq) returns (stream ProbeSubReply); +} + +// +service ProbeService { + // + rpc Echo (SimpleMessage) returns (SimpleMessage); + // + rpc EchoBody (SimpleMessage) returns (SimpleMessage); + // + rpc EchoDelete (SimpleMessage) returns (SimpleMessage); + // + rpc EchoError (ErrorMessage) returns (ErrorMessage); + // + rpc EchoPatch (DynamicMessageUpdate) returns (DynamicMessageUpdate); +} + +// +enum Category { + // + CATEGORY_UNSPECIFIED = 0; + // + CATEGORY_ONE = 1; + // + CATEGORY_TWO = 2; + // + CATEGORY_THREE = 3; + // + CATEGORY_FOUR = 4; +} + +// +message CodeReply { + // + string id = 1; + // + string id1 = 2; + // + int64 code = 3; + // + string message_s = 4; +} + +// +message CodeReq { + // + int64 code = 1; +} + +// +message CreatTask { + // + string name = 1; +} + +// +message CreateTopic { + // + int64 id = 1; +} + +// +message DynamicMessageUpdate { + // + SimpleMessage body = 1; +} + +// +message Embedded { + // + bool bool_val = 1; + // + int32 int32_val = 2; + // + int64 int64_val = 3; + // + float float_val = 4; + // + double double_val = 5; + // + string string_val = 6; + // + repeated bool repeated_bool_val = 7; + // + repeated int32 repeated_int32_val = 8; + // + repeated int64 repeated_int64_val = 9; + // + repeated float repeated_float_val = 10; + // + repeated double repeated_double_val = 11; + // + repeated string repeated_string_val = 12; + // + map map_string_val = 13; + // + map map_error_val = 14; +} + +// +message ErrorMessage { + // + int64 code = 1; + // + string reason = 2; + // + string message = 3; +} + +// +message ProbeReply { + // + string content = 1; + // + int64 timestamp = 2; +} + +// +message ProbeReq { + // + int64 mid = 1; + // + string buvid = 2; +} + +// +message ProbeStreamReply { + // + int64 sequence = 1; + // + int64 timestamp = 2; + // + string content = 3; +} + +// +message ProbeStreamReq { + // + int64 mid = 1; + // + int64 sequence = 2; +} + +// +message ProbeSubReply { + // + int64 message_id = 1; +} + +// +message ProbeSubReq { + // + string buvid = 1; +} + +// +message SimpleMessage { + // + int32 id = 1; + // + int64 num = 2; + // + string lang = 3; + // + Category cate = 4; + // + Embedded embedded = 5; +} + +// +message Task { + // + string name = 1; + // + string author = 2; + // + bool cache = 3; +} + diff --git a/proto/bilibili/api/ticket/v1.proto b/proto/bilibili/api/ticket/v1.proto new file mode 100644 index 0000000..84f472a --- /dev/null +++ b/proto/bilibili/api/ticket/v1.proto @@ -0,0 +1,82 @@ +syntax = "proto3"; + +package bilibili.api.ticket.v1; + +// +service Ticket { + // + rpc GenWebTicket (GenWebTicketRequest) returns (GenWebTicketResponse); + // + rpc GetTicket (GetTicketRequest) returns (GetTicketResponse); +} + +// +message GenWebTicketRequest { + // + map context = 1; + // + string key_id = 2; + // + string hexsign = 3; + // + string token = 4; +} + +// +message GenWebTicketResponse { + // + message Context { + // + string v_voucher = 1; + } + + // + message Nav { + // + string img = 1; + // + string sub = 2; + } + + // + string ticket = 1; + // + int64 created_at = 2; + // + int64 ttl = 3; + // + Context context = 4; + // + Nav nav = 5; +} + +// +message GetTicketRequest { + // + map context = 1; + // + string key_id = 2; + // + bytes sign = 3; + // + string token = 4; +} + +// +message GetTicketResponse { + // + message Context { + // + string v_voucher = 1; + } + + // + string ticket = 1; + // + int64 created_at = 2; + // + int64 ttl = 3; + // + Context context = 4; +} + diff --git a/proto/bilibili/app/archive/middleware/v1.proto b/proto/bilibili/app/archive/middleware/v1.proto new file mode 100644 index 0000000..4b824f8 --- /dev/null +++ b/proto/bilibili/app/archive/middleware/v1.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +package bilibili.app.archive.middleware.v1; + +// +message PlayerArgs { + // + int64 qn = 1; + // + int64 fnver = 2; + // + int64 fnval = 3; + // + int64 force_host = 4; + // + int64 voice_balance = 5; + // + QnPolicy qn_policy = 6; +} + +// +enum QnPolicy { + // + QN_POLICY_DEFAULT = 0; + // + QN_POLICY_AUTO_QN_ENABLE = 1; +} + diff --git a/proto/bilibili/app/archive/v1.proto b/proto/bilibili/app/archive/v1.proto new file mode 100644 index 0000000..e1d0f27 --- /dev/null +++ b/proto/bilibili/app/archive/v1.proto @@ -0,0 +1,198 @@ +syntax = "proto3"; + +package bilibili.app.archive.v1; + +// +message Arc { + // + int64 aid = 1; + // + int64 videos = 2; + // + int32 type_id = 3; + // + string type_name = 4; + // + int32 copyright = 5; + // + string pic = 6; + // + string title = 7; + // + int64 pubdate = 8; + // + int64 ctime = 9; + // + string desc = 10; + // + int32 state = 11; + // + int32 access = 12; + // + int32 attribute = 13; + // + string tag = 14; + // + repeated string tags = 15; + // + int64 duration = 16; + // + int64 mission_id = 17; + // + int64 order_id = 18; + // + string redirect_url = 19; + // + int64 forward = 20; + // + Rights rights = 21; + // + Author author = 22; + // + Stat stat = 23; + // + string report_result = 24; + // + string dynamic = 25; + // + int64 first_cid = 26; + // + Dimension dimension = 27; + // + repeated StaffInfo staff_info = 28; + // + int64 season_id = 29; + // + int64 attribute_v2 = 30; + // + SeasonTheme season_theme = 31; + // + string short_link_v2 = 40; + // + int32 up_from_v2 = 41; + // + string first_frame = 42; +} + +// +message Author { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; +} + +// +message Dimension { + // + int64 width = 1; + // + int64 height = 2; + // + int64 rotate = 3; +} + +// +message Page { + // + int64 cid = 1; + // + int32 page = 2; + // + string from = 3; + // + string part = 4; + // + int64 duration = 5; + // + string vid = 6; + // + string desc = 7; + // + string web_link = 8; + // + Dimension dimension = 9; + // + string first_frame = 10; +} + +// +message Rights { + // + int32 bp = 1; + // + int32 elec = 2; + // + int32 download = 3; + // + int32 movie = 4; + // + int32 pay = 5; + // + int32 hd5 = 6; + // + int32 no_reprint = 7; + // + int32 autoplay = 8; + // + int32 ugc_pay = 9; + // + int32 is_cooperation = 10; + // + int32 ugc_pay_preview = 11; + // + int32 no_background = 12; + // + int32 arc_pay = 13; + // + int32 pay_free_watch = 14; +} + +// +message SeasonTheme { + // + string bg_color = 1; + // + string selected_bg_color = 2; + // + string text_color = 3; +} + +// +message StaffInfo { + // + int64 mid = 1; + // + string title = 2; + // + int64 attribute = 3; +} + +// +message Stat { + // + int64 aid = 1; + // + int32 view = 2; + // + int32 danmaku = 3; + // + int32 reply = 4; + // + int32 fav = 5; + // + int32 coin = 6; + // + int32 share = 7; + // + int32 now_rank = 8; + // + int32 his_rank = 9; + // + int32 like = 10; + // + int32 dislike = 11; +} + diff --git a/proto/bilibili/app/card/v1.proto b/proto/bilibili/app/card/v1.proto new file mode 100644 index 0000000..45a18bc --- /dev/null +++ b/proto/bilibili/app/card/v1.proto @@ -0,0 +1,1280 @@ +syntax = "proto3"; + +package bilibili.app.card.v1; + +// +message AdInfo { + // + int64 creative_id = 1; + // + int32 creative_type = 2; + // + int32 card_type = 3; + // + CreativeContent creative_content = 4; + // + string ad_cb = 5; + // + int64 resource = 6; + // + int32 source = 7; + // + string request_id = 8; + // + bool is_ad = 9; + // + int64 cm_mark = 10; + // + int32 index = 11; + // + bool is_ad_loc = 12; + // + int32 card_index = 13; + // + string client_ip = 14; + // + bytes extra = 15; + // + int32 creative_style = 16; + // + int64 nature_ad = 17; + // + int32 content_fast_access = 18; +} + +// +message Args { + // + int32 type = 1; + // + int64 up_id = 2; + // + string up_name = 3; + // + int32 rid = 4; + // + string rname = 5; + // + int64 tid = 6; + // + string tname = 7; + // + string track_id = 8; + // + string state = 9; + // + int32 converge_type = 10; + // + int64 aid = 11; +} + +// +message Avatar { + // + string cover = 1; + // + string text = 2; + // + string uri = 3; + // + int32 type = 4; + // + string event = 5; + // + string event_v2 = 6; + // + int32 defalut_cover = 7; +} + +// +message Base { + // + string card_type = 1; + // + string card_goto = 2; + // + string goto = 3; + // + string param = 4; + // + string cover = 5; + // + string title = 6; + // + string uri = 7; + // + ThreePoint three_point = 8; + // + Args args = 9; + // + PlayerArgs player_args = 10; + // + int64 idx = 11; + // + AdInfo ad_info = 12; + // + Mask mask = 13; + // + string from_type = 14; + // + repeated ThreePointV2 three_point_v2 = 15; + // + repeated ThreePointV3 three_point_v3 = 16; + // + Button desc_button = 17; + // + ThreePointV4 three_point_v4 = 18; + // + UpArgs up_args = 19; + // + string track_id = 20; +} + +// +message Bubble { + // + string bubble_content = 1; + // + int32 version = 2; + // + int64 stime = 3; +} + +// +message Button { + // + string text = 1; + // + string param = 2; + // + string uri = 3; + // + string event = 4; + // + int32 selected = 5; + // + int32 type = 6; + // + string event_v2 = 7; + // + Relation relation = 8; +} + +// +message Card { + // + oneof item { + // + SmallCoverV5 small_cover_v5 = 1; + // + LargeCoverV1 large_cover_v1 = 2; + // + ThreeItemAllV2 three_item_all_v2 = 3; + // + ThreeItemV1 three_item_v1 = 4; + // + HotTopic hot_topic = 5; + // + DynamicHot three_item_h_v5 = 6; + // + MiddleCoverV3 middle_cover_v3 = 7; + // + LargeCoverV4 large_cover_v4 = 8; + // + PopularTopEntrance popular_top_entrance = 9; + // + RcmdOneItem rcmd_one_item = 10; + // + SmallCoverV5Ad small_cover_v5_ad = 11; + // + TopicList topic_list = 12; + } +} + +// +message CreativeContent { + // + string title = 1; + // + string description = 2; + // + int64 video_id = 3; + // + string username = 4; + // + string image_url = 5; + // + string image_md5 = 6; + // + string log_url = 7; + // + string log_md5 = 8; + // + string url = 9; + // + string click_url = 10; + // + string show_url = 11; +} + +// +message DislikeReason { + // + int64 id = 1; + // + string name = 2; +} + +// +message DoubleCards { + // + oneof card { + // + SmallCoverV2 small_cover_v2 = 1; + // + OnePicV2 one_pic_v2 = 2; + // + ThreePicV2 three_pic_v2 = 3; + } +} + +// +message DynamicHot { + // + Base base = 1; + // + string top_left_title = 2; + // + string desc1 = 3; + // + string desc2 = 4; + // + string more_uri = 5; + // + string more_text = 6; + // + repeated string covers = 7; + // + string cover_right_text = 8; + // + ReasonStyle top_rcmd_reason_style = 9; +} + +// +message EntranceItem { + // + string goto = 1; + // + string icon = 2; + // + string title = 3; + // + string module_id = 4; + // + string uri = 5; + // + int64 entrance_id = 6; + // + Bubble bubble = 7; + // + int32 entrance_type = 8; +} + +// +message FunctionalButton { + // + int32 type = 1; + // + repeated FunctionalButtonMeta button_metas = 2; +} + +// +message FunctionalButtonMeta { + // + string icon = 1; + // + string text = 2; + // + string button_status = 3; + // + string toast = 4; +} + +// +message HotTopic { + // + Base base = 1; + // + string desc = 2; + // + repeated HotTopicItem items = 3; +} + +// +message HotTopicItem { + // + string cover = 1; + // + string uri = 2; + // + string param = 3; + // + string name = 4; +} + +// +message HotwordEntrance { + // + int64 hotword_id = 1; + // + string hot_text = 2; + // + string h5_url = 3; + // + string icon = 4; +} + +// +message InlineProgressBar { + // + string icon_drag = 1; + // + string icon_drag_hash = 2; + // + string icon_stop = 3; + // + string icon_stop_hash = 4; +} + +// +message LargeCoverV1 { + // + Base base = 1; + // + string cover_gif = 2; + // + Avatar avatar = 3; + // + string cover_left_text1 = 4; + // + string cover_left_text2 = 5; + // + string cover_left_text3 = 6; + // + string cover_badge = 7; + // + string top_rcmd_reason = 8; + // + string bottom_rcmd_reason = 9; + // + string desc = 10; + // + int32 official_icon = 11; + // + int32 can_play = 12; + // + ReasonStyle top_rcmd_reason_style = 13; + // + ReasonStyle bottom_rcmd_reason_style = 14; + // + ReasonStyle rcmd_reason_style_v2 = 15; + // + ReasonStyle left_cover_badge_style = 16; + // + ReasonStyle right_cover_badge_style = 17; + // + string cover_badge2 = 18; + // + LikeButton like_button = 19; + // + int32 title_single_line = 20; + // + string cover_right_text = 21; +} + +// +message LargeCoverV2 { + // + Base base = 1; + // + Avatar avatar = 2; + // + string badge = 3; + // + Button cover_right_button = 4; + // + string cover_left_text1 = 5; + // + int32 cover_left_icon1 = 6; + // + string cover_left_text2 = 7; + // + int32 cover_left_icon2 = 8; + // + string rcmd_reason = 9; + // + int32 official_icon = 10; + // + int32 can_play = 11; + // + ReasonStyle rcmd_reason_style = 12; + // + int32 show_top = 13; + // + int32 show_bottom = 14; +} + +// +message LargeCoverV3 { + // + Base base = 1; + // + string cover_gif = 2; + // + Avatar avatar = 3; + // + ReasonStyle top_rcmd_reason_style = 4; + // + ReasonStyle bottom_rcmd_reason_style = 5; + // + string cover_left_text1 = 6; + // + int32 cover_left_icon1 = 7; + // + string cover_left_text2 = 8; + // + int32 cover_left_icon2 = 9; + // + string cover_right_text = 10; + // + string desc = 11; + // + int32 official_icon = 12; +} + +// +message LargeCoverV4 { + // + Base base = 1; + // + string cover_left_text1 = 2; + // + string cover_left_text2 = 3; + // + string cover_left_text3 = 4; + // + string cover_badge = 5; + // + int32 can_play = 6; + // + Up up = 7; + // + string short_link = 8; + // + string share_subtitle = 9; + // + string play_number = 10; + // + string bvid = 11; + // + string sub_param = 12; +} + +// +message LikeButton { + // + int64 aid = 1; + // + int32 count = 2; + // + bool show_count = 3; + // + string event = 4; + // + int32 selected = 5; + // + string event_v2 = 6; +} + +// +message Mask { + // + Avatar avatar = 1; + // + Button button = 2; +} + +// +message MiddleCoverV2 { + // + Base base = 1; + // + int32 ratio = 2; + // + string desc = 3; + // + string badge = 4; +} + +// +message MiddleCoverV3 { + // + Base base = 1; + // + string desc1 = 2; + // + string desc2 = 3; + // + ReasonStyle cover_badge_style = 4; +} + +// +message MultiItem { + // + Base base = 1; + // + string more_uri = 2; + // + string more_text = 3; + // + repeated DoubleCards items = 4; +} + +// +message OnePicV2 { + // + Base base = 1; + // + int32 cover_left_icon1 = 2; + // + string cover_left_text2 = 3; + // + string cover_right_text = 4; + // + int32 cover_right_icon = 5; + // + string cover_right_background_color = 6; + // + string badge = 7; + // + string rcmd_reason = 8; + // + Avatar avatar = 9; + // + ReasonStyle rcmd_reason_style = 10; +} + +// +message OnePicV3 { + // + Base base = 1; + // + string cover_left_text1 = 2; + // + int32 cover_left_icon1 = 3; + // + string cover_right_text = 4; + // + int32 cover_right_icon = 5; + // + string cover_right_background_color = 6; + // + string badge = 7; + // + ReasonStyle rcmd_reason_style = 8; +} + +// +message PanelMeta { + // + int32 panel_type = 1; + // + string share_origin = 2; + // + string share_id = 3; + // + repeated FunctionalButton functional_buttons = 4; +} + +// +message PlayerArgs { + // + int32 is_live = 1; + // + int64 aid = 2; + // + int64 cid = 3; + // + int32 sub_type = 4; + // + int64 room_id = 5; + // + int64 ep_id = 7; + // + int32 is_preview = 8; + // + string type = 9; + // + int64 duration = 10; + // + int64 season_id = 11; +} + +// +message PopularTopEntrance { + // + Base base = 1; + // + repeated EntranceItem items = 2; +} + +// +message RcmdOneItem { + // + Base base = 1; + // + ReasonStyle top_rcmd_reason_style = 2; + // + SmallCoverRcmdItem item = 3; +} + +// +message ReasonStyle { + // + string text = 1; + // + string text_color = 2; + // + string bg_color = 3; + // + string border_color = 4; + // + string icon_url = 5; + // + string text_color_night = 6; + // + string bg_color_night = 7; + // + string border_color_night = 8; + // + string icon_night_url = 9; + // + int32 bg_style = 10; + // + string uri = 11; + // + string icon_bg_url = 12; + // + string event = 13; + // + string event_v2 = 14; + // + int32 right_icon_type = 15; + // + string left_icon_type = 16; +} + +// +message Relation { + // + int32 status = 1; + // + int32 is_follow = 2; + // + int32 is_followed = 3; +} + +// +message SharePlane { + // + string title = 1; + // + string share_subtitle = 2; + // + string desc = 3; + // + string cover = 4; + // + int64 aid = 5; + // + string bvid = 6; + // + map share_to = 7; + // + string author = 8; + // + int64 author_id = 9; + // + string short_link = 10; + // + string play_number = 11; + // + int64 first_cid = 12; +} + +// +message SmallChannelSpecial { + // + Base base = 1; + // + string bg_cover = 2; + // + string desc1 = 3; + // + string desc2 = 4; + // + string badge = 5; + // + ReasonStyle rcmd_reason_style2 = 6; +} + +// +message SmallCoverConvergeV2 { + // + Base base = 1; + // + string cover_left_text1 = 2; + // + int32 cover_left_icon1 = 3; + // + string cover_left_text2 = 4; + // + int32 cover_left_icon2 = 5; + // + string cover_right_text = 6; + // + string cover_right_top_text = 7; + // + ReasonStyle rcmd_reason_style = 8; + // + ReasonStyle rcmd_reason_style_v2 = 9; +} + +// +message SmallCoverRcmdItem { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string param = 4; + // + string goto = 5; + // + string cover_right_text1 = 6; + // + string right_desc1 = 7; + // + string right_desc2 = 8; + // + string cover_gif = 9; + // + int32 right_icon1 = 10; + // + int32 right_icon2 = 11; + // + string cover_right_text_content_description = 12; + // + string right_desc1_content_description = 13; +} + +// +message SmallCoverV2 { + // + Base base = 1; + // + string cover_gif = 2; + // + int32 cover_blur = 3; + // + string cover_left_text1 = 4; + // + int32 cover_left_icon1 = 5; + // + string cover_left_text2 = 6; + // + int32 cover_left_icon2 = 7; + // + string cover_right_text = 8; + // + int32 cover_right_icon = 9; + // + string cover_right_background_color = 10; + // + string subtitle = 11; + // + string badge = 12; + // + string rcmd_reason = 13; + // + string desc = 14; + // + Avatar avatar = 15; + // + int32 official_icon = 16; + // + int32 can_play = 17; + // + ReasonStyle rcmd_reason_style = 18; + // + ReasonStyle rcmd_reason_style_v2 = 19; + // + LikeButton like_button = 20; +} + +// +message SmallCoverV3 { + // + Base base = 1; + // + Avatar avatar = 2; + // + string cover_left_text = 3; + // + Button cover_right_button = 4; + // + string rcmd_reason = 5; + // + string desc = 6; + // + int32 official_icon = 7; + // + int32 can_play = 8; + // + ReasonStyle rcmd_reason_style = 9; +} + +// +message SmallCoverV4 { + // + Base base = 1; + // + string cover_badge = 2; + // + string desc = 3; + // + string title_right_text = 4; + // + int32 title_right_pic = 5; +} + +// +message SmallCoverV5 { + // + Base base = 1; + // + string cover_gif = 2; + // + Up up = 3; + // + string cover_right_text1 = 4; + // + string right_desc1 = 5; + // + string right_desc2 = 6; + // + ReasonStyle rcmd_reason_style = 7; + // + HotwordEntrance hotword_entrance = 8; + // + ReasonStyle corner_mark_style = 9; + // + int32 right_icon1 = 10; + // + int32 right_icon2 = 11; + // + ReasonStyle left_corner_mark_style = 12; + // + string cover_right_text_content_description = 13; + // + string right_desc1_content_description = 14; +} + +// +message SmallCoverV5Ad { + // + Base base = 1; + // + string cover_gif = 2; + // + Up up = 3; + // + string cover_right_text1 = 4; + // + string right_desc1 = 5; + // + string right_desc2 = 6; + // + ReasonStyle rcmd_reason_style = 7; + // + HotwordEntrance hotword_entrance = 8; + // + ReasonStyle corner_mark_style = 9; + // + int32 right_icon1 = 10; + // + int32 right_icon2 = 11; + // + ReasonStyle left_corner_mark_style = 12; + // + string cover_right_text_content_description = 13; + // + string right_desc1_content_description = 14; +} + +// +message SmallCoverV7 { + // + Base base = 1; + // + string desc = 2; +} + +// +message SmallCoverV9 { + // + Base base = 1; + // + string cover_left_text1 = 2; + // + int32 cover_left_icon1 = 3; + // + string cover_left_text2 = 4; + // + int32 cover_left_icon2 = 5; + // + string cover_right_text = 6; + // + int32 cover_right_icon = 7; + // + int32 can_play = 8; + // + ReasonStyle rcmd_reason_style = 9; + // + Up up = 10; + // + ReasonStyle left_cover_badge_style = 11; + // + ReasonStyle left_bottom_rcmd_reason_style = 12; +} + +// +message ThreeItemAllV2 { + // + Base base = 1; + // + ReasonStyle top_rcmd_reason_style = 2; + // + repeated TwoItemHV1Item item = 3; +} + +// +message ThreeItemV1 { + // + Base base = 1; + // + int32 title_icon = 2; + // + string more_uri = 3; + // + string more_text = 4; + // + repeated ThreeItemV1Item items = 5; +} + +// +message ThreeItemV1Item { + // + Base base = 1; + // + string cover_left_text = 2; + // + int32 cover_left_icon = 3; + // + string desc1 = 4; + // + string desc2 = 5; + // + string badge = 6; +} + +// +message ThreeItemV2 { + // + Base base = 1; + // + int32 title_icon = 2; + // + string more_uri = 3; + // + string more_text = 4; + // + repeated ThreeItemV2Item items = 5; +} + +// +message ThreeItemV2Item { + // + Base base = 1; + // + int32 cover_left_icon = 2; + // + string desc_text1 = 3; + // + int32 desc_icon1 = 4; + // + string desc_text2 = 5; + // + int32 desc_icon2 = 6; + // + string badge = 7; +} + +// +message ThreePicV2 { + // + Base base = 1; + // + string left_cover = 2; + // + string right_cover1 = 3; + // + string right_cover2 = 4; + // + string cover_left_text1 = 5; + // + int32 cover_left_icon1 = 6; + // + string cover_left_text2 = 7; + // + int32 cover_left_icon2 = 8; + // + string cover_right_text = 9; + // + int32 cover_right_icon = 10; + // + string cover_right_background_color = 11; + // + string badge = 12; + // + string rcmd_reason = 13; + // + string desc = 14; + // + Avatar avatar = 15; + // + ReasonStyle rcmd_reason_style = 16; +} + +// +message ThreePicV3 { + // + Base base = 1; + // + string left_cover = 2; + // + string right_cover1 = 3; + // + string right_cover2 = 4; + // + string cover_left_text1 = 5; + // + int32 cover_left_icon1 = 6; + // + string cover_left_text2 = 7; + // + int32 cover_left_icon2 = 8; + // + string cover_right_text = 9; + // + int32 cover_right_icon = 10; + // + string cover_right_background_color = 11; + // + string badge = 12; + // + ReasonStyle rcmd_reason_style = 13; +} + +// +message ThreePoint { + // + repeated DislikeReason dislike_reasons = 1; + // + repeated DislikeReason feedbacks = 2; + // + int32 watch_later = 3; +} + +// +message ThreePointV2 { + // + string title = 1; + // + string subtitle = 2; + // + repeated DislikeReason reasons = 3; + // + string type = 4; + // + int64 id = 5; +} + +// +message ThreePointV3 { + // + string title = 1; + // + string selected_title = 2; + // + string subtitle = 3; + // + repeated DislikeReason reasons = 4; + // + string type = 5; + // + int64 id = 6; + // + int32 selected = 7; + // + string icon = 8; + // + string selected_icon = 9; + // + string url = 10; + // + int32 default_id = 11; +} + +// +message ThreePointV4 { + // + SharePlane share_plane = 1; + // + WatchLater watch_later = 2; +} + +// +message TopicButton { + // + string title = 1; + // + string jump_uri = 2; + // + bool red_dot = 3; +} + +// +message TopicList { + // + Base base = 1; + // + string title = 2; + // + string title_icon = 3; + // + TopicButton more_button = 4; + // + repeated TopicListItem topic_list_item = 5; +} + +// +message TopicListItem { + // + string icon = 1; + // + string icon_title = 2; + // + int64 topic_id = 3; + // + string topic_name = 4; + // + string url = 5; + // + int64 up_mid = 6; + // + int64 position = 7; +} + +// +message TwoItemHV1Item { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string param = 4; + // + Args args = 5; + // + string goto = 6; + // + string cover_left_text1 = 7; + // + int32 cover_left_icon1 = 8; + // + string cover_right_text = 9; +} + +// +message TwoItemV2 { + // + Base base = 1; + // + repeated TwoItemV2Item items = 2; +} + +// +message TwoItemV2Item { + // + Base base = 1; + // + string badge = 2; + // + string cover_left_text1 = 3; + // + int32 cover_left_icon1 = 4; +} + +// +message Up { + // + int64 id = 1; + // + string name = 2; + // + string desc = 3; + // + Avatar avatar = 4; + // + int32 official_icon = 5; + // + Button desc_button = 6; + // + string cooperation = 7; +} + +// +message UpArgs { + // + int64 up_id = 1; + // + string up_name = 2; + // + string up_face = 3; + // + int64 selected = 4; +} + +// +message WatchLater { + // + int64 aid = 1; + // + string bvid = 2; +} + diff --git a/proto/bilibili/app/click/v1.proto b/proto/bilibili/app/click/v1.proto new file mode 100644 index 0000000..abee095 --- /dev/null +++ b/proto/bilibili/app/click/v1.proto @@ -0,0 +1,128 @@ +syntax = "proto3"; + +package bilibili.app.click.v1; + +// +service Click { + // + rpc HeartBeat (HeartBeatReq) returns (HeartBeatReply); +} + +// +message AccountInfo { + // + int64 mid = 1; +} + +// +message AppInfo { + // + string top_page_class = 1; + // + int64 ftime = 2; + // + string did = 3; +} + +// +message Extra { + // + string session = 1; + // + string refer = 2; +} + +// +message HeartBeatReply { +} + +// +message HeartBeatReq { + // + string session_v2 = 1; + // + Stage stage = 2; + // + int64 stream_timeout = 3; + // + int64 batch_frequency = 4; + // + float frequency = 5; + // + VideoMeta video_meta = 6; + // + AppInfo app_info = 7; + // + AccountInfo account_info = 8; + // + PreProcessResult pre_process_result = 9; + // + repeated PlayerStatus player_status = 10; + // + VideoInfo video_info = 11; + // + Extra extra = 12; +} + +// +enum PlayState { + // + STATE_UNKNOWN = 0; + // + PREPARING = 1; + // + PREPARED = 2; + // + PLAYING = 3; + // + PAUSED = 4; + // + STOPPED = 5; + // + FAILED = 6; +} + +// +message PlayerStatus { + // + float playback_rate = 1; + // + int64 progress = 2; + // + PlayState state = 3; + // + bool is_buffering = 4; +} + +// +message PreProcessResult { + // + int64 vt = 1; +} + +// +enum Stage { + // + STAGE_UNKNOWN = 0; + // + START = 1; + // + END = 2; + // + SAMPLE = 3; +} + +// +message VideoInfo { + // + int64 cid_duration = 1; +} + +// +message VideoMeta { + // + int64 aid = 1; + // + int64 cid = 2; +} + diff --git a/proto/bilibili/app/distribution.proto b/proto/bilibili/app/distribution.proto new file mode 100644 index 0000000..9d4927a --- /dev/null +++ b/proto/bilibili/app/distribution.proto @@ -0,0 +1,185 @@ +syntax = "proto3"; + +package bilibili.app.distribution; + +import "google/protobuf/any.proto"; + +// +service Distribution { + // + rpc GetUserPreference (GetUserPreferenceReq) returns (GetUserPreferenceReply); + // + rpc SetUserPreference (SetUserPreferenceReq) returns (SetUserPreferenceReply); + // + rpc UserPreference (UserPreferenceReq) returns (UserPreferenceReply); +} + +// +message BoolValue { + // + bool value = 1; + // + int64 last_modified = 2; + // + bool default_value = 3; + // + string exp = 4; +} + +// +message BytesValue { + // + bytes value = 1; + // + int64 last_modified = 2; + // + bytes default_value = 3; + // + string exp = 4; +} + +// +message DoubleValue { + // + double value = 1; + // + int64 last_modified = 2; + // + double default_value = 3; + // + string exp = 4; +} + +// +message FloatValue { + // + float value = 1; + // + int64 last_modified = 2; + // + float default_value = 3; + // + string exp = 4; +} + +// +message GetUserPreferenceReply { + // + repeated google.protobuf.Any value = 1; +} + +// +message GetUserPreferenceReq { + // + repeated string type_url = 1; + // + map extra_context = 2; +} + +// +message Int32Value { + // + int32 value = 1; + // + int64 last_modified = 2; + // + int32 default_value = 3; + // + string exp = 4; +} + +// +message Int64Value { + // + int64 value = 1; + // + int64 last_modified = 2; + // + int64 default_value = 3; + // + string exp = 4; +} + +// +message SetUserPreferenceReply { +} + +// +message SetUserPreferenceReq { + // + repeated google.protobuf.Any preference = 1; + // + map extra_context = 2; +} + +// +message StringValue { + // + string value = 1; + // + int64 last_modified = 2; + // + string default_value = 3; + // + string exp = 4; +} + +// +message UInt32Value { + // + int32 value = 1; + // + int64 last_modified = 2; + // + int32 default_value = 3; + // + string exp = 4; +} + +// +message UInt64Value { + // + int64 value = 1; + // + int64 last_modified = 2; + // + int64 default_value = 3; + // + string exp = 4; +} + +// +message UserPreferenceReply { + // + repeated google.protobuf.Any preference = 1; +} + +// +message UserPreferenceReq { +} + +// +message defaultValue { + // + oneof value { + // + double double_value = 1; + // + float float_value = 2; + // + int64 int64_value = 3; + // + int64 uint64_value = 4; + // + int32 int32_value = 5; + // + int32 uint32_value = 6; + // + bool bool_value = 7; + // + string string_value = 8; + // + bytes bytes_value = 9; + } +} + diff --git a/proto/bilibili/app/distribution/setting/download.proto b/proto/bilibili/app/distribution/setting/download.proto new file mode 100644 index 0000000..c8f8004 --- /dev/null +++ b/proto/bilibili/app/distribution/setting/download.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.download; + +import "bilibili/app/distribution.proto"; + +// +message DownloadSettingsConfig { + // + bilibili.app.distribution.BoolValue enable_download_auto_start = 1; +} + diff --git a/proto/bilibili/app/distribution/setting/dynamic.proto b/proto/bilibili/app/distribution/setting/dynamic.proto new file mode 100644 index 0000000..30ed45d --- /dev/null +++ b/proto/bilibili/app/distribution/setting/dynamic.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.dynamic; + +import "bilibili/app/distribution.proto"; + +// +message DynamicAutoPlay { + // + bilibili.app.distribution.Int64Value value = 1; +} + +// +message DynamicDeviceConfig { + // + DynamicAutoPlay auto_play = 1; +} + diff --git a/proto/bilibili/app/distribution/setting/experimental.proto b/proto/bilibili/app/distribution/setting/experimental.proto new file mode 100644 index 0000000..53347ff --- /dev/null +++ b/proto/bilibili/app/distribution/setting/experimental.proto @@ -0,0 +1,66 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.experimental; + +import "bilibili/app/distribution.proto"; + +// +message DynamicSelect { + // + bilibili.app.distribution.BoolValue fold = 1; +} + +// +message Exp { + // + bilibili.app.distribution.Int64Value id = 1; + // + bilibili.app.distribution.Int32Value bucket = 2; +} + +// +message ExperimentalConfig { + // + bilibili.app.distribution.StringValue flag = 1; + // + repeated Exp exps = 2; +} + +// +message MultipleTusConfig { + // + TopLeft top_left = 1; + // + DynamicSelect dynamic_select = 2; +} + +// +message TopLeft { + // + bilibili.app.distribution.StringValue url = 1; + // + bilibili.app.distribution.StringValue story_foreground_image = 2; + // + bilibili.app.distribution.StringValue story_background_image = 3; + // + bilibili.app.distribution.StringValue listen_foreground_image = 4; + // + bilibili.app.distribution.StringValue listen_background_image = 5; + // + bilibili.app.distribution.StringValue ios_story_foreground_image = 6; + // + bilibili.app.distribution.StringValue ios_story_background_image = 7; + // + bilibili.app.distribution.StringValue ios_listen_foreground_image = 8; + // + bilibili.app.distribution.StringValue ios_listen_background_image = 9; + // + bilibili.app.distribution.StringValue goto = 10; + // + bilibili.app.distribution.StringValue url_v2 = 11; + // + bilibili.app.distribution.Int64Value goto_v2 = 12; + // + bilibili.app.distribution.StringValue badge = 13; +} + diff --git a/proto/bilibili/app/distribution/setting/home.proto b/proto/bilibili/app/distribution/setting/home.proto new file mode 100644 index 0000000..935c59b --- /dev/null +++ b/proto/bilibili/app/distribution/setting/home.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.home; + +import "bilibili/app/distribution.proto"; + +// +message MidHomeConfig { + // + bilibili.app.distribution.Int64Value top_left_goto = 1; + // + bilibili.app.distribution.Int64Value recent_page_tab = 2; + // + repeated bilibili.app.distribution.Int64Value android_mine_selection_option_items_id = 3; + // + repeated bilibili.app.distribution.Int64Value i_o_s_mine_selection_option_items_id = 4; +} + diff --git a/proto/bilibili/app/distribution/setting/im.proto b/proto/bilibili/app/distribution/setting/im.proto new file mode 100644 index 0000000..d4d7b34 --- /dev/null +++ b/proto/bilibili/app/distribution/setting/im.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.im; + +import "bilibili/app/distribution.proto"; + +// +message MidImConfig { + // + bilibili.app.distribution.BoolValue can_airdrop_to_im = 1; +} + diff --git a/proto/bilibili/app/distribution/setting/internaldevice.proto b/proto/bilibili/app/distribution/setting/internaldevice.proto new file mode 100644 index 0000000..adfff7c --- /dev/null +++ b/proto/bilibili/app/distribution/setting/internaldevice.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.internaldevice; + +import "bilibili/app/distribution.proto"; + +// +message InternalDeviceConfig { + // + bilibili.app.distribution.Int64Value fts = 1; +} + diff --git a/proto/bilibili/app/distribution/setting/night.proto b/proto/bilibili/app/distribution/setting/night.proto new file mode 100644 index 0000000..b313eb9 --- /dev/null +++ b/proto/bilibili/app/distribution/setting/night.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.night; + +import "bilibili/app/distribution.proto"; + +// +message NightSettingsConfig { + // + bilibili.app.distribution.BoolValue is_night_follow_system = 1; +} + diff --git a/proto/bilibili/app/distribution/setting/other.proto b/proto/bilibili/app/distribution/setting/other.proto new file mode 100644 index 0000000..318ae97 --- /dev/null +++ b/proto/bilibili/app/distribution/setting/other.proto @@ -0,0 +1,48 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.other; + +import "bilibili/app/distribution.proto"; + +// +message OtherSettingsConfig { + // + enum WatermarkType { + // + WT_UNKNOW = 0; + // + None = 1; + // + Center = 2; + // + BottomRight = 3; + } + + // + enum WebImageQualityType { + // + High = 0; + // + Low = 1; + // + Auto = 2; + } + + // + bilibili.app.distribution.Int64Value watermark_type = 1; + // + bilibili.app.distribution.Int64Value web_image_quality_type = 2; + // + bilibili.app.distribution.BoolValue enable_read_pasteboard = 3; + // + bilibili.app.distribution.BoolValue paste_auto_jump = 4; + // + bilibili.app.distribution.BoolValue mini_screen_play_when_back = 5; + // + bilibili.app.distribution.BoolValue enable_resume_playing = 6; + // + bilibili.app.distribution.BoolValue enable_wifi_auto_update = 7; + // + bilibili.app.distribution.BoolValue enable_guide_screenshot_share = 8; +} + diff --git a/proto/bilibili/app/distribution/setting/pegasus.proto b/proto/bilibili/app/distribution/setting/pegasus.proto new file mode 100644 index 0000000..9a7ec1b --- /dev/null +++ b/proto/bilibili/app/distribution/setting/pegasus.proto @@ -0,0 +1,56 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.pegasus; + +import "bilibili/app/distribution.proto"; + +// +message FeedModeValue { + // + bilibili.app.distribution.Int64Value value = 1; +} + +// +message PegasusAutoPlay { + // + bilibili.app.distribution.Int64Value single = 1; + // + bilibili.app.distribution.Int64Value double = 2; + // + bilibili.app.distribution.BoolValue single_affected_by_server_side = 3; + // + bilibili.app.distribution.BoolValue double_affected_by_server_side = 4; +} + +// +message PegasusColumnValue { + // + bilibili.app.distribution.Int64Value value = 1; + // + bilibili.app.distribution.BoolValue affected_by_server_side = 2; +} + +// +message PegasusDeviceConfig { + // + PegasusColumnValue column = 1; + // + FeedModeValue mode = 2; + // + PegasusAutoPlay auto_play = 3; +} + +// +message PegasusDeviceWithoutFplocalConfig { + // + bilibili.app.distribution.Int64Value auto_refresh_state = 1; +} + +// +message PegasusMidConfig { + // + bilibili.app.distribution.Int64Value column = 1; + // + bilibili.app.distribution.Int64Value play_mode = 2; +} + diff --git a/proto/bilibili/app/distribution/setting/play.proto b/proto/bilibili/app/distribution/setting/play.proto new file mode 100644 index 0000000..eab1c9d --- /dev/null +++ b/proto/bilibili/app/distribution/setting/play.proto @@ -0,0 +1,66 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.play; + +import "bilibili/app/distribution.proto"; + +// +message CloudPlayConfig { + // + bilibili.app.distribution.BoolValue enable_panorama = 1; + // + bilibili.app.distribution.BoolValue enable_dolby = 2; + // + bilibili.app.distribution.BoolValue enable_shake = 3; + // + bilibili.app.distribution.BoolValue enable_background = 4; + // + bilibili.app.distribution.BoolValue enable_loss_less = 5; +} + +// +message MidPlayConfig { + // + bilibili.app.distribution.BoolValue dynamic_to_playlist = 1; +} + +// +message PlayConfig { + // + bilibili.app.distribution.BoolValue should_auto_play = 1; + // + bilibili.app.distribution.BoolValue should_auto_full_screen = 2; + // + bilibili.app.distribution.BoolValue enable_playurl_h_t_t_p_s = 3; + // + bilibili.app.distribution.BoolValue enable_danmaku_interaction = 4; + // + bilibili.app.distribution.Int64Value small_screen_status = 5; + // + bilibili.app.distribution.Int64Value player_codec_mode_key = 6; + // + bilibili.app.distribution.BoolValue enable_gravity_rotate_screen = 7; + // + bilibili.app.distribution.BoolValue enable_danmaku_monospaced = 8; + // + bilibili.app.distribution.BoolValue enable_edit_subtitle = 9; + // + bilibili.app.distribution.BoolValue enable_subtitle = 10; + // + bilibili.app.distribution.Int64Value color_filter = 11; + // + bilibili.app.distribution.BoolValue should_auto_story = 12; + // + bilibili.app.distribution.BoolValue landscape_auto_story = 13; + // + bilibili.app.distribution.BoolValue volume_balance = 14; + // + bilibili.app.distribution.Int64Value volume_balance_mode = 15; +} + +// +message SpecificPlayConfig { + // + bilibili.app.distribution.BoolValue enable_segmented_section = 1; +} + diff --git a/proto/bilibili/app/distribution/setting/privacy.proto b/proto/bilibili/app/distribution/setting/privacy.proto new file mode 100644 index 0000000..692e8a3 --- /dev/null +++ b/proto/bilibili/app/distribution/setting/privacy.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.privacy; + +import "bilibili/app/distribution.proto"; + +// +message MidPrivacySettingsConfig { + // + bilibili.app.distribution.BoolValue recommend_to_known = 1; + // + repeated bilibili.app.distribution.StringValue blocked_words = 2; +} + +// +message PrivacySettingsConfig { + // + bilibili.app.distribution.BoolValue ad_recommand_store = 1; + // + bilibili.app.distribution.BoolValue sensor_access = 2; +} + diff --git a/proto/bilibili/app/distribution/setting/search.proto b/proto/bilibili/app/distribution/setting/search.proto new file mode 100644 index 0000000..582695a --- /dev/null +++ b/proto/bilibili/app/distribution/setting/search.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.search; + +import "bilibili/app/distribution.proto"; + +// +message SearchAutoPlay { + // + bilibili.app.distribution.Int64Value value = 1; + // + bilibili.app.distribution.BoolValue affected_by_server_side = 2; +} + +// +message SearchDeviceConfig { + // + SearchAutoPlay auto_play = 1; +} + diff --git a/proto/bilibili/app/distribution/setting/story.proto b/proto/bilibili/app/distribution/setting/story.proto new file mode 100644 index 0000000..a58a43b --- /dev/null +++ b/proto/bilibili/app/distribution/setting/story.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package bilibili.app.distribution.setting.story; + +import "bilibili/app/distribution.proto"; + +// +message MidStoryConfig { + // + bilibili.app.distribution.Int64Value gesture_type = 1; +} + +// +message StoryConfig { + // + bilibili.app.distribution.Int64Value gesture_type = 1; +} + diff --git a/proto/bilibili/app/dynamic/common.proto b/proto/bilibili/app/dynamic/common.proto new file mode 100644 index 0000000..0ea0c70 --- /dev/null +++ b/proto/bilibili/app/dynamic/common.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package bilibili.app.dynamic.common; + +// +message ItemWHRatio { + // + WHRatio 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; +} + diff --git a/proto/bilibili/app/dynamic/v1.proto b/proto/bilibili/app/dynamic/v1.proto new file mode 100644 index 0000000..c2305c7 --- /dev/null +++ b/proto/bilibili/app/dynamic/v1.proto @@ -0,0 +1,1539 @@ +syntax = "proto3"; + +package bilibili.app.dynamic.v1; + +import "bilibili/app/archive/middleware/v1.proto"; + +// +service Dynamic { + // + rpc DynDetails (DynDetailsReq) returns (DynDetailsReply); + // + rpc DynMixUpListSearch (DynMixUpListSearchReq) returns (DynMixUpListSearchReply); + // + rpc DynMixUpListViewMore (NoReq) returns (DynMixUpListViewMoreReply); + // + rpc DynOurCity (DynOurCityReq) returns (DynOurCityReply); + // + rpc DynOurCitySwitch (DynOurCitySwitchReq) returns (NoReply); + // + rpc DynRed (DynRedReq) returns (DynRedReply); + // + rpc DynTab (DynTabReq) returns (DynTabReply); + // + rpc DynUpdOffset (DynUpdOffsetReq) returns (NoReply); + // + rpc DynVideo (DynVideoReq) returns (DynVideoReqReply); + // + rpc DynVideoPersonal (DynVideoPersonalReq) returns (DynVideoPersonalReply); + // + rpc GeoCoder (GeoCoderReq) returns (GeoCoderReply); + // + rpc OurCityClickReport (OurCityClickReportReq) returns (OurCityClickReportReply); + // + rpc SVideo (SVideoReq) returns (SVideoReply); +} + +// +message AdInfo { + // + string nation_code = 1; + // + string adcode = 2; + // + string city_code = 3; + // + string name = 4; + // + Gps gps = 5; +} + +// +message AddressComponent { + // + string nation = 1; + // + string province = 2; + // + string city = 3; + // + string district = 4; + // + string street = 5; + // + string street_number = 6; +} + +// +enum BgType { + // + bg_type_default = 0; + // + bg_type_face = 1; +} + +// +message BubbleInfo { + // + repeated BubbleModule modules = 1; + // + string track_id = 2; + // + string bubble_recall_extra_when_show = 3; +} + +// +message BubbleModule { + // + oneof module { + // + BubbleModuleUser user = 2; + // + BubbleModuleText text = 3; + // + BubbleModuleColoredTip colored_tip = 4; + // + BubbleModulePic pic = 5; + } + // + BubbleModuleType module_type = 1; +} + +// +message BubbleModuleColoredTip { + // + string prefix_icon = 1; + // + bool is_svga_prefix_icon = 2; + // + string text = 3; + // + Color text_color = 4; +} + +// +message BubbleModulePic { + // + string pic_day = 1; + // + string pic_night = 2; + // + int64 pic_width = 3; + // + int64 pic_height = 4; + // + bool rounded_corner = 5; + // + int64 rounded_corner_radius = 6; +} + +// +message BubbleModuleText { + // + string content = 1; +} + +// +enum BubbleModuleType { + // + BUBBLE_MODULE_NONE = 0; + // + BUBBLE_MODULE_USER = 1; + // + BUBBLE_MODULE_TEXT = 2; + // + BUBBLE_MODULE_COLORED_TIP = 3; + // + BUBBLE_MODULE_PIC = 4; +} + +// +message BubbleModuleUser { + // + repeated UserInfo users = 1; +} + +// +message CardCurrBatch { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string text1 = 4; + // + string text2 = 5; + // + VideoBadge badge = 6; +} + +// +message CardCurrSeason { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string text1 = 4; + // + string desc = 5; + // + VideoBadge badge = 6; +} + +// +message CardPGC { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string cover_left_text1 = 4; + // + string cover_left_text2 = 5; + // + string cover_left_text3 = 6; + // + int64 cid = 7; + // + int64 season_id = 8; + // + int64 epid = 9; + // + int64 aid = 10; + // + MediaType media_type = 11; + // + VideoSubType sub_type = 12; + // + int32 is_preview = 13; + // + Dimension dimension = 14; + // + repeated VideoBadge badge = 15; + // + int32 can_play = 16; + // + PGCSeason season = 17; +} + +// +message CardUGC { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string cover_left_text1 = 4; + // + string cover_left_text2 = 5; + // + string cover_left_text3 = 6; + // + int64 avid = 7; + // + int64 cid = 8; + // + MediaType media_type = 9; + // + Dimension dimension = 10; + // + repeated VideoBadge badge = 11; + // + int32 can_play = 12; +} + +// +message Color { + // + string color_day = 1; + // + string color_night = 2; +} + +// +message CornerInfo { + // + CornerType corner_type = 1; + // + string corner_text = 2; + // + Color corner_text_color = 3; + // + Color corner_text_bg_color = 4; + // + string corner_icon = 5; + // + int64 corner_number = 6; +} + +// +enum CornerType { + // + corner_type_none = 0; + // + corner_type_text = 1; + // + corner_type_animation = 2; + // + corner_type_static = 3; + // + corner_type_red_dot = 4; + // + corner_type_number = 5; +} + +// +message DecoCardFan { + // + int32 is_fan = 1; + // + int32 number = 2; + // + string color = 3; +} + +// +message DecorateCard { + // + int64 id = 1; + // + string card_url = 2; + // + string jump_url = 3; + // + DecoCardFan fan = 4; +} + +// +message Description { + // + string text = 1; + // + string type = 2; + // + string uri = 3; + // + string emoji_type = 4; + // + string goods_type = 5; +} + +// +message Dimension { + // + int64 height = 1; + // + int64 width = 2; + // + int64 rotate = 3; +} + +// +message DynDetailsReply { + // + repeated DynamicItem list = 1; +} + +// +message DynDetailsReq { + // + int32 teenagers_mode = 1; + // + string dynamic_ids = 2; + // + int32 qn = 3; + // + int32 fnver = 4; + // + int32 fnval = 5; + // + int32 force_host = 6; + // + int32 fourk = 7; +} + +// +message DynMixUpListSearchReply { + // + repeated MixUpListItem items = 1; +} + +// +message DynMixUpListSearchReq { + // + string name = 1; +} + +// +message DynMixUpListViewMoreReply { + // + repeated MixUpListItem items = 1; + // + string search_default_text = 2; +} + +// +message DynOurCityItem { + // + string card_type = 1; + // + int64 dyn_id = 2; + // + string uri = 3; + // + repeated DynOurCityModule modules = 4; + // + int64 rid = 5; + // + string debug_info = 6; +} + +// +message DynOurCityModule { + // + oneof module_item { + // + DynOurCityModuleCover module_cover = 2; + // + DynOurCityModuleDesc module_desc = 3; + // + DynOurCityModuleAuthor module_author = 4; + // + DynOurCityModuleExtend module_extend = 5; + } + // + string module_type = 1; +} + +// +message DynOurCityModuleAuthor { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + string uri = 4; +} + +// +message DynOurCityModuleCover { + // + repeated string covers = 1; + // + int32 style = 2; + // + int32 cover_left_icon1 = 3; + // + string cover_left_text1 = 4; + // + int32 cover_left_icon2 = 5; + // + string cover_left_text2 = 6; + // + string cover_left_text3 = 7; + // + repeated VideoBadge badge = 8; +} + +// +message DynOurCityModuleDesc { + // + string desc = 1; +} + +// +message DynOurCityModuleExtend { + // + oneof extend { + // + DynOurCityModuleExtendLBS extend_lbs = 2; + } + // + string type = 1; +} + +// +message DynOurCityModuleExtendLBS { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; + // + int32 poi_type = 4; +} + +// +message DynOurCityReply { + // + string offset = 1; + // + int32 has_more = 2; + // + int32 style = 3; + // + string top_label = 4; + // + repeated DynOurCityItem list = 5; + // + string top_button_label = 6; + // + int32 city_id = 7; + // + string city_name = 8; +} + +// +message DynOurCityReq { + // + int64 city_id = 1; + // + double lat = 2; + // + double lng = 3; + // + string offset = 4; + // + int32 page_size = 5; + // + int32 teenagers_mode = 6; + // + int32 qn = 7; + // + int32 fnver = 8; + // + int32 fnval = 9; + // + int32 force_host = 10; + // + int32 fourk = 11; + // + int32 lbs_state = 12; + // + int32 refresh_city = 13; + // + ExpConf exp_conf = 14; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 15; + // + int64 city_code = 16; + // + int64 build_time = 17; +} + +// +message DynOurCitySwitchReq { + // + int32 switch = 1; +} + +// +message DynRedItem { + // + int64 count = 1; +} + +// +message DynRedReply { + // + string red_type = 1; + // + DynRedItem dyn_red_item = 2; + // + string default_tab = 3; + // + DynRedStyle red_style = 4; + // + string tab_recall_extra = 5; + // + BubbleInfo bubble_info = 6; +} + +// +message DynRedReq { + // + enum DynRedReqScene { + // + RED_REQ_NONE = 0; + // + RED_REQ_RETURN_TO_TAB_1 = 1; + // + RED_REQ_PERIODICALLY_AWAKE = 2; + // + RED_REQ_SWITCH_ACCOUNT = 3; + } + + // + repeated TabOffset tab_offset = 1; + // + bool is_new_install = 2; + // + bool is_code_start = 3; + // + repeated int64 new_follow_up_mids = 4; + // + DynRedReq.DynRedReqScene req_scene = 5; +} + +// +message DynRedStyle { + // + BgType bg_type = 1; + // + CornerType corner_type = 2; + // + int32 display_time = 3; + // + string corner_mark = 4; + // + DynRedStyleUp up = 5; + // + StyleType type = 6; + // + CornerInfo corner_info = 7; +} + +// +message DynRedStyleUp { + // + int64 uid = 1; + // + string face = 2; + // + StyleType face_type = 3; + // + Color border_color = 4; +} + +// +message DynTab { + // + string title = 1; + // + string uri = 2; + // + string bubble = 3; + // + int32 red_point = 4; + // + int64 city_id = 5; + // + int32 is_popup = 6; + // + Popup popup = 7; + // + bool default_tab = 8; + // + string sub_title = 9; + // + string anchor = 10; + // + string internal_test = 11; +} + +// +message DynTabReply { + // + repeated DynTab dyn_tab = 1; +} + +// +message DynTabReq { + // + int32 teenagers_mode = 1; +} + +// +message DynUpdOffsetReq { + // + int64 host_uid = 1; + // + string read_offset = 2; +} + +// +message DynVideoPersonalReply { + // + repeated DynamicItem list = 1; + // + string offset = 2; + // + int32 has_more = 3; + // + string read_offset = 4; +} + +// +message DynVideoPersonalReq { + // + int32 teenagers_mode = 1; + // + int64 host_uid = 2; + // + string offset = 3; + // + int32 page = 4; + // + int32 is_preload = 5; + // + int32 qn = 6; + // + int32 fnver = 7; + // + int32 fnval = 8; + // + int32 force_host = 9; + // + int32 fourk = 10; +} + +// +message DynVideoReq { + // + int32 teenagers_mode = 1; + // + string update_baseline = 2; + // + string offset = 3; + // + int32 page = 4; + // + int32 refresh_type = 5; + // + int32 qn = 6; + // + int32 fnver = 7; + // + int32 fnval = 8; + // + int32 force_host = 9; + // + int32 fourk = 10; +} + +// +message DynVideoReqReply { + // + repeated DynamicItem list = 1; + // + int32 update_num = 2; + // + string history_offset = 3; + // + string update_baseline = 4; + // + int32 has_more = 5; +} + +// +message DynamicItem { + // + string card_type = 1; + // + string item_type = 2; + // + repeated Module modules = 3; + // + string dyn_id_str = 4; + // + string orig_dyn_id_str = 5; + // + int32 r_type = 6; + // + int32 has_fold = 7; +} + +// +message Exp { + // + string exp_name = 1; + // + string exp_group = 2; +} + +// +message ExpConf { + // + int32 exp_enable = 1; + // + repeated Exp exps = 2; +} + +// +message ExtInfoGame { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; +} + +// +message ExtInfoHot { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; +} + +// +message ExtInfoLBS { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; + // + int32 poi_type = 4; +} + +// +message ExtInfoTopic { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; +} + +// +message Extend { + // + oneof extend { + // + ExtInfoTopic ext_info_topic = 2; + // + ExtInfoLBS ext_info_lbs = 3; + // + ExtInfoHot ext_info_hot = 4; + // + ExtInfoGame ext_info_game = 5; + } + // + string type = 1; +} + +// +enum FoldType { + // + FoldTypeZero = 0; + // + FoldTypePublish = 1; + // + FoldTypeFrequent = 2; + // + FoldTypeUnite = 3; + // + FoldTypeLimit = 4; +} + +// +message FollowListItem { + // + int32 season_id = 1; + // + string title = 2; + // + string cover = 3; + // + string url = 4; + // + NewEP new_ep = 5; +} + +// +message GeoCoderReply { + // + string address = 1; + // + AddressComponent address_component = 2; + // + AdInfo ad_info = 3; +} + +// +message GeoCoderReq { + // + double lat = 1; + // + double lng = 2; + // + string from = 3; +} + +// +message Gps { + // + double lat = 1; + // + double lng = 2; +} + +// +message LikeAnimation { + // + string begin = 1; + // + string proc = 2; + // + string end = 3; + // + int64 like_icon_id = 4; +} + +// +message LikeInfo { + // + LikeAnimation animation = 1; + // + int32 is_like = 2; +} + +// +message LikeUser { + // + int64 uid = 1; + // + string uname = 2; + // + string uri = 3; +} + +// +message LiveInfo { + // + int32 is_living = 1; + // + string uri = 2; +} + +// +enum MediaType { + // + MediaTypeNone = 0; + // + MediaTypeUGC = 1; + // + MediaTypePGC = 2; + // + MediaTypeLive = 3; + // + MediaTypeVCS = 4; +} + +// +message MixUpListItem { + // + int64 uid = 1; + // + int32 special_attention = 2; + // + int32 reddot_state = 3; + // + MixUpListLiveItem live_info = 4; + // + string name = 5; + // + string face = 6; + // + OfficialVerify official = 7; + // + VipInfo vip = 8; + // + Relation relation = 9; + // + int32 premiere_state = 10; + // + string uri = 11; +} + +// +message MixUpListLiveItem { + // + bool status = 1; + // + int64 room_id = 2; + // + string uri = 3; +} + +// +message Module { + // + oneof module_item { + // + ModuleFold module_fold = 2; + // + ModuleAuthor module_author = 3; + // + ModuleDynamic module_dynamic = 4; + // + ModuleState module_state = 5; + // + ModuleForward module_forward = 6; + // + ModuleExtend module_extend = 7; + // + ModuleDispute module_dispute = 8; + // + ModuleDesc module_desc = 9; + // + ModuleLikeUser module_like_user = 10; + // + ModuleDynUpList module_up_list = 11; + // + ModuleFollowList module_follow_list = 12; + } + // + string module_type = 1; +} + +// +message ModuleAuthor { + // + int64 id = 1; + // + string ptime_label_text = 2; + // + UserInfo author = 3; + // + DecorateCard decorate_card = 4; +} + +// +message ModuleDesc { + // + repeated Description desc = 1; +} + +// +message ModuleDispute { + // + string title = 1; + // + string desc = 2; + // + string uri = 3; +} + +// +message ModuleDynUpList { + // + string module_title = 1; + // + string show_all = 2; + // + repeated UpListItem list = 3; +} + +// +message ModuleDynamic { + // + oneof card { + // + CardUGC card_ugc = 2; + // + CardPGC card_pgc = 3; + // + CardCurrSeason card_curr_season = 4; + // + CardCurrBatch card_curr_batch = 5; + } + // + string card_type = 1; +} + +// +message ModuleExtend { + // + repeated Extend extend = 1; +} + +// +message ModuleFold { + // + FoldType fold_type = 1; + // + string text = 2; + // + string fold_ids = 3; + // + repeated UserInfo fold_users = 4; + // + FoldType fold_type_v2 = 5; +} + +// +message ModuleFollowList { + // + string view_all_link = 1; + // + repeated FollowListItem list = 2; +} + +// +message ModuleForward { + // + string card_type = 1; + // + repeated Module modules = 2; +} + +// +message ModuleLikeUser { + // + repeated LikeUser like_users = 1; + // + string display_text = 2; +} + +// +message ModuleState { + // + int32 repost = 1; + // + int32 like = 2; + // + int32 reply = 3; + // + LikeInfo like_info = 4; + // + bool no_comment = 5; + // + bool no_forward = 6; +} + +// +message Nameplate { + // + int64 nid = 1; + // + string name = 2; + // + string image = 3; + // + string image_small = 4; + // + string level = 5; + // + string condition = 6; +} + +// +message NewEP { + // + int32 id = 1; + // + string index_show = 2; + // + string cover = 3; +} + +// +message NoReply { +} + +// +message NoReq { +} + +// +message OfficialVerify { + // + int32 type = 1; + // + string desc = 2; + // + int32 is_atten = 3; +} + +// +message OurCityClickReportReply { +} + +// +message OurCityClickReportReq { + // + string dynamic_id = 1; + // + int64 city_id = 2; + // + double lat = 3; + // + double lng = 4; +} + +// +message PGCSeason { + // + int32 is_finish = 1; + // + string title = 2; + // + int32 type = 3; +} + +// +message PlayerPreloadParams { + // + int32 qn = 1; + // + int32 fnver = 2; + // + int32 fnval = 3; + // + int32 force_host = 4; + // + int32 fourk = 5; +} + +// +message Popup { + // + string title = 1; + // + string desc = 2; + // + string uri = 3; +} + +// +message Relation { + // + RelationStatus status = 1; + // + int32 is_follow = 2; + // + int32 is_followed = 3; + // + string title = 4; +} + +// +enum RelationStatus { + // + relation_status_none = 0; + // + relation_status_nofollow = 1; + // + relation_status_follow = 2; + // + relation_status_followed = 3; + // + relation_status_mutual_concern = 4; + // + relation_status_special = 5; +} + +// +message SVideoItem { + // + string card_type = 1; + // + repeated SVideoModule modules = 2; + // + string dyn_id_str = 3; + // + int64 index = 4; +} + +// +message SVideoModule { + // + oneof module_item { + // + SVideoModuleAuthor module_author = 2; + // + SVideoModulePlayer module_player = 3; + // + SVideoModuleDesc module_desc = 4; + // + SVideoModuleStat module_stat = 5; + } + // + string module_type = 1; +} + +// +message SVideoModuleAuthor { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + string pub_desc = 4; + // + int32 is_attention = 5; + // + string uri = 6; +} + +// +message SVideoModuleDesc { + // + string text = 1; + // + string uri = 2; +} + +// +message SVideoModulePlayer { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + int64 aid = 4; + // + int64 cid = 5; + // + int64 duration = 6; + // + Dimension dimension = 7; +} + +// +message SVideoModuleStat { + // + repeated SVideoStatInfo stat_info = 1; + // + ShareInfo share_info = 2; +} + +// +message SVideoReply { + // + repeated SVideoItem list = 1; + // + string offset = 2; + // + int32 has_more = 3; + // + SVideoTop top = 4; +} + +// +message SVideoReq { + // + int64 oid = 1; + // + SVideoType type = 2; + // + string offset = 3; + // + int32 qn = 4; + // + int32 fnver = 5; + // + int32 fnval = 6; + // + int32 force_host = 7; + // + int32 fourk = 8; + // + string spmid = 9; + // + string from_spmid = 10; + // + PlayerPreloadParams player_preload = 11; + // + int64 focus_aid = 12; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 13; +} + +// +message SVideoStatInfo { + // + int32 icon = 1; + // + int64 num = 2; + // + int32 selected = 3; + // + string uri = 4; +} + +// +message SVideoTop { + // + string title = 1; + // + string desc = 2; +} + +// +enum SVideoType { + // + TypeNone = 0; + // + TypeDynamic = 1; + // + TypePopularIndex = 2; + // + TypePopularHotword = 3; +} + +// +message ShareInfo { + // + int64 aid = 1; + // + string bvid = 2; + // + string title = 3; + // + string subtitle = 4; + // + string cover = 5; + // + int64 mid = 6; + // + string name = 7; +} + +// +enum StyleType { + // + STYLE_TYPE_NONE = 0; + // + STYLE_TYPE_LIVE = 1; + // + STYLE_TYPE_DYN_UP = 2; + // + STYLE_TYPE_OGV_UP = 3; + // + STYLE_TYPE_COLLECTION_UP = 4; +} + +// +message TabOffset { + // + int32 tab = 1; + // + string offset = 2; +} + +// +message UpListItem { + // + int32 has_update = 1; + // + string face = 2; + // + string name = 3; + // + int64 uid = 4; +} + +// +message UserInfo { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + OfficialVerify official = 4; + // + VipInfo vip = 5; + // + LiveInfo live = 6; + // + string uri = 7; + // + UserPendant pendant = 8; + // + Nameplate nameplate = 9; +} + +// +message UserPendant { + // + int64 pid = 1; + // + string name = 2; + // + string image = 3; + // + int64 expire = 4; +} + +// +message VideoBadge { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + int32 bg_style = 8; +} + +// +enum VideoSubType { + // + VideoSubTypeNone = 0; + // + VideoSubTypeBangumi = 1; + // + VideoSubTypeMovie = 2; + // + VideoSubTypeDocumentary = 3; + // + VideoSubTypeDomestic = 4; + // + VideoSubTypeTeleplay = 5; +} + +// +message VipInfo { + // + int32 type = 1; + // + int32 status = 2; + // + int64 due_date = 3; + // + VipLabel label = 4; + // + int32 theme_type = 5; +} + +// +message VipLabel { + // + string path = 1; +} + diff --git a/proto/bilibili/app/dynamic/v2.proto b/proto/bilibili/app/dynamic/v2.proto new file mode 100644 index 0000000..259de0c --- /dev/null +++ b/proto/bilibili/app/dynamic/v2.proto @@ -0,0 +1,7508 @@ +syntax = "proto3"; + +package bilibili.app.dynamic.v2; + +import "bilibili/account/service/v1.proto"; +import "bilibili/app/archive/middleware/v1.proto"; +import "bilibili/app/dynamic/common.proto"; +import "bilibili/dagw/component/avatar/v1.proto"; +import "bilibili/pagination.proto"; +import "bilibili/vas/garb/service.proto"; +import "google/protobuf/any.proto"; + +// +service Campus { + // + rpc WaterFlowRcmd (WaterFlowRcmdReq) returns (WaterFlowRcmdResp); +} + +// +service Dynamic { + // + rpc AlumniDynamics (AlumniDynamicsReq) returns (AlumniDynamicsReply); + // + rpc CampusBillboard (CampusBillBoardReq) returns (CampusBillBoardReply); + // + rpc CampusBillboardInternal (CampusBillboardInternalReq) returns (CampusBillBoardReply); + // + rpc CampusEntryTab (CampusEntryTabReq) returns (CampusEntryTabResp); + // + rpc CampusFeedback (CampusFeedbackReq) returns (CampusFeedbackReply); + // + rpc CampusHomePages (CampusHomePagesReq) returns (CampusHomePagesReply); + // + rpc CampusMateLikeList (CampusMateLikeListReq) returns (CampusMateLikeListReply); + // + rpc CampusMngDetail (CampusMngDetailReq) returns (CampusMngDetailReply); + // + rpc CampusMngQuizOperate (CampusMngQuizOperateReq) returns (CampusMngQuizOperateReply); + // + rpc CampusMngSubmit (CampusMngSubmitReq) returns (CampusMngSubmitReply); + // + rpc CampusRcmd (CampusRcmdReq) returns (CampusRcmdReply); + // + rpc CampusRcmdFeed (CampusRcmdFeedReq) returns (CampusRcmdFeedReply); + // + rpc CampusRecommend (CampusRecommendReq) returns (CampusRecommendReply); + // + rpc CampusRedDot (CampusRedDotReq) returns (CampusRedDotReply); + // + rpc CampusSquare (CampusSquareReq) returns (CampusSquareReply); + // + rpc CampusTopicRcmdFeed (CampusTopicRcmdFeedReq) returns (CampusTopicRcmdFeedReply); + // + rpc CooperationStaffList (CooperationStaffListReq) returns (CooperationStaffListResp); + // + rpc DynAdditionCommonFollow (DynAdditionCommonFollowReq) returns (DynAdditionCommonFollowReply); + // + rpc DynAll (DynAllReq) returns (DynAllReply); + // + rpc DynAllPersonal (DynAllPersonalReq) returns (DynAllPersonalReply); + // + rpc DynAllUpdOffset (DynAllUpdOffsetReq) returns (NoReply); + // + rpc DynDetail (DynDetailReq) returns (DynDetailReply); + // + rpc DynDetails (DynDetailsReq) returns (DynDetailsReply); + // + rpc DynFakeCard (DynFakeCardReq) returns (DynFakeCardReply); + // + rpc DynFriend (DynFriendReq) returns (DynFriendReply); + // + rpc DynLight (DynLightReq) returns (DynLightReply); + // + rpc DynMixUpListSearch (DynMixUpListSearchReq) returns (DynMixUpListSearchReply); + // + rpc DynMixUpListViewMore (DynMixUpListViewMoreReq) returns (DynMixUpListViewMoreReply); + // + rpc DynRcmdUpExchange (DynRcmdUpExchangeReq) returns (DynRcmdUpExchangeReply); + // + rpc DynSearch (DynSearchReq) returns (DynSearchReply); + // + rpc DynServerDetails (DynServerDetailsReq) returns (DynServerDetailsReply); + // + rpc DynSpace (DynSpaceReq) returns (DynSpaceRsp); + // + rpc DynSpaceSearchDetails (DynSpaceSearchDetailsReq) returns (DynSpaceSearchDetailsReply); + // + rpc DynTab (DynTabReq) returns (DynTabReply); + // + rpc DynThumb (DynThumbReq) returns (NoReply); + // + rpc DynUnLoginRcmd (DynRcmdReq) returns (DynRcmdReply); + // + rpc DynVideo (DynVideoReq) returns (DynVideoReply); + // + rpc DynVideoPersonal (DynVideoPersonalReq) returns (DynVideoPersonalReply); + // + rpc DynVideoUpdOffset (DynVideoUpdOffsetReq) returns (NoReply); + // + rpc DynVote (DynVoteReq) returns (DynVoteReply); + // + rpc FeedFilter (FeedFilterReq) returns (FeedFilterReply); + // + rpc FetchTabSetting (NoReq) returns (FetchTabSettingReply); + // + rpc HomeSubscribe (HomeSubscribeReq) returns (HomeSubscribeReply); + // + rpc LbsPoi (LbsPoiReq) returns (LbsPoiReply); + // + rpc LegacyTopicFeed (LegacyTopicFeedReq) returns (LegacyTopicFeedReply); + // + rpc LikeList (LikeListReq) returns (LikeListReply); + // + rpc OfficialAccounts (OfficialAccountsReq) returns (OfficialAccountsReply); + // + rpc OfficialDynamics (OfficialDynamicsReq) returns (OfficialDynamicsReply); + // + rpc QuickConsumeMoreAvatarList (QuickConsumeMoreAvatarListReq) returns (QuickConsumeMoreAvatarListReply); + // + rpc ReactionList (ReactionListReq) returns (ReactionListReply); + // + rpc RepostList (RepostListReq) returns (RepostListRsp); + // + rpc SchoolRecommend (SchoolRecommendReq) returns (SchoolRecommendReply); + // + rpc SchoolSearch (SchoolSearchReq) returns (SchoolSearchReply); + // + rpc SetDecision (SetDecisionReq) returns (NoReply); + // + rpc SetRecentCampus (SetRecentCampusReq) returns (NoReply); + // + rpc SubscribeCampus (SubscribeCampusReq) returns (NoReply); + // + rpc SubscriptionClick (SubscriptionClickReq) returns (SubscriptionClickResp); + // + rpc TopicList (TopicListReq) returns (TopicListReply); + // + rpc TopicSquare (TopicSquareReq) returns (TopicSquareReply); + // + rpc UnfollowMatch (UnfollowMatchReq) returns (NoReply); + // + rpc UpdateTabSetting (UpdateTabSettingReq) returns (NoReply); +} + +// +service Opus { + // + rpc ListCreation (ListCreationReq) returns (ListCreationResp); + // + rpc ListFav (ListFavReq) returns (ListFavResp); + // + rpc OpusCollectionDetail (OpusCollectionDetailReq) returns (OpusCollectionDetailResp); + // + rpc OpusDetail (OpusDetailReq) returns (OpusDetailResp); + // + rpc OpusSpaceFlow (OpusSpaceFlowReq) returns (OpusSpaceFlowResp); + // + rpc SignResources (SignResourcesReq) returns (SignResourcesResp); +} + +// +message AdParam { + // + string ad_extra = 1; + // + string request_id = 2; +} + +// +enum AddButtonBgStyle { + // + fill = 0; + // + stroke = 1; + // + gray = 2; +} + +// +enum AddButtonType { + // + bt_none = 0; + // + bt_jump = 1; + // + bt_button = 2; +} + +// +message AdditionArticle { + // + string title = 1; + // + MdlDynDrawItem cover = 2; + // + string desc_text_left = 3; + // + string desc_text_right = 4; + // + string uri = 5; + // + string card_type = 6; +} + +// +message AdditionCommon { + // + string head_text = 1; + // + string title = 2; + // + string image_url = 3; + // + string desc_text1 = 4; + // + string desc_text2 = 5; + // + string url = 6; + // + AdditionalButton button = 7; + // + string head_icon = 8; + // + ImageStyle style = 9; + // + string type = 10; + // + string card_type = 11; +} + +// +message AdditionEsport { + // + oneof item { + // + AdditionEsportMoba addition_esport_moba = 2; + } + // + EspaceStyle style = 1; + // + string type = 3; + // + string card_type = 4; +} + +// +message AdditionEsportMoba { + // + string head_text = 1; + // + string title = 2; + // + repeated MatchTeam match_team = 3; + // + AdditionEsportMobaStatus addition_esport_moba_status = 4; + // + string uri = 5; + // + AdditionalButton button = 6; + // + string sub_title = 7; + // + string type = 10; + // + string card_type = 11; + // + string head_icon = 12; +} + +// +message AdditionEsportMobaStatus { + // + repeated AdditionEsportMobaStatusDesc addition_esport_moba_status_desc = 1; + // + string title = 2; + // + int32 status = 3; + // + string color = 4; + // + string night_color = 5; +} + +// +message AdditionEsportMobaStatusDesc { + // + string title = 1; + // + string color = 2; + // + string night_color = 3; +} + +// +message AdditionGoods { + // + string rcmd_desc = 1; + // + repeated GoodsItem goods_items = 2; + // + string card_type = 3; + // + string icon = 4; + // + string uri = 5; + // + int32 source_type = 6; + // + GoodsJumpType jump_type = 7; + // + string app_name = 8; + // + string ad_mark_icon = 9; +} + +// +message AdditionLiveRoom { + // + string title = 1; + // + string cover = 2; + // + VideoBadge badge = 3; + // + CoverIconWithText desc_text_upper = 4; + // + string desc_text_lower = 5; + // + string uri = 6; + // + string card_type = 7; +} + +// +message AdditionMusic { + // + MdlDynMusic music_card = 1; + // + string card_type = 2; +} + +// +message AdditionUP { + // + string title = 1; + // + HighlightText desc_text1 = 2; + // + string desc_text2 = 3; + // + string url = 4; + // + AdditionalButton button = 5; + // + string card_type = 6; + // + int64 reserve_total = 7; + // + AdditionalActSkin act_skin = 8; + // + int64 rid = 9; + // + ReserveRelationLotteryType lottery_type = 10; + // + HighlightText desc_text3 = 11; + // + int64 up_mid = 12; + // + AdditionUserInfo user_info = 13; + // + string dynamic_id = 14; + // + bool show_text2 = 15; + // + int64 dyn_type = 16; + // + string business_id = 17; + // + string badge_text = 18; + // + bool is_premiere = 19; +} + +// +message AdditionUgc { + // + string head_text = 1; + // + string title = 2; + // + string cover = 3; + // + string desc_text1 = 4; + // + string desc_text2 = 5; + // + string uri = 6; + // + string duration = 7; + // + bool line_feed = 8; + // + string card_type = 9; +} + +// +message AdditionUserInfo { + // + string name = 1; + // + string face = 2; +} + +// +message AdditionVote { + // + string image_url = 1; + // + string title = 2; + // + string text1 = 3; + // + string button_text = 4; + // + string url = 5; +} + +// +message AdditionVote2 { + // + oneof item { + // + AdditionVoteWord addition_vote_word = 10; + // + AdditionVotePic addition_vote_pic = 11; + // + AdditionVoteDefaule addition_vote_defaule = 12; + } + // + AdditionVoteType addition_vote_type = 1; + // + int64 vote_id = 2; + // + string title = 3; + // + string label = 4; + // + int64 deadline = 5; + // + string open_text = 6; + // + string close_text = 7; + // + string voted_text = 8; + // + AdditionVoteState state = 9; + // + int32 biz_type = 13; + // + int64 total = 14; + // + string card_type = 15; + // + string tips = 16; + // + string uri = 17; + // + bool is_voted = 18; + // + int32 choice_cnt = 19; + // + bool defaule_select_share = 20; + // + OnlyFansVoteProperty only_fans_vote = 21; + // + int64 vote_owner_mid = 22; +} + +// +message AdditionVoteDefaule { + // + repeated string cover = 1; +} + +// +message AdditionVotePic { + // + repeated AdditionVotePicItem item = 1; +} + +// +message AdditionVotePicItem { + // + int32 opt_idx = 1; + // + string cover = 2; + // + bool is_vote = 3; + // + int32 total = 4; + // + double persent = 5; + // + string title = 6; + // + bool is_max_option = 7; +} + +// +enum AdditionVoteState { + // + addition_vote_state_none = 0; + // + addition_vote_state_open = 1; + // + addition_vote_state_close = 2; +} + +// +enum AdditionVoteType { + // + addition_vote_type_none = 0; + // + addition_vote_type_word = 1; + // + addition_vote_type_pic = 2; + // + addition_vote_type_default = 3; +} + +// +message AdditionVoteWord { + // + repeated AdditionVoteWordItem item = 1; +} + +// +message AdditionVoteWordItem { + // + int32 opt_idx = 1; + // + string title = 2; + // + bool is_vote = 3; + // + int32 total = 4; + // + double persent = 5; + // + bool is_max_option = 6; +} + +// +message AdditionalActSkin { + // + string svga = 1; + // + string last_image = 2; + // + int64 play_times = 3; +} + +// +message AdditionalButton { + // + AddButtonType type = 1; + // + AdditionalButtonStyle jump_style = 2; + // + string jump_url = 3; + // + AdditionalButtonStyle uncheck = 4; + // + AdditionalButtonStyle check = 5; + // + AdditionalButtonStatus status = 6; + // + AdditionalButtonClickType click_type = 7; +} + +// +enum AdditionalButtonClickType { + // + click_none = 0; + // + click_up = 1; +} + +// +message AdditionalButtonInteractive { + // + string popups = 1; + // + string confirm = 2; + // + string cancel = 3; + // + string desc = 4; +} + +// +message AdditionalButtonShare { + // + AdditionalShareShowType show = 1; + // + string icon = 2; + // + string text = 3; +} + +// +enum AdditionalButtonStatus { + // + none = 0; + // + uncheck = 1; + // + check = 2; +} + +// +message AdditionalButtonStyle { + // + string icon = 1; + // + string text = 2; + // + AdditionalButtonInteractive interactive = 3; + // + AddButtonBgStyle bg_style = 4; + // + string toast = 5; + // + DisableState disable = 6; + // + AdditionalButtonShare share = 7; +} + +// +message AdditionalPGC { + // + string head_text = 1; + // + string title = 2; + // + string image_url = 3; + // + string desc_text1 = 4; + // + string desc_text2 = 5; + // + string url = 6; + // + AdditionalButton button = 7; + // + string head_icon = 8; + // + ImageStyle style = 9; + // + string type = 10; +} + +// +enum AdditionalShareShowType { + // + st_none = 0; + // + st_show = 1; +} + +// +enum AdditionalType { + // + additional_none = 0; + // + additional_type_pgc = 1; + // + additional_type_goods = 2; + // + additional_type_vote = 3; + // + additional_type_common = 4; + // + additional_type_esport = 5; + // + additional_type_up_rcmd = 6; + // + additional_type_ugc = 7; + // + additional_type_up_reservation = 8; + // + additional_type_article = 9; + // + additional_type_live_room = 10; + // + additional_type_music = 11; +} + +// +message AlumniDynamicsReply { + // + repeated DynamicItem list = 1; + // + string toast = 2; +} + +// +message AlumniDynamicsReq { + // + int64 campus_id = 1; + // + int32 first_time = 2; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3; + // + int32 local_time = 4; + // + int32 page = 5; + // + CampusReqFromType from_type = 6; +} + +// +message AuthorBadge { + // + AuthorBadgeStyle badge_style = 1; + // + IconBadge badge = 2; +} + +// +enum AuthorBadgeStyle { + // + AUTHOR_BADGE_STYLE_INVALID = 0; + // + AUTHOR_BADGE_STYLE_GRAY_OUTLINE = 1; +} + +// +message BasicUserInfoV2 { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar = 4; + // + int32 level = 5; + // + int32 is_senior_member = 6; + // + VipInfo vip = 7; + // + string jump_uri = 8; + // + Relation relation = 9; + // + string name_sub_text = 10; + // + bilibili.account.service.v1.NameRender name_render = 11; +} + +// +message ButtonWithSubTitle { + // + string btn_title = 1; + // + string btn_sub_title = 2; + // + string jump_uri = 3; +} + +// +message ButtonWithSubscribeParam { + // + string btn_text = 1; + // + string btn_icon = 2; + // + string subscribe_param = 3; +} + +// +message CampusBannerInfo { + // + string image = 1; + // + string jump_url = 2; +} + +// +message CampusBillBoardReply { + // + string title = 1; + // + string help_uri = 2; + // + string campus_name = 3; + // + int64 build_time = 4; + // + string version_code = 5; + // + repeated OfficialItem list = 6; + // + string share_uri = 7; + // + int32 bind_notice = 8; + // + string update_toast = 9; + // + int64 campus_id = 10; + // + CampusFeatureProgress open_progress = 11; +} + +// +message CampusBillBoardReq { + // + int64 campus_id = 1; + // + string version_code = 2; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3; + // + CampusReqFromType from_type = 4; +} + +// +message CampusBillboardInternalReq { + // + int64 mid = 1; + // + int64 campus_id = 2; + // + string version_code = 3; +} + +// +message CampusEntryTabReq { + // + int64 campus_id = 1; +} + +// +message CampusEntryTabResp { + // + CampusEntryType entry_type = 1; +} + +// +enum CampusEntryType { + // + NONE = 0; + // + ENTRY_DYNAMIC = 1; + // + ENTRY_HOME = 2; +} + +// +message CampusFeatureProgress { + // + int64 progress_full = 1; + // + int64 progress_achieved = 2; + // + string desc_title = 3; + // + string desc1 = 4; + // + CampusLabel btn = 5; +} + +// +message CampusFeedbackInfo { + // + int32 biz_type = 1; + // + int64 biz_id = 2; + // + int64 campus_id = 3; + // + string reason = 4; +} + +// +message CampusFeedbackReply { + // + string message = 1; +} + +// +message CampusFeedbackReq { + // + repeated CampusFeedbackInfo infos = 1; + // + CampusReqFromType from = 2; + // + CampusReqFromType from_type = 3; +} + +// +enum CampusHomePageType { + // + PAGE_MAJOR = 0; + // + PAGE_SUBORDINATE = 1; + // + PAGE_MAJOR_DETAIL = 2; +} + +// +message CampusHomePagesReply { + // + CampusRcmdTop top = 1; + // + CampusTop campus_top = 2; + // + int32 page_type = 3; +} + +// +message CampusHomePagesReq { + // + int64 campus_id = 1; + // + string campus_name = 2; + // + double lat = 3; + // + double lng = 4; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5; + // + CampusHomePageType page_type = 6; +} + +// +message CampusHomeRcmdTopic { + // + ModuleTitle title = 1; + // + repeated TopicItem topic = 2; +} + +// +message CampusInfo { + // + int64 campus_id = 1; + // + string campus_name = 2; + // + string desc = 3; + // + int64 online = 4; + // + string url = 5; +} + +// +message CampusLabel { + // + string text = 1; + // + string url = 2; + // + string desc = 3; +} + +// +message CampusMateLikeListReply { + // + repeated ModuleAuthor list = 1; +} + +// +message CampusMateLikeListReq { + // + int64 dynamic_id = 1; + // + CampusReqFromType from_type = 2; +} + +// +enum CampusMngAuditStatus { + // + campus_mng_audit_none = 0; + // + campus_mng_audit_in_process = 1; + // + campus_mng_audit_failed = 2; +} + +// +message CampusMngBadge { + // + string title = 1; + // + string badge_url = 2; + // + string upload_hint_msg = 3; +} + +// +message CampusMngBasicInfo { + // + int64 campus_id = 1; + // + string campus_name = 2; + // + string hint_msg = 3; +} + +// +message CampusMngDetailReply { + // + repeated CampusMngItem items = 1; + // + string top_hint_bar_msg = 2; + // + string bottom_submit_hint_msg = 3; + // + int64 campus_id = 4; + // + string campus_name = 5; +} + +// +message CampusMngDetailReq { + // + int64 campus_id = 1; +} + +// +message CampusMngItem { + // + oneof item { + // + CampusMngBasicInfo basic_info = 6; + // + CampusMngBadge badge = 7; + // + CampusMngSlogan slogan = 8; + // + CampusMngQuiz quiz = 9; + } + // + CampusMngAuditStatus audit_status = 1; + // + string audit_message = 2; + // + CampusMngItemType item_type = 3; + // + string mng_item_id = 4; + // + bool is_del = 5; +} + +// +enum CampusMngItemType { + // + campus_mng_none = 0; + // + campus_mng_basic_info = 1; + // + campus_mng_badge = 2; + // + campus_mng_slogan = 3; + // + campus_mng_quiz = 4; +} + +// +message CampusMngQuiz { + // + string title = 1; + // + CampusLabel more_label = 2; + // + string add_label = 3; + // + string submit_label = 4; + // + int64 quiz_count = 5; +} + +// +enum CampusMngQuizAction { + // + campus_mng_quiz_act_list = 0; + // + campus_mng_quiz_act_add = 1; + // + campus_mng_quiz_act_del = 2; +} + +// +message CampusMngQuizDetail { + // + int64 quiz_id = 1; + // + string question = 2; + // + string correct_answer = 3; + // + repeated string wrong_answer_list = 4; + // + CampusMngAuditStatus audit_status = 5; + // + string audit_message = 6; +} + +// +message CampusMngQuizOperateReply { + // + string toast = 1; + // + repeated CampusMngQuizDetail quiz = 2; + // + int64 quiz_total = 3; +} + +// +message CampusMngQuizOperateReq { + // + CampusMngQuizAction action = 1; + // + int64 campus_id = 2; + // + repeated CampusMngQuizDetail quiz = 3; +} + +// +message CampusMngSlogan { + // + string title = 1; + // + string slogan = 2; + // + string input_hint_msg = 3; +} + +// +message CampusMngSubmitReply { + // + string toast = 1; +} + +// +message CampusMngSubmitReq { + // + int64 campus_id = 1; + // + repeated CampusMngItem modified_items = 2; +} + +// +message CampusNoticeInfo { + // + string title = 1; + // + string desc = 2; + // + CampusLabel button = 3; +} + +// +enum CampusOnlineStatus { + // + campus_online_offline = 0; + // + campus_online_online = 1; +} + +// +message CampusRcmdFeedReply { + // + repeated DynamicItem list = 1; + // + string toast = 2; + // + GuideBarInfo guide_bar = 3; + // + bool has_more = 4; + // + bool update = 5; +} + +// +message CampusRcmdFeedReq { + // + int64 campus_id = 1; + // + int32 first_time = 2; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3; + // + int32 local_time = 4; + // + int32 page = 5; + // + int32 scroll = 6; + // + string view_dyn_id = 7; + // + CampusReqFromType from_type = 8; +} + +// +message CampusRcmdInfo { + // + string title = 1; + // + repeated CampusRcmdItem items = 2; +} + +// +message CampusRcmdItem { + // + string title = 1; + // + repeated RcmdItem items = 2; + // + int64 campus_id = 3; + // + CampusLabel entry_label = 4; +} + +// +message CampusRcmdReply { + // + CampusRcmdTop top = 1; + // + CampusRcmdInfo rcmd = 2; + // + CampusTop campus_top = 3; + // + int32 page_type = 4; + // + int32 jump_home_pop = 5; +} + +// +message CampusRcmdReq { + // + int64 campus_id = 1; + // + string campus_name = 2; + // + double lat = 3; + // + double lng = 4; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5; + // + CampusReqFromType from_type = 6; + // + CampusHomePageType page_type = 7; +} + +// +enum CampusRcmdReqFrom { + // + CAMPUS_RCMD_FROM_UNKNOWN = 0; + // + CAMPUS_RCMD_FROM_HOME_UN_OPEN = 1; + // + CAMPUS_RCMD_FROM_VISIT_OTHER = 2; + // + CAMPUS_RCMD_FROM_HOME_MOMENT = 3; + // + CAMPUS_RCMD_FROM_DYN_MOMENT = 4; + // + CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT = 5; +} + +// +message CampusRcmdTop { + // + int64 campus_id = 1; + // + string campus_name = 2; + // + string title = 3; + // + string desc = 4; + // + int32 type = 5; + // + RcmdTopButton button = 6; + // + CampusLabel switch_label = 7; + // + CampusLabel notice_label = 8; + // + string desc2 = 9; + // + string desc3 = 10; + // + CampusLabel invite_label = 11; + // + CampusLabel reserve_label = 12; + // + int64 reserve_number = 13; + // + int64 max_reserve = 14; + // + CampusLabel school_label = 15; + // + CampusLabel mng_label = 16; + // + CampusHomeRcmdTopic rcmd_topic = 17; + // + bool audit_before_open = 18; + // + string audit_message = 19; +} + +// +message CampusRecommendReply { + // + repeated RcmdItem items = 1; + // + bool has_more = 2; +} + +// +message CampusRecommendReq { + // + int64 campus_id = 1; + // + int64 page_no = 2; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3; + // + CampusRcmdReqFrom from = 4; +} + +// +message CampusRedDotReply { + // + int32 red_dot = 1; +} + +// +message CampusRedDotReq { + // + int64 campus_id = 1; + // + CampusReqFromType from_type = 2; +} + +// +enum CampusReqFromType { + // + DYNAMIC = 0; + // + HOME = 1; +} + +// +message CampusShowTabInfo { + // + string name = 1; + // + string url = 2; + // + CampusTabType type = 3; + // + int32 red_dot = 4; + // + string icon_url = 5; +} + +// +message CampusSquareReply { + // + string title = 1; + // + repeated RcmdCampusBrief list = 2; + // + CampusLabel button = 3; +} + +// +message CampusSquareReq { + // + int64 campus_id = 1; + // + double lat = 2; + // + double lng = 3; +} + +// +enum CampusTabType { + // + campus_none = 0; + // + campus_school = 1; + // + campus_dynamic = 2; + // + campus_account = 3; + // + campus_billboard = 4; + // + campus_topic = 5; + // + campues_other = 6; +} + +// +message CampusTop { + // + int64 campus_id = 1; + // + string campus_name = 2; + // + repeated CampusShowTabInfo tabs = 3; + // + CampusLabel switch_label = 4; + // + string title = 5; + // + repeated CampusBannerInfo banner = 6; + // + CampusLabel invite_label = 7; + // + CampusNoticeInfo notice = 8; + // + TopicSquareInfo topic_square = 9; + // + string campus_badge = 10; + // + string campus_background = 11; + // + string campus_motto = 12; + // + CampusLabel mng_entry = 13; + // + string campus_intro = 14; + // + string campus_name_link = 15; + // + string bottom_left_text = 16; +} + +// +message CampusTopicRcmdFeedReply { + // + repeated DynamicItem list = 1; + // + string toast = 2; + // + bool has_more = 3; + // + string offset = 4; + // + IconButton join_discuss = 5; +} + +// +message CampusTopicRcmdFeedReq { + // + int64 campus_id = 1; + // + string offset = 2; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3; + // + int32 local_time = 4; + // + CampusReqFromType from_type = 5; +} + +// +message CampusWaterFlowItem { + // + oneof flow_item { + // + WFItemDefault item_default = 3; + } + // + WFItemType item_type = 1; + // + bilibili.app.dynamic.common.ItemWHRatio wh_ratio = 2; +} + +// +message CardParagraph { + // + ModuleAdditional additional_card = 1; + // + LinkNodeType biz_type = 2; + // + string biz_id = 3; +} + +// +message CardVideoDynList { + // + repeated DynamicItem list = 1; + // + int64 update_num = 2; + // + string history_offset = 3; + // + string update_baseline = 4; + // + bool has_more = 5; +} + +// +message CardVideoFollowList { + // + string view_all_link = 1; + // + repeated FollowListItem list = 2; +} + +// +message CardVideoUpList { + // + string title = 1; + // + repeated UpListItem list = 2; + // + string footprint = 3; + // + int32 show_live_num = 4; + // + UpListMoreLabel more_label = 5; + // + int32 title_switch = 6; + // + bool show_more_label = 7; + // + bool show_in_personal = 8; + // + bool show_more_button = 9; + // + repeated UpListItem list_second = 10; + // + bool has_more_list = 11; + // + string more_list_offset = 12; +} + +// +message ChannelInfo { + // + int64 channel_id = 1; + // + string channel_name = 2; + // + string desc = 3; + // + bool is_atten = 4; + // + string type_icon = 5; + // + repeated RcmdItem items = 6; + // + string icon = 7; + // + string jump_uri = 8; +} + +// +message CmtShowItem { + // + int64 uid = 1; + // + string uname = 2; + // + string uri = 3; + // + string comment = 4; +} + +// +message CodeParagraph { + // + string code_lang = 1; + // + string code_content = 2; + // + string popup_link = 3; + // + string bar_icon = 4; + // + string bar_notice = 5; + // + string btn_text = 6; +} + +// +message ColoredText { + // + string text = 1; + // + Colors color = 2; +} + +// +message Colors { + // + string color_day = 1; + // + string color_night = 2; +} + +// +message CommentDetail { + // + bool can_modify = 1; + // + int64 status = 2; +} + +// +message CommonShareCardInfo { + // + int64 sketch_id = 1; + // + int64 biz_type = 2; + // + int64 biz_id = 3; +} + +// +message Config { + // + bool story_vertical_exp = 1; + // + int64 detail_view_bits = 2; + // + map extra_router_kvs = 3; +} + +// +message CooperationStaffListReq { + // + string oid = 1; +} + +// +message CooperationStaffListResp { + // + repeated CooperationUpInfo up_list = 1; +} + +// +message CooperationUpInfo { + // + BasicUserInfoV2 user_info = 1; + // + string up_role = 2; +} + +// +enum CoverIcon { + // + cover_icon_none = 0; + // + cover_icon_play = 1; + // + cover_icon_danmaku = 2; + // + cover_icon_up = 3; + // + cover_icon_vt = 4; + // + cover_icon_view_cnt = 5; + // + cover_icon_thumb_up = 6; + // + cover_icon_reply = 7; + // + cover_icon_fav = 8; + // + cover_icon_coin = 9; + // + cover_icon_self_seen = 10; +} + +// +message CoverIconWithText { + // + CoverIcon icon = 1; + // + string text = 2; + // + bool icon_checked = 3; +} + +// +message CreationClassification { + // + string classification_name = 1; + // + int64 count = 2; + // + string classification_type = 3; + // + bool is_chosen = 4; +} + +// +message CreationItemAction { + // + enum CreationAction { + // + CREATION_ACTION_INVALID = 0; + // + CREATION_ACTION_DELETE = 1; + // + CREATION_ACTION_EDIT_DYN = 2; + // + CREATION_ACTION_JUMP_URL = 3; + // + CREATION_ACTION_RETRACT_CV = 4; + // + CREATION_ACTION_EDIT_CV = 5; + // + CREATION_ACTION_VISIBILITY_CHANGE = 6; + } + + // + string icon = 1; + // + string action_name = 2; + // + CreationItemAction.CreationAction action_type = 3; + // + string jump_url = 4; + // + int64 remain_edit_times = 5; + // + ThreePointDefaultToast confirmation_toast = 6; + // + ThreePointVisibilityChange visibility_change = 7; +} + +// +message CreationSortType { + // + string sort_name = 1; + // + string sort_type = 2; + // + bool is_chosen = 3; +} + +// +message DecoCardFan { + // + int32 is_fan = 1; + // + int32 number = 2; + // + string number_str = 3; + // + string color = 4; + // + DecoCardFanNumColorFormat color_format = 5; + // + string num_prefix = 6; +} + +// +message DecoCardFanNumColorFormat { + // + string start_point = 1; + // + string end_point = 2; + // + repeated string colors = 3; + // + repeated int64 gradients = 4; +} + +// +message DecorateCard { + // + int64 id = 1; + // + string card_url = 2; + // + string jump_url = 3; + // + DecoCardFan fan = 4; + // + bilibili.vas.garb.service.UserCard vas_deco_card = 5; +} + +// +enum DescType { + // + desc_type_none = 0; + // + desc_type_text = 1; + // + desc_type_aite = 2; + // + desc_type_lottery = 3; + // + desc_type_vote = 4; + // + desc_type_topic = 5; + // + desc_type_goods = 6; + // + desc_type_bv = 7; + // + desc_type_av = 8; + // + desc_type_emoji = 9; + // + desc_type_user = 10; + // + desc_type_cv = 11; + // + desc_type_vc = 12; + // + desc_type_web = 13; + // + desc_type_taobao = 14; + // + desc_type_mail = 15; + // + desc_type_ogv_season = 16; + // + desc_type_ogv_ep = 17; + // + desc_type_search_word = 18; +} + +// +message Description { + // + string text = 1; + // + DescType type = 2; + // + string uri = 3; + // + EmojiType emoji_type = 4; + // + string goods_type = 5; + // + string icon_url = 6; + // + string icon_name = 7; + // + string rid = 8; + // + ModuleDescGoods goods = 9; + // + string orig_text = 10; + // + int32 emoji_size = 11; + // + EmojiSizeSpec emoji_size_spec = 12; +} + +// +message Dimension { + // + int64 height = 1; + // + int64 width = 2; + // + int64 rotate = 3; + // + bool force_horizontal = 4; +} + +// +enum DisableState { + // + highlight = 0; + // + gary = 1; +} + +// +message DynAdditionCommonFollowReply { + // + AdditionalButtonStatus status = 1; +} + +// +message DynAdditionCommonFollowReq { + // + AdditionalButtonStatus status = 1; + // + string dyn_id = 2; + // + string card_type = 3; +} + +// +message DynAllPersonalReply { + // + repeated DynamicItem list = 1; + // + string offset = 2; + // + bool has_more = 3; + // + string read_offset = 4; + // + Relation relation = 5; + // + TopAdditionUP addition_up = 6; + // + string title = 7; + // + string title_sub = 8; +} + +// +message DynAllPersonalReq { + // + int64 host_uid = 1; + // + string offset = 2; + // + int32 page = 3; + // + int32 is_preload = 4; + // + PlayurlParam playurl_param = 5; + // + int32 local_time = 6; + // + string footprint = 7; + // + string from = 8; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 9; + // + string personal_extra = 10; + // + AdParam ad_param = 11; +} + +// +message DynAllReply { + // + DynamicList dynamic_list = 1; + // + CardVideoUpList up_list = 2; + // + TopicList topic_list = 3; + // + Unfollow unfollow = 4; + // + DynRegionRcmd region_rcmd = 5; + // + Config config = 6; + // + FeedSortConfig sort_config = 7; +} + +// +message DynAllReq { + // + string update_baseline = 1; + // + string offset = 2; + // + int32 page = 3; + // + Refresh refresh_type = 4; + // + PlayurlParam playurl_param = 5; + // + string assist_baseline = 6; + // + int32 local_time = 7; + // + RcmdUPsParam rcmd_ups_param = 8; + // + AdParam ad_param = 9; + // + int32 cold_start = 10; + // + string from = 11; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 12; + // + int64 tab_recall_uid = 13; + // + StyleType tab_recall_type = 14; + // + string tab_recall_extra = 15; + // + FeedSortOptionReq req_sort_option = 16; + // + string bubble_recall_extra_when_show = 17; +} + +// +message DynAllUpdOffsetReq { + // + int64 host_uid = 1; + // + string read_offset = 2; + // + string footprint = 3; + // + string personal_extra = 4; +} + +// +message DynDetailReply { + // + DynamicItem item = 1; +} + +// +message DynDetailReq { + // + int64 uid = 1; + // + string dynamic_id = 2; + // + int64 dyn_type = 3; + // + int64 rid = 4; + // + AdParam ad_param = 5; + // + string from = 6; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 7; + // + string share_id = 8; + // + int32 share_mode = 9; + // + int32 local_time = 10; + // + string pattern = 11; + // + Config config = 12; +} + +// +message DynDetailsReply { + // + repeated DynamicItem list = 1; +} + +// +message DynDetailsReq { + // + string dynamic_ids = 1; + // + PlayurlParam playurl_param = 2; + // + int32 local_time = 3; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; + // + Config config = 5; +} + +// +enum DynExtendType { + // + dyn_ext_type_none = 0; + // + dyn_ext_type_topic = 1; + // + dyn_ext_type_lbs = 2; + // + dyn_ext_type_hot = 3; + // + dyn_ext_type_game = 4; + // + dyn_ext_type_common = 5; + // + dyn_ext_type_biliCut = 6; + // + dyn_ext_type_ogv = 7; + // + dyn_ext_type_auto_ogv = 8; + // + dyn_ext_type_article_tag = 9; +} + +// +message DynFakeCardReply { + // + DynamicItem item = 1; +} + +// +message DynFakeCardReq { + // + string content = 1; +} + +// +message DynFeatureGate { + // + bool enhanced_interaction = 1; +} + +// +message DynFriendReply { + // + repeated DynamicItem dyn_list = 1; + // + bool has_more = 2; + // + string offset = 3; +} + +// +message DynFriendReq { + // + string offset = 1; + // + int32 local_time = 2; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3; +} + +// +message DynLightReply { + // + DynamicList dynamic_list = 1; +} + +// +message DynLightReq { + // + string history_offset = 1; + // + int32 page = 2; + // + string from = 3; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; + // + int32 local_time = 5; + // + LightFromType from_type = 6; + // + int64 fake_uid = 7; +} + +// +message DynMixUpListSearchReply { + // + repeated MixUpListItem items = 1; +} + +// +message DynMixUpListSearchReq { + // + string name = 1; +} + +// +message DynMixUpListViewMoreReply { + // + repeated MixUpListItem items = 1; + // + string search_default_text = 2; + // + repeated SortType sort_types = 3; + // + bool show_more_sort_types = 4; + // + int32 default_sort_type = 5; +} + +// +message DynMixUpListViewMoreReq { + // + int32 sort_type = 1; +} + +// +enum DynModuleType { + // + module_none = 0; + // + module_author = 1; + // + module_dispute = 2; + // + module_desc = 3; + // + module_dynamic = 4; + // + module_forward = 5; + // + module_likeUser = 6; + // + module_extend = 7; + // + module_additional = 8; + // + module_stat = 9; + // + module_fold = 10; + // + module_comment = 11; + // + module_interaction = 12; + // + module_author_forward = 13; + // + module_ad = 14; + // + module_banner = 15; + // + module_item_null = 16; + // + module_share_info = 17; + // + module_recommend = 18; + // + module_stat_forward = 19; + // + module_top = 20; + // + module_bottom = 21; + // + module_story = 22; + // + module_topic = 23; + // + module_topic_details_ext = 24; + // + module_top_tag = 25; + // + module_topic_brief = 26; + // + module_title = 27; + // + module_button = 28; + // + module_notice = 29; + // + module_opus_summary = 30; + // + module_copyright = 31; + // + module_paragraph = 32; + // + module_blocked = 33; + // + module_text_notice = 34; + // + module_opus_collection = 35; + // + module_onetime_notice = 36; + // + module_sneaking_ad = 37; + // + module_manga_horizontal_page_pic_content = 38; + // + module_manga_vertical_slide_pic_content = 39; + // + module_manga_cover_pic_content = 40; + // + module_author_for_subscribe = 41; + // + module_author_slim = 42; + // + module_manga_collection = 43; + // + module_cooperation = 44; +} + +// +message DynRcmdReply { + // + DynRegionRcmd region_rcmd = 1; + // + DynamicList dynamic_list = 2; +} + +// +message DynRcmdReq { + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 1; + // + int32 local_time = 2; + // + int64 fake_uid = 3; + // + bool is_refresh = 4; +} + +// +message DynRcmdUpExchangeReply { + // + Unfollow unfollow = 1; +} + +// +message DynRcmdUpExchangeReq { + // + int64 uid = 1; + // + int64 dislike_ts = 2; + // + string from = 3; +} + +// +message DynRegionRcmd { + // + repeated DynRegionRcmdItem items = 1; + // + RcmdOption opts = 2; +} + +// +message DynRegionRcmdItem { + // + int64 rid = 1; + // + string title = 2; + // + repeated ModuleRcmd items = 3; +} + +// +message DynScreenTab { + // + string title = 1; + // + string name = 2; + // + bool default_tab = 3; + // + bool strategy_show_on_entrance = 4; + // + bool strategy_show_on_refresh = 5; + // + bool strategy_show_on_pull_up = 6; +} + +// +message DynSearchReply { + // + SearchChannel channel_info = 1; + // + SearchTopic search_topic = 2; + // + SearchInfo search_info = 3; +} + +// +message DynSearchReq { + // + string keyword = 1; + // + int32 page = 2; + // + int32 local_time = 3; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; +} + +// +message DynServerDetailsReply { + // + map items = 1; +} + +// +message DynServerDetailsReq { + // + repeated int64 dynamic_ids = 1; + // + int32 local_time = 2; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3; + // + string mobi_app = 4; + // + string device = 5; + // + string buvid = 6; + // + int64 build = 7; + // + int64 mid = 8; + // + string platform = 9; + // + bool is_master = 10; + // + repeated int64 top_dynamic_ids = 11; +} + +// +message DynSpaceReq { + // + int64 host_uid = 1; + // + string history_offset = 2; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3; + // + int32 local_time = 4; + // + int64 page = 5; + // + string from = 6; +} + +// +message DynSpaceRsp { + // + repeated DynamicItem list = 1; + // + string history_offset = 2; + // + bool has_more = 3; +} + +// +message DynSpaceSearchDetailsReply { + // + map items = 1; +} + +// +message DynSpaceSearchDetailsReq { + // + repeated int64 dynamic_ids = 1; + // + repeated string search_words = 2; + // + int32 local_time = 3; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; + // + string mobi_app = 5; + // + string device = 6; + // + string buvid = 7; + // + int64 build = 8; + // + int64 mid = 9; + // + string platform = 10; + // + string ip = 11; + // + NetworkType net_type = 12; + // + TFType tf_type = 13; +} + +// +message DynTab { + // + string title = 1; + // + string uri = 2; + // + string bubble = 3; + // + int32 red_point = 4; + // + int64 city_id = 5; + // + int32 is_popup = 6; + // + Popup popup = 7; + // + bool default_tab = 8; + // + string sub_title = 9; + // + string anchor = 10; + // + string internal_test = 11; + // + ShowType type = 12; + // + DynTab back_up = 13; + // + string jump_home_pop = 14; +} + +// +message DynTabReply { + // + repeated DynTab dyn_tab = 1; + // + repeated DynScreenTab screen_tab = 2; +} + +// +message DynTabReq { + // + int32 teenagers_mode = 1; + // + CampusReqFromType from_type = 2; +} + +// +message DynThumbReq { + // + int64 uid = 1; + // + string dyn_id = 2; + // + int64 dyn_type = 3; + // + string rid = 4; + // + ThumbType type = 5; +} + +// +message DynVideoPersonalReply { + // + repeated DynamicItem list = 1; + // + string offset = 2; + // + bool has_more = 3; + // + string read_offset = 4; + // + Relation relation = 5; + // + TopAdditionUP addition_up = 6; + // + string title = 7; + // + string title_sub = 8; +} + +// +message DynVideoPersonalReq { + // + int64 host_uid = 1; + // + string offset = 2; + // + int32 page = 3; + // + int32 is_preload = 4; + // + PlayurlParam playurl_param = 5; + // + int32 local_time = 6; + // + string footprint = 7; + // + string from = 8; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 9; + // + int64 pegasus_avid = 10; + // + string personal_extra = 11; +} + +// +message DynVideoReply { + // + CardVideoDynList dynamic_list = 1; + // + CardVideoUpList video_up_list = 2; + // + CardVideoFollowList video_follow_list = 3; + // + FeedSortConfig sort_config = 4; +} + +// +message DynVideoReq { + // + string update_baseline = 1; + // + string offset = 2; + // + int32 page = 3; + // + Refresh refresh_type = 4; + // + PlayurlParam playurl_param = 5; + // + string assist_baseline = 6; + // + int32 local_time = 7; + // + string from = 8; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 9; + // + FeedSortOptionReq req_sort_option = 10; +} + +// +message DynVideoUpdOffsetReq { + // + int64 host_uid = 1; + // + string read_offset = 2; + // + string footprint = 3; + // + string personal_extra = 4; +} + +// +enum DynVisibilityStatus { + // + DYN_VISIBILITY_PUBLIC = 0; + // + DYN_VISIBILITY_SELF_SEEN_ONLY = 1; +} + +// +message DynVoteReply { + // + AdditionVote2 item = 1; + // + string toast = 2; +} + +// +message DynVoteReq { + // + int64 vote_id = 1; + // + repeated int64 votes = 2; + // + VoteStatus status = 3; + // + string dynamic_id = 4; + // + bool share = 5; +} + +// +message DynamicItem { + // + DynamicType card_type = 1; + // + DynamicType item_type = 2; + // + repeated Module modules = 3; + // + Extend extend = 4; + // + int32 has_fold = 5; + // + string server_info = 6; +} + +// +message DynamicList { + // + repeated DynamicItem list = 1; + // + int64 update_num = 2; + // + string history_offset = 3; + // + string update_baseline = 4; + // + bool has_more = 5; +} + +// +enum DynamicType { + // + dyn_none = 0; + // + forward = 1; + // + av = 2; + // + pgc = 3; + // + courses = 4; + // + fold = 5; + // + word = 6; + // + draw = 7; + // + article = 8; + // + music = 9; + // + common_square = 10; + // + common_vertical = 11; + // + live = 12; + // + medialist = 13; + // + courses_season = 14; + // + ad = 15; + // + applet = 16; + // + subscription = 17; + // + live_rcmd = 18; + // + banner = 19; + // + ugc_season = 20; + // + subscription_new = 21; + // + story = 22; + // + topic_rcmd = 23; + // + cour_up = 24; + // + topic_set = 25; + // + notice = 26; + // + text_notice = 27; + // + onetime_notice = 28; + // + manga_ep = 29; +} + +// +message EmojiSizeSpec { + // + int64 width = 1; +} + +// +enum EmojiType { + // + emoji_none = 0; + // + emoji_old = 1; + // + emoji_new = 2; + // + vip = 3; +} + +// +enum EmoteClickAction { + // + EMOTE_CLICK_NONE = 0; + // + EMOTE_CLICK_POPUP_PREVIEW = 1; +} + +// +message EmoteNode { + // + WordNode raw_text = 1; + // + string emote_url = 2; + // + EmoteSize emote_width = 3; + // + bool is_inline_img = 4; + // + ImgInlineCfg inline_img_cfg = 5; + // + bool allow_animated = 6; + // + EmoteClickAction click_action = 7; + // + string preview_name = 8; + // + string preview_name_jump_uri = 9; + // + string emote_url_dark = 10; +} + +// +message EmoteSize { + // + double width = 1; + // + int32 emoji_size = 2; +} + +// +enum EspaceStyle { + // + moba = 0; +} + +// +message ExtInfoCommon { + // + enum ExtTagStyle { + // + EXT_TAG_STYLE_DEFAULT = 0; + // + EXT_TAG_STYLE_PURE_TEXT = 1; + } + + // + string title = 1; + // + string uri = 2; + // + string icon = 3; + // + int32 poi_type = 4; + // + DynExtendType type = 5; + // + string sub_module = 6; + // + string action_text = 7; + // + string action_url = 8; + // + int64 rid = 9; + // + bool is_show_light = 10; + // + ExtInfoCommon.ExtTagStyle tag_style = 11; + // + string extend_report_tag = 12; +} + +// +message ExtInfoGame { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; +} + +// +message ExtInfoHot { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; +} + +// +message ExtInfoLBS { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; + // + int32 poi_type = 4; +} + +// +message ExtInfoOGV { + // + repeated InfoOGV info_ogv = 1; +} + +// +message ExtInfoTopic { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; +} + +// +message Extend { + // + string dyn_id_str = 1; + // + string business_id = 2; + // + string orig_dyn_id_str = 3; + // + string orig_name = 4; + // + string orig_img_url = 5; + // + repeated Description orig_desc = 6; + // + repeated Description desc = 7; + // + DynamicType orig_dyn_type = 8; + // + string share_type = 9; + // + string share_scene = 10; + // + bool is_fast_share = 11; + // + int32 r_type = 12; + // + int64 dyn_type = 13; + // + int64 uid = 14; + // + string card_url = 15; + // + google.protobuf.Any source_content = 16; + // + string orig_face = 17; + // + ExtendReply reply = 18; + // + string track_id = 19; + // + ModuleOpusSummary opus_summary = 20; + // + OnlyFansProperty only_fans_property = 21; + // + DynFeatureGate feature_gate = 22; + // + bool is_in_audit = 23; + // + map history_report = 24; + // + string report_metric_data = 25; + // + TextParagraph desc_text_opus = 26; + // + bool is_preview_only = 27; + // + RepostExtraInfo repost_extra_info = 28; + // + MangaProperty manga_property = 29; + // + string up_name = 30; + // + string up_face = 31; + // + DynVisibilityStatus desired_visibility_status = 32; +} + +// +message ExtendReply { + // + string uri = 1; + // + repeated ExtendReplyParam params = 2; + // + int64 reply_biz_type = 3; + // + int64 reply_biz_id = 4; + // + bool no_load_comment = 5; + // + string no_load_comment_hint_text = 6; +} + +// +message ExtendReplyParam { + // + string key = 1; + // + string value = 2; +} + +// +message FeedFilterReply { + // + string offset = 1; + // + bool has_more = 2; + // + repeated DynamicItem list = 3; +} + +// +message FeedFilterReq { + // + string offset = 1; + // + string tab = 2; + // + int32 local_time = 3; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; + // + AdParam ad_param = 5; + // + int32 cold_start = 6; + // + int64 page = 7; +} + +// +message FeedSortConfig { + // + string title = 1; + // + repeated FeedSortOption sort_options = 2; +} + +// +message FeedSortOption { + // + string sort_name = 1; + // + string sort_type = 2; + // + bool is_selected = 3; + // + bool no_auto_next_page_when_unsatisfied = 4; +} + +// +message FeedSortOptionReq { + // + string sort_type = 1; + // + bool is_cold_refresh = 2; +} + +// +message FetchTabSettingReply { + // + HomePageTabSttingStatus status = 1; +} + +// +message FlowItemOpus { + // + MdlDynDrawItem cover_pic = 1; + // + bilibili.app.dynamic.common.ItemWHRatio cover_wh_ratio = 2; + // + CoverIconWithText bottom_left_text1 = 3; + // + CoverIconWithText bottom_left_text2 = 4; + // + Paragraph text_paragraph = 5; + // + VideoBadge top_right_badge = 6; + // + MdlDynDrawItem dark_cover_pic = 7; +} + +// +enum FlowItemType { + // + FLOW_ITEM_TYPE_INVALID = 0; + // + FLOW_ITEM_TYPE_OPUS = 1; +} + +// +enum FoldType { + // + FoldTypeZore = 0; + // + FoldTypePublish = 1; + // + FoldTypeFrequent = 2; + // + FoldTypeUnite = 3; + // + FoldTypeLimit = 4; + // + FoldTypeTopicMerged = 5; +} + +// +message FollowListItem { + // + int64 season_id = 1; + // + string title = 2; + // + string cover = 3; + // + string url = 4; + // + NewEP new_ep = 5; + // + string sub_title = 6; + // + int64 pos = 7; +} + +// +message FormulaNode { + // + WordNode latex_content = 1; + // + ImgInlineCfg image_spec = 2; + // + string img_url = 4; +} + +// +message GoodsItem { + // + string cover = 1; + // + string schema_package_name = 2; + // + int32 source_type = 3; + // + string jump_url = 4; + // + string jump_desc = 5; + // + string title = 6; + // + string brief = 7; + // + string price = 8; + // + int64 item_id = 9; + // + string schema_url = 10; + // + repeated string open_white_list = 11; + // + bool user_web_v2 = 12; + // + string ad_mark = 13; + // + string app_name = 14; + // + GoodsJumpType jump_type = 15; + // + string cm_cache_passthrough = 16; +} + +// +enum GoodsJumpType { + // + goods_none = 0; + // + goods_schema = 1; + // + goods_url = 2; +} + +// +message GuideBarInfo { + // + int32 show = 1; + // + int32 page = 2; + // + int32 position = 3; + // + string desc = 4; + // + int32 jump_page = 5; + // + int32 jump_position = 6; +} + +// +message HighlightText { + // + string text = 1; + // + HighlightTextStyle text_style = 2; + // + string jump_url = 3; + // + string icon = 4; +} + +// +enum HighlightTextStyle { + // + style_none = 0; + // + style_highlight = 1; +} + +// +enum HomePageTabSttingStatus { + // + SETTING_INVALID = 0; + // + SETTING_OPEN = 1; + // + SETTING_CLOSE = 2; +} + +// +message HomeSubscribeReply { + // + CampusOnlineStatus online = 1; +} + +// +message HomeSubscribeReq { + // + int64 campus_id = 1; + // + string campus_name = 2; +} + +// +message IconBadge { + // + string icon_bg_url = 1; + // + string text = 2; +} + +// +message IconButton { + // + string text = 1; + // + string icon_head = 2; + // + string icon_tail = 3; + // + string jump_uri = 4; + // + RouterAction router_action = 5; +} + +// +enum IconResLocal { + // + ICON_RES_LOCAL_NONE = 0; + // + ICON_RES_LOCAL_LIVE = 1; +} + +// +message ImageSet { + // + string img_day = 1; + // + string img_dark = 2; +} + +// +enum ImageStyle { + // + add_style_vertical = 0; + // + add_style_square = 1; +} + +// +message ImgInlineCfg { + // + double width = 1; + // + double height = 2; + // + Colors color = 3; +} + +// +message InfoOGV { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; + // + string sub_module = 4; +} + +// +message InteractionFace { + // + int64 mid = 1; + // + string face = 2; +} + +// +message InteractionItem { + // + LocalIconType icon_type = 1; + // + repeated Description desc = 2; + // + string uri = 3; + // + string dynamic_id = 4; + // + int64 comment_mid = 6; + // + repeated InteractionFace faces = 7; + // + InteractionStat stat = 8; + // + string icon = 9; + // + string tail_icon = 10; + // + repeated Description tail_desc = 11; + // + map extend_click_param = 12; +} + +// +message InteractionStat { + // + int64 like = 1; + // + int64 forward = 2; +} + +// +message LbsPoiDetail { + // + string poi = 1; + // + int64 type = 2; + // + repeated string base_pic = 3; + // + repeated string cover = 4; + // + string address = 5; + // + string title = 6; +} + +// +message LbsPoiReply { + // + bool has_more = 1; + // + string offset = 2; + // + LbsPoiDetail detail = 3; + // + repeated DynamicItem list = 4; +} + +// +message LbsPoiReq { + // + string poi = 1; + // + int64 type = 2; + // + string offset = 3; + // + Refresh refresh_type = 4; + // + int32 local_time = 5; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 6; +} + +// +message LegacyTopicFeedReply { + // + repeated DynamicItem list = 1; + // + bool has_more = 2; + // + string offset = 3; + // + repeated SortType supported_sort_types = 4; + // + repeated SortType feed_card_filters = 5; +} + +// +message LegacyTopicFeedReq { + // + int64 topic_id = 1; + // + string topic_name = 2; + // + string offset = 3; + // + SortType sort_type = 4; + // + SortType card_filter = 5; +} + +// +enum LightFromType { + // + from_login = 0; + // + from_unlogin = 1; +} + +// +message LikeAnimation { + // + string begin = 1; + // + string proc = 2; + // + string end = 3; + // + int64 like_icon_id = 4; +} + +// +message LikeInfo { + // + LikeAnimation animation = 1; + // + bool is_like = 2; +} + +// +message LikeListReply { + // + repeated ModuleAuthor list = 1; + // + bool has_more = 2; + // + int64 total_count = 3; +} + +// +message LikeListReq { + // + string dynamic_id = 1; + // + int64 dyn_type = 2; + // + int64 rid = 3; + // + int64 uid_offset = 4; + // + int32 page = 5; +} + +// +message LikeUser { + // + int64 uid = 1; + // + string uname = 2; + // + string uri = 3; +} + +// +message LineParagraph { + // + MdlDynDrawItem pic = 1; +} + +// +message LinkNode { + // + WordNode show_text = 1; + // + string link = 2; + // + string icon = 3; + // + string icon_suffix = 4; + // + string link_type = 5; + // + LinkNodeType link_type_enum = 6; + // + string biz_id = 7; + // + int64 timestamp = 8; + // + GoodsItem goods_item = 9; + // + NoteVideoTS note_video_ts = 10; + // + google.protobuf.Any biz_data = 11; + // + MdlDynDraw link_pics = 12; +} + +// +enum LinkNodeType { + // + INVALID = 0; + // + VIDEO = 1; + // + RESERVE = 2; + // + VOTE = 3; + // + LIVE = 4; + // + LOTTERY = 5; + // + MATCH = 6; + // + GOODS = 7; + // + OGV_SS = 8; + // + OGV_EP = 9; + // + MANGA = 10; + // + CHEESE = 11; + // + VIDEO_TS = 12; + // + AT = 13; + // + HASH_TAG = 14; + // + ARTICLE = 15; + // + URL = 16; + // + MAIL = 17; + // + LBS = 18; + // + ACTIVITY = 19; + // + ATTACH_CARD_OFFICIAL_ACTIVITY = 20; + // + GAME = 21; + // + DECORATION = 22; + // + UP_TOPIC = 23; + // + UP_ACTIVITY = 24; + // + UP_MAOER = 25; + // + MEMBER_GOODS = 26; + // + OPENMALL_UP_ITEMS = 27; + // + SEARCH = 28; + // + MUSIC = 29; + // + GPT_RCMD_QUESTION = 30; + // + MEMBER_TICKET = 31; + // + REPOST_PIC_URL = 32; + // + REPOST_PIC_DYN_URL = 33; + // + OGV_FOLLOW_CARD = 34; + // + ARTICLE_GOODS = 35; + // + ARTICLE_TAG = 36; +} + +// +message ListCreationReq { + // + SelectedClassificationAndSortType preference = 1; + // + int32 local_time = 2; + // + bilibili.pagination.Pagination pagination = 3; +} + +// +message ListCreationResp { + // + repeated CreationClassification classifications = 1; + // + repeated CreationSortType sort_types = 2; + // + bilibili.pagination.PaginationReply next_page = 3; + // + repeated OpusCreationItem creation_list = 4; +} + +// +message ListFavReq { + // + int32 local_time = 1; + // + bilibili.pagination.Pagination pagination = 2; +} + +// +message ListFavResp { + // + repeated OpusFavItem item_list = 1; + // + bilibili.pagination.PaginationReply next_page = 2; +} + +// +message LiveInfo { + // + int32 is_living = 1; + // + string uri = 2; + // + LiveState live_state = 3; +} + +// +message LivePendant { + // + string text = 1; + // + string icon = 2; + // + int64 pendant_id = 3; +} + +// +enum LiveState { + // + live_none = 0; + // + live_live = 1; + // + live_rotation = 2; +} + +// +enum LocalIconType { + // + local_icon_comment = 0; + // + local_icon_like = 1; + // + local_icon_avatar = 2; + // + local_icon_cover = 3; + // + local_icon_like_and_forward = 4; +} + +// +message MangaLikeBrowserGuidance { + // + bool show_page_right_to_left_guidance = 1; + // + string page_right_to_left_guidance_text = 2; +} + +// +enum MangaLikePageDirection { + // + PAGE_DIRECTION_INVALID = 0; + // + PAGE_DIRECTION_LEFT_TO_RIGHT = 1; + // + PAGE_DIRECTION_RIGHT_TO_LEFT = 2; + // + PAGE_DIRECTION_LEFT_TO_RIGHT_ROTATE = 3; +} + +// +message MangaLikePic { + // + ProtectedStaticResource pic = 1; + // + int64 width = 2; + // + int64 height = 3; +} + +// +enum MangaLikePicClickAction { + // + CLICK_ACT_NONE = 0; + // + CLICK_ACT_MANGA_BROWSER = 1; + // + CLICK_ACT_NORMAL_BROWSER = 2; +} + +// +message MangaProperty { + // + int64 ep_id = 1; + // + int64 manga_id = 2; + // + bool is_premium_content = 3; + // + bool is_payment_needed = 4; +} + +// +message MatchTeam { + // + int64 id = 1; + // + string name = 2; + // + string cover = 3; + // + string color = 4; + // + string night_color = 5; +} + +// +enum MdlBlockedStyle { + // + BLOCKED_STYLE_DEFAULT = 0; + // + BLOCKED_STYLE_IN_AUDIT = 1; + // + BLOCKED_STYLE_ONLY_FANS_LIST = 2; + // + BLOCKED_STYLE_ONLY_FANS_VIDEO = 3; + // + BLOCKED_STYLE_MANGA_PURCHASE = 4; +} + +// +message MdlDynApplet { + // + int64 id = 1; + // + string uri = 2; + // + string title = 4; + // + string sub_title = 5; + // + string cover = 6; + // + string icon = 7; + // + string label = 8; + // + string button_title = 9; +} + +// +message MdlDynArchive { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string cover_left_text1 = 4; + // + string cover_left_text2 = 5; + // + string cover_left_text3 = 6; + // + int64 avid = 7; + // + int64 cid = 8; + // + MediaType media_type = 9; + // + Dimension dimension = 10; + // + repeated VideoBadge badge = 11; + // + bool can_play = 12; + // + VideoType stype = 13; + // + bool is_p_g_c = 14; + // + string inline_u_r_l = 15; + // + int64 episode_id = 16; + // + int32 sub_type = 17; + // + int64 pgc_season_id = 18; + // + string play_icon = 19; + // + int64 duration = 20; + // + string jump_url = 21; + // + bool is_preview = 22; + // + repeated VideoBadge badge_category = 23; + // + bool is_feature = 24; + // + ReserveType reserve_type = 25; + // + string bvid = 26; + // + int32 view = 27; + // + bool show_premiere_badge = 28; + // + bool premiere_card = 29; + // + bool show_progress = 30; + // + int64 part_duration = 31; + // + int64 part_progress = 32; +} + +// +message MdlDynArticle { + // + int64 id = 1; + // + string uri = 2; + // + string title = 3; + // + string desc = 4; + // + repeated string covers = 5; + // + string label = 6; + // + int32 template_i_d = 7; +} + +// +message MdlDynChargingArchive { + // + MdlDynArchive archive_info = 1; + // + bool has_permission = 2; + // + bool can_inline = 3; + // + string charging_bundle_name = 4; + // + int64 cfg_preview_end_toast_countdown = 5; + // + int64 cfg_normal_inline_toast_duration = 6; + // + OneLineText video_bottom_text_upper = 7; + // + OneLineText video_bottom_text_lower = 8; + // + string archive_cover = 9; + // + string archive_title = 10; + // + IconButton act_btn = 11; + // + OneLineText text_normal_inline_toast = 12; + // + OneLineText text_append_preview_end_toast = 13; +} + +// +message MdlDynCommon { + // + int64 oid = 1; + // + string uri = 2; + // + string title = 3; + // + string desc = 4; + // + string cover = 5; + // + string label = 6; + // + int32 biz_type = 7; + // + int64 sketch_i_d = 8; + // + MdlDynCommonType style = 9; + // + repeated VideoBadge badge = 10; + // + AdditionalButton button = 11; +} + +// +enum MdlDynCommonType { + // + mdl_dyn_common_none = 0; + // + mdl_dyn_common_square = 1; + // + mdl_dyn_common_vertica = 2; +} + +// +message MdlDynCourBatch { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string text1 = 4; + // + string text2 = 5; + // + VideoBadge badge = 6; + // + string play_icon = 7; + // + bool can_play = 8; + // + bool is_preview = 9; + // + string cover_left_text1 = 10; + // + string cover_left_text2 = 11; + // + string cover_left_text3 = 12; + // + int64 avid = 13; + // + int64 cid = 14; + // + int64 epid = 15; + // + int64 duration = 16; + // + int64 season_id = 17; +} + +// +message MdlDynCourSeason { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string text1 = 4; + // + string desc = 5; + // + VideoBadge badge = 6; + // + string play_icon = 7; + // + bool can_play = 8; + // + bool is_preview = 9; + // + int64 avid = 10; + // + int64 cid = 11; + // + int64 epid = 12; + // + int64 duration = 13; + // + int64 season_id = 14; +} + +// +message MdlDynCourUp { + // + string title = 1; + // + string desc = 2; + // + string cover = 3; + // + string uri = 4; + // + string text1 = 5; + // + VideoBadge badge = 6; + // + string play_icon = 7; + // + bool can_play = 8; + // + bool is_preview = 9; + // + int64 avid = 10; + // + int64 cid = 11; + // + int64 epid = 12; + // + int64 duration = 13; + // + int64 season_id = 14; +} + +// +message MdlDynDraw { + // + repeated MdlDynDrawItem items = 1; + // + string uri = 2; + // + int64 id = 3; + // + bool is_draw_first = 4; + // + bool is_big_cover = 5; + // + bool is_article_cover = 6; + // + bool unfold_all = 7; +} + +// +message MdlDynDrawItem { + // + string src = 1; + // + int64 width = 2; + // + int64 height = 3; + // + float size = 4; + // + repeated MdlDynDrawTag tags = 5; + // + string src_dark = 6; + // + bool is_live_photo = 7; + // + string live_video_url = 8; + // + double live_video_size = 9; +} + +// +message MdlDynDrawTag { + // + MdlDynDrawTagType type = 1; + // + MdlDynDrawTagItem item = 2; +} + +// +message MdlDynDrawTagItem { + // + string url = 1; + // + string text = 2; + // + int64 x = 3; + // + int64 y = 4; + // + int32 orientation = 5; + // + int32 source = 6; + // + int64 item_id = 7; + // + int64 mid = 8; + // + int64 tid = 9; + // + string poi = 10; + // + string schema_url = 11; +} + +// +enum MdlDynDrawTagType { + // + mdl_draw_tag_none = 0; + // + mdl_draw_tag_common = 1; + // + mdl_draw_tag_goods = 2; + // + mdl_draw_tag_user = 3; + // + mdl_draw_tag_topic = 4; + // + mdl_draw_tag_lbs = 5; +} + +// +message MdlDynForward { + // + DynamicItem item = 1; + // + int32 rtype = 2; +} + +// +message MdlDynLive { + // + int64 id = 1; + // + string uri = 2; + // + string title = 3; + // + string cover = 4; + // + string cover_label = 5; + // + string cover_label2 = 6; + // + LiveState live_state = 7; + // + VideoBadge badge = 8; + // + ReserveType reserve_type = 9; +} + +// +message MdlDynLiveRcmd { + // + string content = 1; + // + ReserveType reserve_type = 2; + // + LivePendant pendant = 3; +} + +// +message MdlDynMedialist { + // + int64 id = 1; + // + string uri = 2; + // + string title = 3; + // + string sub_title = 4; + // + string cover = 5; + // + int32 cover_type = 6; + // + VideoBadge badge = 7; + // + string cover_bottom_right_icon = 8; +} + +// +message MdlDynMusic { + // + int64 id = 1; + // + string uri = 2; + // + int64 up_id = 3; + // + string title = 4; + // + string cover = 5; + // + string label1 = 6; + // + string upper = 7; +} + +// +message MdlDynPGC { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string cover_left_text1 = 4; + // + string cover_left_text2 = 5; + // + string cover_left_text3 = 6; + // + int64 cid = 7; + // + int64 season_id = 8; + // + int64 epid = 9; + // + int64 aid = 10; + // + MediaType media_type = 11; + // + VideoSubType sub_type = 12; + // + bool is_preview = 13; + // + Dimension dimension = 14; + // + repeated VideoBadge badge = 15; + // + bool can_play = 16; + // + PGCSeason season = 17; + // + string play_icon = 18; + // + int64 duration = 19; + // + string jump_url = 20; + // + repeated VideoBadge badge_category = 21; + // + bool is_feature = 22; +} + +// +message MdlDynShareChargingQA { + // + ImageSet background_img = 1; + // + ImageSet left_icon_img = 2; + // + string title = 3; + // + IconButton jump_button = 4; + // + string uri = 5; + // + CommonShareCardInfo share_card_meta_info = 6; + // + string title_prefix_bold = 7; +} + +// +message MdlDynSubscription { + // + int64 id = 1; + // + int64 ad_id = 2; + // + string uri = 3; + // + string title = 4; + // + string cover = 5; + // + string ad_title = 6; + // + VideoBadge badge = 7; + // + string tips = 8; +} + +// +message MdlDynSubscriptionNew { + // + oneof item { + // + MdlDynSubscription dyn_subscription = 2; + // + MdlDynLiveRcmd dyn_live_rcmd = 3; + } + // + MdlDynSubscriptionNewStyle style = 1; +} + +// +enum MdlDynSubscriptionNewStyle { + // + mdl_dyn_subscription_new_style_nont = 0; + // + mdl_dyn_subscription_new_style_live = 1; + // + mdl_dyn_subscription_new_style_draw = 2; +} + +// +message MdlDynTopicSet { + // + repeated TopicItem topics = 1; + // + IconButton more_btn = 2; + // + int64 topic_set_id = 3; + // + int64 push_id = 4; +} + +// +message MdlDynUGCSeason { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string cover_left_text1 = 4; + // + string cover_left_text2 = 5; + // + string cover_left_text3 = 6; + // + int64 id = 7; + // + string inline_u_r_l = 8; + // + bool can_play = 9; + // + string play_icon = 10; + // + int64 avid = 11; + // + int64 cid = 12; + // + Dimension dimension = 13; + // + int64 duration = 14; + // + string jump_url = 15; + // + repeated VideoBadge badge = 16; +} + +// +enum MediaType { + // + MediaTypeNone = 0; + // + MediaTypeUGC = 1; + // + MediaTypePGC = 2; + // + MediaTypeLive = 3; + // + MediaTypeVCS = 4; +} + +// +message MixUpListItem { + // + int64 uid = 1; + // + int32 special_attention = 2; + // + int32 reddot_state = 3; + // + MixUpListLiveItem live_info = 4; + // + string name = 5; + // + string face = 6; + // + OfficialVerify official = 7; + // + VipInfo vip = 8; + // + Relation relation = 9; + // + int32 premiere_state = 10; + // + string uri = 11; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar = 12; + // + bilibili.account.service.v1.NameRender name_render = 13; +} + +// +message MixUpListLiveItem { + // + bool status = 1; + // + int64 room_id = 2; + // + string uri = 3; +} + +// +message Module { + // + oneof module_item { + // + ModuleAuthor module_author = 2; + // + ModuleDispute module_dispute = 3; + // + ModuleDesc module_desc = 4; + // + ModuleDynamic module_dynamic = 5; + // + ModuleLikeUser module_like_user = 6; + // + ModuleExtend module_extend = 7; + // + ModuleAdditional module_additional = 8; + // + ModuleStat module_stat = 9; + // + ModuleFold module_fold = 10; + // + ModuleComment module_comment = 11; + // + ModuleInteraction module_interaction = 12; + // + ModuleAuthorForward module_author_forward = 13; + // + ModuleAd module_ad = 14; + // + ModuleBanner module_banner = 15; + // + ModuleItemNull module_item_null = 16; + // + ModuleShareInfo module_share_info = 17; + // + ModuleRecommend module_recommend = 18; + // + ModuleTop module_top = 19; + // + ModuleButtom module_buttom = 20; + // + ModuleStat module_stat_forward = 21; + // + ModuleStory module_story = 22; + // + ModuleTopic module_topic = 23; + // + ModuleTopicDetailsExt module_topic_details_ext = 24; + // + ModuleTopTag module_top_tag = 25; + // + ModuleTopicBrief module_topic_brief = 26; + // + ModuleTitle module_title = 27; + // + ModuleButton module_button = 28; + // + ModuleNotice module_notice = 29; + // + ModuleOpusSummary module_opus_summary = 30; + // + ModuleCopyright module_copyright = 31; + // + ModuleParagraph module_paragraph = 32; + // + ModuleBlocked module_blocked = 33; + // + ModuleTextNotice module_text_notice = 34; + // + ModuleOpusCollection module_opus_collection = 35; + // + ModuleOnetimeNotice module_onetime_notice = 36; + // + ModuleSneakingAd module_sneaking_ad = 37; + // + ModuleMangaHorizontalPagePicContent module_manga_horizontal_page_pic_content = 38; + // + ModuleMangaVerticalSlidePicContent module_manga_vertical_slide_pic_content = 39; + // + ModuleMangaCoverPicContent module_manga_cover_pic_content = 40; + // + ModuleAuthorForSubscribe module_author_for_subscribe = 41; + // + ModuleAuthorSlim module_author_slim = 42; + // + ModuleMangaCollection module_manga_collection = 43; + // + ModuleCooperation module_cooperation = 44; + } + // + DynModuleType module_type = 1; +} + +// +message ModuleAd { + // + google.protobuf.Any source_content = 1; + // + ModuleAuthor module_author = 2; + // + int32 ad_content_type = 3; + // + string cover_left_text1 = 4; + // + string cover_left_text2 = 5; + // + string cover_left_text3 = 6; +} + +// +message ModuleAdditional { + // + oneof item { + // + AdditionalPGC pgc = 2; + // + AdditionGoods goods = 3; + // + AdditionVote vote = 4; + // + AdditionCommon common = 5; + // + AdditionEsport esport = 6; + // + AdditionVote2 vote2 = 8; + // + AdditionUgc ugc = 9; + // + AdditionUP up = 10; + // + AdditionArticle article = 12; + // + AdditionLiveRoom live = 13; + // + AdditionMusic music = 14; + } + // + AdditionalType type = 1; + // + int64 rid = 7; + // + bool need_write_calender = 11; +} + +// +message ModuleAuthor { + // + int64 mid = 1; + // + string ptime_label_text = 2; + // + UserInfo author = 3; + // + DecorateCard decorate_card = 4; + // + string uri = 5; + // + repeated ThreePointItem tp_list = 6; + // + ModuleAuthorBadgeType badge_type = 7; + // + ModuleAuthorBadgeButton badge_button = 8; + // + int32 attend = 9; + // + Relation relation = 10; + // + Weight weight = 11; + // + bool show_follow = 12; + // + bool is_top = 13; + // + string ptime_location_text = 14; + // + bool show_level = 15; + // + OnlyFans only_fans = 16; + // + AuthorBadge author_badge = 17; +} + +// +message ModuleAuthorBadgeButton { + // + string icon = 1; + // + string title = 2; + // + int32 state = 3; + // + int64 id = 4; +} + +// +enum ModuleAuthorBadgeType { + // + module_author_badge_type_none = 0; + // + module_author_badge_type_threePoint = 1; + // + module_author_badge_type_button = 2; + // + module_author_badge_type_weight = 3; +} + +// +message ModuleAuthorForSubscribe { + // + string cover = 1; + // + string title = 2; + // + string sub_title = 3; + // + SubscribeButton subscribe_btn = 4; +} + +// +message ModuleAuthorForward { + // + repeated ModuleAuthorForwardTitle title = 1; + // + string url = 2; + // + int64 uid = 3; + // + string ptime_label_text = 4; + // + bool show_follow = 5; + // + string face_url = 6; + // + Relation relation = 7; + // + repeated ThreePointItem tp_list = 8; +} + +// +message ModuleAuthorForwardTitle { + // + string text = 1; + // + string url = 2; +} + +// +message ModuleAuthorSlim { + // + BasicUserInfoV2 user_info = 1; + // + string ptime_label_text = 2; +} + +// +message ModuleBanner { + // + oneof item { + // + ModuleBannerUser user = 3; + } + // + string title = 1; + // + ModuleBannerType type = 2; + // + string dislike_text = 4; + // + string dislike_icon = 5; +} + +// +enum ModuleBannerType { + // + module_banner_type_none = 0; + // + module_banner_type_user = 1; +} + +// +message ModuleBannerUser { + // + repeated ModuleBannerUserItem list = 1; +} + +// +message ModuleBannerUserItem { + // + string face = 1; + // + string name = 2; + // + int64 uid = 3; + // + LiveState live_state = 4; + // + OfficialVerify official = 5; + // + VipInfo vip = 6; + // + string label = 7; + // + AdditionalButton button = 8; + // + string uri = 9; + // + Relation relation = 10; +} + +// +message ModuleBlocked { + // + ImageSet icon = 1; + // + ImageSet bg_img = 2; + // + string hint_message = 3; + // + IconButton act_btn = 4; + // + MdlBlockedStyle block_style = 5; + // + string sub_hint_message = 6; + // + OneLineText video_bottom_text_upper = 7; + // + OneLineText video_bottom_text_lower = 8; + // + string archive_title = 9; + // + OneLineText hint_message_one_line = 10; +} + +// +message ModuleButtom { + // + enum InteractionIcon { + // + ICON_INVALID = 0; + // + ICON_FORWARD = 1; + // + ICON_COMMENT = 2; + // + ICON_FAVORITE = 3; + // + ICON_LIKE = 4; + } + + // + ModuleStat module_stat = 1; + // + bool comment_box = 2; + // + string comment_box_msg = 3; + // + repeated int32 interaction_icons = 4; + // + repeated InteractionFace faces = 5; +} + +// +message ModuleButton { + // + IconButton btn = 1; +} + +// +message ModuleComment { + // + repeated CmtShowItem cmt_show_item = 1; +} + +// +message ModuleCooperation { + // + string oid = 1; + // + repeated CooperationUpInfo up_list = 2; + // + IconButton more_btn = 3; + // + repeated ThreePointItem tp_list = 4; + // + string float_title = 5; +} + +// +message ModuleCopyright { + // + string left_text = 1; + // + string right_text = 2; +} + +// +message ModuleDesc { + // + repeated Description desc = 1; + // + string jump_uri = 2; + // + string text = 3; +} + +// +message ModuleDescGoods { + // + int32 source_type = 1; + // + string jump_url = 2; + // + string schema_url = 3; + // + int64 item_id = 4; + // + repeated string open_white_list = 5; + // + bool user_web_v2 = 6; + // + string ad_mark = 7; + // + string schema_package_name = 8; + // + GoodsJumpType jump_type = 9; + // + string app_name = 10; +} + +// +message ModuleDispute { + // + string title = 1; + // + string desc = 2; + // + string uri = 3; +} + +// +message ModuleDynamic { + // + oneof module_item { + // + MdlDynArchive dyn_archive = 2; + // + MdlDynPGC dyn_pgc = 3; + // + MdlDynCourSeason dyn_cour_season = 4; + // + MdlDynCourBatch dyn_cour_batch = 5; + // + MdlDynForward dyn_forward = 6; + // + MdlDynDraw dyn_draw = 7; + // + MdlDynArticle dyn_article = 8; + // + MdlDynMusic dyn_music = 9; + // + MdlDynCommon dyn_common = 10; + // + MdlDynLive dyn_common_live = 11; + // + MdlDynMedialist dyn_medialist = 12; + // + MdlDynApplet dyn_applet = 13; + // + MdlDynSubscription dyn_subscription = 14; + // + MdlDynLiveRcmd dyn_live_rcmd = 15; + // + MdlDynUGCSeason dyn_ugc_season = 16; + // + MdlDynSubscriptionNew dyn_subscription_new = 17; + // + MdlDynCourUp dyn_cour_batch_up = 18; + // + MdlDynTopicSet dyn_topic_set = 19; + // + MdlDynChargingArchive dyn_charging_archive = 20; + // + MdlDynShareChargingQA dyn_share_charging_qa = 21; + } + // + ModuleDynamicType type = 1; +} + +// +enum ModuleDynamicType { + // + mdl_dyn_archive = 0; + // + mdl_dyn_pgc = 1; + // + mdl_dyn_cour_season = 2; + // + mdl_dyn_cour_batch = 3; + // + mdl_dyn_forward = 4; + // + mdl_dyn_draw = 5; + // + mdl_dyn_article = 6; + // + mdl_dyn_music = 7; + // + mdl_dyn_common = 8; + // + mdl_dyn_live = 9; + // + mdl_dyn_medialist = 10; + // + mdl_dyn_applet = 11; + // + mdl_dyn_subscription = 12; + // + mdl_dyn_live_rcmd = 13; + // + mdl_dyn_ugc_season = 14; + // + mdl_dyn_subscription_new = 15; + // + mdl_dyn_cour_up = 16; + // + mdl_dyn_topic_set = 17; + // + mdl_dyn_charging_archive = 18; + // + mdl_dyn_share_charging_qa = 19; +} + +// +message ModuleExtend { + // + repeated ModuleExtendItem extend = 1; + // + string uri = 2; +} + +// +message ModuleExtendItem { + // + oneof extend { + // + ExtInfoTopic ext_info_topic = 2; + // + ExtInfoLBS ext_info_lbs = 3; + // + ExtInfoHot ext_info_hot = 4; + // + ExtInfoGame ext_info_game = 5; + // + ExtInfoCommon ext_info_common = 6; + // + ExtInfoOGV ext_info_ogv = 7; + } + // + DynExtendType type = 1; +} + +// +message ModuleFold { + // + FoldType fold_type = 1; + // + string text = 2; + // + string fold_ids = 3; + // + repeated UserInfo fold_users = 4; + // + TopicMergedResource topic_merged_resource = 5; +} + +// +message ModuleInteraction { + // + repeated InteractionItem interaction_item = 1; +} + +// +message ModuleItemNull { + // + string icon = 1; + // + string text = 2; +} + +// +message ModuleLikeUser { + // + repeated LikeUser like_users = 1; + // + string display_text = 2; +} + +// +message ModuleMangaCollection { + // + string title_icon = 1; + // + string title = 2; + // + string sub_text_left = 3; + // + string sub_text_right = 4; + // + SubscribeButton subscribe_btn = 5; + // + OpusCollection manga_collection_info = 6; + // + string float_btn_prev_link = 7; + // + string float_btn_next_link = 8; +} + +// +message ModuleMangaCoverPicContent { + // + MangaLikePic manga_pic = 1; + // + MangaLikePicClickAction pic_click_action = 2; +} + +// +message ModuleMangaHorizontalPagePicContent { + // + MangaLikePageDirection page_direction = 1; + // + repeated MangaLikePic manga_pics = 2; + // + MangaLikePicClickAction pic_click_action = 3; + // + MangaLikeBrowserGuidance browser_guidance = 4; +} + +// +message ModuleMangaVerticalSlidePicContent { + // + MangaLikePic manga_pic = 1; + // + MangaLikePicClickAction pic_click_action = 2; +} + +// +message ModuleNotice { + // + string identity = 1; + // + string icon = 2; + // + string title = 3; + // + string url = 4; + // + int32 notice_type = 5; +} + +// +message ModuleOnetimeNotice { + // + string uuid = 1; + // + TextParagraph text_notice = 2; + // + string jump_uri = 3; +} + +// +message ModuleOpusCollection { + // + OpusCollection collection_info = 1; + // + string title_upper = 2; + // + string title = 3; + // + string title_prefix_icon = 4; + // + string total_text = 5; +} + +// +message ModuleOpusSummary { + // + Paragraph title = 1; + // + Paragraph summary = 2; + // + string summary_jump_btn_text = 3; + // + repeated MdlDynDrawItem covers = 4; +} + +// +message ModuleParagraph { + // + Paragraph paragraph = 1; + // + bool is_article_title = 2; + // + ParaSpacing para_spacing = 3; +} + +// +message ModuleRcmd { + // + RcmdAuthor author = 1; + // + repeated RcmdItem items = 2; + // + string server_info = 3; +} + +// +message ModuleRecommend { + // + string module_title = 1; + // + string image = 2; + // + string tag = 3; + // + string title = 4; + // + string jump_url = 5; + // + repeated google.protobuf.Any ad = 6; +} + +// +message ModuleShareInfo { + // + string title = 1; + // + repeated ShareChannel share_channels = 2; + // + string share_origin = 3; + // + string oid = 4; + // + string sid = 5; +} + +// +message ModuleSneakingAd { + // + string client_action_type = 1; +} + +// +message ModuleStat { + // + int64 repost = 1; + // + int64 like = 2; + // + int64 reply = 3; + // + LikeInfo like_info = 4; + // + bool no_comment = 5; + // + bool no_forward = 6; + // + string reply_url = 7; + // + string no_comment_text = 8; + // + string no_forward_text = 9; + // + int64 favorite = 10; + // + bool is_favorite = 11; + // + bool no_like = 12; + // + string no_like_text = 13; +} + +// +message ModuleStory { + // + string title = 1; + // + repeated StoryItem items = 2; + // + bool show_publish_entrance = 3; + // + int64 fold_state = 4; + // + string uri = 5; + // + string cover = 6; + // + string publish_text = 7; +} + +// +message ModuleTextNotice { + // + OneLineText notice = 1; +} + +// +message ModuleTitle { + // + string title = 1; + // + IconButton right_btn = 2; + // + int32 title_style = 3; +} + +// +message ModuleTop { + // + repeated ThreePointItem tp_list = 1; + // + MdlDynArchive archive = 2; + // + ModuleAuthor author = 3; + // + bool hidden_nav_bar = 4; + // + ModuleAuthorForSubscribe subscribe_author = 5; +} + +// +message ModuleTopTag { + // + string tag_name = 1; +} + +// +message ModuleTopic { + // + int64 id = 1; + // + string name = 2; + // + string url = 3; +} + +// +message ModuleTopicBrief { + // + TopicItem topic = 1; +} + +// +message ModuleTopicDetailsExt { + // + string comment_guide = 1; +} + +// +message NFTInfo { + // + NFTRegionType region_type = 1; + // + string region_icon = 2; + // + NFTShowStatus region_show_status = 3; +} + +// +enum NFTRegionType { + // + nft_region_default = 0; + // + nft_region_mainlang = 1; + // + nft_region_gat = 2; +} + +// +enum NFTShowStatus { + // + nft_show_default = 0; + // + nft_show_zoominmainlang = 1; + // + nft_show_raw = 2; +} + +// +message Nameplate { + // + int64 nid = 1; + // + string name = 2; + // + string image = 3; + // + string image_small = 4; + // + string level = 5; + // + string condition = 6; +} + +// +enum NetworkType { + // + NT_UNKNOWN = 0; + // + WIFI = 1; + // + CELLULAR = 2; + // + OFFLINE = 3; + // + OTHERNET = 4; + // + ETHERNET = 5; +} + +// +message NewEP { + // + int32 id = 1; + // + string index_show = 2; + // + string cover = 3; +} + +// +message NoReply { +} + +// +message NoReq { +} + +// +message NoteVideoTS { + // + int64 cid = 1; + // + int64 oid_type = 2; + // + int64 status = 3; + // + int64 index = 4; + // + int64 seconds = 5; + // + int64 cid_count = 6; + // + string key = 7; + // + string title = 8; + // + int64 epid = 9; + // + string desc = 10; +} + +// +message OfficialAccountInfo { + // + UserInfo author = 1; + // + int64 mid = 2; + // + string uri = 3; + // + Relation relation = 4; + // + string desc_text1 = 5; + // + string desc_text2 = 6; +} + +// +message OfficialAccountsReply { + // + repeated OfficialAccountInfo items = 1; + // + bool has_more = 2; + // + int64 offset = 3; +} + +// +message OfficialAccountsReq { + // + int64 campus_id = 1; + // + string campus_name = 2; + // + int64 offset = 3; + // + CampusReqFromType from_type = 4; +} + +// +message OfficialDynamicsReply { + // + repeated OfficialItem items = 1; + // + int64 offset = 2; + // + bool has_more = 3; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; +} + +// +message OfficialDynamicsReq { + // + int64 campus_id = 1; + // + string campus_name = 2; + // + int64 offset = 3; + // + CampusReqFromType from_type = 4; +} + +// +message OfficialItem { + // + oneof rcmd_item { + // + OfficialRcmdArchive rcmd_archive = 2; + // + OfficialRcmdDynamic rcmd_dynamic = 3; + } + // + RcmdType type = 1; +} + +// +message OfficialRcmdArchive { + // + string title = 1; + // + string cover = 2; + // + string cover_right_text = 3; + // + CoverIcon desc_icon1 = 4; + // + string desc_text1 = 5; + // + CoverIcon desc_icon2 = 6; + // + string desc_text2 = 7; + // + string reason = 8; + // + bool show_three_point = 9; + // + string uri = 10; + // + int64 aid = 11; + // + int64 mid = 12; + // + string name = 13; + // + int64 dynamic_id = 14; + // + int64 cid = 15; +} + +// +message OfficialRcmdDynamic { + // + string title = 1; + // + string cover = 2; + // + string cover_right_top_text = 3; + // + CoverIcon desc_icon1 = 4; + // + string desc_text1 = 5; + // + CoverIcon desc_icon2 = 6; + // + string desc_text2 = 7; + // + string reason = 8; + // + string uri = 9; + // + int64 dynamic_id = 10; + // + int64 mid = 11; + // + string user_name = 12; + // + int64 rid = 13; +} + +// +message OfficialVerify { + // + int32 type = 1; + // + string desc = 2; + // + int32 is_atten = 3; +} + +// +message OneLineText { + // + repeated TextWithPriority texts = 1; +} + +// +message OnlyFans { + // + bool is_only_fans = 1; + // + IconBadge badge = 2; +} + +// +message OnlyFansProperty { + // + bool has_privilege = 1; + // + bool is_only_fans = 2; + // + bool allow_download = 3; + // + string embed_cashier_link = 4; +} + +// +message OnlyFansVoteProperty { + // + bool is_only_fans_vote = 1; + // + bool has_vote_permission = 2; + // + string vote_btn_text = 3; + // + string vote_btn_uri = 4; + // + string vote_annotation_part1 = 5; + // + string vote_annotation_part2 = 6; +} + +// +message OpusCollection { + // + int64 collection_id = 1; + // + OneLineText title = 2; + // + string detail_uri = 3; + // + string intro = 4; + // + repeated OpusCollectionItem all_items = 5; +} + +// +message OpusCollectionDetailReq { + // + string collection_type = 1; + // + string collection_id = 2; + // + string selected_opus_id = 3; + // + string selected_oid_type = 4; + // + string selected_oid = 5; + // + int32 local_time = 6; +} + +// +message OpusCollectionDetailResp { + // + string collection_type = 1; + // + string collection_id = 2; + // + string collection_cover = 3; + // + string collection_title = 4; + // + string sub_title_part1 = 5; + // + string sub_title_part2 = 6; + // + string collection_intro = 7; + // + repeated OpusCollectionItem item_list = 8; + // + int64 total_cnt = 9; + // + BasicUserInfoV2 author_info = 10; + // + ButtonWithSubTitle bottom_button = 11; + // + SubscribeButton subscribe_btn = 12; +} + +// +message OpusCollectionItem { + // + int64 opus_id = 1; + // + string title = 2; + // + string pub_time = 3; + // + string uri = 4; + // + bool is_selected_highlight = 5; + // + string prefix_icon = 6; + // + string collection_item_type = 7; + // + string collection_item_oid = 8; +} + +// +message OpusCollectionWithCover { + // + OpusCollection collection_info = 1; + // + string cover_pic = 2; + // + CoverIconWithText cover_bottom_text = 3; + // + string sub_title_text = 4; +} + +// +message OpusCreationItem { + // + OpusType opus_type = 1; + // + MdlDynDrawItem cover_pic = 2; + // + VideoBadge cover_top_right_badge = 3; + // + Paragraph text_paragraph = 4; + // + ColoredText hint_text = 5; + // + string bottom_text = 6; + // + repeated CoverIconWithText stats = 7; + // + repeated CreationItemAction tp_list = 8; + // + Extend extend = 9; + // + CoverIconWithText visibility_status = 10; +} + +// +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; + // + AdParam ad_param = 13; + // + string from = 14; + // + string pattern = 15; +} + +// +message OpusDetailResp { + // + OpusItem opus_item = 1; +} + +// +message OpusFavItem { + // + int64 opus_id = 1; + // + string card_uri = 2; + // + MdlDynDrawItem cover_pic = 3; + // + Paragraph text_paragraph = 4; + // + CoverIconWithText bottom_text = 5; + // + string click_toast = 6; +} + +// +message OpusFlowItem { + // + oneof data { + // + FlowItemOpus flow_item_opus = 4; + } + // + FlowItemType item_type = 1; + // + int64 oid = 2; + // + Extend extend = 3; +} + +// +message OpusItem { + // + int64 opus_id = 1; + // + OpusType opus_type = 2; + // + int64 oid = 3; + // + repeated Module modules = 4; + // + Extend extend = 5; +} + +// +message OpusSpaceFlowReq { + // + int64 host_mid = 1; + // + int32 local_time = 2; + // + bilibili.pagination.Pagination pagination = 3; + // + string filter_type = 4; +} + +// +message OpusSpaceFlowResp { + // + repeated OpusFlowItem item_list = 1; + // + bilibili.pagination.PaginationReply next_page = 2; + // + SectionOpusCollection host_up_opus_collection = 3; + // + SectionNoteNavigationBar host_up_note_nav_bar = 4; +} + +// +enum OpusType { + // + OPUS_TYPE_DYN = 0; + // + OPUS_TYPE_ARTICLE = 1; + // + OPUS_TYPE_NOTE = 2; + // + OPUS_TYPE_WORD = 3; + // + OPUS_TYPE_REPOST = 4; + // + OPUS_TYPE_MANGA_EP = 5; +} + +// +message PGCSeason { + // + int32 is_finish = 1; + // + string title = 2; + // + int32 type = 3; +} + +// +message ParaSpacing { + // + double spacing_before_para = 1; + // + double spacing_after_para = 2; + // + double line_spacing = 3; +} + +// +message Paragraph { + // + message ListFormat { + // + int32 level = 1; + // + int32 order = 2; + // + string theme = 3; + } + + // + enum ParagraphAlign { + // + LEFT = 0; + // + MIDDLE = 1; + // + RIGHT = 2; + } + + // + message ParagraphFormat { + // + Paragraph.ParagraphAlign align = 1; + // + Paragraph.ListFormat list_format = 2; + } + + // + enum ParagraphType { + // + INVALID_ParagraphType = 0; + // + TEXT = 1; + // + PICTURES = 2; + // + LINE = 3; + // + REFERENCE = 4; + // + SORTED_LIST = 5; + // + UNSORTED_LIST = 6; + // + LINK_CARD = 7; + // + CODE = 8; + } + + // + oneof content { + // + TextParagraph text = 3; + // + PicParagraph pic = 4; + // + LineParagraph line = 5; + // + CardParagraph link_card = 6; + // + CodeParagraph code = 7; + } + // + Paragraph.ParagraphType para_type = 1; + // + ParagraphFormat para_format = 2; +} + +// +message PicParagraph { + // + enum PicParagraphStyle { + // + INVALID_PicParagraphStyle = 0; + // + NINE_CELL = 1; + // + BIG_SCROLL = 2; + } + + // + MdlDynDraw pics = 1; + // + PicParagraph.PicParagraphStyle style = 2; +} + +// +message PlayurlParam { + // + int32 qn = 1; + // + int32 fnver = 2; + // + int32 fnval = 3; + // + int32 force_host = 4; + // + int32 fourk = 5; +} + +// +message Popup { + // + string title = 1; + // + string desc = 2; + // + string uri = 3; +} + +// +message ProtectedStaticResource { + // + string res_url = 1; + // + bool is_already_signed = 2; + // + string sign_param = 3; +} + +// +message QuickConsumeMoreAvatarListReply { + // + string offset = 1; + // + bool has_more = 2; + // + repeated UpListItem up_list = 3; +} + +// +message QuickConsumeMoreAvatarListReq { + // + string offset = 1; +} + +// +message RcmdArchive { + // + string title = 1; + // + string cover = 2; + // + CoverIcon cover_left_icon1 = 3; + // + string cover_left_text1 = 4; + // + string uri = 5; + // + bool is_pgc = 6; + // + int64 aid = 7; + // + IconBadge badge = 8; + // + CoverIcon cover_left_icon2 = 9; + // + string cover_left_text2 = 10; + // + CoverIcon cover_left_icon3 = 11; + // + string cover_left_text3 = 12; + // + string desc = 13; + // + string track_id = 14; + // + RcmdReason rcmd_reason = 15; +} + +// +message RcmdAuthor { + // + UserInfo author = 1; + // + string desc = 2; + // + Relation relation = 3; +} + +// +message RcmdCampusBrief { + // + int64 campus_id = 1; + // + string campus_name = 2; + // + string campus_badge = 4; + // + string url = 5; +} + +// +message RcmdItem { + // + oneof rcmd_item { + // + RcmdArchive rcmd_archive = 2; + } + // + RcmdType type = 1; +} + +// +message RcmdOption { + // + bool show_title = 1; +} + +// +message RcmdReason { + // + string campus_name = 1; + // + RcmdReasonStyle style = 2; + // + string rcmd_reason = 3; + // + string up_name = 4; +} + +// +enum RcmdReasonStyle { + // + rcmd_reason_style_none = 0; + // + rcmd_reason_style_campus_nearby = 1; + // + rcmd_reason_style_campus_up = 2; + // + rcmd_reason_style_campus_near_up_mix = 3; +} + +// +message RcmdTopButton { + // + string text = 1; + // + string url = 2; +} + +// +enum RcmdType { + // + rcmd_archive = 0; + // + rcmd_dynamic = 1; +} + +// +message RcmdUPsParam { + // + int64 dislike_ts = 1; +} + +// +message ReactionListItem { + // + UserInfo user = 1; + // + Relation relation = 2; + // + string act_text = 3; + // + string rcmd_reason = 4; +} + +// +message ReactionListReply { + // + string title = 1; + // + repeated ReactionListItem reaction_list = 2; + // + string offset = 3; + // + bool has_more = 4; +} + +// +message ReactionListReq { + // + int64 dynamic_id = 1; + // + int64 dyn_type = 2; + // + int64 rid = 3; + // + string offset = 4; +} + +// +enum Refresh { + // + refresh_new = 0; + // + refresh_history = 1; +} + +// +message Relation { + // + RelationStatus status = 1; + // + int32 is_follow = 2; + // + int32 is_followed = 3; + // + string title = 4; +} + +// +enum RelationStatus { + // + relation_status_none = 0; + // + relation_status_nofollow = 1; + // + relation_status_follow = 2; + // + relation_status_followed = 3; + // + relation_status_mutual_concern = 4; + // + relation_status_special = 5; +} + +// +message RepostExtraInfo { + // + string adcm_id = 1; +} + +// +message RepostListReq { + // + string dynamic_id = 1; + // + int64 dyn_type = 2; + // + int64 rid = 3; + // + string offset = 4; + // + string from = 5; + // + RepostType repost_type = 6; +} + +// +message RepostListRsp { + // + repeated DynamicItem list = 1; + // + string offset = 2; + // + bool has_more = 3; + // + int64 total_count = 4; + // + RepostType repost_type = 5; +} + +// +enum RepostType { + // + repost_hot = 0; + // + repost_general = 1; +} + +// +enum ReserveRelationLotteryType { + // + reserve_relation_lottery_type_default = 0; + // + reserve_relation_lottery_type_cron = 1; +} + +// +enum ReserveType { + // + reserve_none = 0; + // + reserve_recall = 1; +} + +// +enum RouterAction { + // + OPEN = 0; + // + EMBED = 1; +} + +// +message SchoolRecommendReply { + // + repeated CampusInfo items = 1; +} + +// +message SchoolRecommendReq { + // + float lat = 1; + // + float lng = 2; + // + CampusReqFromType from_type = 3; +} + +// +message SchoolSearchReply { + // + repeated CampusInfo items = 1; + // + SearchToast toast = 2; +} + +// +message SchoolSearchReq { + // + string keyword = 1; + // + CampusReqFromType from_type = 2; +} + +// +message SearchChannel { + // + string title = 1; + // + SearchTopicButton more_button = 2; + // + repeated ChannelInfo channels = 3; +} + +// +message SearchInfo { + // + string title = 1; + // + repeated DynamicItem list = 2; + // + string track_id = 3; + // + int64 total = 4; + // + bool has_more = 5; + // + string version = 6; +} + +// +message SearchToast { + // + string desc_text1 = 1; + // + string desc_text2 = 2; +} + +// +message SearchTopic { + // + string title = 1; + // + SearchTopicButton more_button = 2; + // + repeated SearchTopicItem items = 3; +} + +// +message SearchTopicButton { + // + string title = 1; + // + string jump_uri = 2; +} + +// +message SearchTopicItem { + // + int64 topic_id = 1; + // + string topic_name = 2; + // + string desc = 3; + // + string url = 4; + // + bool is_activity = 5; + // + string tag_icon = 6; + // + string desc_long = 7; + // + string cover = 8; + // + string tag_text = 9; +} + +// +message SectionNoteNavigationBar { + // + string title = 1; + // + string right_icon = 2; + // + string jump_url = 3; +} + +// +message SectionOpusCollection { + // + string title = 1; + // + repeated OpusCollectionWithCover all_collections = 2; +} + +// +message SelectedClassificationAndSortType { + // + string chosen_classification_type = 1; + // + string chosen_sort_type = 2; +} + +// +message SetDecisionReq { + // + int32 result = 1; + // + CampusReqFromType from_type = 2; +} + +// +message SetRecentCampusReq { + // + int64 campus_id = 1; + // + string campus_name = 2; + // + CampusReqFromType from_type = 3; +} + +// +message ShareChannel { + // + string name = 1; + // + string image = 2; + // + string channel = 3; + // + ShareReserve reserve = 4; +} + +// +message ShareReserve { + // + string title = 1; + // + string desc = 2; + // + string qr_code_icon = 3; + // + string qr_code_text = 4; + // + string qr_code_url = 5; + // + AdditionUserInfo user_info = 6; +} + +// +enum ShowType { + // + show_type_none = 0; + // + show_type_backup = 1; +} + +// +message SignResourcesReq { + // + repeated ProtectedStaticResource to_be_signed_res = 1; +} + +// +message SignResourcesResp { + // + repeated SignedStaticResource signed_res = 1; +} + +// +message SignedStaticResource { + // + string signed_res_url = 1; + // + bool is_succeed = 2; +} + +// +message SortType { + // + int32 sort_type = 1; + // + string sort_type_name = 2; +} + +// +message StoryArchive { + // + string cover = 1; + // + int64 aid = 2; + // + string uri = 3; + // + Dimension dimension = 4; +} + +// +message StoryItem { + // + oneof rcmd_item { + // + StoryArchive story_archive = 5; + } + // + UserInfo author = 1; + // + string desc = 2; + // + int64 status = 3; + // + RcmdType type = 4; +} + +// +enum StyleType { + // + STYLE_TYPE_NONE = 0; + // + STYLE_TYPE_LIVE = 1; + // + STYLE_TYPE_DYN_UP = 2; +} + +// +message SubscribeButton { + // + string subscription_identifier = 1; + // + bool is_subscribed = 2; + // + ButtonWithSubscribeParam subscribed_style = 3; + // + ButtonWithSubscribeParam not_subscribed_style = 4; +} + +// +message SubscribeCampusReq { + // + int64 campus_id = 1; + // + string campus_name = 2; + // + CampusReqFromType from_type = 3; +} + +// +message SubscriptionClickReq { + // + string subscribe_param = 1; +} + +// +message SubscriptionClickResp { + // + string toast = 1; +} + +// +enum TFType { + // + TF_UNKNOWN = 0; + // + U_CARD = 1; + // + U_PKG = 2; + // + C_CARD = 3; + // + C_PKG = 4; + // + T_CARD = 5; + // + T_PKG = 6; +} + +// +message TextNode { + // + enum TextNodeType { + // + INVALID_TextNodeType = 0; + // + WORDS = 1; + // + EMOTE = 2; + // + AT_TextNodeType = 3; + // + BIZ_LINK = 4; + // + FORMULA = 5; + } + + // + oneof text { + // + WordNode word = 3; + // + EmoteNode emote = 4; + // + LinkNode link = 5; + // + FormulaNode formula = 6; + } + // + TextNode.TextNodeType node_type = 1; + // + string raw_text = 2; +} + +// +message TextParagraph { + // + repeated TextNode nodes = 1; +} + +// +message TextWithPriority { + // + string text = 1; + // + int64 priority = 2; +} + +// +message ThreePointAttention { + // + string attention_icon = 1; + // + string attention_text = 2; + // + string not_attention_icon = 3; + // + string not_attention_text = 4; + // + ThreePointAttentionStatus status = 5; + // + string subscribe_oid = 6; +} + +// +enum ThreePointAttentionStatus { + // + tp_not_attention = 0; + // + tp_attention = 1; +} + +// +message ThreePointAutoPlay { + // + string open_icon = 1; + // + string open_text = 2; + // + string close_icon = 3; + // + string close_text = 4; + // + string open_text_v2 = 5; + // + string close_text_v2 = 6; + // + string only_icon = 7; + // + string only_text = 8; + // + string open_icon_v2 = 9; + // + string close_icon_v2 = 10; +} + +// +message ThreePointComment { + // + CommentDetail up_selection = 1; + // + CommentDetail up_close = 2; + // + string icon = 3; + // + string title = 4; +} + +// +message ThreePointDefault { + // + string icon = 1; + // + string title = 2; + // + string uri = 3; + // + string id = 4; + // + ThreePointDefaultToast toast = 5; +} + +// +message ThreePointDefaultToast { + // + string title = 1; + // + string desc = 2; +} + +// +message ThreePointDislike { + // + string icon = 1; + // + string title = 2; + // + string feedback_biz_value = 3; +} + +// +message ThreePointDynCoin { + // + bool had_coin = 1; + // + int64 coin_num = 2; + // + string coin_business = 3; + // + int64 oid = 4; +} + +// +message ThreePointDynEdit { + // + int64 dyn_id = 1; + // + int64 origin_id = 2; + // + bool is_origin_deleted = 3; + // + string url = 4; +} + +// +message ThreePointFavorite { + // + string icon = 1; + // + string title = 2; + // + int64 id = 3; + // + bool is_favourite = 4; + // + string cancel_icon = 5; + // + string cancel_title = 6; +} + +// +message ThreePointHide { + // + string icon = 1; + // + string title = 2; + // + ThreePointHideInteractive interactive = 3; + // + int64 blook_fid = 4; + // + string blook_type = 5; +} + +// +message ThreePointHideInteractive { + // + string title = 1; + // + string confirm = 2; + // + string cancel = 3; + // + string toast = 4; +} + +// +message ThreePointItem { + // + oneof item { + // + ThreePointDefault default = 2; + // + ThreePointAutoPlay auto_player = 3; + // + ThreePointShare share = 4; + // + ThreePointAttention attention = 5; + // + ThreePointWait wait = 6; + // + ThreePointDislike dislike = 7; + // + ThreePointFavorite favorite = 8; + // + ThreePointTop top = 9; + // + ThreePointComment comment = 10; + // + ThreePointHide hide = 11; + // + ThreePointTopicIrrelevant topic_irrelevant = 12; + // + ThreePointDynEdit dyn_edit = 13; + // + ThreePointDynCoin coin = 14; + // + ThreePointVisibilityChange visibility_change = 15; + // + ThreePointTopicTop topic_top = 16; + } + // + ThreePointType type = 1; +} + +// +message ThreePointShare { + // + string icon = 1; + // + string title = 2; + // + repeated ThreePointShareChannel channel = 3; + // + string channel_name = 4; + // + ShareReserve reserve = 5; +} + +// +message ThreePointShareChannel { + // + string icon = 1; + // + string title = 2; +} + +// +message ThreePointTop { + // + string icon = 1; + // + string title = 2; + // + TopType type = 3; +} + +// +message ThreePointTopicIrrelevant { + // + string icon = 1; + // + string title = 2; + // + string toast = 3; + // + int64 topic_id = 4; + // + int64 res_id = 5; + // + int64 res_type = 6; + // + string reason = 7; +} + +// +message ThreePointTopicTop { + // + string icon = 1; + // + string title = 2; + // + TopType type = 3; + // + int64 topic_id = 4; +} + +// +enum ThreePointType { + // + tp_none = 0; + // + background = 1; + // + auto_play = 2; + // + share = 3; + // + wait = 4; + // + attention = 5; + // + report = 6; + // + delete = 7; + // + dislike = 8; + // + favorite = 9; + // + top = 10; + // + comment = 11; + // + hide = 12; + // + campus_delete = 13; + // + topic_irrelevant = 14; + // + batch_cancel = 15; + // + topic_set_cancel = 16; + // + dynamic_edit = 17; + // + create_video = 18; + // + coin = 19; + // + ogv_subscribe = 20; + // + visibility_change = 21; + // + topic_top = 22; +} + +// +message ThreePointVisibilityChange { + // + string icon = 1; + // + string title = 2; + // + repeated ThreePointVisibilityChangeItem item_list = 3; + // + string obj_id = 4; +} + +// +message ThreePointVisibilityChangeItem { + // + string icon = 1; + // + string title = 2; + // + string sub_title = 3; + // + bool is_selected = 4; + // + string visibility_change_action_unselected = 5; +} + +// +message ThreePointWait { + // + string addition_icon = 1; + // + string addition_text = 2; + // + string no_addition_icon = 3; + // + string no_addition_text = 4; + // + int64 id = 5; +} + +// +enum ThumbType { + // + cancel = 0; + // + thumb = 1; +} + +// +message TopAdditionUP { + // + repeated AdditionUP up = 1; + // + int32 has_fold = 2; +} + +// +enum TopType { + // + top_none = 0; + // + top_cancel = 1; +} + +// +message TopicButton { + // + string icon = 1; + // + string title = 2; + // + string jump_uri = 3; + // + bool red_dot = 4; +} + +// +message TopicItem { + // + int64 topic_id = 1; + // + string topic_name = 2; + // + string url = 3; + // + string desc = 4; + // + string desc2 = 5; + // + string rcmd_desc = 6; + // + IconButton button = 7; +} + +// +message TopicList { + // + string title = 1; + // + repeated TopicListItem topic_list_item = 2; + // + TopicButton act_button = 3; + // + TopicButton more_button = 4; + // + string server_info = 5; + // + string sub_title = 6; + // + int32 exp_style = 7; + // + string title_icon = 8; + // + DynamicItem hint_message = 9; +} + +// +message TopicListItem { + // + string icon = 1; + // + string icon_title = 2; + // + int64 topic_id = 3; + // + string topic_name = 4; + // + string url = 5; + // + int64 pos = 6; + // + string server_info = 7; + // + string head_icon_url = 8; + // + int64 up_mid = 9; + // + string tail_icon_url = 10; + // + string extension = 11; + // + int64 position = 12; +} + +// +message TopicListReply { + // + repeated TopicItem items = 1; + // + bool has_more = 2; + // + string offset = 3; + // + IconButton create_topic_btn = 4; +} + +// +message TopicListReq { + // + int64 campus_id = 1; + // + string offset = 2; + // + CampusReqFromType from_type = 3; +} + +// +message TopicMergedResource { + // + int32 merge_type = 1; + // + int32 merged_res_cnt = 2; +} + +// +message TopicRcmdCard { + // + int64 topic_id = 1; + // + string topic_name = 2; + // + string url = 3; + // + CampusLabel button = 4; + // + string desc1 = 5; + // + string desc2 = 6; + // + string update_desc = 7; +} + +// +message TopicSquareInfo { + // + string title = 1; + // + CampusLabel button = 2; + // + TopicRcmdCard rcmd = 3; +} + +// +message TopicSquareReply { + // + TopicSquareInfo info = 1; +} + +// +message TopicSquareReq { + // + int64 campus_id = 1; + // + CampusReqFromType from_type = 2; +} + +// +message Unfollow { + // + string title = 1; + // + repeated UnfollowUserItem list = 2; + // + string track_id = 3; +} + +// +message UnfollowMatchReq { + // + int64 cid = 1; +} + +// +message UnfollowUserItem { + // + bool has_update = 1; + // + string face = 2; + // + string name = 3; + // + int64 uid = 4; + // + int32 pos = 5; + // + LiveState live_state = 6; + // + OfficialVerify official = 7; + // + VipInfo vip = 8; + // + string sign = 9; + // + string label = 10; + // + AdditionalButton button = 11; + // + string uri = 12; +} + +// +message UpListItem { + // + bool has_update = 1; + // + string face = 2; + // + string name = 3; + // + int64 uid = 4; + // + int64 pos = 5; + // + UserItemType user_item_type = 6; + // + UserItemStyle display_style_day = 7; + // + UserItemStyle display_style_night = 8; + // + int64 style_id = 9; + // + LiveState live_state = 10; + // + bool separator = 11; + // + string uri = 12; + // + bool is_recall = 13; + // + IconBadge update_icon = 14; + // + string live_rcmd_reason = 15; + // + string live_cover = 16; + // + string personal_extra = 17; + // + string update_icon_type = 18; + // + string track_id = 19; + // + UpListTextBadge text_badge = 20; +} + +// +message UpListMoreLabel { + // + string title = 1; + // + string uri = 2; +} + +// +message UpListTextBadge { + // + string text = 1; +} + +// +message UpdateTabSettingReq { + // + HomePageTabSttingStatus status = 1; +} + +// +message UserInfo { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + OfficialVerify official = 4; + // + VipInfo vip = 5; + // + LiveInfo live = 6; + // + string uri = 7; + // + UserPendant pendant = 8; + // + Nameplate nameplate = 9; + // + int32 level = 10; + // + string sign = 11; + // + int32 face_nft = 12; + // + int32 face_nft_new = 13; + // + NFTInfo nft_info = 14; + // + int32 is_senior_member = 15; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar = 16; + // + bilibili.account.service.v1.NameRender name_render = 17; +} + +// +message UserItemStyle { + // + string rect_text = 1; + // + string rect_text_color = 2; + // + string rect_icon = 3; + // + string rect_bg_color = 4; + // + string outer_animation = 5; +} + +// +enum UserItemType { + // + user_item_type_none = 0; + // + user_item_type_live = 1; + // + user_item_type_live_custom = 2; + // + user_item_type_normal = 3; + // + user_item_type_extend = 4; + // + user_item_type_premiere_reserve = 5; + // + user_item_type_premiere = 6; + // + user_item_type_live_card = 7; + // + user_item_type_ogv_season = 8; + // + user_item_type_ugc_season = 9; +} + +// +message UserPendant { + // + int64 pid = 1; + // + string name = 2; + // + string image = 3; + // + int64 expire = 4; +} + +// +message VideoBadge { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + int32 bg_style = 8; + // + int32 bg_alpha = 9; + // + int32 bg_alpha_night = 10; + // + string head_icon = 11; + // + IconResLocal head_icon_local = 12; +} + +// +enum VideoSubType { + // + VideoSubTypeNone = 0; + // + VideoSubTypeBangumi = 1; + // + VideoSubTypeMovie = 2; + // + VideoSubTypeDocumentary = 3; + // + VideoSubTypeDomestic = 4; + // + VideoSubTypeTeleplay = 5; +} + +// +enum VideoType { + // + video_type_general = 0; + // + video_type_dynamic = 1; + // + video_type_playback = 2; + // + video_type_story = 3; +} + +// +message VipInfo { + // + int32 type = 1; + // + int32 status = 2; + // + int64 due_date = 3; + // + VipLabel label = 4; + // + int32 theme_type = 5; + // + int32 avatar_subscript = 6; + // + string nickname_color = 7; +} + +// +message VipLabel { + // + string path = 1; + // + string text = 2; + // + string label_theme = 3; +} + +// +enum VoteStatus { + // + normal = 0; + // + anonymous = 1; +} + +// +message WFItemDefault { + // + string title = 1; + // + string cover = 2; + // + CoverIconWithText bottom_left1 = 3; + // + CoverIconWithText bottom_left2 = 4; + // + CoverIconWithText bottom_right1 = 5; + // + string uri = 6; + // + RcmdReason rcmd_reason = 7; + // + map annotations = 8; +} + +// +enum WFItemType { + // + WATER_FLOW_TYPE_NONE = 0; + // + WATER_FLOW_TYPE_ARCHIVE = 1; + // + WATER_FLOW_TYPE_DYNAMIC = 2; +} + +// +message WaterFlowRcmdReq { + // + int64 campus_id = 1; + // + bilibili.pagination.FeedPagination 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 Weight { + // + string title = 1; + // + repeated WeightItem items = 2; + // + string icon = 3; +} + +// +message WeightButton { + // + string jump_url = 1; + // + string title = 2; +} + +// +message WeightDislike { + // + string feed_back_type = 1; + // + string title = 2; + // + string feed_back_biz_value = 3; +} + +// +message WeightItem { + // + oneof item { + // + WeightButton button = 2; + // + WeightDislike dislike = 3; + } + // + WeightType type = 1; +} + +// +enum WeightType { + // + weight_none = 0; + // + weight_dislike = 1; + // + weight_jump = 2; +} + +// +message WordNode { + // + message UnderlineStyle { + // + double underline_width = 1; + // + Colors underline_color = 2; + } + + // + message WordNodeStyle { + // + bool bold = 1; + // + bool italic = 2; + // + bool strikethrough = 3; + // + bool underline = 4; + } + + // + string words = 1; + // + double font_size = 2; + // + Colors color = 3; + // + WordNodeStyle style = 4; + // + UnderlineStyle underline_style = 5; + // + string font_level = 7; +} + diff --git a/proto/bilibili/app/home/v1.proto b/proto/bilibili/app/home/v1.proto new file mode 100644 index 0000000..955ab61 --- /dev/null +++ b/proto/bilibili/app/home/v1.proto @@ -0,0 +1,484 @@ +syntax = "proto3"; + +package bilibili.app.home.v1; + +import "bilibili/app/archive/middleware/v1.proto"; + +// +service Home { + // + rpc HomePopup (HomePopupReq) returns (HomePopupRes); + // + rpc MineSelectionContent (MineSelectionContentReq) returns (MineSelectionContentRes); + // + rpc MineSelectionOptionItems (MineSelectionOptionItemsReq) returns (MineSelectionOptionItemsRes); + // + rpc MineSelectionOptionUpdate (MineSelectionOptionUpdateReq) returns (MineSelectionOptionUpdateRes); + // + rpc Recent (RecentReq) returns (RecentRes); + // + rpc RemoveVideo (RemoveVideoReq) returns (RemoveVideoRes); + // + rpc TopLeftTab (TopLeftTabReq) returns (TopLeftTabRes); + // + rpc TopLeftTabUpdate (TopLeftTabUpdateReq) returns (TopLeftTabUpdateRes); +} + +// +message ArcContentPool { + // + repeated ArcInfo show_arcs = 1; + // + repeated ArcInfo backup_arcs = 2; +} + +// +message ArcInfo { + // + RecentRecommendMetaInfo rec_meta = 1; + // + int64 duration_sec = 2; + // + int64 progress_sec = 3; +} + +// +message Badge { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + BgStyle bg_style = 6; +} + +// +enum BgStyle { + // + BG_STYLE_UNKNOWN = 0; + // + BG_STYLE_FILL = 1; + // + BG_STYLE_STROKE = 2; + // + BG_STYLE_FILL_AND_STROKE = 3; + // + BG_STYLE_NO_FILL_AND_NO_STROKE = 4; +} + +// +message DirectRatingGuide { + // + string title = 1; + // + PopupButton goto_button = 2; + // + PopupButton feedback_button = 3; + // + PopupButton cancel_button = 4; +} + +// +message FavContentPool { + // + repeated FavInfo show_favs = 1; + // + repeated FavInfo backup_favs = 2; +} + +// +message FavInfo { + // + RecentRecommendMetaInfo rec_meta = 1; +} + +// +message HalfWatchedVideo { + // + ModuleInfo module_info = 1; + // + ArcContentPool arc_content_pool = 2; +} + +// +message HomePopupReq { + // + bool cold_start = 1; + // + RemindUsePCClientPopupParams rupcp = 2; + // + RatingGuidePopupParams rgpp = 3; +} + +// +message HomePopupRes { + // + PopupBasicInfo remind_use_pc_client = 1; + // + RatingGuidePopup rating_guide = 2; +} + +// +message IconItem { + // + string id = 1; + // + string icon = 2; + // + string url = 3; + // + string name = 4; + // + RedDot red_dot = 5; + // + bool fixure = 6; +} + +// +message MineSelection { + // + repeated IconItem items = 1; +} + +// +message MineSelectionContentReq { +} + +// +message MineSelectionContentRes { + // + MineSelection mine_selection = 1; +} + +// +message MineSelectionOptionItemsReq { +} + +// +message MineSelectionOptionItemsRes { + // + repeated SimpleMineSection sections = 1; +} + +// +message MineSelectionOptionUpdateReq { + // + repeated int64 item_ids = 1; +} + +// +message MineSelectionOptionUpdateRes { +} + +// +message ModuleInfo { + // + More more = 1; + // + string title = 2; + // + int64 pos = 3; +} + +// +enum ModuleType { + // + MODULE_TYPE_UNKNOWN = 0; + // + MODULE_TYPE_TOVIEW = 1; + // + MODULE_TYPE_RECENT_FAV = 2; + // + MODULE_TYPE_HALF_WATCHED_VIDEO = 3; +} + +// +message More { + // + string name = 1; + // + string icon = 2; + // + string url = 3; +} + +// +message PopupBasicInfo { + // + string title = 1; + // + string subtitle = 2; + // + string icon = 3; + // + PopupButton confirm_button = 4; + // + PopupButton cancel_button = 5; +} + +// +message PopupButton { + // + string text = 1; + // + string url = 2; +} + +// +message RatingGuidePopup { + // + DirectRatingGuide direct_rating_guide = 1; + // + RatingThenGuide rating_then_guide = 2; +} + +// +message RatingGuidePopupParams { + // + int32 show_count = 1; + // + int64 like_count = 2; + // + int32 special_page = 3; +} + +// +message RatingPopup { + // + string title = 1; +} + +// +message RatingThenGuide { + // + RatingPopup rating_popup = 1; + // + PopupBasicInfo guide_popup = 2; +} + +// +enum RecType { + // + REC_TYPE_UNKNOWN = 0; + // + REC_TYPE_UGC = 1; + // + REC_TYPE_OGV = 2; + // + REC_TYPE_SEASON = 3; + // + REC_TYPE_FAV_FOLDER = 4; +} + +// +message RecentFav { + // + ModuleInfo module_info = 1; + // + FavContentPool fav_content_pool = 3; +} + +// +enum RecentRecReasonEnum { + // + RECENT_REC_REASON_UNKNOWN = 0; + // + RECENT_REC_REASON_TOVIEW = 1; + // @Deprecated + RECENT_REC_REASON_HISTORY = 2; + // + RECENT_REC_REASON_FAV_FOLDER = 21; + // + RECENT_REC_REASON_FAV_DETAIL = 22; + // + RECENT_REC_REASON_DEEP_WATCHING_HALF = 31; + // + RECENT_REC_REASON_LOOK_BACK_HALF = 32; + // + RECENT_REC_REASON_LOOK_BACK_MORE_HALF = 33; + // + RECENT_REC_REASON_LOOK_BACK_MORE = 34; +} + +// +message RecentRecommendMetaInfo { + // + int64 id = 1; + // + string cover = 2; + // + string title = 3; + // + string add_time = 4; + // + string url = 5; + // + Badge badge = 6; + // + RecType rec_type = 7; + // + RecentRecReasonEnum rec_reason_enum = 8; + // + string sub_title = 9; + // + int64 add_time_sec = 10; +} + +// +message RecentReq { + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 1; +} + +// +message RecentRes { + // + MineSelection mine_selection = 1; + // + RecentUsed recent_used = 2; + // + HalfWatchedVideo half_watched_videos = 3; + // + ToView to_view = 4; + // + RecentFav recent_fav = 5; +} + +// +message RecentUsed { + // + ModuleInfo module_info = 1; + // + repeated IconItem items = 2; +} + +// +message RedDot { + // + bool show = 1; + // + int64 num = 2; +} + +// +message RemindUsePCClientPopupParams { + // + bool has_installed_pc_client = 1; +} + +// +message RemoveVideoReq { + // + ModuleType module_type = 1; + // + int64 id = 2; + // + RecentRecReasonEnum rec_reason_enum = 3; +} + +// +message RemoveVideoRes { +} + +// +message SimpleMineSection { + // + string id = 1; + // + string name = 2; + // + repeated IconItem items = 3; +} + +// +enum Tab { + // + TAB_UNKNOWN = 0; + // + TAB_LISTEN = 1; + // + TAB_STORY = 2; + // + TAB_RECENT = 3; +} + +// +message TabExtraInfo { + // + bool switch_to_mine_config_bubble = 1; +} + +// +enum TabSelection { + // + TS_UNKNOWN = 0; + // + TS_ONLY_LISTEN = 1; + // + TS_ONLY_STORY = 2; + // + TS_ONLY_RECENT = 3; + // + TS_ALL = 4; +} + +// +enum TabUpdateSource { + // + SOURCE_RECENT = 0; + // + SOURCE_GAME = 1; +} + +// +message ToView { + // + ModuleInfo module_info = 1; + // + ArcContentPool arc_content_pool = 2; +} + +// +enum TopLeftGoto { + // + GOTO_UNKNOWN = 0; + // + GOTO_MINE = 1; + // + GOTO_RECENT = 2; +} + +// +message TopLeftTabReq { +} + +// +message TopLeftTabRes { + // + repeated int32 tabs = 1; + // + Tab default_tab = 2; + // + TabExtraInfo extra = 3; +} + +// +message TopLeftTabUpdateReq { + // + TopLeftGoto tab_goto = 1; + // + TabSelection tab_selection = 2; + // + TabUpdateSource source = 3; +} + +// +message TopLeftTabUpdateRes { +} + diff --git a/proto/bilibili/app/im/v1.proto b/proto/bilibili/app/im/v1.proto new file mode 100644 index 0000000..99661cb --- /dev/null +++ b/proto/bilibili/app/im/v1.proto @@ -0,0 +1,1077 @@ +syntax = "proto3"; + +package bilibili.app.im.v1; + +import "bilibili/account/service/v1.proto"; +import "bilibili/dagw/component/avatar/v1.proto"; + +// +enum AirDropFrom { + // + ADF_UNKNOWN = 0; + // + ADF_INSIDE_APP = 1; + // + ADF_OUTSIDE_APP = 2; +} + +// +message AirDropShareUserInfo { + // + int64 mid = 1; + // + string face = 2; + // + string url = 3; + // + string name = 4; +} + +// +message AirDropToImReply { + // + repeated AirDropShareUserInfo user_infos = 1; +} + +// +message AirDropToImReq { + // + AirDropFrom adf = 1; +} + +// +enum AlertToastType { + // + ALERT_TOAST_TYPE_UNSPECIFIED = 0; + // + ALERT_TOAST_TYPE_BANNED = 1; + // + ALERT_TOAST_TYPE_REPORT = 2; +} + +// +message AutoReplyToast { + // + string title = 1; + // + string url = 2; +} + +// +message BehaviorAlertToast { + // + string title = 1; + // + string content = 2; + // + string type_str = 3; + // + AlertToastType type = 4; +} + +// +message BorderedLabel { + // + string icon = 1; + // + string text = 2; +} + +// +message CancelInterceptInDustbinReply { +} + +// +message CancelInterceptInDustbinReq { + // + SessionId session_id = 1; +} + +// +message ClearAlertReply { +} + +// +message ClearAlertReq { + // + AlertToastType type = 1; +} + +// +message ClearUnreadReply { +} + +// +message ClearUnreadReq { + // + SessionPageType page_type = 1; + // + SessionId session_id = 2; +} + +// +message Contact { + // + int64 id = 1; + // + string name = 2; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar = 3; + // + string vip_info = 4; + // + string url = 5; + // + bilibili.account.service.v1.NameRender name_render = 6; + // + bool is_special_follow = 7; + // + string face = 8; + // + int32 official_type = 9; +} + +// +message ContactTab { + // + ContactTabType tab = 1; + // + string name = 2; +} + +// +enum ContactTabType { + // + TAB_UNKNOWN = 0; + // + TAB_GROUP = 1; + // + TAB_FOLLOW = 2; + // + TAB_FANS = 3; +} + +// +message ContactsReply { + // + repeated Contact contacts = 1; + // + repeated ContactTab tab = 2; + // + ContactTabType current_tab = 3; + // + PaginationParams pagination_params = 4; +} + +// +message ContactsReq { + // + ContactTabType tab = 1; + // + PaginationParams pagination_params = 2; +} + +// +message ContactsSearchReply { + // + repeated Contact contacts = 1; + // + PaginationParams pagination_params = 2; +} + +// +message ContactsSearchReq { + // + string keyword = 1; + // + ContactTabType tab = 2; + // + PaginationParams pagination_params = 3; +} + +// +message CustomerId { + // + int64 shop_id = 1; + // + int64 shop_type = 2; +} + +// +message DeleteSessionListReply { +} + +// +message DeleteSessionListReq { + // + SessionPageType page_type = 1; +} + +// +message DeleteSessionReply { +} + +// +message DeleteSessionReq { + // + SessionId session_id = 1; +} + +// +message FilledLabel { + // + string text = 1; +} + +// +message FilterConfig { + // + repeated SessionsFilter filters = 1; + // + SessionFilterType current_filter = 2; +} + +// +message FoldId { + // + SessionType type = 1; +} + +// +message GetImSettingsReply { + // + string page_title = 1; + // + map settings = 2; +} + +// +message GetImSettingsReq { + // + IMSettingType type = 1; +} + +// +message GetQuickLinkUnreadReply { + // + repeated QuickLinkUnreadItem items = 1; +} + +// +message GetQuickLinkUnreadReq { +} + +// +message GetTotalUnreadReply { + // + Unread total = 1; +} + +// +message GetTotalUnreadReq { +} + +// +message GroupId { + // + int64 group_id = 1; +} + +// +enum IMSettingType { + // + SETTING_TYPE_NEED_ALL = 0; + // + SETTING_TYPE_REPLY_ME = 1; + // + SETTING_TYPE_NEW_FANS = 2; + // + SETTING_TYPE_RECEIVE_LIKE = 3; + // + SETTING_TYPE_MSG_REMIND = 4; + // + SETTING_TYPE_MSG_INTERCEPTION = 5; + // + SETTING_TYPE_FANS_GROUP_MSG = 6; + // + SETTING_TYPE_FANS_GROUP_MSG_RECEIVE = 7; + // + SETTING_TYPE_FANS_GROUP_MSG_FOLD = 8; + // + SETTING_TYPE_FANS_GROUP_MSG_JOIN_GUIDE = 9; + // + SETTING_TYPE_UNFOLLOWED_MSG = 10; + // + SETTING_TYPE_UNFOLLOWED_MSG_FOLD = 11; + // + SETTING_TYPE_BLACK_LIST = 12; + // + SETTING_TYPE_ANTI_HARASSMENT = 13; + // + SETTING_TYPE_ANTI_HARASSMENT_SWITCH = 14; + // + SETTING_TYPE_ANTI_HARASSMENT_OPEN_TIP_TEXT = 15; + // + SETTING_TYPE_CLOSE_FANS_GROUP = 16; + // + SETTING_TYPE_OLD_REPLY_ME = 17; + // + SETTING_TYPE_OLD_AT_ME = 18; + // + SETTING_TYPE_OLD_RECEIVE_LIKE = 19; + // + SETTING_TYPE_ANTI_HARASSMENT_INTERACT_LIMITS = 20; + // + SETTING_TYPE_ANTI_HARASSMENT_DURATION = 21; + // + SETTING_TYPE_ANTI_HARASSMENT_COMMENT_LIMITS = 22; + // + SETTING_TYPE_ANTI_HARASSMENT_DANMU_LIMITS = 23; + // + SETTING_TYPE_UNFOLLOWED_MSG_RECEIVE = 24; + // + SETTING_TYPE_ANTI_HARASSMENT_IM_LIMITS = 25; + // + SETTING_TYPE_KEYWORD_BLOCKING = 26; +} + +// +message ImageLabel { + // + string url = 1; + // + int32 width = 2; + // + int32 height = 3; +} + +// +message KeywordBlockingAddReply { + // + string toast = 1; + // + KeywordBlockingItem item = 2; +} + +// +message KeywordBlockingAddReq { + // + string keyword = 1; +} + +// +message KeywordBlockingDeleteReply { + // + string toast = 1; +} + +// +message KeywordBlockingDeleteReq { + // + string keyword = 1; +} + +// +message KeywordBlockingItem { + // + string keyword = 1; +} + +// +message KeywordBlockingListReply { + // + repeated KeywordBlockingItem items = 1; + // + int32 list_limit = 2; + // + int32 char_limit = 3; + // + string list_limit_text = 4; +} + +// +message KeywordBlockingListReq { +} + +// +enum LabelType { + // + LABEL_TYPE_DEFAULT = 0; + // + LABEL_TYPE_HUA_HUO = 1; + // + LABEL_TYPE_ORIGINAL_FANS = 2; + // + LABEL_TYPE_SPECIAL_ATTENTION = 3; + // + LABEL_TYPE_CONTRACT_UP = 4; + // + LABEL_TYPE_OLD_FANS = 5; + // + LABEL_TYPE_SPECIAL_ATTENTION_2 = 6; + // + LABEL_TYPE_FANS_MEDAL = 7; + // + LABEL_TYPE_GUARD_MEDAL = 8; +} + +// +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; + // + string medal_color_start = 9; + // + string medal_color_end = 10; + // + string medal_color_border = 11; + // + string medal_color_name = 12; + // + string medal_color_level = 13; + // + int64 guard_level = 14; +} + +// +message MsgSummary { + // + string raw_msg = 1; + // + MsgSummaryPrefixType prefix_type = 2; + // + string prefix_text = 3; + // + bool is_group_owner = 4; +} + +// +enum MsgSummaryPrefixType { + // + MSG_SUMMARY_PREFIX_TYPE_NONE = 0; + // + MSG_SUMMARY_PREFIX_TYPE_NOTIFICATION = 1; + // + MSG_SUMMARY_PREFIX_TYPE_GROUP_BLOCKED = 2; + // + MSG_SUMMARY_PREFIX_TYPE_MENTIONED = 3; + // + MSG_SUMMARY_PREFIX_TYPE_UNREAD = 4; +} + +// +message Offset { + // + int64 normal_offset = 1; + // + int64 top_offset = 2; +} + +// +message OperationContent { + // + bool show = 1; + // + string text = 2; +} + +// +message PaginationParams { + // + map offsets = 1; + // + bool has_more = 2; +} + +// +message PinSessionReply { + // + int64 sequence_number = 1; + // + int64 code = 2; + // + string message = 3; +} + +// +message PinSessionReq { + // + SessionId session_id = 1; + // + int64 top_time_micros = 2; +} + +// +message PrivateId { + // + int64 talker_uid = 1; +} + +// +message QuickLinkBubble { + // + int64 mid = 1; + // + string avatar = 2; + // + string nick_name = 3; + // + string content = 4; + // + QuickLinkItemType quick_link_item = 5; + // + QuickLinkMsgType msg_type = 6; +} + +// +message QuickLinkConfig { + // + repeated QuickLinkItem items = 1; + // + QuickLinkBubble bubble = 2; + // + bool is_legacy_style = 3; +} + +// +message QuickLinkItem { + // + string title = 1; + // + string icon = 2; + // + string icon_dark = 3; + // + string url = 4; + // + Unread unread = 5; + // + QuickLinkItemType item_type = 6; +} + +// +enum QuickLinkItemType { + // + QUICK_LINK_ITEM_TYPE_UNKNOWN = 0; + // + QUICK_LINK_ITEM_TYPE_OLD_LIKE = 1; + // + QUICK_LINK_ITEM_TYPE_OLD_REPLY = 2; + // + QUICK_LINK_ITEM_TYPE_AT = 3; + // + QUICK_LINK_ITEM_TYPE_SYSTEM = 4; + // + QUICK_LINK_ITEM_TYPE_HUA_HUO = 5; + // + QUICK_LINK_ITEM_TYPE_FOLLOW = 6; + // + QUICK_LINK_ITEM_TYPE_REPLY = 100; + // + QUICK_LINK_ITEM_TYPE_LIKE = 101; +} + +// +enum QuickLinkMsgType { + // + LikeMsg = 0; + // + ReplyMsg = 1; + // + AtMsg = 2; + // + DanmuMsg = 3; + // + CoinMsg = 4; + // + FavoriteMsg = 5; +} + +// +message QuickLinkUnreadItem { + // + QuickLinkItemType item_type = 1; + // + Unread unread = 2; +} + +// +message RestrictedMode { + // + bool teenagers = 1; + // + bool lessons = 2; +} + +// +message SelectItem { + // + int32 item_type = 1; + // + string text = 2; + // + bool selected = 3; +} + +// +message Session { + // + SessionId id = 1; + // + SessionInfo session_info = 2; + // + Unread unread = 3; + // + MsgSummary msg_summary = 4; + // + int64 timestamp = 5; + // + bool is_pinned = 6; + // + int64 sequence_number = 7; + // + bool is_muted = 8; + // + string chat_url = 9; + // + SessionOperation operation = 10; + // + map trace_params = 11; +} + +// +enum SessionFilterType { + // + FILTER_DEFAULT = 0; + // + FILTER_FOLLOW = 1; +} + +// +message SessionId { + // + oneof id { + // + PrivateId private_id = 1; + // + GroupId group_id = 2; + // + FoldId fold_id = 3; + // + SystemId system_id = 4; + // + CustomerId customer_id = 5; + } +} + +// +message SessionInfo { + // + string session_name = 1; + // + bilibili.account.service.v1.NameRender name_render = 2; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar = 3; + // + string vip_info = 4; + // + UserLabel user_label = 5; + // + bool is_live = 6; +} + +// +message SessionListExtraInfo { + // + AutoReplyToast auto_reply_toast = 1; + // + bool show_anti_harassment_popup = 2; + // + string customer_hint_title = 3; + // + BehaviorAlertToast behavior_alert_toast = 4; +} + +// +message SessionListUpdateReply { + // + repeated Session sessions = 1; + // + UpdateSessionParams update_session_params = 2; +} + +// +message SessionListUpdateReq { + // + RestrictedMode restricted_mode = 1; + // + UpdateSessionParams update_params = 2; + // + SessionPageType page_type = 3; + // + SessionFilterType filter_type = 4; +} + +// +message SessionMainReply { + // + PaginationParams pagination_params = 1; + // + UpdateSessionParams update_session_params = 2; + // + QuickLinkConfig quick_link_config = 3; + // + FilterConfig filter_config = 4; + // + repeated Session sessions = 5; + // + repeated ThreeDotItem three_dot_items = 6; + // + repeated ThreeDotItem outside_item = 7; + // + SessionListExtraInfo extra_info = 8; +} + +// +message SessionMainReq { + // + RestrictedMode restricted_mode = 1; + // + PaginationParams pagination_params = 2; + // + SessionFilterType filter_type = 3; +} + +// +message SessionOperation { + // + OperationContent pin = 1; + // + OperationContent unpin = 2; + // + OperationContent delete = 3; + // + OperationContent clear_unread = 4; + // + OperationContent unblock = 5; +} + +// +enum SessionPageType { + // + SESSION_PAGE_TYPE_UNKNOWN = 0; + // + SESSION_PAGE_TYPE_HOME = 1; + // + SESSION_PAGE_TYPE_UNFOLLOWED = 2; + // + SESSION_PAGE_TYPE_STRANGER = 3; + // + SESSION_PAGE_TYPE_DUSTBIN = 4; + // + SESSION_PAGE_TYPE_GROUP = 5; + // + SESSION_PAGE_TYPE_HUA_HUO = 6; + // + SESSION_PAGE_TYPE_AI = 7; + // + SESSION_PAGE_TYPE_CUSTOMER = 8; +} + +// +message SessionSecondaryReply { + // + PaginationParams pagination_params = 1; + // + UpdateSessionParams update_session_params = 2; + // + repeated Session sessions = 3; + // + repeated ThreeDotItem three_dot_items = 4; + // + repeated ThreeDotItem outside_item = 5; +} + +// +message SessionSecondaryReq { + // + RestrictedMode restricted_mode = 1; + // + PaginationParams pagination_params = 2; + // + SessionPageType page_type = 3; +} + +// +enum SessionType { + // + SESSION_TYPE_UNKNOWN = 0; + // + SESSION_TYPE_PRIVATE = 1; + // + SESSION_TYPE_GROUP = 2; + // + SESSION_TYPE_GROUP_FOLD = 3; + // + SESSION_TYPE_UNFOLLOWED = 4; + // + SESSION_TYPE_STRANGER = 5; + // + SESSION_TYPE_DUSTBIN = 6; + // + SESSION_TYPE_CUSTOMER_FOLD = 7; + // + SESSION_TYPE_SYSTEM = 8; + // + SESSION_TYPE_AI_FOLD = 9; + // + SESSION_TYPE_CUSTOMER_ACCOUNT = 10; +} + +// +message SessionUpdateReply { + // + Session session = 1; +} + +// +message SessionUpdateReq { + // + SessionId session_id = 1; + // + SessionPageType page_type = 2; +} + +// +message SessionsFilter { + // + SessionFilterType stype = 1; + // + string title = 2; +} + +// +message SetImSettingsReply { + // + string toast = 1; +} + +// +message SetImSettingsReq { + // + map settings = 1; +} + +// +message Setting { + // + oneof content { + // + SettingSwitch switch = 1; + // + SettingSelect select = 2; + // + SettingRedirect redirect = 3; + // + SettingText text = 4; + } +} + +// +message SettingRedirect { + // + oneof content { + // + redirect2SettingPage setting_page = 1; + // + redirect2OtherPage other_page = 2; + // + redirect2Popup popup = 6; + // + redirectWindowSelect window_select = 7; + } + // + string title = 3; + // + string subtitle = 4; + // + string selected_summary = 5; +} + +// +message SettingSelect { + // + repeated SelectItem item = 1; +} + +// +message SettingSwitch { + // + bool switch_on = 1; + // + string title = 2; + // + string subtitle = 3; +} + +// +message SettingText { + // + string text = 1; +} + +// +message SystemId { + // + SessionType type = 1; +} + +// +message ThreeDotItem { + // + string title = 1; + // + string icon = 2; + // + string url = 3; + // + ThreeDotItemType type = 4; + // + bool has_red_dot = 5; +} + +// +enum ThreeDotItemType { + // + THREE_DOT_ITEM_TYPE_UNKNOWN = 0; + // + THREE_DOT_ITEM_TYPE_READ_ALL = 1; + // + THREE_DOT_ITEM_TYPE_MSG_SETTING = 2; + // + THREE_DOT_ITEM_TYPE_AUTO_REPLY = 3; + // + THREE_DOT_ITEM_TYPE_UP_HELPER = 4; + // + THREE_DOT_ITEM_TYPE_LIVE_HELPER = 5; + // + THREE_DOT_ITEM_TYPE_FANS_GROUP_HELPER = 6; + // + THREE_DOT_ITEM_TYPE_CONTRIBUTION_PUSH = 7; + // + THREE_DOT_ITEM_TYPE_CONTACTS = 8; + // + THREE_DOT_ITEM_TYPE_CLEAR_LIST = 9; +} + +// +message UnPinSessionReply { + // + int64 sequence_number = 1; +} + +// +message UnPinSessionReq { + // + SessionId session_id = 1; +} + +// +message Unread { + // + UnreadStyle style = 1; + // + int64 number = 2; + // + string number_show = 3; +} + +// +enum UnreadStyle { + // + UNREAD_STYLE_NONE = 0; + // + UNREAD_STYLE_DOT = 1; + // + UNREAD_STYLE_NUMBER = 2; +} + +// +message UpdateSessionParams { + // + map max_session_ts = 1; +} + +// +message UserLabel { + // + LabelType type = 1; + // + UserLabelStyle style = 2; +} + +// +message UserLabelStyle { + // + oneof style { + // + BorderedLabel bordered_label = 2; + // + FilledLabel filled_label = 3; + // + ImageLabel image_label = 4; + // + Medal medal_label = 5; + } +} + +// +message redirect2OtherPage { + // + string url = 1; +} + +// +message redirect2Popup { + // + string title = 1; + // + string subtitle = 2; + // + string url = 3; +} + +// +message redirect2SettingPage { + // + map sub_settings = 1; + // + string page_title = 2; + // + string url = 3; + // + IMSettingType parent_setting_type = 4; +} + +// +message redirectWindowSelect { + // + string title = 1; + // + repeated SelectItem item = 2; +} + diff --git a/proto/bilibili/app/interfaces/v1.proto b/proto/bilibili/app/interfaces/v1.proto new file mode 100644 index 0000000..a87ad2a --- /dev/null +++ b/proto/bilibili/app/interfaces/v1.proto @@ -0,0 +1,1334 @@ +syntax = "proto3"; + +package bilibili.app.interfaces.v1; + +import "bilibili/app/archive/middleware/v1.proto"; +import "bilibili/app/archive/v1.proto"; +import "bilibili/app/card/v1.proto"; +import "bilibili/app/dynamic/v2.proto"; + +// +service History { + // + rpc Clear (ClearReq) returns (NoReply); + // + rpc Cursor (CursorReq) returns (CursorReply); + // + rpc CursorV2 (CursorV2Req) returns (CursorV2Reply); + // + rpc Delete (DeleteReq) returns (NoReply); + // + rpc HistoryTab (HistoryTabReq) returns (HistoryTabReply); + // + rpc HistoryTabV2 (HistoryTabReq) returns (HistoryTabReply); + // + rpc LatestHistory (LatestHistoryReq) returns (LatestHistoryReply); + // + rpc Search (SearchReq) returns (SearchReply); +} + +// +service Media { + // + rpc MediaComment (MediaCommentReq) returns (MediaCommentReply); + // + rpc MediaDetail (MediaDetailReq) returns (MediaDetailReply); + // + rpc MediaFollow (MediaFollowReq) returns (MediaFollowReply); + // + rpc MediaRelation (MediaRelationReq) returns (MediaRelationReply); + // + rpc MediaTab (MediaTabReq) returns (MediaTabReply); + // + rpc MediaVideo (MediaVideoReq) returns (MediaVideoReply); +} + +// +service Search { + // + rpc DefaultWords (DefaultWordsReq) returns (DefaultWordsReply); + // + rpc Suggest3 (SuggestionResult3Req) returns (SuggestionResult3Reply); +} + +// +service SearchTest { + // + rpc NotExist (SuggestionResult3Req) returns (SuggestionResult3Reply); +} + +// +service Space { + // + rpc SearchArchive (SearchArchiveReq) returns (SearchArchiveReply); + // + rpc SearchDynamic (SearchDynamicReq) returns (SearchDynamicReply); + // + rpc SearchTab (SearchTabReq) returns (SearchTabReply); + // + rpc UpdateReserveStartTime (UpdateReserveStartTimeReq) returns (UpdateReserveStartTimeReply); +} + +// +service Teenagers { + // + rpc FacialRecognitionVerify (FacialRecognitionVerifyReq) returns (FacialRecognitionVerifyReply); + // + rpc ModeStatus (ModeStatusReq) returns (ModeStatusReply); + // + rpc ModifyPwd (ModifyPwdReq) returns (ModifyPwdReply); + // + rpc SetTeenagersModelAge (SetTeenagersModelAgeReq) returns (SetTeenagersModelAgeReply); + // + rpc UpdateStatus (UpdateStatusReq) returns (UpdateStatusReply); + // + rpc VerifyPwd (VerifyPwdReq) returns (VerifyPwdReply); +} + +// +message Arc { + // + bilibili.app.archive.v1.Arc archive = 1; + // + string uri = 2; + // + string view_content = 3; + // + int64 icon_type = 4; + // + string cover_icon = 5; + // + bool is_fold = 6; + // + bool is_pugv = 7; + // + string publish_time_text = 8; + // + repeated string badges = 9; + // + bool is_oneself = 10; +} + +// +message Badge { + // + string text = 1; + // + string icon = 2; +} + +// +message BigItem { + // + string title = 1; + // + string cover_image_uri = 2; + // + string uri = 3; + // + string cover_right_text = 4; + // + string cover_left_text1 = 5; + // + int64 cover_left_icon1 = 6; + // + string cover_left_text2 = 7; + // + int64 cover_left_icon2 = 8; + // + UserCard user_card = 9; + // + LikeButton like_button = 10; + // + int64 param = 11; + // + bilibili.app.card.v1.SharePlane share_plane = 12; + // + bilibili.app.card.v1.PanelMeta three_point_meta = 13; + // + bilibili.app.card.v1.InlineProgressBar inline_progress_bar = 14; + // + int32 can_play = 15; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 16; + // + bool is_fav = 17; +} + +// +enum ButType { + // + BUT_INVALID = 0; + // + BUT_REDIRECT = 1; + // + BUT_LIKE = 2; +} + +// +message Button { + // + string title = 1; + // + string link = 2; + // + string id = 3; + // + int64 icon = 4; + // + ButType but_type = 5; + // + int32 follow_state = 6; + // + string has_title = 7; +} + +// +message CardArticle { + // + repeated string covers = 1; + // + string name = 2; + // + int64 mid = 3; + // + bool display_attention = 4; + // + string badge = 5; + // + Relation relation = 6; +} + +// +message CardCheese { + // + string cover = 1; + // + int64 progress = 2; + // + int64 duration = 3; + // + string subtitle = 4; + // + int64 state = 5; +} + +// +message CardLive { + // + string cover = 1; + // + string name = 2; + // + int64 mid = 3; + // + string tag = 4; + // + int32 status = 5; + // + bool display_attention = 6; + // + Relation relation = 7; +} + +// +message CardOGV { + // + string cover = 1; + // + int64 progress = 2; + // + int64 duration = 3; + // + string subtitle = 4; + // + string badge = 5; + // + int64 state = 6; +} + +// +message CardUGC { + // + string cover = 1; + // + int64 progress = 2; + // + int64 duration = 3; + // + string name = 4; + // + int64 mid = 5; + // + bool display_attention = 6; + // + int64 cid = 7; + // + int32 page = 8; + // + string subtitle = 9; + // + Relation relation = 10; + // + string bvid = 11; + // + int64 videos = 12; + // + string short_link = 13; + // + string share_subtitle = 14; + // + int64 view = 15; + // + int64 state = 16; + // + string badge = 17; + // + Badge badge_v2 = 18; +} + +// +message Cast { + // + repeated MediaPerson person = 1; + // + string title = 2; +} + +// +message ChannelInfo { + // + int64 channel_id = 1; + // + bool subscribed = 2; +} + +// +message ClearReq { + // + string business = 1; +} + +// +message CommentItem { + // + string icon = 1; + // + string url = 2; + // + string title = 3; + // + CommentType type = 4; + // + string action_type = 5; + // + string id = 6; +} + +// +enum CommentType { + // + comment_type_none = 0; + // + comment_type_redirect = 1; + // + comment_type_judge = 2; +} + +// +message Cursor { + // + int64 max = 1; + // + int32 max_tp = 2; +} + +// +message CursorItem { + // + oneof card_item { + // + CardUGC card_ugc = 1; + // + CardOGV card_ogv = 2; + // + CardArticle card_article = 3; + // + CardLive card_live = 4; + // + CardCheese card_cheese = 5; + } + // + string title = 6; + // + string uri = 7; + // + int64 view_at = 8; + // + int64 kid = 9; + // + int64 oid = 10; + // + string business = 11; + // + int32 tp = 12; + // + DeviceType dt = 13; + // + bool has_share = 14; + // + string report = 15; +} + +// +message CursorReply { + // + repeated CursorItem items = 1; + // + repeated CursorTab tab = 2; + // + Cursor cursor = 3; + // + bool has_more = 4; +} + +// +message CursorReq { + // + Cursor cursor = 1; + // + string business = 2; + // + PlayerPreloadParams player_preload = 3; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; +} + +// +message CursorTab { + // + string business = 1; + // + string name = 2; + // + string router = 3; + // + bool focus = 4; +} + +// +message CursorV2Reply { + // + repeated CursorItem items = 1; + // + Cursor cursor = 2; + // + bool has_more = 3; + // + string empty_link = 4; +} + +// +message CursorV2Req { + // + Cursor cursor = 1; + // + string business = 2; + // + PlayerPreloadParams player_preload = 3; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; + // + bool is_local = 5; +} + +// +enum DT { + // + Unknown = 0; + // + Phone = 1; + // + Pad = 2; + // + PC = 3; + // + TV = 4; + // + Car = 5; + // + Iot = 6; + // + AndPad = 7; +} + +// +message DefaultWordsReply { + // + string trackid = 1; + // + string param = 2; + // + string show = 3; + // + string word = 4; + // + int64 show_front = 5; + // + string exp_str = 6; + // + string goto = 7; + // + string value = 8; + // + string uri = 9; + // + int64 enable_refresh = 10; + // + int64 refresh_interval_milli = 11; + // + int64 enable_animation = 12; + // + int64 animation_time_milli = 13; +} + +// +message DefaultWordsReq { + // + int64 from = 1; + // + int64 login_event = 2; + // + int32 teenagers_mode = 3; + // + int32 lessons_mode = 4; + // + string tab = 5; + // + string event_id = 6; + // + string avid = 7; + // + string query = 8; + // + int64 an = 9; + // + int64 is_fresh = 10; + // + string splash_guide = 11; + // + int64 splash_id = 12; + // + int64 refresh_type = 13; + // + string user_act = 14; + // + int32 search_page_return = 15; +} + +// +message DeleteReq { + // + repeated HisInfo his_info = 1; + // + string tab = 2; +} + +// +message DeviceType { + // + DT type = 1; + // + string icon = 2; +} + +// +message Dynamic { + // + bilibili.app.dynamic.v2.DynamicItem dynamic = 1; +} + +// +enum FacialRecognitionVerifyFrom { + // + VerifyUnknownFrom = 0; + // + VerifyFromGuardian = 1; + // + VerifyFromAppeal = 2; +} + +// +message FacialRecognitionVerifyReply { +} + +// +message FacialRecognitionVerifyReq { + // + FacialRecognitionVerifyFrom from = 1; + // + string device_token = 2; +} + +// +enum From { + // + ArchiveTab = 0; + // + DynamicTab = 1; +} + +// +message HisInfo { + // + string business = 1; + // + int64 kid = 2; +} + +// +enum HistorySource { + // + history = 0; + // + shopping = 1; +} + +// +message HistoryTabReply { + // + repeated CursorTab tab = 1; +} + +// +message HistoryTabReq { + // + string business = 1; + // + HistorySource source = 2; + // + string keyword = 3; +} + +// +message LatestHistoryReply { + // + CursorItem items = 1; + // + string scene = 2; + // + int64 rtime = 3; + // + string flag = 4; +} + +// +message LatestHistoryReq { + // + string business = 1; + // + PlayerPreloadParams player_preload = 2; +} + +// +message LikeButton { + // + int64 aid = 1; + // + int32 count = 2; + // + bool show_count = 3; + // + string event = 4; + // + int32 selected = 5; + // + string event_v2 = 6; + // + LikeButtonResource like_resource = 7; + // + LikeButtonResource dis_like_resource = 8; + // + LikeButtonResource like_night_resource = 9; + // + LikeButtonResource dis_like_night_resource = 10; +} + +// +message LikeButtonResource { + // + string url = 1; + // + string hash = 2; +} + +// +message LikeCard { + // + int64 like = 1; + // + bool is_follow = 2; +} + +// +message MediaCard { + // + string cover = 1; + // + string cur_title = 2; + // + string style = 3; + // + string label = 4; + // + Button but_first = 5; + // + Supernatant but_second = 6; + // + Scores scores = 7; +} + +// +message MediaCommentReply { + // + string err_msg = 1; +} + +// +message MediaCommentReq { + // + string id = 1; +} + +// +message MediaDetailReply { + // + Cast cast = 1; + // + Staff staff = 2; + // + Overview overview = 3; +} + +// +message MediaDetailReq { + // + int64 biz_id = 1; + // + int64 biz_type = 2; +} + +// +message MediaFollowReply { +} + +// +message MediaFollowReq { + // + string id = 1; + // + ButType type = 2; +} + +// +message MediaPerson { + // + string real_name = 1; + // + string square_url = 2; + // + string character = 3; + // + int64 person_id = 4; + // + string type = 5; +} + +// +message MediaRelationReply { + // + string offset = 1; + // + bool has_more = 2; + // + repeated SmallItem list = 3; +} + +// +message MediaRelationReq { + // + int64 biz_id = 1; + // + int64 biz_type = 2; + // + int64 feed_id = 3; + // + string offset = 5; + // + int32 ps = 6; +} + +// +message MediaTabReply { + // + MediaCard media_card = 1; + // + repeated ShowTab tab = 2; + // + int64 default_tab_index = 3; + // + ChannelInfo channel_info = 4; +} + +// +message MediaTabReq { + // + int64 biz_id = 1; + // + int64 biz_type = 2; + // + string source = 3; + // + string spmid = 4; + // + map args = 5; +} + +// +message MediaVideoReply { + // + string offset = 1; + // + bool has_more = 2; + // + repeated BigItem list = 3; +} + +// +message MediaVideoReq { + // + int64 biz_id = 1; + // + int64 biz_type = 2; + // + int64 feed_id = 3; + // + string offset = 5; + // + int32 ps = 6; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 7; +} + +// +message ModeStatusReply { + // + repeated UserModel user_models = 1; +} + +// +message ModeStatusReq { + // + string device_token = 1; +} + +// +enum ModelStatus { + // + CloseStatus = 0; + // + OpenStatus = 1; + // + NotSetStatus = 2; +} + +// +message ModifyPwdReply { +} + +// +message ModifyPwdReq { + // + string old_pwd = 1; + // + string new_pwd = 2; + // + string device_token = 3; +} + +// +message NftFaceIcon { + // + int32 region_type = 1; + // + string icon = 2; + // + int32 show_status = 3; +} + +// +message NoReply { +} + +// +message OfficialVerify { + // + int32 type = 1; + // + string desc = 2; +} + +// +message Overview { + // + string title = 1; + // + string text = 2; +} + +// +message Page { + // + int64 pn = 1; + // + int64 total = 2; +} + +// +message PlayerPreloadParams { + // + int64 qn = 1; + // + int64 fnver = 2; + // + int64 fnval = 3; + // + int64 force_host = 4; + // + int64 fourk = 5; +} + +// +message Policy { + // + int64 interval = 1; + // + bool use_local_time = 2; +} + +// +enum PwdFrom { + // + UnknownFrom = 0; + // + TeenagersAntiAddictionFrom = 1; + // + TeenagersCurfewFrom = 2; + // + TeenagersLoginFrom = 3; + // + TeenagersLogOutFrom = 4; + // + FamilyAntiAddictionFrom = 5; + // + FamilyCurfewFrom = 6; + // + FamilyLogOutFrom = 7; + // + FamilyTimeLockFrom = 8; + // + TeenagersQuitPwdFrom = 9; + // + TeenagersModifyPwdFrom = 10; + // + FamilyQuitFrom = 11; + // + OSTeenagersLogin = 12; + // + OSTeenagersLogout = 13; + // + TeenagersSetAge = 14; + // + OSTeenagersSetAge = 15; +} + +// +message ReasonStyle { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + int32 bg_style = 8; +} + +// +message Relation { + // + int32 status = 1; + // + int32 is_follow = 2; + // + int32 is_followed = 3; +} + +// +message ResultItem { + // + string from = 1; + // + string title = 2; + // + string keyword = 3; + // + int32 position = 4; + // + string cover = 5; + // + double cover_size = 6; + // + string sug_type = 7; + // + int32 term_type = 8; + // + string goto = 9; + // + string uri = 10; + // + OfficialVerify official_verify = 11; + // + string param = 12; + // + int64 mid = 13; + // + int32 fans = 14; + // + int32 level = 15; + // + int32 archives = 16; + // + int64 ptime = 17; + // + string season_type_name = 18; + // + string area = 19; + // + string style = 20; + // + string label = 21; + // + double rating = 22; + // + int32 vote = 23; + // + repeated ReasonStyle badges = 24; + // + string styles = 25; + // + int64 module_id = 26; + // + string live_link = 27; + // + int32 face_nft_new = 28; + // + NftFaceIcon nft_face_icon = 29; + // + int32 is_senior_member = 30; + // + int32 is_sug_style_exp = 31; +} + +// +message Scores { + // + float score = 1; +} + +// +message SearchArchiveReply { + // + repeated Arc archives = 1; + // + int64 total = 2; +} + +// +message SearchArchiveReq { + // + string keyword = 1; + // + int64 mid = 2; + // + int64 pn = 3; + // + int64 ps = 4; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5; +} + +// +message SearchDynamicReply { + // + repeated Dynamic dynamics = 1; + // + int64 total = 2; +} + +// +message SearchDynamicReq { + // + string keyword = 1; + // + int64 mid = 2; + // + int64 pn = 3; + // + int64 ps = 4; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5; +} + +// +message SearchReply { + // + repeated CursorItem items = 1; + // + bool has_more = 2; + // + Page page = 3; +} + +// +message SearchReq { + // + string keyword = 1; + // + int64 pn = 2; + // + string business = 3; +} + +// +message SearchTabReply { + // + int64 focus = 1; + // + repeated Tab tabs = 2; +} + +// +message SearchTabReq { + // + string keyword = 1; + // + int64 mid = 2; + // + From from = 3; +} + +// +message SetTeenagersModelAgeReply { +} + +// +message SetTeenagersModelAgeReq { + // + string pwd = 1; + // + PwdFrom pwd_from = 2; + // + string device_token = 3; + // + int32 age = 4; + // + bool is_dynamic = 5; +} + +// +message ShowTab { + // + TabType tab_type = 1; + // + string title = 2; + // + string url = 3; +} + +// +message SmallItem { + // + string title = 1; + // + string cover_image_uri = 2; + // + string uri = 3; + // + string cover_right_text = 4; + // + string cover_left_text1 = 5; + // + int64 cover_left_icon1 = 6; + // + string cover_left_text2 = 7; + // + int64 cover_left_icon2 = 8; + // + int64 param = 9; + // + int64 mid = 10; +} + +// +message Staff { + // + string title = 1; + // + string text = 2; +} + +// +message SuggestionResult3Reply { + // + string trackid = 1; + // + repeated ResultItem list = 2; + // + string exp_str = 3; +} + +// +message SuggestionResult3Req { + // + string keyword = 1; + // + int32 highlight = 2; + // + int32 teenagers_mode = 3; + // + string user_act = 4; +} + +// +message Supernatant { + // + string title = 1; + // + repeated CommentItem item = 2; +} + +// +message Tab { + // + string title = 1; + // + string uri = 2; +} + +// +enum TabType { + // + TAB_INVALID = 0; + // + TAB_OGV_DETAIL = 6; + // + TAB_OGV_REPLY = 7; + // + TAB_FEED_BID = 8; + // + TAB_FEED_SMALL = 9; +} + +// +message UpdateReserveStartTimeReply { + // + string desc_text = 1; +} + +// +message UpdateReserveStartTimeReq { + // + int64 sid = 1; + // + int64 new_live_plan_start_time = 2; +} + +// +message UpdateStatusReply { +} + +// +message UpdateStatusReq { + // + string pwd = 1; + // + bool switch = 2; + // + PwdFrom pwd_from = 3; + // + string device_token = 4; +} + +// +message UserCard { + // + string user_name = 1; + // + string user_face = 2; + // + string user_url = 3; + // + int64 mid = 4; +} + +// +message UserModel { + // + int64 mid = 1; + // + string mode = 2; + // + string wsxcde = 3; + // + ModelStatus status = 4; + // + Policy policy = 5; + // + bool is_forced = 6; + // + bool must_teen = 7; + // + bool must_real_name = 8; + // + bool is_parent_control = 9; + // + int32 age = 10; +} + +// +message VerifyPwdReply { +} + +// +message VerifyPwdReq { + // + string pwd = 1; + // + PwdFrom pwd_from = 2; + // + bool is_dynamic = 3; + // + bool close_device = 4; + // + string device_token = 5; +} + diff --git a/proto/bilibili/app/listener/v1.proto b/proto/bilibili/app/listener/v1.proto new file mode 100644 index 0000000..8526b4b --- /dev/null +++ b/proto/bilibili/app/listener/v1.proto @@ -0,0 +1,1537 @@ +syntax = "proto3"; + +package bilibili.app.listener.v1; + +import "bilibili/app/archive/middleware/v1.proto"; +import "bilibili/app/interfaces/v1.proto"; +import "bilibili/app/playurl/v1.proto"; +import "bilibili/pagination.proto"; +import "google/protobuf/empty.proto"; + +// +service Listener { + // + rpc BKArcDetails (BKArcDetailsReq) returns (BKArcDetailsResp); + // + rpc CoinAdd (CoinAddReq) returns (CoinAddResp); + // + rpc Event (EventReq) returns (EventResp); + // + rpc FavFolderCreate (FavFolderCreateReq) returns (FavFolderCreateResp); + // + rpc FavFolderDelete (FavFolderDeleteReq) returns (FavFolderDeleteResp); + // + rpc FavFolderDetail (FavFolderDetailReq) returns (FavFolderDetailResp); + // + rpc FavFolderList (FavFolderListReq) returns (FavFolderListResp); + // + rpc FavItemAdd (FavItemAddReq) returns (FavItemAddResp); + // + rpc FavItemBatch (FavItemBatchReq) returns (FavItemBatchResp); + // + rpc FavItemDel (FavItemDelReq) returns (FavItemDelResp); + // + rpc FavoredInAnyFolders (FavoredInAnyFoldersReq) returns (FavoredInAnyFoldersResp); + // + rpc Medialist (MedialistReq) returns (MedialistResp); + // + rpc PickCardDetail (PickCardDetailReq) returns (PickCardDetailResp); + // + rpc PickFeed (PickFeedReq) returns (PickFeedResp); + // + rpc Ping (google.protobuf.Empty) returns (google.protobuf.Empty); + // + rpc PlayActionReport (PlayActionReportReq) returns (google.protobuf.Empty); + // + rpc PlayHistory (PlayHistoryReq) returns (PlayHistoryResp); + // + rpc PlayHistoryAdd (PlayHistoryAddReq) returns (google.protobuf.Empty); + // + rpc PlayHistoryDel (PlayHistoryDelReq) returns (google.protobuf.Empty); + // + rpc PlayURL (PlayURLReq) returns (PlayURLResp); + // + rpc Playlist (PlaylistReq) returns (PlaylistResp); + // + rpc PlaylistAdd (PlaylistAddReq) returns (google.protobuf.Empty); + // + rpc PlaylistDel (PlaylistDelReq) returns (google.protobuf.Empty); + // + rpc RcmdPlaylist (RcmdPlaylistReq) returns (RcmdPlaylistResp); + // + rpc ThumbUp (ThumbUpReq) returns (ThumbUpResp); + // + rpc TripleLike (TripleLikeReq) returns (TripleLikeResp); +} + +// +service Music { + // + rpc Click (ClickReq) returns (ClickResp); + // + rpc FavTabShow (FavTabShowReq) returns (FavTabShowResp); + // + rpc MainFavMusicMenuList (MainFavMusicMenuListReq) returns (MainFavMusicMenuListResp); + // + rpc MainFavMusicSubTabList (MainFavMusicSubTabListReq) returns (MainFavMusicSubTabListResp); + // + rpc MenuDelete (MenuDeleteReq) returns (MenuDeleteResp); + // + rpc MenuEdit (MenuEditReq) returns (MenuEditResp); + // + rpc MenuSubscribe (MenuSubscribeReq) returns (MenuSubscribeResp); +} + +// +message Author { + // + int64 mid = 1; + // + string name = 2; + // + string avatar = 3; + // + FollowRelation relation = 4; +} + +// +message BKArcDetailsReq { + // + repeated PlayItem items = 1; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 2; +} + +// +message BKArcDetailsResp { + // + repeated DetailItem list = 1; +} + +// +message BKArcPart { + // + int64 oid = 1; + // + int64 sub_id = 2; + // + string title = 3; + // + int64 duration = 4; + // + int32 page = 5; +} + +// +message BKArcRights { + // + int32 no_reprint = 1; +} + +// +message BKArchive { + // + int64 oid = 1; + // + string title = 2; + // + string cover = 3; + // + string desc = 4; + // + int64 duration = 5; + // + int32 rid = 6; + // + string rname = 7; + // + int64 publish = 8; + // + string displayed_oid = 9; + // + int32 copyright = 10; + // + BKArcRights rights = 11; +} + +// +message BKStat { + // + int32 like = 1; + // + int32 coin = 2; + // + int32 favourite = 3; + // + int32 reply = 4; + // + int32 share = 5; + // + int32 view = 6; + // + bool has_like = 7; + // + bool has_coin = 8; + // + bool has_fav = 9; + // + bool use_view_vt = 10; + // + string view_vt_text = 11; +} + +// +message CardModule { + // + oneof module { + // + PkcmHeader module_header = 2; + // + PkcmArchive module_archive = 3; + // + PkcmCenterButton module_cbtn = 4; + } + // + CardModuleType module_type = 1; +} + +// +enum CardModuleType { + // + Module_invalid = 0; + // + Module_header = 1; + // + Module_archive = 2; + // + Module_cbtn = 3; +} + +// +message ClickReq { + // + enum ClickAction { + // + INVALID = 0; + // + SHARE = 1; + } + + // + int64 sid = 1; + // + ClickReq.ClickAction action = 2; +} + +// +message ClickResp { +} + +// +message CoinAddReq { + // + PlayItem item = 1; + // + int32 num = 2; + // + bool thumb_up = 3; +} + +// +message CoinAddResp { + // + string message = 1; +} + +// +message DashItem { + // + int32 id = 1; + // + string base_url = 2; + // + repeated string backup_url = 3; + // + int32 bandwidth = 4; + // + string mime_type = 5; + // + string codecs = 6; + // + DashSegmentBase segment_base = 12; + // + int32 codecid = 13; + // + string md5 = 14; + // + int64 size = 15; +} + +// +message DashSegmentBase { + // + string initialization = 1; + // + string index_range = 2; +} + +// +message DetailItem { + // + PlayItem item = 1; + // + BKArchive arc = 2; + // + repeated BKArcPart parts = 3; + // + Author owner = 4; + // + BKStat stat = 5; + // + int64 last_part = 6; + // + int64 progress = 7; + // + int32 playable = 8; + // + string message = 9; + // + map player_info = 10; + // + PlayItem associated_item = 11; + // + int64 last_play_time = 12; + // + string history_tag = 13; + // + bilibili.app.interfaces.v1.DeviceType device_type = 14; + // + FavFolder ugc_season_info = 15; +} + +// +message EventReq { + // + enum EventType { + // + INVALID_EventType = 0; + // + GUIDE_BAR_SHOW = 1; + } + + // + EventReq.EventType event_type = 1; + // + PlayItem item = 2; +} + +// +message EventResp { +} + +// +message EventTracking { + // + string operator = 1; + // + string batch = 2; + // + string track_id = 3; + // + string entity_type = 4; + // + string entity_id = 5; + // + string track_json = 6; +} + +// +message FavFolder { + // + int64 fid = 1; + // + int32 folder_type = 2; + // + FavFolderAuthor owner = 3; + // + string name = 4; + // + string cover = 5; + // + string desc = 6; + // + int32 count = 7; + // + int32 attr = 8; + // + int32 state = 9; + // + int32 favored = 10; + // + int64 ctime = 11; + // + int64 mtime = 12; + // + int32 stat_fav_cnt = 13; + // + int32 stat_share_cnt = 14; + // + int32 stat_like_cnt = 15; + // + int32 stat_play_cnt = 16; + // + int32 stat_reply_cnt = 17; + // + int32 fav_state = 18; + // + bool use_view_vt = 19; + // + string view_vt_text = 20; +} + +// +message FavFolderAction { + // + enum Action { + // + UNSPECIFIED = 0; + // + ADD = 1; + // + DEL = 2; + } + + // + int64 fid = 1; + // + int32 folder_type = 2; + // + FavFolderAction.Action action = 3; +} + +// +message FavFolderAuthor { + // + int64 mid = 1; + // + string name = 2; +} + +// +message FavFolderCreateReq { + // + string name = 1; + // + string desc = 2; + // + int32 public = 3; + // + int32 folder_type = 4; +} + +// +message FavFolderCreateResp { + // + int64 fid = 1; + // + int32 folder_type = 2; + // + string message = 3; +} + +// +message FavFolderDeleteReq { + // + int64 fid = 1; + // + int32 folder_type = 2; +} + +// +message FavFolderDeleteResp { + // + string message = 1; +} + +// +message FavFolderDetailReq { + // + int64 fid = 1; + // + int32 folder_type = 2; + // + int64 fav_mid = 3; + // + FavItem last_item = 4; + // + int32 page_size = 5; + // + bool need_folder_info = 6; +} + +// +message FavFolderDetailResp { + // + int32 total = 1; + // + bool reach_end = 2; + // + repeated FavItemDetail list = 3; + // + FavFolder folder_info = 4; +} + +// +message FavFolderListReq { + // + repeated int32 folder_types = 1; + // + PlayItem item = 2; +} + +// +message FavFolderListResp { + // + repeated FavFolder list = 1; +} + +// +message FavFolderMeta { + // + int64 fid = 1; + // + int32 folder_type = 2; +} + +// +message FavItem { + // + int32 item_type = 1; + // + int64 oid = 2; + // + int64 fid = 3; + // + int64 mid = 4; + // + int64 mtime = 5; + // + int64 ctime = 6; + // + EventTracking et = 7; +} + +// +message FavItemAddReq { + // + oneof item { + // + PlayItem play = 3; + // + FavItem fav = 4; + } + // + int64 fid = 1; + // + int32 folder_type = 2; + // + bool is_fast_add_fav = 5; +} + +// +message FavItemAddResp { + // + string message = 1; +} + +// +message FavItemAuthor { + // + int64 mid = 1; + // + string name = 2; +} + +// +message FavItemBatchReq { + // + oneof item { + // + PlayItem play = 2; + // + FavItem fav = 3; + } + // + repeated FavFolderAction actions = 1; +} + +// +message FavItemBatchResp { + // + string message = 1; +} + +// +message FavItemDelReq { + // + oneof item { + // + PlayItem play = 3; + // + FavItem fav = 4; + } + // + int64 fid = 1; + // + int32 folder_type = 2; + // + bool is_fast_del_fav = 5; +} + +// +message FavItemDelResp { + // + string message = 1; +} + +// +message FavItemDetail { + // + FavItem item = 1; + // + FavItemAuthor owner = 2; + // + FavItemStat stat = 3; + // + string cover = 4; + // + string name = 5; + // + int64 duration = 6; + // + int32 state = 7; + // + string message = 8; + // + int32 parts = 9; +} + +// +message FavItemStat { + // + int32 view = 1; + // + int32 reply = 2; + // + bool use_view_vt = 3; + // + string view_vt_text = 4; +} + +// +message FavTabShowReq { + // + int64 mid = 1; +} + +// +message FavTabShowResp { + // + bool show_menu = 1; +} + +// +message FavoredInAnyFoldersReq { + // + repeated int32 folder_types = 1; + // + PlayItem item = 2; +} + +// +message FavoredInAnyFoldersResp { + // + repeated FavFolderMeta folders = 1; + // + PlayItem item = 2; +} + +// +message FollowRelation { + // + enum RelationStatus { + // + UNSPECIFIED_RelationStatus = 0; + // + NO_FOLLOW = 1; + // + FOLLOWING = 2; + // + FOLLOWED = 3; + // + MUTUAL_FOLLOWING = 4; + // + SPECIAL_FOLLOWING = 5; + } + + // + FollowRelation.RelationStatus status = 1; +} + +// +message FormatDescription { + // + int32 quality = 1; + // + string format = 2; + // + string description = 3; + // + string display_desc = 4; + // + string superscript = 5; +} + +// +enum ListOrder { + // + NO_ORDER = 0; + // + ORDER_NORMAL = 1; + // + ORDER_REVERSE = 2; + // + ORDER_RANDOM = 3; +} + +// +enum ListSortField { + // + NO_SORT = 0; + // + SORT_CTIME = 1; + // + SORT_VIEWCNT = 2; + // + SORT_FAVCNT = 3; +} + +// +message MainFavMusicMenuListReq { + // + int32 tab_type = 1; + // + string offset = 2; +} + +// +message MainFavMusicMenuListResp { + // + int32 tab_type = 1; + // + repeated MusicMenu menu_list = 2; + // + bool has_more = 3; + // + string offset = 4; +} + +// +message MainFavMusicSubTabListReq { +} + +// +message MainFavMusicSubTabListResp { + // + repeated MusicSubTab tabs = 1; + // + MainFavMusicMenuListResp default_tab_res = 2; + // + map first_page_res = 3; +} + +// +message MedialistItem { + // + PlayItem item = 1; + // + string title = 2; + // + string cover = 3; + // + int64 duration = 4; + // + int32 parts = 5; + // + int64 up_mid = 6; + // + string up_name = 7; + // + int32 state = 8; + // + string message = 9; + // + int64 stat_view = 10; + // + int64 stat_reply = 11; + // + bool use_stat_view_vt = 12; + // + string stat_view_vt_text = 13; +} + +// +message MedialistReq { + // + int64 list_type = 1; + // + int64 biz_id = 2; + // + string offset = 3; +} + +// +message MedialistResp { + // + int64 total = 1; + // + bool has_more = 2; + // + string offset = 3; + // + repeated MedialistItem items = 4; + // + MedialistUpInfo up_info = 5; +} + +// +message MedialistUpInfo { + // + int64 mid = 1; + // + string avatar = 2; + // + int64 fans = 3; + // + string name = 4; +} + +// +message MenuDeleteReq { + // + int64 id = 1; +} + +// +message MenuDeleteResp { + // + string message = 1; +} + +// +message MenuEditReq { + // + int64 id = 1; + // + string title = 2; + // + string desc = 3; + // + int32 is_public = 4; +} + +// +message MenuEditResp { + // + string message = 1; +} + +// +message MenuSubscribeReq { + // + enum SubscribeAction { + // + INVALID_SubscribeAction = 0; + // + ADD_SubscribeAction = 1; + // + DEL_SubscribeAction = 2; + } + + // + MenuSubscribeReq.SubscribeAction action = 1; + // + int64 target_id = 2; +} + +// +message MenuSubscribeResp { + // + string message = 1; +} + +// +message MusicMenu { + // + int64 id = 1; + // + int32 menu_type = 2; + // + string title = 3; + // + string desc = 4; + // + string cover = 5; + // + MusicMenuAuthor owner = 6; + // + int32 state = 7; + // + int64 attr = 8; + // + MusicMenuStat stat = 9; + // + int64 total = 10; + // + int64 ctime = 11; + // + string uri = 12; +} + +// +message MusicMenuAuthor { + // + int64 mid = 1; + // + string name = 2; + // + string avatar = 3; +} + +// +message MusicMenuStat { + // + int64 play = 1; + // + int64 reply = 2; +} + +// +message MusicSubTab { + // + string name = 1; + // + int32 tab_type = 2; + // + int64 total = 3; +} + +// +message PageOption { + // + enum Direction { + // + SCROLL_DOWN = 0; + // + SCROLL_UP = 1; + } + + // + int32 page_size = 1; + // + PageOption.Direction direction = 2; + // + PlayItem last_item = 3; +} + +// +message PickArchive { + // + PlayItem item = 1; + // + string title = 2; + // + PickArchiveAuthor owner = 3; + // + string cover = 4; + // + int64 duration = 5; + // + int32 parts = 6; + // + int32 stat_view = 7; + // + int32 stat_reply = 8; + // + int32 state = 9; + // + string message = 10; + // + bool use_stat_view_vt = 11; + // + string stat_view_vt_text = 12; +} + +// +message PickArchiveAuthor { + // + int64 mid = 1; + // + string name = 2; +} + +// +message PickCard { + // + int64 pick_id = 1; + // + int64 card_id = 2; + // + string card_name = 3; + // + repeated CardModule modules = 4; +} + +// +message PickCardDetailReq { + // + int64 card_id = 1; + // + int64 pick_id = 2; +} + +// +message PickCardDetailResp { + // + int64 card_id = 1; + // + int64 pick_id = 2; + // + repeated CardModule modules = 3; +} + +// +message PickFeedReq { + // + int64 offset = 1; +} + +// +message PickFeedResp { + // + int64 offset = 1; + // + repeated PickCard cards = 2; +} + +// +message PkcmArchive { + // + PickArchive arc = 1; + // + string pick_reason = 2; +} + +// +message PkcmCenterButton { + // + string icon_head = 1; + // + string icon_tail = 2; + // + string title = 3; + // + string uri = 4; +} + +// +message PkcmHeader { + // + string title = 1; + // + string desc = 2; + // + string btn_icon = 3; + // + string btn_text = 4; + // + string btn_uri = 5; +} + +// +message PlayActionReportReq { + // + PlayItem item = 1; + // + string from_spmid = 2; +} + +// +message PlayDASH { + // + int32 duration = 1; + // + float min_buffer_time = 2; + // + repeated DashItem audio = 3; +} + +// +message PlayHistoryAddReq { + // + PlayItem item = 1; + // + int64 progress = 2; + // + int64 duration = 3; + // + int32 play_style = 4; +} + +// +message PlayHistoryDelReq { + // + repeated PlayItem items = 1; + // + bool truncate = 2; +} + +// +message PlayHistoryReq { + // + PageOption page_opt = 1; + // + int64 local_today_zero = 2; + // + bilibili.pagination.Pagination pagination = 3; +} + +// +message PlayHistoryResp { + // + int32 total = 1; + // + bool reach_end = 2; + // + repeated DetailItem list = 3; + // + bilibili.pagination.PaginationReply pagination_reply = 4; +} + +// +message PlayInfo { + // + oneof info { + // + PlayURL play_url = 4; + // + PlayDASH play_dash = 5; + } + // + int32 qn = 1; + // + string format = 2; + // + int32 qn_type = 3; + // + int32 fnver = 6; + // + int32 fnval = 7; + // + repeated FormatDescription formats = 8; + // + int32 video_codecid = 9; + // + int64 length = 10; + // + int32 code = 11; + // + string message = 12; + // + int64 expire_time = 13; + // + bilibili.app.playurl.v1.VolumeInfo volume = 14; +} + +// +message PlayItem { + // + int32 item_type = 1; + // + int64 oid = 3; + // + repeated int64 sub_id = 4; + // + EventTracking et = 5; + // + int64 pos = 6; +} + +// +message PlayURL { + // + repeated ResponseUrl durl = 1; +} + +// +message PlayURLReq { + // + PlayItem item = 1; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 2; +} + +// +message PlayURLResp { + // + PlayItem item = 1; + // + int32 playable = 2; + // + string message = 3; + // + map player_info = 4; +} + +// +message PlaylistAddReq { + // + oneof pos { + // + PlayItem after = 2; + // + bool head = 3; + // + bool tail = 4; + } + // + repeated PlayItem items = 1; +} + +// +message PlaylistDelReq { + // + repeated PlayItem items = 1; + // + bool truncate = 2; +} + +// +message PlaylistOffset { + // + enum PlaylistScrollDirection { + // + DOWN = 0; + // + UP = 1; + } + + // + PlaylistOffset.PlaylistScrollDirection direction = 1; + // + PlayItem last_item = 2; + // + RandomOrderStatus random_state = 3; + // + SortOption sort_opt = 4; +} + +// +message PlaylistReq { + // + PlaylistSource from = 1; + // + int64 id = 2; + // + PlayItem anchor = 3; + // + PageOption page_opt = 4; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5; + // + int64 extra_id = 6; + // + SortOption sort_opt = 7; + // + bilibili.pagination.Pagination pagination = 8; +} + +// +message PlaylistResp { + // + int32 total = 1; + // + bool reach_start = 2; + // + bool reach_end = 3; + // + repeated DetailItem list = 4; + // + PlayItem last_play = 5; + // + int64 last_progress = 6; + // + bilibili.pagination.PaginationReply pagination_reply = 7; +} + +// +enum PlaylistSource { + // + DEFAULT = 0; + // + MEM_SPACE = 1; + // + AUDIO_COLLECTION = 2; + // + AUDIO_CARD = 3; + // + USER_FAVOURITE = 4; + // + UP_ARCHIVE = 5; + // + AUDIO_CACHE = 6; + // + PICK_CARD = 7; + // + MEDIA_LIST = 8; +} + +// +message RandomOrderStatus { + // + repeated int64 exposed_pos = 1; +} + +// +message RcmdOffset { + // + int64 rcmd_from = 1; + // + int64 id = 2; + // + int32 page = 3; + // + string session_id = 4; + // + string from_trackid = 5; +} + +// +message RcmdPlaylistReq { + // + enum RcmdFrom { + // + UNSPECIFIED_RcmdFrom = 0; + // + UP_ARCHIVE_RcmdFrom = 1; + // + INDEX_ENTRY = 2; + // + ARCHIVE_VIEW = 3; + } + + // + RcmdPlaylistReq.RcmdFrom from = 1; + // + int64 id = 2; + // + bool need_history = 3; + // + bool need_top_cards = 4; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5; + // + bilibili.pagination.Pagination page = 6; + // + map annotations = 7; +} + +// +message RcmdPlaylistResp { + // + repeated DetailItem list = 1; + // + int64 history_len = 2; + // + repeated TopCard top_cards = 3; + // + bilibili.pagination.PaginationReply next_page = 4; +} + +// +message ResponseUrl { + // + int32 order = 1; + // + int64 length = 2; + // + int64 size = 3; + // + string ahead = 4; + // + string vhead = 5; + // + string url = 6; + // + repeated string backup_url = 7; + // + string md5 = 8; +} + +// +message SortOption { + // + ListOrder order = 1; + // + ListSortField sort_field = 2; + // + bool is_switching = 3; +} + +// +message ThumbUpReq { + // + enum ThumbType { + // + LIKE = 0; + // + CANCEL_LIKE = 1; + // + DISLIKE = 2; + // + CANCEL_DISLIKE = 3; + } + + // + PlayItem item = 1; + // + ThumbUpReq.ThumbType action = 2; +} + +// +message ThumbUpResp { + // + string message = 1; +} + +// +message TopCard { + // + enum PlayStrategy { + // + NO_INTERRUPT = 0; + // + PLAY_TARGET = 1; + // + PLAY_FIRST = 2; + } + + // + oneof card { + // + TpcdHistory listen_history = 4; + // + TpcdFavFolder fav_folder = 5; + // + TpcdUpRecall up_recall = 6; + // + TpcdPickToday pick_today = 7; + } + // + string title = 1; + // + TopCard.PlayStrategy play_style = 2; + // + TopCardType card_type = 3; + // + int64 pos = 8; + // + string title_icon = 9; +} + +// +enum TopCardType { + // + UNSPECIFIED_TopCardType = 0; + // + LISTEN_HISTORY = 1; + // + FAVORITE_FOLDER = 2; + // + UP_RECALL = 3; + // + PICK_TODAY = 4; +} + +// +message TpcdFavFolder { + // + DetailItem item = 1; + // + string text = 2; + // + string pic = 3; + // + int64 fid = 4; + // + int32 folder_type = 5; +} + +// +message TpcdHistory { + // + DetailItem item = 1; + // + string text = 2; + // + string pic = 3; +} + +// +message TpcdPickToday { + // + DetailItem item = 1; + // + string text = 2; + // + string pic = 3; + // + int64 pick_id = 4; + // + int64 pick_card_id = 5; +} + +// +message TpcdUpRecall { + // + int64 up_mid = 1; + // + string text = 2; + // + string avatar = 3; + // + int64 medialist_type = 4; + // + int64 medialist_biz_id = 5; + // + DetailItem item = 6; +} + +// +message TripleLikeReq { + // + PlayItem item = 1; +} + +// +message TripleLikeResp { + // + string message = 1; + // + bool thumb_ok = 2; + // + bool coin_ok = 3; + // + bool fav_ok = 4; +} + diff --git a/proto/bilibili/app/mine/v1.proto b/proto/bilibili/app/mine/v1.proto new file mode 100644 index 0000000..1ba30b3 --- /dev/null +++ b/proto/bilibili/app/mine/v1.proto @@ -0,0 +1,279 @@ +syntax = "proto3"; + +package bilibili.app.mine.v1; + +import "bilibili/app/dynamic/v2.proto"; +import "google/protobuf/empty.proto"; + +// +service Mine { + // + rpc DisplayReport (DisplayReportReq) returns (google.protobuf.Empty); + // + rpc PubModule (PubModuleReq) returns (PubModuleResp); +} + +// +message Arc { + // + string date = 1; + // + Stat stat = 2; + // + string cover = 3; + // + int64 duration = 4; + // + int64 aid = 5; + // + int64 cid = 6; + // + ArcState state = 7; +} + +// +enum ArcState { + // + STATE_UNKNOWN = 0; + // + OPEN = 1; + // + ORANGE = 2; + // + WAIT = 3; + // + RECICLE = 4; + // + LOCK = 5; + // + FIXED = 6; + // + USER_DELAY = 7; + // + FAST_PUB = 8; + // + XCODE_FAIL = 9; +} + +// +message Button { + // + string light_icon = 1; + // + string dark_icon = 2; + // + string url = 3; + // + string text = 4; +} + +// +message CardMore { + // + Button button = 1; +} + +// +message CardOpus { + // + bilibili.app.dynamic.v2.Paragraph word_paragraph = 1; + // + string cover = 2; + // + string url = 3; + // + SubTitleWithStat stat_title = 4; + // + Stat stat = 5; + // + string date = 6; + // + int64 dyn_id = 7; + // + bool has_share = 8; + // + OpusState state = 9; +} + +// +message CardPubGuide { + // + Title title = 1; + // + Button button = 2; + // + repeated PubGuideMaterial material = 3; + // + Button more_button = 4; +} + +// +enum CardType { + // + CARD_UNKNOWN = 0; + // + PUBGUIDE = 1; + // + UGC = 2; + // + OPUS = 3; + // + MORE = 4; +} + +// +message CardUGC { + // + oneof subtitle { + // + SubTitleWithButton button_title = 3; + // + SubTitleWithStat stat_title = 4; + } + // + string title = 1; + // + Color title_color = 2; + // + Arc arc = 5; + // + string url = 6; + // + bool has_share = 7; + // + string archive_video_audit_json = 8; +} + +// +message Color { + // + string light_color = 1; + // + string dark_color = 2; +} + +// +enum DisplayPos { + // + UNKNOWN_DISPLAYTYPE = 0; + // + VIP_BUTTON_STATIC = 1; + // + VIP_BUTTON_DYNAMIC = 2; + // + VIP_BUTTON_BIRTHDAY = 3; + // + VIP_BACKGROUND = 4; +} + +// +message DisplayReportReq { + // + message ReportContent { + // + int64 times = 1; + // + DisplayPos pos = 2; + } + + // + repeated DisplayReportReq.ReportContent content = 1; +} + +// +enum OpusState { + // + OPUS_UNKNOWN = 0; + // + OPUS_OPEN = 1; + // + OPUS_NO_FORWARD = 2; +} + +// +message PubCard { + // + oneof card { + // + CardPubGuide pub_guide = 1; + // + CardUGC ugc = 2; + // + CardOpus opus = 3; + // + CardMore more = 4; + } + // + CardType type = 5; +} + +// +message PubGuideMaterial { + // + int64 id = 1; + // + Title title = 2; + // + string cover = 3; + // + string url = 4; +} + +// +message PubModuleReq { + // + int64 user_original_state = 1; + // + repeated int64 dyn_ids = 2; + // + int64 card_num = 3; +} + +// +message PubModuleResp { + // + repeated PubCard pub_card = 1; +} + +// +message Stat { + // + string play_icon = 1; + // + string play = 2; + // + string like_icon = 3; + // + string like = 4; +} + +// +message SubTitleWithButton { + // + string icon = 1; + // + string url = 2; + // + Color background_color = 3; + // + string text = 4; + // + Color text_color = 5; +} + +// +message SubTitleWithStat { + // + repeated string icon = 1; + // + string text = 2; +} + +// +message Title { + // + string main = 1; + // + string sub = 2; +} + diff --git a/proto/bilibili/app/playeronline/v1.proto b/proto/bilibili/app/playeronline/v1.proto new file mode 100644 index 0000000..70797ca --- /dev/null +++ b/proto/bilibili/app/playeronline/v1.proto @@ -0,0 +1,72 @@ +syntax = "proto3"; + +package bilibili.app.playeronline.v1; + +// +service PlayerOnline { + // + rpc PlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply); + // + rpc PremiereInfo (PremiereInfoReq) returns (PremiereInfoReply); + // + rpc ReportWatch (ReportWatchReq) returns (NoReply); +} + +// +message NoReply { +} + +// +message PlayerOnlineReply { + // + string total_text = 1; + // + int64 sec_next = 2; + // + bool bottom_show = 3; + // + bool sdm_show = 4; + // + string sdm_text = 5; + // + int64 total_number = 6; + // + string total_number_text = 7; +} + +// +message PlayerOnlineReq { + // + int64 aid = 1; + // + int64 cid = 2; + // + bool play_open = 3; +} + +// +message PremiereInfoReply { + // + string premiere_over_text = 1; + // + int64 participant = 2; + // + int64 interaction = 3; +} + +// +message PremiereInfoReq { + // + int64 aid = 1; +} + +// +message ReportWatchReq { + // + int64 aid = 1; + // + string biz = 2; + // + string buvid = 3; +} + diff --git a/proto/bilibili/app/playerunite/pgcanymodel.proto b/proto/bilibili/app/playerunite/pgcanymodel.proto new file mode 100644 index 0000000..4e03fc0 --- /dev/null +++ b/proto/bilibili/app/playerunite/pgcanymodel.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package bilibili.app.playerunite.pgcanymodel; + +import "bilibili/pgc/gateway/player/v2.proto"; + +// +message PGCAnyModel { + // + bilibili.pgc.gateway.player.v2.PlayViewBusinessInfo business = 3; + // + bilibili.pgc.gateway.player.v2.Event event = 4; + // + bilibili.pgc.gateway.player.v2.ViewInfo view_info = 5; + // + bilibili.pgc.gateway.player.v2.PlayAbilityExtConf play_ext_conf = 6; + // + bilibili.pgc.gateway.player.v2.PlayExtInfo play_ext_info = 7; +} + diff --git a/proto/bilibili/app/playerunite/pugvanymodel.proto b/proto/bilibili/app/playerunite/pugvanymodel.proto new file mode 100644 index 0000000..bd20a01 --- /dev/null +++ b/proto/bilibili/app/playerunite/pugvanymodel.proto @@ -0,0 +1,112 @@ +syntax = "proto3"; + +package bilibili.app.playerunite.pugvanymodel; + +// +message ButtonStyle { + // + string text = 1; + // + string text_color = 2; + // + string bg_color = 3; + // + string jump_link = 4; +} + +// +message ClipInfo { + // + ClipType clip_type = 1; + // + int64 material_no = 2; + // + int32 start = 3; + // + int32 end = 4; +} + +// +enum ClipType { + // + CLIP_TYPE_UNSPECIFIED = 0; + // + CLIP_TYPE_HE = 1; +} + +// +enum EpisodeStatus { + // + EPISODE_STATUS_UNSPECIFIED = 0; + // + EPISODE_STATUS_TRY_WATCH_WHOLE = 1; + // + EPISODE_STATUS_NOT_TRY_WATCH = 2; + // + EPISODE_STATUS_TRY_WATCH_5_MINUTES = 3; +} + +// +message PUGVAnyModel { + // + int64 season_id = 1; + // + int64 episode_id = 2; + // + EpisodeStatus status = 3; + // + RiskControl risk_control = 4; + // + PlayerMask player_mask = 5; + // + ClipInfo clip_info = 6; + // + PlayLimit play_limit = 7; +} + +// +message PlayLimit { + // + PlayLimitCode code = 1; + // + string message = 2; + // + string sub_message = 3; + // + ButtonStyle button = 4; +} + +// +enum PlayLimitCode { + // + PLC_UNKNOWN = 0; + // + PLC_DRM_NOT_LOGIN = 1; +} + +// +message PlayerMask { + // + string title = 1; + // + string prefix = 2; + // + string suffix = 3; +} + +// +message RiskControl { + // + bool need_send_sms = 1; + // + string title = 2; + // + string risk_message = 3; + // + string action_desc = 4; + // + string send_sms_url = 5; + // + string buvid = 6; +} + diff --git a/proto/bilibili/app/playerunite/ugcanymodel.proto b/proto/bilibili/app/playerunite/ugcanymodel.proto new file mode 100644 index 0000000..a222b37 --- /dev/null +++ b/proto/bilibili/app/playerunite/ugcanymodel.proto @@ -0,0 +1,78 @@ +syntax = "proto3"; + +package bilibili.app.playerunite.ugcanymodel; + +// +message ButtonStyle { + // + string text = 1; + // + string text_color = 2; + // + string bg_color = 3; + // + string jump_link = 4; +} + +// +message Clip { + // + ClipInfo clip_info = 1; +} + +// +message ClipInfo { + // + ClipType clip_type = 1; + // + int64 material_no = 2; + // + int64 start = 3; + // + int64 end = 4; +} + +// +enum ClipType { + // + CLIP_TYPE_UNSPECIFIED = 0; + // + CLIP_TYPE_HE = 1; +} + +// +message PlayLimit { + // + PlayLimitCode code = 1; + // + string message = 2; + // + string sub_message = 3; + // + ButtonStyle button = 4; +} + +// +enum PlayLimitCode { + // + PLC_UNKNOWN = 0; + // + PLC_UGCNOTPAYED = 1; + // + PLC_ChargingPlusNotPass = 2; + // + PLC_ChargingPlusUpgrade = 3; + // + PLC_ChargingPlusReject = 4; + // + PLC_COMMON_CODE = 5; +} + +// +message UGCAnyModel { + // + PlayLimit play_limit = 1; + // + Clip clip = 3; +} + diff --git a/proto/bilibili/app/playerunite/v1.proto b/proto/bilibili/app/playerunite/v1.proto new file mode 100644 index 0000000..2455b1e --- /dev/null +++ b/proto/bilibili/app/playerunite/v1.proto @@ -0,0 +1,121 @@ +syntax = "proto3"; + +package bilibili.app.playerunite.v1; + +import "bilibili/playershared.proto"; +import "google/protobuf/any.proto"; + +// +service Player { + // + rpc PlayAddition (PlayAdditionReq) returns (PlayAdditionReply); + // + rpc PlayHalfChannels (PlayHalfChannelsReq) returns (PlayHalfChannelsReply); + // + rpc PlayViewUnite (PlayViewUniteReq) returns (PlayViewUniteReply); +} + +// +message PlayAdditionReply { + // + UgcViewInfoMaterial ugc_view_info_material = 1; +} + +// +message PlayAdditionReq { +} + +// +message PlayHalfChannelsReply { + // + repeated bilibili.playershared.SettingGroup groups = 1; +} + +// +message PlayHalfChannelsReq { + // + int64 aid = 1; + // + int64 cid = 2; + // + map extra_content = 3; + // + string from_scene = 4; + // + ResourceType resource_type = 5; +} + +// +message PlayViewUniteReply { + // + bilibili.playershared.VodInfo vod_info = 1; + // + bilibili.playershared.PlayArcConf play_arc_conf = 2; + // + bilibili.playershared.PlayDeviceConf play_device_conf = 3; + // + bilibili.playershared.Event event = 4; + // + google.protobuf.Any supplement = 5; + // + bilibili.playershared.PlayArc play_arc = 6; + // + bilibili.playershared.QnTrialInfo qn_trial_info = 7; + // + bilibili.playershared.History history = 8; + // + bilibili.playershared.ViewInfo view_info = 9; + // + bilibili.playershared.FragmentVideo fragment_video = 10; + // + bilibili.playershared.VideoCtrl video_ctrl = 11; +} + +// +message PlayViewUniteReq { + // + bilibili.playershared.VideoVod vod = 1; + // + string spmid = 2; + // + string from_spmid = 3; + // + map extra_content = 4; + // + string bvid = 5; + // + string ad_extra = 6; + // + bilibili.playershared.Fragment fragment = 7; + // + string from_scene = 8; + // + bilibili.playershared.PlayCtrl play_ctrl = 9; +} + +// +enum ResourceType { + // + RESOURCE_TYPE_DEFAULT = 0; + // + RESOURCE_TYPE_OPUS = 1; +} + +// +message UgcViewInfoMaterial { + // + string title = 1; + // + string btn_text = 2; + // + string btn_url = 3; + // + int32 btn_jump_type = 4; + // + string desc_text = 5; + // + string desc_url = 6; + // + map track = 7; +} + diff --git a/proto/bilibili/app/playurl/v1.proto b/proto/bilibili/app/playurl/v1.proto new file mode 100644 index 0000000..55c7820 --- /dev/null +++ b/proto/bilibili/app/playurl/v1.proto @@ -0,0 +1,993 @@ +syntax = "proto3"; + +package bilibili.app.playurl.v1; + +// +service PlayURL { + // + rpc PlayConf (PlayConfReq) returns (PlayConfReply); + // + rpc PlayConfEdit (PlayConfEditReq) returns (PlayConfEditReply); + // + rpc PlayURL (PlayURLReq) returns (PlayURLReply); + // + rpc PlayView (PlayViewReq) returns (PlayViewReply); + // + rpc Project (ProjectReq) returns (ProjectReply); +} + +// +message AB { + // + Glance glance = 1; + // + Group group = 2; +} + +// +message ArcConf { + // + bool is_support = 1; + // + bool disabled = 2; + // + ExtraContent extra_content = 3; + // + repeated int64 unsupport_scene = 4; +} + +// +enum Business { + // + UNKNOWN = 0; + // + STORY = 1; +} + +// +enum ButtonAction { + // + BUTTON_UNKNOWN = 0; + // + CHARGINGPLUS = 1; +} + +// +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; + // + Report report = 8; + // + string frame_color = 9; + // + string icon = 10; +} + +// +message ButtonStyle { + // + string text = 1; + // + string text_color = 2; + // + string bg_color = 3; + // + string jump_link = 4; +} + +// +message Chronos { + // + string md5 = 1; + // + string file = 2; +} + +// +message CloudConf { + // + bool show = 1; + // + ConfType conf_type = 2; + // + FieldValue field_value = 3; + // + ConfValue conf_value = 4; +} + +// +enum CodeType { + // + NOCODE = 0; + // + CODE264 = 1; + // + CODE265 = 2; + // + CODEAV1 = 3; +} + +// +message ComprehensiveToast { + // + ToastType type = 1; + // + ButtonInfo button = 2; + // + string icon = 3; + // + TextInfo toast_text = 4; + // + Report report = 5; +} + +// +enum ConfType { + // + NoType = 0; + // + FLIPCONF = 1; + // + CASTCONF = 2; + // + FEEDBACK = 3; + // + SUBTITLE = 4; + // + PLAYBACKRATE = 5; + // + TIMEUP = 6; + // + PLAYBACKMODE = 7; + // + SCALEMODE = 8; + // + BACKGROUNDPLAY = 9; + // + LIKE = 10; + // + DISLIKE = 11; + // + COIN = 12; + // + ELEC = 13; + // + SHARE = 14; + // + SCREENSHOT = 15; + // + LOCKSCREEN = 16; + // + RECOMMEND = 17; + // + PLAYBACKSPEED = 18; + // + DEFINITION = 19; + // + SELECTIONS = 20; + // + NEXT = 21; + // + EDITDM = 22; + // + SMALLWINDOW = 23; + // + SHAKE = 24; + // + OUTERDM = 25; + // + INNERDM = 26; + // + PANORAMA = 27; + // + DOLBY = 28; + // + COLORFILTER = 29; + // + LOSSLESS = 30; +} + +// +message ConfValue { + // + oneof value { + // + bool switch_val = 1; + // + int64 selected_val = 2; + } +} + +// +message DashItem { + // + int32 id = 1; + // + string base_url = 2; + // + repeated string backup_url = 3; + // + int32 bandwidth = 4; + // + int32 codecid = 5; + // + string md5 = 6; + // + int64 size = 7; + // + string frame_rate = 8; + // + string widevine_pssh = 9; + // + string bilidrm_uri = 10; +} + +// +message DashVideo { + // + string base_url = 1; + // + repeated string backup_url = 2; + // + int32 bandwidth = 3; + // + int32 codecid = 4; + // + string md5 = 5; + // + int64 size = 6; + // + int32 audio_id = 7; + // + bool no_rexcode = 8; + // + string frame_rate = 9; + // + int32 width = 10; + // + int32 height = 11; + // + string widevine_pssh = 12; + // + string bilidrm_uri = 13; +} + +// +message Dialog { + // + GuideStyle style_type = 1; + // + Report report = 2; + // + TextInfo title = 3; + // + TextInfo subtitle = 4; + // + repeated ButtonInfo button = 5; +} + +// +message DolbyItem { + // + enum Type { + // + NONE = 0; + // + COMMON = 1; + // + ATMOS = 2; + } + + // + DolbyItem.Type type = 1; + // + repeated DashItem audio = 2; +} + +// +message Event { + // + Shake shake = 1; +} + +// +message ExtraContent { + // + string disabled_reason = 1; + // + int64 disabled_code = 2; +} + +// +message FieldValue { + // + oneof value { + // + bool switch = 1; + } +} + +// +message FormatDescription { + // + int32 quality = 1; + // + string format = 2; + // + string description = 3; + // + string new_description = 4; + // + string display_desc = 5; + // + string superscript = 6; +} + +// +message Glance { + // + bool can_watch = 1; + // + int64 times = 2; + // + int64 duration = 3; +} + +// +enum Group { + // + UnknownGroup = 0; + // + A = 1; + // + B = 2; + // + C = 3; +} + +// +enum GuideStyle { + // + STYLE_UNKNOWN = 0; + // + CHARGING_TEXT = 1; +} + +// +message LossLessItem { + // + bool is_lossless_audio = 1; + // + DashItem audio = 2; + // + bool need_vip = 3; +} + +// +message MultiDashVideo { + // + repeated DashVideo dash_videos = 1; +} + +// +message PlayAbilityConf { + // + CloudConf background_play_conf = 1; + // + CloudConf flip_conf = 2; + // + CloudConf cast_conf = 3; + // + CloudConf feedback_conf = 4; + // + CloudConf subtitle_conf = 5; + // + CloudConf playback_rate_conf = 6; + // + CloudConf time_up_conf = 7; + // + CloudConf playback_mode_conf = 8; + // + CloudConf scale_mode_conf = 9; + // + CloudConf like_conf = 10; + // + CloudConf dislike_conf = 11; + // + CloudConf coin_conf = 12; + // + CloudConf elec_conf = 13; + // + CloudConf share_conf = 14; + // + CloudConf screen_shot_conf = 15; + // + CloudConf lock_screen_conf = 16; + // + CloudConf recommend_conf = 17; + // + CloudConf playback_speed_conf = 18; + // + CloudConf definition_conf = 19; + // + CloudConf selections_conf = 20; + // + CloudConf next_conf = 21; + // + CloudConf edit_dm_conf = 22; + // + CloudConf small_window_conf = 23; + // + CloudConf shake_conf = 24; + // + CloudConf outer_dm_conf = 25; + // + CloudConf inner_dm_conf = 26; + // + CloudConf panorama_conf = 27; + // + CloudConf dolby_conf = 28; + // + CloudConf color_filter_conf = 29; + // + CloudConf loss_less_conf = 30; +} + +// +message PlayArc { + // + bool is_preview = 1; +} + +// +message PlayArcConf { + // + ArcConf background_play_conf = 1; + // + ArcConf flip_conf = 2; + // + ArcConf cast_conf = 3; + // + ArcConf feedback_conf = 4; + // + ArcConf subtitle_conf = 5; + // + ArcConf playback_rate_conf = 6; + // + ArcConf time_up_conf = 7; + // + ArcConf playback_mode_conf = 8; + // + ArcConf scale_mode_conf = 9; + // + ArcConf like_conf = 10; + // + ArcConf dislike_conf = 11; + // + ArcConf coin_conf = 12; + // + ArcConf elec_conf = 13; + // + ArcConf share_conf = 14; + // + ArcConf screen_shot_conf = 15; + // + ArcConf lock_screen_conf = 16; + // + ArcConf recommend_conf = 17; + // + ArcConf playback_speed_conf = 18; + // + ArcConf definition_conf = 19; + // + ArcConf selections_conf = 20; + // + ArcConf next_conf = 21; + // + ArcConf edit_dm_conf = 22; + // + ArcConf small_window_conf = 23; + // + ArcConf shake_conf = 24; + // + ArcConf outer_dm_conf = 25; + // + ArcConf inner_dm_conf = 26; + // + ArcConf panorama_conf = 27; + // + ArcConf dolby_conf = 28; + // + ArcConf screen_recording_conf = 29; + // + ArcConf color_filter_conf = 30; + // + ArcConf loss_less_conf = 31; + // + ArcConf system_record_conf = 32; +} + +// +message PlayConfEditReply { +} + +// +message PlayConfEditReq { + // + repeated PlayConfState play_conf = 1; +} + +// +message PlayConfReply { + // + PlayAbilityConf play_conf = 1; +} + +// +message PlayConfReq { +} + +// +message PlayConfState { + // + ConfType conf_type = 1; + // + bool show = 2; + // + FieldValue field_value = 3; + // + ConfValue conf_value = 4; +} + +// +enum PlayErr { + // + NoErr = 0; + // + WithMultiDeviceLoginErr = 1; +} + +// +message PlayLimit { + // + PlayLimitCode code = 1; + // + string message = 2; + // + string sub_message = 3; + // + ButtonStyle button = 4; +} + +// +enum PlayLimitCode { + // + PLCUnkown = 0; + // + PLCUgcNotPayed = 1; + // + PLCChargingPlusNotPass = 2; + // + PLCChargingPlusUpgrade = 3; +} + +// +message PlayURLReply { + // + int32 quality = 1; + // + string format = 2; + // + int64 timelength = 3; + // + int32 video_codecid = 4; + // + int32 fnver = 5; + // + int32 fnval = 6; + // + bool video_project = 7; + // + repeated ResponseUrl durl = 8; + // + ResponseDash dash = 9; + // + int32 no_rexcode = 10; + // + UpgradeLimit upgrade_limit = 11; + // + repeated FormatDescription support_formats = 12; + // + VideoType type = 13; + // + VipRisk vip_risk = 14; +} + +// +message PlayURLReq { + // + int64 aid = 1; + // + int64 cid = 2; + // + int64 qn = 3; + // + int32 fnver = 4; + // + int32 fnval = 5; + // + int32 download = 6; + // + int32 force_host = 7; + // + bool fourk = 8; + // + string spmid = 9; + // + string from_spmid = 10; +} + +// +message PlayViewReply { + // + VideoInfo video_info = 1; + // + PlayAbilityConf play_conf = 2; + // + UpgradeLimit upgrade_limit = 3; + // + Chronos chronos = 4; + // + PlayArcConf play_arc = 5; + // + Event event = 6; + // + AB ab = 7; + // + PlayLimit play_limit = 8; + // + ViewInfo view_info = 9; + // + PlayArc arc = 10; +} + +// +message PlayViewReq { + // + int64 aid = 1; + // + int64 cid = 2; + // + int64 qn = 3; + // + int32 fnver = 4; + // + int32 fnval = 5; + // + int32 download = 6; + // + int32 force_host = 7; + // + bool fourk = 8; + // + string spmid = 9; + // + string from_spmid = 10; + // + int32 teenagers_mode = 11; + // + CodeType prefer_codec_type = 12; + // + Business business = 13; + // + int64 voice_balance = 14; +} + +// +message ProjectReply { + // + PlayURLReply project = 1; +} + +// +message ProjectReq { + // + int64 aid = 1; + // + int64 cid = 2; + // + int64 qn = 3; + // + int32 fnver = 4; + // + int32 fnval = 5; + // + int32 download = 6; + // + int32 force_host = 7; + // + bool fourk = 8; + // + string spmid = 9; + // + string from_spmid = 10; + // + int32 protocol = 11; + // + int32 device_type = 12; +} + +// +message PromptBar { + // + TextInfo title = 1; + // + TextInfo sub_title = 2; + // + string sub_title_icon = 3; + // + string bg_image = 4; + // + repeated ButtonInfo button = 5; + // + Report report = 6; +} + +// +message Report { + // + string show_event_id = 1; + // + string click_event_id = 2; + // + string extends = 3; +} + +// +message ResponseDash { + // + repeated DashItem video = 1; + // + repeated DashItem audio = 2; +} + +// +message ResponseUrl { + // + int32 order = 1; + // + int64 length = 2; + // + int64 size = 3; + // + string url = 4; + // + repeated string backup_url = 5; + // + string md5 = 6; + // + int32 quality = 7; +} + +// +message Scheme { + // + enum ActionType { + // + UNKNOWN_ActionType = 0; + // + SHOW_TOAST = 1; + } + + // + Scheme.ActionType action_type = 1; + // + string toast = 2; +} + +// +message SegmentVideo { + // + repeated ResponseUrl segment = 1; +} + +// +message Shake { + // + string file = 1; +} + +// +message Stream { + // + oneof content { + // + DashVideo dash_video = 2; + // + SegmentVideo segment_video = 3; + // + MultiDashVideo multi_dash_video = 4; + } + // + StreamInfo stream_info = 1; +} + +// +message StreamInfo { + // + int32 quality = 1; + // + string format = 2; + // + string description = 3; + // + PlayErr err_code = 4; + // + StreamLimit limit = 5; + // + bool need_vip = 6; + // + bool need_login = 7; + // + bool intact = 8; + // + bool no_rexcode = 9; + // + int64 attribute = 10; + // + string new_description = 11; + // + string display_desc = 12; + // + string superscript = 13; + // + bool vip_free = 14; + // + string subtitle = 15; + // + Scheme scheme = 16; + // + bool support_drm = 17; + // + bool has_preview = 18; +} + +// +message StreamLimit { + // + string title = 1; + // + string uri = 2; + // + string msg = 3; +} + +// +message TextInfo { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; +} + +// +enum ToastType { + // + TOAST_TYPE_UNKNOWN = 0; + // + CHARGING_TOAST = 1; +} + +// +message UpgradeButton { + // + string title = 1; + // + string link = 2; +} + +// +message UpgradeLimit { + // + int32 code = 1; + // + string message = 2; + // + string image = 3; + // + UpgradeButton button = 4; +} + +// +message VideoInfo { + // + int32 quality = 1; + // + string format = 2; + // + int64 timelength = 3; + // + int32 video_codecid = 4; + // + repeated Stream stream_list = 5; + // + repeated DashItem dash_audio = 6; + // + DolbyItem dolby = 7; + // + VolumeInfo volume = 8; + // + LossLessItem loss_less_item = 9; + // + int64 main_timelength = 10; +} + +// +enum VideoType { + // + Unknown = 0; + // + FLV = 1; + // + DASH = 2; + // + MP4 = 3; +} + +// +message ViewInfo { + // + map dialog_map = 1; + // + PromptBar prompt_bar = 2; + // + repeated ComprehensiveToast toasts = 3; +} + +// +message VipRisk { + // + bool allow = 1; + // + int64 type = 2; + // + int64 reason = 3; + // + int64 device_status = 4; +} + +// +message VolumeInfo { + // + double measured_i = 1; + // + double measured_lra = 2; + // + double measured_tp = 3; + // + double measured_threshold = 4; + // + double target_offset = 5; + // + double target_i = 6; + // + double target_tp = 7; + // + map multi_scene_args = 8; +} + diff --git a/proto/bilibili/app/resource/privacy/v1.proto b/proto/bilibili/app/resource/privacy/v1.proto new file mode 100644 index 0000000..0287cef --- /dev/null +++ b/proto/bilibili/app/resource/privacy/v1.proto @@ -0,0 +1,64 @@ +syntax = "proto3"; + +package bilibili.app.resource.privacy.v1; + +// +service Privacy { + // + rpc PrivacyConfig (NoArgRequest) returns (PrivacyConfigReply); + // + rpc SetPrivacyConfig (SetPrivacyConfigRequest) returns (NoReply); +} + +// +message NoArgRequest { +} + +// +message NoReply { +} + +// +message PrivacyConfigItem { + // + PrivacyConfigType privacy_config_type = 1; + // + string title = 2; + // + PrivacyConfigState state = 3; + // + string sub_title = 4; + // + string sub_title_uri = 5; +} + +// +message PrivacyConfigReply { + // + repeated PrivacyConfigItem privacy_config_item = 1; +} + +// +enum PrivacyConfigState { + // + close = 0; + // + open = 1; +} + +// +enum PrivacyConfigType { + // + none = 0; + // + dynamic_city = 1; +} + +// +message SetPrivacyConfigRequest { + // + PrivacyConfigType privacy_config_type = 1; + // + PrivacyConfigState state = 2; +} + diff --git a/proto/bilibili/app/resource/v1.proto b/proto/bilibili/app/resource/v1.proto new file mode 100644 index 0000000..f93343a --- /dev/null +++ b/proto/bilibili/app/resource/v1.proto @@ -0,0 +1,272 @@ +syntax = "proto3"; + +package bilibili.app.resource.v1; + +// +service LegacyResource { + // + rpc Download (DownloadReq) returns (DownloadReply); +} + +// +service Module { + // + rpc List (ListReq) returns (ListReply); +} + +// +enum CompressType { + // + Unzip = 0; + // + Original = 1; +} + +// +message Download { + // + string type = 1; + // + string extra_value = 2; + // + repeated ResourceItem list = 3; +} + +// +message DownloadReply { + // + string ver = 1; + // + repeated Download resource = 2; + // + map dwtime = 3; +} + +// +message DownloadReq { + // + string ver = 1; + // + string type = 2; + // + int64 screen_width = 3; + // + int64 screen_height = 4; +} + +// +message DwTime { + // + int32 type = 1; + // + repeated DwTimePiece peak = 2; + // + repeated DwTimePiece low = 3; +} + +// +message DwTimePiece { + // + int64 start = 1; + // + int64 end = 2; +} + +// +enum EnvType { + // + Unknown = 0; + // + Release = 1; + // + Test = 2; +} + +// +message Host { + // + string boss = 1; + // + string bfs = 2; +} + +// +enum IncrementType { + // + Total = 0; + // + Incremental = 1; +} + +// +enum LevelType { + // + Undefined = 0; + // + High = 1; + // + Middle = 2; + // + Low = 3; +} + +// +message ListReply { + // + string env = 1; + // + repeated PoolReply pools = 2; + // + int64 list_version = 3; + // + Host host = 4; +} + +// +message ListReq { + // + string pool_name = 1; + // + string module_name = 2; + // + repeated VersionListReq version_list = 3; + // + EnvType env = 4; + // + int32 sys_ver = 5; + // + int32 scale = 6; + // + int32 arch = 7; + // + int64 list_version = 8; + // + int32 lite = 9; + // + int64 support_type = 10; + // + bool support_unzip_password = 11; + // + bool support_peak = 12; +} + +// +message ModuleReply { + // + string name = 1; + // + int64 version = 2; + // + string url = 3; + // + string md5 = 4; + // + string total_md5 = 5; + // + IncrementType increment = 6; + // + bool is_wifi = 7; + // + LevelType level = 8; + // + string filename = 9; + // + string file_type = 10; + // + int64 file_size = 11; + // + CompressType compress = 12; + // + int64 publish_time = 13; + // + int64 pool_id = 14; + // + int64 module_id = 15; + // + int64 version_id = 16; + // + int64 file_id = 17; + // + bool zip_check = 18; + // + int64 download_strategy = 19; + // + int64 experiment_strategy = 20; + // + map patch_map = 21; + // + int64 support_type = 22; + // + bool password_required = 23; + // + string password = 24; + // + int64 weight = 25; +} + +// +message PatchInfo { + // + string md5 = 1; + // + string url = 2; + // + int64 size = 3; + // + int64 source_version = 4; +} + +// +message PoolReply { + // + string name = 1; + // + repeated ModuleReply modules = 2; +} + +// +message ResourceItem { + // + string task_id = 1; + // + string file_name = 2; + // + string type = 3; + // + string url = 4; + // + string hash = 5; + // + int32 size = 6; + // + int32 expect_dw = 7; + // + int64 effect_time = 8; + // + int64 expire_time = 9; + // + int32 priority = 10; + // + string extra = 11; +} + +// +message VersionListReq { + // + string pool_name = 1; + // + repeated VersionReq versions = 2; +} + +// +message VersionReq { + // + string module_name = 1; + // + int64 version = 2; + // + int64 type = 3; + // + bool need_full = 4; +} + diff --git a/proto/bilibili/app/search/v2.proto b/proto/bilibili/app/search/v2.proto new file mode 100644 index 0000000..a305b08 --- /dev/null +++ b/proto/bilibili/app/search/v2.proto @@ -0,0 +1,288 @@ +syntax = "proto3"; + +package bilibili.app.search.v2; + +import "bilibili/broadcast/message/main.proto"; + +// +service Search { + // + rpc CancelChatTask (CancelChatTaskReq) returns (CancelChatTaskReply); + // + rpc GetChatAuth (GetChatAuthReq) returns (GetChatAuthReply); + // + rpc GetChatResult (GetChatResultReq) returns (bilibili.broadcast.message.main.ChatResult); + // + rpc QueryRecComment (QueryRecAfterClickReq) returns (QueryRecAfterClickReply); + // + rpc SearchDelFollow (SearchDelFollowRequest) returns (SearchDelFollowResponse); + // + rpc SearchEgg (SearchEggReq) returns (SearchEggReply); + // + rpc SearchFollow (SearchFollowRequest) returns (SearchFollowResponse); + // + rpc SearchLike (SearchLikeReq) returns (SearchLikeReply); + // + rpc SearchShortUrl (SearchShortUrlReq) returns (SearchShortUrlReply); + // + rpc SubmitChatTask (SubmitChatTaskReq) returns (SubmitChatTaskReply); +} + +// +enum Action { + // + ACTION_UNSPECIFIED = 0; + // + ACTION_LIKE = 1; + // + ACTION_CANCEL_LIKE = 2; + // + ACTION_DISLIKE = 3; + // + ACTION_CANCEL_DISLIKE = 4; +} + +// +message CancelChatTaskReply { + // + int32 code = 1; +} + +// +message CancelChatTaskReq { + // + string session_id = 1; + // + string from_source = 2; +} + +// +enum FollowTypeEnum { + // + UNKNOWN = 0; + // + COMIC = 1; +} + +// +message GetChatAuthReply { + // + bool display = 1; + // + string icon = 2; + // + string icon_night = 3; + // + string jump_link = 4; + // + string text_guide = 5; + // + int32 jump_link_type = 6; +} + +// +message GetChatAuthReq { +} + +// +message GetChatResultReq { + // + string query = 1; + // + string session_id = 2; + // + string from_source = 3; + // + string track_id = 4; +} + +// +message QueryRecAfterClickItem { + // + string show_name = 1; + // + string recommend_reason = 2; + // + int32 icon_type = 3; + // + string url = 4; + // + string icon = 5; + // + string icon_night = 6; +} + +// +message QueryRecAfterClickReply { + // + int32 code = 1; + // + QueryRecAfterClickResult query_rec_result = 2; +} + +// +message QueryRecAfterClickReq { + // + string param = 1; + // + int32 pos = 2; + // + string track_id = 3; + // + string qv_id = 4; + // + string keyword = 5; + // + string click_url = 6; + // + string from_source = 7; + // + string user_act = 8; +} + +// +message QueryRecAfterClickResult { + // + repeated QueryRecAfterClickItem query_rec_list = 1; + // + string related_title = 2; + // + string param = 3; + // + string goto = 4; + // + string linktype = 5; + // + int32 position = 6; + // + string trackid = 7; + // + string user_act = 8; +} + +// +message SearchDelFollowRequest { + // + int64 cid = 1; + // + FollowTypeEnum follow_type = 2; +} + +// +message SearchDelFollowResponse { + // + string toast = 1; +} + +// +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 SearchFollowRequest { + // + int64 cid = 1; + // + FollowTypeEnum follow_type = 2; +} + +// +message SearchFollowResponse { + // + string toast = 1; +} + +// +message SearchLikeReply { + // + int64 like_number = 1; + // + int64 dislike_number = 2; +} + +// +message SearchLikeReq { + // + string business = 1; + // + int64 message_id = 2; + // + Action action = 3; +} + +// +message SearchShortUrlReply { + // + string origin_url = 1; +} + +// +message SearchShortUrlReq { + // + string short_url = 1; +} + +// +message SubmitChatTaskReply { + // + int32 code = 1; + // + string session_id = 2; +} + +// +message SubmitChatTaskReq { + // + string query = 1; + // + string track_id = 2; + // + string from_source = 3; +} + diff --git a/proto/bilibili/app/show/gateway/v1.proto b/proto/bilibili/app/show/gateway/v1.proto new file mode 100644 index 0000000..730bedf --- /dev/null +++ b/proto/bilibili/app/show/gateway/v1.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package bilibili.app.show.gateway.v1; + +import "bilibili/broadcast/message/main.proto"; + +// +service AppShow { + // + rpc GetActProgress (GetActProgressReq) returns (GetActProgressReply); +} + +// +message GetActProgressReply { + // + bilibili.broadcast.message.main.NativePageEvent event = 1; +} + +// +message GetActProgressReq { + // + int64 page_i_d = 1; + // + int64 mid = 2; +} + diff --git a/proto/bilibili/app/show/mixture/v1.proto b/proto/bilibili/app/show/mixture/v1.proto new file mode 100644 index 0000000..2b312ef --- /dev/null +++ b/proto/bilibili/app/show/mixture/v1.proto @@ -0,0 +1,305 @@ +syntax = "proto3"; + +package bilibili.app.show.mixture.v1; + +import "bilibili/app/archive/middleware/v1.proto"; + +// +service Mixture { + // + rpc ChannelRedirect (ChannelRedirectReq) returns (ChannelRedirectReply); + // + rpc Clarity (ClarityReq) returns (ClarityReply); + // + rpc RegionIndex (RegionIndexReq) returns (RegionIndexReply); + // + rpc RegionList (RegionListReq) returns (RegionListReply); + // + rpc RegionShortcut (RegionShortcutReq) returns (RegionShortcutReply); + // + rpc Widget (WidgetReq) returns (WidgetReply); + // + rpc WidgetGuide (WidgetGuideReq) returns (WidgetGuideReply); +} + +// +message ChannelRedirectReply { + // + int64 code = 1; + // + string url = 2; +} + +// +message ChannelRedirectReq { + // + int64 id = 1; +} + +// +message ClarityReply { + // + bool is_play_story = 1; + // + bool is_set_play_qn = 2; + // + int64 last_play_qn_value = 3; +} + +// +message ClarityReq { +} + +// +message GuideCard { + // + string image = 1; + // + string subtitle = 2; +} + +// +message GuideItem { + // + repeated GuideCard card = 1; + // + string title = 2; +} + +// +message GuideTip { + // + string image = 1; + // + string subtitle = 2; + // + string title = 3; +} + +// +enum GuideType { + // + GUIDE_TYPE_DEFAULT = 0; + // + GUIDE_TYPE_FUNC = 1; +} + +// +message RcmdReason { + // + string content = 1; + // + int32 corner_mark = 2; +} + +// +message RegionAv { + // + string cover = 1; + // + string cover_view_text = 2; + // + string cover_dm_text = 3; + // + string cover_right_text1 = 4; + // + string jump_url = 5; + // + string up_name = 6; + // + int64 aid = 7; + // + string title = 8; + // + string cover43 = 9; +} + +// +message RegionBanner { + // + string title = 1; + // + string sub_title = 2; + // + string url = 3; + // + int64 index = 4; + // + string cover = 5; + // + int64 id = 6; +} + +// +message RegionCard { + // + oneof item { + // + RegionAv av = 2; + } + // + RegionCardType type = 1; + // + ThreePoint three_point = 3; +} + +// +enum RegionCardType { + // + REGION_CARD_TYPE_DEFAULT = 0; + // + REGION_CARD_TYPE_AV = 1; +} + +// +message RegionContent { + // + string title = 1; + // + repeated RegionIcon icons = 2; +} + +// +message RegionIcon { + // + string img = 1; + // + string title = 2; + // + string url = 3; + // + int64 unique_id = 4; + // + int64 rid = 5; +} + +// +message RegionIndexReply { + // + repeated RegionBanner banner = 1; + // + bool has_next = 2; + // + repeated RegionCard cards = 3; + // + string title = 4; +} + +// +message RegionIndexReq { + // + int64 rid = 1; + // + int32 display_id = 2; + // + bool need_banner = 3; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; + // + string uuid = 5; +} + +// +message RegionLimit { + // + RegionLimitCode code = 1; + // + string message = 2; +} + +// +enum RegionLimitCode { + // + REGION_LIMIT_CODE_DEFAULT = 0; + // + REGION_LIMIT_CODE_NO_LOGIN = 1; + // + REGION_LIMIT_CODE_MAX = 2; + // + REGION_LIMIT_CODE_ERROR = 3; +} + +// +message RegionListReply { + // + RegionContent shortcut = 1; + // + repeated RegionContent contents = 2; +} + +// +message RegionListReq { +} + +// +message RegionShortcutReply { + // + RegionLimit limit = 1; +} + +// +message RegionShortcutReq { + // + repeated int64 unique_id = 1; +} + +// +message ThreePoint { + // + bool watch_later = 1; +} + +// +message WidgetGuideReply { + // + int32 code = 1; + // + GuideItem guide_item = 2; + // + GuideTip tip = 3; +} + +// +message WidgetGuideReq { + // + string from_spmid = 1; + // + GuideType guide_type = 2; +} + +// +message WidgetItem { + // + string cover = 1; + // + string view = 2; + // + RcmdReason rcmd_reason = 3; + // + string title = 4; + // + string name = 5; + // + string uri = 6; + // + string goto = 7; + // + int64 id = 8; + // + int32 view_icon = 9; +} + +// +message WidgetReply { + // + repeated WidgetItem item = 1; +} + +// +message WidgetReq { + // + string from_spmid = 1; + // + int32 page_no = 2; +} + diff --git a/proto/bilibili/app/show/popular/v1.proto b/proto/bilibili/app/show/popular/v1.proto new file mode 100644 index 0000000..b3d4b33 --- /dev/null +++ b/proto/bilibili/app/show/popular/v1.proto @@ -0,0 +1,117 @@ +syntax = "proto3"; + +package bilibili.app.show.popular.v1; + +import "bilibili/app/archive/middleware/v1.proto"; +import "bilibili/app/card/v1.proto"; + +// +service Popular { + // + rpc Index (PopularResultReq) returns (PopularReply); +} + +// +message Bubble { + // + string bubble_content = 1; + // + int32 version = 2; + // + int64 stime = 3; +} + +// +message Config { + // + string item_title = 1; + // + string bottom_text = 2; + // + string bottom_text_cover = 3; + // + string bottom_text_url = 4; + // + repeated EntranceShow top_items = 5; + // + string head_image = 6; + // + repeated EntranceShow page_items = 7; + // + int64 hit = 8; + // + string toast = 9; +} + +// +message EntranceShow { + // + string icon = 1; + // + string title = 2; + // + string module_id = 3; + // + string uri = 4; + // + Bubble bubble = 5; + // + int64 entrance_id = 6; + // + string top_photo = 7; + // + int32 entrance_type = 8; +} + +// +message PopularAd { + // + string extra = 1; +} + +// +message PopularReply { + // + repeated bilibili.app.card.v1.Card items = 1; + // + Config config = 2; + // + string ver = 3; +} + +// +message PopularResultReq { + // + int64 idx = 1; + // + int32 login_event = 2; + // + int32 qn = 3; + // + int32 fnver = 4; + // + int32 fnval = 5; + // + int32 force_host = 6; + // + int32 fourk = 7; + // + string spmid = 8; + // + string last_param = 9; + // + string ver = 10; + // + int64 entrance_id = 11; + // + string location_ids = 12; + // + int32 source_id = 13; + // + int32 flush = 14; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 15; + // + PopularAd popular_ad = 16; +} + diff --git a/proto/bilibili/app/show/rank/v1.proto b/proto/bilibili/app/show/rank/v1.proto new file mode 100644 index 0000000..27aac46 --- /dev/null +++ b/proto/bilibili/app/show/rank/v1.proto @@ -0,0 +1,140 @@ +syntax = "proto3"; + +package bilibili.app.show.rank.v1; + +// +service Rank { + // + rpc RankAll (RankAllResultReq) returns (RankListReply); + // + rpc RankRegion (RankRegionResultReq) returns (RankListReply); + // + rpc RankRegionList (RankRegionListReq) returns (RankRegionListReply); +} + +// +message Item { + // + string title = 1; + // + string cover = 2; + // + string param = 3; + // + string uri = 4; + // + string redirect_url = 5; + // + string goto = 6; + // + int32 play = 7; + // + int32 danmaku = 8; + // + int64 mid = 9; + // + string name = 10; + // + string face = 11; + // + int32 reply = 12; + // + int32 favourite = 13; + // + int64 pub_date = 14; + // + int32 rid = 15; + // + string rname = 16; + // + int64 duration = 17; + // + int32 like = 18; + // + int64 cid = 19; + // + int64 pts = 20; + // + string cooperation = 21; + // + int32 attribute = 22; + // + int64 follower = 23; + // + OfficialVerify official_verify = 24; + // + repeated Item children = 25; + // + Relation relation = 26; + // + string play_text = 27; + // + int32 play_icon = 28; +} + +// +message OfficialVerify { + // + int32 type = 1; + // + string desc = 2; +} + +// +message RankAllResultReq { + // + string order = 1; + // + int32 pn = 2; + // + int32 ps = 3; +} + +// +message RankListReply { + // + repeated Item items = 1; +} + +// +message RankRegionInfo { + // + int32 tid = 1; + // + string name = 2; + // + int32 region_type = 3; + // + string uri = 4; +} + +// +message RankRegionListReply { + // + repeated RankRegionInfo regions = 1; +} + +// +message RankRegionListReq { +} + +// +message RankRegionResultReq { + // + int32 rid = 1; + // + int32 pn = 2; + // + int32 ps = 3; +} + +// +message Relation { + // + int32 status = 1; + // + int32 is_follow = 2; + // + int32 is_followed = 3; +} + diff --git a/proto/bilibili/app/show/region/v1.proto b/proto/bilibili/app/show/region/v1.proto new file mode 100644 index 0000000..0f74e31 --- /dev/null +++ b/proto/bilibili/app/show/region/v1.proto @@ -0,0 +1,56 @@ +syntax = "proto3"; + +package bilibili.app.show.region.v1; + +// +service Region { + // + rpc Region (RegionReq) returns (RegionReply); +} + +// +message RegionConfig { + // + string scenes_name = 1; + // + string scenes_type = 2; +} + +// +message RegionInfo { + // + int32 tid = 1; + // + int32 reid = 2; + // + string name = 3; + // + string logo = 4; + // + string goto = 5; + // + string param = 6; + // + string uri = 7; + // + int32 type = 8; + // + int32 is_bangumi = 9; + // + repeated RegionInfo children = 10; + // + repeated RegionConfig config = 11; +} + +// +message RegionReply { + // + repeated RegionInfo regions = 1; +} + +// +message RegionReq { + // + string lang = 1; +} + diff --git a/proto/bilibili/app/space/v1.proto b/proto/bilibili/app/space/v1.proto new file mode 100644 index 0000000..d2654b8 --- /dev/null +++ b/proto/bilibili/app/space/v1.proto @@ -0,0 +1,108 @@ +syntax = "proto3"; + +package bilibili.app.space.v1; + +// +service Space { + // + rpc Archive (ArchiveReq) returns (ArchiveReply); +} + +// +message ArchiveReply { + // + repeated BiliSpaceVideo item = 1; + // + int32 count = 2; + // + EpisodicButton episodic_button = 3; + // + repeated OrderConfig order = 4; +} + +// +message ArchiveReq { + // + int64 vmid = 1; + // + int32 pn = 2; + // + int32 ps = 3; + // + string order = 4; +} + +// +message Badge { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + int32 bg_style = 8; +} + +// +message BiliSpaceVideo { + // + string title = 1; + // + string tname = 2; + // + int64 duration = 3; + // + string cover = 4; + // + string uri = 5; + // + string param = 6; + // + string danmaku = 7; + // + int32 play = 8; + // + int64 ctime = 9; + // + bool state = 10; + // + bool is_popular = 11; + // + repeated Badge badges = 12; + // + string cover_right = 13; + // + string bvid = 14; + // + bool is_steins = 15; + // + bool is_ugcpay = 16; + // + bool is_cooperation = 17; +} + +// +message EpisodicButton { + // + string text = 1; + // + string uri = 2; +} + +// +message OrderConfig { + // + string title = 1; + // + string value = 2; +} + diff --git a/proto/bilibili/app/splash/v1.proto b/proto/bilibili/app/splash/v1.proto new file mode 100644 index 0000000..5cf4cf4 --- /dev/null +++ b/proto/bilibili/app/splash/v1.proto @@ -0,0 +1,132 @@ +syntax = "proto3"; + +package bilibili.app.splash.v1; + +import "google/protobuf/any.proto"; + +// +service Splash { + // + rpc List (SplashReq) returns (SplashReply); +} + +// +message ShowStrategy { + // + int32 id = 1; + // + int64 stime = 2; + // + int64 etime = 3; +} + +// +message SplashItem { + // + int32 id = 1; + // + int32 type = 2; + // + int32 card_type = 3; + // + int32 duration = 4; + // + int64 begin_time = 5; + // + int64 end_time = 6; + // + string thumb = 7; + // + string hash = 8; + // + string logo_url = 9; + // + string logo_hash = 10; + // + string video_url = 11; + // + string video_hash = 12; + // + int32 video_width = 13; + // + int32 video_height = 14; + // + string schema = 15; + // + string schema_title = 16; + // + string schema_package_name = 17; + // + repeated string schema_callup_white_list = 18; + // + int32 skip = 19; + // + string uri = 20; + // + string uri_title = 21; + // + int32 source = 22; + // + int32 cm_mark = 23; + // + string ad_cb = 24; + // + int64 resource_id = 25; + // + string request_id = 26; + // + string client_ip = 27; + // + bool is_ad = 28; + // + bool is_ad_loc = 29; + // + google.protobuf.Any extra = 30; + // + int64 card_index = 31; + // + int64 server_type = 32; + // + int64 index = 33; + // + string click_url = 34; + // + string show_url = 35; + // + int32 time_target = 36; + // + int32 encryption = 37; + // + bool enable_pre_download = 38; + // + bool enable_background_download = 39; +} + +// +message SplashReply { + // + int32 max_time = 1; + // + int32 min_interval = 2; + // + int32 pull_interval = 3; + // + repeated SplashItem list = 4; + // + repeated ShowStrategy show = 5; +} + +// +message SplashReq { + // + int32 width = 1; + // + int32 height = 2; + // + string birth = 3; + // + string ad_extra = 4; + // + string network = 5; +} + diff --git a/proto/bilibili/app/story/v1.proto b/proto/bilibili/app/story/v1.proto new file mode 100644 index 0000000..e8ecae1 --- /dev/null +++ b/proto/bilibili/app/story/v1.proto @@ -0,0 +1,147 @@ +syntax = "proto3"; + +package bilibili.app.story.v1; + +// +service Story { + // + rpc AIAudio (AIAudioReq) returns (AIAudioReply); + // + rpc ArchiveStatus (ArchiveStatusReq) returns (ArchiveStatusReply); + // + rpc BgmPlay (BgmPlayReq) returns (BgmPlayReply); + // + rpc Rerank (RerankReq) returns (RerankReply); +} + +// +message AIAudioItem { + // + repeated DashItem audio_info = 1; + // + string title = 2; + // + string button_title = 3; + // + string subtitle_lang = 4; +} + +// +message AIAudioReply { + // + bool support_ai_audio = 1; + // + repeated AIAudioItem ai_audio_items = 2; + // + string ai_open_toast = 3; + // + string ai_close_toast = 4; +} + +// +message AIAudioReq { + // + int64 aid = 1; + // + int64 cid = 2; + // + int64 up_mid = 3; +} + +// +message ArchiveStatusReply { + // + bool is_archive_normal = 1; +} + +// +message ArchiveStatusReq { + // + int64 aid = 1; +} + +// +message BgmPlayReply { + // + string url = 1; +} + +// +message BgmPlayReq { + // + int64 music_id = 1; +} + +// +message DashItem { + // + int32 id = 1; + // + string base_url = 2; + // + repeated string backup_url = 3; + // + int32 bandwidth = 4; + // + int32 codecid = 5; + // + string md5 = 6; + // + int64 size = 7; + // + string frame_rate = 8; + // + string widevine_pssh = 9; + // + string bilidrm_uri = 10; +} + +// +message RerankAdInfo { + // + string request_id = 1; +} + +// +message RerankCardInfo { + // + oneof info { + // + RerankAdInfo ad_info = 6; + } + // + int32 display_id = 1; + // + int32 display_pos = 2; + // + string card_goto = 3; + // + string param = 4; + // + map player_args = 5; +} + +// +message RerankReply { + // + repeated RerankCardInfo card = 1; +} + +// +message RerankReq { + // + int64 pre_ad_start_ts = 1; + // + int64 pre_ad_end_ts = 2; + // + RerankCardInfo pre_ad_card = 3; + // + int64 last_card_ts = 4; + // + RerankCardInfo last_card = 5; + // + repeated RerankCardInfo unexposed_card = 6; + // + int32 last_ad_gap = 7; +} + diff --git a/proto/bilibili/app/topic/v1.proto b/proto/bilibili/app/topic/v1.proto new file mode 100644 index 0000000..a89c16b --- /dev/null +++ b/proto/bilibili/app/topic/v1.proto @@ -0,0 +1,1188 @@ +syntax = "proto3"; + +package bilibili.app.topic.v1; + +import "bilibili/app/archive/middleware/v1.proto"; +import "bilibili/app/card/v1.proto"; +import "bilibili/app/dynamic/v2.proto"; +import "google/protobuf/empty.proto"; + +// +service Topic { + // + rpc ReportUserCloseFeedCard (ReportUserCloseFeedCardReq) returns (google.protobuf.Empty); + // + rpc ReportUserRatingFeedCardChoice (ReportUserRatingFeedCardChoiceReq) returns (google.protobuf.Empty); + // + rpc SetTopTopicRes (SetTopTopicResReq) returns (SetTopTopicResReply); + // + rpc TopicDetailsAll (TopicDetailsAllReq) returns (TopicDetailsAllReply); + // + rpc TopicDetailsFold (TopicDetailsFoldReq) returns (TopicDetailsFoldReply); + // + rpc TopicMergedResource (TopicMergedResourceReq) returns (TopicMergedResourceReply); + // + rpc TopicReserveButtonClick (TopicReserveButtonClickReq) returns (TopicReserveButtonClickReply); + // + rpc TopicSetDetails (TopicSetDetailsReq) returns (TopicSetDetailsReply); +} + +// +message ButtonMeta { + // + string text = 1; + // + string icon = 2; +} + +// +message ClickPath { + // + int32 type = 1; + // + string path = 2; + // + string underlying = 3; + // + string wx_pro_name = 4; + // + string wx_pro_id = 5; +} + +// +message DetailsTopInfo { + // + TopicInfo topic_info = 1; + // + User user = 2; + // + string stats_desc = 3; + // + bool has_create_jurisdiction = 4; + // + OperationContent operation_content = 5; + // + string head_img_url = 6; + // + string head_img_backcolor = 7; + // + int32 word_color = 8; + // + int32 mission_page_show_type = 9; + // + string mission_url = 10; + // + string mission_text = 11; + // + TopicSet topic_set = 12; + // + string symbol = 13; + // + string icon = 14; + // + string head_bg_img_url = 15; +} + +// +message EsportInfo { + // + int64 id = 1; + // + repeated MatchInfo items = 2; + // + int64 start_time = 3; + // + int64 end_time = 4; + // + PlayerRatingInMatch player_rating = 5; +} + +// +message FeedCard { + // + oneof detail { + // + FeedCardUserRating user_rating = 2; + // + FeedCardLeadCollection lead_collection = 3; + // + ItemCard item_card = 4; + // + FeedCardTask task_card = 5; + } + // + FeedCardType type = 1; +} + +// +message FeedCardLeadCollection { + // + string title = 1; + // + string button_text = 2; + // + string icon = 3; + // + string pressed_button_text = 4; +} + +// +message FeedCardTask { + // + string title = 1; + // + string sub_title = 2; + // + string cover = 3; + // + string button_text = 4; + // + string jump_url = 5; +} + +// +enum FeedCardType { + // + FEED_CARD_TYPE_UNKNOWN = 0; + // + FEED_CARD_TYPE_USER_RATING = 1; + // + FEED_CARD_TYPE_LEAD_COLLECTION = 2; + // + FEED_CARD_TYPE_ITEM = 3; + // + FEED_CARD_TYPE_TASK = 4; +} + +// +message FeedCardUserRating { + // + message UserRatingOption { + // + string icon = 1; + // + string text = 2; + // + FeedCardUserRatingOptionType type = 3; + } + + // + string title = 1; + // + repeated FeedCardUserRating.UserRatingOption options = 2; +} + +// +enum FeedCardUserRatingOptionType { + // + FEED_CARD_USER_RATING_OPTION_TYPE_UNKNOWN = 0; + // + FEED_CARD_USER_RATING_OPTION_TYPE_VERY_DISSATISFIED = 1; + // + FEED_CARD_USER_RATING_OPTION_TYPE_DISSATISFIED = 2; + // + FEED_CARD_USER_RATING_OPTION_TYPE_AVERAGE = 3; + // + FEED_CARD_USER_RATING_OPTION_TYPE_SATISFIED = 4; + // + FEED_CARD_USER_RATING_OPTION_TYPE_VERY_SATISFIED = 5; +} + +// +message FoldCardItem { + // + int32 is_show_fold = 1; + // + int64 fold_count = 2; + // + string card_show_desc = 3; + // + string fold_desc = 4; +} + +// +message FunctionalCard { + // + repeated TopicCapsule capsules = 1; + // + TrafficCard traffic_card = 2; + // + GameCard game_card = 3; + // + int64 start_time = 4; + // + int64 end_time = 5; +} + +// +message GameCard { + // + int64 game_id = 1; + // + string game_icon = 2; + // + string game_name = 3; + // + string score = 4; + // + string game_tags = 5; + // + string notice = 6; + // + string game_link = 7; +} + +// +message HeadClickAreaCard { + // + repeated HeadClickAreaRow click_rows = 1; + // + int64 start_time = 2; + // + int64 end_time = 3; +} + +// +message HeadClickAreaRow { + // + repeated HeadClickRect rects = 1; +} + +// +message HeadClickRect { + // + int32 w = 1; + // + int32 h = 2; + // + string pic = 3; + // + ClickPath path = 4; +} + +// +message IPTopicCard { + // + repeated IPTopicInfo items = 1; + // + int64 start_time = 2; + // + int64 end_time = 3; +} + +// +message IPTopicInfo { + // + string name = 1; + // + string stats_desc = 2; + // + string jump_url = 3; + // + string icon = 4; + // + int64 id = 5; +} + +// +message InlineProgressBar { + // + string icon_drag = 1; + // + string icon_drag_hash = 2; + // + string icon_stop = 3; + // + string icon_stop_hash = 4; +} + +// +message ItemCard { + // + int64 item_id = 1; + // + string biz_data = 2; + // + int64 start_time = 3; + // + int64 end_time = 4; +} + +// +message LargeCoverInline { + // + bilibili.app.card.v1.Base base = 1; + // + string cover_left_text1 = 2; + // + int32 cover_left_icon1 = 3; + // + string cover_left_text2 = 4; + // + int32 cover_left_icon2 = 5; + // + RightTopLiveBadge right_top_live_badge = 6; + // + string extra_uri = 7; + // + InlineProgressBar inline_progress_bar = 8; + // + TopicThreePoint topic_three_point = 9; + // + string cover_left_desc = 10; + // + bool hide_danmu_switch = 11; + // + bool disable_danmu = 12; + // + int32 can_play = 13; + // + string duration_text = 14; + // + RelationData relation_data = 15; +} + +// +message LiveBadgeResource { + // + string text = 1; + // + string animation_url = 2; + // + string animation_url_hash = 3; + // + string background_color_light = 4; + // + string background_color_night = 5; + // + int64 alpha_light = 6; + // + int64 alpha_night = 7; + // + string font_color = 8; +} + +// +message MatchCardDisplay { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string uri = 4; + // + string live_link = 5; + // + Texts texts = 6; + // + int32 state = 7; +} + +// +message MatchInfo { + // + int64 id = 1; + // + int32 status = 2; + // + string match_stage = 3; + // + MatchTeamInfo home = 4; + // + MatchTeamInfo away = 5; + // + MatchCardDisplay match_label = 6; + // + MatchCardDisplay match_time = 7; + // + MatchCardDisplay match_button = 8; +} + +// +message MatchTeamInfo { + // + int64 id = 1; + // + string title = 2; + // + string cover = 3; + // + int64 score = 4; +} + +// +message NoCardResultReply { + // + string default_guide_text = 1; + // + ShowButton show_button = 2; +} + +// +message OperationCard { + // + oneof card { + // + LargeCoverInline large_cover_inline = 1; + } +} + +// +message OperationContent { + // + OperationCard operation_card = 1; + // + int64 start_time = 2; + // + int64 end_time = 3; +} + +// +message PlayerRatingInMatch { + // + string player_face = 1; + // + string player_name = 2; + // + string hot_remark = 3; + // + string rating = 4; + // + string jump_uri = 5; + // + int64 player_id = 6; + // + int64 match_id = 7; +} + +// +message PubLayer { + // + int32 show_type = 1; + // + string jump_link = 2; + // + ButtonMeta button_meta = 3; + // + bool close_pub_layer_entry = 4; + // + string user_avatar = 5; + // + bool is_half_screen = 6; +} + +// +message RelationData { + // + bool is_fav = 1; + // + bool is_coin = 2; + // + bool is_follow = 3; + // + bool is_like = 4; + // + int64 like_count = 5; +} + +// +message ReportUserCloseFeedCardReq { + // + int64 topic_id = 1; + // + FeedCardType feed_card_type = 2; +} + +// +message ReportUserRatingFeedCardChoiceReq { + // + int64 topic_id = 1; + // + FeedCardUserRatingOptionType option_type = 2; +} + +// +enum ResSetTopOptType { + // + ResSetTopNone = 0; + // + ResSetTop = 1; + // + ResSetTopCancel = 2; +} + +// +enum ReserveButtonMode { + // + RESERVE_BUTTON_MODE_NONE = 0; + // + RESERVE_BUTTON_MODE_RESERVE = 1; + // + RESERVE_BUTTON_MODE_UP_CANCEL = 2; +} + +// +enum ReserveButtonStatus { + // + RESERVE_BUTTON_STATUS_NONE = 0; + // + RESERVE_BUTTON_STATUS_UNCHECK = 1; + // + RESERVE_BUTTON_STATUS_CHECK = 2; +} + +// +message ReserveCalendarInfo { + // + string title = 1; + // + int64 start_ts = 2; + // + int64 end_ts = 3; + // + string description = 4; + // + string business_id = 5; +} + +// +message ReserveRelationInfo { + // + int64 sid = 1; + // + string title = 2; + // + int64 total = 3; + // + int64 stime = 4; + // + int64 etime = 5; + // + int64 is_follow = 6; + // + int32 state = 7; + // + string oid = 8; + // + int32 type = 9; + // + int64 upmid = 10; + // + int64 reserve_record_ctime = 11; + // + int64 live_plan_start_time = 12; + // + string time_desc_text = 13; + // + string number_desc_text = 14; + // + int64 start_time = 15; + // + int64 end_time = 16; +} + +// +message RightTopLiveBadge { + // + int64 live_status = 1; + // + LiveBadgeResource in_live = 2; + // + string live_stats_desc = 3; +} + +// +message SetTopTopicResReply { +} + +// +message SetTopTopicResReq { + // + int64 topic_id = 1; + // + int64 dynamic_id = 2; + // + ResSetTopOptType opt_type = 3; + // + TopicCardType type = 4; +} + +// +message ShowButton { + // + string show_text = 1; + // + string jump_url = 2; +} + +// +message SortContent { + // + int64 sort_by = 1; + // + string sort_name = 2; +} + +// +message Texts { + // + string booking_text = 1; + // + string unbooking_text = 2; +} + +// +message ThreePointItem { + // + string title = 1; + // + string jump_url = 2; +} + +// +message TimeLineEvents { + // + int64 event_id = 1; + // + string title = 2; + // + string time_desc = 3; + // + string jump_link = 4; +} + +// +message TimeLineResource { + // + int64 time_line_id = 1; + // + string time_line_title = 2; + // + repeated TimeLineEvents time_line_events = 3; + // + bool has_more = 4; + // + int64 start_time = 5; + // + int64 end_time = 6; +} + +// +message TopicActivities { + // + repeated TopicActivity activity = 1; + // + string act_list_title = 2; +} + +// +message TopicActivity { + // + int64 activity_id = 1; + // + string activity_name = 2; + // + string jump_url = 3; + // + string icon_url = 4; +} + +// +message TopicCapsule { + // + string name = 1; + // + string jump_url = 2; + // + string icon_url = 3; +} + +// +message TopicCapsuleInfo { + // + repeated TopicCapsule capsules = 1; +} + +// +message TopicCardItem { + // + TopicCardType type = 1; + // + bilibili.app.dynamic.v2.DynamicItem dynamic_item = 2; + // + FoldCardItem ford_card_item = 3; + // + VideoSmallCardItem video_small_card_item = 4; + // + FeedCard feed_card = 5; +} + +// +message TopicCardList { + // + repeated TopicCardItem topic_card_items = 1; + // + string offset = 2; + // + bool has_more = 3; + // + TopicSortByConf topic_sort_by_conf = 4; + // + NoCardResultReply no_card_result_reply = 5; +} + +// +enum TopicCardType { + // + ILLEGAL_TYPE = 0; + // + DYNAMIC = 1; + // + FOLD = 2; + // + VIDEO_SMALL_CARD = 3; + // + FEED_CARD = 4; +} + +// +enum TopicCategory { + // + Default = 0; + // + Questions = 1; + // + IPTopic = 2; + // + Commerce = 3; +} + +// +message TopicDetailsAllReply { + // + DetailsTopInfo details_top_info = 1; + // + TopicActivities topic_activities = 2; + // + TopicCardList topic_card_list = 3; + // + FunctionalCard functional_card = 4; + // + PubLayer pub_layer = 5; + // + TimeLineResource time_line_resource = 6; + // + TopicServerConfig topic_server_config = 7; + // + TopicOnline topic_online = 8; + // + repeated TopicTopCard topic_top_cards = 9; +} + +// +message TopicDetailsAllReq { + // + int64 topic_id = 1; + // + int64 sort_by = 2; + // + string offset = 3; + // + int32 page_size = 4; + // + int32 local_time = 5; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 6; + // + int32 need_refresh = 7; + // + string source = 8; + // + TopicDetailsExtMode topic_details_ext_mode = 9; + // + string from_spmid = 10; + // + map extra = 11; + // + bool is_top_dynamic = 12; +} + +// +enum TopicDetailsExtMode { + // + MODE_ILLEGAL_TYPE = 0; + // + STORY = 1; +} + +// +message TopicDetailsFoldReply { + // + TopicCardList topic_card_list = 1; + // + int64 fold_count = 2; +} + +// +message TopicDetailsFoldReq { + // + int64 topic_id = 1; + // + string offset = 2; + // + int32 page_size = 3; + // + int32 local_time = 4; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5; + // + int64 from_sort_by = 6; +} + +// +message TopicInfo { + // + int64 id = 1; + // + string name = 2; + // + int64 uid = 3; + // + int64 view = 4; + // + int64 discuss = 5; + // + int64 fav = 6; + // + int64 dynamics = 7; + // + int32 state = 8; + // + string jump_url = 9; + // + string backcolor = 10; + // + bool is_fav = 11; + // + string description = 12; + // + int32 create_source = 13; + // + string share_pic = 14; + // + int64 share = 15; + // + int64 like = 16; + // + string share_url = 17; + // + bool is_like = 18; + // + int32 type = 19; + // + string stats_desc = 20; + // + string fixed_topic_icon = 21; + // + int64 categories = 22; + // + map category_map = 23; + // + repeated string topic_categories = 24; + // + bool is_business = 25; + // + bool show_interact_data = 26; +} + +// +message TopicMergedResourceReply { + // + TopicCardList topic_card_list = 1; +} + +// +message TopicMergedResourceReq { + // + int64 topic_id = 1; + // + int32 type = 2; + // + int64 rid = 3; + // + int32 merge_type = 4; + // + string offset = 5; + // + int32 local_time = 6; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 7; + // + int64 from_sort_by = 8; +} + +// +message TopicOnline { + // + int64 online_num = 1; + // + string online_text = 2; +} + +// +message TopicReserveButtonClickReply { + // + ReserveButtonStatus final_btn_status = 1; + // + ReserveButtonMode btn_mode = 2; + // + int64 reserve_update = 3; + // + string desc_update = 4; + // + bool has_activity = 5; + // + string activity_url = 6; + // + string toast = 7; + // + ReserveCalendarInfo reserve_calendar_info = 8; +} + +// +message TopicReserveButtonClickReq { + // + int64 uid = 1; + // + int64 reserve_id = 2; + // + int64 reserve_total = 3; + // + ReserveButtonStatus cur_btn_status = 4; +} + +// +message TopicServerConfig { + // + int64 pub_events_increase_threshold = 1; + // + int64 pub_events_hidden_timeout_threshold = 2; + // + int64 vert_online_refresh_time = 3; +} + +// +message TopicSet { + // + int64 set_id = 1; + // + string set_name = 2; + // + string jump_url = 3; + // + string desc = 4; + // + string set_type_text = 5; + // + string set_type_color = 6; + // + int32 set_type = 7; +} + +// +message TopicSetDetailsReply { + // + TopicSetHeadInfo topic_set_head_info = 1; + // + repeated TopicInfo topic_info = 2; + // + bool has_more = 3; + // + string offset = 4; + // + TopicSetSortCfg sort_cfg = 5; +} + +// +message TopicSetDetailsReq { + // + int64 set_id = 1; + // + int64 sort_by = 2; + // + string offset = 3; + // + int32 page_size = 4; +} + +// +message TopicSetHeadInfo { + // + TopicSet topic_set = 1; + // + string topic_cnt_text = 2; + // + string head_img_url = 3; + // + string mission_url = 4; + // + string mission_text = 5; + // + string icon_url = 6; + // + bool is_fav = 7; + // + bool is_first_time = 8; + // + string record_text = 9; +} + +// +message TopicSetSortCfg { + // + int64 default_sort_by = 1; + // + repeated SortContent all_sort_by = 2; +} + +// +message TopicSortByConf { + // + int64 default_sort_by = 1; + // + repeated SortContent all_sort_by = 2; + // + int64 show_sort_by = 3; +} + +// +message TopicThreePoint { + // + repeated bilibili.app.dynamic.v2.ThreePointItem dyn_three_point_items = 1; +} + +// +message TopicTopCard { + // + oneof card_item { + // + TopicCapsuleInfo capsules = 2; + // + TrafficCard traffic_card = 3; + // + GameCard game_card = 4; + // + TimeLineResource time_line_resource = 5; + // + LargeCoverInline large_cover_inline = 6; + // + ReserveRelationInfo reservation_card = 7; + // + EsportInfo esport_card = 8; + // + IPTopicCard ip_topic_card = 11; + // + HeadClickAreaCard head_click_area_card = 12; + // + ItemCard item_card = 13; + } + // + TopicTopCardType type = 1; + // + int64 start_time = 9; + // + int64 end_time = 10; +} + +// +enum TopicTopCardType { + // + Unknown_Type = 0; + // + Capsules_Type = 1; + // + Traffic_Card_Type = 2; + // + Game_Card_Type = 3; + // + Time_Line_Type = 4; + // + Large_Cover_Inline_Type = 5; + // + Reservation_Card_Type = 6; + // + Esport_Card_Type = 7; + // + IPTopic_Card_Type = 8; + // + Head_Click_Area_Card_Type = 9; + // + Item_Card_Type = 10; +} + +// +message TrafficCard { + // + string name = 1; + // + string jump_url = 2; + // + string icon_url = 3; + // + string base_pic = 4; + // + string benefit_point = 5; + // + string card_desc = 6; + // + string jump_title = 7; +} + +// +message User { + // + int64 uid = 1; + // + string face = 2; + // + string name = 3; + // + string name_desc = 4; +} + +// +message VideoCardBase { + // + string cover = 1; + // + string title = 2; + // + string up_name = 3; + // + int64 play = 4; + // + string jump_link = 5; + // + int64 aid = 6; +} + +// +message VideoSmallCardItem { + // + VideoCardBase video_card_base = 1; + // + string cover_left_badge_text = 2; + // + int64 card_stat_icon1 = 3; + // + string card_stat_text1 = 4; + // + int64 card_stat_icon2 = 5; + // + string card_stat_text2 = 6; + // + string server_info = 7; +} + diff --git a/proto/bilibili/app/view/v1.proto b/proto/bilibili/app/view/v1.proto new file mode 100644 index 0000000..5ac4b3f --- /dev/null +++ b/proto/bilibili/app/view/v1.proto @@ -0,0 +1,3204 @@ +syntax = "proto3"; + +package bilibili.app.view.v1; + +import "bilibili/account/service/v1.proto"; +import "bilibili/app/archive/middleware/v1.proto"; +import "bilibili/app/archive/v1.proto"; +import "bilibili/pagination.proto"; +import "google/protobuf/any.proto"; + +// +service LegacyView { + // + rpc Like (LikeReq) returns (LikeReply); +} + +// +service View { + // + rpc AddContract (AddContractReq) returns (NoReply); + // + rpc CacheView (CacheViewReq) returns (CacheViewReply); + // + rpc ChronosPkg (ChronosPkgReq) returns (Chronos); + // + rpc ClickActivitySeason (ClickActivitySeasonReq) returns (NoReply); + // + rpc ClickPlayerCard (ClickPlayerCardReq) returns (NoReply); + // + rpc ClickPlayerCardV2 (ClickPlayerCardReq) returns (ClickPlayerCardReply); + // + rpc ContinuousPlay (ContinuousPlayReq) returns (ContinuousPlayReply); + // + rpc ExposePlayerCard (ExposePlayerCardReq) returns (NoReply); + // + rpc FeedView (FeedViewReq) returns (FeedViewReply); + // + rpc GetArcsPlayer (GetArcsPlayerReq) returns (GetArcsPlayerReply); + // + rpc GetUser (GetUserReq) returns (GetUserReply); + // + rpc PlayerRelates (PlayerRelatesReq) returns (PlayerRelatesReply); + // + rpc PremiereArchive (PremiereArchiveReq) returns (PremiereArchiveReply); + // + rpc RelatesFeed (RelatesFeedReq) returns (RelatesFeedReply); + // + rpc Reserve (ReserveReq) returns (ReserveReply); + // + rpc Season (SeasonReq) returns (SeasonReply); + // + rpc SeasonActivityRecord (SeasonActivityRecordReq) returns (SeasonActivityRecordReply); + // + rpc SeasonWidgetExpose (SeasonWidgetExposeReq) returns (SeasonWidgetExposeReply); + // + rpc ShortFormVideoDownload (ShortFormVideoDownloadReq) returns (ShortFormVideoDownloadReply); + // + rpc TFInfo (TFInfoReq) returns (TFInfoReply); + // + rpc View (ViewReq) returns (ViewReply); + // + rpc ViewMaterial (ViewMaterialReq) returns (ViewMaterialReply); + // + rpc ViewProgress (ViewProgressReq) returns (ViewProgressReply); + // + rpc ViewTag (ViewTagReq) returns (ViewTagReply); +} + +// +message ActivityResource { + // + string mod_pool_name = 1; + // + string mod_resource_name = 2; + // + string bg_color = 3; + // + string selected_bg_color = 4; + // + string text_color = 5; + // + string light_text_color = 6; + // + string dark_text_color = 7; + // + string divider_color = 8; +} + +// +message ActivitySeason { + // + bilibili.app.archive.v1.Arc arc = 1; + // + repeated ViewPage pages = 2; + // + OnwerExt owner_ext = 3; + // + ReqUser req_user = 4; + // + ElecRank elec_rank = 5; + // + History history = 6; + // + string bvid = 7; + // + Honor honor = 8; + // + repeated Staff staff = 9; + // + UgcSeason ugc_season = 10; + // + Tab tab = 11; + // + Rank rank = 12; + // + Order order = 13; + // + bool support_dislike = 14; + // + OperationRelate operation_relate = 15; + // + ActivityResource activity_resource = 16; + // + string short_link = 17; + // + Label label = 18; + // + Dislike dislike = 19; + // + PlayerIcon player_icon = 20; + // + string share_subtitle = 21; + // + CMConfig cm_config = 22; + // + TFPanelCustomized tf_panel_customized = 23; + // + string argue_msg = 24; + // + ECode ecode = 25; + // + CustomConfig custom_config = 26; + // + string badge_url = 27; + // + repeated DescV2 desc_v2 = 28; + // + Config config = 29; + // + Online online = 30; + // + ArcExtra arc_extra = 31; + // + ReplyStyle reply_preface = 32; + // + UpLikeImg up_like_img = 33; + // + repeated SpecialCell special_cell_new = 34; + // + LikeAnimation like_animation = 35; + // + UserGarb user_garb = 36; + // + ControlConfig control_config = 37; + // + CoinStyle coin_style = 38; + // + RabbitYear rabbit_year = 39; + // + ArchiveStat stat_v2 = 40; + // + ArgueBar argue_bar = 41; +} + +// +message AdInfo { + // + int64 creative_id = 1; + // + int64 creative_type = 2; + // + CreativeContent creative_content = 3; + // + string ad_cb = 4; + // + int32 card_type = 5; + // + bytes extra = 6; +} + +// +message AddContractReq { + // + int64 aid = 1; + // + int64 up_mid = 2; + // + string spmid = 3; +} + +// +message ArcExtra { + // + string arc_pub_location = 1; +} + +// +message ArchiveStat { + // + StatInfo view_vt = 11; +} + +// +message ArcsPlayer { + // + int64 aid = 1; + // + map player_info = 2; +} + +// +message ArgueBar { + // + string bg_color = 1; + // + string text_color = 2; + // + string icon_color = 3; + // + string msg = 4; + // + string bg_color_night = 5; + // + string text_color_night = 6; + // + string icon_color_night = 7; +} + +// +message Asset { + // + int32 paid = 1; + // + int64 price = 2; + // + AssetMsg msg = 3; + // + AssetMsg preview_msg = 4; +} + +// +message AssetMsg { + // + string desc1 = 1; + // + string desc2 = 2; +} + +// +message Attention { + // + int32 start_time = 1; + // + int32 end_time = 2; + // + double pos_x = 3; + // + double pos_y = 4; +} + +// +message Audio { + // + string title = 1; + // + string cover_url = 2; + // + int64 song_id = 3; + // + int64 play_count = 4; + // + int64 reply_count = 5; + // + int64 upper_id = 6; + // + string entrance = 7; + // + int64 song_attr = 8; +} + +// +message BadgeStyle { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + int32 bg_style = 8; + // + string img = 9; +} + +// +message Bgm { + // + int64 sid = 1; + // + int64 mid = 2; + // + string title = 3; + // + string author = 4; + // + string jump_url = 5; + // + string cover = 6; +} + +// +message BizFavSeasonParam { + // + int64 season_id = 1; +} + +// +message BizFollowVideoParam { + // + int64 season_id = 1; +} + +// +message BizJumpLinkParam { + // + string url = 1; +} + +// +message BizReserveActivityParam { + // + int64 activity_id = 1; + // + string from = 2; + // + string type = 3; + // + int64 oid = 4; + // + int64 reserve_id = 5; +} + +// +message BizReserveGameParam { + // + int64 game_id = 1; +} + +// +enum BizType { + // + BizTypeNone = 0; + // + BizTypeFollowVideo = 1; + // + BizTypeReserveActivity = 2; + // + BizTypeJumpLink = 3; + // + BizTypeFavSeason = 4; + // + BizTypeReserveGame = 5; +} + +// +message Button { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; + // + JumpShowType jump_show_type = 4; +} + +// +message ButtonStyle { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string jump_link = 6; +} + +// +message BuzzwordConfig { + // + string name = 1; + // + string schema = 2; + // + int32 source = 3; + // + int64 start = 4; + // + int64 end = 5; + // + bool follow_control = 6; + // + int64 id = 7; + // + int64 buzzword_id = 8; + // + int32 schema_type = 9; + // + string picture = 10; +} + +// +message CM { + // + google.protobuf.Any source_content = 1; +} + +// +message CMConfig { + // + google.protobuf.Any ads_control = 1; +} + +// +message CacheViewReply { + // + bilibili.app.archive.v1.Arc arc = 1; + // + repeated ViewPage pages = 2; + // + OnwerExt owner_ext = 3; + // + ReqUser req_user = 4; + // + Season season = 5; + // + ElecRank elec_rank = 6; + // + History history = 7; + // + Dislike dislike = 8; + // + PlayerIcon player_icon = 9; + // + string bvid = 10; + // + string short_link = 11; + // + string share_subtitle = 12; + // + TFPanelCustomized tf_panel_customized = 13; + // + Online online = 14; +} + +// +message CacheViewReq { + // + int64 aid = 1; + // + string bvid = 2; + // + string from = 3; + // + string trackid = 4; + // + string ad_extra = 5; + // + string spmid = 6; + // + string from_spmid = 7; +} + +// +enum Category { + // + CategoryUnknown = 0; + // + CategorySeason = 1; +} + +// +message CellFluid { + // + string top_base_color = 1; + // + string top_split_color = 2; + // + string top_text_color = 3; +} + +// +message ChargingPlus { + // + bool pass = 1; +} + +// +message Chronos { + // + string md5 = 1; + // + string file = 2; + // + string sign = 3; +} + +// +message ChronosPkgReq { + // + string service_key = 1; + // + string engine_version = 2; + // + string message_protocol = 3; +} + +// +message ClickActivitySeasonReq { + // + oneof order_param { + // + BizReserveActivityParam reserve = 3; + // + BizFavSeasonParam fav_season = 4; + } + // + BizType order_type = 1; + // + string spmid = 2; + // + int64 action = 5; +} + +// +message ClickPlayerCardReply { + // + string message = 1; +} + +// +message ClickPlayerCardReq { + // + int64 id = 1; + // + int64 aid = 2; + // + int64 cid = 3; + // + int64 action = 4; + // + string spmid = 5; +} + +// +message CmIpad { + // + CM cm = 1; + // + bilibili.app.archive.v1.Author author = 2; + // + bilibili.app.archive.v1.Stat stat = 3; + // + int64 duration = 4; + // + int64 aid = 5; + // + ArchiveStat stat_v2 = 6; +} + +// +message CoinCustom { + // + string toast = 1; +} + +// +message CoinStyle { + // + string coin_app_zip_icon = 1; + // + string coin_app_icon1 = 2; + // + string coin_app_icon2 = 3; + // + string coin_app_icon3 = 4; + // + string coin_app_icon4 = 5; +} + +// +message CommandDm { + // + int64 id = 1; + // + int64 oid = 2; + // + int64 mid = 3; + // + string command = 4; + // + string content = 5; + // + int32 progress = 6; + // + string ctime = 7; + // + string mtime = 8; + // + string extra = 9; + // + string id_str = 10; +} + +// +message Config { + // + string relates_title = 1; + // + int32 relates_style = 2; + // + int32 relate_gif_exp = 3; + // + int32 end_page_half = 4; + // + int32 end_page_full = 5; + // + bool auto_swindow = 6; + // + bool popup_info = 7; + // + string abtest_small_window = 8; + // + int32 rec_three_point_style = 9; + // + bool is_absolute_time = 10; + // + bool new_swindow = 11; + // + bool relates_biserial = 12; + // + ListenerConfig listener_conf = 13; + // + string relates_feed_style = 14; + // + bool relates_feed_popup = 15; + // + bool relates_has_next = 16; + // + int32 local_play = 17; + // + bool play_story = 18; + // + bool arc_play_story = 19; + // + string story_icon = 20; + // + bool landscape_story = 21; + // + bool arc_landscape_story = 22; + // + string landscape_icon = 23; + // + bool show_listen_button = 24; + // + int64 valid_show_m = 25; + // + int64 valid_show_n = 26; + // + bool dm_treasure_box_control = 27; +} + +// +message ContinuousPlayReply { + // + repeated Relate relates = 1; +} + +// +message ContinuousPlayReq { + // + int64 aid = 1; + // + string from = 2; + // + string trackid = 3; + // + string spmid = 4; + // + string from_spmid = 5; + // + int32 autoplay = 6; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 7; + // + int64 device_type = 8; + // + string session_id = 9; + // + int64 display_id = 10; +} + +// +message ContractCard { + // + float display_progress = 1; + // + int64 display_accuracy = 2; + // + int64 display_duration = 3; + // + int32 show_mode = 4; + // + int32 page_type = 5; + // + UpperInfos upper = 6; + // + int32 is_follow_display = 7; + // + ContractText text = 8; + // + int64 follow_display_end_duration = 9; + // + int32 is_play_display = 10; + // + int32 is_interact_display = 11; + // + bool play_display_switch = 12; +} + +// +message ContractText { + // + string title = 1; + // + string subtitle = 2; + // + string inline_title = 3; +} + +// +message Control { + // + bool limit = 1; + // + bool disable = 2; + // + string disable_click_tip = 3; +} + +// +message ControlConfig { + // + Control like_show = 1; + // + Control dislike_show = 2; + // + Control coin_show = 3; + // + Control fav_show = 4; + // + Control share_show = 5; + // + Control toast_show = 6; + // + Control material_show = 7; + // + Control danmu_show = 8; + // + Control remark_show = 9; + // + Control half_danmu_send = 10; + // + Control up_show = 11; +} + +// +message CreativeContent { + // + string title = 1; + // + string description = 2; + // + string button_title = 3; + // + int64 video_id = 4; + // + string username = 5; + // + string image_url = 6; + // + string image_md5 = 7; + // + string log_url = 8; + // + string log_md5 = 9; + // + string url = 10; + // + string click_url = 11; + // + string show_url = 12; +} + +// +message CustomConfig { + // + string redirect_url = 1; + // + string text = 2; +} + +// +message DM { + // + bool closed = 1; + // + bool real_name = 2; + // + int64 count = 3; +} + +// +enum DescType { + // + DescTypeUnknown = 0; + // + DescTypeText = 1; + // + DescTypeAt = 2; +} + +// +message DescV2 { + // + string text = 1; + // + DescType type = 2; + // + string uri = 3; + // + int64 rid = 4; +} + +// +message Dislike { + // + string title = 1; + // + string subtitle = 2; + // + repeated DislikeReasons reasons = 3; +} + +// +message DislikeReasons { + // + int64 id = 1; + // + int64 mid = 2; + // + int32 rid = 3; + // + int64 tag_id = 4; + // + string name = 5; +} + +// +message DmSummon { + // + repeated string title = 1; + // + string url = 2; + // + string err_msg = 3; + // + string long_content = 4; + // + string short_content = 5; +} + +// +enum ECode { + // + DEFAULT = 0; + // + CODE404 = 1; + // + CODEVERSIONLIMIT = 2; +} + +// +message ELecPlus { + // + int64 state = 1; +} + +// +message ElecRank { + // + repeated ElecRankItem list = 1; + // + int64 count = 2; + // + string text = 3; +} + +// +message ElecRankItem { + // + string avatar = 1; + // + string nickname = 2; + // + string message = 3; + // + int64 mid = 4; +} + +// +message Episode { + // + int64 id = 1; + // + int64 aid = 2; + // + int64 cid = 3; + // + string title = 4; + // + string cover = 5; + // + string cover_right_text = 6; + // + bilibili.app.archive.v1.Page page = 7; + // + bilibili.app.archive.v1.Stat stat = 8; + // + string bvid = 9; + // + bilibili.app.archive.v1.Author author = 10; + // + string author_desc = 11; + // + BadgeStyle badge_style = 12; + // + bool need_pay = 13; + // + bool episode_pay = 14; + // + bool free_watch = 15; + // + string first_frame = 16; + // + ArchiveStat stat_v2 = 17; + // + repeated bilibili.app.archive.v1.Page pages = 18; + // + double progress_percent = 19; + // + int64 duration = 20; +} + +// +message ExposePlayerCardReq { + // + PlayerCardType card_type = 1; + // + int64 aid = 2; + // + int64 cid = 3; + // + string spmid = 4; +} + +// +message ExtTab { + // + ExtType ext_type = 1; + // + string data = 2; +} + +// +enum ExtType { + // + ExtNone = 0; + // + ExtDataCenter = 1; + // + ExtDataEarnings = 2; +} + +// +message FeedViewItem { + // + ViewReply view = 1; + // + string goto = 2; + // + string uri = 3; + // + string track_id = 4; +} + +// +message FeedViewReply { + // + repeated FeedViewItem list = 1; + // + bool has_next = 2; +} + +// +message FeedViewReq { + // + int64 aid = 1; + // + string bvid = 2; + // + string from = 3; + // + string spmid = 4; + // + string from_spmid = 5; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 6; + // + int64 display_id = 7; + // + string session_id = 8; + // + string page_version = 9; + // + string from_track_id = 10; +} + +// +message GetArcsPlayerReply { + // + repeated ArcsPlayer arcs_player = 1; +} + +// +message GetArcsPlayerReq { + // + repeated PlayAv play_avs = 1; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 2; +} + +// +message GetUserReply { + // + repeated User like_list = 1; + // + string title = 2; +} + +// +message GetUserReq { + // + repeated int64 mids = 1; + // + int64 aid = 2; + // + int64 up_mid = 3; + // + bool only_fans = 4; +} + +// +message GoodsInfo { + // + string goods_id = 1; + // + Category category = 2; + // + int64 goods_price = 3; + // + PayState pay_state = 4; + // + string goods_name = 5; + // + string price_fmt = 6; +} + +// +message HalfScreen { + // + int64 daily_max = 1; + // + string url = 2; +} + +// +message History { + // + int64 cid = 1; + // + int64 progress = 2; +} + +// +message Honor { + // + string icon = 1; + // + string icon_night = 2; + // + string text = 3; + // + string text_extra = 4; + // + string text_color = 5; + // + string text_color_night = 6; + // + string bg_color = 7; + // + string bg_color_night = 8; + // + string url = 9; + // + string url_text = 10; + // + string category = 11; +} + +// +message IconData { + // + string meta_json = 1; + // + string sprits_img = 2; +} + +// +message InteractArea { + // + repeated User list = 1; + // + string text = 2; +} + +// +message Interaction { + // + Node history_node = 1; + // + int64 graph_version = 2; + // + string msg = 3; + // + string evaluation = 4; + // + int64 mark = 5; +} + +// +enum JumpShowType { + // + JST_DEFAULT = 0; + // + JST_FULLSCREEN = 1; + // + JST_HALFSCREEN = 2; +} + +// +message Label { + // + int32 type = 1; + // + string uri = 2; + // + string icon = 3; + // + string icon_night = 4; + // + int64 icon_width = 5; + // + int64 icon_height = 6; + // + string lottie = 7; + // + string lottie_night = 8; +} + +// +message LikeAnimation { + // + string like_icon = 1; + // + string liked_icon = 2; + // + string like_animation = 3; +} + +// +message LikeComment { + // + string reply = 1; + // + string title = 2; +} + +// +message LikeCustom { + // + bool like_switch = 1; + // + int64 full_to_half_progress = 2; + // + int64 non_full_progress = 3; + // + int64 update_count = 4; + // + bool immediately_upgrade = 5; + // + LikeComment like_comment = 6; +} + +// +message LikeReply { + // + string toast = 1; + // + string v_voucher = 2; +} + +// +message LikeReq { + // + int64 aid = 1; + // + int64 ogv_type = 2; + // + string from = 3; + // + string spmid = 4; + // + string from_spmid = 5; + // + string track_id = 6; + // + string goto = 7; + // + int32 like = 8; + // + string source = 9; + // + string token = 10; + // + string action_id = 11; +} + +// +message ListenerConfig { + // + int64 jump_style = 1; + // + ListenerGuideBar guide_bar = 2; +} + +// +message ListenerGuideBar { + // + int64 show_strategy = 1; + // + string icon = 2; + // + string text = 3; + // + string btn_text = 4; + // + int64 show_time = 5; + // + int64 background_time = 6; +} + +// +message Live { + // + int64 mid = 1; + // + int64 roomid = 2; + // + string uri = 3; + // + string endpage_uri = 4; +} + +// +message LiveInfo { + // + string area_name = 1; + // + int64 watched_show = 2; + // + int64 live_status = 3; + // + int64 icon_type = 4; +} + +// +message LiveOrderInfo { + // + int64 sid = 1; + // + string text = 2; + // + int64 live_plan_start_time = 3; + // + bool is_follow = 4; + // + int64 follow_count = 5; + // + string style = 6; +} + +// +message MaterialLeft { + // + string icon = 1; + // + string text = 2; + // + string url = 3; + // + string left_type = 4; + // + string param = 5; + // + string operational_type = 6; + // + string static_icon = 7; +} + +// +message MaterialRes { + // + int64 id = 1; + // + string icon = 2; + // + string url = 3; + // + int32 typ = 4; + // + string name = 5; + // + string bg_color = 6; + // + string bg_pic = 7; + // + int32 jump_type = 8; +} + +// +enum MaterialSource { + // + Default = 0; + // + BiJian = 1; +} + +// +message NftFaceIcon { + // + int32 region_type = 1; + // + string icon = 2; + // + int32 show_status = 3; +} + +// +message NoReply { +} + +// +message Node { + // + int64 node_id = 1; + // + string title = 2; + // + int64 cid = 3; +} + +// +message Notice { + // + string title = 1; + // + string desc = 2; +} + +// +message OfficialVerify { + // + int32 type = 1; + // + string desc = 2; +} + +// +message Online { + // + bool online_show = 1; + // + string player_online_logo = 2; +} + +// +message OnwerExt { + // + OfficialVerify official_verify = 1; + // + Live live = 2; + // + Vip vip = 3; + // + repeated int64 assists = 4; + // + int64 fans = 5; + // + string arc_count = 6; + // + NftFaceIcon nft_face_icon = 7; + // + bilibili.account.service.v1.NameRender name_render = 8; +} + +// +message OperationCard { + // + int32 start_time = 1; + // + int32 end_time = 2; + // + string icon = 3; + // + string title = 4; + // + string button_text = 5; + // + string url = 6; + // + string content = 7; +} + +// +message OperationCardNew { + // + oneof param { + // + BizFollowVideoParam follow = 9; + // + BizReserveActivityParam reserve = 10; + // + BizJumpLinkParam jump = 11; + // + BizReserveGameParam game = 12; + } + // + int64 id = 1; + // + int32 from = 2; + // + int32 to = 3; + // + bool status = 4; + // + OperationCardType card_type = 5; + // + BizType biz_type = 8; +} + +// +enum OperationCardType { + // + CardTypeNone = 0; + // + CardTypeStandard = 1; + // + CardTypeSkip = 2; +} + +// +message OperationCardV2 { + // + oneof param { + // + BizFollowVideoParam follow = 7; + // + BizReserveActivityParam reserve = 8; + // + BizJumpLinkParam jump = 9; + // + BizReserveGameParam game = 10; + } + // + int64 id = 1; + // + int32 from = 2; + // + int32 to = 3; + // + bool status = 4; + // + BizType biz_type = 5; + // + OperationCardV2Content content = 6; +} + +// +message OperationCardV2Content { + // + string title = 1; + // + string subtitle = 2; + // + string icon = 3; + // + string button_title = 4; + // + string button_selected_title = 5; + // + bool show_selected = 6; +} + +// +message OperationRelate { + // + string title = 1; + // + repeated RelateItem relate_item = 2; + // + repeated Relate ai_relate_item = 3; +} + +// +message Order { + // + oneof order_param { + // + BizReserveActivityParam reserve = 8; + // + BizFavSeasonParam fav_season = 9; + } + // + bool status = 1; + // + string title = 2; + // + string button_title = 3; + // + string button_selected_title = 4; + // + int64 season_stat_view = 5; + // + int64 season_stat_danmaku = 6; + // + BizType order_type = 7; + // + string intro = 10; + // + StatInfo season_stat_view_vt = 11; +} + +// +message PackInfo { + // + string title = 1; + // + string uri = 2; +} + +// +enum PayState { + // + PayStateUnknown = 0; + // + PayStateActive = 1; +} + +// +message PlayAv { + // + int64 aid = 1; + // + int64 cid = 2; +} + +// +message PlayToast { + // + PlayToastEnum business = 1; + // + string icon_url = 2; + // + string text = 3; +} + +// +enum PlayToastEnum { + // + PLAYTOAST_UNKNOWN = 0; + // + PLAYTOAST_CHARGINGPLUS = 1; +} + +// +message PlayerAutomate { + // + int64 daily_max = 1; + // + string url = 2; +} + +// +enum PlayerCardType { + // + PlayerCardTypeNone = 0; + // + PlayerCardTypeAttention = 1; + // + PlayerCardTypeOperation = 2; + // + PlayerCardTypeContract = 3; +} + +// +message PlayerIcon { + // + string url1 = 1; + // + string hash1 = 2; + // + string url2 = 3; + // + string hash2 = 4; + // + string drag_left_png = 5; + // + string middle_png = 6; + // + string drag_right_png = 7; + // + IconData drag_data = 8; + // + IconData nodrag_data = 9; +} + +// +message PlayerRelatesReply { + // + repeated Relate list = 1; +} + +// +message PlayerRelatesReq { + // + int64 aid = 1; + // + string bvid = 2; + // + string from = 3; + // + string spmid = 4; + // + string from_spmid = 5; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 6; + // + string session_id = 7; + // + string from_track_id = 8; +} + +// +message PointMaterial { + // + string url = 1; + // + MaterialSource material_source = 2; +} + +// +message PowerIconStyle { + // + string icon_url = 1; + // + string icon_night_url = 2; + // + int64 icon_width = 3; + // + int64 icon_height = 4; +} + +// +message Premiere { + // + PremiereState premiere_state = 1; + // + int64 start_time = 2; + // + int64 service_time = 3; + // + int64 room_id = 4; +} + +// +message PremiereArchiveReply { + // + Premiere premiere = 1; + // + bool risk_status = 2; + // + string risk_reason = 3; +} + +// +message PremiereArchiveReq { + // + int64 aid = 1; +} + +// +message PremiereReserve { + // + int64 reserve_id = 1; + // + int64 count = 2; + // + bool is_follow = 3; +} + +// +message PremiereResource { + // + Premiere premiere = 1; + // + PremiereReserve reserve = 2; + // + PremiereText text = 3; +} + +// +enum PremiereState { + // + premiere_none = 0; + // + premiere_before = 1; + // + premiere_in = 2; + // + premiere_after = 3; +} + +// +message PremiereText { + // + string title = 1; + // + string subtitle = 2; + // + string online_text = 3; + // + string online_icon = 4; + // + string online_icon_dark = 5; + // + string intro_title = 6; + // + string intro_icon = 7; + // + string guidance_pulldown = 8; + // + string guidance_entry = 9; + // + string intro_icon_night = 10; +} + +// +message PullClientAction { + // + string type = 1; + // + bool pull_action = 2; + // + string params = 3; +} + +// +message RabbitYear { + // + PlayerAutomate player_automate = 1; + // + DmSummon dm_summon = 2; + // + HalfScreen half_screen = 3; + // + SpecialDm special_dm = 4; +} + +// +message Rank { + // + string icon = 1; + // + string icon_night = 2; + // + string text = 3; +} + +// +message RankInfo { + // + string icon_url_night = 1; + // + string icon_url_day = 2; + // + string bkg_night_color = 3; + // + string bkg_day_color = 4; + // + string font_night_color = 5; + // + string font_day_color = 6; + // + string rank_content = 7; + // + string rank_link = 8; +} + +// +message ReasonStyle { + // + string text = 1; + // + string text_color = 2; + // + string bg_color = 3; + // + string border_color = 4; + // + string text_color_night = 5; + // + string bg_color_night = 6; + // + string border_color_night = 7; + // + int32 bg_style = 8; + // + int32 selected = 9; +} + +// +message RecDislike { + // + string title = 1; + // + string sub_title = 2; + // + string closed_sub_title = 3; + // + string paste_text = 4; + // + string closed_paste_text = 5; + // + repeated DislikeReasons dislike_reason = 6; + // + string toast = 7; + // + string closed_toast = 8; +} + +// +message RecThreePoint { + // + RecDislike dislike = 1; + // + RecDislike feedback = 2; + // + bool watch_later = 3; +} + +// +message RefreshPage { + // + int32 refreshable = 1; + // + int32 refresh_icon = 2; + // + string refresh_text = 3; + // + float refresh_show = 4; +} + +// +message RejectPage { + // + RejectPageEnum business = 1; + // + string pic = 2; + // + string primary_text = 3; + // + string secondary_text = 4; + // + Button button = 5; +} + +// +enum RejectPageEnum { + // + REJECTPAGE_UNKNOWN = 0; + // + REJECTPAGE_CHARGINGPLUS = 1; +} + +// +message Relate { + // + int64 aid = 1; + // + string pic = 2; + // + string title = 3; + // + bilibili.app.archive.v1.Author author = 4; + // + bilibili.app.archive.v1.Stat stat = 5; + // + int64 duration = 6; + // + string goto = 7; + // + string param = 8; + // + string uri = 9; + // + string jump_url = 10; + // + double rating = 11; + // + string reserve = 12; + // + string from = 13; + // + string desc = 14; + // + string rcmd_reason = 15; + // + string badge = 16; + // + int64 cid = 17; + // + int32 season_type = 18; + // + int32 rating_count = 19; + // + string tag_name = 20; + // + PackInfo pack_info = 21; + // + Notice notice = 22; + // + Button button = 23; + // + string trackid = 24; + // + int32 new_card = 25; + // + ReasonStyle rcmd_reason_style = 26; + // + string cover_gif = 27; + // + CM cm = 28; + // + int64 reserve_status = 29; + // + string rcmd_reason_extra = 30; + // + RecThreePoint rec_three_point = 31; + // + string unique_id = 32; + // + int64 material_id = 33; + // + int64 from_source_type = 34; + // + string from_source_id = 35; + // + bilibili.app.archive.v1.Dimension dimension = 36; + // + string cover = 37; + // + ReasonStyle badge_style = 38; + // + PowerIconStyle power_icon_style = 39; + // + string reserve_status_text = 40; + // + string dislike_report_data = 41; + // + RankInfo rank_info_game = 42; + // + string first_frame = 43; + // + string game_recommend_reason = 44; + // + WikiInfo wiki_info_game = 45; + // + LiveInfo live_info = 46; + // + ArchiveStat stat_v2 = 47; + // + string report_flow_data = 48; +} + +// +message RelateItem { + // + string url = 1; + // + string cover = 2; + // + bool use_default_browser = 3; +} + +// +message RelateTab { + // + string id = 1; + // + string title = 2; +} + +// +message RelatesFeedReply { + // + repeated Relate list = 1; + // + bool has_next = 2; + // + bilibili.pagination.PaginationReply pagination = 3; +} + +// +message RelatesFeedReq { + // + int64 aid = 1; + // + string bvid = 2; + // + string from = 3; + // + string spmid = 4; + // + string from_spmid = 5; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 6; + // + int64 relates_page = 7; + // + string session_id = 8; + // + int32 autoplay = 9; + // + string from_track_id = 10; + // + string biz_extra = 11; + // + int64 device_type = 12; + // + string ad_extra = 13; + // + bilibili.pagination.Pagination pagination = 14; + // + int32 refresh_num = 15; +} + +// +message ReplyStyle { + // + string badge_url = 1; + // + string badge_text = 2; + // + int64 badge_type = 3; +} + +// +message ReqUser { + // + int32 attention = 1; + // + int32 guest_attention = 2; + // + int32 favorite = 3; + // + int32 like = 4; + // + int32 dislike = 5; + // + int32 coin = 6; + // + int32 attention_level = 7; + // + int32 fav_season = 8; + // + Button elec_plus_btn = 9; + // + ELecPlus elec_plus = 10; +} + +// +message ReserveReply { + // + int64 reserve_id = 1; +} + +// +message ReserveReq { + // + int64 reserve_id = 1; + // + int64 reserve_action = 2; + // + int64 up_id = 3; +} + +// +message Restriction { + // + bool is_teenagers = 1; + // + bool is_lessons = 2; + // + bool is_review = 3; + // + bool disable_rcmd = 4; +} + +// +message Season { + // + string allow_download = 1; + // + int64 season_id = 2; + // + int32 is_jump = 3; + // + string title = 4; + // + string cover = 5; + // + int32 is_finish = 6; + // + int64 newest_ep_id = 7; + // + string newest_ep_index = 8; + // + int64 total_count = 9; + // + int32 weekday = 10; + // + UserSeason user_season = 11; + // + SeasonPlayer player = 12; + // + string ogv_playurl = 13; +} + +// +message SeasonActivityRecordReply { + // + UgcSeasonActivity activity = 1; +} + +// +message SeasonActivityRecordReq { + // + int64 season_id = 1; + // + int64 activity_id = 2; + // + int32 action = 3; + // + int64 aid = 4; + // + int64 cid = 5; + // + int64 scene = 6; + // + string spmid = 7; + // + string from_spmid = 8; + // + string action_id = 9; +} + +// +message SeasonPlayer { + // + int64 aid = 1; + // + string vid = 2; + // + int64 cid = 3; + // + string from = 4; +} + +// +message SeasonReply { + // + UgcSeason season = 1; +} + +// +message SeasonReq { + // + int64 season_id = 1; +} + +// +message SeasonShow { + // + string button_text = 1; + // + string join_text = 2; + // + string rule_text = 3; + // + string checkin_text = 4; + // + string checkin_prompt = 5; +} + +// +enum SeasonType { + // + Unknown = 0; + // + Base = 1; + // + Good = 2; +} + +// +message SeasonWidgetExposeReply { + // + int64 season_id = 1; + // + int64 activity_id = 2; +} + +// +message SeasonWidgetExposeReq { + // + int64 mid = 1; + // + int32 type = 2; + // + int64 season_id = 3; + // + int64 activity_id = 4; + // + int64 aid = 5; + // + int64 cid = 6; + // + int64 scene = 7; +} + +// +message Section { + // + int64 id = 1; + // + string title = 2; + // + int64 type = 3; + // + repeated Episode episodes = 4; +} + +// +message ShortFormVideoDownloadReply { + // + bool has_download_url = 1; + // + string download_url = 2; + // + string md5 = 3; + // + int64 size = 4; + // + string backup_download_url = 5; +} + +// +message ShortFormVideoDownloadReq { + // + int64 aid = 1; + // + int64 cid = 2; + // + int64 mid = 3; + // + string buvid = 4; + // + string mobi_app = 5; + // + int64 build = 6; + // + string device = 7; + // + string platform = 8; + // + string spmid = 9; + // + Restriction restriction = 10; + // + string tf_isp = 11; +} + +// +message SpecialCell { + // + string icon = 1; + // + string icon_night = 2; + // + string text = 3; + // + string text_color = 4; + // + string text_color_night = 5; + // + string jump_url = 6; + // + string cell_type = 7; + // + string cell_bgcolor = 8; + // + string cell_bgcolor_night = 9; + // + string param = 10; + // + string page_title = 11; + // + string jump_type = 12; + // + string end_icon = 13; + // + string end_icon_night = 14; + // + int64 notes_count = 15; + // + CellFluid cell_fluid = 16; +} + +// +message SpecialDm { + // + int64 start = 1; + // + int64 end = 2; + // + bool is_display = 3; +} + +// +message Staff { + // + int64 mid = 1; + // + string title = 2; + // + string face = 3; + // + string name = 4; + // + OfficialVerify official_verify = 5; + // + Vip vip = 6; + // + int32 attention = 7; + // + int32 label_style = 8; + // + bilibili.account.service.v1.NameRender name_render = 9; +} + +// +message StandardCard { + // + string title = 1; + // + string button_title = 2; + // + string button_selected_title = 3; + // + bool show_selected = 4; +} + +// +message StatInfo { + // + int32 icon = 1; + // + string text = 2; + // + string pure_text = 3; +} + +// +message TFInfoReply { + // + int64 tips_id = 1; + // + TFToast tf_toast = 2; + // + TFPanelCustomized tf_panel_customized = 3; + // + bool user_flag_new = 4; +} + +// +message TFInfoReq { +} + +// +message TFPanelCustomized { + // + string right_btn_img = 1; + // + string right_btn_text = 2; + // + string right_btn_text_color = 3; + // + string right_btn_link = 4; + // + string main_label = 5; + // + string operator = 6; + // + map sub_panel = 7; +} + +// +message TFToast { + // + string btn_text = 1; + // + string btn_link = 2; + // + string title = 3; + // + string description = 4; +} + +// +message TIcon { + // + string icon = 1; +} + +// +message Tab { + // + string background = 1; + // + TabOtype otype = 2; + // + int64 oid = 3; + // + string uri = 4; + // + TabStyle style = 5; + // + string text = 6; + // + string text_color = 7; + // + string text_color_selected = 8; + // + string pic = 9; + // + int64 id = 10; + // + google.protobuf.Any ad_tab_info = 11; +} + +// +message TabModule { + // + repeated ExtTab ext_tabs = 1; + // + int32 idx = 2; + // + string protocol_url = 3; +} + +// +enum TabOtype { + // + UnknownOtype = 0; + // + URL = 1; + // + TopicNA = 2; + // + CmURI = 3; +} + +// +enum TabStyle { + // + UnknownStyle = 0; + // + Text = 1; + // + Pic = 2; +} + +// +message Tag { + // + int64 id = 1; + // + string name = 2; + // + int64 likes = 3; + // + int64 hates = 4; + // + int32 liked = 5; + // + int32 hated = 6; + // + string uri = 7; + // + string tag_type = 8; +} + +// +message UgcSeason { + // + int64 id = 1; + // + string title = 2; + // + string cover = 3; + // + string intro = 4; + // + repeated Section sections = 5; + // + UgcSeasonStat stat = 6; + // + string label_text = 7; + // + string label_text_color = 8; + // + string label_bg_color = 9; + // + string label_text_night_color = 10; + // + string label_bg_night_color = 11; + // + string desc_right = 12; + // + int64 ep_count = 13; + // + SeasonType season_type = 14; + // + bool show_continual_button = 15; + // + int64 ep_num = 16; + // + bool season_pay = 17; + // + GoodsInfo goods_info = 18; + // + ButtonStyle pay_button = 19; + // + string label_text_new = 20; + // + UgcSeasonActivity activity = 21; + // + repeated string season_ability = 22; + // + UgcSeasonStatV2 stat_v2 = 23; +} + +// +message UgcSeasonActivity { + // + int32 type = 1; + // + int64 oid = 2; + // + int64 activity_id = 3; + // + string title = 4; + // + string intro = 5; + // + int32 day_count = 6; + // + int32 user_count = 7; + // + int64 join_deadline = 8; + // + int64 activity_deadline = 9; + // + int32 checkin_view_time = 10; + // + bool new_activity = 11; + // + UserActivity user_activity = 12; + // + SeasonShow season_show = 13; +} + +// +message UgcSeasonStat { + // + int64 season_id = 1; + // + int32 view = 2; + // + int32 danmaku = 3; + // + int32 reply = 4; + // + int32 fav = 5; + // + int32 coin = 6; + // + int32 share = 7; + // + int32 now_rank = 8; + // + int32 his_rank = 9; + // + int32 like = 10; +} + +// +message UgcSeasonStatV2 { + // + StatInfo view_vt = 11; +} + +// +message UpAct { + // + int64 sid = 1; + // + int64 mid = 2; + // + string title = 3; + // + string statement = 4; + // + string image = 5; + // + string url = 6; + // + string button = 7; +} + +// +message UpLikeImg { + // + string pre_img = 1; + // + string suc_img = 2; + // + string content = 3; + // + int64 type = 4; +} + +// +message UpViewMaterial { + // + InteractArea like_info = 1; + // + string data_center_info = 2; + // + TabModule tab_module = 3; +} + +// +message UpperInfos { + // + int64 fans_count = 1; + // + int64 arc_count_last_half_year = 2; + // + int64 first_up_dates = 3; + // + int64 total_play_count = 4; +} + +// +message User { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + int64 follower = 4; + // + int64 is_attention = 5; + // + int64 is_interrelation = 6; + // + int64 is_follow = 7; + // + string interact_desc = 8; +} + +// +message UserActivity { + // + int32 user_state = 1; + // + int64 last_checkin_date = 2; + // + int32 checkin_today = 3; + // + int32 user_day_count = 4; + // + int32 user_view_time = 5; + // + string portrait = 6; +} + +// +message UserGarb { + // + string url_image_ani_cut = 1; + // + string like_toast = 2; +} + +// +message UserRelation { + // + InteractArea like_info = 1; +} + +// +message UserSeason { + // + string attention = 1; +} + +// +message VideoGuide { + // + repeated Attention attention = 1; + // + repeated CommandDm command_dms = 2; + // + repeated OperationCard operation_card = 3; + // + repeated OperationCardNew operation_card_new = 4; + // + ContractCard contract_card = 5; + // + repeated OperationCardV2 cards_second = 6; +} + +// +message VideoPoint { + // + int32 type = 1; + // + int64 from = 2; + // + int64 to = 3; + // + string content = 4; + // + string cover = 5; + // + string logo_url = 6; +} + +// +message VideoShot { + // + string pv_data = 1; + // + int32 img_x_len = 2; + // + int32 img_y_len = 3; + // + int32 img_x_size = 4; + // + int32 img_y_size = 5; + // + repeated string image = 6; +} + +// +message ViewMaterial { + // + int64 oid = 1; + // + int64 mid = 2; + // + string title = 3; + // + string author = 4; + // + string jump_url = 5; +} + +// +message ViewMaterialReply { + // + repeated MaterialRes material_res = 1; + // + MaterialLeft material_left = 2; +} + +// +message ViewMaterialReq { + // + int64 aid = 1; + // + string bvid = 2; + // + int64 cid = 3; +} + +// +message ViewPage { + // + bilibili.app.archive.v1.Page page = 1; + // + Audio audio = 2; + // + DM dm = 3; + // + string download_title = 4; + // + string download_subtitle = 5; +} + +// +message ViewProgressReply { + // + VideoGuide video_guide = 1; + // + Chronos chronos = 2; + // + VideoShot arc_shot = 3; + // + repeated VideoPoint points = 4; + // + PointMaterial point_material = 5; + // + bool point_permanent = 6; + // + repeated BuzzwordConfig buzzword_periods = 7; +} + +// +message ViewProgressReq { + // + int64 aid = 1; + // + int64 cid = 2; + // + int64 up_mid = 3; + // + string engine_version = 4; + // + string message_protocol = 5; + // + string service_key = 6; +} + +// +message ViewReply { + // + bilibili.app.archive.v1.Arc arc = 1; + // + repeated ViewPage pages = 2; + // + OnwerExt owner_ext = 3; + // + ReqUser req_user = 4; + // + repeated Tag tag = 5; + // + map t_icon = 6; + // + Season season = 7; + // + ElecRank elec_rank = 8; + // + History history = 9; + // + repeated Relate relates = 10; + // + Dislike dislike = 11; + // + PlayerIcon player_icon = 12; + // + string vip_active = 13; + // + string bvid = 14; + // + Honor honor = 15; + // + repeated RelateTab relate_tab = 16; + // + string activity_url = 17; + // + repeated Bgm bgm = 18; + // + repeated Staff staff = 19; + // + string argue_msg = 20; + // + string short_link = 21; + // + int32 play_param = 22; + // + Label label = 23; + // + UgcSeason ugc_season = 24; + // + Config config = 25; + // + string share_subtitle = 26; + // + Interaction interaction = 27; + // + ECode ecode = 28; + // + CustomConfig custom_config = 29; + // + repeated CM cms = 30; + // + CMConfig cm_config = 31; + // + Tab tab = 32; + // + Rank rank = 33; + // + TFPanelCustomized tf_panel_customized = 34; + // + UpAct up_act = 35; + // + UserGarb user_garb = 36; + // + ActivitySeason activity_season = 37; + // + string badge_url = 38; + // + LiveOrderInfo live_order_info = 39; + // + repeated DescV2 desc_v2 = 40; + // + CmIpad cm_ipad = 41; + // + repeated ViewMaterial sticker = 42; + // + UpLikeImg up_like_img = 43; + // + LikeCustom like_custom = 44; + // + repeated Tag desc_tag = 45; + // + SpecialCell special_cell = 46; + // + Online online = 47; + // + google.protobuf.Any cm_under_player = 48; + // + repeated ViewMaterial video_source = 49; + // + repeated SpecialCell special_cell_new = 50; + // + PremiereResource premiere = 51; + // + bool refresh_special_cell = 52; + // + MaterialLeft material_left = 53; + // + int64 notes_count = 54; + // + PullClientAction pull_action = 55; + // + ArcExtra arc_extra = 56; + // + bilibili.pagination.PaginationReply pagination = 57; + // + LikeAnimation like_animation = 58; + // + ReplyStyle reply_preface = 59; + // + RefreshPage refresh_page = 60; + // + CoinCustom coin_custom = 61; + // + ControlConfig control_config = 62; + // + UpViewMaterial up_view_material = 63; + // + UserRelation user_relation = 64; + // + CoinStyle coin_style = 65; + // + RabbitYear rabbit_year = 66; + // + ArchiveStat stat_v2 = 67; + // + ChargingPlus charging_plus = 68; + // + RejectPage reject_page = 69; + // + repeated PlayToast play_toast = 70; + // + ViewState view_state = 71; + // + ArgueBar argue_bar = 72; +} + +// +message ViewReq { + // + int64 aid = 1; + // + string bvid = 2; + // + string from = 3; + // + string trackid = 4; + // + string ad_extra = 5; + // + int32 qn = 6; + // + int32 fnver = 7; + // + int32 fnval = 8; + // + int32 force_host = 9; + // + int32 fourk = 10; + // + string spmid = 11; + // + string from_spmid = 12; + // + int32 autoplay = 13; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 14; + // + string page_version = 15; + // + string biz_extra = 16; + // + int64 device_type = 17; + // + int64 relates_page = 18; + // + string session_id = 19; + // + int32 in_feed_play = 20; + // + string play_mode = 21; + // + bilibili.pagination.Pagination pagination = 22; + // + int32 refresh = 23; + // + int32 refresh_num = 24; +} + +// +enum ViewState { + // + ViewNone = 0; + // + ViewHostOnlySelf = 1; +} + +// +message ViewTagReply { + // + repeated SpecialCell special_cell_new = 1; + // + MaterialLeft material_left = 2; +} + +// +message ViewTagReq { + // + int64 aid = 1; + // + string bvid = 2; + // + int64 cid = 3; + // + string spmid = 4; +} + +// +message Vip { + // + int32 type = 1; + // + int64 due_date = 2; + // + string due_remark = 3; + // + int32 access_status = 4; + // + int32 vip_status = 5; + // + string vip_status_warn = 6; + // + int32 theme_type = 7; + // + VipLabel label = 8; +} + +// +message VipLabel { + // + string path = 1; + // + string text = 2; + // + string label_theme = 3; +} + +// +message WikiInfo { + // + string wiki_label = 1; + // + string wiki_url = 2; +} + +// +message subTFPanel { + // + string right_btn_img = 1; + // + string right_btn_text = 2; + // + string right_btn_text_color = 3; + // + string right_btn_link = 4; + // + string main_label = 5; + // + string operator = 6; +} + diff --git a/proto/bilibili/app/viewunite/common.proto b/proto/bilibili/app/viewunite/common.proto new file mode 100644 index 0000000..63932b7 --- /dev/null +++ b/proto/bilibili/app/viewunite/common.proto @@ -0,0 +1,3137 @@ +syntax = "proto3"; + +package bilibili.app.viewunite.common; + +import "bilibili/account/service/v1.proto"; +import "bilibili/dagw/component/avatar/v1.proto"; +import "bilibili/pagination.proto"; +import "bilibili/playershared.proto"; +import "google/protobuf/any.proto"; + +// +message ActBannerItem { + // + string url = 1; + // + string cover = 2; + // + JumpType jump_type = 3; + // + map report = 4; +} + +// +message ActPageItems { + // + repeated ActBannerItem item = 1; + // + ShowStyle show_style = 2; + // + string title = 3; +} + +// +message Activity { + // + int32 id = 1; + // + string title = 2; + // + string link = 3; + // + string cover = 4; + // + int32 type = 5; + // + string ab = 6; + // + string show_name = 7; + // + string picurl = 8; + // + string picurl_selected = 9; + // + string h5_link = 10; + // + string jump_mode = 11; + // + repeated Item items = 12; +} + +// +message ActivityEntrance { + // + string activity_cover = 1; + // + string activity_title = 2; + // + string word_tag = 3; + // + string activity_subtitle = 4; + // + string activity_link = 5; + // + int32 activity_type = 6; + // + int32 reserve_id = 7; + // + int32 status = 8; + // + repeated User upper_list = 9; + // + map report = 10; + // + map order_report_params = 11; +} + +// +message ActivityEntranceModule { + // + repeated ActivityEntrance activity_entrance = 1; +} + +// +message ActivityGuidanceBar { + // + string win_id = 1; + // + bool login = 2; + // + string show_time = 3; + // + string action = 4; + // + string url = 5; + // + string close_type = 6; + // + ImagesWidget images = 7; + // + TextWidget title = 8; + // + TextWidget sub_title = 9; + // + ButtonWidget button = 10; + // + map report = 11; +} + +// +message ActivityIFrame { + // + string url = 1; + // + double aspect_ratio = 2; +} + +// +message ActivityReserve { + // + string title = 1; + // + StatInfo vt = 2; + // + StatInfo danmaku = 3; + // + ReserveButton button = 4; +} + +// +message ActivityResource { + // + string mod_pool_name = 1; + // + string mod_resource_name = 2; +} + +// +message ActivityStarRail { + // + string pic = 1; + // + repeated StarRail pic_gallery = 2; +} + +// +message ActivityTab { + // + int32 id = 1; + // + string title = 2; + // + int32 type = 3; + // + string show_name = 4; + // + string picurl = 5; + // + string picurl_selected = 6; + // + string h5_link = 7; + // + string link = 8; + // + int32 link_type = 9; + // + int64 biz_key = 10; + // + string desc = 11; + // + string act_ext = 12; + // + map report = 13; +} + +// +message AggEpCard { + // + string title = 1; + // + string cover = 2; + // + string icon = 3; + // + int32 num = 4; + // + string jump_url = 5; +} + +// +message AggEps { + // + repeated AggEpCard agg_ep_cards = 1; + // + int32 place_index = 2; +} + +// +message ArcRights { + // + bool is_charging_pay = 1; +} + +// +message AttentionRecommend { +} + +// +enum AttentionRelationStatus { + // + ARS_NONE = 0; + // + ARS_N0RELATION = 1; + // + ARS_FOLLOWHIM = 2; + // + ARS_FOLLOWME = 3; + // + ARS_BUDDY = 4; + // + ARS_SPECIAL = 5; + // + ARS_CANCELBLOCK = 6; +} + +// +message Audio { + // + map audio_info = 1; +} + +// +message AudioInfo { + // + string title = 1; + // + string cover_url = 2; + // + int64 song_id = 3; + // + int64 play_count = 4; + // + int64 reply_count = 5; + // + int64 upper_id = 6; + // + string entrance = 7; + // + int64 song_attr = 8; +} + +// +message Author { + // + int64 mid = 1; + // + string name = 2; +} + +// +message BadgeInfo { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + int32 bg_style = 8; + // + string img = 9; + // + int32 type = 10; +} + +// +message Banner { + // + string title = 1; + // + repeated RelateItem relate_item = 2; +} + +// +message BgInfo { + // + string light_short_bg = 1; + // + string dark_short_bg = 2; + // + string light_long_bg = 3; + // + string dark_long_bg = 4; +} + +// +message BizFavParam { + // + int64 season_id = 1; +} + +// +message BizReserveActivityParam { + // + int64 activity_id = 1; + // + string from = 2; + // + string type = 3; + // + int64 oid = 4; + // + int64 reserve_id = 5; +} + +// +message Button { + // + string title = 1; + // + string left_strikethrough_text = 2; + // + string type = 3; + // + string link = 4; + // + BadgeInfo badge_info = 5; + // + string sub_title = 6; +} + +// +message ButtonWidget { + // + string code = 1; + // + TextWidget text = 2; + // + string bg_color = 3; + // + string action = 4; + // + string link = 5; +} + +// +message CardBasicInfo { + // + string title = 1; + // + string desc = 2; + // + string cover = 3; + // + string uri = 4; + // + string track_id = 5; + // + string unique_id = 6; + // + int64 from_source_type = 7; + // + string from_source_id = 8; + // + int64 material_id = 9; + // + string cover_gif = 10; + // + Owner author = 11; + // + int64 id = 12; + // + string from = 13; + // + string from_spmid_suffix = 14; + // + string report_flow_data = 15; + // + string cover_right_text = 16; + // + CoverDimension dimension = 17; +} + +// +message CardStyle { + // + int32 id = 1; + // + string name = 2; +} + +// +message CatalogTab { + // + string title = 1; +} + +// +message Celebrity { + // + int32 id = 1; + // + string name = 2; + // + string role = 3; + // + string avatar = 4; + // + string short_desc = 5; + // + string desc = 6; + // + string character_avatar = 7; + // + string link = 8; + // + int64 mid = 9; + // + int32 is_follow = 10; + // + string occupation_name = 11; + // + OccupationType occupation_type = 12; + // + int32 relate_attr = 13; + // + string small_avatar = 14; + // + map report = 15; + // + OfficialVerify official = 16; +} + +// +message CellFluid { + // + string top_base_color = 1; + // + string top_split_color = 2; + // + string top_text_color = 3; +} + +// +message CharacterGroup { + // + string title = 1; + // + repeated Celebrity characters = 2; +} + +// +message Characters { + // + repeated CharacterGroup groups = 1; +} + +// +message CoinExtend { + // + string coin_app_zip_icon = 1; + // + string coin_app_icon1 = 2; + // + string coin_app_icon2 = 3; + // + string coin_app_icon3 = 4; + // + string coin_app_icon4 = 5; +} + +// +message CombinationEp { + // + int32 id = 1; + // + int32 section_id = 2; + // + string title = 3; + // + int32 can_ord_desc = 4; + // + string more = 5; + // + repeated int32 episode_ids = 6; + // + repeated ViewEpisode episodes = 7; + // + string split_text = 8; + // + Style module_style = 9; + // + repeated SerialSeason serial_season = 10; + // + SectionData section_data = 11; +} + +// +message ContractText { + // + string title = 1; + // + string subtitle = 2; +} + +// +message Covenanter { + // + int32 is_follow_display = 1; + // + ContractText text = 2; + // + int32 is_interact_display = 3; +} + +// +message CoverDimension { + // + float width = 1; + // + float height = 2; +} + +// +message DeliveryData { + // + oneof data { + // + Activity activity = 4; + // + Characters characters = 5; + // + TheatreHotTopic theatre_hot_topic = 6; + // + AggEps agg_eps = 7; + // + ActPageItems act_page_items = 10; + } + // + string title = 1; + // + Style module_style = 2; + // + string more = 3; + // + int32 id = 8; + // + map report = 9; +} + +// +message Desc { + // + string info = 1; + // + string title = 2; +} + +// +enum DescType { + // + DescTypeUnknown = 0; + // + DescTypeText = 1; + // + DescTypeAt = 2; +} + +// +message DescV2 { + // + string text = 1; + // + DescType type = 2; + // + string uri = 3; + // + int64 rid = 4; +} + +// +message Dimension { + // + int64 width = 1; + // + int64 height = 2; + // + int64 rotate = 3; +} + +// +message DislikeReasons { + // + int64 id = 1; + // + int64 mid = 2; + // + int32 rid = 3; + // + int64 tag_id = 4; + // + string name = 5; +} + +// +message EpBgInfo { + // + BgInfo float_layer = 1; + // + BgInfo no_float_layer = 2; +} + +// +message ExtTab { + // + ExtType ext_type = 1; + // + string data = 2; +} + +// +enum ExtType { + // + ExtNone = 0; + // + ExtDataCenter = 1; + // + ExtDataEarnings = 2; +} + +// +message FollowLayer { + // + Staff staff = 1; + // + Desc desc = 2; + // + map report = 3; +} + +// +message Headline { + // + Label label = 1; + // + string content = 2; +} + +// +message HistoryNode { + // + int64 node_id = 1; + // + string title = 2; + // + int64 cid = 3; +} + +// +message Honor { + // + oneof extend { + // + ProfessionHonorExtend profession_ext = 15; + } + // + string icon = 1; + // + string icon_night = 2; + // + string text = 3; + // + string text_extra = 4; + // + string text_color = 5; + // + string text_color_night = 6; + // + string bg_color = 7; + // + string bg_color_night = 8; + // + string url = 9; + // + string url_text = 10; + // + HonorType type = 11; + // + HonorJumpType honor_jump_type = 12; + // + map report = 13; + // + string end_icon = 14; +} + +// +enum HonorJumpType { + // + HONOR_JUMP_TYPE_UNKNOWN = 0; + // + HONOR_OPEN_URL = 1; + // + HONOR_HALF_SCREEN = 2; + // + HONOR_POPUP = 3; +} + +// +enum HonorType { + // + HONOR_NONE = 0; + // + PLAYLET = 1; + // + ARGUE = 2; + // + NOTICE = 3; + // + GUIDANCE = 4; + // + HONOR_BILI_RANK = 5; + // + HONOR_WEEKLY_RANK = 6; + // + HONOR_DAILY_RANK = 7; + // + HONOR_CHANNEL = 8; + // + HONOR_MUSIC = 9; + // + HONOR_REPLY = 10; + // + HONOR_PROFESSION = 11; + // + HONOR_HOT_WORD = 12; +} + +// +message IconFont { + // + string name = 1; + // + string text = 2; +} + +// +message ImagesWidget { + // + string code = 1; + // + repeated string url = 2; +} + +// +message Interaction { + // + int64 ep_id = 1; + // + HistoryNode history_node = 2; + // + int64 graph_version = 3; + // + string msg = 4; + // + bool is_interaction = 5; +} + +// +message Item { + // + string link = 1; + // + string cover = 2; +} + +// +enum JumpType { + // + JUMP_TYPE_UNKNOWN = 0; + // + OPEN_URL = 1; + // + REFRESH = 2; + // + HALF_SCREEN = 3; + // + OPEN_URL_BY_OUTER_BROWSER = 4; +} + +// +message KingPos { + // + oneof extend { + // + LikeExtend like = 6; + // + CoinExtend coin = 7; + } + // + bool disable = 1; + // + string icon = 2; + // + KingPositionType type = 3; + // + string disable_toast = 4; + // + string checked_toast = 5; +} + +// +message KingPosition { + // + repeated KingPos king_pos = 1; + // + repeated KingPos extend = 2; +} + +// +enum KingPositionType { + // + KING_POS_UNSPECIFIED = 0; + // + LIKE = 1; + // + DISLIKE = 2; + // + COIN = 3; + // + FAV = 4; + // + SHARE = 5; + // + CACHE = 6; + // + DANMAKU = 7; +} + +// +message Label { + // + int32 type = 1; + // + string uri = 2; + // + string icon = 3; + // + string icon_night = 4; + // + int64 icon_width = 5; + // + int64 icon_height = 6; + // + string lottie = 7; + // + string lottie_night = 8; + // + map report = 9; +} + +// +message LikeComment { + // + string reply = 1; + // + string title = 2; +} + +// +message LikeExtend { + // + UpLikeImg triple_like = 1; + // + string like_animation = 2; + // + PlayerAnimation player_animation = 3; + // + ActivityResource resource = 4; +} + +// +message Live { + // + int64 mid = 1; + // + int64 room_id = 2; + // + string uri = 3; + // + string endpage_uri = 4; +} + +// +message LiveOrder { + // + int64 sid = 1; + // + string text = 2; + // + int64 live_plan_start_time = 3; + // + bool is_follow = 4; + // + int64 follow_count = 5; + // + ReserveCalendarInfo reserve_calendar_info = 6; +} + +// +message Merchandise { + // + string title = 1; + // + MerchandiseButton button = 2; + // + repeated MerchandiseCard card = 3; +} + +// +message MerchandiseButton { + // + string but_title = 1; + // + string but_day_color = 2; + // + string but_night_color = 3; +} + +// +message MerchandiseCard { + // + string cover = 1; + // + string title = 2; + // + repeated MerchandiseTitle sub_title = 3; + // + MerchandiseButton button = 4; + // + google.protobuf.Any source_content = 5; +} + +// +message MerchandiseTitle { + // + string title = 1; + // + string day_color = 2; + // + string night_color = 3; + // + int64 font_size = 4; + // + int32 text_decoration = 5; +} + +// +message Mine { + // + double amount = 1; + // + int32 rank = 2; + // + string msg = 3; +} + +// +message Module { + // + oneof data { + // + OgvIntroduction ogv_introduction = 2; + // + UgcIntroduction ugc_introduction = 3; + // + KingPosition king_position = 4; + // + Headline head_line = 5; + // + OgvTitle ogv_title = 6; + // + Honor honor = 7; + // + UserList list = 8; + // + Staffs staffs = 9; + // + ActivityReserve activity_reserve = 10; + // + LiveOrder live_order = 11; + // + SectionData section_data = 12; + // + DeliveryData delivery_data = 13; + // + FollowLayer follow_layer = 14; + // + OgvSeasons ogv_seasons = 15; + // + UgcSeasons ugc_season = 16; + // + OgvLiveReserve ogv_live_reserve = 17; + // + CombinationEp combination_ep = 18; + // + Sponsor sponsor = 19; + // + ActivityEntranceModule activity_entrance_module = 20; + // + SerialSeason serial_season = 21; + // + Relates relates = 22; + // + Banner banner = 23; + // + Audio audio = 24; + // + LikeComment like_comment = 25; + // + AttentionRecommend attention_recommend = 26; + // + Covenanter covenanter = 27; + // + SpecialTag special_tag = 28; + // + UpDataModule up_data_module = 29; + // + ProfessionApproval profession_approval = 30; + // + PugvShoppingNotice pugv_shopping_notice = 31; + // + PugvFaq pugv_faq = 32; + // + PugvSeasonDescription pugv_season_description = 33; + // + PugvSeasonRecommend pugv_season_recommend = 34; + // + PugvSeasonPublisher pugv_season_publisher = 35; + // + PugvSeasonSelection pugv_season_selection = 36; + // + PugvSeasonPrimaryInfo pugv_season_primary_info = 37; + // + PugvCooperationApplication pugv_cooperation_application = 38; + // + UpVideoTool up_video_tool = 39; + // + PugvZone pugv_zone = 40; + // + PugvSeries pugv_series = 41; + // + PugvPackage pugv_package = 42; + // + ActivityStarRail activity_star_rail = 43; + // + ActivityIFrame activity_iframe = 44; + // + PlayList play_list = 45; + // + Merchandise merchandise = 46; + // + ActivityGuidanceBar activity_guidance_bar = 47; + } + // + ModuleType type = 1; +} + +// +enum ModuleType { + // + UNKNOWN = 0; + // + OGV_INTRODUCTION = 1; + // + OGV_TITLE = 2; + // + UGC_HEADLINE = 3; + // + UGC_INTRODUCTION = 4; + // + KING_POSITION = 5; + // + MASTER_USER_LIST = 6; + // + STAFFS = 7; + // + HONOR = 8; + // + OWNER = 9; + // + PAGE = 10; + // + ACTIVITY_RESERVE = 11; + // + LIVE_ORDER = 12; + // + POSITIVE = 13; + // + SECTION = 14; + // + RELATE = 15; + // + PUGV = 16; + // + COLLECTION_CARD = 17; + // + ACTIVITY = 18; + // + CHARACTER = 19; + // + FOLLOW_LAYER = 20; + // + OGV_SEASONS = 21; + // + UGC_SEASON = 22; + // + OGV_LIVE_RESERVE = 23; + // + COMBINATION_EPISODE = 24; + // + SPONSOR = 25; + // + ACTIVITY_ENTRANCE = 26; + // + THEATRE_HOT_TOPIC = 27; + // + RELATED_RECOMMEND = 28; + // + PAY_BAR = 29; + // + BANNER = 30; + // + AUDIO = 31; + // + AGG_CARD = 32; + // + SINGLE_EP = 33; + // + LIKE_COMMENT = 34; + // + ATTENTION_RECOMMEND = 35; + // + COVENANTER = 36; + // + SPECIALTAG = 37; + // + UPDATA = 38; + // + PROFESSION_APPROVAL = 39; + // + PUGV_SHOPPING_NOTICE = 40; + // + PUGV_FAQ = 41; + // + PUGV_SEASON_DESCRIPTION = 42; + // + PUGV_SEASON_RECOMMEND = 43; + // + PUGV_SEASON_PUBLISHER = 44; + // + PUGV_SEASON_SELECTION = 45; + // + PUGV_SEASON_PRIMARY_INFO = 46; + // + PUGV_COOPERATION_APPLICATION = 47; + // + UP_VIDEO_TOOL = 48; + // + PUGV_ZONE = 49; + // + PUGV_SERIES = 50; + // + PUGV_PACKAGE = 51; + // + ACTIVITY_STAR_RAIL = 52; + // + ACTIVITY_IFRAME = 53; + // + PLAY_LIST = 54; + // + MERCHANDISE = 55; + // + ACTIVITY_GUIDANCE_BAR = 56; +} + +// +message MultiViewEp { + // + int64 ep_id = 1; +} + +// +message Neutral { + // + string icon = 1; + // + string title = 2; +} + +// +message NewEp { + // + int32 id = 1; + // + string title = 2; + // + string desc = 3; + // + int32 is_new = 4; + // + string more = 5; + // + string cover = 6; + // + string index_show = 7; +} + +// +enum OccupationType { + // + STAFF = 0; + // + CAST = 1; + // + UNKNOWN_TYPE = -1; +} + +// +message OfficialVerify { + // + int32 type = 1; + // + string desc = 2; +} + +// +message OgvIntroduction { + // + string followers = 1; + // + string score = 2; + // + StatInfo play_data = 3; + // + string score_color = 4; + // + string score_night_color = 5; + // + string text_color = 6; + // + string text_night_color = 7; +} + +// +message OgvLiveReserve { + // + int64 reserve_id = 1; + // + string title = 2; + // + string icon = 3; + // + string night_icon = 4; + // + string click_button = 5; + // + string link = 6; + // + int32 follow_video_is_reserve_live = 7; + // + string bg_color = 8; + // + string night_bg_color = 9; + // + string text_color = 10; + // + string night_text_color = 11; + // + string bt_bg_color = 12; + // + string bt_frame_color = 13; + // + string night_bt_bg_color = 14; + // + string night_bt_frame_color = 15; + // + int32 active_type = 16; + // + int32 reserve_status = 17; + // + string bt_text_color = 18; + // + string night_bt_text_color = 19; + // + map report = 20; + // + int32 live_status = 21; +} + +// +message OgvSeasons { + // + string title = 1; + // + repeated SerialSeason serial_season = 2; + // + SerialSeasonCoverStyle style = 3; +} + +// +message OgvTitle { + // + string title = 1; + // + BadgeInfo badge_info = 2; + // + int32 is_show_btn_animation = 3; + // + int32 follow_video_is_reserve_live = 4; + // + int64 reserve_id = 5; + // + TitleDeliveryButton title_delivery_button = 6; + // + TitleDeliveryButton channel_redirect_entry_button = 7; + // + string title_img = 8; + // + string title_img_night = 9; + // + int32 webp_dynamic_pic_title_cycle_num = 10; +} + +// +message OperateAction { + // + string action = 1; + // + string link = 2; +} + +// +message Owner { + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar = 1; + // + string url = 2; + // + string title = 3; + // + string fans = 4; + // + string arc_count = 5; + // + AttentionRelationStatus attention = 6; + // + AttentionRelationStatus attention_relation = 7; + // + string pub_location = 8; + // + Vip vip = 9; + // + string title_url = 10; + // + string face = 11; + // + int64 mid = 12; + // + OfficialVerify official_verify = 13; + // + Live live = 14; + // + int64 fans_num = 15; + // + repeated int64 assists = 16; + // + string season_count = 17; + // + bilibili.account.service.v1.NameRender name_render = 18; +} + +// +message Page { + // + int64 cid = 1; + // + string part = 2; + // + int64 duration = 3; + // + string desc = 4; + // + Dimension dimension = 5; + // + string dl_title = 6; + // + string dl_subtitle = 7; +} + +// +message Pendant { + // + int32 pid = 1; + // + string name = 2; + // + string image = 3; +} + +// +message PlayList { + // + int32 id = 1; + // + string title = 2; + // + Owner upper = 3; + // + string desc = 4; + // + string more_title = 5; + // + repeated PlayListSeason seasons = 6; + // + bool more_playlist = 7; + // + map report = 8; + // + string more_playlist_url = 9; +} + +// +message PlayListSeason { + // + int32 season_id = 1; + // + string title = 2; + // + string subtitle = 3; + // + string cover = 4; + // + string link = 5; + // + string score = 6; + // + map report = 7; +} + +// +message PlayerAnimation { + // + string player_icon = 1; + // + string player_triple_icon = 2; +} + +// +message PointActivity { + // + string tip = 1; + // + string content = 2; + // + string link = 3; +} + +// +message PowerIconStyle { + // + string icon_url = 1; + // + string icon_night_url = 2; + // + int64 icon_width = 3; + // + int64 icon_height = 4; +} + +// +message ProfessionApproval { + // + string title = 1; + // + string subtitle = 2; + // + int32 type = 3; +} + +// +message ProfessionHonorExtend { + // + int64 count = 1; + // + bool self_grant = 2; + // + ProfessionPopup popup = 3; +} + +// +message ProfessionPopup { + // + string title = 1; + // + string subtitle = 2; +} + +// +message PugvCooperationApplication { + // + string link = 1; + // + string title = 2; + // + string subtitle = 3; + // + string button_text = 4; + // + string icon = 5; +} + +// +message PugvFaq { + // + PugvSeasonNav nav = 1; + // + repeated PugvFaqContent contents = 2; +} + +// +message PugvFaqContent { + // + string question = 1; + // + string answer = 2; + // + string link = 3; +} + +// +message PugvPackage { + // + PugvSeasonNav nav = 1; + // + repeated PugvPackageItem contents = 2; +} + +// +message PugvPackageItem { + // + int64 product_id = 1; + // + string cover = 2; + // + string title = 3; + // + string discount_price_desc = 4; + // + string original_price_desc = 5; + // + string desc = 6; + // + string link = 7; + // + int64 season_count = 8; + // + PugvPackageSaleInfo sale_info = 9; +} + +// +message PugvPackageSaleInfo { + // + string icon = 1; + // + string icon_dark = 2; +} + +// +message PugvSeasonCooperator { + // + int64 mid = 1; + // + string avatar = 2; + // + string nickname = 3; + // + bool is_owner = 4; + // + string role = 5; + // + string user_link = 6; + // + bool followed = 7; +} + +// +message PugvSeasonDescription { + // + oneof content { + // + PugvSeasonDescriptionText text = 3; + // + PugvSeasonDescriptionImage image = 4; + } + // + PugvSeasonNav nav = 1; + // + PugvSeasonDescriptionType type = 2; +} + +// +message PugvSeasonDescriptionImage { + // + repeated PugvSeasonDescriptionImageItem images = 1; + // + bool folded = 2; + // + double fold_ratio = 3; +} + +// +message PugvSeasonDescriptionImageItem { + // + string image_url = 1; + // + double aspect_ratio = 2; +} + +// +message PugvSeasonDescriptionText { + // + string text = 1; +} + +// +enum PugvSeasonDescriptionType { + // + PUGV_SEASON_DESCRIPTION_TYPE_UNSPECIFIED = 0; + // + PUGV_SEASON_DESCRIPTION_TYPE_TEXT = 1; + // + PUGV_SEASON_DESCRIPTION_TYPE_IMAGE = 2; +} + +// +message PugvSeasonNav { + // + string title = 1; + // + string more_text = 2; + // + string desc = 3; +} + +// +message PugvSeasonPrimaryBadge { + // + string icon = 1; + // + string link = 2; + // + string night_icon = 3; +} + +// +message PugvSeasonPrimaryCustomInfo { + // + string expiry_info = 1; +} + +// +message PugvSeasonPrimaryHotRank { + // + string text = 1; + // + string link = 2; +} + +// +message PugvSeasonPrimaryInfo { + // + string title = 1; + // + string subtitle = 2; + // + StatInfo stat_info = 3; + // + PugvSeasonPrimaryRankInfo rank_info = 4; + // + PugvSeasonPrimarySellPointInfo sell_point_info = 5; + // + PugvSeasonPrimaryCustomInfo custom_info = 6; + // + bool show_payment = 7; + // + PugvSeasonPrimaryBadge badge = 8; +} + +// +message PugvSeasonPrimaryRankInfo { + // + PugvSeasonPrimaryHotRank hot_rank = 1; +} + +// +message PugvSeasonPrimarySellPoint { + // + string title = 1; + // + string detail = 2; +} + +// +message PugvSeasonPrimarySellPointInfo { + // + PugvSeasonPrimarySellPointType type = 1; + // + repeated PugvSeasonPrimarySellPoint sell_points = 2; +} + +// +enum PugvSeasonPrimarySellPointType { + // + PUGV_SEASON_PRIMARY_SELL_POINT_TYPE_UNSPECIFIED = 0; + // + PUGV_SEASON_PRIMARY_SELL_POINT_TYPE_MANUAL = 1; + // + PUGV_SEASON_PRIMARY_SELL_POINT_TYPE_AUTO = 2; +} + +// +message PugvSeasonPublisher { + // + PugvSeasonNav nav = 1; + // + string publisher_desc = 2; + // + repeated PugvSeasonCooperator cooperators = 3; + // + PugvSeasonPublisherSkuContent sku_content = 4; +} + +// +message PugvSeasonPublisherSkuContent { + // + string title = 1; + // + repeated PugvSeasonPublisherSkuContentItem items = 2; +} + +// +message PugvSeasonPublisherSkuContentItem { + // + string title = 1; + // + int64 season_id = 2; + // + bool selected = 3; +} + +// +message PugvSeasonRecommend { + // + PugvSeasonNav nav = 1; + // + repeated PugvSeasonRecommendContent contents = 2; + // + PugvSeasonRecommendMore more_info = 3; + // + PugvSeasonRecommendShowStyle show_style = 4; +} + +// +message PugvSeasonRecommendContent { + // + string cover_url = 1; + // + string title = 2; + // + string subtitle = 3; + // + string link = 4; + // + string desc = 5; + // + int64 season_id = 6; + // + string author = 7; + // + StatInfo view = 8; + // + BadgeInfo rcmd_reason = 9; +} + +// +message PugvSeasonRecommendMore { + // + string title = 1; + // + string link = 2; + // + string link_text = 3; +} + +// +enum PugvSeasonRecommendShowStyle { + // + PUGV_SEASON_RECOMMEND_SHOW_STYLE_UNSPECIFIED = 0; + // + PUGV_SEASON_RECOMMEND_SHOW_STYLE_MORE = 1; + // + PUGV_SEASON_RECOMMEND_SHOW_STYLE_FEED = 2; +} + +// +message PugvSeasonSelection { + // + PugvSeasonNav nav = 1; +} + +// +message PugvSeries { + // + PugvSeasonNav nav = 1; + // + repeated PugvSeriesItem contents = 2; +} + +// +message PugvSeriesItem { + // + int64 season_id = 1; + // + bool selected = 2; + // + bool gray = 3; + // + string content = 4; + // + string label = 5; + // + PugvSeriesItemState state = 6; +} + +// +enum PugvSeriesItemState { + // + PUGV_SERIRES_ITEM_STATE_UNSPECIAL = 0; + // + PUGV_SERIRES_ITEM_STATE_NOT_START = 1; + // + PUGV_SERIRES_ITEM_STATE_START = 2; + // + PUGV_SERIRES_ITEM_STATE_END = 3; +} + +// +message PugvShoppingNotice { + // + PugvSeasonNav nav = 1; + // + repeated PugvShoppingNoticeContent contents = 2; + // + string link = 3; +} + +// +message PugvShoppingNoticeContent { + // + string number = 1; + // + string content = 2; + // + bool is_bold = 3; +} + +// +message PugvZone { + // + repeated PugvZoneItem contents = 1; +} + +// +message PugvZoneItem { + // + string icon = 1; + // + string link = 2; + // + string title = 3; + // + string subtitle = 4; + // + PugvZoneItemType type = 5; +} + +// +enum PugvZoneItemType { + // + PUGV_ZONE_ITEM_TYPE_UNSPECIFIED = 0; + // + PUGV_ZONE_ITEM_TYPE_SEASON = 1; + // + PUGV_ZONE_ITEM_TYPE_POSTGRADUATE = 2; +} + +// +message Rank { + // + string icon = 1; + // + string icon_night = 2; + // + string text = 3; +} + +// +message RankInfo { + // + string icon_url_night = 1; + // + string icon_url_day = 2; + // + string bkg_night_color = 3; + // + string bkg_day_color = 4; + // + string font_night_color = 5; + // + string font_day_color = 6; + // + string rank_content = 7; + // + string rank_link = 8; +} + +// +message Rating { + // + string score = 1; + // + int32 count = 2; +} + +// +message RelateAVCard { + // + int64 duration = 1; + // + int64 cid = 2; + // + Dimension dimension = 3; + // + Stat stat = 4; + // + string jump_url = 5; + // + bool show_up_name = 6; + // + BadgeInfo rcmd_reason = 7; + // + string duration_text = 8; + // + bool show_rcmd_style = 9; +} + +// +message RelateBangumiAvCard { + // + BadgeInfo badge = 1; + // + Stat stat = 2; + // + Rating rating = 3; + // + string cover_right_text = 4; + // + bool show_rcmd_style = 5; +} + +// +message RelateBangumiCard { + // + int32 season_id = 1; + // + int32 season_type = 2; + // + NewEp new_ep = 3; + // + Stat stat = 4; + // + Rating rating = 5; + // + string rcmd_reason = 6; + // + BadgeInfo badge_info = 7; + // + string goto_type = 8; + // + map report = 9; +} + +// +message RelateBangumiResourceCard { + // + int32 type = 1; + // + string scover = 2; + // + int32 re_type = 3; + // + string re_value = 4; + // + string corner = 5; + // + int32 card = 6; + // + string siz = 7; + // + int32 position = 8; + // + string rcmd_reason = 9; + // + string label = 10; + // + map report = 11; + // + string goto_type = 12; +} + +// +message RelateBangumiUGCCard { + // + BadgeInfo badge = 1; + // + Stat stat = 2; + // + Rating rating = 3; +} + +// +message RelateCMCard { + // + int64 aid = 1; + // + google.protobuf.Any source_content = 2; + // + int64 duration = 3; + // + Stat stat = 4; + // + int32 nature_ad = 5; +} + +// +message RelateCard { + // + oneof card { + // + RelateAVCard av = 2; + // + RelateBangumiCard bangumi = 3; + // + RelateBangumiResourceCard resource = 4; + // + RelateGameCard game = 5; + // + RelateCMCard cm = 6; + // + RelateLiveCard live = 7; + // + RelateBangumiAvCard bangumi_av = 8; + // + RelatedAICard ai_card = 9; + // + RelateBangumiUGCCard bangumi_ugc = 13; + // + RelateSpecial special = 14; + // + RelateCourseCard course = 15; + // + RelateMiniProgramCard mini_program = 16; + // + RelateHistoryAVCard history_av = 17; + } + // + RelateCardType relate_card_type = 1; + // + RelateThreePoint three_point = 10; + // + google.protobuf.Any cm_stock = 11; + // + CardBasicInfo basic_info = 12; +} + +// +enum RelateCardType { + // + CARD_TYPE_UNKNOWN = 0; + // + AV = 1; + // + BANGUMI = 2; + // + RESOURCE = 3; + // + GAME = 4; + // + CM = 5; + // + LIVE = 6; + // + AI_RECOMMEND = 7; + // + BANGUMI_AV = 8; + // + BANGUMI_UGC = 9; + // + SPECIAL = 10; + // + COURSE = 11; + // + MINI_PROGRAM = 12; + // + HISTORY_AV = 13; +} + +// +message RelateConfig { + // + int64 valid_show_m = 1; + // + int64 valid_show_n = 2; + // + bilibili.pagination.Pagination pagination = 3; + // + bool can_load_more = 4; + // + CoverDimension dimension = 5; +} + +// +message RelateCourseCard { + // + int64 duration = 1; + // + Stat stat = 2; + // + BadgeInfo rcmd_reason = 3; + // + BadgeInfo badge_info = 4; + // + int32 style = 5; + // + bool show_rcmd_style = 6; +} + +// +message RelateDislike { + // + string title = 1; + // + string sub_title = 2; + // + string closed_sub_title = 3; + // + string paste_text = 4; + // + string closed_paste_text = 5; + // + repeated DislikeReasons dislike_reason = 6; + // + string toast = 7; + // + string closed_toast = 8; +} + +// +message RelateGameCard { + // + int64 reserve_status = 1; + // + string reserve_status_text = 2; + // + string reserve = 3; + // + float rating = 4; + // + string tag_name = 5; + // + RankInfo rank_info = 6; + // + Button pack_info = 7; + // + Button notice = 8; + // + PowerIconStyle power_icon_style = 9; + // + string game_rcmd_reason = 10; + // + WikiInfo wiki_info = 11; + // + BadgeInfo badge = 12; +} + +// +message RelateHistoryAVCard { + // + int64 duration = 1; + // + int64 progress = 2; + // + int64 unix = 3; + // + string icon = 4; +} + +// +message RelateItem { + // + string url = 1; + // + string cover = 2; + // + bool use_default_browser = 3; +} + +// +message RelateLiveCard { + // + int64 icon_type = 1; + // + string area_name = 2; + // + int64 watched_show = 3; + // + int64 live_status = 4; + // + BadgeInfo rcmd_reason = 5; + // + string live_new_style = 6; + // + StatInfo stat_info = 7; + // + bool show_rcmd_style = 8; +} + +// +message RelateMiniProgramCard { + // + Stat stat = 1; +} + +// +message RelateSpecial { + // + BadgeInfo badge = 1; + // + BadgeInfo rcmd_reason = 2; + // + bool show_rcmd_style = 3; +} + +// +message RelateTab { + // + int64 tab_category = 1; + // + string title = 2; +} + +// +message RelateThreePoint { + // + RelateDislike dislike = 1; + // + RelateDislike feedback = 2; + // + bool watch_later = 3; + // + string dislike_report_data = 4; +} + +// +message RelatedAICard { + // + int64 aid = 1; + // + int64 duration = 2; + // + Staff up_info = 3; + // + Stat stat = 4; + // + map report = 5; + // + string goto_type = 6; +} + +// +message Relates { + // + repeated RelateCard cards = 1; + // + RelateConfig config = 2; + // + repeated RelateTab tab = 3; +} + +// +enum ReserveBizType { + // + BizTypeNone = 0; + // + BizTypeReserveActivity = 1; + // + BizTypeFavSeason = 2; +} + +// +message ReserveButton { + // + oneof order_param { + // + BizReserveActivityParam reserve = 8; + // + BizFavParam fav = 9; + } + // + bool status = 1; + // + string text = 3; + // + string selected_text = 4; + // + ReserveBizType order_type = 7; +} + +// +message ReserveCalendarInfo { + // + string title = 1; + // + int64 start_ts = 2; + // + int64 end_ts = 3; + // + string description = 4; + // + string business_id = 5; +} + +// +message Rights { + // + int32 allow_download = 1; + // + int32 allow_review = 2; + // + int32 can_watch = 3; + // + string resource = 4; + // + int32 allow_dm = 5; + // + int32 allow_demand = 6; + // + int32 area_limit = 7; +} + +// +message SeasonHead { + // + string title = 1; + // + string intro = 2; + // + StatInfo vt = 3; + // + StatInfo danmaku = 4; +} + +// +message SeasonShow { + // + string button_text = 1; + // + string join_text = 2; + // + string rule_text = 3; + // + string checkin_text = 4; + // + string checkin_prompt = 5; +} + +// +enum SeasonType { + // + Unknown = 0; + // + Base = 1; + // + Good = 2; +} + +// +message SectionData { + // + int32 id = 1; + // + int32 section_id = 2; + // + string title = 3; + // + int32 can_ord_desc = 4; + // + string more = 5; + // + repeated int32 episode_ids = 6; + // + repeated ViewEpisode episodes = 7; + // + string split_text = 8; + // + Style module_style = 9; + // + string more_bottom_desc = 10; + // + repeated SerialSeason seasons = 11; + // + Button more_left = 12; + // + int32 type = 13; + // + map report = 14; + // + EpBgInfo bg_info = 15; +} + +// +message SerialSeason { + // + int32 season_id = 1; + // + string title = 2; + // + string season_title = 3; + // + int32 is_new = 4; + // + string cover = 5; + // + string badge = 6; + // + int32 badge_type = 7; + // + BadgeInfo badge_info = 8; + // + string link = 9; + // + string resource = 10; + // + NewEp new_ep = 11; + // + map report = 12; +} + +// +enum SerialSeasonCoverStyle { + // + TITLE = 0; + // + PICTURE = 1; + // + SERIAL_SEASON_COVER_STYLE_UNKNOWN = -1; +} + +// +enum ShowStyle { + // + SHOW_STYLE_UNKNOWN = 0; + // + ONE_ROW_ONE_COLUMN = 1; + // + ONE_ROW_MULTI_COLUMN = 2; + // + ONE_COLUMN_MULTI_ROW = 3; +} + +// +message SkipRange { + // + int32 start = 1; + // + int32 end = 2; +} + +// +message SpecialCell { + // + string icon = 1; + // + string icon_night = 2; + // + string text = 3; + // + string text_color = 4; + // + string text_color_night = 5; + // + string jump_url = 6; + // + string cell_type = 7; + // + string cell_bgcolor = 8; + // + string cell_bgcolor_night = 9; + // + string param = 10; + // + string page_title = 11; + // + string jump_type = 12; + // + string end_icon = 13; + // + string end_icon_night = 14; + // + CellFluid cell_fluid = 15; + // + map report = 16; +} + +// +message SpecialTag { + // + repeated SpecialCell special_cell = 1; + // + bool refresh = 2; +} + +// +message Sponsor { + // + int64 total = 1; + // + int64 week = 2; + // + repeated SponsorRank rank_list = 3; + // + Mine mine = 4; + // + PointActivity point_activity = 5; + // + repeated Pendant pendants = 6; + // + repeated Threshold threshold = 7; +} + +// +message SponsorRank { + // + int64 uid = 1; + // + string msg = 2; + // + string uname = 3; + // + string face = 4; + // + Vip vip = 5; +} + +// +message Staff { + // + int64 mid = 1; + // + int32 attention = 2; + // + string title = 3; + // + string name = 4; + // + string face = 5; + // + OfficialVerify official = 6; + // + Vip vip = 7; + // + int32 label_style = 8; + // + string fans = 9; + // + bilibili.account.service.v1.NameRender name_render = 10; +} + +// +message Staffs { + // + repeated Staff staff = 1; + // + string title = 2; +} + +// +message StarRail { + // + int64 season_id = 1; + // + int64 aid = 2; + // + int64 cid = 3; + // + int64 open_time = 4; + // + int32 status = 5; + // + string pic1 = 6; + // + string pic2 = 7; + // + string pic3 = 8; + // + string pic4 = 9; + // + string pic5 = 10; +} + +// +message Stat { + // + StatInfo vt = 1; + // + StatInfo danmaku = 2; + // + int64 reply = 3; + // + int64 fav = 4; + // + int64 coin = 5; + // + int64 share = 6; + // + int64 like = 7; + // + int64 follow = 8; +} + +// +message StatInfo { + // + int64 value = 1; + // + string text = 2; + // + string pure_text = 3; + // + string icon = 4; +} + +// +message Style { + // + int32 line = 1; + // + int32 hidden = 2; + // + repeated string show_pages = 3; +} + +// +message Tag { + // + int64 tag_id = 1; + // + string name = 2; + // + string uri = 3; + // + string tag_type = 4; +} + +// +message TextWidget { + // + string code = 1; + // + string text = 2; + // + string text_color = 3; + // + string bg_color = 4; +} + +// +message TheatreHotTopic { + // + int64 theatre_id = 1; + // + int64 theatre_set_id = 2; + // + string theatre_title = 3; + // + string background_image_url = 4; + // + string theatre_url = 5; + // + int64 hot_topic_id = 6; + // + int64 hot_topic_set_id = 7; + // + string hot_topic_title = 8; + // + string hot_topic_url = 9; + // + int32 is_subscribe = 10; + // + map report = 11; +} + +// +message Threshold { + // + int32 bp = 1; + // + int32 days = 2; + // + string days_text = 3; +} + +// +message TitleDeliveryButton { + // + string icon = 1; + // + string title = 2; + // + string link = 3; + // + map report = 4; + // + string bubble = 5; +} + +// +enum ToolType { + // + INTERACTIVE_DANMAKU = 0; + // + INTERACTIVE_SETTINGS = 1; + // + TAKE_OFF = 2; + // + UNIVERSAL = 3; +} + +// +message UgcEpisode { + // + int64 id = 1; + // + int64 aid = 2; + // + int64 cid = 3; + // + string title = 4; + // + string cover = 5; + // + string cover_right_text = 6; + // + Page page = 7; + // + StatInfo vt = 8; + // + StatInfo danmaku = 9; + // + BadgeInfo badge = 10; + // + repeated Page pages = 11; + // + double progress_percent = 12; + // + int64 duration = 13; + // + Author author = 14; + // + bilibili.playershared.BizType biz_type = 15; +} + +// +message UgcIntroduction { + // + repeated Tag tags = 1; + // + Rating rating = 2; + // + Rank rank = 3; + // + repeated ViewMaterial bgm = 4; + // + repeated ViewMaterial sticker = 5; + // + repeated ViewMaterial video_source = 6; + // + int64 pubdate = 7; + // + repeated DescV2 desc = 8; + // + Neutral neutral = 9; +} + +// +message UgcSeasonActivity { + // + int32 type = 1; + // + int64 oid = 2; + // + int64 activity_id = 3; + // + string title = 4; + // + string intro = 5; + // + int32 day_count = 6; + // + int32 user_count = 7; + // + int64 join_deadline = 8; + // + int64 activity_deadline = 9; + // + int32 checkin_view_time = 10; + // + bool new_activity = 11; + // + UserActivity user_activity = 12; + // + SeasonShow season_show = 13; +} + +// +message UgcSeasons { + // + int64 id = 1; + // + string title = 2; + // + string cover = 3; + // + string supernatant_title = 4; + // + repeated UgcSection section = 5; + // + string union_title = 6; + // + SeasonHead head = 7; + // + int64 ep_count = 8; + // + SeasonType season_type = 9; + // + UgcSeasonActivity activity = 10; + // + repeated string season_ability = 11; + // + string season_title = 12; +} + +// +message UgcSection { + // + int64 id = 1; + // + string title = 2; + // + int64 type = 3; + // + repeated UgcEpisode episodes = 4; +} + +// +message UpDataModule { + // + repeated ExtTab ext_tabs = 1; + // + int32 idx = 2; + // + string protocol_url = 3; + // + int32 height = 4; +} + +// +message UpLikeImg { + // + string pre_img = 1; + // + string suc_img = 2; + // + string content = 3; + // + int64 type = 4; +} + +// +message UpTool { + // + ToolType type = 1; + // + string text = 2; + // + string icon = 3; + // + string url = 4; + // + BadgeInfo badge = 5; +} + +// +message UpVideoTool { + // + string title = 1; + // + repeated UpTool tools = 2; +} + +// +message User { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + int64 follower = 4; +} + +// +message UserActivity { + // + int32 user_state = 1; + // + int64 last_checkin_date = 2; + // + int32 checkin_today = 3; + // + int32 user_day_count = 4; + // + int32 user_view_time = 5; + // + string portrait = 6; +} + +// +message UserList { + // + repeated User list = 1; + // + string title = 2; +} + +// +message UserStatus { + // + int32 show = 1; + // + int32 follow = 2; +} + +// +message ViewEpisode { + // + int64 ep_id = 1; + // + string badge = 2; + // + int32 badge_type = 3; + // + BadgeInfo badge_info = 4; + // + int32 duration = 5; + // + int32 status = 6; + // + string cover = 7; + // + int64 aid = 8; + // + string title = 9; + // + string movie_title = 10; + // + string subtitle = 11; + // + string long_title = 12; + // + string toast_title = 13; + // + int64 cid = 14; + // + string from = 15; + // + string share_url = 16; + // + string share_copy = 17; + // + string short_link = 18; + // + string vid = 19; + // + string release_date = 20; + // + Dimension dimension = 21; + // + Rights rights = 22; + // + Interaction interaction = 23; + // + string bvid = 24; + // + int32 archive_attr = 25; + // + string link = 26; + // + string link_type = 27; + // + string bmid = 28; + // + int64 pub_time = 29; + // + int32 pv = 30; + // + int32 ep_index = 31; + // + int32 section_index = 32; + // + repeated Staff up_infos = 33; + // + Staff up_info = 34; + // + string dialog_type = 35; + // + string toast_type = 36; + // + repeated MultiViewEp multi_view_eps = 37; + // + bool is_sub_view = 38; + // + bool is_view_hide = 39; + // + string jump_link = 40; + // + Stat stat_for_unity = 41; + // + map report = 42; + // + int32 section_type = 43; + // + string show_title = 44; +} + +// +message ViewMaterial { + // + int64 oid = 1; + // + int64 mid = 2; + // + string title = 3; + // + string author = 4; + // + string jump_url = 5; +} + +// +message Vip { + // + int32 type = 1; + // + int32 vip_status = 2; + // + int32 theme_type = 3; + // + VipLabel label = 4; + // + int32 is_vip = 5; +} + +// +message VipLabel { + // + string path = 1; + // + string text = 2; + // + string label_theme = 3; +} + +// +message WikiInfo { + // + string wiki_label = 1; + // + string wiki_url = 2; +} + +// +message WinShowCondition { + // + string type = 1; + // + string value = 2; +} + diff --git a/proto/bilibili/app/viewunite/pgcanymodel.proto b/proto/bilibili/app/viewunite/pgcanymodel.proto new file mode 100644 index 0000000..4c0ff32 --- /dev/null +++ b/proto/bilibili/app/viewunite/pgcanymodel.proto @@ -0,0 +1,284 @@ +syntax = "proto3"; + +package bilibili.app.viewunite.pgcanymodel; + +import "bilibili/app/viewunite/common.proto"; + +// +message Earphone { + // + string product_model = 1; + // + string like_toast_text = 2; + // + string switch_toast_text = 3; + // + string like_toast_voice = 4; +} + +// +message EarphoneConf { + // + repeated Earphone sp_phones = 1; +} + +// +message MultiViewInfo { + // + bool is_multi_view_season = 1; + // + string changing_dance = 2; +} + +// +message OgvData { + // + int32 media_id = 1; + // + int64 season_id = 2; + // + int32 season_type = 3; + // + int32 show_season_type = 4; + // + Rights rights = 5; + // + UserStatus user_status = 6; + // + int64 aid = 7; + // + Stat stat = 8; + // + int32 mode = 9; + // + Publish publish = 10; + // + PlayStrategy play_strategy = 11; + // + MultiViewInfo multi_view_info = 12; + // + OgvSwitch ogv_switch = 13; + // + int32 total_ep = 14; + // + bilibili.app.viewunite.common.NewEp new_ep = 15; + // + Reserve reserve = 16; + // + int32 status = 17; + // + repeated PlayFloatLayerActivity activity_float_layer = 18; + // + EarphoneConf earphone_conf = 19; + // + string cover = 20; + // + string square_cover = 21; + // + string share_url = 22; + // + string short_link = 23; + // + string title = 24; + // + string horizontal_cover169 = 25; + // + string horizontal_cover1610 = 26; + // + int32 has_can_play_ep = 27; + // + Skin skin = 28; +} + +// +message OgvSwitch { + // + int32 reduce_short_title_spacing = 1; + // + int32 merge_position_section_for_cinema = 2; + // + int32 merge_preview_section = 3; + // + int32 enable_show_vt_info = 4; + // + int32 hide_ep_vv_vt_dm = 5; + // + int32 follow_guide = 6; +} + +// +message PlayFloatLayerActivity { + // + int32 id = 1; + // + string title = 2; + // + int32 type = 3; + // + int32 ad_badge_type = 4; + // + string link = 5; + // + string pic_url = 6; + // + string pic_anima_url = 7; + // + bilibili.app.viewunite.common.BadgeInfo badge = 8; + // + int64 show_rate_time = 9; +} + +// +message PlayStrategy { + // + repeated string strategies = 1; + // + int32 recommend_show_strategy = 2; + // + string auto_play_toast = 3; +} + +// +message Publish { + // + string pub_time = 1; + // + string pub_time_show = 2; + // + int32 is_started = 3; + // + int32 is_finish = 4; + // + int32 weekday = 5; + // + string release_date_show = 6; + // + string time_length_show = 7; + // + int32 unknow_pub_date = 8; + // + string update_info_desc = 9; +} + +// +message Reserve { + // + repeated bilibili.app.viewunite.common.ViewEpisode episodes = 1; + // + string tip = 2; +} + +// +message Rights { + // + int32 allow_download = 1; + // + int32 allow_review = 2; + // + int32 can_watch = 3; + // + int32 is_cover_show = 4; + // + string copyright = 5; + // + string copyright_name = 6; + // + int32 allow_bp = 7; + // + int32 area_limit = 8; + // + int32 is_preview = 9; + // + int32 ban_area_show = 10; + // + int32 watch_platform = 11; + // + int32 allow_bp_rank = 12; + // + string resource = 13; + // + int32 forbid_pre = 14; + // + int32 only_vip_download = 15; + // + int32 new_allow_download = 16; +} + +// +message Skin { + // + string tab_text_color = 1; + // + string tab_text_night_color = 2; + // + string bg_img = 3; + // + string bg_img_night = 4; + // + string dm_input_frame_bg_color = 5; + // + string dm_input_frame_bg_night_color = 6; + // + string dm_input_frame_color = 7; + // + string dm_input_frame_night_color = 8; + // + string dm_btn_bg_color = 9; + // + string dm_btn_bg_night_color = 10; + // + string dm_btn_icon_color = 11; + // + string dm_btn_icon_night_color = 12; + // + string dm_input_text_color = 13; + // + string dm_input_text_night_color = 14; +} + +// +message Stat { + // + string followers = 1; + // + bilibili.app.viewunite.common.StatInfo play_data = 2; +} + +// +message UserStatus { + // + int32 show = 1; + // + int32 follow = 2; + // + int32 follow_status = 3; + // + int32 pay = 4; + // + int32 sponsor = 5; + // + int32 vip = 6; + // + int32 vip_frozen = 7; + // + WatchProgress watch_progress = 8; +} + +// +message ViewPgcAny { + // + OgvData ogv_data = 1; + // + map all_up_info = 2; +} + +// +message WatchProgress { + // + int64 last_ep_id = 1; + // + string last_ep_index = 2; + // + int64 last_time = 3; +} + diff --git a/proto/bilibili/app/viewunite/pugvanymodel.proto b/proto/bilibili/app/viewunite/pugvanymodel.proto new file mode 100644 index 0000000..3b21db6 --- /dev/null +++ b/proto/bilibili/app/viewunite/pugvanymodel.proto @@ -0,0 +1,561 @@ +syntax = "proto3"; + +package bilibili.app.viewunite.pugvanymodel; + +// +message AbTest { + // + map exp = 1; +} + +// +message CatalogueInfo { + // + repeated SeasonCatalogue catalogues = 1; + // + CatalogueLiveInfo catalogue_live_info = 2; + // + string catalogue_update_text = 3; +} + +// +message CatalogueLiveInfo { + // + int64 episode_id = 1; + // + string title = 2; + // + string subtitle = 3; + // + string button_text = 4; + // + LiveStatus status = 5; +} + +// +message CourseCoach { + // + string detail_url = 1; + // + string directory_url = 2; +} + +// +message Courseware { + // + int64 file_id = 1; + // + string file_name = 2; + // + string file_type = 3; + // + int64 file_size = 4; + // + string desc = 5; + // + string file_url = 6; + // + string icon = 7; +} + +// +message CoursewareInfo { + // + repeated Courseware coursewares = 1; +} + +// +message CredentialInfo { + // + bool tab_show = 1; + // + bool tab_badge_show = 2; + // + string tab_url = 3; + // + string credential_url = 4; + // + int64 require_ep = 5; +} + +// +message DanmakuControl { + // + bool disabled = 1; + // + ExtraContent extra_content = 2; +} + +// +message Episode { + // + oneof data { + // + VideoEpisode video_episode = 2; + // + LiveEpisode live_episode = 3; + } + // + EpisodeType type = 1; +} + +// +message EpisodeDimension { + // + int64 width = 1; + // + int64 height = 2; + // + int64 rotate = 3; +} + +// +message EpisodeHistory { + // + bool last_play = 1; + // + string last_play_text = 2; + // + int64 max_progress = 3; + // + string full_watched_text = 4; +} + +// +message EpisodeLabel { + // + string type_label = 1; +} + +// +message EpisodeSelectionLabel { + // + string type_label = 1; +} + +// +enum EpisodeStatus { + // + EPISODE_STATUS_UNSPECIFIED = 0; + // + EPISODE_STATUS_TRY_WATCH_WHOLE = 1; + // + EPISODE_STATUS_NOT_TRY_WATCH = 2; + // + EPISODE_STATUS_TRY_WATCH_5_MINUTES = 3; +} + +// +enum EpisodeType { + // + EPISODE_TYPE_UNSPECIFIED = 0; + // + EPISODE_TYPE_VIDEO = 1; + // + EPISODE_TYPE_LIVE = 2; +} + +// +message ExtraContent { + // + string disabled_reason = 1; +} + +// +message FragmentVideoMessage { + // + bool has_fragment_video = 1; +} + +// +message GiftInfo { + // + string url = 1; +} + +// +message LiveEpisode { + // + int64 episode_id = 1; + // + LiveStatus status = 2; + // + bool jump = 3; + // + int64 live_teacher_mid = 4; + // + bool show_subscription_prebook_button = 5; + // + bool be_subscription_prebook = 6; + // + int64 index = 7; + // + string title = 8; + // + string play_way_subtitle = 9; + // + string subtitle = 10; + // + bool show_lock_icon = 11; + // + EpisodeLabel episode_label = 12; + // + EpisodeSelectionLabel selection_label = 13; +} + +// +message LiveInfo { + // + int64 episode_id = 1; + // + LiveStatus status = 2; + // + bool jump = 3; + // + int64 live_teacher_mid = 4; + // + bool show_subscription_prebook_button = 5; + // + bool be_subscription_prebook = 6; +} + +// +enum LiveStatus { + // + LIVE_STATUS_UNSPECIFIED = 0; + // + LIVE_STATUS_PREPARE = 1; + // + LIVE_STATUS_LIVE = 2; + // + LIVE_STATUS_PLAYBACK_GENERATING = 3; +} + +// +message NetdiskCourseware { + // + int64 courseware_id = 1; + // + string name = 2; + // + string remark = 3; + // + string desc = 4; + // + string url = 5; + // + string icon = 6; +} + +// +message NetdiskCoursewareInfo { + // + repeated NetdiskCourseware coursewares = 1; +} + +// +message OperationArea { + // + repeated OperationAreaButton buttons = 1; +} + +// +message OperationAreaButton { + // + OperationAreaButtonType type = 1; + // + string text = 2; + // + bool disabled = 3; + // + string link = 4; +} + +// +enum OperationAreaButtonType { + // + OPERATION_AREA_BUTTON_TYPE_UNSPECIFIED = 0; + // + OPERATION_AREA_BUTTON_TYPE_FAVORITE = 1; + // + OPERATION_AREA_BUTTON_TYPE_CONSULT = 2; + // + OPERATION_AREA_BUTTON_TYPE_SHARE = 3; + // + OPERATION_AREA_BUTTON_TYPE_PURCHASE = 4; +} + +// +message PostPurchaseInfo { + // + string pop_up_pic = 1; + // + int64 pop_up_interval = 2; +} + +// +message SeasonCatalogue { + // + string title = 1; + // + int64 index = 2; + // + int64 start_ep_index = 3; + // + int64 end_ep_index = 4; +} + +// +message SeasonCoupon { + // + string token = 1; + // + string title = 2; + // + string start_time = 3; + // + string expire_time = 4; + // + double amount = 5; + // + string show_amount = 6; + // + SeasonCouponStatus status = 7; + // + SeasonCouponType coupon_type = 8; + // + string short_title = 9; + // + string expire_minute = 10; + // + string use_scope = 11; + // + string discount_amount = 12; + // + int64 receive_expire_time = 13; + // + int64 use_expire_time = 14; + // + string scene_mark = 15; + // + string scene_background_img = 16; + // + string scene_benefit_img = 17; + // + bool scene_countdown = 18; +} + +// +enum SeasonCouponStatus { + // + SEASON_COUPON_STATUS_UNSPECIFIED = 0; + // + SEASON_COUPON_STATUS_RECEIVED = 1; + // + SEASON_COUPON_STATUS_NOT_RECEIVED = 2; + // + SEASON_COUPON_STATUS_INVALID = 3; +} + +// +enum SeasonCouponType { + // + SEASON_COUPON_TYPE_UNSPECIFIED = 0; + // + SEASON_COUPON_TYPE_DISCOUNT = 1; + // + SEASON_COUPON_TYPE_DECREASE = 2; +} + +// +message SeasonCustom { + // + WaterMark water_mark = 1; + // + DanmakuControl danmaku_control = 2; +} + +// +message SeasonOverview { + // + int64 season_id = 1; + // + bool support_cash = 2; + // + SeasonStatus status = 3; + // + SeasonType type = 4; + // + string cover = 5; + // + string title = 6; +} + +// +message SeasonPayment { + // + string price_unit = 1; + // + string discount_price = 2; + // + string discount_price_desc = 3; + // + string original_price = 4; + // + string original_price_desc = 5; +} + +// +message SeasonSection { + // + int64 section_id = 1; + // + string title = 2; + // + SeasonSectionType type = 3; + // + repeated Courseware coursewares = 4; + // + repeated Episode episodes = 5; +} + +// +enum SeasonSectionType { + // + SEASON_SECTION_TYPE_UNSPECIFIED = 0; + // + SEASON_SECTION_TYPE_DEFAULT = 1; + // + SEASON_SECTION_TYPE_CUSTOM = 2; +} + +// +message SeasonStat { + // + int64 fav = 1; + // + int64 share = 2; +} + +// +enum SeasonStatus { + // + SEASON_STATUS_UNSPECIFIED = 0; + // + SEASON_STATUS_OFFLINE = 1; +} + +// +enum SeasonType { + // + SEASON_TYPE_UNSPECIFIED = 0; + // + SEASON_TYPE_INSTALLMENT = 1; + // + SEASON_TYPE_FREE = 2; + // + SEASON_TYPE_SUBSCRIPTION = 3; +} + +// +message SectionInfo { + // + repeated SeasonSection sections = 1; +} + +// +message VideoEpisode { + // + repeated Courseware coursewares = 1; + // + int64 index = 2; + // + EpisodeStatus status = 3; + // + int64 aid = 4; + // + int64 cid = 5; + // + string title = 6; + // + string play_way_subtitle = 7; + // + string subtitle = 8; + // + int64 duration = 9; + // + bool can_switch = 10; + // + bool can_play = 11; + // + bool show_lock_icon = 12; + // + EpisodeLabel episode_label = 13; + // + EpisodeSelectionLabel selection_label = 14; + // + EpisodeHistory history = 15; + // + VideoPlayWay play_way = 16; + // + int64 episode_id = 17; + // + string share_link = 18; + // + EpisodeDimension dimension = 19; +} + +// +enum VideoPlayWay { + // + VIDEO_PLAY_WAY_UNSPECIFIED = 0; + // + VIDEO_PLAY_WAY_VOD = 1; + // + VIDEO_PLAY_WAY_LIVE_PLAYBACK = 2; +} + +// +message ViewPugvAny { + // + SeasonOverview season_overview = 1; + // + SeasonPayment season_payment = 2; + // + SeasonCoupon season_coupon = 3; + // + CatalogueInfo catalogue_info = 4; + // + SeasonCustom season_custom = 5; + // + CoursewareInfo courseware_info = 6; + // + CourseCoach course_coach = 7; + // + SectionInfo section_info = 8; + // + AbTest ab_test = 9; + // + OperationArea operation_area = 10; + // + SeasonStat season_stat = 11; + // + PostPurchaseInfo post_purchase_info = 12; + // + GiftInfo gift_info = 13; + // + NetdiskCoursewareInfo netdisk_courseware_info = 14; + // + CredentialInfo credential_info = 15; + // + FragmentVideoMessage fragment_video_message = 16; +} + +// +message WaterMark { + // + bool show_watermark = 1; + // + int64 watermark_interval = 2; +} + diff --git a/proto/bilibili/app/viewunite/ugcanymodel.proto b/proto/bilibili/app/viewunite/ugcanymodel.proto new file mode 100644 index 0000000..992c45b --- /dev/null +++ b/proto/bilibili/app/viewunite/ugcanymodel.proto @@ -0,0 +1,196 @@ +syntax = "proto3"; + +package bilibili.app.viewunite.ugcanymodel; + +import "bilibili/app/viewunite/common.proto"; + +// +message AiExtra { + // + string track_id = 1; +} + +// +message Dislike { + // + string title = 1; + // + string subtitle = 2; + // + repeated DislikeReason reasons = 3; +} + +// +message DislikeReason { + // + int64 id = 1; + // + int64 mid = 2; + // + int32 rid = 3; + // + int64 tag_id = 4; + // + string name = 5; +} + +// +message ElecRank { + // + repeated ElecRankItem list = 1; + // + int64 count = 2; + // + string text = 3; +} + +// +message ElecRankItem { + // + string avatar = 1; + // + string nickname = 2; + // + string message = 3; + // + int64 mid = 4; +} + +// +message Experiment { + // + ShareGuide share_guide = 1; + // + FollowGuide follow_guide = 2; + // + bool tag_fold = 3; +} + +// +message FollowGuide { + // + bool is_view = 1; + // + string view_text = 2; + // + bool is_thumb = 3; + // + string thumb_text = 4; +} + +// +message Premiere { + // + PremiereState premiere_state = 1; + // + int64 start_time = 2; + // + int64 service_time = 3; + // + int64 room_id = 4; +} + +// +message PremiereReserve { + // + int64 reserve_id = 1; + // + int64 count = 2; + // + bool is_follow = 3; +} + +// +message PremiereResource { + // + Premiere premiere = 1; + // + PremiereReserve reserve = 2; + // + PremiereText text = 3; +} + +// +enum PremiereState { + // + premiere_none = 0; + // + premiere_before = 1; + // + premiere_in = 2; + // + premiere_after = 3; +} + +// +message PremiereText { + // + string title = 1; + // + string subtitle = 2; + // + string online_text = 3; + // + string online_icon = 4; + // + string online_icon_dark = 5; + // + string intro_title = 6; + // + string intro_icon = 7; + // + string guidance_pulldown = 8; + // + string guidance_entry = 9; + // + string intro_icon_night = 10; +} + +// +message ShareGuide { + // + bool hit_a = 1; + // + int32 duration = 2; + // + int32 count_a = 3; + // + bool hit_b = 4; + // + int32 count_b = 5; + // + string text = 6; + // + string emphasized_text = 7; +} + +// +message UgcSeasonConf { + // + bool season_unfold = 1; + // + int64 fold_time = 2; +} + +// +message ViewUgcAny { + // + PremiereResource premiere = 1; + // + Dislike dislike = 2; + // + string short_link = 3; + // + string share_subtitle = 4; + // + repeated bilibili.app.viewunite.common.Page pages = 5; + // + ElecRank elec_rank = 6; + // + UgcSeasonConf ugc_season_conf = 7; + // + AiExtra ai_extra = 8; + // + Experiment experiment = 9; +} + diff --git a/proto/bilibili/app/viewunite/v1.proto b/proto/bilibili/app/viewunite/v1.proto new file mode 100644 index 0000000..524209d --- /dev/null +++ b/proto/bilibili/app/viewunite/v1.proto @@ -0,0 +1,1201 @@ +syntax = "proto3"; + +package bilibili.app.viewunite.v1; + +import "bilibili/app/archive/middleware/v1.proto"; +import "bilibili/app/viewunite/common.proto"; +import "bilibili/pagination.proto"; +import "bilibili/playershared.proto"; +import "google/protobuf/any.proto"; + +// +service View { + // + rpc ArcRefresh (ArcRefreshReq) returns (ArcRefreshReply); + // + rpc CacheAuthentication (CacheAuthenticationReq) returns (CacheAuthenticationReply); + // + rpc FloorAdSearch (FloorAdSearchReq) returns (FloorAdSearchReply); + // + rpc RelatesFeed (RelatesFeedReq) returns (RelatesFeedReply); + // + rpc Story (StoryReq) returns (StoryReply); + // + rpc View (ViewReq) returns (ViewReply); + // + rpc ViewProgress (ViewProgressReq) returns (ViewProgressReply); +} + +// +message ActivityResource { + // + string dark_text_color = 1; + // + string divider_color = 2; + // + string bg_color = 3; + // + string selected_bg_color = 4; + // + string text_color = 5; + // + string light_text_color = 6; +} + +// +message Arc { + // + int64 aid = 1; + // + int64 cid = 2; + // + int64 duration = 3; + // + bilibili.app.viewunite.common.Stat stat = 4; + // + string bvid = 5; + // + int32 copyright = 6; + // + Rights right = 7; + // + string cover = 8; + // + int64 type_id = 9; + // + string title = 10; +} + +// +message ArcRefreshReply { + // + bilibili.app.viewunite.common.Stat stat = 1; + // + SimpleReqUser req_user = 2; + // + SimpleArc arc = 3; + // + Online online = 4; + // + LikeConfig like_config = 5; + // + SimpleOwner owner = 6; + // + ReplyStyle reply_style = 7; +} + +// +message ArcRefreshReq { + // + int64 aid = 1; + // + string bvid = 2; + // + UnionType type = 3; +} + +// +message AttentionCard { + // + repeated ShowTime show_time = 1; +} + +// +message BgPlayNotice { + // + bool allow_show = 1; + // + string text = 2; + // + string btn_text1 = 3; + // + string btn_text2 = 4; +} + +// +message BizFollowVideoParam { + // + int64 season_id = 1; +} + +// +message BizGameBackflowParam { + // + string extra = 1; +} + +// +message BizJumpLinkParam { + // + string url = 1; +} + +// +message BizReserveActivityParam { + // + int64 activity_id = 1; + // + string from = 2; + // + string type = 3; + // + int64 oid = 4; + // + int64 reserve_id = 5; +} + +// +message BizReserveGameParam { + // + int64 game_id = 1; +} + +// +enum BizType { + // + BizTypeNone = 0; + // + BizTypeFollowVideo = 1; + // + BizTypeReserveActivity = 2; + // + BizTypeJumpLink = 3; + // + BizTypeFavSeason = 4; + // + BizTypeReserveGame = 5; + // + BizTypeGiftGame = 6; +} + +// +message Button { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; + // + JumpShowType jump_show_type = 4; +} + +// +message CM { + // + google.protobuf.Any cm_under_player = 1; + // + google.protobuf.Any ads_control = 2; + // + repeated google.protobuf.Any source_content = 3; + // + PadRelateCM pad_relate_cm = 4; + // + repeated SourceContentItem source_content_item = 5; +} + +// +message CacheAuthenticationReply { + // + map item = 1; +} + +// +message CacheAuthenticationReq { + // + repeated CachePlayAv av = 1; +} + +// +enum CacheCode { + // + PLAY = 0; + // + UPOWERSTATE_INACTIVE = 100; + // + REPEAT_LAST_OPERATION = 101; +} + +// +message CachePlayAv { + // + int64 aid = 1; +} + +// +message CachePlayAvRly { + // + CacheCode code = 1; +} + +// +message ChargingPlus { + // + bool pass = 1; + // + repeated PlayToast play_toast = 2; +} + +// +message Chronos { + // + string md5 = 1; + // + string file = 2; + // + string sign = 3; +} + +// +message ChronosParam { + // + string engine_version = 1; + // + string message_protocol = 2; + // + string service_key = 3; +} + +// +message CommandDm { + // + int64 id = 1; + // + int64 oid = 2; + // + int64 mid = 3; + // + string command = 4; + // + string content = 5; + // + int32 progress = 6; + // + string ctime = 7; + // + string mtime = 8; + // + string extra = 9; + // + string id_str = 10; +} + +// +message Config { + // + Online online = 1; + // + PlayerIcon player_icon = 2; + // + StoryEntrance story_entrance = 3; + // + BgPlayNotice bg_play_notice = 4; +} + +// +message ContractCard { + // + float display_progress = 1; + // + int64 display_accuracy = 2; + // + int64 display_duration = 3; + // + int32 show_mode = 4; + // + int32 page_type = 5; + // + UpperInfos upper = 6; + // + int32 is_follow_display = 7; + // + ContractText text = 8; + // + int64 follow_display_end_duration = 9; + // + int32 is_play_display = 10; + // + int32 is_interact_display = 11; + // + bool play_display_switch = 12; +} + +// +message ContractText { + // + string title = 1; + // + string subtitle = 2; + // + string inline_title = 3; +} + +// +message Control { + // + bool limit = 1; +} + +// +message DmResource { + // + repeated CommandDm command_dms = 1; + // + AttentionCard attention = 2; + // + repeated OperationCard cards = 3; +} + +// +enum ECode { + // + CODE_DEFAULT = 0; + // + CODE_404 = 1; + // + CODE_ARC_PRIVACY = 2; + // + CODE_TEENAGER = 78301; +} + +// +message ECodeConfig { + // + string redirect_url = 1; + // + string msg = 2; +} + +// +message FloorAdSearchItem { + // + google.protobuf.Any source_content = 1; +} + +// +message FloorAdSearchReply { + // + FloorAdSearchTab tab = 1; + // + repeated FloorAdSearchItem item = 3; +} + +// +message FloorAdSearchReq { + // + int64 aid = 1; + // + string ad_extra = 2; + // + string spmid = 3; + // + string from_spmid = 4; +} + +// +message FloorAdSearchTab { + // + string title = 1; + // + string but_title = 2; + // + string but_url = 3; +} + +// +message FragmentArc { + // + int64 aid = 1; + // + int64 cid = 2; +} + +// +message FragmentParam { + // + repeated FragmentArc fragment_arcs = 1; +} + +// +message FragmentRes { + // + map video_shot = 1; +} + +// +message IconData { + // + string meta_json = 1; + // + string sprits_img = 2; +} + +// +message IntroductionTab { + // + string title = 1; + // + repeated bilibili.app.viewunite.common.Module modules = 2; +} + +// +enum JumpShowType { + // + JST_DEFAULT = 0; + // + JST_FULLSCREEN = 1; + // + JST_HALFSCREEN = 2; +} + +// +message LikeConfig { + // + bilibili.app.viewunite.common.UpLikeImg triple_like = 1; + // + string like_animation = 2; +} + +// +message Material { + // + string icon = 1; + // + string text = 2; + // + string url = 3; + // + MaterialBizType type = 4; + // + string param = 5; + // + string static_icon = 6; + // + string bg_color = 7; + // + string bg_pic = 8; + // + int32 jump_type = 9; + // + PageType page_type = 10; + // + bool need_login = 11; + // + map report = 12; +} + +// +enum MaterialBizType { + // + NONE = 0; + // + ACTIVITY = 1; + // + BGM = 2; + // + EFFECT = 3; + // + SHOOT_SAME = 4; + // + SHOOT_TOGETHER = 5; + // + ACTIVITY_ICON = 6; + // + NEW_BGM = 7; + // + GENERAL_TYPE = 8; +} + +// +enum MaterialSource { + // + DEFAULT = 0; + // + BIJIAN = 1; +} + +// +message OldFan { + // + int32 is_follow_display = 1; + // + string wing_pic = 2; +} + +// +message Online { + // + bool online_show = 1; +} + +// +message OperationCard { + // + oneof param { + // + BizFollowVideoParam follow = 7; + // + BizReserveActivityParam reserve = 8; + // + BizJumpLinkParam jump = 9; + // + BizReserveGameParam game = 10; + // + BizGameBackflowParam game_backflow = 11; + } + // + int64 id = 1; + // + int32 from = 2; + // + int32 to = 3; + // + bool status = 4; + // + BizType biz_type = 5; + // + OperationCardContent content = 6; +} + +// +message OperationCardContent { + // + string title = 1; + // + string subtitle = 2; + // + string icon = 3; + // + string button_title = 4; + // + string button_selected_title = 5; + // + bool show_selected = 6; +} + +// +message PadRelateCM { + // + RelateCM cm = 1; +} + +// +enum PageCategory { + // + COMMON_PAGE = 0; + // + ACTIVITY_PAGE = 1; +} + +// +message PageControl { + // + Control toast_show = 1; + // + Control material_show = 2; + // + Control up_show = 3; +} + +// +enum PageType { + // + H5 = 0; + // + NA = 1; +} + +// +message PlayListReqParam { + // + int64 media_id = 1; + // + int64 biz_id = 2; + // + int64 type = 3; + // + bool page_direction = 4; + // + bool first_page = 5; + // + int64 offset = 6; + // + int64 sort_desc = 7; + // + int64 sort_field = 8; +} + +// +message PlayToast { + // + PlayToastEnum business = 1; + // + string icon_url = 2; + // + string text = 3; +} + +// +enum PlayToastEnum { + // + PLAYTOAST_UNKNOWN = 0; + // + PLAYTOAST_CHARGINGPLUS = 1; +} + +// +message PlayerIcon { + // + string url1 = 1; + // + string hash1 = 2; + // + string url2 = 3; + // + string hash2 = 4; + // + string drag_left_png = 5; + // + string middle_png = 6; + // + string drag_right_png = 7; + // + IconData drag_data = 8; + // + IconData nodrag_data = 9; +} + +// +message PointMaterial { + // + string url = 1; + // + MaterialSource material_source = 2; +} + +// +message Relate { + // + int64 device_type = 1; + // + bilibili.pagination.Pagination pagination = 2; +} + +// +message RelateCM { + // + int64 aid = 1; + // + google.protobuf.Any source_content = 2; + // + int64 duration = 3; + // + bilibili.app.viewunite.common.Stat stat = 4; + // + bilibili.app.viewunite.common.Owner owner = 5; +} + +// +message RelatesFeedReply { + // + repeated bilibili.app.viewunite.common.RelateCard relates = 1; + // + bilibili.pagination.Pagination pagination = 2; +} + +// +message RelatesFeedReq { + // + int64 aid = 1; + // + string bvid = 2; + // + string from = 3; + // + string spmid = 4; + // + string from_spmid = 5; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 6; + // + bilibili.pagination.Pagination pagination = 7; + // + string session_id = 8; + // + int64 auto_play = 9; + // + string from_track_id = 10; + // + string biz_extra = 11; + // + string ad_extra = 12; + // + int64 tab_category = 13; + // + string tab_category_name = 14; +} + +// +message ReplyStyle { + // + string badge_url = 1; + // + string badge_text = 2; + // + int64 badge_type = 3; +} + +// +message ReplyTab { + // + ReplyStyle reply_style = 1; + // + string title = 2; + // + TabControl control = 3; +} + +// +message ReqUser { + // + int32 favorite = 1; + // + int32 like = 2; + // + int32 coin = 3; + // + int32 fav_season = 4; + // + int32 follow = 5; + // + int32 dislike = 6; + // + Button elec_plus_btn = 7; + // + ChargingPlus charging_plus = 8; + // + ReqUserExtra extra = 9; + // + int32 paid = 10; + // + OldFan old_fan = 11; +} + +// +message ReqUserExtra { + // + bool user_flag_new = 1; +} + +// +message Rights { + // + bool only_vip_download = 1; + // + bool no_reprint = 2; + // + bool download = 3; + // + bool is_charging_pay = 4; +} + +// +message ShowTime { + // + int32 start_time = 1; + // + int32 end_time = 2; + // + double pos_x = 3; + // + double pos_y = 4; +} + +// +message SimpleArc { + // + int32 copyright = 1; +} + +// +message SimpleOwner { + // + bilibili.app.viewunite.common.AttentionRelationStatus attention_relation = 1; +} + +// +message SimpleReqUser { + // + int32 favorite = 1; + // + int32 like = 2; + // + int32 coin = 3; +} + +// +message SourceContentAV { + // + int64 aid = 1; + // + bilibili.app.viewunite.common.Stat stat = 2; +} + +// +message SourceContentItem { + // + oneof data { + // + SourceContentAV av = 3; + } + // + google.protobuf.Any source_content = 1; + // + SourceContentType sc_type = 2; +} + +// +enum SourceContentType { + // + SC_DEFAULT = 0; + // + SC_AV = 1; +} + +// +message StoryActualCardWrapper { + // + oneof actual_card { + // + StoryVideoCard video_card = 1; + } +} + +// +message StoryEntrance { + // + bool arc_play_story = 1; + // + string story_icon = 2; + // + bool arc_landscape_story = 3; + // + string landscape_icon = 4; + // + bool play_story = 5; +} + +// +message StoryReply { + // + repeated StoryActualCardWrapper story_card_wrappers = 1; +} + +// +message StoryReq { + // + oneof param { + // + StoryReqParam story_req_param = 4; + // + PlayListReqParam play_list_req_param = 5; + } + // + int64 aid = 1; + // + string bvid = 2; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 3; + // + int64 pull = 6; + // + string from = 7; + // + string spmid = 8; + // + string from_spmid = 9; +} + +// +message StoryReqParam { + // + string track_id = 1; + // + int64 display_id = 2; + // + map extra_content = 3; + // + bool refresh = 4; + // + map business_info = 5; +} + +// +message StoryVideoCard { + // + VideoPlayData play_data = 1; + // + ViewReply view_content = 2; + // + string recommend_session_id = 3; + // + string cover = 4; + // + string track_id = 5; + // + string goto = 6; +} + +// +message Tab { + // + repeated TabModule tab_module = 1; + // + string tab_bg = 2; + // + TabControl danmaku_entrance = 3; + // + string tab_bg_pad = 4; +} + +// +message TabControl { + // + bool limit = 1; + // + bool disable = 2; + // + string disable_click_tip = 3; +} + +// +message TabModule { + // + oneof tab { + // + IntroductionTab introduction = 2; + // + ReplyTab reply = 3; + // + bilibili.app.viewunite.common.ActivityTab activity_tab = 4; + // + bilibili.app.viewunite.common.CatalogTab catalog = 5; + } + // + TabType tab_type = 1; +} + +// +enum TabType { + // + TAB_NONE = 0; + // + TAB_INTRODUCTION = 1; + // + TAB_REPLY = 2; + // + TAB_OGV_ACTIVITY = 3; + // + TAB_CATALOG = 4; +} + +// +enum UnionType { + // + UGC = 0; + // + OGV = 1; + // + PUGV = 2; +} + +// +message UpperInfos { + // + int64 fans_count = 1; + // + int64 arc_count_last_half_year = 2; + // + int64 first_up_dates = 3; + // + int64 total_play_count = 4; +} + +// +message VideoGuide { + // + repeated Material material = 1; + // + VideoViewPoint video_point = 2; + // + ContractCard contract_card = 3; + // + Material right_material = 4; +} + +// +message VideoPlayData { + // + string url = 1; + // + bilibili.playershared.Dimension dimension = 2; + // + int64 aid = 3; + // + int64 ep_id = 4; + // + int64 cid = 5; +} + +// +message VideoPoint { + // + int32 type = 1; + // + int64 from = 2; + // + int64 to = 3; + // + string content = 4; + // + string cover = 5; + // + string logo_url = 6; + // + string team_type = 7; + // + string team_name = 8; +} + +// +message VideoShot { + // + string pv_data = 1; + // + int32 img_x_len = 2; + // + int32 img_y_len = 3; + // + int32 img_x_size = 4; + // + int32 img_y_size = 5; + // + repeated string image = 6; +} + +// +message VideoViewPoint { + // + repeated VideoPoint points = 1; + // + PointMaterial point_material = 2; + // + bool point_permanent = 3; +} + +// +message ViewBase { + // + bilibili.playershared.BizType biz_type = 1; + // + PageCategory page_type = 2; + // + PageControl control = 3; + // + ActivityResource activity_resource = 4; + // + Config config = 5; +} + +// +message ViewProgressReply { + // + VideoGuide video_guide = 1; + // + Chronos chronos = 2; + // + VideoShot arc_shot = 3; + // + DmResource dm = 4; + // + FragmentRes fragment_res = 5; +} + +// +message ViewProgressReq { + // + int64 aid = 1; + // + int64 cid = 2; + // + int64 up_mid = 3; + // + ChronosParam chronos_param = 4; + // + UnionType type = 5; + // + FragmentParam fragment_param = 6; + // + string from_scene = 7; + // + bilibili.playershared.PlayCtrl play_ctrl = 8; +} + +// +message ViewReply { + // + ViewBase view_base = 1; + // + Arc arc = 2; + // + ReqUser req_user = 3; + // + bilibili.app.viewunite.common.Owner owner = 4; + // + Tab tab = 5; + // + google.protobuf.Any supplement = 6; + // + CM cm = 7; + // + ECode ecode = 8; + // + ECodeConfig ecode_config = 9; + // + map report = 10; +} + +// +message ViewReq { + // + int64 aid = 1; + // + string bvid = 2; + // + string from = 3; + // + string spmid = 4; + // + string from_spmid = 5; + // + string session_id = 6; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 7; + // + string track_id = 8; + // + map extra_content = 9; + // + string play_mode = 10; + // + Relate relate = 11; + // + string biz_extra = 12; + // + string ad_extra = 13; + // + string from_scene = 14; + // + bilibili.playershared.PlayCtrl play_ctrl = 15; +} + diff --git a/proto/bilibili/app/wall/v1.proto b/proto/bilibili/app/wall/v1.proto new file mode 100644 index 0000000..2059a4a --- /dev/null +++ b/proto/bilibili/app/wall/v1.proto @@ -0,0 +1,42 @@ +syntax = "proto3"; + +package bilibili.app.wall.v1; + +// +service Wall { + // + rpc RuleInfo (RuleRequest) returns (RulesReply); +} + +// +message RuleInfo { + // + bool tf = 1; + // + string m = 2; + // + string a = 3; + // + string p = 4; + // + repeated string a_backup = 5; +} + +// +message RuleRequest { +} + +// +message RulesInfo { + // + repeated RuleInfo rules_info = 1; +} + +// +message RulesReply { + // + map rules_info = 1; + // + string hash_value = 2; +} + diff --git a/proto/bilibili/broadcast/live.proto b/proto/bilibili/broadcast/live.proto new file mode 100644 index 0000000..761be10 --- /dev/null +++ b/proto/bilibili/broadcast/live.proto @@ -0,0 +1,42 @@ +syntax = "proto3"; + +package bilibili.broadcast.live; + +import "google/protobuf/any.proto"; + +// +message BroadcastMessage { + // + string target_path = 1; + // + google.protobuf.Any biz_body = 2; + // + Common common = 3; +} + +// +message Common { + // + int64 message_id = 1; + // + int64 timestamp = 2; + // + string cmd = 3; + // + int64 dm_score = 4; + // + MessageFormat format = 5; + // + int64 sort = 6; +} + +// +enum MessageFormat { + // + MessageFormatUnknown = 0; + // + MessageFormatProto = 1; + // + MessageFormatJSON = 2; +} + diff --git a/proto/bilibili/broadcast/live/multi_conn.proto b/proto/bilibili/broadcast/live/multi_conn.proto new file mode 100644 index 0000000..a73cb11 --- /dev/null +++ b/proto/bilibili/broadcast/live/multi_conn.proto @@ -0,0 +1,38 @@ +syntax = "proto3"; + +package bilibili.broadcast.live.multi_conn; + +// +message ScoreEvent { + // + message info { + // + int64 uid = 1; + // + int64 room_id = 2; + // + string avatar = 3; + // + string nickname = 4; + // + int64 price = 5; + // + string price_text = 6; + // + int64 gender = 7; + } + + // + repeated ScoreEvent.info data = 1; + // + int64 invoking_time = 2; + // + int64 version = 3; + // + string layout = 4; + // + int64 room_status = 5; + // + string biz_session_id = 6; +} + diff --git a/proto/bilibili/broadcast/live/pk.proto b/proto/bilibili/broadcast/live/pk.proto new file mode 100644 index 0000000..f0b2458 --- /dev/null +++ b/proto/bilibili/broadcast/live/pk.proto @@ -0,0 +1,314 @@ +syntax = "proto3"; + +package bilibili.broadcast.live.pk; + +// +message AssistantInfo { + // + int64 rank = 1; + // + int64 uid = 2; + // + string uname = 3; + // + string face = 4; + // + string award_content = 5; + // + bool is_mystery = 6; +} + +// +message DmConf { + // + string font_color = 1; + // + string bg_color = 2; +} + +// +message EscapeInfo { + // + int64 count = 1; + // + int64 puni_time = 2; + // + string tips = 3; +} + +// +message FinalConf { + // + int64 start_time = 1; + // + int64 end_time = 2; + // + int64 switch = 3; +} + +// +message InvitePkResp { + // + int64 invited_id = 1; + // + int64 wait_time = 2; +} + +// +message NextEffect { + // + int64 uid = 1; + // + int64 effect_id = 2; +} + +// +message PKScoreMultiplePlay { + // + int64 pk_id = 1; + // + int64 status = 2; + // + int64 target_votes = 3; + // + int64 multiple_collect_start_time = 4; + // + int64 multiple_collect_end_time = 5; + // + string award_name = 6; + // + int64 award_num = 7; + // + int64 award_no = 8; + // + string rule_url = 9; + // + int64 draw_start_time = 10; + // + int64 draw_end_time = 11; + // + string draw_award_name = 12; + // + string draw_award_value = 13; + // + int64 award_multiple_time = 14; + // + int64 award_start_time = 15; + // + int64 award_end_time = 16; + // + int64 power = 17; + // + string guide_str = 18; +} + +// +message PkCapsule { + // + PkCapsuleType capsule_type = 1; + // + int64 end_time = 2; + // + string text = 3; + // + string animation_text = 4; + // + string url = 5; + // + string toast = 6; +} + +// +enum PkCapsuleType { + // + PkCapsuleTypeNone = 0; + // + FirstMultiple = 1; +} + +// +message PkCard { + // + string card_id = 1; + // + int64 card_type = 2; + // + int64 end_time = 3; + // + string text = 4; +} + +// +message PkCardPlay { + // + string rule_url = 1; +} + +// +message PkGiftEffect { + // + int64 sender_uid = 1; + // + int64 anchor_uid = 2; + // + int64 gift_effect_id = 3; + // + repeated NextEffect next_effect_list = 4; + // + int64 timestamp = 5; +} + +// +message PkInfo { + // + pkBasic pk_basic = 1; + // + repeated pkUser members = 2; + // + int64 timestamp = 3; + // + int64 mill_timestamp = 4; + // + repeated pkGroup pk_group = 5; + // + PkMatchInfo pk_match_info = 6; + // + InvitePkResp invite_pk_resp = 7; + // + PkPlay pk_play = 8; + // + bool audience_open = 9; +} + +// +message PkMatchInfo { + // + int64 match_status = 1; + // + int64 match_max_time = 2; + // + int64 match_end_time = 3; +} + +// +message PkPlay { + // + PKScoreMultiplePlay pk_score_multiple_play = 1; + // + FinalConf final_conf = 2; + // + bool show_streak = 3; + // + DmConf dm_conf = 4; + // + EscapeInfo escape = 5; + // + PkCardPlay pk_card_play = 6; + // + int64 pre_duration = 7; + // + string pk_play_text = 8; + // + string pk_punish_text = 9; + // + int64 pk_text_hash = 10; + // + bool pk_text_enabled = 11; + // + PkGiftEffect pk_gift_effect = 12; +} + +// +message pkBasic { + // + int64 pk_id = 1; + // + string biz_session_id = 2; + // + int64 init_id = 3; + // + int64 init_uid = 4; + // + int64 status = 5; + // + int64 type = 6; + // + int64 sub_type = 7; + // + int64 start_time = 8; + // + int64 end_time = 9; + // + int64 punish_end_time = 10; + // + int64 sprint_duration = 11; + // + string punish_text = 12; + // + string template_id = 13; + // + string main_page = 14; + // + int64 muti_pk_type = 15; + // + int64 season_id = 16; + // + string status_msg = 17; + // + map satellite_info = 18; +} + +// +message pkGroup { + // + int64 group_id = 1; + // + int64 votes = 2; + // + string votes_text = 3; + // + int64 is_winner = 4; +} + +// +message pkUser { + // + int64 uid = 1; + // + int64 room_id = 2; + // + string uname = 3; + // + string face = 4; + // + int64 votes = 5; + // + string votes_text = 6; + // + int64 rank = 7; + // + int64 status = 8; + // + repeated AssistantInfo assist_info = 9; + // + int64 is_follow = 10; + // + int64 is_winner = 11; + // + int64 group_id = 12; + // + int64 golds = 13; + // + int64 date_streak = 14; + // + int64 pk_multiple_status = 15; + // + string power = 16; + // + bool is_latest_streak = 17; + // + repeated PkCard pk_cards = 19; + // + repeated PkCapsule capsules = 20; +} + diff --git a/proto/bilibili/broadcast/live/universal_interact.proto b/proto/bilibili/broadcast/live/universal_interact.proto new file mode 100644 index 0000000..e5b6368 --- /dev/null +++ b/proto/bilibili/broadcast/live/universal_interact.proto @@ -0,0 +1,526 @@ +syntax = "proto3"; + +package bilibili.broadcast.live.universal_interact; + +import "bilibili/live/app/room/v1.proto"; + +// +enum CloseUserReason { + // + CloseUserReason_Invalid = 0; + // + CloseUserReason_DissolveChannel = 1; + // + CloseUserReason_Remove = 2; + // + CloseUserReason_Banned = 3; + // + CloseUserReason_Normal = 4; + // + CloseUserReason_BySelf = 5; + // + CloseUserReason_ByOther = 6; +} + +// +enum Gender { + // + Gender_Woman = 0; + // + Gender_Man = 1; +} + +// +message InteractLayoutData { + // + int32 width = 1; + // + int32 height = 2; + // + LayoutCell default_cell = 3; + // + repeated LayoutCell cells = 4; + // + RtcResolution rtc_resolution = 5; + // + int32 best_area_show_pos = 6; + // + RtcResolution rtc_resolution_simulcast = 7; +} + +// +enum InteractScene { + // + InteractSceneVoice1V1 = 0; + // + InteractSceneVideoB2B = 1; +} + +// +message InteractSceneConfiguration { + // + enum InteractMode { + // + InteractModeB2B = 0; + // + InteractModeB2C = 1; + } + + // + message InteractTemplate { + // + message Layout { + // + string layout_id = 1; + // + string video_size = 2; + // + int64 max_users = 3; + } + + // + string layout = 1; + // + string template_id = 2; + // + bool is_variable_layout = 3; + // + repeated InteractSceneConfiguration.InteractTemplate.Layout layout_list = 4; + // + bool show_interact_ui = 5; + // + string layout_id = 6; + // + InteractLayoutData layout_data = 7; + } + + // + InteractSceneConfiguration.InteractMode interact_mode = 1; + // + InteractTemplate interact_template = 2; + // + int64 interact_max_users = 3; +} + +// +message LayoutCell { + // + double x = 1; + // + double y = 2; + // + double width = 3; + // + double height = 4; + // + int32 z_index = 5; + // + int64 position = 6; + // + LayoutCellOpen default_open = 7; + // + int32 mobile_font_size = 8; + // + int32 mobile_avatar_size = 9; + // + int32 pc_web_font_size = 10; + // + int32 pc_web_avatar_size = 11; + // + int32 can_zoom = 12; + // + int32 video_index = 13; + // + string position_text = 14; +} + +// +enum LayoutCellOpen { + // + LayoutCellOpenInvalid = 0; + // + LayoutCellOpenVisible = 1; + // + LayoutCellOpenInvisible = 2; +} + +// +message PeerUserInfo { + // + string uname = 1; + // + string face = 2; + // + int64 fans_num = 3; + // + string area_name = 4; + // + Gender gender = 5; +} + +// +enum PlayMode { + // + play_mode_default = 0; + // + play_mode_explicit = 1; +} + +// +message RtcResolution { + // + int32 vertical_width = 1; + // + int32 vertical_height = 2; + // + int32 horizontal_width = 3; + // + int32 horizontal_height = 4; + // + int64 code_rate_init = 5; + // + int64 code_rate_min = 6; + // + int64 code_rate_max = 7; + // + double scale_down_ratio = 8; + // + int64 small_bitrate_weight = 9; + // + int64 big_bitrate_weight = 10; + // + int64 small_max_fps = 11; + // + int64 big_max_fps = 12; + // + bool small_bitrate_active = 13; +} + +// +enum SubMode { + // + sub_mode_none = 0; + // + sub_mode_audio = 1; + // + sub_mode_video = 2; + // + sub_mode_all = 3; +} + +// +message UniversalBizExtra { + // + InteractScene interact_scene = 1; + // + InteractSceneConfiguration interact_scene_configuration = 2; + // + string biz_extra_data = 3; + // + int64 source = 4; +} + +// +enum UniversalInteractActionType { + // + UniversalInteractActionTypeApply = 0; + // + UniversalInteractActionTypeInvitation = 1; +} + +// +message UniversalInteractApplyEvent { + // + int64 rtc_channel_id = 1; + // + int64 uid = 2; + // + string biz_label = 3; + // + string trace_id = 4; + // + string biz_session_id = 5; + // + int64 apply_timeout = 6; + // + string title = 7; + // + PeerUserInfo user_info = 8; + // + int64 peer_uid = 9; +} + +// +message UniversalInteractEventGift { + // + int64 room_id = 1; + // + int64 anchor_uid = 2; + // + bilibili.live.app.room.v1.UniversalInfoResp info = 3; +} + +// +message UniversalInteractInvitationEvent { + // + int64 rtc_channel_id = 1; + // + int64 uid = 2; + // + string biz_label = 3; + // + string trace_id = 4; + // + string biz_session_id = 5; + // + int64 initiator = 6; + // + int64 invitation_timeout = 7; + // + string title = 8; + // + PeerUserInfo user_info = 9; + // + int64 peer_uid = 10; + // + int64 source = 11; + // + string toast_rich = 12; + // + string custom_content = 13; + // + string custom_content_rich = 14; + // + int64 target_room_id = 15; + // + int64 want_position = 16; +} + +// +message UniversalInteractJoinEvent { + // + message Config { + // + int64 rtc_channel_id = 1; + // + int64 uid = 2; + // + string buvid = 3; + // + string link_id = 4; + // + string join_token = 5; + // + int64 wait_remote_timeout = 6; + // + string biz_label = 7; + // + string biz_session_id = 8; + // + bool enable_audio = 9; + // + bool enable_video = 10; + // + bool enable_external_audio_capture = 11; + // + bool enable_external_video_capture = 12; + // + PlayMode audio_play_mode = 13; + // + PlayMode video_play_mode = 14; + // + SubMode default_sub_mode = 15; + } + + // + Config config = 1; + // + UniversalBizExtra biz_extra = 2; + // + string trace_id = 3; + // + UniversalInteractStreamControl stream_control = 4; + // + repeated int64 channel_users = 5; + // + bool reconnect = 6; +} + +// +message UniversalInteractLeaveEvent { + // + int64 rtc_channel_id = 1; + // + int64 uid = 2; + // + string biz_label = 3; + // + string trace_id = 4; + // + string biz_session_id = 5; + // + CloseUserReason close_user_reason = 6; + // + string toast = 7; +} + +// +message UniversalInteractOperationEvent { + // + int64 rtc_channel_id = 1; + // + int64 operator_uid = 2; + // + int64 target_uid = 3; + // + string biz_label = 4; + // + string trace_id = 5; + // + string biz_session_id = 6; + // + UniversalInteractOperationType operation_type = 7; + // + string title = 8; + // + UniversalInteractActionType action_type = 9; + // + string operation_uname = 10; + // + int64 peer_uid = 11; + // + UniversalItemStatus universal_item_status = 12; + // + int64 source_uid = 13; + // + int64 source = 14; + // + int64 target_room_id = 15; + // + bool own_side = 16; +} + +// +enum UniversalInteractOperationType { + // + UniversalInteractOperationInvalid = 0; + // + UniversalInteractOperationAccept = 1; + // + UniversalInteractOperationReject = 2; + // + UniversalInteractOperationCancel = 3; + // + UniversalInteractOperationTimeoutCancel = 4; +} + +// +message UniversalInteractStreamControl { + // + message ExplicitSubMode { + // + int64 uid = 1; + // + SubMode sub_mode = 2; + } + + // + enum MuteLocalMode { + // + mute_mode_none = 0; + // + mute_mode_packet = 1; + // + mute_mode_capture = 2; + } + + // + enum PubStatus { + // + pub_status_none = 0; + // + pub_status_audio = 1; + // + pub_status_video = 2; + // + pub_status_all = 3; + } + + // + message PubSubControl { + // + UniversalInteractStreamControl.PubStatus pub_status = 1; + // + repeated UniversalInteractStreamControl.ExplicitSubMode explicit_sub_users = 2; + // + int64 version = 3; + // + RtcResolution rtc_resolution = 4; + // + map sub_video_index = 5; + // + RtcResolution rtc_resolution_simulcast = 6; + } + + // + message UserStreamControlItem { + // + UniversalInteractStreamControl.MuteLocalMode mute_local_mode = 1; + // + repeated int64 mute_remote_uids = 2; + // + repeated int64 receive_uids = 3; + // + int64 version = 4; + // + int64 operator_uid = 5; + } + + // + UserStreamControlItem audio_control = 1; + // + UserStreamControlItem video_control = 2; + // + PubSubControl pub_sub_control = 3; +} + +// +message UniversalInteractStreamControlEvent { + // + int64 rtc_channel_id = 1; + // + int64 uid = 2; + // + string biz_session_id = 3; + // + UniversalInteractStreamControl stream_control = 4; + // + int64 version = 5; + // + string trace_id = 6; + // + repeated int64 channel_users = 7; +} + +// +enum UniversalItemStatus { + // + UniversalItemStatus_Unknown = 0; + // + UniversalItemStatus_NotLiving = 1; + // + UniversalItemStatus_NotAllow = 2; + // + UniversalItemStatus_Connected = 3; + // + UniversalItemStatus_Connected_NoPosition = 4; + // + UniversalItemStatus_AllowInvitation = 5; + // + UniversalItemStatus_Applying = 6; + // + UniversalItemStatus_Inviting = 7; + // + UniversalItemStatus_Connecting = 8; +} + diff --git a/proto/bilibili/broadcast/live/voice_room.proto b/proto/bilibili/broadcast/live/voice_room.proto new file mode 100644 index 0000000..94e60fd --- /dev/null +++ b/proto/bilibili/broadcast/live/voice_room.proto @@ -0,0 +1,220 @@ +syntax = "proto3"; + +package bilibili.broadcast.live.voice_room; + +// +message BattleInfo { + // + message roomInfo { + // + int64 room_i_d = 1; + // + int64 votes = 2; + } + + // + int64 pk_i_d = 1; + // + int64 status = 2; + // + int64 battle_type = 3; + // + int64 timestamp = 4; + // + roomInfo init_info = 5; + // + roomInfo match_info = 6; +} + +// +message LiveBaseOperateEvent { + // + int64 uid = 1; + // + int64 total_price = 2; + // + int64 ts = 3; + // + int64 position = 4; + // + int64 version = 5; + // + string total_price_text = 6; + // + int64 pk_total_price = 7; + // + string pk_total_price_text = 8; + // + string pk_group_id = 9; + // + int64 pk_group_total_price = 10; + // + string pk_group_total_price_text = 11; + // + LiveMultiChatHatLevel hat = 12; + // + int64 room_id = 13; + // + string pk_i_d = 14; + // + BattleInfo battle_info = 15; + // + bool is_pei_pei = 16; + // + int64 pos_room_id = 17; +} + +// +enum LiveInteractBusinessType { + // + LiveInteractBusinessTypeNode = 0; + // + LiveInteractBusinessTypeMultiVoice = 10; +} + +// +enum LiveInteractOperationType { + // + LiveInteractOperationTypeInvalid = 0; + // + LiveInteractOperationTypeAccept = 1; + // + LiveInteractOperationTypeReject = 2; + // + LiveInteractOperationTypeCancel = 3; + // + LiveInteractOperationTypeNoReply = 4; + // + LiveInteractOperationTypeInvited = 5; +} + +// +message LiveMultiChatHatLevel { + // + string name = 1; + // + string image = 2; + // + string icon = 3; + // + string desc = 4; + // + int64 level = 5; + // + string background_color_start = 6; + // + string background_color_end = 7; + // + string animation_webp = 8; + // + string animation_svga = 9; + // + int64 price = 10; +} + +// +message LiveMultiVoiceApplicationUserModel { + // + int64 count = 1; + // + int64 u_i_d = 2; + // + int64 room_id = 3; + // + LiveMultiVoiceRole role = 4; + // + int64 anchor_u_i_d = 6; + // + int64 operate_u_i_d = 7; + // + int64 want_position = 8; + // + int64 event = 9; + // + string toast = 10; + // + string channel = 11; + // + string trace_id = 12; +} + +// +message LiveMultiVoiceInvitaionEvent { + // + int64 initiator = 1; + // + int64 invited_uid = 2; + // + LiveInteractBusinessType business_type = 3; + // + string ch_id = 4; + // + string channel_info = 5; + // + int32 cdn = 6; + // + int64 interact_id = 7; + // + int64 link_id = 8; + // + int64 ts = 9; + // + string toast = 10; + // + LiveInteractOperationType operate_type = 11; + // + string inner_extra = 12; + // + string operation_uname = 13; + // + repeated int64 exist_uids = 14; + // + string trace_id = 15; +} + +// +message LiveMultiVoiceJoinEvent { + // + string ch_id = 1; + // + LiveInteractBusinessType business_type = 2; + // + string inner_extra = 3; + // + string buvid = 4; + // + int64 initiator = 5; + // + int64 invited_uid = 6; + // + int32 cdn = 7; + // + string channel_info = 8; + // + int64 interact_id = 9; + // + int64 link_id = 10; + // + int64 ts = 11; + // + repeated int64 exist_uids = 12; + // + string trace_id = 13; + // + string biz_session_id = 14; + // + string join_token = 15; + // + bool reconnect = 16; +} + +// +enum LiveMultiVoiceRole { + // + LiveMultiVoiceRoleCommon = 0; + // + LiveMultiVoiceRoleManager = 1; + // + LiveMultiVoiceRoleAnchor = 2; +} + diff --git a/proto/bilibili/broadcast/message/archive.proto b/proto/bilibili/broadcast/message/archive.proto new file mode 100644 index 0000000..82bd190 --- /dev/null +++ b/proto/bilibili/broadcast/message/archive.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package bilibili.broadcast.message.archive; + +import "google/protobuf/empty.proto"; + +// +service VideoUp { + // + rpc VideoData (google.protobuf.Empty) returns (stream VideoDataReply); +} + +// +message VideoDataReply { + // + int64 type = 1; + // + string data = 2; +} + diff --git a/proto/bilibili/broadcast/message/bgroup.proto b/proto/bilibili/broadcast/message/bgroup.proto new file mode 100644 index 0000000..a6624a9 --- /dev/null +++ b/proto/bilibili/broadcast/message/bgroup.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; + +package bilibili.broadcast.message.bgroup; + +import "google/protobuf/empty.proto"; + +// +service BGroup { + // + rpc AppEventStream (stream AppEventMessage) returns (google.protobuf.Empty); +} + +// +enum AppEvent { + // + AppEventUnknown = 0; + // + AppEventVisible = 1; + // + AppEventInvisible = 2; + // + AppEventHomePage = 3; + // + AppEventColdStart = 4; +} + +// +message AppEventMessage { + // + AppEvent event_type = 1; + // + int64 timestamp = 2; +} + diff --git a/proto/bilibili/broadcast/message/gamecenter.proto b/proto/bilibili/broadcast/message/gamecenter.proto new file mode 100644 index 0000000..8e95b7c --- /dev/null +++ b/proto/bilibili/broadcast/message/gamecenter.proto @@ -0,0 +1,32 @@ +syntax = "proto3"; + +package bilibili.broadcast.message.gamecenter; + +import "google/protobuf/empty.proto"; + +// +service GameCenterPush { + // + rpc PushEvent (google.protobuf.Empty) returns (stream PushEventReply); +} + +// +enum PushEvent { + // + PushEventUnknown = 0; + // + PushEventDownload = 1; +} + +// +message PushEventMessage { + // + PushEvent event_type = 1; +} + +// +message PushEventReply { + // + PushEvent event_type = 1; +} + diff --git a/proto/bilibili/broadcast/message/im.proto b/proto/bilibili/broadcast/message/im.proto new file mode 100644 index 0000000..dfe1167 --- /dev/null +++ b/proto/bilibili/broadcast/message/im.proto @@ -0,0 +1,100 @@ +syntax = "proto3"; + +package bilibili.broadcast.message.im; + +import "google/protobuf/empty.proto"; + +// +service Notify { + // + rpc WatchNotify (google.protobuf.Empty) returns (stream NotifyRsp); +} + +// +enum CmdId { + // + EN_CMD_ID_INVALID = 0; + // + EN_CMD_ID_MSG_NOTIFY = 1; + // + EN_CMD_ID_KICK_OUT = 2; +} + +// +message Msg { + // + int64 sender_uid = 1; + // + int32 receiver_type = 2; + // + int64 receiver_id = 3; + // + int64 cli_msg_id = 4; + // + int32 msg_type = 5; + // + string content = 6; + // + int64 msg_seqno = 7; + // + int64 timestamp = 8; + // + repeated int64 at_uids = 9; + // + repeated int64 recver_ids = 10; + // + int64 msg_key = 11; + // + int32 msg_status = 12; + // + bool sys_cancel = 13; + // + int32 is_multi_chat = 14; + // + int64 withdraw_seqno = 15; + // + string notify_code = 16; + // + int32 msg_source = 17; +} + +// +message NotifyInfo { + // + int32 msg_type = 1; + // + int64 talker_id = 2; + // + int32 session_type = 3; +} + +// +message NotifyRsp { + // + int64 uid = 1; + // + int64 cmd = 2; + // + bytes payload = 3; + // + PLType payload_type = 4; +} + +// +enum PLType { + // + EN_PAYLOAD_NORMAL = 0; + // + EN_PAYLOAD_BASE64 = 1; +} + +// +message ReqServerNotify { + // + int64 lastest_seqno = 1; + // + Msg instant_msg = 2; + // + NotifyInfo notify_info = 3; +} + diff --git a/proto/bilibili/broadcast/message/main.proto b/proto/bilibili/broadcast/message/main.proto new file mode 100644 index 0000000..639abe7 --- /dev/null +++ b/proto/bilibili/broadcast/message/main.proto @@ -0,0 +1,350 @@ +syntax = "proto3"; + +package bilibili.broadcast.message.main; + +import "bilibili/app/dynamic/v2.proto"; +import "google/protobuf/empty.proto"; + +// +service NativePage { + // + rpc WatchNotify (google.protobuf.Empty) returns (stream NativePageEvent); +} + +// +service Resource { + // + rpc TopActivity (google.protobuf.Empty) returns (stream TopActivityReply); +} + +// +service Search { + // + rpc ChatResultPush (google.protobuf.Empty) returns (stream ChatResult); +} + +// +message Animate { + // + string icon = 1; + // + string json = 2; + // + string svg = 3; + // + int32 loop = 4; +} + +// +message ArticleCard { + // + string title = 1; + // + string desc = 2; + // + string cover = 3; + // + string author = 4; + // + int64 mid = 5; + // + int32 view = 6; + // + int32 like = 7; + // + int32 reply = 8; + // + string pub_time = 9; + // + string badge = 10; +} + +// +message Bubble { + // + repeated bilibili.app.dynamic.v2.Paragraph paragraphs = 1; + // + repeated CardItem item = 2; +} + +// +message CardItem { + // + oneof card_item { + // + ArticleCard article = 4; + // + VideoCard av = 5; + } + // + string uri = 1; + // + string param = 2; + // + string goto = 3; +} + +// +message ChatResult { + // + int32 code = 1; + // + string session_id = 2; + // + repeated Bubble bubbles = 3; + // + string rewrite_word = 4; + // + string title = 5; + // + string business = 6; + // + int64 message_id = 7; + // + LikeState like_state = 8; + // + int64 like_number = 9; +} + +// +message CommandDm { + // + int64 id = 1; + // + int64 oid = 2; + // + int64 mid = 3; + // + int32 type = 4; + // + string command = 5; + // + string content = 6; + // + int32 state = 7; + // + int32 progress = 8; + // + string ctime = 9; + // + string mtime = 10; + // + string extra = 11; + // + string id_str = 12; +} + +// +message DanmakuElem { + // + int64 id = 1; + // + int32 progress = 2; + // + int32 mode = 3; + // + int32 fontsize = 4; + // + int32 color = 5; + // + string mid_hash = 6; + // + string content = 7; + // + int64 ctime = 8; + // + string action = 9; + // + int32 pool = 10; + // + string id_str = 11; + // + int32 weight = 12; + // + int32 attr = 13; + // + string animation = 14; +} + +// +message DanmukuEvent { + // + repeated DanmakuElem elems = 1; +} + +// +message EventItem { + // + int64 item_i_d = 1; + // + string type = 2; + // + int64 num = 3; + // + string display_num = 4; + // + string web_key = 5; + // + int64 dimension = 6; +} + +// +message HistoryReportEvent { + // + int64 aid = 1; + // + int32 type = 2; + // + int64 cid = 3; + // + int64 epid = 4; + // + int64 sid = 5; + // + int32 sub_type = 6; + // + int32 dt = 7; + // + int64 realtime = 8; + // + string source = 9; + // + int64 progress = 10; + // + int64 duration = 11; + // + string platform = 12; + // + string device = 13; + // + int64 play_time = 14; + // + string statistics = 15; + // + int64 start_ts = 16; + // + int64 device_ts = 17; + // + string scene = 18; +} + +// +enum LikeState { + // + DEFAULT = 0; + // + LIKE = 1; + // + DISLIKE = 2; +} + +// +message NativePageEvent { + // + int64 page_i_d = 1; + // + repeated EventItem items = 2; +} + +// +message ReasonStyle { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + int32 bg_style = 8; +} + +// +message RedDot { + // + int32 type = 1; + // + int32 number = 2; +} + +// +message Stats { + // + int32 like = 1; + // + int32 coin = 2; + // + int32 fav = 3; + // + int32 share = 4; +} + +// +message TopActivityReply { + // + TopOnline online = 1; + // + string hash = 2; +} + +// +message TopOnline { + // + int32 type = 1; + // + string icon = 2; + // + string uri = 3; + // + string unique_id = 4; + // + Animate animate = 5; + // + RedDot red_dot = 6; + // + string name = 7; + // + int64 interval = 8; +} + +// +message VideoCard { + // + string title = 1; + // + string desc = 2; + // + string cover = 3; + // + string author = 4; + // + string duration = 5; + // + repeated ReasonStyle new_rec_tags = 6; + // + repeated ReasonStyle badges = 7; + // + string show_card_desc2 = 8; + // + string view_content = 9; + // + int32 icon_type = 10; +} + +// +message ViewPush { + // + Stats stats = 1; + // + int64 aid = 2; + // + int64 up_time = 3; +} + diff --git a/proto/bilibili/broadcast/message/mall.proto b/proto/bilibili/broadcast/message/mall.proto new file mode 100644 index 0000000..272e16d --- /dev/null +++ b/proto/bilibili/broadcast/message/mall.proto @@ -0,0 +1,42 @@ +syntax = "proto3"; + +package bilibili.broadcast.message.mall; + +import "google/protobuf/empty.proto"; + +// +service MerchantNotify { + // + rpc MessageNotify (google.protobuf.Empty) returns (stream NotifyReq); +} + +// +enum MsgType { + // + USER_CALL = 0; + // + DEL_ROOM = 1; + // + OPPOSITE_LEAVE = 2; + // + PUSH_ITEMS = 3; + // + MERCHANT_ADD = 4; + // + USER_ADD = 5; + // + MERCHANT_REJET = 6; +} + +// +message NotifyReq { + // + int64 room_id = 1; + // + int32 msg_type = 2; + // + string content = 3; + // + string jump_url = 4; +} + diff --git a/proto/bilibili/broadcast/message/push.proto b/proto/bilibili/broadcast/message/push.proto new file mode 100644 index 0000000..716e3fb --- /dev/null +++ b/proto/bilibili/broadcast/message/push.proto @@ -0,0 +1,44 @@ +syntax = "proto3"; + +package bilibili.broadcast.message.push; + +import "google/protobuf/empty.proto"; + +// +service PushUpStream { + // + rpc PushUpStream (stream UpStreamMessage) returns (google.protobuf.Empty); +} + +// +message UpStreamMessage { + // + enum Type { + // + TYPE_UNKNOWN = 0; + // + TYPE_ACK = 1; + // + TYPE_FILTER = 2; + // + TYPE_SHOW = 3; + // + TYPE_CLICK = 4; + } + + // + string taskid = 1; + // + UpStreamMessage.Type type = 2; + // + string extra = 3; + // + int64 timestamp = 4; + // + int64 job = 5; + // + string msg_source = 6; + // + int64 bid = 7; +} + diff --git a/proto/bilibili/broadcast/message/reply.proto b/proto/bilibili/broadcast/message/reply.proto new file mode 100644 index 0000000..6f181c0 --- /dev/null +++ b/proto/bilibili/broadcast/message/reply.proto @@ -0,0 +1,74 @@ +syntax = "proto3"; + +package bilibili.broadcast.message.reply; + +// +message SubjectInteractionResp { + // + enum Interaction { + // + Unknown = 0; + // + ReplyLike = 1; + } + + // + int64 oid = 1; + // + int64 type = 2; + // + SubjectInteractionResp.Interaction interaction_type = 3; + // + int64 rpid = 4; + // + int64 like_count = 5; + // + int64 frequency = 6; +} + +// +message SubjectNoticeResp { + // + int64 oid = 1; + // + int64 type = 2; + // + string title = 3; + // + string link = 4; + // + int64 timestamp = 5; + // + int64 rpid = 6; + // + string interaction_type = 7; + // + int64 hover_duration = 8; + // + int64 root_rpid = 9; + // + string interaction_scene = 10; +} + +// +message SubjectReplyInsertionResp { + // + int64 oid = 1; + // + int64 type = 2; + // + string title = 3; + // + int64 rpid = 4; + // + int64 timestamp = 5; + // + int64 rank = 6; + // + int64 step_size = 7; + // + repeated int64 support_mode = 8; + // + repeated string support_tag = 9; +} + diff --git a/proto/bilibili/broadcast/message/topic.proto b/proto/bilibili/broadcast/message/topic.proto new file mode 100644 index 0000000..1df5f92 --- /dev/null +++ b/proto/bilibili/broadcast/message/topic.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package bilibili.broadcast.message.topic; + +// +message DetailEventMessage { + // + int32 type = 1; + // + repeated PubEvent pub_data = 2; +} + +// +message PubEvent { + // + int64 dynamic_id = 1; + // + int64 mid = 2; +} + diff --git a/proto/bilibili/broadcast/message/tv.proto b/proto/bilibili/broadcast/message/tv.proto new file mode 100644 index 0000000..890417f --- /dev/null +++ b/proto/bilibili/broadcast/message/tv.proto @@ -0,0 +1,296 @@ +syntax = "proto3"; + +package bilibili.broadcast.message.tv; + +import "google/protobuf/empty.proto"; + +// +service Tv { + // + rpc Account (google.protobuf.Empty) returns (stream AccountNotify); + // + rpc CommonPush (google.protobuf.Empty) returns (stream CommonPushNotify); + // + rpc Esports (google.protobuf.Empty) returns (stream EsportsNotify); + // + rpc FeedClientSmart (google.protobuf.Empty) returns (stream FeedClientSmartNotify); + // + rpc LiveBottom (google.protobuf.Empty) returns (stream LiveBottomConfNotify); + // + rpc LiveCommonMsg (google.protobuf.Empty) returns (stream LiveCommonNotify); + // + rpc LiveSkip (google.protobuf.Empty) returns (stream LiveSkipNotify); + // + rpc LiveStatus (google.protobuf.Empty) returns (stream LiveStatusNotify); + // + rpc MainRedDot (google.protobuf.Empty) returns (stream MainRedDotReply); + // + rpc NotifyPop (google.protobuf.Empty) returns (stream NotifyPopReply); + // + rpc OgvPayOrder (google.protobuf.Empty) returns (stream OgvPayOrderReply); + // + rpc Proj (google.protobuf.Empty) returns (stream ProjReply); + // + rpc ProjCore (google.protobuf.Empty) returns (stream ProjReply); + // + rpc ProjLiveEvent (google.protobuf.Empty) returns (stream ProjLiveEventNotify); + // + rpc Publicity (google.protobuf.Empty) returns (stream PublicityNotify); + // + rpc ViewerNumMsg (google.protobuf.Empty) returns (stream LiveViewerMsgNotify); +} + +// +message AccountNotify { + // + string biz = 1; + // + string data = 2; +} + +// +message CommonPushNotify { + // + string cmd = 1; + // + string data = 2; +} + +// +message DanmakuElem { + // + int64 id = 1; + // + int32 progress = 2; + // + int32 mode = 3; + // + int32 fontsize = 4; + // + int32 color = 5; + // + string mid_hash = 6; + // + string content = 7; + // + int64 ctime = 8; + // + int32 weight = 9; + // + string action = 10; + // + int32 pool = 11; + // + string id_str = 12; + // + int32 attr = 13; +} + +// +message DmLiveElem { + // + int64 room_id = 1; + // + int64 room_uid = 2; + // + int64 uid = 3; + // + string uname = 4; + // + int32 user_level = 5; + // + int32 color = 6; + // + string content = 7; + // + int64 time = 8; + // + string msg_id = 9; + // + int32 msg_type = 10; + // + int32 area_id = 11; + // + int32 parent_area_id = 12; + // + int32 dm_type = 13; + // + string id_str = 14; +} + +// +message DmLiveReply { + // + repeated DmLiveElem elems = 1; + // + int32 state = 2; + // + int32 source = 3; +} + +// +message DmLiveSwitchReload { + // + bool reload = 1; +} + +// +message DmSegLiveReply { + // + repeated DanmakuElem elems = 1; + // + int32 state = 2; +} + +// +message EsportsNotify { + // + int64 cid = 1; +} + +// +message FeedClientSmartNotify { + // + int64 mid = 1; + // + string cards = 2; +} + +// +message LiveBottomConfNotify { + // + int64 room_id = 1; + // + string bottom_msg = 2; +} + +// +message LiveCommonNotify { + // + string cmd = 1; + // + string data = 2; +} + +// +message LiveSkipNotify { + // + int64 live_id = 1; +} + +// +message LiveStatusNotify { + // + int64 status = 1; + // + string msg = 2; + // + int64 cid = 3; +} + +// +message LiveViewerMsgNotify { + // + int64 room_id = 1; + // + string viewer_msg = 2; +} + +// +message MainRedDotReply { + // + int64 mid = 1; + // + int64 reddot = 2; +} + +// +message NotifyPop { + // + int64 id = 1; + // + int32 style = 2; + // + string img = 3; + // + int32 text_type = 4; + // + string text_top = 5; + // + string text_bottom = 6; + // + int32 expire = 7; + // + repeated NotifyPopBtn notify_btn_list = 8; +} + +// +message NotifyPopBtn { + // + string text = 1; + // + string url = 2; +} + +// +message NotifyPopReply { + // + int64 mid = 1; + // + NotifyPop notify = 2; +} + +// +message OgvPayOrderReply { + // + int64 mid = 1; + // + int64 season_id = 2; +} + +// +message ProjLiveEventNotify { + // + int64 room_id = 1; + // + int64 event_type = 2; + // + string event_msg = 3; +} + +// +message ProjReply { + // + int64 cmd_type = 1; + // + int64 mid = 2; + // + int64 aid = 3; + // + int64 cid = 4; + // + int64 video_type = 5; + // + int64 ep_id = 6; + // + int64 season_id = 7; + // + int64 seek_ts = 8; + // + string extra = 9; + // + int64 room_id = 10; + // + string device_info = 11; +} + +// +message PublicityNotify { + // + int64 publicity_id = 1; + // + int64 room_id = 2; + // + int64 status = 3; +} + diff --git a/proto/bilibili/broadcast/v1.proto b/proto/bilibili/broadcast/v1.proto new file mode 100644 index 0000000..76fcc31 --- /dev/null +++ b/proto/bilibili/broadcast/v1.proto @@ -0,0 +1,426 @@ +syntax = "proto3"; + +package bilibili.broadcast.v1; + +import "bilibili/rpc.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/empty.proto"; + +// +service BroadcastRoom { + // + rpc Enter (stream RoomReq) returns (stream RoomResp); +} + +// +service Laser { + // + rpc WatchLogUploadEvent (google.protobuf.Empty) returns (stream LaserLogUploadResp); +} + +// +service ModManager { + // + rpc WatchResource (google.protobuf.Empty) returns (stream ModResourceResp); +} + +// +service Push { + // + rpc WatchMessage (google.protobuf.Empty) returns (stream PushMessageResp); +} + +// +service Test2 { + // + rpc Test (stream AddParams) returns (google.protobuf.Empty); +} + +// +enum Action { + // + UNKNOWN = 0; + // + UPDATE = 1; + // + DELETE = 2; +} + +// +message AddParams { + // + int32 a = 1; + // + int32 b = 2; +} + +// +message AddResult { + // + int32 r = 1; +} + +// +message AuthReq { + // + string guid = 1; + // + string conn_id = 2; + // + int64 last_msg_id = 3; +} + +// +message AuthResp { +} + +// +message BroadcastFrame { + // + FrameOption options = 1; + // + string target_path = 2; + // + google.protobuf.Any body = 3; +} + +// +message FrameOption { + // + int64 message_id = 1; + // + int64 sequence = 2; + // + bool is_ack = 3; + // + bilibili.rpc.Status status = 4; + // + string ack_origin = 5; + // + int64 timestamp = 6; + // + int64 msg_type = 7; +} + +// +message HeartbeatReq { +} + +// +message HeartbeatResp { + // + enum OpType { + // + DEFAULT = 0; + // + UNHEALTHY = 1; + // + MIGRATION = 2; + } + + // + HeartbeatResp.OpType op_type = 1; + // + string target_hostname = 2; + // + string target_ip = 3; + // + int64 target_port = 4; + // + int64 target_ttl = 5; +} + +// +message LaserLogUploadResp { + // + int64 taskid = 1; + // + string date = 2; +} + +// +enum LinkType { + // + LINK_TYPE_UNKNOWN = 0; + // + LINK_TYPE_BANGUMI = 1; + // + LINK_TYPE_VIDEO = 2; + // + LINK_TYPE_LIVE = 3; +} + +// +message MessageAckReq { + // + int64 ack_id = 1; + // + string ack_origin = 2; + // + string target_path = 3; + // + int64 msg_type = 4; +} + +// +message ModResourceResp { + // + Action atcion = 1; + // + string app_key = 2; + // + string pool_name = 3; + // + string module_name = 4; + // + int64 module_version = 5; + // + int64 list_version = 6; +} + +// +message PageBlackList { + // + string id = 1; +} + +// +message PageView { + // + string id = 1; +} + +// +message PushMessageResp { + // + enum Biz { + // + BIZ_UNKNOWN = 0; + // + BIZ_VIDEO = 1; + // + BIZ_LIVE = 2; + // + BIZ_ACTIVITY = 3; + } + + // + enum DisplayType { + // + DisPlayText = 0; + // + DisplaySatic = 1; + // + DisplayGif = 2; + } + + // + enum ImageFrame { + // + FRAME_UNKNOWN = 0; + // + FRAME_LIVE = 1; + } + + // + enum ImageMarker { + // + MARKER_UNKNOWN = 0; + // + MARKER_LIVE = 1; + } + + // + enum ImagePosition { + // + IMAGE_POS_UNKNOWN = 0; + // + IMAGE_POS_LEFT = 1; + // + IMAGE_POS_RIGHT = 2; + } + + // + enum PopType { + // + TopToBottom = 0; + // + RightToLeft = 1; + } + + // + enum Position { + // + POS_UNKNOWN = 0; + // + POS_TOP = 1; + } + + // + enum Type { + // + TYPE_UNKNOWN = 0; + // + TYPE_DEFAULT = 1; + // + TYPE_HOT = 2; + // + TYPE_REALTIME = 3; + // + TYPE_RECOMMEND = 4; + // + TYPE_REPLY = 5; + } + + // + int64 old_taskid = 1; + // + PushMessageResp.Biz biz = 2; + // + PushMessageResp.Type type = 3; + // + string title = 4; + // + string summary = 5; + // + string img = 6; + // + string link = 7; + // + PushMessageResp.Position position = 8; + // + int32 duration = 9; + // + int64 expire = 10; + // + string taskid = 11; + // + repeated PageBlackList page_black_list = 12; + // + repeated PageView page_view = 13; + // + TargetResource target_resource = 14; + // + PushMessageResp.ImageFrame image_frame = 15; + // + PushMessageResp.ImageMarker image_marker = 16; + // + PushMessageResp.ImagePosition image_position = 17; + // + int64 job = 18; + // + string msg_source = 19; + // + bool hide_arrow = 20; + // + map metadata = 21; + // + string pure_img = 22; + // + PushMessageResp.DisplayType display_type = 23; + // + PushMessageResp.PopType pop_type = 24; + // + int32 reserve = 25; + // + int32 level = 26; + // + bool query = 27; + // + int32 bid = 28; + // + string extra = 30; +} + +// +message RoomErrorEvent { + // + bilibili.rpc.Status status = 1; +} + +// +message RoomJoinEvent { +} + +// +message RoomLeaveEvent { +} + +// +message RoomMessageEvent { + // + string target_path = 1; + // + google.protobuf.Any body = 2; +} + +// +message RoomOnlineEvent { + // + int32 online = 1; + // + int32 all_online = 2; +} + +// +message RoomReq { + // + oneof event { + // + RoomJoinEvent join = 2; + // + RoomLeaveEvent leave = 3; + // + RoomOnlineEvent online = 4; + // + RoomMessageEvent msg = 5; + } + // + string id = 1; +} + +// +message RoomResp { + // + oneof event { + // + RoomJoinEvent join = 2; + // + RoomLeaveEvent leave = 3; + // + RoomOnlineEvent online = 4; + // + RoomMessageEvent msg = 5; + // + RoomErrorEvent err = 6; + } + // + string id = 1; +} + +// +message TargetPath { + // + repeated string target_paths = 1; +} + +// +message TargetResource { + // + LinkType type = 1; + // + map resource = 2; +} + +// +message TestResp { + // + int64 taskid = 1; + // + int64 timestamp = 2; + // + string message = 3; + // + google.protobuf.Any extra = 4; +} + diff --git a/proto/bilibili/broadcast/v2.proto b/proto/bilibili/broadcast/v2.proto new file mode 100644 index 0000000..4ba44f6 --- /dev/null +++ b/proto/bilibili/broadcast/v2.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +package bilibili.broadcast.v2; + +import "google/protobuf/empty.proto"; + +// +service Laser { + // + rpc WatchEvent (google.protobuf.Empty) returns (stream LaserEventResp); +} + +// +message LaserEventResp { + // + int64 taskid = 1; + // + string action = 2; + // + string params = 3; +} + diff --git a/proto/bilibili/cheese/gateway/player/v1.proto b/proto/bilibili/cheese/gateway/player/v1.proto new file mode 100644 index 0000000..5e7b85c --- /dev/null +++ b/proto/bilibili/cheese/gateway/player/v1.proto @@ -0,0 +1,194 @@ +syntax = "proto3"; + +package bilibili.cheese.gateway.player.v1; + +import "bilibili/app/playurl/v1.proto"; + +// +enum DrmTechType { + // + NON = 0; + // + FAIR_PLAY = 1; + // + WIDE_VINE = 2; + // + BILI_DRM = 3; +} + +// +message PlayAbilityConf { + // + bool background_play_disable = 1; + // + bool flip_disable = 2; + // + bool cast_disable = 3; + // + bool feedback_disable = 4; + // + bool subtitle_disable = 5; + // + bool playback_rate_disable = 6; + // + bool time_up_disable = 7; + // + bool playback_mode_disable = 8; + // + bool scale_mode_disable = 9; + // + bool like_disable = 10; + // + bool dislike_disable = 11; + // + bool coin_disable = 12; + // + bool elec_disable = 13; + // + bool share_disable = 14; + // + bool screen_shot_disable = 15; + // + bool lock_screen_disable = 16; + // + bool recommend_disable = 17; + // + bool playback_speed_disable = 18; + // + bool definition_disable = 19; + // + bool selections_disable = 20; + // + bool next_disable = 21; + // + bool edit_dm_disable = 22; + // + bool outer_dm_disable = 25; + // + bool inner_dm_disable = 26; + // + bool small_window_disable = 27; + // + string cast_disable_reason_code = 28; + // + string cast_disable_reason_text = 29; +} + +// +message PlayViewBusinessInfo { + // + DrmTechType drm_tech_type = 1; +} + +// +message PlayViewReply { + // + bilibili.app.playurl.v1.VideoInfo video_info = 1; + // + PlayAbilityConf play_conf = 2; + // + PlayViewBusinessInfo business = 3; + // + RiskControl risk_control = 4; +} + +// +message PlayViewReq { + // + int64 ep_id = 1; + // + int64 cid = 2; + // + int64 qn = 3; + // + int32 fnver = 4; + // + int32 fnval = 5; + // + int32 download = 6; + // + int32 force_host = 7; + // + bool fourk = 8; + // + string spmid = 9; + // + string from_spmid = 10; + // + int32 teenagers_mode = 11; + // + bilibili.app.playurl.v1.CodeType prefer_codec_type = 12; + // + bool is_preview = 13; + // + bool is_raw_stream = 14; + // + SecurityLevel security_level = 15; +} + +// +message ProjectReply { + // + bilibili.app.playurl.v1.PlayURLReply project = 1; +} + +// +message ProjectReq { + // + int64 ep_id = 1; + // + int64 cid = 2; + // + int64 qn = 3; + // + int32 fnver = 4; + // + int32 fnval = 5; + // + int32 download = 6; + // + int32 force_host = 7; + // + bool fourk = 8; + // + string spmid = 9; + // + string from_spmid = 10; + // + int32 protocol = 11; + // + int32 device_type = 12; + // + bool flv_proj = 13; + // + int64 aid = 14; +} + +// +message RiskControl { + // + bool need_send_sms = 1; + // + string title = 2; + // + string risk_message = 3; + // + string action_desc = 4; + // + string send_sms_url = 5; + // + string buvid = 6; +} + +// +enum SecurityLevel { + // + LEVEL_UNKNOWN = 0; + // + LEVEL_L1 = 1; + // + LEVEL_L2 = 2; + // + LEVEL_L3 = 3; +} + diff --git a/proto/bilibili/community/interfacess/biligram/v1.proto b/proto/bilibili/community/interfacess/biligram/v1.proto new file mode 100644 index 0000000..85e1e6a --- /dev/null +++ b/proto/bilibili/community/interfacess/biligram/v1.proto @@ -0,0 +1,596 @@ +syntax = "proto3"; + +package bilibili.community.interfacess.biligram.v1; + +import "bilibili/pagination.proto"; + +// +message ActionButton { + // + string text = 1; + // + string icon = 2; +} + +// +message Button { + // + string text = 1; + // + string url = 2; + // + string icon = 3; +} + +// +message Category { + // + int64 id = 1; + // + string name = 2; + // + repeated Topic topic = 3; +} + +// +message CreateTopicReply { + // + int64 id = 1; + // + string name = 2; + // + TopicStatus status = 3; + // + int64 category_id = 4; +} + +// +message CreateTopicReq { + // + string name = 1; + // + int64 category_id = 2; + // + int64 up_mid = 3; +} + +// +message DelMessageReply { +} + +// +message DelMessageReq { + // + int64 id = 1; + // + int64 topic_id = 2; +} + +// +message DelTopicReply { +} + +// +message DelTopicReq { + // + int64 id = 1; +} + +// +message DialogButton { + // + string title = 1; + // + string content = 2; + // + ActionButton confirm = 3; + // + string cancel = 4; + // + string text = 5; +} + +// +message EditTopicReply { + // + int64 id = 1; + // + string name = 2; + // + TopicStatus status = 3; + // + int64 category_id = 4; +} + +// +message EditTopicReq { + // + int64 id = 1; + // + string name = 2; + // + int64 category_id = 3; +} + +// +message GetManagePageReply { + // + int64 up_mid = 1; + // + ServerStatus status = 2; + // + DialogButton online = 3; + // + DialogButton offline = 4; +} + +// +message GetManagePageReq { + // + int64 up_mid = 1; +} + +// +message HasServerReply { + // + bool hit_server = 1; +} + +// +message HasServerReq { + // + int64 mid = 1; +} + +// +enum IconPosition { + // + IconPositionPrefix = 0; + // + IconPositionSuffix = 1; +} + +// +message Input { + // + string placeholder = 1; +} + +// +message ItemContentEmoji { + // + string uri = 1; +} + +// +message ItemContentHighlight { + // + string text = 1; + // + string icon = 2; + // + IconPosition icon_position = 3; + // + string jump_url = 4; +} + +// +message ItemContentItem { + // + ItemContentType type = 1; + // + ItemContentText text = 2; + // + ItemContentHighlight highlight = 3; + // + ItemContentEmoji emoji = 4; + // + string raw_text = 5; +} + +// +message ItemContentText { + // + string text = 1; +} + +// +enum ItemContentType { + // + ItemContentTypeUnknown = 0; + // + ItemContentTypeText = 1; + // + ItemContentTypeHighlight = 2; + // + ItemContentTypeEmoji = 3; +} + +// +message LikeMessageReply { +} + +// +message LikeMessageReq { + // + int64 topic_id = 1; + // + int64 message_id = 2; + // + MessageActionType action = 3; +} + +// +message Message { + // + int64 id = 1; + // + int64 timestamp = 2; + // + MessageStatus status = 3; + // + repeated MessageItem items = 4; + // + MessageType type = 5; + // + int64 order = 6; +} + +// +enum MessageActionType { + // + MessageActionTypeUnknown = 0; + // + MessageActionTypeLike = 1; + // + MessageActionTypeUnlike = 2; +} + +// +message MessageItem { + // + MessageItemType type = 1; + // + MessageItemAuthor author = 2; + // + MessageItemNotice notice = 3; + // + MessageItemContent content = 4; + // + MessageItemPicture picture = 5; + // + MessageItemAddition addition = 6; +} + +// +message MessageItemAddition { + // + int64 likes = 1; + // + bool liked = 2; + // + bool show_menu = 3; + // + Button report = 4; + // + DialogButton delete = 5; + // + DialogButton blacklist = 6; +} + +// +message MessageItemAuthor { + // + UserInfo author = 1; + // + string send_time = 2; + // + string location = 3; +} + +// +message MessageItemContent { + // + repeated ItemContentItem desc = 1; + // + string jump_uri = 2; + // + string origin_text = 3; + // + int32 threshold_lines = 4; +} + +// +message MessageItemNotice { + // + string title = 1; +} + +// +message MessageItemPicture { + // + repeated Picture pictures = 1; +} + +// +enum MessageItemType { + // + MessageItemTypeUnknown = 0; + // + MessageItemTypeAuthor = 1; + // + MessageItemTypeNotice = 2; + // + MessageItemTypeContent = 3; + // + MessageItemTypePicture = 4; + // + MessageItemTypeAddition = 5; +} + +// +message MessagePositionReply { +} + +// +message MessagePositionReq { + // + int64 up_mid = 1; + // + int64 topic_id = 2; + // + string next = 3; +} + +// +enum MessageStatus { + // + MessageStatusNormal = 0; + // + MessageStatusAudit = 1; + // + MessageStatusSelfSeen = 2; + // + MessageStatusDelete = 3; +} + +// +enum MessageType { + // + MessageTypeNone = 0; + // + MessageTypeText = 1; + // + MessageTypeImage = 2; +} + +// +message MessagesReply { + // + string title = 1; + // + int64 up_mid = 2; + // + int64 permission = 3; + // + repeated Message message = 4; + // + bilibili.pagination.FeedPaginationReply page = 5; + // + Button setting = 6; + // + Input input = 7; +} + +// +message MessagesReq { + // + int64 id = 1; + // + bilibili.pagination.FeedPagination page = 2; +} + +// +message Picture { + // + string uri = 1; + // + double width = 2; + // + double height = 3; + // + double size = 4; +} + +// +message SendMessageReply { + // + Message message = 1; +} + +// +message SendMessageReq { + // + int64 topic_id = 1; + // + string message = 2; + // + map at_name_to_mid = 3; + // + repeated Picture picture = 4; +} + +// +message ServerReply { + // + int64 up_mid = 1; + // + string top_photo = 2; + // + UserInfo user_info = 3; + // + ServerStatus status = 4; + // + string head_word = 5; + // + repeated Category category = 6; + // + Button create = 7; + // + DialogButton online = 8; + // + Button setting = 9; + // + Button tip = 10; + // + int64 permission = 11; + // + string night_top_photo = 12; +} + +// +message ServerReq { + // + int64 up_mid = 1; +} + +// +enum ServerStatus { + // + ServerStatusUnknown = 0; + // + ServerStatusOnline = 1; + // + ServerStatusOffline = 2; +} + +// +message ServerStatusReply { +} + +// +message ServerStatusReq { + // + ServerStatus status = 1; +} + +// +message Topic { + // + int64 id = 1; + // + string name = 2; + // + TopicStatus status = 3; + // + string unread_count = 4; + // + string head_icon = 5; + // + TopicTailType tail_type = 6; + // + string tail_string = 7; + // + Button tail = 8; + // + bool is_template = 9; + // + string route = 10; +} + +// +message TopicReply { + // + int64 id = 1; + // + string name = 2; + // + TopicStatus status = 3; + // + bool name_editable = 4; +} + +// +message TopicReq { + // + int64 id = 1; +} + +// +enum TopicStatus { + // + TopicStatusUnknown = 0; + // + TopicStatusNormal = 1; + // + TopicStatusAudit = 2; + // + TopicStatusDeleted = 3; + // + TopicStatusAuditDeleted = 4; +} + +// +enum TopicTailType { + // + TopicTailTypeUnknown = 0; + // + TopicTailTypeUnreadGray = 1; + // + TopicTailTypeUnreadRed = 2; + // + TopicTailTypeEdit = 3; +} + +// +message UpServer { + // + int64 id = 1; + // + int64 mid = 2; + // + UpServerType type = 3; + // + string face = 4; + // + int64 unread_count = 5; + // + string name = 6; +} + +// +message UpServerListReply { + // + repeated UpServer server = 1; +} + +// +message UpServerListReq { + // + int64 mid = 1; +} + +// +enum UpServerType { + // + UpServerTypeUnknown = 0; + // + UpServerTypeCreate = 1; + // + UpServerTypeUp = 2; + // + UpServerTypeFollow = 3; +} + +// +message UserInfo { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + string route = 4; +} + diff --git a/proto/bilibili/community/interfacess/cosmoconn/v1.proto b/proto/bilibili/community/interfacess/cosmoconn/v1.proto new file mode 100644 index 0000000..db20a3c --- /dev/null +++ b/proto/bilibili/community/interfacess/cosmoconn/v1.proto @@ -0,0 +1,220 @@ +syntax = "proto3"; + +package bilibili.community.interfacess.cosmoconn.v1; + +import "google/protobuf/empty.proto"; + +// +service CosmoInterface { + // + rpc Ping (google.protobuf.Empty) returns (google.protobuf.Empty); + // + rpc SimpleAction (SimpleActionReq) returns (SimpleActionRsp); + // + rpc Subscribe (SubscribeReq) returns (SubscribeRsp); + // + rpc SubscribeCard (SubscribeCardReq) returns (SubscribeCardRsp); +} + +// +enum Action { + // + ACTION_INVALID = 0; + // + ACTION_THUMB = 1; + // + ACTION_CANCEL_THUMB = 2; + // + ACTION_FAV = 3; + // + ACTION_CANCEL_FAV = 4; +} + +// +message Button { + // + bool disable = 1; + // + int32 op_type = 2; + // + string text = 3; + // + string jump_url = 4; + // + TimeLimited time_limit = 5; +} + +// +message CosmoBusiness { + // + string business = 1; + // + string sub_business = 2; +} + +// +message CosmoMeta { + // + string platform = 1; + // + string build = 2; + // + string mobi_app = 3; + // + string buvid = 4; + // + string device = 5; + // + string version = 6; + // + int32 network = 7; + // + string ip = 8; + // + string port = 9; + // + string ua = 10; + // + string refer = 11; + // + string spmid = 12; + // + string from_spmid = 13; + // + string trace_id = 14; + // + int32 teenager_mode = 15; + // + int32 cold_start = 16; + // + string from = 17; + // + string buvid3 = 18; + // + int64 app_id = 19; +} + +// +message CosmoParaMeta { + // + string spmid = 1; + // + string from_spmid = 2; + // + string from = 3; + // + string action_id = 4; +} + +// +message Entity { + // + EntityType type = 1; + // + int64 object_id = 2; + // + string object_id_str = 3; + // + int64 up_mid = 4; +} + +// +enum EntityBiz { + // + ENTITY_BIZ_INVALID = 0; + // + ENTITY_BIZ_VIDEO = 1; + // + ENTITY_BIZ_OPUS = 2; + // + ENTITY_BIZ_DYNAMIC = 3; + // + ENTITY_BIZ_REPLY = 4; + // + ENTITY_BIZ_TOPIC = 5; +} + +// +message EntityType { + // + EntityBiz biz = 1; +} + +// +message IconRes { + // + string light = 1; + // + string dark = 2; +} + +// +message ShowText { + // + string title = 1; + // + string sub_title = 2; +} + +// +message SimpleActionReq { + // + Entity entity = 1; + // + Action action = 2; + // + CosmoParaMeta meta = 3; +} + +// +message SimpleActionRsp { +} + +// +message SubscribeCard { + // + ShowText show_text = 1; + // + IconRes icon_res = 2; + // + Button button = 3; +} + +// +message SubscribeCardReq { + // + CosmoBusiness business = 1; +} + +// +message SubscribeCardRsp { + // + string unique_id = 1; + // + SubscribeCard card = 2; +} + +// +message SubscribeReq { + // + CosmoBusiness business = 1; + // + string unique_id = 2; + // + Button button = 3; +} + +// +message SubscribeRsp { + // + Button button = 1; +} + +// +message TimeLimited { + // + int64 start_ts = 1; + // + int64 end_ts = 2; +} + diff --git a/proto/bilibili/community/service/cert/v1.proto b/proto/bilibili/community/service/cert/v1.proto new file mode 100644 index 0000000..d39cbd1 --- /dev/null +++ b/proto/bilibili/community/service/cert/v1.proto @@ -0,0 +1,42 @@ +syntax = "proto3"; + +package bilibili.community.service.cert.v1; + +// +service FieldCert { + // + rpc FieldCertPopAction (FieldCertPopActionReq) returns (FieldCertPopActionRsp); + // + rpc FieldCertPopRecord (FieldCertPopRecordReq) returns (FieldCertPopRecordRsp); +} + +// +enum Action { + // + ACTION_CERT_CANCEL = 0; + // + ACTION_CERT_CONFIRM = 1; +} + +// +message FieldCertPopActionReq { + // + int64 avid = 1; + // + Action action = 2; +} + +// +message FieldCertPopActionRsp { +} + +// +message FieldCertPopRecordReq { + // + int64 avid = 1; +} + +// +message FieldCertPopRecordRsp { +} + diff --git a/proto/bilibili/community/service/dm/v1.proto b/proto/bilibili/community/service/dm/v1.proto new file mode 100644 index 0000000..5a4beaf --- /dev/null +++ b/proto/bilibili/community/service/dm/v1.proto @@ -0,0 +1,1352 @@ +syntax = "proto3"; + +package bilibili.community.service.dm.v1; + +// +service DM { + // + rpc DmExpoReport (DmExpoReportReq) returns (DmExpoReportRes); + // + rpc DmPlayerConfig (DmPlayerConfigReq) returns (Response); + // + rpc DmSegCache (DmSegCacheReq) returns (DmSegMobileReply); + // + rpc DmSegMobile (DmSegMobileReq) returns (DmSegMobileReply); + // + rpc DmSegOtt (DmSegOttReq) returns (DmSegOttReply); + // + rpc DmSegSDK (DmSegSDKReq) returns (DmSegSDKReply); + // + rpc DmView (DmViewReq) returns (DmViewReply); +} + +// +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; +} + +// +enum BubbleType { + // + BubbleTypeNone = 0; + // + BubbleTypeClickButton = 1; + // + BubbleTypeDmSettingPanel = 2; +} + +// +message BubbleV2 { + // + string text = 1; + // + string url = 2; + // + BubbleType bubble_type = 3; + // + bool exposure_once = 4; + // + ExposureType exposure_type = 5; +} + +// +message Button { + // + string text = 1; + // + ToastFunctionType action = 2; +} + +// +message BuzzwordConfig { + // + repeated BuzzwordShowConfig keywords = 1; +} + +// +message BuzzwordShowConfig { + // + string name = 1; + // + string schema = 2; + // + int32 source = 3; + // + int64 id = 4; + // + int64 buzzword_id = 5; + // + int32 schema_type = 6; +} + +// +message CheckBox { + // + string text = 1; + // + CheckboxType type = 2; + // + bool default_value = 3; + // + bool show = 4; +} + +// +message CheckBoxV2 { + // + string text = 1; + // + CheckboxType type = 2; + // + bool default_value = 3; +} + +// +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 ClickButtonV2 { + // + 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 text_input_post = 6; + // + bool exposure_once = 7; + // + ExposureType exposure_type = 8; +} + +// +message Command { + // + repeated CommandDm command_dms = 1; +} + +// +message CommandDm { + // + int64 id = 1; + // + int64 oid = 2; + // + int64 mid = 3; + // + string command = 4; + // + string content = 5; + // + int32 progress = 6; + // + string ctime = 7; + // + string mtime = 8; + // + string extra = 9; + // + string idstr = 10; + // + int32 type = 11; + // + bool auto_create = 12; + // + int32 count_down = 13; + // + int32 attr = 14; +} + +// +message DanmakuAIFlag { + // + repeated DanmakuFlag dm_flags = 1; +} + +// +message DanmakuElem { + // + int64 id = 1; + // + int32 progress = 2; + // + int32 mode = 3; + // + int32 fontsize = 4; + // + DmColorfulType color = 5; + // + string mid_hash = 6; + // + string content = 7; + // + int64 ctime = 8; + // + int32 weight = 9; + // + string action = 10; + // + int32 pool = 11; + // + string id_str = 12; + // + int32 attr = 13; + // + string animation = 22; + // + string extra = 23; + // + DmColorfulType colorful = 24; + // + int32 type = 25; + // + int64 oid = 26; + // + DmFromType dm_from = 27; +} + +// +message DanmakuFlag { + // + int64 dmid = 1; + // + int32 flag = 2; +} + +// +message DanmakuFlagConfig { + // + int32 rec_flag = 1; + // + string rec_text = 2; + // + int32 rec_switch = 3; +} + +// +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; + // + int32 player_danmaku_ai_recommended_level_v2 = 18; + // + map player_danmaku_ai_recommended_level_v2_map = 19; + // + bool player_danmaku_enable_herd_dm = 20; +} + +// +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; + // + int32 player_danmaku_ai_recommended_level_v2 = 21; + // + map player_danmaku_ai_recommended_level_v2_map = 22; + // + bool player_danmaku_enable_herd_dm = 23; + // + bool player_danmaku_blocktop_bottom = 24; + // + int32 player_danmaku_domain_v2 = 25; + // + int32 player_danmaku_density = 26; + // + bool player_danmaku_subtitle_proof = 27; + // + bool player_danmaku_people_proof = 28; +} + +// +message DanmuPlayerConfigPanel { + // + string selection_text = 1; +} + +// +message DanmuPlayerDynamicConfig { + // + int32 progress = 1; + // + float player_danmaku_domain = 14; +} + +// +message DanmuPlayerViewConfig { + // + DanmuDefaultPlayerConfig danmuku_default_player_config = 1; + // + DanmuPlayerConfig danmuku_player_config = 2; + // + repeated DanmuPlayerDynamicConfig danmuku_player_dynamic_config = 3; + // + DanmuPlayerConfigPanel danmuku_player_config_panel = 4; +} + +// +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; + // + int32 ai_level_v2 = 22; + // + map ai_level_v2_map = 23; + // + bool blocktop_bottom = 24; + // + int32 dm_area_v2 = 25; + // + int32 dm_density = 26; +} + +// +message DmColorful { + // + DmColorfulType type = 1; + // + string src = 2; +} + +// +enum DmColorfulType { + // + NoneType = 0; + // + VipGradualColor = 60001; +} + +// +message DmExpoReportReq { + // + string session_id = 1; + // + int64 oid = 2; + // + bytes dmids = 3; + // + string spmid = 4; +} + +// +message DmExpoReportRes { +} + +// +enum DmFromType { + // + DmFromUnknown = 0; + // + DmFromNormal = 1; + // + DmFromCmd = 2; + // + DmFromLive = 3; +} + +// +message DmHerdView { + // + int32 display_herd_dm_num = 1; + // + repeated ViewHerdDmElem herd_dms = 2; +} + +// +message DmMaskWall { + // + int64 start = 1; + // + int64 end = 2; + // + string content = 3; + // + DmMaskWallContentType content_type = 4; + // + DmMaskWallBizType biz_type = 5; + // + repeated DmMaskWallContent contents = 6; +} + +// +enum DmMaskWallBizType { + // + Unknown = 0; + // + OGV = 1; + // + BizPic = 2; + // + Mute = 3; + // + Record = 4; + // + Cloud = 5; + // + AIGC = 6; +} + +// +message DmMaskWallContent { + // + DmMaskWallContentType type = 1; + // + string content = 2; +} + +// +enum DmMaskWallContentType { + // + DmMaskWallContentTypeUnknown = 0; + // + DmMaskWallContentTypeText = 1; + // + DmMaskWallContentTypePic = 2; +} + +// +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 inline_player_danmaku_switch = 18; + // + PlayerDanmakuSeniorModeSwitch senior_mode_switch = 19; + // + PlayerDanmakuAiRecommendedLevelV2 ai_recommended_level_v2 = 20; + // + PlayerDanmakuEnableHerdDm enable_herd_dm = 21; + // + PlayerDanmakuBlocktopBottom blocktop_bottom = 22; + // + PlayerDanmakuDomainV2 domain_v2 = 23; + // + PlayerDanmakuDensity density = 24; + // + PlayerDanmakuSubtitleProof subtitle_proof = 25; + // + PlayerDanmakuPeopleProof people_proof = 26; +} + +// +message DmSegCacheReq { + // + int32 type = 1; + // + int64 oid = 2; + // + int64 pid = 3; +} + +// +message DmSegConfig { + // + int64 page_size = 1; + // + int64 total = 2; +} + +// +message DmSegMobileReply { + // + repeated DanmakuElem elems = 1; + // + int32 state = 2; + // + DanmakuAIFlag ai_flag = 3; + // + repeated int64 segment_rules = 4; + // + repeated DmColorful colorful_src = 5; + // + string context_src = 6; +} + +// +message DmSegMobileReq { + // + int64 pid = 1; + // + int64 oid = 2; + // + int32 type = 3; + // + int64 segment_index = 4; + // + int32 teenagers_mode = 5; + // + int64 ps = 6; + // + int64 pe = 7; + // + int32 pull_mode = 8; + // + int32 from_scene = 9; + // + string spmid = 10; + // + string context_ext = 11; +} + +// +message DmSegOttReply { + // + repeated DanmakuElem elems = 1; + // + int32 state = 2; +} + +// +message DmSegOttReq { + // + int64 pid = 1; + // + int64 oid = 2; + // + int32 type = 3; + // + int64 segment_index = 4; +} + +// +message DmSegSDKReply { + // + bool closed = 1; + // + repeated DanmakuElem elems = 2; +} + +// +message DmSegSDKReq { + // + int64 pid = 1; + // + int64 oid = 2; + // + int32 type = 3; + // + int64 segment_index = 4; +} + +// +message DmSubView { + // + int32 type = 1; + // + int64 oid = 2; + // + int64 pid = 3; + // + repeated PostPanelV2 post_panel2 = 4; +} + +// +message DmViewReply { + // + bool closed = 1; + // + VideoMask mask = 2; + // + VideoSubtitle subtitle = 3; + // + repeated string special_dms = 4; + // + DanmakuFlagConfig ai_flag = 5; + // + DanmuPlayerViewConfig player_config = 6; + // + int32 send_box_style = 7; + // + bool allow = 8; + // + bool check_box = 9; + // + string check_box_show_msg = 10; + // + string text_placeholder = 11; + // + string input_placeholder = 12; + // + repeated string report_filter_content = 13; + // + ExpoReport expo_report = 14; + // + BuzzwordConfig buzzword_config = 15; + // + repeated Expressions expressions = 16; + // + repeated PostPanel post_panel = 17; + // + repeated string activity_meta = 18; + // + repeated PostPanelV2 post_panel2 = 19; + // + repeated DmMaskWall dm_mask_wall = 20; + // + DmHerdView dm_herd = 21; + // + Command command = 22; + // + string kv = 23; + // + repeated DmSubView sub_views = 24; + // + QoeInfo qoe = 25; +} + +// +message DmViewReq { + // + int64 pid = 1; + // + int64 oid = 2; + // + int32 type = 3; + // + string spmid = 4; + // + int32 is_hard_boot = 5; + // + string context_ext = 6; +} + +// +message DmWebViewReply { + // + int32 state = 1; + // + string text = 2; + // + string text_side = 3; + // + DmSegConfig dm_sge = 4; + // + DanmakuFlagConfig flag = 5; + // + repeated string special_dms = 6; + // + bool check_box = 7; + // + int64 count = 8; + // + repeated CommandDm command_dms = 9; + // + DanmuWebPlayerConfig player_config = 10; + // + repeated string report_filter_content = 11; + // + repeated Expressions expressions = 12; + // + repeated PostPanel post_panel = 13; + // + repeated string activity_meta = 14; + // + repeated PostPanelV2 post_panel2 = 15; + // + repeated DmSubView sub_views = 16; + // + QoeInfo qoe = 17; +} + +// +message ExpoReport { + // + bool should_report_at_end = 1; + // + double player_sample = 2; + // + repeated ReportDuration durations = 3; + // + int32 max_size = 4; +} + +// +enum ExposureType { + // + ExposureTypeNone = 0; + // + ExposureTypeDMSend = 1; +} + +// +message Expression { + // + repeated string keyword = 1; + // + string url = 2; + // + repeated Period period = 3; +} + +// +message Expressions { + // + repeated Expression data = 1; +} + +// +message InlinePlayerDanmakuSwitch { + // + bool value = 1; +} + +// +message Label { + // + string title = 1; + // + repeated string content = 2; +} + +// +message LabelV2 { + // + string title = 1; + // + repeated string content = 2; + // + bool exposure_once = 3; + // + ExposureType exposure_type = 4; +} + +// +message Period { + // + int64 start = 1; + // + int64 end = 2; +} + +// +message PlayerDanmakuAiRecommendedLevel { + // + int32 value = 1; +} + +// +message PlayerDanmakuAiRecommendedLevelV2 { + // + int32 value = 1; +} + +// +message PlayerDanmakuAiRecommendedSwitch { + // + bool value = 1; +} + +// +message PlayerDanmakuBlockbottom { + // + bool value = 1; +} + +// +message PlayerDanmakuBlockcolorful { + // + bool value = 1; +} + +// +message PlayerDanmakuBlockrepeat { + // + bool value = 1; +} + +// +message PlayerDanmakuBlockscroll { + // + bool value = 1; +} + +// +message PlayerDanmakuBlockspecial { + // + bool value = 1; +} + +// +message PlayerDanmakuBlocktop { + // + bool value = 1; +} + +// +message PlayerDanmakuBlocktopBottom { + // + bool value = 1; +} + +// +message PlayerDanmakuDensity { + // + int32 value = 1; +} + +// +message PlayerDanmakuDomain { + // + float value = 1; +} + +// +message PlayerDanmakuDomainV2 { + // + int32 value = 1; +} + +// +message PlayerDanmakuEnableHerdDm { + // + bool value = 1; +} + +// +message PlayerDanmakuEnableblocklist { + // + bool value = 1; +} + +// +message PlayerDanmakuOpacity { + // + float value = 1; +} + +// +message PlayerDanmakuPeopleProof { + // + bool value = 1; +} + +// +message PlayerDanmakuScalingfactor { + // + float value = 1; +} + +// +message PlayerDanmakuSeniorModeSwitch { + // + int32 value = 1; +} + +// +message PlayerDanmakuSpeed { + // + int32 value = 1; +} + +// +message PlayerDanmakuSubtitleProof { + // + bool value = 1; +} + +// +message PlayerDanmakuSwitch { + // + bool value = 1; + // + bool can_ignore = 2; +} + +// +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; + // + PostPanelBizTypePlotLeak = 6; + // + PostPanelBizTypeAntiHarassment = 7; +} + +// +message PostPanelV2 { + // + int64 start = 1; + // + int64 end = 2; + // + PostPanelBizType biz_type = 3; + // + ClickButtonV2 click_button = 4; + // + TextInputV2 text_input = 5; + // + CheckBoxV2 check_box = 6; + // + ToastV2 toast = 7; + // + BubbleV2 bubble = 8; + // + LabelV2 label = 9; + // + PostStatus post_status = 10; +} + +// +enum PostStatus { + // + PostStatusNormal = 0; + // + PostStatusClosed = 1; +} + +// +message QoeInfo { + // + string info = 1; +} + +// +enum RenderType { + // + RenderTypeNone = 0; + // + RenderTypeSingle = 1; + // + RenderTypeRotation = 2; +} + +// +message ReportDuration { + // + int64 start_second = 1; + // + int64 end_second = 2; +} + +// +message Response { + // + int32 code = 1; + // + string message = 2; +} + +// +enum SubtitleAiStatus { + // + None = 0; + // + Exposure = 1; + // + Assist = 2; +} + +// +enum SubtitleAiType { + // + Normal = 0; + // + Translate = 1; +} + +// +message SubtitleItem { + // + int64 id = 1; + // + string id_str = 2; + // + string lan = 3; + // + string lan_doc = 4; + // + string subtitle_url = 5; + // + UserInfo author = 6; + // + SubtitleType type = 7; + // + string lan_doc_brief = 8; + // + SubtitleAiType ai_type = 9; + // + SubtitleAiStatus ai_status = 10; + // + SubtitleRole role = 11; +} + +// +enum SubtitleRole { + // + Default = 0; + // + Main = 1; + // + Secondary = 2; +} + +// +enum SubtitleType { + // + CC = 0; + // + AI = 1; +} + +// +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 TextInputV2 { + // + repeated string portrait_placeholder = 1; + // + repeated string landscape_placeholder = 2; + // + RenderType render_type = 3; + // + bool placeholder_post = 4; + // + repeated Avatar avatar = 5; + // + int32 text_input_limit = 6; +} + +// +message Toast { + // + string text = 1; + // + int32 duration = 2; + // + bool show = 3; + // + Button button = 4; +} + +// +message ToastButtonV2 { + // + string text = 1; + // + ToastFunctionType action = 2; +} + +// +enum ToastFunctionType { + // + ToastFunctionTypeNone = 0; + // + ToastFunctionTypePostPanel = 1; +} + +// +message ToastV2 { + // + string text = 1; + // + int32 duration = 2; + // + ToastButtonV2 toast_button_v2 = 3; +} + +// +message UserInfo { + // + int64 mid = 1; + // + string name = 2; + // + string sex = 3; + // + string face = 4; + // + string sign = 5; + // + int32 rank = 6; +} + +// +message VideoMask { + // + int64 cid = 1; + // + int32 plat = 2; + // + int32 fps = 3; + // + int64 time = 4; + // + string mask_url = 5; +} + +// +message VideoSubtitle { + // + string lan = 1; + // + string lan_doc = 2; + // + repeated SubtitleItem subtitles = 3; +} + +// +message ViewHerdDmElem { + // + string herd_msg = 1; + // + int32 herd_start_cnt = 2; + // + int32 herd_end_cnt = 3; + // + string regex_rule = 4; + // + int32 start_progress = 5; + // + int32 end_progress = 6; +} + diff --git a/proto/bilibili/community/service/govern/v1.proto b/proto/bilibili/community/service/govern/v1.proto new file mode 100644 index 0000000..0cc688f --- /dev/null +++ b/proto/bilibili/community/service/govern/v1.proto @@ -0,0 +1,74 @@ +syntax = "proto3"; + +package bilibili.community.service.govern.v1; + +import "google/protobuf/empty.proto"; + +// +service Qoe { + // + rpc QoeReport (QoeReportReq) returns (google.protobuf.Empty); +} + +// +message DeviceInfo { + // + string buvid = 1; + // + int64 build = 2; + // + string raw_platform = 3; + // + string raw_mobi_app = 4; + // + string device = 5; + // + string channel = 6; + // + string buvid3 = 7; + // + string user_agent = 8; +} + +// +message QoeReportReq { + // + int64 id = 1; + // + int64 scene = 2; + // + int32 type = 3; + // + bool cancel = 4; + // + string business_type = 5; + // + int64 oid = 6; + // + QoeScoreResult score_result = 7; + // + string business_data = 8; + // + QoeResult result = 9; + // + DeviceInfo device_info = 10; +} + +// +message QoeResult { + // + float option_score = 1; + // + string option_title = 2; + // + repeated string option_descs = 3; + // + string option_custom_feedback = 4; +} + +// +message QoeScoreResult { + // + float score = 1; +} + diff --git a/proto/bilibili/creative_tool/editor/v2.proto b/proto/bilibili/creative_tool/editor/v2.proto new file mode 100644 index 0000000..27492f5 --- /dev/null +++ b/proto/bilibili/creative_tool/editor/v2.proto @@ -0,0 +1,422 @@ +syntax = "proto3"; + +package bilibili.creative_tool.editor.v2; + +// +message EditorBody { + // + int32 version = 1; + // + repeated Material materials = 2; + // + repeated Feature features = 3; + // + Metadata metadata = 4; +} + +// +message Feature { + // + FeatureFlag flag = 1; + // + string ext = 2; +} + +// +enum FeatureFlag { + // + _ff_none = 0; + // + LinearMask = 1; + // + MirrorMask = 2; + // + RectangularMask = 3; + // + RecognitionTitle = 21; + // + IdentificationRecording = 22; + // + MyMaterialLibrary = 23; + // + TextReading = 24; + // + EditorHighlightRecognition = 25; + // + LinkExtractMusic = 26; + // + BatchRoughShears = 27; + // + MaterialCenter = 28; + // + CommandBarrage = 29; + // + CoverMattingFunction = 30; + // + VideoExtractMusic = 31; + // + LocalMusic = 32; + // + DynamicFeatures = 33; + // + VideoDotFunction = 34; + // + DynamicTracking = 35; + // + MusicalSpeedChange = 36; + // + SoundSpeedChange = 37; + // + TextReadingSpeedChange = 38; + // + RecordingSpeedChange = 39; + // + AvatarsCustomizeParts = 40; + // + CropCustomizeStickers = 41; + // + MattingCustomStickers = 42; + // + VtuberFeature = 43; + // + Matting = 44; + // + Vtuber = 45; + // + Adjust = 46; + // + KichikuRap = 47; + // + PrefabricatedDraft = 48; + // + CircularMask = 49; + // + KeyFrame = 50; + // + VoiceChanger = 51; + // + LOLMaterial = 52; + // + AudioSeparation = 53; + // + QuickVtuberMV = 54; + // + VideoInAnimation = 55; + // + VideoOutAnimation = 56; + // + VideoCompositeAnimation = 57; + // + recommendedTemplateCover = 58; + // + CoverMakesRecommended = 59; + // + GraphicTemplate = 61; + // + HeadMatting = 63; + // + PortraitMatting = 64; + // + CustomMatting = 65; + // + TitleGhostAnimal = 66; + // + PlayVideoBackwards = 67; + // + DraftStorylineGenerated = 70; + // + VtuberRecording = 71; + // + OneClickPacking = 72; + // + DubbingCreation1_6 = 73; + // + DubbingCreation3 = 74; + // + PictureAudioRecording = 76; + // + Play4D = 77; + // + RecommendedMusic = 78; + // + GraphicIntelligentMapping = 79; + // + Recording = 80; + // + Shoot = 81; + // + VideoSpeedChange = 82; + // + CameraFlip = 83; + // + ScreenRecording = 84; + // + DefaultEnd = 85; + // + WhetherGameHighlights = 86; + // + RecordingInscription = 87; + // + PictureInPicture = 88; + // + VoiceQuickClip = 89; + // + OneKeyMakeVideo = 90; + // + SmartMakeVideo = 91; + // + ShootSpeedChange = 92; + // + NoiseReduction = 93; + // + AIImage2Image = 94; + // + KichikuScene = 95; + // + ShootBeauty = 100; + // + ShootBeautyTemplate = 101; + // + ShootCountdown = 102; + // + ShootFlashlight = 103; + // + IntellectTitle = 104; + // + AiKeywordExtra = 105; + // + PictureTagRecognition = 106; + // + IntellectCover = 107; + // + AIActivity = 108; + // + DigitalHuman = 109; + // + AIStraightTitle = 110; + // + GameFactory = 111; + // + NonSmartVideo = 112; + // + Replace = 113; + // + TTSClone = 114; + // + SmartTitlePink = 115; + // + RecognitionMusic = 116; + // + AIVideoStoryTool = 117; + // + AIVideoStoryPlay = 118; + // + AIVideoMusicTool = 119; + // + AIVideoMusicPlay = 120; + // + VideoClipCut = 121; + // + FastPublish = 122; + // + TextToAudio = 123; + // + CloudDraft = 124; +} + +// +message FeatureHighlightExt { + // + int32 count = 1; +} + +// +message FeatureVtuberExt { + // + repeated int32 exp = 1; + // + repeated int32 action = 2; + // + repeated int32 combine = 3; +} + +// +message Material { + // + int64 id = 1; + // + MaterialType type = 2; + // + MaterialForm from = 3; + // + int32 duration = 4; + // + string ext = 5; +} + +// +enum MaterialForm { + // + Normal = 0; + // + AIRecommend = 1; + // + TacticsRecommend = 2; + // + Search = 3; +} + +// +enum MaterialType { + // + Subtitles = 0; + // + Fonts = 1; + // + Filters = 2; + // + Bgms = 3; + // + ShootStickers = 5; + // + VideoupStickers = 7; + // + Trans = 8; + // + Cooperates = 9; + // + Themes = 10; + // + Makeups = 11; + // + Surgerys = 12; + // + Videofxs = 13; + // + Rhythms = 14; + // + BSticker = 15; + // + Particle = 16; + // + Effects = 17; + // + Backgrounds = 18; + // + Videos = 19; + // + Sounds = 20; + // + Flower = 21; + // + BcutHotWord = 22; + // + VUPerBG = 25; + // + CoverTemplates = 26; + // + TTS = 27; + // + Openings = 28; + // + Vupers = 30; + // + InstructBarrageTemplate = 31; + // + LovelySticker = 32; + // + LovelyStickerHotWord = 33; + // + QuickBeauty = 34; + // + MakeupBeauty = 35; + // + Textmotion = 36; + // + BcutAudioHotWord = 37; + // + VideoTemplatesFull = 38; + // + VideoTemplatesStart = 39; + // + HotTopicEffects = 40; + // + CoverTemplate = 41; + // + InteractiveBarrage = 42; + // + VideoHotWord = 43; + // + TextToVideoTemplate = 44; + // + OpeningTemplate = 45; + // + VideoTemplate = 46; + // + VupTemplate = 47; + // + RemixTemplate = 49; + // + GameTemplate = 50; + // + ProcessBar = 51; + // + VtuberProperty = 52; + // + VtuberBackground = 53; + // + DubbingTool = 55; + // + HotTopicVideos = 60; + // + ASR = 61; + // + WebCoverTemplate = 62; + // + CameraFilter = 63; + // + CameraEffect = 64; + // + VideoWave = 66; + // + VirtualBg = 67; + // + VirtualProp = 68; + // + VoiceChange = 71; + // + SmartTemplate = 72; + // + WzryGameTemplate = 73; + // + AiDrawingModel = 74; + // + AiPlayModel = 75; + // + VideoGenMaterialUse = 79; +} + +// +message Metadata { + // + int32 duration = 1; + // + int32 pic_count = 2; + // + int32 video_count = 3; + // + int32 video_tracks = 12; + // + int32 audio_tracks = 13; + // + int32 story_id = 19; + // + int64 draft_id = 20; + // + string draft_key = 21; + // + int32 local_material_count = 22; + // + string sdk_type = 23; +} + diff --git a/proto/bilibili/dagw/component/avatar/common.proto b/proto/bilibili/dagw/component/avatar/common.proto new file mode 100644 index 0000000..0abbc05 --- /dev/null +++ b/proto/bilibili/dagw/component/avatar/common.proto @@ -0,0 +1,163 @@ +syntax = "proto3"; + +package bilibili.dagw.component.avatar.common; + +// +message BasicRenderSpec { + // + double opacity = 1; +} + +// +message ColorConfig { + // + bool is_dark_mode_aware = 1; + // + ColorSpec day = 2; + // + ColorSpec night = 3; +} + +// +message ColorSpec { + // + string argb = 1; +} + +// +message LayerGeneralSpec { + // + PositionSpec pos_spec = 1; + // + SizeSpec size_spec = 2; + // + BasicRenderSpec render_spec = 3; +} + +// +message MaskProperty { + // + LayerGeneralSpec general_spec = 1; + // + ResourceSource mask_src = 2; +} + +// +message NativeDrawRes { + // + enum FillMode { + // + FILL_MODE_INVALID = 0; + // + FILL_MODE_INTERNAL = 1; + // + FILL_MODE_EDGE = 2; + } + + // + enum NativeDraw { + // + DRAW_INVALID = 0; + // + DRAW_CIRCLE = 1; + // + DRAW_RECTANGLE = 2; + } + + // + NativeDrawRes.NativeDraw draw_type = 1; + // + NativeDrawRes.FillMode fill_mode = 2; + // + ColorConfig color_config = 3; + // + double edge_weight = 4; +} + +// +message PositionSpec { + // + enum CoordinatePos { + // + INVALID_COORDINATE = 0; + // + DEFAULT_COORDINATE = 1; + // + CENTRAL_COORDINATE = 2; + } + + // + PositionSpec.CoordinatePos coordinate_pos = 1; + // + double axis_x = 2; + // + double axis_y = 3; +} + +// +message RemoteRes { + // + string url = 1; + // + string bfs_style = 2; +} + +// +message ResourceSource { + // + enum LocalRes { + // + LOCAL_RES_INVALID = 0; + // + LOCAL_RES_ICON_VIP = 1; + // + LOCAL_RES_ICON_SMALL_VIP = 2; + // + LOCAL_RES_ICON_PERSONAL_VERIFY = 3; + // + LOCAL_RES_ICON_ENTERPRISE_VERIFY = 4; + // + LOCAL_RES_ICON_NFT_MAINLAND = 5; + // + LOCAL_RES_DEFAULT_AVATAR = 6; + // + LOCAL_RES_FOLLOW_ICON = 7; + // + LOCAL_RES_FOLLOW_ACTION = 8; + } + + // + enum SourceType { + // + SRC_TYPE_INVALID = 0; + // + SRC_TYPE_URL = 1; + // + SRC_TYPE_LOCAL = 2; + // + SRC_TYPE_DRAW = 3; + } + + // + oneof res { + // + RemoteRes remote = 3; + // + int32 local_value = 4; + // + NativeDrawRes draw = 5; + } + // + ResourceSource.SourceType src_type = 1; + // + ResourceSource.LocalRes placeholder = 2; +} + +// +message SizeSpec { + // + double width = 1; + // + double height = 2; +} + diff --git a/proto/bilibili/dagw/component/avatar/v1.proto b/proto/bilibili/dagw/component/avatar/v1.proto new file mode 100644 index 0000000..6ede021 --- /dev/null +++ b/proto/bilibili/dagw/component/avatar/v1.proto @@ -0,0 +1,155 @@ +syntax = "proto3"; + +package bilibili.dagw.component.avatar.v1; + +import "bilibili/dagw/component/avatar/common.proto"; +import "bilibili/dagw/component/avatar/v1/plugin.proto"; + +// +message AvatarItem { + // + bilibili.dagw.component.avatar.common.SizeSpec container_size = 1; + // + repeated LayerGroup layers = 2; + // + LayerGroup fallback_layers = 3; + // + int64 mid = 4; +} + +// +message BasicLayerResource { + // + enum ResType { + // + RES_TYPE_INVALID = 0; + // + RES_TYPE_PLUGIN = 1; + // + RES_TYPE_EMPTY = 2; + // + RES_TYPE_IMAGE = 3; + // + RES_TYPE_ANIMATION = 4; + // + RES_TYPE_NATIVE_DRAW = 5; + } + + // + oneof payload { + // + ResImage res_image = 2; + // + ResAnimation res_animation = 3; + // + ResNativeDraw res_native_draw = 4; + } + // + BasicLayerResource.ResType res_type = 1; +} + +// +message GeneralConfig { + // + map web_css_style = 1; +} + +// +message Layer { + // + string layer_id = 1; + // + bool visible = 2; + // + bilibili.dagw.component.avatar.common.LayerGeneralSpec general_spec = 3; + // + LayerConfig layer_config = 4; + // + BasicLayerResource resource = 5; +} + +// +message LayerConfig { + // + map tags = 1; + // + bool is_critical = 2; + // + bool allow_over_paint = 3; + // + bilibili.dagw.component.avatar.common.MaskProperty layer_mask = 4; +} + +// +message LayerGroup { + // + string group_id = 1; + // + repeated Layer layers = 2; + // + bilibili.dagw.component.avatar.common.MaskProperty group_mask = 3; + // + bool is_critical_group = 4; +} + +// +message LayerTagConfig { + // + enum TagConfigType { + // + TAG_CFG_INVALID = 0; + // + TAG_CFG_GENERAL = 1; + // + TAG_CFG_GYRO = 2; + // + TAG_CFG_COMMENT_DOUBLE_CLICK = 3; + // + TAG_CFG_IN_LIVE = 4; + // + TAG_CFG_WEB_IN_LIVE = 5; + // + TAG_CFG_FOLLOW_ICON = 6; + // + TAG_CFG_FOLLOW_ACTION = 7; + } + + // + oneof config { + // + GeneralConfig general_config = 2; + // + bilibili.dagw.component.avatar.v1.plugin.GyroConfig gyro_config = 3; + // + bilibili.dagw.component.avatar.v1.plugin.CommentDoubleClickConfig comment_double_click_config = 4; + // + bilibili.dagw.component.avatar.v1.plugin.LiveAnimeConfig live_anime_config = 5; + // + bilibili.dagw.component.avatar.v1.plugin.WebLiveAnimeConfig web_live_anime_config = 6; + // + bilibili.dagw.component.avatar.v1.plugin.FollowIconConfig follow_icon_config = 7; + // + bilibili.dagw.component.avatar.v1.plugin.FollowActionConfig follow_action_config = 8; + } + // + LayerTagConfig.TagConfigType config_type = 1; +} + +// +message ResAnimation { + // + bilibili.dagw.component.avatar.common.ResourceSource webp_src = 1; +} + +// +message ResImage { + // + bilibili.dagw.component.avatar.common.ResourceSource image_src = 1; +} + +// +message ResNativeDraw { + // + bilibili.dagw.component.avatar.common.ResourceSource draw_src = 1; +} + diff --git a/proto/bilibili/dagw/component/avatar/v1/plugin.proto b/proto/bilibili/dagw/component/avatar/v1/plugin.proto new file mode 100644 index 0000000..ee753b5 --- /dev/null +++ b/proto/bilibili/dagw/component/avatar/v1/plugin.proto @@ -0,0 +1,180 @@ +syntax = "proto3"; + +package bilibili.dagw.component.avatar.v1.plugin; + +import "bilibili/dagw/component/avatar/common.proto"; + +// +message BorderConfig { + // + bilibili.dagw.component.avatar.common.ColorConfig color = 1; + // + double border_width = 2; + // + double ratio = 3; +} + +// +message CommentDoubleClickConfig { + // + Interaction interaction = 1; + // + double animation_scale = 2; +} + +// +message FollowActionConfig { + // + bool has_follow = 1; + // + bilibili.dagw.component.avatar.common.ResourceSource icon_res = 2; + // + double border_width = 3; + // + bilibili.dagw.component.avatar.common.ColorConfig border_color = 4; + // + int64 mid = 5; + // + double icon_width_ratio = 6; + // + double icon_size_offset = 7; +} + +// +message FollowIconConfig { + // + bool has_follow = 1; + // + bilibili.dagw.component.avatar.common.ResourceSource icon_res = 2; + // + double border_width = 3; + // + bilibili.dagw.component.avatar.common.ColorConfig border_color = 4; + // + int64 mid = 5; +} + +// +message GyroConfig { + // + NFTImageV2 gyroscope = 1; +} + +// +message GyroscopeContentV2 { + // + string file_url = 1; + // + float scale = 2; + // + repeated PhysicalOrientationV2 physical_orientation = 3; +} + +// +message GyroscopeEntityV2 { + // + string display_type = 1; + // + repeated GyroscopeContentV2 contents = 2; +} + +// +message Interaction { + // + string nft_id = 1; + // + bool enabled = 2; + // + string itype = 3; + // + string metadata_url = 4; +} + +// +message LiveAnimeConfig { + // + bool is_live = 1; + // + LiveTextConfig config = 2; + // + repeated LiveAnimeItem items = 3; + // + repeated BorderConfig border_config = 4; +} + +// +message LiveAnimeItem { + // + bilibili.dagw.component.avatar.common.ColorConfig color = 1; + // + double start_ratio = 2; + // + double end_ratio = 3; + // + double start_stroke = 4; + // + double start_opacity = 5; + // + int64 phase = 6; +} + +// +message LiveTextConfig { + // + double width = 1; + // + double height = 2; + // + double offset_y = 3; + // + double border_width = 4; + // + double text_size = 5; + // + bilibili.dagw.component.avatar.common.ColorConfig border_color = 7; + // + bilibili.dagw.component.avatar.common.ColorConfig background = 8; +} + +// +message NFTImageV2 { + // + repeated GyroscopeEntityV2 gyroscope = 1; +} + +// +message PhysicalOrientationAnimation { + // + string type = 1; + // + repeated float value = 2; + // + string bezier = 3; +} + +// +message PhysicalOrientationV2 { + // + string type = 1; + // + repeated float angle = 2; + // + repeated PhysicalOrientationAnimation animations = 3; +} + +// +message WebLiveAnimeConfig { + // + double circle_gap_width = 1; + // + double pink_circle_width = 2; + // + double live_label_width = 3; + // + double live_label_height = 4; + // + double live_label_offset_y = 5; + // + double live_label_border_width = 6; +} + diff --git a/proto/bilibili/dynamic/common.proto b/proto/bilibili/dynamic/common.proto new file mode 100644 index 0000000..4642b43 --- /dev/null +++ b/proto/bilibili/dynamic/common.proto @@ -0,0 +1,1642 @@ +syntax = "proto3"; + +package bilibili.dynamic.common; + +import "bilibili/app/dynamic/v2.proto"; + +// +message Article { + // + int64 category_id = 1; + // + int64 list_id = 2; + // + int32 originality = 3; + // + int32 reproduced = 4; + // + repeated Pic cover = 5; + // + repeated string biz_tags = 6; +} + +// +message AtGroup { + // + int32 group_type = 1; + // + string group_name = 2; + // + repeated AtItem items = 3; +} + +// +message AtItem { + // + int64 uid = 1; + // + string name = 2; + // + string face = 3; + // + int32 fans = 4; + // + int32 official_verify_type = 5; +} + +// +message AtListReq { + // + int64 uid = 1; +} + +// +message AtListRsp { + // + repeated AtGroup groups = 1; +} + +// +message AtSearchReq { + // + int64 uid = 1; + // + string keyword = 2; +} + +// +enum AttachCardType { + // + ATTACH_CARD_NONE = 0; + // + ATTACH_CARD_GOODS = 1; + // + ATTACH_CARD_VOTE = 2; + // + ATTACH_CARD_UGC = 3; + // + ATTACH_CARD_ACTIVITY = 4; + // + ATTACH_CARD_OFFICIAL_ACTIVITY = 5; + // + ATTACH_CARD_TOPIC = 6; + // + ATTACH_CARD_OGV = 7; + // + ATTACH_CARD_AUTO_OGV = 8; + // + ATTACH_CARD_GAME = 9; + // + ATTACH_CARD_MANGA = 10; + // + ATTACH_CARD_DECORATION = 11; + // + ATTACH_CARD_MATCH = 12; + // + ATTACH_CARD_PUGV = 13; + // + ATTACH_CARD_RESERVE = 14; + // + ATTACH_CARD_UP_TOPIC = 15; + // + ATTACH_CARD_UP_ACTIVITY = 16; + // + ATTACH_CARD_UP_MAOER = 17; + // + ATTACH_CARD_MEMBER_GOODS = 18; + // + ATTACH_CARD_MAN_TIAN_XING = 19; + // + ATTACH_CARD_LOTTERY = 20; +} + +// +message BottomBusiness { + // + int64 rid = 1; + // + int64 type = 2; +} + +// +message CardParagraph { + // + LinkNode card = 1; + // + string default_text = 2; +} + +// +message CodeParagraph { + // + string lang = 1; + // + string content = 2; +} + +// +enum ContentType { + // + CONTENT_TYPE_NONE = 0; + // + TEXT = 1; + // + AT = 2; + // + LOTTERY = 3; + // + VOTE = 4; + // @Deprecated + TOPIC = 5; + // + GOODS = 6; + // @Deprecated + BV = 7; + // @Deprecated + AV = 8; + // + EMOJI = 9; + // @Deprecated + USER = 10; + // @Deprecated + CV = 11; + // @Deprecated + VC = 12; + // @Deprecated + WEB = 13; + // @Deprecated + TAOBAO = 14; + // @Deprecated + MAIL = 15; + // @Deprecated + OGV_SEASON = 16; + // @Deprecated + OGV_EP = 17; +} + +// +message CreateActivity { + // + int64 activity_id = 1; + // + int32 activity_state = 2; + // + int32 is_new_activity = 3; + // + int32 action = 4; +} + +// +message CreateAttachCard { + // + CreateGoodsCard goods = 1; + // + CreateCommonAttachCard common_card = 2; + // + CreateCommercialCard commercial = 3; +} + +// +message CreateCheckResp { + // + PublishSetting setting = 1; + // + UpPermission permission = 2; + // + ShareChannel share_info = 3; + // + PublishYellowBar yellow_bar = 4; + // + PlusRedDot plus_red_dot = 5; +} + +// +message CreateCommercialCard { + // + int64 commercial_entity_type = 1; + // + int64 commercial_entity_id = 2; +} + +// +message CreateCommonAttachCard { + // + AttachCardType type = 1; + // + int64 biz_id = 2; + // + ReserveSource reserve_source = 3; + // + int32 reserve_lottery = 4; +} + +// +message CreateContent { + // + repeated CreateContentItem contents = 1; + // + string title = 2; +} + +// +message CreateContentItem { + // + string raw_text = 1; + // + ContentType type = 2; + // + string biz_id = 3; + // + GoodsContent goods = 4; +} + +// +message CreateDynVideo { + // + string relation_from = 1; + // + repeated int64 follow_mids = 2; + // + int32 biz_from = 3; + // + int32 copyright = 4; + // + int32 no_public = 5; + // + int32 no_reprint = 6; + // + string source = 7; + // + string cover = 8; + // + string title = 9; + // + int64 tid = 10; + // + string tag = 11; + // + string desc = 12; + // + int64 desc_format_id = 13; + // + int32 open_elec = 14; + // + int32 dtime = 15; + // + repeated DynVideoMultiP videos = 16; + // + DynVideoWatermark watermark = 17; + // + int64 mission_id = 18; + // + string dynamic = 19; + // + string dynamic_extension = 20; + // + string dynamic_ctrl = 21; + // + string dynamic_from = 22; + // + int64 lottery_id = 23; + // + DynVideoVote vote = 24; + // + bool up_selection_reply = 25; + // + bool up_close_reply = 26; + // + bool up_close_danmu = 27; + // + int64 up_from = 28; + // + int64 duration = 29; + // + int64 topic_id = 30; + // + string upload_id = 31; + // + DynVideoTopic topic_detail = 32; +} + +// +message CreateDynVideoResult { + // + int64 aid = 1; + // + string message = 2; + // + DynVideoSubmitActBanner submitact_banner = 3; + // + DynVideoPushIntro push_intro = 4; +} + +// +message CreateExtraInfo { + // + string adcm_id = 1; +} + +// +message CreateGoodsCard { + // + repeated string item_id = 1; + // + repeated CreateGoodsCardItem goods_card_items = 2; +} + +// +message CreateGoodsCardItem { + // + string item_id = 1; + // + int64 act_id = 2; + // + int64 act_mid = 3; +} + +// +enum CreateInitCheckScene { + // + CREATE_INIT_CHECK_SCENE_INVALID = 0; + // + CREATE_INIT_CHECK_SCENE_NORMAL = 1; + // + CREATE_INIT_CHECK_SCENE_REPOST = 2; + // + CREATE_INIT_CHECK_SCENE_SHARE = 3; + // + CREATE_INIT_CHECK_SCENE_RESERVE_SHARE = 4; + // + CREATE_INIT_CHECK_SCENE_ARTICLE = 5; +} + +// +message CreateOption { + // + int32 up_choose_comment = 1; + // + int32 close_comment = 2; + // + int32 fold_exclude = 3; + // + int32 audit_level = 4; + // + int32 sync_to_comment = 5; + // + VideoShareInfo video_share_info = 6; + // + CreateActivity activity = 7; + // + int32 pic_mode = 10; + // + int64 only_fans = 11; + // + int32 limit_pegasus = 12; + // + int32 limit_search = 13; + // + int64 timer_pub_time = 14; + // + int64 only_fans_dnd = 15; + // + int64 only_fans_level = 17; + // + int32 private_pub = 19; + // + LiveWaterMark live_water_mark = 20; +} + +// +message CreatePic { + // + string img_src = 1; + // + double img_width = 2; + // + double img_height = 3; + // + double img_size = 4; + // + repeated CreatePicTag img_tags = 5; + // + string live_video_src = 6; + // + double live_video_size = 7; +} + +// +message CreatePicTag { + // + int64 item_id = 1; + // + int64 tid = 2; + // + int64 mid = 3; + // + string text = 4; + // + string text_string = 5; + // + int64 type = 6; + // + int64 source_type = 7; + // + string url = 8; + // + string schema_url = 9; + // + string jump_url = 10; + // + int64 orientation = 11; + // + int64 x = 12; + // + int64 y = 13; + // + string poi = 14; +} + +// +message CreateResp { + // + int64 dyn_id = 1; + // + string dyn_id_str = 2; + // + int64 dyn_type = 3; + // + int64 dyn_rid = 4; + // + bilibili.app.dynamic.v2.DynamicItem fake_card = 5; + // + CreateDynVideoResult video_result = 6; + // + ShareDynWindow share_window = 7; +} + +// +enum CreateScene { + // + CREATE_SCENE_INVALID = 0; + // + CREATE_SCENE_CREATE_WORD = 1; + // + CREATE_SCENE_CREATE_DRAW = 2; + // + CREATE_SCENE_CREATE_DYN_VIDEO = 3; + // + CREATE_SCENE_REPOST = 4; + // + CREATE_SCENE_SHARE_BIZ = 5; + // + CREATE_SCENE_SHARE_PAGE = 6; + // + CREATE_SCENE_SHARE_PROGRAM = 7; + // + CREATE_SCENE_REPLY_SYNC = 8; + // + CREATE_SCENE_REPLY_CREATE_ACTIVITY = 9; + // + CREATE_SCENE_CREATE_AD = 10; + // + CREATE_SCENE_CREATE_LIVE_RCMD = 11; + // + CREATE_SCENE_CREATE_ARTICLE = 12; +} + +// +message CreateTag { + // + ExtLbs lbs = 1; + // + BottomBusiness sdk_game = 2; + // + BottomBusiness diversion = 3; +} + +// +message CreateTopic { + // + int64 id = 1; + // + string name = 2; + // + string from_source = 3; + // + int64 from_topic_id = 4; + // + int64 super_topic_id = 5; +} + +// +message DynIdentity { + // + int64 dyn_id = 1; + // + DynRevsId revs_id = 2; +} + +// +message DynRevsId { + // + int64 dyn_type = 1; + // + int64 rid = 2; +} + +// +message DynVideoEditor { + // + int64 cid = 1; + // + int32 upfrom = 2; + // + string filters = 3; + // + string fonts = 4; + // + string subtitles = 5; + // + string bgms = 6; + // + string stickers = 7; + // + string videoup_stickers = 8; + // + string trans = 9; + // + string makeups = 10; + // + string surgerys = 11; + // + string videofxs = 12; + // + string themes = 13; + // + string cooperates = 14; + // + string rhythms = 15; + // + string effects = 16; + // + string backgrounds = 17; + // + string videos = 18; + // + string sounds = 19; + // + string flowers = 20; + // + string cover_templates = 21; + // + string tts = 22; + // + string openings = 23; + // + bool record_text = 24; + // + string vupers = 25; + // + string features = 26; + // + string bcut_features = 27; + // + int32 audio_record = 28; + // + int32 camera = 29; + // + int32 speed = 30; + // + int32 camera_rotate = 31; + // + int32 screen_record = 32; + // + int32 default_end = 33; + // + int32 duration = 34; + // + int32 pic_count = 35; + // + int32 video_count = 36; + // + int32 shot_duration = 37; + // + string shot_game = 38; + // + bool highlight = 39; + // + int32 highlight_cnt = 40; + // + int32 pip_count = 41; +} + +// +message DynVideoHotAct { + // + int64 act_id = 1; + // + int64 etime = 2; + // + int64 id = 3; + // + string pic = 4; + // + int64 stime = 5; + // + string title = 6; + // + string link = 7; +} + +// +message DynVideoMultiP { + // + string title = 1; + // + string filename = 2; + // + int64 cid = 3; + // + DynVideoEditor editor = 4; +} + +// +message DynVideoPushIntro { + // + int32 show = 1; + // + string text = 2; +} + +// +message DynVideoSubmitActBanner { + // + string hotact_text = 1; + // + string hotact_url = 2; + // + repeated DynVideoHotAct list = 3; +} + +// +message DynVideoTopic { + // + string from_source = 1; + // + int64 from_topic_id = 2; +} + +// +message DynVideoVote { + // + int64 vote_id = 1; + // + string vote_title = 2; + // + int32 top_for_reply = 3; +} + +// +message DynVideoWatermark { + // + int32 state = 1; + // + int32 type = 2; + // + int32 position = 3; +} + +// +message EmoteNode { + // + string raw_text = 1; +} + +// +message ExtLbs { + // + string address = 1; + // + int64 distance = 2; + // + int64 type = 3; + // + string poi = 4; + // + LbsLoc location = 5; + // + string show_title = 6; + // + string title = 7; + // + string show_distance = 8; +} + +// +message FormulaNode { + // + string latex_content = 1; + // + Pic pic = 2; +} + +// +message GetUidByNameReq { + // + repeated string names = 1; +} + +// +message GetUidByNameRsp { + // + map uids = 1; +} + +// +message GoodsContent { + // + int32 source_type = 1; + // + int64 item_id = 2; + // + int64 shop_id = 3; + // + int64 act_id = 4; + // + int64 act_mid = 5; + // + string item_id_str = 6; + // + int64 sub_type = 7; +} + +// +message LaunchedActivity { + // + string module_title = 1; + // + repeated LaunchedActivityItem activities = 2; + // + ShowMoreLaunchedActivity show_more = 3; +} + +// +message LaunchedActivityItem { + // + int64 activity_id = 1; + // + string activity_name = 2; + // + int32 activity_state = 3; +} + +// +message LbsLoc { + // + double lat = 1; + // + double lng = 2; +} + +// +message LineParagraph { + // + Pic pic = 1; +} + +// +message LinkNode { + // + message LinkNodeStyle { + // + bool bold = 1; + // + bool italic = 2; + // + bool strikethrough = 3; + // + bool underline = 4; + // + double font_size = 5; + // + string font_level = 7; + } + + // + string show_text = 1; + // + string link = 2; + // + string icon = 3; + // + string icon_suffix = 4; + // + OpusBizType link_type = 5; + // + string biz_id = 6; + // + VideoTs video_ts = 7; + // + LinkNodeStyle style = 8; + // + repeated Pic pics = 9; +} + +// +message LiveWaterMark { + // + int64 watermark = 1; + // + string wm_text = 2; + // + string username = 3; + // + string g = 4; + // + double wm_transparency = 5; + // + string biz = 6; +} + +// +message MetaDataCtrl { + // + string platform = 1; + // + string build = 2; + // + string mobi_app = 3; + // + string buvid = 4; + // + string device = 5; + // + string from_spmid = 6; + // + string from = 7; + // + string trace_id = 8; + // + int32 teenager_mode = 9; + // + int32 cold_start = 10; + // + string version = 11; + // + int32 network = 12; + // + string ip = 13; +} + +// +message OnlyFansDndSetting { + // + string title = 1; + // + string pop_title = 2; + // + string pop_desc = 3; + // + string pop_picture = 4; + // + string pop_btn_text = 5; +} + +// +message OnlyFansOption { + // + OnlyFansOptionType type = 1; + // + int32 disabled = 2; + // + string title = 3; + // + string subtitle = 4; + // + string icon = 5; + // + string only_fans_name = 6; + // + string desc_subtitle = 7; +} + +// +enum OnlyFansOptionType { + // + ONLY_FANS_OPTION_NONE = 0; + // + ONLY_FANS_OPTION_UPOWER = 1; + // + ONLY_FANS_OPTION_HIGH_UPOWER = 2; +} + +// +message OnlyFansPermission { + // + int32 permission = 1; + // + string title = 2; + // + string subtitle = 3; + // + string icon = 4; + // + string toast = 5; + // + repeated OnlyFansOption options = 6; + // + OnlyFansDndSetting dnd_setting = 7; +} + +// +message Opus { + // + int64 opus_id = 1; + // + OpusSource opus_source = 2; + // + string title = 3; + // + int64 cover_avid = 4; + // + string h5_content = 5; + // + OpusContent content = 6; + // + repeated OpusTag tags = 7; + // + PubInfo pub_info = 8; + // + Article article = 9; + // + Version version = 10; + // + int64 music_id = 11; +} + +// +enum OpusBizType { + // + DEFAULT = 0; + // + VIDEO = 1; + // + RESERVE = 2; + // + VOTE_OpusBizType = 3; + // + LIVE = 4; + // + LOTTERY_OpusBizType = 5; + // + MATCH = 6; + // + GOODS_OpusBizType = 7; + // + OGV_SS = 8; + // + OGV_EP_OpusBizType = 9; + // + MANGA = 10; + // + CHEESE = 11; + // + VIDEO_TS = 12; + // + AT_OpusBizType = 13; + // + HASH_TAG = 14; + // + CV_OpusBizType = 15; + // + URL = 16; + // + MAIL_OpusBizType = 17; + // + LBS = 18; + // + ACTIVITY = 19; + // + ATTACH_CARD_OFFICIAL_ACTIVITY_OpusBizType = 20; + // + GAME = 21; + // + DECORATION = 22; + // + UP_TOPIC = 23; + // + UP_ACTIVITY = 24; + // + UP_MAOER = 25; + // + MEMBER_GOODS = 26; + // + OPENMALL_UP_ITEMS = 27; + // + MUSIC = 29; + // + MEMBER_TICKET = 31; + // + REPOST_PIC_URL = 32; + // + REPOST_PIC_DYN_URL = 33; + // + OGV_FOLLOW_CARD = 34; + // + ARTICLE_GOODS = 35; + // + ARTICLE_TAG = 36; +} + +// +message OpusContent { + // + repeated Paragraph paragraphs = 1; +} + +// +enum OpusSource { + // + DEFAULT_SOURCE = 0; + // + ALBUM = 1; + // + ARTICLE = 2; + // + NOTE = 3; + // + OGV_COMMENT = 4; + // + ARTICLE_H5 = 5; + // + WORD = 6; + // + REPOST = 7; +} + +// +message OpusSummary { + // + OpusSource opus_source = 1; + // + string title = 2; + // + repeated Pic cover = 3; + // + OpusContent summary = 4; + // + repeated OpusTag tags = 5; + // + PubInfo pub_info = 6; + // + Version version = 7; + // + int64 music_id = 8; +} + +// +message OpusTag { + // + LinkNode tag = 1; +} + +// +message Paragraph { + // + message ListFormat { + // + int32 level = 1; + // + int32 order = 2; + // + string theme = 3; + } + + // + enum ParagraphAlign { + // + LEFT = 0; + // + MIDDLE = 1; + // + RIGHT = 2; + } + + // + message ParagraphFormat { + // + Paragraph.ParagraphAlign align = 1; + // + Paragraph.ListFormat list_format = 2; + } + + // + enum ParagraphType { + // + DEFAULT_ParagraphType = 0; + // + TEXT_ParagraphType = 1; + // + PICTURES = 2; + // + LINE = 3; + // + REFERENCE = 4; + // + SORTED_LIST = 5; + // + UNSORTED_LIST = 6; + // + LINK_CARD = 7; + } + + // + Paragraph.ParagraphType para_type = 1; + // + ParagraphFormat format = 2; + // + TextParagraph text = 3; + // + PicParagraph pic = 4; + // + LineParagraph line = 5; + // + CardParagraph link_card = 6; + // + CodeParagraph code = 7; +} + +// +message PermissionWebItem { + // + string title = 1; + // + string desc = 2; + // + bool allowable = 3; + // + repeated string features = 4; +} + +// +message PermissionsWeb { + // + PermissionWebItem lottery = 1; + // + PermissionWebItem archive = 2; + // + PermissionWebItem control_comment = 3; + // + PermissionWebItem choose_comment = 4; + // + PermissionWebItem video_reserve = 5; + // + PermissionWebItem live_reserve = 6; + // + PermissionWebItem popularize = 7; + // + PermissionWebItem link = 8; + // + OnlyFansPermission only_fans = 9; + // + PermissionWebItem commercial = 10; + // + PermissionWebItem upower = 11; + // + PermissionWebItem goods = 12; +} + +// +message Pic { + // + string url = 1; + // + double width = 2; + // + double height = 3; + // + double size = 4; + // + string comment = 5; + // + bool is_live = 6; + // + double live_video_size = 7; + // + double origin_video_size = 8; + // + string origin_video_url = 9; + // + string live_video_url = 10; +} + +// +message PicParagraph { + // + enum PicParagraphStyle { + // + DEFAULT_PicParagraphStyle = 0; + // + NINE_CELL = 1; + // + SCROLL = 2; + } + + // + repeated Pic pics = 1; + // + PicParagraph.PicParagraphStyle style = 2; +} + +// +message PlusRedDot { + // + int64 plus_has_red_dot = 1; +} + +// +message Program { + // + string title = 1; + // + string desc = 2; + // + string cover = 3; + // + string target_url = 4; + // + string icon = 5; + // + string program_text = 6; + // + string jump_text = 7; +} + +// +message PubInfo { + // + int64 uid = 1; + // + int64 pub_time = 2; + // + int64 last_mtime = 3; + // + int64 timer_pub_time = 4; +} + +// +message PublishSetting { + // + int32 min_words_to_article = 1; + // + int32 max_words_to_article = 2; + // + int32 upload_size = 3; + // + int32 max_at_count = 4; + // + int32 max_draft_count = 5; + // + int64 title_max_len = 6; +} + +// +message PublishWebSettings { + // + int32 max_upload_size = 1; + // + int32 max_content_length = 2; + // + int32 max_at_count = 3; + // + int32 max_draft_count = 4; + // + int64 max_pic_count_type = 5; +} + +// +message PublishYellowBar { + // + string text = 1; + // + string url = 2; + // + string icon = 3; +} + +// +message RepostInitCheck { + // + DynIdentity repost_src = 1; + // + string share_id = 2; + // + int32 share_mode = 3; +} + +// +enum ReserveSource { + // + RESERVE_SOURCE_NEW = 0; + // + RESERVE_SOURCE_ASSOCIATED = 1; +} + +// +message ShareChannel { + // + string share_origin = 1; + // + string oid = 2; + // + string sid = 3; + // + repeated ShareChannelItem share_channels = 4; +} + +// +message ShareChannelItem { + // + string name = 1; + // + string picture = 2; + // + string share_channel = 3; + // + ShareReserve reserve = 4; +} + +// +message ShareDynWindow { + // + string main_title = 1; + // + string sub_title = 2; + // + bilibili.app.dynamic.v2.DynamicItem dyn_item = 3; +} + +// +message ShareReserve { + // + string title = 1; + // + string desc = 2; + // + string qr_code_icon = 3; + // + string qr_code_text = 4; + // + string qr_code_url = 5; + // + string name = 6; + // + string face = 7; + // + ShareReservePoster poster = 8; + // + ShareReserveLottery reserve_lottery = 9; + // + string badge_text = 10; +} + +// +message ShareReserveLottery { + // + string icon = 1; + // + string text = 2; +} + +// +message ShareReservePoster { + // + string url = 1; + // + double width = 2; + // + double height = 3; +} + +// +message ShareResult { + // + int64 share_enable = 1; + // + string toast = 2; + // + int64 forbid_sync_comment = 3; +} + +// +message ShowMoreLaunchedActivity { + // + string button_text = 1; + // + string jump_url = 2; +} + +// +message Sketch { + // + string title = 1; + // + string desc_text = 2; + // + string text = 3; + // + int64 biz_id = 4; + // + int64 biz_type = 5; + // + string cover_url = 6; + // + string target_url = 7; +} + +// +message TextNode { + // + enum TextNodeType { + // + DEFAULT_TextNodeType = 0; + // + WORDS = 1; + // + EMOTE = 2; + // + AT_TextNodeType = 3; + // + BIZ_LINK = 4; + // + FORMULA = 5; + } + + // + TextNode.TextNodeType node_type = 1; + // + WordNode word = 2; + // + EmoteNode emote = 3; + // + LinkNode link = 4; + // + FormulaNode formula = 5; +} + +// +message TextParagraph { + // + repeated TextNode nodes = 1; +} + +// +message UpPermission { + // + repeated UpPermissionItem items = 1; + // + LaunchedActivity launched_activity = 2; + // + ShareResult share_result = 3; + // + OnlyFansPermission only_fans_permission = 4; +} + +// +message UpPermissionItem { + // + UpPermissionType type = 1; + // + int32 permission = 2; + // + string title = 3; + // + string subtitle = 4; + // + string icon = 5; + // + string jump_url = 6; + // + string toast = 7; + // + int64 has_red_dot = 8; +} + +// +enum UpPermissionType { + // + UP_PERMISSION_TYPE_NONE = 0; + // + UP_PERMISSION_TYPE_LOTTERY = 1; + // + UP_PERMISSION_TYPE_CLIP_PUBLISHED = 2; + // + UP_PERMISSION_TYPE_UGC_ATTACH_CARD = 3; + // + UP_PERMISSION_TYPE_GOODS_ATTACH_CARD = 4; + // + UP_PERMISSION_TYPE_CHOOSE_COMMENT = 5; + // + UP_PERMISSION_TYPE_CONTROL_COMMENT = 6; + // + UP_PERMISSION_TYPE_CONTROL_DANMU = 7; + // + UP_PERMISSION_TYPE_VIDEO_RESERVE = 8; + // + UP_PERMISSION_TYPE_LIVE_RESERVE = 9; + // + UP_PERMISSION_TYPE_BIZ_LINK = 10; + // + UP_PERMISSION_TYPE_COMMERCIAL = 11; + // + UP_PERMISSION_TYPE_BIG_COVER = 12; + // + UP_PERMISSION_TYPE_LIVE_VOYAGE = 13; + // + UP_PERMISSION_TYPE_ONLY_FANS = 14; + // + UP_PERMISSION_TYPE_TIMING_DYN = 15; + // + UP_PERMISSION_TYPE_PUBLIC = 16; + // + UP_PERMISSION_TYPE_PRIVATE = 17; +} + +// +message UserCreateMeta { + // + MetaDataCtrl app_meta = 1; + // + LbsLoc loc = 2; + // + int32 repost_mode = 3; +} + +// +message Version { + // + int64 cvid = 1; + // + int64 version_id = 2; +} + +// +message VideoShareInfo { + // + int64 cid = 1; + // + int32 part = 2; +} + +// +message VideoTs { + // + int64 cid = 1; + // + int64 oid_type = 2; + // + int64 status = 3; + // + int64 index = 4; + // + int64 seconds = 5; + // + int64 cid_count = 6; + // + string key = 7; + // + string title = 8; + // + int64 epid = 9; + // + string desc = 10; +} + +// +message WordNode { + // + message WordNodeStyle { + // + bool bold = 1; + // + bool italic = 2; + // + bool strikethrough = 3; + // + bool underline = 4; + } + + // + string words = 1; + // + double font_size = 2; + // + string color = 3; + // + string dark_color = 4; + // + WordNodeStyle style = 5; + // + string font_level = 7; +} + diff --git a/proto/bilibili/dynamic/interfaces/campus/v1.proto b/proto/bilibili/dynamic/interfaces/campus/v1.proto new file mode 100644 index 0000000..fda1d1e --- /dev/null +++ b/proto/bilibili/dynamic/interfaces/campus/v1.proto @@ -0,0 +1,32 @@ +syntax = "proto3"; + +package bilibili.dynamic.interfaces.campus.v1; + +// +service Campus { + // + rpc ActionReport (ActionReportReq) returns (ActionReportReply); +} + +// +message ActionReportReply { +} + +// +message ActionReportReq { + // + string identity = 1; + // + ActionType action = 2; + // + int64 campus_id = 3; +} + +// +enum ActionType { + // + ACTION_NOTHING = 0; + // + ACTION_CLOSE_YELLOW_BAR = 1; +} + diff --git a/proto/bilibili/dynamic/interfaces/feed/v1.proto b/proto/bilibili/dynamic/interfaces/feed/v1.proto new file mode 100644 index 0000000..ffcfab5 --- /dev/null +++ b/proto/bilibili/dynamic/interfaces/feed/v1.proto @@ -0,0 +1,960 @@ +syntax = "proto3"; + +package bilibili.dynamic.interfaces.feed.v1; + +import "bilibili/dynamic/common.proto"; + +// +service Feed { + // + rpc AddDynamicReport (AddDynamicReportReq) returns (AddDynamicReportRsp); + // + rpc ArticleHomePageCategories (ArticleHomePageCategoriesReq) returns (ArticleHomePageCategoriesRsp); + // + rpc AtList (bilibili.dynamic.common.AtListReq) returns (bilibili.dynamic.common.AtListRsp); + // + rpc AtSearch (bilibili.dynamic.common.AtSearchReq) returns (bilibili.dynamic.common.AtListRsp); + // + rpc AttachCardButton (AttachCardButtonReq) returns (AttachCardButtonRsp); + // + rpc Config (ConfigReq) returns (ConfigRsp); + // + rpc CreateDyn (CreateDynReq) returns (bilibili.dynamic.common.CreateResp); + // + rpc CreateInitCheck (CreateInitCheckReq) returns (bilibili.dynamic.common.CreateCheckResp); + // + rpc CreateOpus (CreateOpusReq) returns (bilibili.dynamic.common.CreateResp); + // + rpc CreatePageInfos (CreatePageInfosReq) returns (CreatePageInfosRsp); + // + rpc CreatePermissionButtonClick (CreatePermissionButtonClickReq) returns (CreatePermissionButtonClickRsp); + // + rpc CreatePlusButtonClick (CreatePlusButtonClickReq) returns (CreatePlusButtonClickRsp); + // + rpc DynMetricsActiveReport (DynMetricsActiveReportReq) returns (DynMetricsActiveReportRsp); + // + rpc DynPrivatePubSetting (DynPrivatePubSettingReq) returns (DynPrivatePubSettingRsp); + // + rpc DynamicButtonClick (DynamicButtonClickReq) returns (DynamicButtonClickRsp); + // + rpc DynamicRepost (DynamicRepostReq) returns (bilibili.dynamic.common.CreateResp); + // + rpc DynamicThumb (DynamicThumbReq) returns (DynamicThumbRsp); + // + rpc EditDyn (EditDynReq) returns (EditDynRsp); + // + rpc GetEditDynInfo (GetEditDynInfoReq) returns (GetEditDynInfoRsp); + // + rpc GetEditDynInfoWeb (GetEditDynInfoWebReq) returns (GetEditDynInfoWebRsp); + // + rpc GetUidByName (bilibili.dynamic.common.GetUidByNameReq) returns (bilibili.dynamic.common.GetUidByNameRsp); + // + rpc GoodsAttachCardPreview (GoodsAttachCardPreviewReq) returns (GoodsAttachCardPreviewRsp); + // + rpc HomeBubbleReport (HomeBubbleReportReq) returns (HomeBubbleReportRsp); + // + rpc HotSearch (HotSearchReq) returns (HotSearchRsp); + // + rpc ICreateGoodsReplySync (ICreateGoodsReplySyncReq) returns (ICreateResp); + // + rpc NearbyPoiList (NearbyPoiListReq) returns (NearbyPoiListRsp); + // + rpc RecommendPoi (RecommendPoiReq) returns (RecommendPoiRsp); + // + rpc ReserveButtonClick (ReserveButtonClickReq) returns (ReserveButtonClickResp); + // + rpc RmDyn (RmDynReq) returns (RmDynRsp); + // + rpc RmSpaceTop (RmSpaceTopReq) returns (RmSpaceTopRsp); + // + rpc SearchPoiList (SearchPoiListReq) returns (SearchPoiListRsp); + // + rpc SetSpaceTop (SetSpaceTopReq) returns (SetSpaceTopRsp); + // + rpc SubmitCheck (SubmitCheckReq) returns (SubmitCheckRsp); + // + rpc Suggest (SuggestReq) returns (SuggestRsp); +} + +// +message ActiveReportMessage { + // + enum ReportAction { + // + REPORT_ACTION_NONE = 0; + // + REPORT_ACTION_EXPOSURE = 1; + // + REPORT_ACTION_CLICK = 2; + } + + // + ActiveReportMessage.ReportAction action = 1; + // + string metric_data = 2; +} + +// +message AdInfoDetail { + // + string nation = 1; + // + string province = 2; + // + string city = 3; + // + string district = 4; +} + +// +message AddDynamicReportReq { + // + int64 accused_uid = 1; + // + string dynamic_id = 2; + // + int64 reason_type = 3; + // + string reason_desc = 4; +} + +// +message AddDynamicReportRsp { +} + +// +message ArticleHomePageCategoriesReq { +} + +// +message ArticleHomePageCategoriesRsp { + // + repeated Category categories = 1; +} + +// +message AttachCardButtonReq { + // + int32 cur_btn_status = 1; + // + int64 dynamic_id = 2; + // + bilibili.dynamic.common.AttachCardType attach_card_type = 3; + // + string spm_id = 4; + // + int64 reserve_total = 5; + // + string dynamic_id_str = 6; + // + string card_type = 7; + // + string card_biz_id = 8; + // + bilibili.dynamic.common.OpusBizType opus_biz_type = 9; +} + +// +message AttachCardButtonRsp { + // + int32 final_btn_status = 1; + // + string toast = 2; + // + string desc_update = 3; + // + int64 reserve_update = 4; +} + +// +message Category { + // + int64 id = 1; + // + int64 parent_id = 2; + // + string name = 3; + // + int64 position = 4; + // + repeated Category children = 5; + // + string banner_url = 6; +} + +// +message ConfigAB { + // + ConfigABEntry entry = 1; + // + int64 value = 2; +} + +// +enum ConfigABEntry { + // + CONFIG_AB_ENTRY_NONE = 0; + // + CONFIG_AB_ENTRY_PUB_PAGE_TITLE = 1; + // + CONFIG_AB_ENTRY_SELECT_PIC_PANEL = 2; + // + CONFIG_AB_BIG_PLUS_PUB_ARTICLE = 3; + // + CONFIG_AB_LIVE_PHOTO = 4; +} + +// +message ConfigReq { +} + +// +message ConfigRsp { + // + repeated ConfigAB ab_entries = 1; + // + MaxPicCountType max_pic_count_type = 2; + // + string article_loading_address = 3; +} + +// +message CreateDynReq { + // + bilibili.dynamic.common.UserCreateMeta meta = 1; + // + bilibili.dynamic.common.CreateContent content = 2; + // + bilibili.dynamic.common.CreateScene scene = 3; + // + repeated bilibili.dynamic.common.CreatePic pics = 4; + // + bilibili.dynamic.common.DynIdentity repost_src = 5; + // + bilibili.dynamic.common.CreateDynVideo video = 6; + // + int64 sketch_type = 7; + // + bilibili.dynamic.common.Sketch sketch = 8; + // + bilibili.dynamic.common.Program program = 9; + // + bilibili.dynamic.common.CreateTag dyn_tag = 10; + // + bilibili.dynamic.common.CreateAttachCard attach_card = 11; + // + bilibili.dynamic.common.CreateOption option = 12; + // + bilibili.dynamic.common.CreateTopic topic = 13; + // + string upload_id = 14; + // + bilibili.dynamic.common.CreateExtraInfo extra_info = 15; +} + +// +message CreateInitCheckReq { + // + bilibili.dynamic.common.CreateInitCheckScene scene = 1; + // + bilibili.dynamic.common.MetaDataCtrl meta = 2; + // + bilibili.dynamic.common.RepostInitCheck repost = 3; +} + +// +message CreateOpusReq { + // + bilibili.dynamic.common.UserCreateMeta meta = 1; + // + bilibili.dynamic.common.Opus opus = 2; + // + bilibili.dynamic.common.CreateScene scene = 3; + // + bilibili.dynamic.common.CreateOption option = 4; + // + string upload_id = 7; + // + bilibili.dynamic.common.DynIdentity repost_src = 8; +} + +// +message CreatePageCommercialInfo { + // + string label_text = 1; + // + string desc = 2; + // + bool valid = 3; + // + int64 commercial_entity_type = 4; + // + int64 commercial_entity_id = 5; + // + bool editable = 6; +} + +// +message CreatePageInfosReq { + // + int64 topic_id = 1; + // + int64 commercial_entity_type = 2; + // + int64 commercial_entity_id = 3; + // + bilibili.dynamic.common.CreateScene scene = 4; + // + repeated bilibili.dynamic.common.GoodsContent goods = 5; +} + +// +message CreatePageInfosRsp { + // + CreatePageTopicInfo topic = 1; + // + CreatePageCommercialInfo commercial = 2; + // + repeated GoodsItem goods = 3; +} + +// +message CreatePageTopicInfo { + // + int64 topic_id = 1; + // + string topic_name = 2; + // + string hint = 3; +} + +// +message CreatePermissionButtonClickReq { + // + bilibili.dynamic.common.UpPermissionType type = 1; +} + +// +message CreatePermissionButtonClickRsp { +} + +// +message CreatePlusButtonClickReq { +} + +// +message CreatePlusButtonClickRsp { +} + +// +message DynMetricsActiveReportReq { + // + repeated ActiveReportMessage report_metrics = 1; +} + +// +message DynMetricsActiveReportRsp { +} + +// +message DynPrivatePubSettingReq { + // + string object_id = 1; + // + string action = 2; +} + +// +message DynPrivatePubSettingRsp { + // + string toast = 1; +} + +// +enum DynamicButtonClickBizType { + // + DYNAMIC_BUTTON_CLICK_BIZ_TYPE_NONE = 0; + // + DYNAMIC_BUTTON_CLICK_BIZ_TYPE_LIVE = 1; + // + DYNAMIC_BUTTON_CLICK_BIZ_TYPE_DYN_UP = 2; +} + +// +message DynamicButtonClickReq { + // + repeated int32 biz_type = 1; +} + +// +message DynamicButtonClickRsp { +} + +// +message DynamicRepostReq { + // + int64 uid = 1; + // + bilibili.dynamic.common.CreateContent content = 2; + // + bilibili.dynamic.common.DynIdentity repost_src = 3; + // + bilibili.dynamic.common.CreateOption option = 4; + // + bilibili.dynamic.common.CreateTopic topic = 5; + // + string upload_id = 6; +} + +// +message DynamicThumbReq { + // + int64 uid = 1; + // + int64 dyn_id = 2; + // + int64 type = 3; + // + int64 rid = 4; + // + int64 spec_type = 5; + // + int64 up = 6; + // + string from = 7; + // + string dyn_id_str = 8; + // + string spmid = 9; + // + string from_spmid = 10; + // + string action_id = 11; +} + +// +message DynamicThumbRsp { +} + +// +message EditDynReq { + // + int64 dyn_id = 1; + // + bilibili.dynamic.common.CreateScene scene = 2; + // + bilibili.dynamic.common.UserCreateMeta meta = 3; + // + bilibili.dynamic.common.CreateContent content = 4; + // + repeated bilibili.dynamic.common.CreatePic pics = 5; + // + bilibili.dynamic.common.DynIdentity repost_src = 6; + // + bilibili.dynamic.common.CreateTag dyn_tag = 7; + // + bilibili.dynamic.common.CreateAttachCard attach_card = 8; + // + bilibili.dynamic.common.CreateOption option = 9; + // + bilibili.dynamic.common.CreateTopic topic = 10; + // + string upload_id = 11; +} + +// +message EditDynRsp { + // + int64 state = 1; + // + string totast = 2; +} + +// +message GetEditDynInfoReq { + // + int64 dyn_id = 1; + // + bilibili.dynamic.common.CreateInitCheckScene scene = 2; + // + bilibili.dynamic.common.MetaDataCtrl meta = 3; + // + bilibili.dynamic.common.RepostInitCheck repost = 4; +} + +// +message GetEditDynInfoRsp { + // + repeated bilibili.dynamic.common.CreatePic pics = 1; + // + int64 orig_dyn_id = 2; + // + int64 pre_dyn_id = 3; + // + repeated CreatePageTopicInfo topic_infos = 4; + // + bilibili.dynamic.common.CreateAttachCard attach_card = 5; + // + bilibili.dynamic.common.PublishSetting setting = 6; + // + bilibili.dynamic.common.UpPermission permission = 7; + // + bilibili.dynamic.common.ShareChannel share_info = 8; + // + bilibili.dynamic.common.PublishYellowBar yellow_bar = 9; + // + bilibili.dynamic.common.PlusRedDot plus_red_dot = 10; + // + int64 only_fans = 11; + // + string edit_alert_msg = 12; + // + int64 remain_edit_times = 13; + // + CreatePageCommercialInfo commercial = 14; + // + int64 dyn_type = 17; +} + +// +message GetEditDynInfoWebReq { + // + string dyn_id = 1; + // + bilibili.dynamic.common.CreateInitCheckScene scene = 2; + // + bilibili.dynamic.common.MetaDataCtrl meta = 3; +} + +// +message GetEditDynInfoWebRsp { + // + bilibili.dynamic.common.PublishWebSettings settings = 1; + // + bilibili.dynamic.common.PermissionsWeb permissions = 2; + // + bilibili.dynamic.common.CreateAttachCard attach_card = 3; + // + CreatePageCommercialInfo commercial = 4; + // + int64 only_fans = 5; + // + string edit_alert_msg = 6; + // + int64 remain_edit_times = 7; + // + string orig_dyn_id_str = 8; + // + string pre_dyn_id_str = 9; +} + +// +message GoodsAttachCardPreviewReq { + // + repeated int64 item_ids = 1; + // + int64 dyn_id = 2; + // + int64 mid = 3; + // + bilibili.dynamic.common.MetaDataCtrl meta = 4; +} + +// +message GoodsAttachCardPreviewRsp { + // + map goods = 1; +} + +// +message GoodsItem { + // + int64 items_id = 1; + // + string name = 2; + // + string brief = 3; + // + string img = 4; + // + float price = 5; + // + string price_str = 6; + // + string icon_name = 7; + // + string icon_url = 8; + // + string jump_link = 9; + // + string jump_link_desc = 10; + // + int64 act_id = 11; + // + int64 act_mid = 12; +} + +// +message HomeBubbleReportReq { + // + string track_id = 1; +} + +// +message HomeBubbleReportRsp { +} + +// +message HotSearchReq { +} + +// +message HotSearchRsp { + // + message Item { + // + string words = 1; + } + + // + repeated HotSearchRsp.Item items = 1; + // + string version = 2; +} + +// +message ICreateGoodsReplySyncReq { + // + int64 uid = 1; + // + int64 goods_id = 2; + // + bilibili.dynamic.common.CreateContent content = 3; + // + bilibili.dynamic.common.CreateScene scene = 4; + // + repeated bilibili.dynamic.common.CreatePic pics = 5; +} + +// +message ICreateResp { + // + int64 dyn_id = 1; + // + int64 dyn_type = 2; + // + int64 dyn_rid = 3; +} + +// +message LbsLocation { + // + double lat = 1; + // + double lng = 2; +} + +// +enum MaxPicCountType { + // + MAX_PIC_COUNT_NINE = 0; + // + MAX_PIC_COUNT_EIGHTEEN = 1; +} + +// +message NearbyPoiDetail { + // + LbsLocation location = 1; + // + POI_TYPE type = 2; + // + string poi = 3; + // + string address = 4; + // + string title = 5; + // + string show_title = 6; + // + double distance = 7; + // + string show_distance = 8; + // + AdInfoDetail ad_info = 9; + // + repeated PoiId ancestors = 10; +} + +// +message NearbyPoiListItem { + // + NearbyPoiDetail poi_info = 1; + // + int32 user_count = 2; +} + +// +message NearbyPoiListReq { + // + double lat = 1; + // + double lng = 2; + // + int32 page = 3; + // + int32 page_size = 4; +} + +// +message NearbyPoiListRsp { + // + bool has_more = 1; + // + repeated NearbyPoiListItem pois = 2; +} + +// +enum POI_TYPE { + // + TENCENT = 0; + // + CITY = 1; + // + NATION = 2; + // + BILI = 3; +} + +// +message PoiDetail { + // + LbsLocation location = 1; + // + POI_TYPE type = 2; + // + string poi = 3; + // + string address = 4; + // + string title = 5; + // + string show_title = 6; + // + double distance = 7; + // + string show_distance = 8; + // + AdInfoDetail ad_info = 9; + // + PoiId ancestors = 10; +} + +// +message PoiId { + // + string poi = 1; + // + int32 type = 2; +} + +// +message PoiListItem { + // + PoiDetail poi_info = 1; + // + int32 user_count = 2; +} + +// +message RecommendPoiReq { + // + double lat = 1; + // + double lng = 2; +} + +// +message RecommendPoiRsp { + // + NearbyPoiDetail poi = 1; + // + NearbyPoiDetail parent_poi = 2; +} + +// +message ReserveButtonClickReq { + // + int64 uid = 1; + // + int64 reserve_id = 2; + // + int64 reserve_total = 3; + // + ReserveButtonStatus cur_btn_status = 4; + // + string spmid = 5; + // + int64 dyn_id = 6; + // + int64 dyn_type = 7; +} + +// +message ReserveButtonClickResp { + // + ReserveButtonStatus final_btn_status = 1; + // + ReserveButtonMode btn_mode = 2; + // + int64 reserve_update = 3; + // + string desc_update = 4; + // + bool has_activity = 5; + // + string activity_url = 6; + // + string toast = 7; + // + ReserveCalendarInfo reserve_calendar_info = 8; +} + +// +enum ReserveButtonMode { + // + RESERVE_BUTTON_MODE_NONE = 0; + // + RESERVE_BUTTON_MODE_RESERVE = 1; + // + RESERVE_BUTTON_MODE_UP_CANCEL = 2; +} + +// +enum ReserveButtonStatus { + // + RESERVE_BUTTON_STATUS_NONE = 0; + // + RESERVE_BUTTON_STATUS_UNCHECK = 1; + // + RESERVE_BUTTON_STATUS_CHECK = 2; +} + +// +message ReserveCalendarInfo { + // + string title = 1; + // + int64 start_ts = 2; + // + int64 end_ts = 3; + // + string description = 4; + // + string bussiness_id = 5; + // + string url = 6; +} + +// +message RmDynReq { + // + int64 dyn_id = 1; + // + string dyn_id_str = 2; + // + int64 dyn_type = 3; + // + string rid_str = 4; +} + +// +message RmDynRsp { +} + +// +message RmSpaceTopReq { + // + int64 dyn_id = 1; + // + int32 teenagers_mode = 2; +} + +// +message RmSpaceTopRsp { +} + +// +message SearchPoiListReq { + // + double lat = 1; + // + double lng = 2; + // + int32 page = 3; + // + int32 page_size = 4; + // + string keyword = 5; +} + +// +message SearchPoiListRsp { + // + bool has_more = 1; + // + repeated PoiListItem pois = 2; +} + +// +message SetSpaceTopReq { + // + int64 dyn_id = 1; + // + int32 teenagers_mode = 2; +} + +// +message SetSpaceTopRsp { +} + +// +message SubmitCheckReq { + // + bilibili.dynamic.common.CreateContent content = 1; + // + repeated bilibili.dynamic.common.CreatePic pics = 2; + // + bilibili.dynamic.common.CreateAttachCard attach_card = 3; + // + bilibili.dynamic.common.CreateScene scene = 4; + // + bilibili.dynamic.common.CreateOption create_option = 5; + // + bilibili.dynamic.common.Opus opus = 6; + // + string dyn_id_str = 7; +} + +// +message SubmitCheckRsp { +} + +// +message SuggestReq { + // + string s = 1; + // + int32 type = 2; +} + +// +message SuggestRsp { + // + repeated string list = 1; + // + string track_id = 2; + // + string version = 3; +} + diff --git a/proto/bilibili/dynamic/interfaces/vote/v1.proto b/proto/bilibili/dynamic/interfaces/vote/v1.proto new file mode 100644 index 0000000..fbeb200 --- /dev/null +++ b/proto/bilibili/dynamic/interfaces/vote/v1.proto @@ -0,0 +1,112 @@ +syntax = "proto3"; + +package bilibili.dynamic.interfaces.vote.v1; + +// +service Vote { + // + rpc NewDoVote (NewDoVoteReq) returns (NewDoVoteRsp); +} + +// +message NewDoVoteReq { + // + int64 vote_id = 1; + // + repeated int32 votes = 2; + // + int32 status = 3; + // + int64 dynamic_id = 4; + // + int64 op_bit = 5; +} + +// +message NewDoVoteRsp { + // + int64 uid = 1; + // + int32 type = 2; + // + VoteInfo vote_info = 3; +} + +// +message VoteBizInfo { + // + int64 biz_id = 1; + // + int32 biz_type = 2; + // + string biz_ext = 3; +} + +// +message VoteInfo { + // + int64 vote_id = 1; + // + string title = 2; + // + string desc = 3; + // + int64 join_num = 4; + // + int32 type = 5; + // + int32 choice_cnt = 6; + // + int64 end_time = 7; + // + int32 status = 8; + // + int64 vote_publisher = 9; + // + int32 default_share = 10; + // + int64 ctime = 11; + // + int32 biz_type = 12; + // + string img_url = 13; + // + repeated int32 my_votes = 14; + // + repeated VoteOptionInfo options = 15; + // + int32 options_cnt = 16; + // + int64 start_time = 17; + // + int64 voter_uid = 18; + // + int32 voter_level = 19; + // + int64 duration = 20; + // + repeated VoteBizInfo vote_biz_info = 21; + // + string face = 22; + // + string name = 23; + // + int64 only_fans_level = 24; +} + +// +message VoteOptionInfo { + // + int32 opt_idx = 1; + // + string opt_desc = 2; + // + string img_url = 3; + // + int32 cnt = 4; + // + string btn_str = 5; + // + string title = 6; +} + diff --git a/proto/bilibili/gaia/gw.proto b/proto/bilibili/gaia/gw.proto new file mode 100644 index 0000000..c9edb40 --- /dev/null +++ b/proto/bilibili/gaia/gw.proto @@ -0,0 +1,126 @@ +syntax = "proto3"; + +package bilibili.gaia.gw; + +import "google/protobuf/empty.proto"; + +// +service Gaia { + // + rpc ExClimbAppleTrees (GaiaEncryptMsgReq) returns (UploadAppListReply); + // + rpc ExFetchPublicKey (google.protobuf.Empty) returns (FetchPublicKeyReply); + // + rpc ExGetAxe (google.protobuf.Empty) returns (FetchPublicKeyReply); + // + rpc ExUploadAppList (GaiaEncryptMsgReq) returns (UploadAppListReply); +} + +// +message DeviceAppList { + // + string source = 1; + // + repeated string system_app_list = 2; + // + repeated string user_app_list = 3; +} + +// +enum EncryptType { + // + INVALID_ENCRYPT_TYPE = 0; + // + CLIENT_AES = 1; + // + SERVER_RSA_AES = 2; +} + +// +message FetchPublicKeyReply { + // + string version = 1; + // + string public_key = 2; + // + int64 deadline = 3; +} + +// +message GaiaDeviceBasicInfo { + // + string platform = 1; + // + string device = 2; + // + string mobi_app = 3; + // + string origin = 4; + // + string app_id = 5; + // + string sdkver = 6; + // + string app_version = 7; + // + string app_version_code = 8; + // + string build = 9; + // + string channel = 10; + // + string brand = 11; + // + string model = 12; + // + string osver = 13; + // + string user_agent = 14; + // + string buvid_local = 15; + // + string buvid = 16; + // + string mid = 17; + // + int64 fts = 18; + // + int32 first = 19; + // + string network = 20; +} + +// +message GaiaEncryptMsgReq { + // + GaiaMsgHeader header = 1; + // + bytes encrypt_payload = 2; +} + +// +message GaiaMsgHeader { + // + EncryptType encode_type = 1; + // + PayloadType payload_type = 2; + // + bytes encoded_aes_key = 3; + // + int64 ts = 4; +} + +// +enum PayloadType { + // + INVALID_PAYLOAD = 0; + // + DEVICE_APP_LIST = 1; +} + +// +message UploadAppListReply { + // + string trace_id = 1; +} + diff --git a/proto/bilibili/im/customer/independent.proto b/proto/bilibili/im/customer/independent.proto new file mode 100644 index 0000000..dab3203 --- /dev/null +++ b/proto/bilibili/im/customer/independent.proto @@ -0,0 +1,74 @@ +syntax = "proto3"; + +package bilibili.im.customer.independent; + +import "bilibili/app/dynamic/v2.proto"; + +// +enum EvaluateType { + // + EvaluateMachineMsg = 0; + // + EvaluateCustomer = 1; + // + EvaluateCustomerInvited = 2; +} + +// +message EvaluationShowInfo { + // + bool show = 1; + // + EvaluateType type = 2; + // + repeated EvaluationStepSelect step_select = 3; + // + int64 msg_key = 4; + // + bool up = 5; + // + string feedback = 6; + // + int64 customer_sess_id = 7; + // + bool done = 8; + // + string editor_input = 9; +} + +// +message EvaluationStepSelect { + // + string text = 1; + // + Select select = 2; +} + +// +message FinishParagraphsRenderStopPos { + // + int64 para = 1; + // + int64 node = 2; +} + +// +message MsgParagraphText { + // + repeated bilibili.app.dynamic.v2.Paragraph paragraphs = 1; + // + EvaluationShowInfo evaluation = 2; + // + FinishParagraphsRenderStopPos stop_pos = 3; +} + +// +enum Select { + // + ABLE = 0; + // + SELECTED = 1; + // + UNABLE = 2; +} + diff --git a/proto/bilibili/im/customer/interfaces.proto b/proto/bilibili/im/customer/interfaces.proto new file mode 100644 index 0000000..4edd905 --- /dev/null +++ b/proto/bilibili/im/customer/interfaces.proto @@ -0,0 +1,398 @@ +syntax = "proto3"; + +package bilibili.im.customer.interfaces; + +import "bilibili/im/customer/model.proto"; + +// +service CustomerInterface { + // + rpc CustomerPreEvaluate (PreEvaluateReq) returns (PreEvaluateRsp); + // + rpc CustomerUpdateAck (UpdateAckReq) returns (Empty); + // + rpc CustomerWindowOptions (WindowOptionsReq) returns (WindowOptionsRsp); + // + rpc FinishParagraphsRender (FinishParagraphsRenderReq) returns (FinishParagraphsRenderRsp); + // + rpc GetCustomerSessDetail (GetSessDetailReq) returns (GetSessDetailRsp); + // + rpc GetCustomerSessions (GetSessionsReq) returns (SessionsRsp); + // + rpc GetNewCustomerSessions (GetNewSessionsReq) returns (SessionsRsp); + // + rpc GetShopCfg (ShopCfgReq) returns (ShopCfgRsp); + // + rpc GetShopInfo (ShopInfoReq) returns (ShopInfoRsp); + // + rpc GetUserSettings (GetUserSettingsReq) returns (GetUserSettingsRsp); + // + rpc HeartBeat (SendHeartBeatReq) returns (Empty); + // + rpc OutCustomerQueue (OutCustomerQueueReq) returns (Empty); + // + rpc PopResultUpdate (PopResultUpdateReq) returns (PopResultUpdateRsp); + // + rpc RemoveSession (RemoveSessionReq) returns (Empty); + // + rpc SendCustomerMsg (SendMsgReq) returns (SendMsgRsp); + // + rpc SetTop (SetTopReq) returns (Empty); + // + rpc SetUserSettings (SetUserSettingsReq) returns (SetUserSettingsRsp); + // + rpc SyncFetchCustomerSessionMsgs (SessionMsgReq) returns (SessionMsgRsp); +} + +// +message AiInfo { + // + string name = 1; + // + string pic_url = 2; + // + repeated string tags = 3; +} + +// +message Announcement { + // + bool enable = 1; + // + string content = 2; + // + bool jump_enable = 3; + // + string jump_url = 4; +} + +// +message Empty { +} + +// +message FinishParagraphsRenderReq { + // + int64 msg_key = 1; + // + int64 status = 2; + // + FinishParagraphsRenderStopPos stop_pos = 3; +} + +// +message FinishParagraphsRenderRsp { +} + +// +message FinishParagraphsRenderStopPos { + // + int64 para = 1; + // + int64 node = 2; +} + +// +message GetNewSessionsReq { + // + int64 begin_ts = 1; + // + int32 size = 2; + // + int64 recv_uid = 3; +} + +// +message GetSessDetailReq { + // + repeated Shop shop = 1; + // + int64 group_id = 2; +} + +// +message GetSessDetailRsp { + // + repeated bilibili.im.customer.model.SessionInfo session_list = 1; +} + +// +message GetSessionsReq { + // + int64 begin_ts = 1; + // + int64 end_ts = 2; + // + int32 size = 3; +} + +// +message GetUserSettingsReq { + // + int64 shop_father_id = 1; + // + int64 shop_id = 2; +} + +// +message GetUserSettingsRsp { + // + bool enable_initiative_msg = 1; + // + bool do_not_disturb = 2; + // + string report_url = 3; +} + +// +message OutCustomerQueueReq { + // + int64 shop_father_id = 1; + // + int64 shop_id = 2; + // + int64 msg_key = 3; +} + +// +message PopResultUpdateReq { + // + bilibili.im.customer.model.ComplianceAlertType pop_field = 1; + // + bool is_allow = 2; +} + +// +message PopResultUpdateRsp { + // + string msg = 1; +} + +// +message PreEvaluateReq { + // + bilibili.im.customer.model.EvaluateType type = 1; + // + int64 shop_father_id = 2; + // + int64 shop_id = 3; + // + int64 msg_key = 4; +} + +// +message PreEvaluateRsp { + // + bilibili.im.customer.model.EvaluationShowInfo rsp = 1; +} + +// +message RemoveSessionReq { + // + int64 talker_id = 1; + // + int64 shop_id = 2; + // + int64 shop_father_id = 3; + // + int32 session_type = 4; +} + +// +message SendHeartBeatReq { + // + int64 shop_id = 1; + // + int64 shop_father_id = 2; +} + +// +message SendMsgExt { + // + int64 source_up = 1; + // + string source_bvid = 2; + // + string cm_from_track_id = 3; + // + string from_spmid = 4; + // + string client_token = 5; +} + +// +message SendMsgReq { + // + bilibili.im.customer.model.Msg msg = 1; + // + int64 skill_group_id = 2; + // + SendMsgExt ext = 3; +} + +// +message SendMsgRsp { + // + int64 msg_key = 1; + // + string msg_content = 2; + // + repeated bilibili.im.customer.model.EmotionInfo e_infos = 3; + // + AiInfo ai_info = 4; +} + +// +message SessionMsgReq { + // + int64 shop_father_id = 1; + // + int64 shop_id = 2; + // + int64 begin_seqno = 3; + // + int64 end_seqno = 4; + // + int32 size = 5; + // + int32 order = 6; + // + string dev_id = 7; + // + int32 situation = 8; + // + int32 gid = 9; + // + SessionMsgReqExt ext = 10; +} + +// +message SessionMsgReqExt { + // + int64 source_up = 1; + // + string source_bvid = 2; +} + +// +message SessionMsgRsp { + // + repeated bilibili.im.customer.model.Msg messages = 1; + // + int32 has_more = 2; + // + int64 min_seqno = 3; + // + int64 max_seqno = 4; + // + repeated bilibili.im.customer.model.EmotionInfo e_infos = 5; + // + int32 fetch_interval = 6; +} + +// +message SessionsRsp { + // + repeated bilibili.im.customer.model.SessionInfo session_list = 1; + // + int32 has_more = 2; +} + +// +message SetTopReq { + // + int64 talker_id = 1; + // + int64 shop_id = 2; + // + int64 shop_father_id = 3; + // + int32 session_type = 4; +} + +// +message SetUserSettingsReq { + // + int64 shop_father_id = 1; + // + int64 shop_id = 2; + // + bool enable_initiative_msg = 3; + // + bool do_not_disturb = 4; +} + +// +message SetUserSettingsRsp { + // + string msg = 1; +} + +// +message Shop { + // + int64 shop_father_id = 1; + // + int64 shop_id = 2; +} + +// +message ShopCfgReq { + // + int64 shop_id = 1; + // + int64 shop_father_id = 2; +} + +// +message ShopCfgRsp { + // + Announcement announcement = 1; +} + +// +message ShopInfoReq { + // + int64 shop_id = 1; + // + int64 shop_father_id = 2; +} + +// +message ShopInfoRsp { + // + string name = 1; + // + string face = 2; +} + +// +message UpdateAckReq { + // + int64 shop_father_id = 1; + // + int64 shop_id = 2; +} + +// +message WindowOptionsReq { + // + int64 shop_father_id = 2; + // + int64 shop_id = 3; +} + +// +message WindowOptionsRsp { + // + bilibili.im.customer.model.WindowOptionGoods goods = 1; + // + bilibili.im.customer.model.WindowOptionOrder order = 2; + // + bilibili.im.customer.model.WindowOptionEvaluation evaluation = 3; + // + bilibili.im.customer.model.WindowOptionMessage message = 4; + // + bilibili.im.customer.model.WindowOptionHistory history = 5; +} + diff --git a/proto/bilibili/im/customer/model.proto b/proto/bilibili/im/customer/model.proto new file mode 100644 index 0000000..b0909a2 --- /dev/null +++ b/proto/bilibili/im/customer/model.proto @@ -0,0 +1,540 @@ +syntax = "proto3"; + +package bilibili.im.customer.model; + +// +message BindNote { + // + string content = 1; + // + string high_color = 2; + // + string color = 3; +} + +// +message Business { + // + int64 business_id = 1; + // + string business_name = 2; + // + Select select = 3; +} + +// +enum ComplianceAlertType { + // + None = 0; + // + AIModel = 1; +} + +// +message ComplianceDescribe { + // + string text = 1; + // + bool is_link = 2; + // + string link = 3; +} + +// +message ComplianceModel { + // + ComplianceAlertType pop_field = 1; + // + string title = 2; + // + repeated ComplianceDescribe describes = 3; + // + string confirm_text = 4; + // + string cancel_text = 5; +} + +// +message CustomerInfo { + // + int64 customer_id = 1; + // + string customer_name = 2; + // + CustomerRankStatus customer_state = 3; + // + int64 queue_rank = 4; + // + int32 is_cancel = 5; + // + MsgSpLitAnsCustomer pre_customer = 6; + // + string customer_state_desc = 7; +} + +// +enum CustomerRankStatus { + // + OFFLINE = 0; + // + CROWD = 1; + // + ONLINE = 2; + // + SWITCH_ONLINE = 3; + // + RANKING = 4; + // + SWITCH_RANKING = 5; + // + OUT_CUSTOMER_QUEUE = 6; + // + OUT_CUSTOMER_QUEUE_WITH_MESSAGE = 7; + // + OUT_WORK = 8; + // + CUSTOMER_INVITE = 9; + // + WORK_BATCH_STOP_RANK = 10; + // + FORCE_SWITCH_CUSTOMER = 11; + // + RANKING_ONLY = 12; + // + NO_CUSTOMER_ONLY = 13; + // + OFFLINE_PROCESS = 14; +} + +// +message EmotionInfo { + // + string text = 1; + // + string url = 2; + // + int32 size = 3; + // + string gif_url = 4; +} + +// +enum EvaluateType { + // + EvaluateMachineMsg = 0; + // + EvaluateCustomer = 1; + // + EvaluateCustomerInvited = 2; + // + EvaluatePanelMsg = 3; + // + EvaluateMachineSess = 4; + // + EvaluateMachineSessInvited = 5; +} + +// +message EvaluationShowInfo { + // + bool show = 1; + // + EvaluateType type = 2; + // + repeated EvaluationStepSelect step_select = 3; + // + int64 msg_key = 4; + // + bool up = 5; + // + string feedback = 6; + // + int64 customer_sess_id = 7; + // + bool done = 8; + // + string editor_input = 9; + // + int64 step_msg_key = 10; + // + int64 machine_sess_id = 11; +} + +// +message EvaluationStepSelect { + // + string text = 1; + // + Select select = 2; +} + +// +message Group { + // + int64 group_id = 1; + // + string group_name = 2; + // + Select select = 3; +} + +// +message Msg { + // + TalkerInfo sender_info = 1; + // + TalkerInfo receiver_info = 2; + // + MsgType msg_type = 3; + // + string content = 4; + // + int64 timestamp = 5; + // + int64 msg_key = 6; + // + int32 msg_status = 7; + // + MsgSource msg_source = 8; + // + string dev_id = 9; + // + int64 seq_no = 10; + // + int32 situation = 11; + // + BindNote bind_note = 12; + // + bool is_ai = 13; + // + repeated int64 ai_link_msg = 14; +} + +// +enum MsgSource { + // + INVALID = 0; + // + IOS = 1; + // + ANDROID = 2; + // + IPAD = 3; + // + ANDROID_HD = 4; + // + PC_APP = 5; + // + WEB = 6; + // + Biz = 7; + // + ThirdShopStage = 8; + // + AI = 9; +} + +// +message MsgSpLitA { + // + SplitAnsMsgContentType type = 1; + // + repeated Business business_list = 2; + // + repeated Group group_list = 3; + // + CustomerInfo customer_info = 4; +} + +// +message MsgSpLitAnsCustomer { + // + int64 customer_id = 1; + // + string customer_name = 2; +} + +// +enum MsgType { + // + MSG_TYPE_INVALID = 0; + // + MSG_TYPE_TEXT = 1; + // + MSG_TYPE_IMG = 2; + // + MSG_TYPE_WITHDRAW = 5; + // + MSG_TYPE_FAV_EMOJI = 6; + // + MSG_TYPE_SHARE = 7; + // + MSG_TYPE_VIDEO = 17; + // + MSG_TYPE_ORDER = 10001; + // + MSG_TYPE_GOODS = 10002; + // + MSG_TYPE_EVALUATION = 10003; + // + MSG_TYPE_MESSAGE = 10004; + // + MSG_TYPE_MACHINE_A = 10005; + // + MSG_TYPE_MACHINE_Q = 10006; + // + MSG_TYPE_CUSTOMER_COME = 10007; + // + MSG_TYPE_MACHINE_WELCOME_TEXT = 10008; + // + MSG_TYPE_MACHINE_WELCOME_QLIST = 10009; + // + MSG_TYPE_SPLIT_Q = 10010; + // + MSG_TYPE_SPLIT_A = 10011; + // + MSG_TYPE_SWITCH_CUSTOMER = 10012; + // + MSG_TYPE_CUSTOMER_INVITE_EVALUATION = 10013; + // + MSG_TYPE_OUT_CUSTOMER_QUEUE = 10014; + // + MSG_TYPE_OUT_CUSTOMER_SESS = 10015; + // + MSG_TYPE_MESSAGE_GUIDE = 10016; + // + MSG_TYPE_FORCE_SWITCH_CUSTOMER = 10017; + // + MSG_TYPE_CUSTOMER_INITIATIVE_MSG = 10018; + // + MSG_TYPE_SYS_NOTE = 10019; + // + MSG_TYPE_MACHINE_SESS_EVALUATION = 10020; + // + MSG_TYPE_PARAGRAPH_TEXT = 10021; + // + MSG_TYPE_BUSINESS_LINK = 10022; + // + MSG_TYPE_SYS_BAR = 10023; + // + MSG_TYPE_VIRTUAL_COME = 10024; + // + MSG_TYPE_CLOSE_VIRTUAL_COME = 10025; + // + MSG_TYPE_COMMENT_QUOTE = 10026; +} + +// +enum NotifyMsgType { + // + UN_USABLE = 0; + // + RANK_UPDATE = 400; + // + MSG_TALK = 401; + // + SUBMIT_WORK_ORDER_DRAFT = 402; +} + +// +enum Select { + // + ABLE = 0; + // + SELECTED = 1; + // + UNABLE = 2; +} + +// +message SessionInfo { + // + TalkerInfo talker_info = 1; + // + Msg last_msg = 2; + // + UnreadInfo unread_info = 3; + // + int64 ack_seqno = 4; + // + int64 ack_ts = 5; + // + int64 session_ts = 6; + // + int64 max_seqno = 7; + // + int32 status = 8; + // + string tag_icon = 9; + // + int32 top_set = 10; + // + string jump_url = 11; + // + bool do_not_disturb = 12; + // + string setting_page_schema = 13; + // + string setting_page_url = 14; + // + string tag_name = 15; + // + ComplianceModel compliance = 16; + // + bool is_hide_edit = 17; +} + +// +enum Situation { + // + Invalid = 0; + // + IM = 1; + // + ServiceCenter = 2; + // + Order = 3; + // + Push = 4; + // + Goods = 5; + // + VipMall = 6; + // + Else = 7; + // + Live = 8; + // + Space = 9; +} + +// +enum SplitAnsMsgContentType { + // + BUSINESS = 0; + // + GROUP = 1; + // + CUSTOM = 2; +} + +// +message TalkerInfo { + // + TalkerType type = 1; + // + int64 shop_father_id = 2; + // + int64 shop_id = 3; + // + int64 customer_id = 4; + // + int64 machine_session_id = 5; + // + string customer_session_id = 6; + // + int64 uid = 7; + // + string name = 8; + // + string pic_url = 9; + // + repeated string tags = 10; + // + string shop_homepage = 11; +} + +// +enum TalkerType { + // + MACHINE = 0; + // + CUSTOMER = 1; + // + SYS_NOTICE = 2; + // + USER = 3; +} + +// +message UnreadInfo { + // + int64 unread_count = 1; + // + int64 customer_unread_count = 2; + // + int64 machine_unread_count = 3; + // + int64 message_unread_count = 4; + // + int64 notice_unread_count = 5; +} + +// +message WindowOptionEvaluation { + // + string icon = 1; + // + string name = 2; + // + string jump_url = 3; + // + string title = 4; + // + int64 im_stat = 5; +} + +// +message WindowOptionGoods { + // + string icon = 1; + // + string name = 2; + // + string jump_url = 3; + // + string title = 4; +} + +// +message WindowOptionHistory { + // + string icon = 1; + // + string name = 2; + // + string jump_url = 3; + // + string title = 4; +} + +// +message WindowOptionMessage { + // + string icon = 1; + // + string name = 2; + // + string jump_url = 3; + // + string title = 4; + // + string sub_title = 5; + // + bool is_new_ticket = 6; + // + string new_ticket_jump_url = 7; +} + +// +message WindowOptionOrder { + // + string icon = 1; + // + string name = 2; + // + string jump_url = 3; + // + string title = 4; +} + diff --git a/proto/bilibili/im/gateway/interfaces/v1.proto b/proto/bilibili/im/gateway/interfaces/v1.proto new file mode 100644 index 0000000..88d6155 --- /dev/null +++ b/proto/bilibili/im/gateway/interfaces/v1.proto @@ -0,0 +1,816 @@ +syntax = "proto3"; + +package bilibili.im.gateway.interfaces.v1; + +import "bilibili/app/dynamic/v2.proto"; +import "bilibili/im/interfaces/v1.proto"; +import "bilibili/im/type.proto"; +import "google/protobuf/empty.proto"; + +// +service ImGatewayApi { + // + rpc ClearBubbleMsg (ClearBubbleMsgReq) returns (ClearBubbleMsgRsp); + // + rpc ClearMessageToast (ClearMessageToastReq) returns (google.protobuf.Empty); + // + rpc DelMsg (DelMsgReq) returns (DelMsgRsp); + // + rpc DelMsgCard (DelMsgCardReq) returns (google.protobuf.Empty); + // + rpc GetAIInfo (ReqGetAIInfo) returns (RspGetAIInfo); + // + rpc GetBubbleMsg (GetBubbleMsgReq) returns (GetBubbleMsgRsp); + // + rpc GetSessions (ReqGetSessions) returns (bilibili.im.interfaces.v1.RspSessions); + // + rpc GetSystemNotice (ReqGetSystemNotice) returns (RspGetSystemNotice); + // + rpc GetTotalUnread (GetTotalUnreadReq) returns (GetTotalUnreadRsp); + // + rpc HarmonyTotalUnread (GetTotalUnreadReq) returns (HarmonyTotalUnreadRsp); + // + rpc MessageToast (MessageToastReq) returns (MessageToastRsp); + // + rpc MsgFeedAction (MsgFeedActionReq) returns (MsgFeedActionRsp); + // + rpc MsgFeedMsgList (MsgListReq) returns (MsgListRsp); + // + rpc NewSessions (ReqNewSessions) returns (bilibili.im.interfaces.v1.RspSessions); + // + rpc Prompt (PromptReq) returns (PromptRsp); + // + rpc QuickLink (QuickLinkReq) returns (QuickLinkRsp); + // + rpc RemoveSession (ReqRemoveSession) returns (DummyRsp); + // + rpc SetMsgFeedNotice (SetMsgFeedNoticeReq) returns (google.protobuf.Empty); + // + rpc SetTop (ReqSetTop) returns (DummyRsp); + // + rpc SingleInbox (ReqSingleInbox) returns (RspSingleInbox); + // + rpc UpdateTotalUnread (google.protobuf.Empty) returns (google.protobuf.Empty); + // + rpc UpdateTotalUnreadV2 (bilibili.im.interfaces.v1.ReqUpdateTotalUnread) returns (google.protobuf.Empty); +} + +// +message AtBiz { + // + int64 subject_id = 1; + // + int64 root_id = 2; + // + int64 source_id = 3; + // + int64 target_id = 4; + // + string source_content = 5; + // + repeated User at_details = 6; + // + bool hide_reply_button = 7; +} + +// +message AtCard { + // + CommonMsgCard at_msg = 1; + // + AtBiz at_biz = 2; +} + +// +message BubbleMsg { + // + int64 mid = 1; + // + string avatar = 2; + // + string nick_name = 3; + // + string content = 4; + // + MsgTabType tab_type = 5; + // + MsgFeedMsgType msg_type = 6; +} + +// +message CardItem { + // + int64 id = 1; + // + int64 item_id = 2; + // + int64 origin_id = 3; + // + int64 business_id = 4; + // + string cover_title = 7; + // + string cover_desc = 8; + // + string cover_image = 9; + // + string cover_text = 10; + // + string native_uri = 11; +} + +// +message ClearBubbleMsgReq { + // + MsgTabType tab_type = 1; +} + +// +message ClearBubbleMsgRsp { +} + +// +message ClearMessageToastReq { + // + ToastType toast_type = 1; +} + +// +message CoinCard { + // + CommonMsgCard coin_msg = 1; + // + int32 notice_state = 2; + // + ThankButton thank_button = 3; +} + +// +message CommonMsgCard { + // + int64 id = 1; + // + repeated User users = 2; + // + int64 item_id = 3; + // + int64 msg_time = 4; + // + int64 origin_id = 5; + // + int64 business_id = 6; + // + string cover_image = 7; + // + string cover_text = 8; + // + string native_uri = 9; + // + int64 counts = 10; + // + RichTextContent rich_text_content = 11; + // + string biz_type = 12; + // + bool is_unread = 13; +} + +// +message Cursor { + // + bool is_end = 1; + // + int64 id = 2; + // + int64 time = 3; +} + +// +message DanmuCard { + // + CommonMsgCard danmu_msg = 1; +} + +// +message DanmuInfo { + // + int64 aid = 1; + // + int64 progress = 2; +} + +// +message DelMsgCardReq { + // + int64 id = 1; + // + MsgTabType tab_type = 2; + // + MsgFeedMsgType msg_type = 3; + // + MsgFeedFilterType filter_type = 4; + // + bool delete_top_msg = 5; +} + +// +message DelMsgItem { + // + int64 talker_uid = 1; + // + int64 msg_key = 2; + // + int64 seq_no = 3; +} + +// +message DelMsgReq { + // + repeated DelMsgItem msgs = 1; +} + +// +message DelMsgRsp { + // + repeated DelMsgItem fail = 1; +} + +// +message DummyRsp { +} + +// +message FavoriteCard { + // + CommonMsgCard fav_msg = 1; + // + int32 notice_state = 2; +} + +// +message GetBubbleMsgReq { +} + +// +message GetBubbleMsgRsp { + // + BubbleMsg bubble_msg = 1; +} + +// +message GetTotalUnreadReq { + // + int32 unread_type = 1; + // + int32 show_unfollow_list = 2; + // + int32 show_dustbin = 3; +} + +// +message GetTotalUnreadRsp { + // + SessionUnread session_unread = 1; + // + MsgFeedUnread msg_feed_unread = 2; + // + SysMsgInterfaceLastMsg sys_msg_interface_last_msg = 3; + // + int64 custom_unread = 4; + // + int32 total_unread = 5; + // + TotalUnreadNew total_unread_new = 6; +} + +// +message HarmonyTotalUnreadRsp { + // + TotalUnreadNew total_unread = 1; +} + +// +message LikeCard { + // + CommonMsgCard like_msg = 1; + // + int32 notice_state = 2; + // + ThankButton thank_button = 3; +} + +// +message MessageToastReq { +} + +// +message MessageToastRsp { + // + string content = 1; + // + string title = 2; + // + ToastType toast_type = 3; +} + +// +message MsgFeedActionReq { + // + int64 msg_id = 1; + // + MsgFeedActionType action_type = 2; + // + MsgFeedActionThankParams thank_params = 3; + // + MsgFeedMsgType msg_type = 4; + // + MsgFeedFilterType filter_type = 5; + // + bool is_top_msg = 6; +} + +// +message MsgFeedActionRsp { + // + string toast = 1; +} + +// +message MsgFeedActionThankParams { + // + int64 receiver_mid = 1; +} + +// +enum MsgFeedActionType { + // + MSG_FEED_ACTION_TYPE_INVALID = 0; + // + MSG_FEED_ACTION_TYPE_THANK = 1; +} + +// +message MsgFeedFilter { + // + MsgFeedFilterType type = 1; + // + string name = 2; +} + +// +enum MsgFeedFilterType { + // + MsgFeed_All = 0; + // + MsgFeed_Following = 1; + // + MsgFeed_AtMe = 2; +} + +// +message MsgFeedMsgCard { + // + MsgFeedMsgType msg_type = 1; + // + int64 msg_id = 2; + // + int64 msg_time = 3; + // + MsgItem msg_item = 4; +} + +// +enum MsgFeedMsgType { + // + LikeMsg = 0; + // + ReplyMsg = 1; + // + AtMsg = 2; + // + DanmuMsg = 3; + // + CoinMsg = 4; + // + FavoriteMsg = 5; +} + +// +message MsgFeedUnread { + // + map unread = 1; +} + +// +message MsgItem { + // + oneof msg_card { + // + ReplyCard reply_card = 1; + // + AtCard at_card = 2; + // + DanmuCard danmu_card = 3; + // + LikeCard like_card = 4; + // + CoinCard coin_card = 5; + // + FavoriteCard favorite_card = 6; + } +} + +// +message MsgListLimit { + // + bool limit = 1; + // + string desc = 2; +} + +// +message MsgListReq { + // + Cursor cursor = 1; + // + int64 pagesize = 2; + // + MsgTabType tab_type = 3; + // + MsgFeedFilterType filter_type = 4; +} + +// +message MsgListRsp { + // + Cursor cursor = 1; + // + repeated MsgFeedMsgCard msg_cards = 2; + // + int64 last_view_at = 3; + // + repeated MsgFeedFilter filters = 4; + // + repeated MsgFeedMsgCard top_cards = 5; + // + MsgListLimit limit = 6; +} + +// +enum MsgTabType { + // + LikeMe = 0; + // + ReplyMe = 1; + // + AtMe = 2; + // + SystemMsg = 3; + // + HuaHuo = 4; + // + NewFollow = 5; + // + ReceiveReply = 100; + // + ReceiveLike = 101; +} + +// +message Prompt { + // + string msg = 1; +} + +// +message PromptReq { + // + int64 talker_ai = 1; + // + int64 key = 2; +} + +// +message PromptRsp { + // + repeated Prompt items = 1; +} + +// +message QuickLinkItem { + // + MsgTabType tab_type = 1; + // + string title = 2; + // + string icon = 3; + // + string icon_dark = 4; + // + string url = 5; +} + +// +message QuickLinkReq { + // + int32 teenager_mode = 1; + // + int32 lessons_mode = 2; +} + +// +message QuickLinkRsp { + // + repeated QuickLinkItem items = 1; + // + bool is_experiment = 2; + // + repeated SessionsFilter filters = 3; +} + +// +message ReplyBiz { + // + int64 subject_id = 1; + // + int64 root_id = 2; + // + int64 source_id = 3; + // + int64 target_id = 4; + // + string source_content = 5; + // + string root_reply_content = 6; + // + string target_reply_content = 7; + // + repeated User at_details = 8; + // + repeated TopicInfo topic_details = 9; + // + bool hide_reply_button = 10; + // + bool hide_like_button = 11; + // + int32 like_state = 12; + // + string message = 13; +} + +// +message ReplyCard { + // + CommonMsgCard reply_msg = 1; + // + ReplyBiz reply_biz = 2; +} + +// +message ReqGetAIInfo { + // + int64 ai_uid = 1; + // + int64 uid = 2; + // + int64 guest_id = 3; +} + +// +message ReqGetSessions { + // + int64 begin_ts = 1; + // + int64 end_ts = 2; + // + int32 size = 3; + // + int32 session_type = 4; + // + int32 unfollow_fold = 5; + // + int32 group_fold = 6; + // + int32 sort_rule = 7; + // + int32 teenager_mode = 8; + // + int32 lessons_mode = 9; + // + repeated int32 sids = 11; + // + int64 ai_uid = 12; +} + +// +message ReqGetSystemNotice { +} + +// +message ReqNewSessions { + // + int64 begin_ts = 1; + // + int32 size = 2; + // + int32 teenager_mode = 3; + // + int32 lessons_mode = 4; + // + repeated int32 sids = 6; +} + +// +message ReqRemoveSession { + // + int64 talker_id = 1; + // + int32 session_type = 2; + // + int64 shop_id = 3; + // + int64 shop_father_id = 4; + // + int32 system_msg_type = 5; +} + +// +message ReqSetTop { + // + int64 talker_id = 1; + // + int32 session_type = 2; + // + int32 op_type = 3; + // + int64 shop_id = 4; + // + int64 shop_father_id = 5; + // + int32 system_msg_type = 6; +} + +// +message ReqSingleInbox { + // + int64 talker_uid = 1; + // + int64 begin_seqno = 2; + // + int64 end_seqno = 3; + // + int32 size = 4; +} + +// +message RichTextContent { + // + repeated bilibili.app.dynamic.v2.Paragraph paragraphs = 1; +} + +// +message RspGetAIInfo { + // + bilibili.im.type.AiInfo ai_info = 1; +} + +// +message RspGetSystemNotice { + // + string text = 1; +} + +// +message RspSingleInbox { + // + map msgs = 1; +} + +// +message SessionUnread { + // + int32 unfollow_unread = 1; + // + int32 follow_unread = 2; + // + int32 unfollow_push_msg = 3; + // + int32 dustbin_push_msg = 4; + // + int32 dustbin_unread = 5; + // + int32 biz_msg_unfollow_unread = 6; + // + int32 biz_msg_follow_unread = 7; + // + int32 huahuo_unread = 8; + // + int32 custom_unread = 9; + // + int32 system_unread = 10; + // + int32 stranger_unread = 11; + // + bool stranger_push_msg = 12; + // + int32 account_unread = 13; +} + +// +message SessionsFilter { + // + SessionsFilterType type = 1; + // + string name = 2; +} + +// +enum SessionsFilterType { + // + Sessions_All = 0; + // + Sessions_Following = 1; +} + +// +message SetMsgFeedNoticeReq { + // + int64 id = 1; + // + MsgFeedMsgType msg_type = 2; + // + int32 notice_state = 3; + // + bool is_top_msg = 4; +} + +// +message SysMsgInterfaceLastMsg { + // + int32 unread = 1; + // + string title = 2; + // + string time = 3; + // + int64 id = 4; +} + +// +message ThankButton { + // + bool has_sent = 1; + // + string receiver_name = 2; + // + string sender_avatar = 3; + // + string msg_text = 4; + // + int64 receiver_mid = 5; +} + +// +enum ToastType { + // + ToastTypeDefault = 0; + // + ToastTypeBanned = 1; + // + ToastTypeReport = 2; +} + +// +message TopicInfo { + // + int64 topic_id = 1; + // + string topic_name = 2; + // + int64 is_activity = 3; + // + string topic_link = 4; +} + +// +message TotalUnreadNew { + // + int32 unread_count = 1; + // + int32 unread_type = 2; +} + +// +message User { + // + int64 mid = 1; + // + string nickname = 2; + // + string avatar = 3; + // + string link = 4; + // + bool guest = 5; +} + diff --git a/proto/bilibili/im/interfaces/v1.proto b/proto/bilibili/im/interfaces/v1.proto new file mode 100644 index 0000000..f05df1b --- /dev/null +++ b/proto/bilibili/im/interfaces/v1.proto @@ -0,0 +1,730 @@ +syntax = "proto3"; + +package bilibili.im.interfaces.v1; + +import "bilibili/im/type.proto"; + +// +service ImInterface { + // + rpc AckAssisMsg (ReqAckAssisMsg) returns (DummyRsp); + // + rpc AckSessions (ReqAckSessions) returns (RspSessions); + // + rpc BatchGetMsgDetail (ReqGetMsg) returns (RspGetMsg); + // + rpc BatchRmDustbin (DummyReq) returns (DummyRsp); + // + rpc BatchRmSessions (ReqBatRmSess) returns (DummyRsp); + // + rpc BatchSessDetail (ReqSessionDetails) returns (RspSessionDetails); + // + rpc BatchUpdateDustbinAck (DummyReq) returns (DummyRsp); + // + rpc CloseClearUnreadUI (ReqCloseClearUnreadUI) returns (RspCloseClearUnreadUI); + // + rpc GetDiscussListInImPage (ReqGetDiscussListInImPage) returns (RspGetDiscussListInImPage); + // + rpc GetLiveInfo (ReqLiveInfo) returns (RspLiveInfo); + // + rpc GetSessions (ReqGetSessions) returns (RspSessions); + // + rpc GetSpecificSessions (ReqGetSpecificSessions) returns (RspSessions); + // + rpc GetTotalUnread (ReqTotalUnread) returns (RspTotalUnread); + // + rpc GetUserCosmoState (GetUserCosmoStateReq) returns (GetUserCosmoStateRsp); + // + rpc GroupAssisMsg (ReqGroupAssisMsg) returns (RspSessionMsg); + // + rpc LikeMsg (ReqLikeMsg) returns (DummyRsp); + // + rpc MsgHasLike (ReqMsgHasLike) returns (RspMsgHasLike); + // + rpc MyGroupUnread (DummyReq) returns (RspMyGroupUnread); + // + rpc NewSessions (ReqNewSessions) returns (RspSessions); + // + rpc RemoveSession (ReqRemoveSession) returns (DummyRsp); + // + rpc SendMsg (ReqSendMsg) returns (RspSendMsg); + // + rpc SessionDetail (ReqSessionDetail) returns (bilibili.im.type.SessionInfo); + // + rpc SetTop (ReqSetTop) returns (DummyRsp); + // + rpc ShareList (ReqShareList) returns (RspShareList); + // + rpc ShowClearUnreadUI (ReqShowClearUnreadUI) returns (RspShowClearUnreadUI); + // + rpc SingleUnread (ReqSingleUnread) returns (RspSingleUnread); + // + rpc SpecificSingleUnread (ReqSpecificSingleUnread) returns (RspSpecificSingleUnread); + // + rpc SyncAck (ReqSyncAck) returns (RspSyncAck); + // + rpc SyncFetchSessionMsgs (ReqSessionMsg) returns (RspSessionMsg); + // + rpc SyncRelation (ReqRelationSync) returns (RspRelationSync); + // + rpc UpdateAck (ReqUpdateAck) returns (DummyRsp); + // + rpc UpdateIntercept (ReqUpdateIntercept) returns (DummyRsp); + // + rpc UpdateTotalUnread (ReqUpdateTotalUnread) returns (RspUpdateTotalUnread); + // + rpc UpdateUnflwRead (DummyReq) returns (DummyRsp); + // + rpc UpdateUserCosmoState (UpdateUserCosmoStateReq) returns (UpdateUserCosmoStateRsp); +} + +// +message DummyReq { + // + int32 idl = 1; +} + +// +message DummyRsp { +} + +// +message EmotionInfo { + // + string text = 1; + // + string url = 2; + // + int32 size = 3; + // + string gif_url = 4; +} + +// +message GetUserCosmoStateReq { + // + string business = 1; + // + int64 card_send_mid = 2; +} + +// +message GetUserCosmoStateRsp { + // + string business = 1; + // + int64 card_send_mid = 2; + // + int32 cosmo_state = 3; + // + int32 op_type = 4; + // + string text = 5; +} + +// +message HasLikeState { + // + MSG_LIKE_STATE state = 1; +} + +// +enum MSG_LIKE_ACTION { + // + ACTION_UNSPECIFIED = 0; + // + ACTION_LIKE = 1; + // + ACTION_CANCEL_LIKE = 2; + // + ACTION_DISLIKE = 3; + // + ACTION_CANCEL_DISLIKE = 4; +} + +// +enum MSG_LIKE_STATE { + // + STATE_UNSPECIFIED = 0; + // + STATE_LIKE = 1; + // + STATE_DISLIKE = 2; +} + +// +message MsgDetail { + // + int64 msg_key = 1; + // + int64 seqno = 2; +} + +// +message MsgFeedUnreadRsp { + // + map unread = 1; +} + +// +message NewTotalUnread { + // + int32 unread_count = 1; + // + int32 unread_type = 2; +} + +// +message ReqAckAssisMsg { + // + int64 ack_seqno = 1; +} + +// +message ReqAckSessions { + // + int64 begin_ts = 1; + // + int32 end_ts = 2; + // + int32 size = 3; +} + +// +message ReqBatRmSess { +} + +// +message ReqCloseClearUnreadUI { +} + +// +message ReqGetDiscussListInImPage { +} + +// +message ReqGetMsg { + // + int64 talker_id = 1; + // + int32 session_type = 2; + // + repeated MsgDetail msg_detail = 3; +} + +// +message ReqGetSessions { + // + int64 begin_ts = 1; + // + int64 end_ts = 2; + // + int32 size = 3; + // + int32 session_type = 4; + // + int32 unfollow_fold = 5; + // + int32 group_fold = 6; + // + int32 sort_rule = 7; + // + int32 teenager_mode = 8; + // + int32 lessons_mode = 9; + // + repeated int32 sids = 10; + // + int64 ai_uid = 11; +} + +// +message ReqGetSpecificSessions { + // + repeated SimpleSession talker_sessions = 1; +} + +// +message ReqGroupAssisMsg { + // + int64 client_seqno = 1; + // + int32 size = 2; +} + +// +message ReqLikeMsg { + // + int64 msg_key = 1; + // + MSG_LIKE_ACTION action = 2; +} + +// +message ReqLiveInfo { + // + int64 uid = 1; + // + int64 talker_id = 2; +} + +// +message ReqMsgHasLike { + // + repeated int64 msg_keys = 1; +} + +// +message ReqNewSessions { + // + int64 begin_ts = 1; + // + int32 size = 2; + // + int32 teenager_mode = 3; + // + int32 lessons_mode = 4; + // + repeated int32 sids = 5; +} + +// +message ReqRelationSync { + // + int64 client_relation_oplog_seqno = 1; +} + +// +message ReqRemoveSession { + // + int64 talker_id = 1; + // + int32 session_type = 2; + // + int64 shop_id = 3; + // + int64 shop_father_id = 4; +} + +// +message ReqSendMsg { + // + bilibili.im.type.Msg msg = 1; + // + string cookie = 2; + // + string cookie2 = 3; + // + int32 error_code = 4; + // + string dev_id = 5; +} + +// +message ReqSessionDetail { + // + int64 talker_id = 1; + // + int32 session_type = 2; + // + int64 uid = 3; +} + +// +message ReqSessionDetails { + // + repeated ReqSessionDetail sess_ids = 1; +} + +// +message ReqSessionMsg { + // + int64 talker_id = 1; + // + int32 session_type = 2; + // + int64 end_seqno = 3; + // + int64 begin_seqno = 4; + // + int32 size = 5; + // + int32 order = 6; + // + string dev_id = 7; + // + string canal_token = 8; + // + int64 ai_uid = 9; + // + bool need_ai_msg = 10; +} + +// +message ReqSetTop { + // + int64 talker_id = 1; + // + int32 session_type = 2; + // + int32 op_type = 3; + // + int64 shop_id = 4; + // + int64 shop_father_id = 5; +} + +// +message ReqShareList { + // + int32 size = 1; + // + int32 source = 2; +} + +// +message ReqShowClearUnreadUI { + // + int32 unread_type = 1; + // + int32 show_unfollow_list = 2; + // + int32 show_dustbin = 4; +} + +// +message ReqSingleUnread { + // + int32 unread_type = 1; + // + int32 show_unfollow_list = 2; + // + int64 uid = 3; + // + int32 show_dustbin = 4; +} + +// +message ReqSpecificSingleUnread { + // + repeated SimpleSession talker_sessions = 1; +} + +// +message ReqSyncAck { + // + int64 client_seqno = 1; +} + +// +message ReqTotalUnread { + // + int32 unread_type = 1; + // + int32 show_unfollow_list = 2; + // + int64 uid = 3; + // + int32 show_dustbin = 4; + // + int32 singleunread_on = 5; + // + int32 msgfeed_on = 6; + // + int32 sysup_on = 7; +} + +// +message ReqUpdateAck { + // + int64 talker_id = 1; + // + int32 session_type = 2; + // + int64 ack_seqno = 3; +} + +// +message ReqUpdateIntercept { + // + int64 uid = 1; + // + int64 talker_id = 2; + // + int32 status = 3; +} + +// +message ReqUpdateTotalUnread { + // + UpdateUnreadScope scope = 1; +} + +// +message RspCloseClearUnreadUI { +} + +// +message RspGetDiscussListInImPage { + // + repeated SingleDiscussInImPage discuss_list = 1; +} + +// +message RspGetMsg { + // + repeated bilibili.im.type.Msg msg = 1; +} + +// +message RspLiveInfo { + // + int64 live_status = 1; + // + string jump_url = 2; +} + +// +message RspMsgHasLike { + // + map states = 1; +} + +// +message RspMyGroupUnread { + // + int32 unread_count = 1; +} + +// +message RspRelationSync { + // + int32 full = 1; + // + repeated bilibili.im.type.RelationLog relation_logs = 2; + // + repeated bilibili.im.type.FriendRelation friend_list = 3; + // + int64 server_relation_oplog_seqno = 4; + // + repeated bilibili.im.type.GroupRelation group_list = 5; +} + +// +message RspSendMsg { + // + int64 msg_key = 1; + // + repeated EmotionInfo e_infos = 2; + // + string msg_content = 3; + // + bilibili.im.type.KeyHitInfos key_hit_infos = 4; + // + bilibili.im.type.RichTextMsgContent rich_text_msg_content = 5; + // + int64 seqno = 6; +} + +// +message RspSessionDetails { + // + repeated bilibili.im.type.SessionInfo sess_infos = 1; +} + +// +message RspSessionMsg { + // + repeated bilibili.im.type.Msg messages = 1; + // + int32 has_more = 2; + // + int64 min_seqno = 3; + // + int64 max_seqno = 4; + // + repeated EmotionInfo e_infos = 5; +} + +// +message RspSessions { + // + repeated bilibili.im.type.SessionInfo session_list = 1; + // + int32 has_more = 2; + // + bool anti_disturb_cleaning = 3; + // + int32 is_address_list_empty = 4; + // + map system_msg = 5; + // + bool show_level = 6; +} + +// +message RspShareList { + // + repeated ShareSessionInfo session_list = 1; + // + int32 is_address_list_empty = 2; +} + +// +message RspShowClearUnreadUI { + // + bool display = 1; + // + string text = 2; +} + +// +message RspSingleUnread { + // + int64 unfollow_unread = 1; + // + int64 follow_unread = 2; + // + int32 unfollow_push_msg = 3; + // + int32 dustbin_push_msg = 4; + // + int64 dustbin_unread = 5; + // + int64 biz_msg_unfollow_unread = 6; + // + int64 biz_msg_follow_unread = 7; +} + +// +message RspSpecificSingleUnread { + // + map talker_unread_cnt = 1; + // + int64 all_unread_cnt = 2; +} + +// +message RspSyncAck { +} + +// +message RspTotalUnread { + // + SessionSingleUnreadRsp session_single_unread = 1; + // + MsgFeedUnreadRsp msg_feed_unread = 2; + // + SysMsgInterfaceLastMsgRsp sys_msg_interface_last_msg = 3; + // + int32 total_unread = 4; + // + int64 custom_unread = 5; + // + NewTotalUnread new_total_unread = 6; +} + +// +message RspUpdateTotalUnread { +} + +// +message SessionSingleUnreadRsp { + // + int64 unfollow_unread = 1; + // + int64 follow_unread = 2; + // + int32 unfollow_push_msg = 3; + // + int32 dustbin_push_msg = 4; + // + int64 dustbin_unread = 5; + // + int64 biz_msg_unfollow_unread = 6; + // + int64 biz_msg_follow_unread = 7; + // + int64 huahuo_unread = 8; + // + int64 custom_unread = 9; +} + +// +message ShareSessionInfo { + // + int64 talker_id = 1; + // + string talker_uname = 2; + // + string talker_icon = 3; + // + int32 official_type = 4; +} + +// +message SimpleSession { + // + int64 talker_id = 1; + // + int32 session_type = 2; +} + +// +message SingleDiscussInImPage { + // + int64 discuss_id = 1; + // + int64 mid = 2; + // + string face = 3; + // + string name = 4; + // + int32 unread_count = 5; + // + int32 type = 6; +} + +// +message SysMsgInterfaceLastMsgRsp { + // + int32 unread = 1; + // + string title = 2; + // + string time = 3; + // + int64 id = 4; +} + +// +enum UpdateUnreadScope { + // + All = 0; + // + Dustbin = 1; + // + Unfollowed = 2; + // + Stranger = 3; +} + +// +message UpdateUserCosmoStateReq { + // + string business = 1; + // + int64 card_send_mid = 2; + // + int32 cosmo_state = 3; + // + int32 op_type = 4; +} + +// +message UpdateUserCosmoStateRsp { + // + string text = 1; +} + diff --git a/proto/bilibili/im/type.proto b/proto/bilibili/im/type.proto new file mode 100644 index 0000000..01f8475 --- /dev/null +++ b/proto/bilibili/im/type.proto @@ -0,0 +1,756 @@ +syntax = "proto3"; + +package bilibili.im.type; + +import "bilibili/account/service/v1.proto"; +import "bilibili/app/dynamic/v2.proto"; +import "bilibili/dagw/component/avatar/v1.proto"; + +// +message AILogo { + // + string ai_mark = 1; + // + string limit_text = 2; +} + +// +message AccountInfo { + // + string name = 1; + // + string pic_url = 2; +} + +// +message AiCardInfo { + // + int64 ai_uid = 1; + // + int64 ai_status = 2; + // + UInfo u_info = 3; + // + string title = 4; + // + string subtitle = 5; + // + AILogo ai_logo = 6; + // + int64 uid = 7; +} + +// +message AiEntry { + // + string icon = 1; + // + string title = 2; + // + string subtitle = 3; +} + +// +message AiInfo { + // + AiCardInfo card_info = 1; + // + ImInfo im_info = 2; + // + AiEntry ai_entry = 3; + // + Story story = 4; +} + +// +message AttestationDisplay { + // + int32 type = 1; + // + CommonInfo common_info = 2; + // + SpliceInfo splice_info = 3; + // + string icon = 4; + // + string desc = 5; +} + +// +message Card { + // + int64 mid = 1; + // + string name = 2; + // + string sex = 3; + // + string face = 4; + // + string sign = 5; + // + int32 rank = 6; + // + int32 level = 7; + // + int32 silence = 8; + // + VipInfo vip = 9; + // + PendantInfo pendant = 10; + // + NameplateInfo nameplate = 11; + // + OfficialInfo official = 12; + // + int64 birthday = 13; + // + int32 is_fake_account = 20; + // + int32 is_deleted = 21; + // + int32 in_reg_audit = 22; + // + int32 face_nft = 23; + // + int32 face_nft_new = 24; + // + int32 is_senior_member = 25; + // + string digital_id = 26; + // + int64 digital_type = 27; + // + AttestationDisplay attestation = 28; + // + ExpertInfo expert_info = 29; + // + UserHonourInfo honours = 30; + // + bilibili.account.service.v1.NameRender name_render = 31; +} + +// +message CommonInfo { + // + string title = 1; + // + string prefix = 2; + // + string prefix_title = 3; +} + +// +enum Exp { + // + Invalid = 0; + // + New_Ava = 1; +} + +// +message ExpertInfo { + // + string title = 1; + // + int32 state = 2; + // + int32 type = 3; + // + string desc = 4; +} + +// +message FriendRelation { + // + int64 uid = 1; + // + string user_name = 2; + // + string face = 3; + // + int32 vip_level = 4; +} + +// +message GptMsgContent { + // + RichTextMsgContent content = 1; + // + bool show_like = 2; + // + bool show_change = 3; + // + int64 gpt_session_id = 4; + // + string gpt_bind_query = 5; + // + string session_closed_line = 6; + // + string voice_url = 7; + // + int64 sub_type = 8; + // + int64 voice_time = 9; +} + +// +message GptRcmdQuestionBizInfo { + // + string question = 1; +} + +// +message GroupRelation { + // + int64 group_id = 1; + // + int64 owner_uid = 2; + // + int32 group_type = 3; + // + int32 group_level = 4; + // + string group_cover = 5; + // + string group_name = 6; + // + string group_notice = 7; + // + int32 status = 8; + // + int32 member_role = 9; + // + string fans_medal_name = 10; + // + int64 room_id = 11; +} + +// +message HighText { + // + string title = 1; + // + string url = 2; + // + int32 index = 3; +} + +// +message HonourTag { + // + string name = 1; + // + string link = 2; + // + string web_link = 3; + // + int32 type = 4; + // + repeated string scene = 5; + // + int32 priority_level = 6; + // + string icon = 7; + // + int32 year = 8; +} + +// +message ImInfo { + // + string background_url = 1; + // + repeated string ai_prompt = 2; + // + string ai_loading = 3; + // + int32 ai_loading_max = 4; +} + +// +message ImgInfo { + // + string url = 1; + // + int32 width = 2; + // + int32 height = 3; + // + string image_type = 4; +} + +// +message KeyHitInfos { + // + string toast = 1; + // + int32 rule_id = 2; + // + repeated HighText high_text = 3; +} + +// +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 { + // + int64 sender_uid = 1; + // + int32 receiver_type = 2; + // + int64 receiver_id = 3; + // + int64 cli_msg_id = 4; + // + int32 msg_type = 5; + // + string content = 6; + // + int64 msg_seqno = 7; + // + int64 timestamp = 8; + // + repeated int64 at_uids = 9; + // + repeated int64 recver_ids = 10; + // + int64 msg_key = 11; + // + int32 msg_status = 12; + // + bool sys_cancel = 13; + // + string notify_code = 14; + // + int32 msg_source = 15; + // + int32 new_face_version = 16; + // + KeyHitInfos key_hit_infos = 17; + // + AccountInfo account_info = 18; + // + GptMsgContent gpt_msg_content = 19; + // + string canal_token = 20; +} + +// +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; + // + 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_TEXT_SHARE = 15; + // + EN_MSG_TYPE_TIP_MESSAGE = 18; + // + EN_MSG_TYPE_GPT_MESSAGE = 19; + // + 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; + // + 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; + // + EN_MSG_TYPE_SYS_GROUP_ADMIN_KICK_OFF = 206; + // + 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_CUSTOM_RANK_UPDATE = 400; + // + EN_MSG_TYPE_CUSTOM_MSG_NOTICE = 401; +} + +// +message NameplateInfo { + // + int32 nid = 1; + // + string name = 2; + // + string image = 3; + // + string image_small = 4; + // + string level = 5; + // + string condition = 6; +} + +// +message OfficialInfo { + // + int32 role = 1; + // + string title = 2; + // + string desc = 3; + // + int32 type = 4; +} + +// +message PendantInfo { + // + int32 pid = 1; + // + string name = 2; + // + string image = 3; + // + int64 expire = 4; + // + string image_enhance = 5; + // + string image_enhance_frame = 6; +} + +// +message Prompt { + // + string msg = 1; +} + +// +message RelationLog { + // + int32 log_type = 1; + // + int64 oplog_seqno = 2; + // + FriendRelation friend_relation = 3; + // + GroupRelation group_relation = 4; +} + +// +message RichTextMsgContent { + // + repeated bilibili.app.dynamic.v2.Paragraph paragraphs = 1; +} + +// +message SessionInfo { + // + int64 talker_id = 1; + // + int32 session_type = 2; + // + int64 at_seqno = 3; + // + int64 top_ts = 4; + // + string group_name = 5; + // + string group_cover = 6; + // + int32 is_follow = 7; + // + int32 is_dnd = 8; + // + int64 ack_seqno = 9; + // + int64 ack_ts = 10; + // + int64 session_ts = 11; + // + int32 unread_count = 12; + // + Msg last_msg = 13; + // + int32 group_type = 14; + // + int32 can_fold = 15; + // + int32 status = 16; + // + int64 max_seqno = 17; + // + int32 new_push_msg = 18; + // + int32 setting = 19; + // + int32 is_guardian = 20; + // + int32 is_intercept = 21; + // + int32 is_trust = 22; + // + int32 system_msg_type = 23; + // + AccountInfo account_info = 24; + // + int32 live_status = 25; + // + int32 biz_msg_unread_count = 26; + // + UserLabel user_label = 27; + // + int32 is_huahuo = 28; + // + UInfo u_info = 29; + // + int32 stranger = 30; + // + AiInfo ai_info = 31; + // + bool is_hide_edit = 32; + // + SessionInfoExt ext = 33; +} + +// +message SessionInfoExt { + // + int64 shop_id = 1; + // + int64 shop_father_id = 2; +} + +// +message SpliceInfo { + // + string title = 1; +} + +// +message Story { + // + string tip = 1; + // + repeated StoryItem items = 2; +} + +// +message StoryItem { + // + int64 id = 1; + // + string show_name = 2; + // + string ai_msg = 3; + // + bool selected = 4; + // + repeated Prompt prompts = 5; +} + +// +message UInfo { + // + bilibili.dagw.component.avatar.v1.AvatarItem ava = 1; + // + Card card = 2; +} + +// +message UserHonourInfo { + // + int64 mid = 1; + // + UserHonourStyle colour = 2; + // + repeated HonourTag tags = 3; +} + +// +message UserHonourStyle { + // + string dark = 1; + // + string normal = 2; +} + +// +message UserLabel { + // + int32 label_type = 1; + // + Medal medal = 2; + // + int32 guardian_relation = 3; +} + +// +message VipInfo { + // + int32 type = 1; + // + int32 status = 2; + // + int64 due_date = 3; + // + int32 vip_pay_type = 4; + // + int32 theme_type = 5; + // + VipLabel label = 6; + // + int32 avatar_subscript = 7; + // + string nickname_color = 8; + // + int64 role = 9; + // + string avatar_subscript_url = 10; + // + int32 tv_vip_status = 11; + // + int32 tv_vip_pay_type = 12; + // + int64 tv_due_date = 13; +} + +// +message VipLabel { + // + string path = 1; + // + string text = 3; + // + string label_theme = 4; + // + string text_color = 5; + // + int32 bg_style = 6; + // + string bg_color = 7; + // + string border_color = 8; + // + bool use_img_label = 9; + // + string img_label_uri_hans = 10; + // + string img_label_uri_hant = 11; + // + string img_label_uri_hans_static = 12; + // + string img_label_uri_hant_static = 13; +} + diff --git a/proto/bilibili/live/app/interfaces/api/grpc/v1.proto b/proto/bilibili/live/app/interfaces/api/grpc/v1.proto new file mode 100644 index 0000000..1fe1d19 --- /dev/null +++ b/proto/bilibili/live/app/interfaces/api/grpc/v1.proto @@ -0,0 +1,152 @@ +syntax = "proto3"; + +package bilibili.live.app.interfaces.api.grpc.v1; + +import "bilibili/pagination.proto"; + +// +message GetMoreLiveRoomsReq { + // + int64 room_id = 1; + // + bilibili.pagination.Pagination idol_pagination = 2; + // + bilibili.pagination.Pagination rooms_pagination = 3; + // + int64 uid = 4; + // + int64 fnval = 5; +} + +// +message GetMoreLiveRoomsResp { + // + bilibili.pagination.PaginationReply idol_pagination_reply = 1; + // + bilibili.pagination.PaginationReply rooms_pagination_reply = 2; + // + bool idol_has_more = 3; + // + repeated MyIdolInfo my_idol_info = 4; + // + repeated MoreLiveRoomInfo more_live_info = 5; + // + repeated ViewHistory view_history = 6; +} + +// +message GetViewHistoryReq { + // + int64 uid = 1; + // + bilibili.pagination.Pagination pagination = 2; + // + int64 fnval = 3; +} + +// +message GetViewHistoryResp { + // + repeated ViewHistory history = 1; + // + bilibili.pagination.PaginationReply pagination_reply = 2; +} + +// +message MoreLiveRoomInfo { + // + int64 room_id = 1; + // + string uname = 2; + // + string room_cover = 3; + // + string room_title = 4; + // + RoomType room_type = 5; + // + string text_small = 6; + // + string icon = 7; + // + string area_name = 8; + // + string link = 9; + // + string face = 10; +} + +// +message MyIdolInfo { + // + int64 room_id = 1; + // + int64 uid = 2; + // + string uname = 3; + // + string face = 4; + // + string title = 5; + // + string link = 6; +} + +// +message RemoveViewHistoryReq { + // + repeated int64 kids = 1; + // + int64 uid = 2; + // + string buvid = 3; +} + +// +message RemoveViewHistoryResp { +} + +// +enum RoomType { + // + Watched = 0; + // + Popularity = 1; +} + +// +message ViewHistory { + // + int64 kid = 1; + // + int64 anchor_uid = 2; + // + string uname = 3; + // + string face = 4; + // + int64 room_id = 5; + // + string title = 6; + // + string cover = 7; + // + int64 living_status = 8; + // + int64 parent_area_id = 9; + // + string parent_area_name = 10; + // + int64 area_id = 11; + // + string area_name = 12; + // + bool follow_status = 13; + // + int64 view_time = 14; + // + string device = 15; + // + string link = 16; +} + diff --git a/proto/bilibili/live/app/room/v1.proto b/proto/bilibili/live/app/room/v1.proto new file mode 100644 index 0000000..8291d31 --- /dev/null +++ b/proto/bilibili/live/app/room/v1.proto @@ -0,0 +1,538 @@ +syntax = "proto3"; + +package bilibili.live.app.room.v1; + +// +enum Gender { + // + Gender_Woman = 0; + // + Gender_Man = 1; +} + +// +message GetStudioListReq { + // + int64 room_id = 1; +} + +// +message GetStudioListResp { + // + message Pendants { + // + message Pendant { + // + string name = 1; + // + int64 position = 2; + // + string value = 3; + // + string desc = 4; + } + + // + Pendant frame = 1; + // + Pendant badge = 2; + } + + // + message StudioMaster { + // + int64 uid = 1; + // + int64 room_id = 2; + // + string uname = 3; + // + string face = 4; + // + GetStudioListResp.Pendants pendants = 5; + // + string tag = 6; + // + int64 tag_type = 7; + } + + // + int64 status = 1; + // + repeated GetStudioListResp.StudioMaster master_list = 2; +} + +// +message InteractConnect { + // + InteractConnectType interact_connect_type = 1; + // + PubStatus default_pub_status = 2; + // + SubMode default_sub_mode = 3; + // + PlayMode audio_play_mode = 4; + // + PlayMode video_play_mode = 5; + // + int64 connect_timeout = 6; +} + +// +enum InteractConnectType { + // + InteractConnectTypeAll = 0; + // + InteractConnectTypeOnlyVoice = 1; + // + InteractConnectTypeOnlyVideo = 2; +} + +// +enum InteractJoinType { + // + InteractJoinTypeInvalid = 0; + // + InteractJoinTypeInvitation = 1; + // + InteractJoinTypeApply = 2; + // + InteractJoinTypeChannelLink = 3; + // + InteractJoinTypePullUp = 4; +} + +// +message InteractLayoutData { + // + int32 width = 1; + // + int32 height = 2; + // + LayoutCell default_cell = 3; + // + repeated LayoutCell cells = 4; + // + RtcResolution rtc_resolution = 5; + // + int32 best_area_show_pos = 6; + // + RtcResolution rtc_resolution_simulcast = 7; +} + +// +message InteractMode { + // + InteractModeType interact_mode_type = 1; + // + repeated int32 join_types = 2; + // + int64 invite_timeout = 3; + // + int64 apply_timeout = 4; + // + InteractPositionMode position_mode = 5; +} + +// +enum InteractModeType { + // + InteractModeB2B = 0; + // + InteractModeB2C = 1; +} + +// +enum InteractPositionMode { + // + InteractPositionModeDefault = 0; + // + InteractPositionModeChronological = 1; + // + InteractPositionModeCustom = 2; +} + +// +message InteractSceneConfig { + // + string interact_scene_id = 1; + // + InteractTemplate interact_template = 2; + // + InteractMode interact_mode = 3; + // + InteractConnect interact_connect = 4; + // + int64 interact_max_users = 5; +} + +// +message InteractTemplate { + // + message Layout { + // + string layout_id = 1; + // + string video_size = 2; + // + int64 max_users = 3; + } + + // + string template_id = 1; + // + bool is_variable_layout = 2; + // + repeated InteractTemplate.Layout layout_list = 3; + // + bool show_interact_ui = 4; + // + string layout_id = 5; + // + InteractLayoutData layout_data = 6; +} + +// +message LayoutCell { + // + double x = 1; + // + double y = 2; + // + double width = 3; + // + double height = 4; + // + int32 z_index = 5; + // + int64 position = 6; + // + LayoutCellOpen default_open = 7; + // + int32 mobile_font_size = 8; + // + int32 mobile_avatar_size = 9; + // + int32 pc_web_font_size = 10; + // + int32 pc_web_avatar_size = 11; + // + int32 can_zoom = 12; + // + int32 video_index = 13; + // + string position_text = 14; +} + +// +enum LayoutCellOpen { + // + LayoutCellOpenInvalid = 0; + // + LayoutCellOpenVisible = 1; + // + LayoutCellOpenInvisible = 2; +} + +// +message Members { + // + int64 uid = 1; + // + string uname = 2; + // + string face = 3; + // + int64 position = 4; + // + UserStreamControl stream_control = 5; + // + int64 join_time = 6; + // + string link_id = 7; + // + Gender gender = 8; + // + int64 room_id = 9; +} + +// +message MultiConnInfo { + // + message Score { + // + int64 uid = 1; + // + int64 price = 2; + // + string price_text = 3; + } + + // + repeated MultiConnInfo.Score scores = 1; + // + int64 room_owner = 2; + // + int64 show_score = 3; +} + +// +message MultiConnInfoReq { + // + int64 room_id = 1; + // + int64 anchor_uid = 2; + // + string biz_session_id = 3; +} + +// +message MultiConnInfoResp { + // + message info { + // + int64 uid = 1; + // + int64 room_id = 2; + // + string avatar = 3; + // + string nickname = 4; + // + int64 price = 5; + // + string price_text = 6; + // + int64 gender = 7; + } + + // + repeated MultiConnInfoResp.info data = 1; + // + int64 invoking_time = 2; + // + int64 version = 3; + // + string layout = 4; + // + int64 room_status = 5; + // + string biz_session_id = 6; +} + +// +enum MuteLocalMode { + // + mute_mode_none = 0; + // + mute_mode_packet = 1; + // + mute_mode_capture = 2; +} + +// +message Operator { + // + int64 anchor_uid = 1; + // + int64 room_id = 2; + // + string live_key = 3; + // + int64 uid = 4; + // + string platform = 5; + // + string buvid = 6; + // + int64 build = 7; + // + string ip = 8; + // + string mobi_app = 9; +} + +// +enum PlayMode { + // + play_mode_default = 0; + // + play_mode_explicit = 1; +} + +// +enum PubStatus { + // + pub_status_none = 0; + // + pub_status_audio = 1; + // + pub_status_video = 2; + // + pub_status_all = 3; +} + +// +enum RoomStatus { + // + RoomStatusNotStart = 0; + // + RoomStatusStarted = 1; + // + RoomStatusEnded = 2; +} + +// +message RtcResolution { + // + int32 vertical_width = 1; + // + int32 vertical_height = 2; + // + int32 horizontal_width = 3; + // + int32 horizontal_height = 4; + // + int64 code_rate_init = 5; + // + int64 code_rate_min = 6; + // + int64 code_rate_max = 7; + // + double scale_down_ratio = 8; + // + int64 small_bitrate_weight = 9; + // + int64 big_bitrate_weight = 10; + // + int64 small_max_fps = 11; + // + int64 big_max_fps = 12; + // + bool small_bitrate_active = 13; +} + +// +enum SessionStatus { + // + SessionStatusNotStart = 0; + // + SessionStatusStarted = 1; + // + SessionStatusEnded = 2; +} + +// +enum SubMode { + // + sub_mode_none = 0; + // + sub_mode_audio = 1; + // + sub_mode_video = 2; + // + sub_mode_all = 3; +} + +// +message UniversalInfoReq { + // + string biz_session_id = 1; + // + int64 anchor_uid = 2; + // + int64 room_id = 3; +} + +// +message UniversalInfoResp { + // + string biz_session_id = 1; + // + string interact_channel_id = 2; + // + InteractMode interact_mode = 3; + // + InteractTemplate interact_template = 4; + // + InteractConnectType interact_connect_type = 5; + // + int64 interact_max_users = 6; + // + repeated Members members = 7; + // + int64 version = 8; + // + SessionStatus session_status = 9; + // + MultiConnInfo multi_conn_info = 10; + // + string business_label = 11; + // + int64 invoking_time = 12; + // + int64 members_version = 13; + // + RoomStatus room_status = 14; + // + int64 system_time_unix = 15; + // + int64 room_owner = 16; + // + string session_start_at = 17; + // + int64 session_start_at_ts = 18; + // + string room_start_at = 19; + // + int64 room_start_at_ts = 20; + // + string trace_id = 21; +} + +// +message UserStreamControl { + // + message ExplicitSubMode { + // + int64 uid = 1; + // + SubMode sub_mode = 2; + } + + // + message PubSubControl { + // + PubStatus pub_status = 1; + // + repeated UserStreamControl.ExplicitSubMode explicit_sub_users = 2; + // + int64 version = 3; + // + RtcResolution rtc_resolution = 4; + // + map sub_video_index = 5; + // + RtcResolution rtc_resolution_simulcast = 6; + } + + // + message UserStreamControlItem { + // + MuteLocalMode mute_local_mode = 1; + // + repeated int64 mute_remote_uids = 2; + // + repeated int64 receive_uids = 3; + // + int64 version = 4; + } + + // + UserStreamControlItem audio_control = 1; + // + UserStreamControlItem video_control = 2; + // + PubSubControl pub_sub_control = 3; +} + diff --git a/proto/bilibili/live/approom/api/grpc/v1.proto b/proto/bilibili/live/approom/api/grpc/v1.proto new file mode 100644 index 0000000..7f54f9f --- /dev/null +++ b/proto/bilibili/live/approom/api/grpc/v1.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; + +package bilibili.live.approom.api.grpc.v1; + +// +message DoComboReq { + // + int64 room_id = 1; + // + int64 interaction_id = 2; + // + int32 cnt = 3; + // + string msg = 4; +} + +// +message DoComboResp { +} + +// +message SendComboMsgReq { + // + int64 room_id = 1; + // + string msg = 2; + // + string rnd = 3; +} + +// +message SendComboMsgResp { +} + diff --git a/proto/bilibili/live/play_gateway.proto b/proto/bilibili/live/play_gateway.proto new file mode 100644 index 0000000..b4bb6f1 --- /dev/null +++ b/proto/bilibili/live/play_gateway.proto @@ -0,0 +1,42 @@ +syntax = "proto3"; + +package bilibili.live.play_gateway; + +// +message Behavior { + // + int64 qn = 1; + // + PlayStyle play_style = 2; +} + +// +message GetMasterPlayQualityReq { + // + int64 room_id = 1; +} + +// +message GetMasterPlayQualityResp { + // + repeated Behavior behaviors = 1; + // + repeated Qoe qoes = 2; +} + +// +enum PlayStyle { + // + PLAY_STYLE_HORRIZ = 0; + // + PLAY_STYLE_VERT = 1; + // + PLAY_STYLE_TINYWINDOW = 2; +} + +// +message Qoe { + // + string qoe = 1; +} + diff --git a/proto/bilibili/live/rtc.proto b/proto/bilibili/live/rtc.proto new file mode 100644 index 0000000..b7794b1 --- /dev/null +++ b/proto/bilibili/live/rtc.proto @@ -0,0 +1,309 @@ +syntax = "proto3"; + +package bilibili.live.rtc; + +// +message BAPILiveRTCHealthProto { + // + message Bandwidth { + // + int64 tx_rate = 1; + // + int64 rx_rate = 2; + } + + // + message Cpu { + // + float usage = 1; + } + + // + message Disk { + // + float usage = 1; + // + int64 free = 2; + } + + // + message HealthInfo { + // + string node_name = 1; + // + BAPILiveRTCHealthProto.Cpu cpu = 2; + // + BAPILiveRTCHealthProto.Memory memory = 3; + // + BAPILiveRTCHealthProto.Disk disk = 4; + // + BAPILiveRTCHealthProto.Bandwidth bandwidth = 5; + // + BAPILiveRTCHealthProto.ServiceQuality up_link = 6; + // + BAPILiveRTCHealthProto.ServiceQuality dn_link = 7; + // + bool offline = 8; + // + bool network_available = 9; + // + BAPILiveRTCHealthProto.TransportBandwidth transbandwidth = 10; + } + + // + message Memory { + // + float usage = 1; + // + int64 free = 2; + } + + // + message ServiceQuality { + // + int64 stream_num = 1; + // + int32 score_average = 2; + // + float zero_score_ratio = 3; + } + + // + message TransportBandwidth { + // + float total_tx_byterate = 1; + // + float total_rx_byterate = 2; + // + float wan_tx_byterate = 3; + // + float wan_rx_byterate = 4; + // + float lan_tx_byterate = 5; + // + float lan_rx_byterate = 6; + } + +} + +// +message BAPILiveRTCLegacyProto { + // + enum MediaType { + // + AUDIO = 0; + // + VIDEO = 1; + // + DATA = 2; + // + SMALL_VIDEO = 3; + // + OTHER = 15; + } + + // + message MediaTypeField { + // + repeated int32 media_type = 1; + } + + // + message RtcSubscribe { + // + map subscribe = 1; + } + +} + +// +message BAPILiveRTCStreamProto { + // + message AudioMetaData { + // + int64 channels = 1; + // + int64 sample_rate = 2; + // + int64 payload = 3; + // + int32 ssrc = 4; + } + + // + enum Codec { + // + Opus = 0; + // + H264 = 1; + // + H265 = 2; + // + AV1 = 3; + } + + // + message StreamMeta { + // + oneof metadata { + // + BAPILiveRTCStreamProto.AudioMetaData audio = 2; + // + BAPILiveRTCStreamProto.VideoMetaData video = 3; + } + // + BAPILiveRTCStreamProto.Codec codec = 1; + } + + // + message VideoMetaData { + // + int64 payload = 1; + // + int32 ssrc = 2; + } + +} + +// +message BAPILiveRTCTokenProto { + // + message AccessToken { + // + int64 channel_id = 1; + // + int64 uid = 2; + // + string token = 3; + // + repeated string addr = 4; + // + string fingerprint = 5; + // + string password = 6; + // + repeated string http_dns = 7; + // + int32 version = 8; + // + string business_name = 9; + // + BAPILiveRTCTokenProto.TurnAddr turn_addr = 10; + // + string media_server_name = 11; + } + + // + message Token { + // + int64 channel_id = 1; + // + int64 uid = 2; + // + int64 timestamp = 3; + // + BAPILiveRTCUserProto.UserRole role = 4; + } + + // + message TurnAddr { + // + string username = 1; + // + string password = 2; + // + repeated string addr = 3; + // + repeated int32 protocol = 4; + // + bool turn_only = 5; + } + + // + enum TurnProtocol { + // + UDP = 0; + // + TCP = 1; + // + TLS = 2; + } + +} + +// +message BAPILiveRTCUserProto { + // + message CodecCapability { + // + bool av1 = 1; + // + bool h265 = 2; + } + + // + message Stream { + // + bool has_video = 1; + // + bool has_audio = 2; + // + bool audio_muted = 3; + // + bool video_muted = 4; + // + int32 video_count = 5; + // + int32 temporal_count = 6; + } + + // + message User { + // + int64 uid = 1; + // + BAPILiveRTCUserProto.UserRole role = 2; + // + BAPILiveRTCUserProto.Stream pub_stream = 3; + // + string platform = 4; + // + string sdk_version = 5; + // + BAPILiveRTCUserProto.CodecCapability decode_capability = 6; + } + + // + enum UserLeaveReason { + // + NORMAL = 0; + // + KICKED = 1; + // + TIMEOUT = 2; + // + KILLED = 3; + // + RECONNECT = 4; + } + + // + enum UserRole { + // + Normal = 0; + // + Audience = 1; + // + Monitor = 2; + // + Relay = 3; + // + App = 4; + // + Mix = 5; + // + Unknown = 99; + } + +} + diff --git a/proto/bilibili/live/rtc/datachannel.proto b/proto/bilibili/live/rtc/datachannel.proto new file mode 100644 index 0000000..b0aa933 --- /dev/null +++ b/proto/bilibili/live/rtc/datachannel.proto @@ -0,0 +1,403 @@ +syntax = "proto3"; + +package bilibili.live.rtc.datachannel; + +import "bilibili/live/rtc.proto"; +import "bilibili/live/rtc/datachannel/report.proto"; + +// +message ClientStatsReq { + // + message App { + // + string app_name = 1; + // + string app_version = 2; + // + string sdk_version = 3; + // + string platform = 4; + // + string network = 5; + } + + // + oneof payload { + // + bytes raw_payload = 6; + // + bilibili.live.rtc.datachannel.report.ClientStatsPayload pb_stats_payload = 7; + } + // + string event_type = 1; + // + string encoding = 2; + // + App app = 3; +} + +// +message ClientStatsResp { + // + message Score { + // + int32 up_score = 1; + // + int32 down_score = 2; + // + int32 server_up_score = 3; + // + int32 server_down_score = 4; + } + + // + int32 report_interval = 1; + // + Score score = 2; +} + +// +message JoinNotify { + // + bilibili.live.rtc.BAPILiveRTCUserProto.User user = 1; +} + +// +message JoinReq { + // + bilibili.live.rtc.BAPILiveRTCUserProto.User user = 1; + // + bool auto_subscribe = 2; + // + string token = 3; +} + +// +message JoinResp { + // + repeated bilibili.live.rtc.BAPILiveRTCUserProto.User users = 1; + // + int32 call_id = 2; + // + bilibili.live.rtc.BAPILiveRTCUserProto.CodecCapability encode_capability = 3; +} + +// +message LeaveNotify { + // + int64 uid = 1; + // + bilibili.live.rtc.BAPILiveRTCUserProto.UserLeaveReason reason = 2; +} + +// +message LeaveReq { +} + +// +message LeaveResp { +} + +// +message MembersReq { + // + int64 channel_id = 1; + // + int64 uid = 2; + // + int32 call_id = 3; +} + +// +message MembersResp { + // + repeated bilibili.live.rtc.BAPILiveRTCUserProto.User users = 1; +} + +// +message MessageNotify { + // + int64 uid = 1; + // + int32 biz_id = 2; + // + bytes payload = 3; + // + bool last = 4; +} + +// +message MuteNotify { + // + oneof mute_status { + // + bool mute_audio = 2; + // + bool mute_video = 3; + } + // + int64 uid = 1; + // + MuteReason reason = 4; +} + +// +enum MuteReason { + // + UserMute = 0; + // + AdminMute = 1; +} + +// +message MuteReq { + // + oneof mute_req { + // + bool mute_audio = 1; + // + bool mute_video = 2; + } +} + +// +message PubNotify { + // + int64 uid = 1; + // + bilibili.live.rtc.BAPILiveRTCUserProto.Stream stream = 2; +} + +// +message PubReq { + // + string sdp = 1; + // + bilibili.live.rtc.BAPILiveRTCUserProto.Stream stream = 2; +} + +// +message PubResp { + // + string sdp = 1; +} + +// +message RequestMessage { + // + oneof req { + // + JoinReq join = 4; + // + LeaveReq leave = 5; + // + PubReq pub = 6; + // + SubReq sub = 7; + // + UnSubReq un_sub = 8; + // + MuteReq mute = 9; + // + UserMsgReq message = 10; + // + MembersReq members = 11; + // + UnPubReq un_pub = 12; + // + UpdateSubReq update_sub = 13; + // + ClientStatsReq client_stats = 14; + // + UpdateCodecReq update_codec = 15; + } + // + int64 request_id = 1; + // + int64 channel_id = 2; + // + int64 uid = 3; +} + +// +message ResponseMessage { + // + oneof data { + // + JoinResp join_resp = 4; + // + LeaveResp leave_resp = 5; + // + PubResp pub_resp = 6; + // + SubResp sub_resp = 7; + // + UnSubResp un_sub_resp = 8; + // + UserMuteResp mute_resp = 9; + // + UserMsgResp msg_resp = 10; + // + JoinNotify join_notify = 11; + // + LeaveNotify leave_notify = 12; + // + MuteNotify mute_notify = 13; + // + PubNotify pub_notify = 14; + // + MessageNotify msg_notify = 15; + // + MembersResp members_resp = 16; + // + TokenNotify token_notify = 17; + // + UnPubResp un_pub_resp = 18; + // + UnPubNotify un_pub_notify = 19; + // + UpdateSubResp update_sub_resp = 20; + // + ClientStatsResp client_stats_resp = 21; + // + UpdateCodecResp update_codec_resp = 22; + // + UpdateCodecNotify update_codec_notify = 23; + } + // + int64 request_id = 1; + // + int32 code = 2; + // + string message = 3; +} + +// +message SubReq { + // + message SubUser { + // + int64 uid = 1; + // + bool sub_video = 2; + // + bool sub_audio = 3; + // + int32 video_index = 4; + } + + // + oneof sub_offer { + // + string sdp = 1; + } + // + repeated SubReq.SubUser sub_users = 2; + // + bool pause_send = 3; +} + +// +message SubResp { + // + int64 uid = 1; + // + string sdp = 2; +} + +// +message TokenNotify { + // + string token = 1; +} + +// +message UnPubNotify { + // + int64 uid = 1; + // + bilibili.live.rtc.BAPILiveRTCUserProto.Stream stream = 2; +} + +// +message UnPubReq { +} + +// +message UnPubResp { +} + +// +message UnSubReq { + // + int64 uid = 1; +} + +// +message UnSubResp { +} + +// +message UpdateCodecNotify { + // + bilibili.live.rtc.BAPILiveRTCUserProto.CodecCapability encode_capability = 1; +} + +// +message UpdateCodecReq { + // + bilibili.live.rtc.BAPILiveRTCUserProto.CodecCapability decode_capability = 1; +} + +// +message UpdateCodecResp { +} + +// +message UpdateSubReq { + // + message video_prefer_layer { + // + oneof video_temporal_layer_option { + // + int32 temporal_index = 2; + } + // + int32 video_index = 1; + } + + // + oneof audio_option { + // + bool sub_audio = 2; + } + // + int64 uid = 1; +} + +// +message UpdateSubResp { +} + +// +message UserMsgReq { + // + int32 biz_id = 1; + // + bytes payload = 2; + // + bool last = 3; + // + repeated int64 receivers = 4; +} + +// +message UserMsgResp { + // + repeated int64 sent_uids = 1; +} + +// +message UserMuteResp { +} + diff --git a/proto/bilibili/live/rtc/datachannel/report.proto b/proto/bilibili/live/rtc/datachannel/report.proto new file mode 100644 index 0000000..5d08ca8 --- /dev/null +++ b/proto/bilibili/live/rtc/datachannel/report.proto @@ -0,0 +1,456 @@ +syntax = "proto3"; + +package bilibili.live.rtc.datachannel.report; + +// +message ClientStatsPayload { + // + RtcTransport transport = 1; + // + RtcCandidatePair selected_candidate_pair = 2; + // + repeated RtcCandidatePair candidate_pairs = 3; + // + repeated RtcAVSenderStats av_senders = 4; + // + repeated RtcAVReceiverStats av_receivers = 5; + // + repeated RtcDataChannel data_channels = 6; + // + int64 generate_ts = 7; + // + string business_name = 8; +} + +// +message RtcAVReceiverStats { + // + int64 uid = 1; + // + repeated RtcVideoReceiverInfo video = 2; + // + repeated RtcAudioReceiverInfo audio = 3; +} + +// +message RtcAVSenderStats { + // + int64 uid = 1; + // + repeated RtcVideoSenderInfo video = 2; + // + repeated RtcAudioSenderInfo audio = 3; +} + +// +message RtcAudioReceiverInfo { + // + int32 ssrc = 1; + // + double audio_level = 2; + // + int64 bytes_received = 3; + // + int64 concealed_samples = 4; + // + int64 concealment_events = 5; + // + int64 silent_concealed_samples = 6; + // + double estimated_playout_timestamp = 7; + // + int64 fec_packets_discarded = 8; + // + int64 fec_packets_received = 9; + // + int64 header_bytes_received = 10; + // + int64 inserted_samples_for_deceleration = 11; + // + double jitter = 12; + // + double jitter_buffer_delay = 13; + // + int64 jitter_buffer_emitted_count = 14; + // + double last_packet_received_timestamp = 15; + // + int64 packets_discarded = 16; + // + int64 packets_lost = 17; + // + int64 packets_received = 18; + // + int64 removed_samples_for_acceleration = 19; + // + double total_audio_energy = 20; + // + double total_samples_duration = 21; + // + int64 total_samples_received = 22; + // + int64 delayed_packet_outage_samples = 23; + // + int32 interruption_count = 24; + // + double total_interruption_duration = 25; + // + int64 jitter_buffer_flushes = 26; + // + double jitter_buffer_target_delay = 27; + // + double relative_packet_arrival_delay = 28; + // + int32 stream_id = 29; + // + bool mute = 30; + // + string track_id = 31; + // + int64 uid = 32; +} + +// +message RtcAudioSenderInfo { + // + int32 ssrc = 1; + // + int64 bytes_sent = 2; + // + int64 header_bytes_sent = 3; + // + int32 nack_count = 4; + // + int64 packets_sent = 5; + // + int64 retransmitted_bytes_sent = 6; + // + int64 retransmitted_packets_sent = 7; + // + double fraction_lost = 8; + // + double jitter = 9; + // + int64 packets_lost = 10; + // + double round_trip_time = 11; + // + int64 round_trip_time_measurements = 12; + // + double total_round_trip_time = 13; + // + double audio_level = 14; + // + double total_audio_energy = 15; + // + double total_samples_duration = 16; + // + int32 stream_id = 17; + // + bool mute = 18; + // + string remote_id = 19; + // + string media_source_id = 20; +} + +// +message RtcCandidatePair { + // + string id = 1; + // + string state = 2; + // + int64 priority = 3; + // + RtcLocalCandidate local_candidate = 4; + // + RtcRemoteCandidate remote_candidate = 5; + // + float available_outgoing_bitrate = 6; + // + float available_incoming_bitrate = 7; + // + int64 bytes_discarded_on_send = 8; + // + int64 bytes_received = 9; + // + int64 bytes_sent = 10; + // + int64 consent_requests_sent = 11; + // + float current_round_trip_time = 12; + // + bool nominated = 13; + // + int64 packets_discarded_on_send = 14; + // + int64 packets_received = 15; + // + int64 packets_sent = 16; + // + int64 requests_received = 17; + // + int64 requests_sent = 18; + // + int64 responses_received = 19; + // + int64 responses_sent = 20; + // + float total_round_trip_time = 21; + // + bool writable = 22; +} + +// +message RtcDataChannel { + // + string id = 1; + // + string label = 2; + // + string state = 3; + // + string protocol = 4; + // + int64 bytes_sent = 5; + // + int64 bytes_received = 6; + // + int32 messages_sent = 7; + // + int32 messages_received = 8; +} + +// +message RtcLocalCandidate { + // + string id = 1; + // + string network_type = 2; + // + string ip = 3; + // + string address = 4; + // + int32 port = 5; + // + string protocol = 6; + // + string candidate_type = 7; + // + int64 priority = 8; +} + +// +message RtcRemoteCandidate { + // + string id = 1; + // + string ip = 2; + // + string address = 3; + // + int32 port = 4; + // + string protocol = 5; + // + string candidate_type = 6; + // + int64 priority = 7; +} + +// +message RtcTransport { + // + string selected_candidate_pair_id = 1; + // + string dtls_cipher = 2; + // + string dtls_state = 3; + // + int64 bytes_received = 4; + // + int64 bytes_sent = 5; + // + int64 packets_received = 6; + // + int64 packets_sent = 7; + // + int32 selected_candidate_pair_changes = 8; +} + +// +message RtcVideoReceiverInfo { + // + int32 ssrc = 1; + // + string decoder_implementation = 2; + // + double estimated_playout_timestamp = 3; + // + int32 frame_width = 4; + // + int32 frame_height = 5; + // + int32 frames_decoded = 6; + // + int32 frames_dropped = 7; + // + int32 frames_received = 8; + // + int64 bytes_received = 9; + // + int64 header_bytes_received = 10; + // + int64 packets_lost = 11; + // + int64 packets_received = 12; + // + double jitter = 13; + // + double jitter_buffer_delay = 14; + // + int64 jitter_buffer_emitted_count = 15; + // + int32 key_frames_decoded = 16; + // + double last_packet_received_timestamp = 17; + // + int32 fir_count = 18; + // + int32 nack_count = 19; + // + int32 pli_count = 20; + // + int64 qp_sum = 21; + // + double total_decode_time = 22; + // + double total_inter_frame_delay = 23; + // + double total_squared_inter_frame_delay = 24; + // + int32 freeze_count = 25; + // + int32 pause_count = 26; + // + double sum_of_squared_frames_duration = 27; + // + double total_freezes_duration = 28; + // + double total_pauses_duration = 29; + // + int64 first_frame_cost = 30; + // + int32 stream_id = 31; + // + bool mute = 32; + // + int64 freeze_samples = 33; + // + int64 freeze_duration = 34; + // + string track_id = 35; + // + int64 uid = 36; + // + double frames_per_second = 37; +} + +// +message RtcVideoSenderInfo { + // + int32 ssrc = 1; + // + string encoder_implementation = 2; + // + int64 bytes_sent = 3; + // + int32 fir_count = 4; + // + int32 frame_height = 5; + // + int32 frame_width = 6; + // + int32 frames_encoded = 7; + // + int32 frames_sent = 8; + // + int32 header_bytes_sent = 9; + // + int32 huge_frames_sent = 10; + // + int32 key_frames_encoded = 11; + // + int32 nack_count = 12; + // + int64 packets_sent = 13; + // + int32 pli_count = 14; + // + int64 retransmitted_bytes_sent = 15; + // + int64 retransmitted_packets_sent = 16; + // + double total_encode_time = 17; + // + int64 total_encoded_bytes_target = 18; + // + double total_packet_send_delay = 19; + // + int64 qp_sum = 20; + // + string quality_limitation_reason = 21; + // + int32 quality_limitation_resolution_changes = 22; + // + double bandwidth_q_l_durations = 23; + // + double cpu_q_l_durations = 24; + // + double none_q_l_durations = 25; + // + double other_q_l_durations = 26; + // + double fraction_lost = 27; + // + double jitter = 28; + // + int64 packets_lost = 29; + // + double round_trip_time = 30; + // + int64 round_trip_time_measurements = 31; + // + double total_round_trip_time = 32; + // + int32 stream_id = 33; + // + bool mute = 34; + // + string content_type = 35; + // + string remote_id = 36; + // + int32 frames = 37; + // + double framerate_input = 38; + // + int32 framerate_sent = 39; + // + int32 avg_encode_ms = 40; + // + int32 frames_dropped_by_capturer = 41; + // + int32 frames_dropped_by_congestion_window = 42; + // + int32 frames_dropped_by_encoder = 43; + // + int32 frames_dropped_by_encoder_queue = 44; + // + int32 frames_dropped_by_rate_limiter = 45; + // + double target_bitrate = 46; +} + diff --git a/proto/bilibili/live/xroom_extend/api/v1.proto b/proto/bilibili/live/xroom_extend/api/v1.proto new file mode 100644 index 0000000..0a858cc --- /dev/null +++ b/proto/bilibili/live/xroom_extend/api/v1.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; + +package bilibili.live.xroom_extend.api.v1; + +// +enum ReportStatus { + // + REPORT_EXCEPTION = 0; + // + REPORT_SUCCESS = 1; +} + +// +message SendReportInfoReq { + // + int64 room_id = 1; + // + string report_tag = 2; + // + string report_reason = 3; + // + string pic_url = 4; + // + string play_stream = 5; +} + +// +message SendReportInfoResp { + // + ReportStatus report_status = 1; + // + string toast = 2; +} + diff --git a/proto/bilibili/main/community/reply/v1.proto b/proto/bilibili/main/community/reply/v1.proto new file mode 100644 index 0000000..0e4185a --- /dev/null +++ b/proto/bilibili/main/community/reply/v1.proto @@ -0,0 +1,2164 @@ +syntax = "proto3"; + +package bilibili.main.community.reply.v1; + +import "bilibili/account/service/v1.proto"; +import "bilibili/app/dynamic/v2.proto"; +import "bilibili/dagw/component/avatar/v1.proto"; +import "bilibili/pagination.proto"; +import "bilibili/vas/garb/model.proto"; +import "google/protobuf/any.proto"; + +// +service Reply { + // + rpc AnswerQuestion (AnswerQuestionReq) returns (AnswerQuestionResp); + // + rpc AtSearch (AtSearchReq) returns (AtSearchReply); + // + rpc DetailList (DetailListReq) returns (DetailListReply); + // + rpc DialogList (DialogListReq) returns (DialogListReply); + // + rpc DoVote (DoVoteReq) returns (DoVoteResp); + // + rpc MainList (MainListReq) returns (MainListReply); + // + rpc PictureList (PictureListReq) returns (PictureListResp); + // + rpc PreviewList (PreviewListReq) returns (PreviewListReply); + // + rpc ReplyInfo (ReplyInfoReq) returns (ReplyInfoReply); + // + rpc SearchItem (SearchItemReq) returns (SearchItemReply); + // + rpc SearchItemPreHook (SearchItemPreHookReq) returns (SearchItemPreHookReply); + // + rpc ShareRepliesInfo (ShareRepliesInfoReq) returns (ShareRepliesInfoResp); + // + rpc ShareReplyMaterial (ShareReplyMaterialReq) returns (ShareReplyMaterialResp); + // + rpc SuggestEmotes (SuggestEmotesReq) returns (SuggestEmotesResp); + // + rpc UpdateSingleReplyNotificationConfig (UpdateSingleReplyNotificationConfigReq) returns (UpdateSingleReplyNotificationConfigResp); + // + rpc UserCallback (UserCallbackReq) returns (UserCallbackReply); +} + +// +message Activity { + // + int64 activity_id = 1; + // + int64 activity_state = 2; + // + string activity_placeholder = 3; +} + +// +message AnswerQuestionReq { + // + int64 qid = 1; + // + string option_key = 2; +} + +// +message AnswerQuestionResp { + // + message MemberPassedPopup { + // + string title = 1; + // + string subtitle = 2; + // + string h5_link = 3; + } + + // + bool passed = 1; + // + bool member_passed = 2; + // + MemberPassedPopup member_passed_popup = 3; + // + string bottom_text = 4; + // + QuestionCardStat stat = 5; +} + +// +message ArticleSearchItem { + // + string title = 1; + // + string up_nickname = 2; + // + repeated string covers = 3; +} + +// +message AtGroup { + // + enum Type { + // + AT_GROUP_TYPE_DEFAULT = 0; + // + AT_GROUP_TYPE_RECENT = 1; + // + AT_GROUP_TYPE_FOLLOW = 2; + // + AT_GROUP_TYPE_FANS = 3; + // + AT_GROUP_TYPE_OTHERS = 4; + } + + // + AtGroup.Type group_type = 1; + // + string group_name = 2; + // + repeated AtItem items = 3; +} + +// +message AtItem { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + int32 fans = 4; + // + int32 official_verify_type = 5; +} + +// +message AtSearchReply { + // + repeated AtGroup groups = 1; +} + +// +message AtSearchReq { + // + int64 mid = 1; + // + string keyword = 2; +} + +// +message CM { + // + google.protobuf.Any source_content = 1; +} + +// +message Content { + // + string message = 1; + // + map members = 2; + // + map emotes = 3; + // + map topics = 4; + // + map urls = 5; + // + Vote vote = 6; + // + map at_name_to_mid = 7; + // + RichText rich_text = 8; + // + repeated Picture pictures = 9; + // + double picture_scale = 10; +} + +// +message CursorReply { + // + int64 next = 1; + // + int64 prev = 2; + // + bool is_begin = 3; + // + bool is_end = 4; + // + Mode mode = 5; + // + string mode_text = 6; +} + +// +message CursorReq { + // + int64 next = 1; + // + int64 prev = 2; + // + Mode mode = 4; +} + +// +message DetailListReply { + // + message SubjectTitle { + // + string left_icon = 1; + // + string title = 2; + // + string link = 3; + // + int64 rpid_mute = 4; + // + ReplyNotificationSwitch push_switch = 5; + } + + // + CursorReply cursor = 1; + // + SubjectControl subject_control = 2; + // + ReplyInfo root = 3; + // + Activity activity = 4; + // + LikeInfo likes = 5; + // + Mode mode = 6; + // + string mode_text = 7; + // + bilibili.pagination.FeedPaginationReply pagination_reply = 8; + // + string session_id = 9; + // + SubjectTitle subject_title = 10; +} + +// +message DetailListReq { + // + int64 oid = 1; + // + int64 type = 2; + // + int64 root = 3; + // + int64 rpid = 4; + // + CursorReq cursor = 5; + // + DetailListScene scene = 6; + // + Mode mode = 7; + // + bilibili.pagination.FeedPagination pagination = 8; + // + string extra = 9; + // + string ad_extra = 10; + // + bool need_subject_title = 11; +} + +// +enum DetailListScene { + // + REPLY = 0; + // + MSG_FEED = 1; + // + NOTIFY = 2; +} + +// +message DialogListReply { + // + CursorReply cursor = 1; + // + SubjectControl subject_control = 2; + // + repeated ReplyInfo replies = 3; + // + Activity activity = 4; + // + bilibili.pagination.FeedPaginationReply pagination_reply = 5; + // + string session_id = 6; +} + +// +message DialogListReq { + // + int64 oid = 1; + // + int64 type = 2; + // + int64 root = 3; + // + int64 dialog = 4; + // + CursorReq cursor = 5; + // + bilibili.pagination.FeedPagination pagination = 6; + // + string extra = 7; + // + string ad_extra = 8; +} + +// +message DoVoteReq { + // + int64 oid = 1; + // + int64 type = 2; + // + int64 vote_id = 3; + // + int64 option = 4; +} + +// +message DoVoteResp { +} + +// +message ESportsGradeCard { + // + string title = 1; + // + string description = 2; + // + string image = 3; + // + string link = 4; +} + +// +enum EditorIconState { + // + EditorIconState_DEFAULT = 0; + // + EditorIconState_ENABLE = 1; + // + EditorIconState_DISABLE = 2; + // + EditorIconState_HIDE = 3; +} + +// +message Effects { + // + string preloading = 1; +} + +// +message Emote { + // + int64 size = 1; + // + string url = 2; + // + string jump_url = 3; + // + string jump_title = 4; + // + int64 id = 5; + // + int64 package_id = 6; + // + string gif_url = 7; + // + string text = 8; + // + string webp_url = 9; +} + +// +message EmptyPage { + // + enum Action { + // + UNAVAILABLE = 0; + // + SHOW_KEYBOARD = 1; + // + SEND_REPLY_WITH_BOLD_TEXT = 2; + } + + // + message Button { + // + string title = 1; + // + EmptyPage.Action action = 2; + } + + // + message Text { + // + string raw = 1; + // + TextStyle style = 2; + // + EmptyPage.Action action = 3; + } + + // + string image_url = 1; + // + repeated EmptyPage.Text texts = 2; + // + Button left_button = 3; + // + Button right_button = 4; +} + +// +message Form { + // + int32 type = 1; + // + repeated QoeOption options = 2; +} + +// +message GoodsSearchItem { + // + int64 id = 1; + // + string name = 2; + // + string price = 3; + // + string income = 4; + // + string img = 5; + // + string label = 6; +} + +// +message LikeInfo { + // + message Item { + // + Member member = 1; + } + + // + repeated LikeInfo.Item items = 1; + // + string title = 2; +} + +// +message Lottery { + // + int64 lottery_id = 1; + // + int64 lottery_status = 2; + // + int64 lottery_mid = 3; + // + int64 lottery_time = 4; + // + int64 oid = 5; + // + int64 type = 6; + // + int64 ctime = 7; + // + Content content = 8; + // + Member member = 9; + // + ReplyControl reply_control = 10; +} + +// +message MainListReply { + // + CursorReply cursor = 1; + // + repeated ReplyInfo replies = 2; + // + SubjectControl subject_control = 3; + // + ReplyInfo up_top = 4; + // + ReplyInfo admin_top = 5; + // + ReplyInfo vote_top = 6; + // + Notice notice = 7; + // + Lottery lottery = 8; + // + Activity activity = 9; + // + UpSelection up_selection = 10; + // + CM cm = 11; + // + Effects effects = 12; + // + Operation operation = 13; + // + repeated ReplyInfo top_replies = 14; + // + QoeInfo qoe = 15; + // + map callbacks = 16; + // + OperationV2 operation_v2 = 17; + // + Mode mode = 18; + // + string mode_text = 19; + // + bilibili.pagination.FeedPaginationReply pagination_reply = 20; + // + string session_id = 21; + // + string report_params = 22; + // + VoteCard vote_card = 23; + // + ESportsGradeCard esports_grade_card = 24; + // + string context_feature = 25; + // + string pagination_end_text = 26; + // + repeated MixedCard mixed_cards = 27; + // + repeated SubjectTopCards subject_top_cards = 28; +} + +// +message MainListReq { + // + int64 oid = 1; + // + int64 type = 2; + // + CursorReq cursor = 3; + // + string extra = 4; + // + string ad_extra = 5; + // + int64 rpid = 6; + // + int64 seek_rpid = 7; + // + string filter_tag_name = 8; + // + Mode mode = 9; + // + bilibili.pagination.FeedPagination pagination = 10; + // + repeated int64 client_recall_rpids = 11; + // + WordSearchParam word_search_param = 12; +} + +// +message Member { + // + message NftInteraction { + // + message Region { + // + Member.NftInteraction.RegionType type = 1; + // + string icon = 2; + // + Member.NftInteraction.ShowStatus show_status = 3; + } + + // + enum RegionType { + // + DEFAULT = 0; + // + MAINLAND = 1; + // + GAT = 2; + } + + // + enum ShowStatus { + // + SHOWDEFAULT = 0; + // + ZOOMINMAINLAND = 1; + // + RAW = 2; + } + + // + string itype = 1; + // + string metadata_url = 2; + // + string nft_id = 3; + // + Region region = 4; + } + + // + int64 mid = 1; + // + string name = 2; + // + string sex = 3; + // + string face = 4; + // + int64 level = 5; + // + int64 official_verify_type = 6; + // + int64 vip_type = 7; + // + int64 vip_status = 8; + // + int64 vip_theme_type = 9; + // + string vip_label_path = 10; + // + string garb_pendant_image = 11; + // + string garb_card_image = 12; + // + string garb_card_image_with_focus = 13; + // + string garb_card_jump_url = 14; + // + string garb_card_number = 15; + // + string garb_card_fan_color = 16; + // + bool garb_card_is_fan = 17; + // + string fans_medal_name = 18; + // + int64 fans_medal_level = 19; + // + int64 fans_medal_color = 20; + // + string vip_nickname_color = 21; + // + int32 vip_avatar_subscript = 22; + // + string vip_label_text = 23; + // + string vip_label_theme = 24; + // + int64 fans_medal_color_end = 25; + // + int64 fans_medal_color_border = 26; + // + int64 fans_medal_color_name = 27; + // + int64 fans_medal_color_level = 28; + // + int64 fans_guard_level = 29; + // + int32 face_nft = 30; + // + int32 face_nft_new = 31; + // + int32 is_senior_member = 32; + // + NftInteraction nft_interaction = 33; + // + string fans_guard_icon = 34; + // + string fans_honor_icon = 35; +} + +// +message MemberV2 { + // + message Basic { + // + int64 mid = 1; + // + string name = 2; + // + string sex = 3; + // + string face = 4; + // + int64 level = 5; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar_item = 6; + // + bilibili.account.service.v1.NameRender name_render = 7; + } + + // + message Contractor { + // + bool is_contractor = 1; + // + string contract_desc = 2; + } + + // + message Garb { + // + message FanNumColorFormat { + // + string start_point = 1; + // + string end_point = 2; + // + repeated string colors = 3; + // + repeated int64 gradients = 4; + } + + // + string pendant_image = 1; + // + string card_image = 2; + // + string card_image_with_focus = 3; + // + string card_jump_url = 4; + // + string card_number = 5; + // + string card_fan_color = 6; + // + bool card_is_fan = 7; + // + string fan_num_prefix = 8; + // + FanNumColorFormat fan_num_color_format = 9; + } + + // + message Medal { + // + string name = 1; + // + int64 level = 2; + // + int64 color_start = 3; + // + int64 color_end = 4; + // + int64 color_border = 5; + // + int64 color_name = 6; + // + int64 color_level = 7; + // + int64 guard_level = 8; + // + string first_icon = 9; + // + string second_icon = 10; + // + int64 level_bg_color = 11; + } + + // + message Nft { + // + message Interaction { + // + message Region { + // + MemberV2.Nft.Interaction.RegionType type = 1; + // + string icon = 2; + // + MemberV2.Nft.Interaction.ShowStatus show_status = 3; + } + + // + enum RegionType { + // + DEFAULT_RegionType = 0; + // + MAINLAND_RegionType = 1; + // + GAT_RegionType = 2; + } + + // + enum ShowStatus { + // + SHOWDEFAULT_ShowStatus = 0; + // + ZOOMINMAINLAND_ShowStatus = 1; + // + RAW_ShowStatus = 2; + } + + // + string itype = 1; + // + string metadata_url = 2; + // + string nft_id = 3; + // + Region region = 4; + } + + // + int32 face = 1; + // + Interaction interaction = 2; + } + + // + message Official { + // + int64 verify_type = 1; + } + + // + message Senior { + // + enum Status { + // + Normal = 0; + // + Pending = 1; + // + Senior = 2; + // + WillExpire = 3; + // + Expired = 4; + } + + // + int32 is_senior_member = 1; + // + MemberV2.Senior.Status status = 2; + } + + // + message Vip { + // + int64 type = 1; + // + int64 status = 2; + // + int64 theme_type = 3; + // + string label_path = 4; + // + string nickname_color = 5; + // + int32 avatar_subscript = 6; + // + string label_text = 7; + // + string vip_label_theme = 8; + } + + // + Basic basic = 1; + // + Official official = 2; + // + Vip vip = 3; + // + Garb garb = 4; + // + Medal medal = 5; + // + Nft nft = 6; + // + Senior senior = 7; + // + Contractor contractor = 8; + // + bilibili.vas.garb.model.UserSailing user_sailing = 9; +} + +// +message MixedCard { + // + enum Type { + // + UNKNOWN = 0; + // + QUESTION = 1; + } + + // + oneof item { + // + QuestionCard question = 4; + } + // + MixedCard.Type type = 1; + // + string oid = 2; + // + int64 display_rank = 3; +} + +// +enum Mode { + // + DEFAULT_Mode = 0; + // @Deprecated + UNSPECIFIED = 1; + // + MAIN_LIST_TIME = 2; + // + MAIN_LIST_HOT = 3; +} + +// +message Notice { + // + int64 id = 1; + // + string content = 2; + // + string link = 3; +} + +// +message OgvGradeCard { + // + string title = 1; + // + string sub_title = 2; + // + string button_text = 3; + // + string goto_url = 4; +} + +// +message Operation { + // + enum Type { + // + UNKNOWN_Type = 0; + // + NOTE = 1; + // + TOPIC = 2; + // @Deprecated + NOTICE = 3; + } + + // + Operation.Type type = 1; + // + int64 id = 2; + // + OperationTitle title = 3; + // + OperationTitle subtitle = 4; + // + string link = 5; + // + string report_extra = 6; + // + string icon = 7; +} + +// +message OperationTitle { + // + string content = 1; + // + bool is_highlight = 2; +} + +// +message OperationV2 { + // + message Icon { + // + enum Position { + // + PREFIX = 0; + // + SUFFIX = 1; + } + + // + OperationV2.Icon.Position position = 1; + // + string url = 2; + } + + // + enum Type { + // + UNKNOWN_Type = 0; + // + NOTE_Type = 1; + // + TOPIC_Type = 2; + // + SEARCH = 4; + } + + // + OperationV2.Type type = 1; + // + string prefix_text = 2; + // + Icon icon = 3; + // + string title = 4; + // + string link = 5; + // + string report_extra = 6; +} + +// +message PGCVideoSearchItem { + // + string title = 1; + // + string category = 2; + // + string cover = 3; +} + +// +message Picture { + // + string img_src = 1; + // + double img_width = 2; + // + double img_height = 3; + // + double img_size = 4; + // + string top_right_icon = 5; + // + bool play_gif_thumbnail = 6; +} + +// +message PictureListReq { + // + int64 oid = 1; + // + int64 type = 2; + // + string extra = 3; + // + int64 after_rpid = 4; + // + Mode mode = 5; + // + bilibili.pagination.FeedPagination pagination = 6; + // + string session_id = 7; + // + string main_list_session_id = 8; +} + +// +message PictureListResp { + // + repeated ReplyInfo replies = 1; + // + bilibili.pagination.FeedPaginationReply pagination_reply = 2; + // + string session_id = 3; + // + string report_params = 4; + // + string context_feature = 5; + // + string pagination_end_text = 6; +} + +// +message PreviewListReply { + // + CursorReply cursor = 1; + // + repeated ReplyInfo replies = 2; + // + SubjectControl subject_control = 3; + // + ReplyInfo up_top = 4; + // + ReplyInfo admin_top = 5; + // + ReplyInfo vote_top = 6; +} + +// +message PreviewListReq { + // + int64 oid = 1; + // + int64 type = 2; + // + CursorReq cursor = 3; +} + +// +message QoeInfo { + // + int64 id = 1; + // + int32 type = 2; + // + int32 style = 3; + // + string title = 4; + // + string feedback_title = 5; + // + repeated QoeScoreItem score_items = 6; + // + int64 display_rank = 7; + // + Form form = 8; +} + +// +message QoeOption { + // + string title = 1; + // + float score = 2; + // + string img_url = 3; + // + repeated string desc = 4; +} + +// +message QoeOptionDesc { + // + repeated string desc = 1; +} + +// +message QoeScoreItem { + // + string title = 1; + // + string url = 2; + // + float score = 3; +} + +// +message QuestionCard { + // + message Option { + // + string key = 1; + // + string title = 2; + } + + // + message Question { + // + int64 qid = 1; + // + string title = 2; + // + bool must_right = 3; + // + repeated QuestionCard.Option options = 4; + } + + // + Question question = 1; + // + QuestionCardStat stat = 2; + // + string bottom_text = 3; +} + +// +message QuestionCardStat { + // + int64 right_cnt = 1; + // + int64 right_mid_cnt = 2; + // + int64 submit_mid_cnt = 3; +} + +// +message ReplyCardLabel { + // + enum Type { + // + UNDERLINE = 0; + // + BACKGROUND = 1; + } + + // + string text_content = 1; + // + string text_color_day = 2; + // + string text_color_night = 3; + // + string label_color_day = 4; + // + string label_color_night = 5; + // + string image = 6; + // + ReplyCardLabel.Type type = 7; + // + string background = 8; + // + double background_width = 9; + // + double background_height = 10; + // + string jump_url = 11; + // + int64 effect = 12; + // + int64 effect_start_time = 13; +} + +// +message ReplyControl { + // + message EasterEggLabel { + // + string image = 1; + // + string jump_url = 2; + } + + // + message GradeRecord { + // + message Text { + // + string raw = 1; + // + TextStyle style = 2; + } + + // + int32 score = 1; + // + repeated ReplyControl.GradeRecord.Text texts = 2; + } + + // + message InsertEffect { + // + string content = 1; + // + string icon = 2; + } + + // + message VoteOption { + // + enum LabelKind { + // + DEFAULT_LabelKind = 0; + // + RED = 1; + // + BLUE = 2; + // + PLAIN = 3; + } + + // + ReplyControl.VoteOption.LabelKind label_kind = 1; + // + string desc = 2; + // + int64 idx = 3; + // + int64 vote_id = 4; + } + + // + int64 action = 1; + // + bool up_like = 2; + // + bool up_reply = 3; + // + bool show_follow_btn = 4; + // + bool is_assist = 5; + // + string label_text = 6; + // + bool following = 7; + // + bool followed = 8; + // + bool blocked = 9; + // + bool has_folded_reply = 10; + // + bool is_folded_reply = 11; + // + bool is_up_top = 12; + // + bool is_admin_top = 13; + // + bool is_vote_top = 14; + // + int64 max_line = 15; + // + bool invisible = 16; + // + bool is_contractor = 17; + // + bool is_note = 18; + // + repeated ReplyCardLabel card_labels = 19; + // + string sub_reply_entry_text = 20; + // + string sub_reply_title_text = 21; + // + string contract_desc = 22; + // + string time_desc = 23; + // + string biz_scene = 24; + // + string location = 25; + // + bool fold_pictures = 26; + // + bool is_note_v2 = 27; + // + bool hide_note_icon = 28; + // + string cm_recommend_component = 29; + // + VoteOption vote_option = 30; + // + string charged_desc = 31; + // + GradeRecord grade_record = 32; + // + string preset_reply_text = 33; + // + EasterEggLabel easter_egg_label = 34; + // + string context_feature = 35; + // + InsertEffect insert_effect = 36; +} + +// +message ReplyExtra { + // + int64 season_id = 1; + // + int64 season_type = 2; + // + int64 ep_id = 3; + // + bool is_story = 4; + // + string spmid = 5; + // + string from_spmid = 6; + // + bool disable_underline = 7; + // + bool disable_we_search = 8; + // + bool disable_filter_tag = 9; + // + bool is_activity_mode = 10; + // + string track_id = 11; +} + +// +message ReplyInAppPushPayload { + // + message Content { + // + string message = 1; + // + map emotes = 2; + // + map at_name_to_mid = 3; + // + repeated Picture pictures = 4; + } + + // + message Member { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + } + + // + message Reply { + // + int64 id = 1; + // + int64 type = 2; + // + int64 oid = 3; + // + int64 mid = 4; + // + int64 root = 5; + // + int64 parent = 6; + // + int64 dialog = 7; + // + int64 ctime = 8; + // + Content content = 9; + // + Member member = 10; + } + + // + message Subject { + // + int64 type = 1; + // + int64 oid = 2; + // + int64 up_mid = 3; + } + + // + message SubjectMaterial { + // + message Archive { + // + int64 aid = 1; + // + string title = 2; + // + string cover = 3; + } + + // + oneof item { + // + Archive arc = 1; + } + } + + // + Reply reply = 1; + // + Reply parent_reply = 2; + // + Subject subject = 3; + // + SubjectMaterial subject_material = 4; +} + +// +message ReplyInfo { + // + repeated ReplyInfo replies = 1; + // + int64 id = 2; + // + int64 oid = 3; + // + int64 type = 4; + // + int64 mid = 5; + // + int64 root = 6; + // + int64 parent = 7; + // + int64 dialog = 8; + // + int64 like = 9; + // + int64 ctime = 10; + // + int64 count = 11; + // + Content content = 12; + // + Member member = 13; + // + ReplyControl reply_control = 14; + // + MemberV2 member_v2 = 15; + // + string track_info = 16; +} + +// +message ReplyInfoReply { + // + ReplyInfo reply = 1; +} + +// +message ReplyInfoReq { + // + enum ReplyInfoScene { + // + Insert = 0; + } + + // + int64 rpid = 1; + // + ReplyInfoReq.ReplyInfoScene scene = 2; +} + +// +enum ReplyNotificationSwitch { + // + ReplyNotificationSwitch_UNSPECIFIED = 0; + // + ReplyNotificationSwitch_OFF = 1; + // + ReplyNotificationSwitch_ON = 2; +} + +// +message ReplyTrackInfo { + // + string track_id = 1; +} + +// +message RichText { + // + oneof item { + // + RichTextNote note = 1; + // + bilibili.app.dynamic.v2.OpusItem opus = 2; + } +} + +// +message RichTextNote { + // + string summary = 1; + // + repeated string images = 2; + // + string click_url = 3; + // + string last_mtime_text = 4; +} + +// +message SearchItem { + // + oneof item { + // + GoodsSearchItem goods = 2; + // + VideoSearchItem video = 3; + // + ArticleSearchItem article = 4; + } + // + string url = 1; +} + +// +message SearchItemCursorReply { + // + bool has_next = 1; + // + int64 next = 2; +} + +// +message SearchItemCursorReq { + // + int64 next = 1; + // + SearchItemType item_type = 2; +} + +// +message SearchItemPreHookReply { + // + string placeholder_text = 1; + // + string background_text = 2; + // + repeated int32 ordered_type = 3; +} + +// +message SearchItemPreHookReq { + // + int64 oid = 1; + // + int64 type = 2; +} + +// +message SearchItemReply { + // + SearchItemCursorReply cursor = 1; + // + repeated SearchItem items = 2; + // + SearchItemReplyExtraInfo extra = 3; +} + +// +message SearchItemReplyExtraInfo { + // + string event_id = 1; +} + +// +message SearchItemReq { + // + SearchItemCursorReq cursor = 1; + // + int64 oid = 2; + // + int64 type = 3; + // + string keyword = 4; +} + +// +enum SearchItemType { + // + DEFAULT_ITEM_TYPE = 0; + // + GOODS = 1; + // + VIDEO = 2; + // + ARTICLE = 3; +} + +// +enum SearchItemVideoSubType { + // + UGC = 0; + // + PGC = 1; +} + +// +message ShareRepliesInfoReq { + // + repeated int64 rpids = 1; + // + int64 oid = 2; + // + int64 type = 3; +} + +// +message ShareRepliesInfoResp { + // + message ShareExtra { + // + bool is_pgc = 1; + } + + // + repeated ShareReplyInfo infos = 1; + // + string from_title = 2; + // + string from_up = 3; + // + string from_pic = 4; + // + string url = 5; + // + string slogan_pic = 6; + // + string slogan_text = 7; + // + ShareReplyTopic topic = 8; + // + ShareExtra extra = 9; +} + +// +message ShareReplyInfo { + // + Member member = 1; + // + Content content = 2; + // + string title = 3; + // + string sub_title = 4; + // + string achievement_text = 5; + // + string label_url = 6; +} + +// +message ShareReplyMaterialReq { + // + int64 oid = 1; + // + int64 type = 2; + // + int64 rpid = 3; +} + +// +message ShareReplyMaterialResp { + // + message ArchiveMaterial { + // + string title = 1; + // + string cover = 2; + // + string up_name = 3; + // + string up_icon = 4; + } + + // + message ArticleMaterial { + // + string title = 1; + // + string message = 2; + } + + // + message DynamicMaterial { + // + string title = 1; + // + string message = 2; + } + + // + message ExtraData { + // + bool is_pgc = 1; + // + string origin_text = 2; + // + int64 topic_id = 3; + } + + // + message SubjectMaterial { + // + oneof item { + // + ShareReplyMaterialResp.ArchiveMaterial archive_material = 1; + // + ShareReplyMaterialResp.DynamicMaterial dynamic_material = 2; + // + ShareReplyMaterialResp.ArticleMaterial article_material = 3; + } + } + + // + SubjectMaterial subject_material = 1; + // + string qrcode_url = 2; + // + string save_pic_text = 3; + // + string open_app_text = 4; + // + string share_time_text = 5; + // + string bili_logo_icon = 6; + // + ExtraData extra = 7; +} + +// +message ShareReplyTopic { + // + Topic topic = 1; + // + string origin_text = 2; +} + +// +message SubjectControl { + // + message CmTopReplyProtection { + // + int64 protected_top_rpid = 1; + // + string popup_message = 2; + // + string appeal_url = 3; + } + + // + message FilterTag { + // + string name = 1; + // + string event_id = 2; + } + + // + int64 up_mid = 1; + // + bool is_assist = 2; + // + bool read_only = 3; + // + bool has_vote_access = 4; + // + bool has_lottery_access = 5; + // + bool has_folded_reply = 6; + // + string bg_text = 7; + // + bool up_blocked = 8; + // + bool has_activity_access = 9; + // + bool show_title = 10; + // + bool show_up_action = 11; + // + int64 switcher_type = 12; + // + bool input_disable = 13; + // + string root_text = 14; + // + string child_text = 15; + // + int64 count = 16; + // + string title = 17; + // + string giveup_text = 18; + // + bool has_note_access = 19; + // + bool disable_jump_emote = 20; + // + string empty_background_text_plain = 21; + // + string empty_background_text_highlight = 22; + // + string empty_background_uri = 23; + // + repeated SubjectControl.FilterTag support_filter_tags = 24; + // + EditorIconState screenshot_icon_state = 25; + // + EditorIconState upload_picture_icon_state = 26; + // + EmptyPage empty_page = 27; + // + CmTopReplyProtection cm_top_reply_protection = 28; + // + bool enable_charged = 29; +} + +// +message SubjectTopCards { + // + enum Type { + // + UNKNOWN_Type = 0; + // + OGV_GRADE = 1; + } + + // + oneof item { + // + OgvGradeCard ogv_grade = 3; + } + // + SubjectTopCards.Type type = 1; + // + string oid = 2; +} + +// +message SuggestEmotesReq { + // + int64 oid = 1; + // + int64 type = 2; +} + +// +message SuggestEmotesResp { + // + repeated Emote emotes = 1; +} + +// +message TextStyle { + // + enum FontStyle { + // + NORMAL = 0; + // + BOLD = 1; + } + + // + int32 font_size = 1; + // + TextStyle.FontStyle font_style = 2; + // + string text_day_color = 3; + // + string text_night_color = 4; +} + +// +message Topic { + // + string link = 1; + // + int64 id = 2; +} + +// +message UGCVideoSearchItem { + // + string title = 1; + // + string up_nickname = 2; + // + int64 duration = 3; + // + string cover = 4; +} + +// +message UpSelection { + // + int64 pending_count = 1; + // + int64 ignore_count = 2; +} + +// +message UpdateSingleReplyNotificationConfigReq { + // + int64 rpid = 1; + // + int64 type = 2; + // + int64 oid = 3; + // + ReplyNotificationSwitch push_switch = 4; +} + +// +message UpdateSingleReplyNotificationConfigResp { +} + +// +message Url { + // + message Extra { + // + enum GoodsShowType { + // + Popup = 0; + // + FullScreen = 1; + // + HalfScreen = 2; + } + + // + int64 goods_item_id = 1; + // + string goods_prefetched_cache = 2; + // + Url.Extra.GoodsShowType goods_show_type = 3; + // + bool is_word_search = 4; + // + int64 goods_cm_control = 5; + // + string goods_click_report = 6; + // + string goods_exposure_report = 7; + // + int64 goods_show_pop_window = 8; + } + + // + enum IconPosition { + // + Prefix = 0; + // + Suffix = 1; + } + + // + string title = 1; + // + int64 state = 2; + // + string prefix_icon = 3; + // + string app_url_schema = 4; + // + string app_name = 5; + // + string app_package_name = 6; + // + string click_report = 7; + // + bool is_half_screen = 8; + // + string exposure_report = 9; + // + Extra extra = 10; + // + bool underline = 11; + // + bool match_once = 12; + // + string pc_url = 13; + // + Url.IconPosition icon_position = 14; +} + +// +enum UserCallbackAction { + // + Dismiss = 0; +} + +// +message UserCallbackReply { +} + +// +message UserCallbackReq { + // + int64 mid = 1; + // + UserCallbackScene scene = 2; + // + UserCallbackAction action = 3; + // + int64 oid = 4; + // + int64 type = 5; + // + repeated int64 rpids = 6; +} + +// +enum UserCallbackScene { + // + Insert_UserCallbackScene = 0; + // + RecommendSuperbReply = 1; +} + +// +message VideoSearchItem { + // + oneof video_item { + // + UGCVideoSearchItem ugc = 2; + // + PGCVideoSearchItem pgc = 3; + } + // + SearchItemVideoSubType type = 1; +} + +// +message Vote { + // + int64 id = 1; + // + string title = 2; + // + int64 count = 3; +} + +// +message VoteCard { + // + message Option { + // + int64 idx = 1; + // + string desc = 2; + // + int64 count = 3; + } + + // + int64 vote_id = 1; + // + string title = 2; + // + int64 count = 3; + // + repeated VoteCard.Option options = 4; + // + int64 my_vote_option = 5; +} + +// +message WordSearchParam { + // + int64 shown_count = 1; +} + diff --git a/proto/bilibili/main/community/reply/v2.proto b/proto/bilibili/main/community/reply/v2.proto new file mode 100644 index 0000000..07ebdf3 --- /dev/null +++ b/proto/bilibili/main/community/reply/v2.proto @@ -0,0 +1,336 @@ +syntax = "proto3"; + +package bilibili.main.community.reply.v2; + +import "google/protobuf/wrappers.proto"; + +// +service Reply { + // + rpc SubjectDescription (SubjectDescriptionReq) returns (SubjectDescriptionReply); +} + +// +enum EditorIconState { + // + EditorIconState_DEFAULT = 0; + // + EditorIconState_ENABLE = 1; + // + EditorIconState_DISABLE = 2; + // + EditorIconState_HIDE = 3; +} + +// +message Emote { + // + int64 size = 1; + // + string url = 2; + // + string jump_url = 3; + // + string jump_title = 4; + // + int64 id = 5; + // + int64 package_id = 6; + // + string gif_url = 7; + // + string text = 8; + // + string webp_url = 9; +} + +// +message EmptyPage { + // + enum Action { + // + UNAVAILABLE = 0; + // + SHOW_KEYBOARD = 1; + // + SEND_REPLY_WITH_BOLD_TEXT = 2; + } + + // + message Button { + // + string title = 1; + // + EmptyPage.Action action = 2; + } + + // + message Text { + // + string raw = 1; + // + TextStyle style = 2; + // + EmptyPage.Action action = 3; + } + + // + string image_url = 1; + // + repeated EmptyPage.Text texts = 2; + // + Button left_button = 3; + // + Button right_button = 4; +} + +// +enum FunctionButtonType { + // + FunctionButtonType_DEFAULT = 0; + // + FunctionButtonType_Screenshot = 1; + // + FunctionButtonType_UploadPicture = 2; + // + FunctionButtonType_Vote = 3; + // + FunctionButtonType_Note = 4; + // + FunctionButtonType_Goods = 5; + // + FunctionButtonType_InsertContent = 6; + // + FunctionButtonType_Elec = 7; + // + FunctionButtonType_CMBizHelper = 8; +} + +// +message PlayerParams { + // + bool is_story = 1; + // + bool disable_filter_tag = 2; +} + +// +message Resource { + // + enum BizKind { + // + UNKNOWN = 0; + // + LIKE_SUCCESS = 1; + // + REPLY_SUCCESS = 2; + // + REPLY_EASTER_EGG = 3; + } + + // + Resource.BizKind biz_kind = 1; + // + string url = 2; +} + +// +message SubjectDescriptionReply { + // + message EmoteConfig { + // + bool jump_emote_disabled = 1; + // + repeated Emote suggest_emotes = 2; + } + + // + message FilterTag { + // + int64 id = 1; + // + string title = 2; + // + string event_id = 3; + // + bool support_pic_list = 4; + } + + // + message InputConfig { + // + message EditorIconConfig { + // + EditorIconState screenshot_icon_state = 1; + // + EditorIconState upload_picture_icon_state = 2; + // + EditorIconState vote_icon_state = 3; + // + EditorIconState note_icon_state = 4; + // + EditorIconState goods_icon_state = 5; + // + EditorIconState insert_content_icon_state = 6; + // + EditorIconState elec_icon_state = 7; + // + EditorIconState cm_biz_helper_icon_state = 8; + } + + // + message FunctionButton { + // + FunctionButtonType type = 1; + // + string name = 2; + // + EditorIconState state = 3; + // + string link = 4; + } + + // + message FunctionButtonGroup { + // + repeated SubjectDescriptionReply.InputConfig.FunctionButton buttons = 1; + } + + // + message GradePanel { + // + message CidGradeGroup { + // + int64 cid = 1; + // + string title = 2; + // + repeated SubjectDescriptionReply.InputConfig.GradePanel.Grade grades = 3; + } + + // + message Grade { + // + int64 id = 1; + // + string image = 2; + // + string title = 3; + // + google.protobuf.Int32Value default_score = 4; + // + bool disable_zero = 5; + // + string grade_prompt = 6; + } + + // + string prompt_text = 1; + // + repeated SubjectDescriptionReply.InputConfig.GradePanel.Grade grades = 2; + // + repeated SubjectDescriptionReply.InputConfig.GradePanel.CidGradeGroup cid_grade_groups = 3; + // + Grade single_grade = 4; + } + + // + bool disabled = 1; + // + string root_text = 2; + // + string child_text = 3; + // + string give_up_text = 4; + // + EditorIconConfig editor_icon_config = 5; + // + GradePanel grade_panel = 6; + // + FunctionButtonGroup func_buttons = 7; + } + + // + int64 count = 1; + // + InputConfig input = 2; + // + EmoteConfig emote = 3; + // + EmptyPage empty_page = 4; + // + repeated SubjectDescriptionReply.FilterTag support_filter_tags = 5; + // + repeated string preload_res_urls = 6; + // + repeated UserCallback user_callbacks = 7; + // + int64 up_mid = 8; + // + repeated Resource preload_resources = 9; + // + bool guest_limit = 10; +} + +// +message SubjectDescriptionReq { + // + SubjectID subject_id = 1; + // + PlayerParams player_params = 2; +} + +// +message SubjectID { + // + int64 oid = 1; + // + int64 type = 2; +} + +// +message TextStyle { + // + enum FontStyle { + // + NORMAL = 0; + // + BOLD = 1; + } + + // + int32 font_size = 1; + // + TextStyle.FontStyle font_style = 2; + // + string text_day_color = 3; + // + string text_night_color = 4; +} + +// +message UserCallback { + // + UserCallbackScene scene = 1; + // + UserCallbackAction action = 2; +} + +// +enum UserCallbackAction { + // + USER_CALLBACK_ACTION_DEFAULT = 0; + // + USER_CALLBACK_ACTION_DISMISS = 1; +} + +// +enum UserCallbackScene { + // + USER_CALLBACK_SCENE_DEFAULT = 0; + // + USER_CALLBACK_SCENE_INSERT = 1; + // + USER_CALLBACK_SCENE_RECOMMEND_SUPERB_REPLY = 2; +} + diff --git a/proto/bilibili/mall/tab3/dynamic/v1.proto b/proto/bilibili/mall/tab3/dynamic/v1.proto new file mode 100644 index 0000000..5b9c405 --- /dev/null +++ b/proto/bilibili/mall/tab3/dynamic/v1.proto @@ -0,0 +1,316 @@ +syntax = "proto3"; + +package bilibili.mall.tab3.dynamic.v1; + +import "bilibili/app/dynamic/v2.proto"; + +// +service Opus { + // + rpc OpusDetail (OpusDetailReq) returns (OpusDetailResp); +} + +// +message AuthorInfo { + // + string face = 1; + // + int64 mid = 2; + // + string name = 3; + // + RelationInfo relation_info = 4; + // + LiveInfo live_info = 5; + // + string link = 6; + // + string right_icon = 7; + // + string right_icon_dark = 8; + // + string nickname_color = 9; + // + string icon = 10; +} + +// +message Bottom { + // + bilibili.app.dynamic.v2.ModuleButtom module_buttom = 1; + // + bilibili.app.dynamic.v2.DynModuleType module_type = 2; +} + +// +message IconInfo { + // + string icon_url = 1; + // + string icon_night_url = 2; + // + int32 icon_width = 3; + // + int32 icon_height = 4; +} + +// +message IpCity { + // + bilibili.app.dynamic.v2.ModuleCopyright module_copyright = 1; + // + bilibili.app.dynamic.v2.DynModuleType module_type = 2; +} + +// +message ItemInfoDescVO { + // + int64 items_id = 1; + // + string name = 2; + // + string img = 3; + // + string price = 4; + // + string price_symbol = 5; + // + string cache = 6; + // + string same_kind_desc = 7; + // + int32 count = 8; + // + string url = 9; + // + string guide_text = 10; +} + +// +message LiveInfo { + // + int32 status = 1; + // + string icon = 2; + // + string dark_icon = 3; + // + string live_link = 4; +} + +// +message MallBenefit { + // + repeated MallTagInfo mall_tags = 1; +} + +// +message MallTagInfo { + // + string tag_type = 1; + // + string tag_id = 2; + // + string name = 3; + // + IconInfo icon = 4; + // + IconInfo name_suffix_icon = 5; + // + string url = 6; +} + +// +message OpusDetailReq { + // + int64 dyn_id = 1; + // + string ad_extra = 2; + // + int32 local_time = 3; +} + +// +message OpusDetailResp { + // + bilibili.app.dynamic.v2.OpusItem opus_item = 1; + // + TitleInfo title = 2; + // + AuthorInfo author_info = 3; + // + IpCity ip_city = 4; + // + Bottom bottom = 5; + // + ItemInfoDescVO item_info_desc_v_o = 6; + // + repeated ItemInfoDescVO items_info_v_o_s = 7; + // + Pic pic = 8; + // + int64 pub_time = 9; + // + TopicInfo topic_info = 10; + // + string item_scene = 11; + // + ReserveInfo reserve_info = 12; + // + ShareInfo share_info = 13; + // + MallBenefit mall_benefit = 14; + // + map track_map = 15; + // + string item_type = 16; +} + +// +message Pic { + // + repeated PicInfo pics = 1; + // + string style = 2; +} + +// +message PicInfo { + // + string url = 1; + // + double width = 2; + // + double height = 3; + // + double size = 4; +} + +// +message RelationInfo { + // + int32 status = 1; + // + string icon = 2; + // + string dark_icon = 3; +} + +// +message ReserveInfo { + // + int64 sid = 1; + // + string title = 2; + // + int64 total = 3; + // + string total_str = 4; + // + string live_time_capsule = 5; + // + string live_time_float = 6; + // + UpActReserveRelationLotteryType lottery_type = 7; + // + UpActReserveRelationPrizeInfo prize_info = 8; + // + string up_name_str = 9; + // + string avatar = 10; + // + int64 is_follow = 11; + // + string desc = 12; + // + int64 live_plan_start_time = 13; + // + ReserveState state = 14; + // + map state_map = 15; + // + string live_room_url = 16; + // + string prize_info_text = 17; + // + int64 room_id = 18; +} + +// +enum ReserveState { + // + INVALID = 0; + // + Reserve = 1; + // + PrizeReserve = 2; + // + CancelReserve = 3; + // + Cancel = 4; + // + PrizeCancel = 5; + // + Going = 6; + // + End = 7; + // + Expired = -2; + // + Canceled = -1; +} + +// +message ShareInfo { + // + string share_id = 1; + // + string share_origin = 2; + // + int64 oid = 3; + // + string title = 4; + // + string sub_title = 5; + // + string img_url = 6; + // + string link_url = 7; + // + bool share = 8; + // + string out_link_url = 9; +} + +// +message TitleInfo { + // + repeated bilibili.app.dynamic.v2.Module modules = 1; +} + +// +message TopicInfo { + // + int64 topic_id = 1; + // + string topic_name = 2; + // + string jump_url = 3; +} + +// +enum UpActReserveRelationLotteryType { + // + UpActReserveRelationLotteryTypeDefault = 0; + // + UpActReserveRelationLotteryTypeCron = 1; +} + +// +message UpActReserveRelationPrizeInfo { + // + string text = 1; + // + string jump_url = 2; +} + diff --git a/proto/bilibili/mall/tab3/playerunite/ugcanymodel.proto b/proto/bilibili/mall/tab3/playerunite/ugcanymodel.proto new file mode 100644 index 0000000..b5f11c1 --- /dev/null +++ b/proto/bilibili/mall/tab3/playerunite/ugcanymodel.proto @@ -0,0 +1,48 @@ +syntax = "proto3"; + +package bilibili.mall.tab3.playerunite.ugcanymodel; + +// +message ButtonStyle { + // + string text = 1; + // + string text_color = 2; + // + string bg_color = 3; + // + string jump_link = 4; +} + +// +message PlayLimit { + // + PlayLimitCode code = 1; + // + string message = 2; + // + string sub_message = 3; + // + ButtonStyle button = 4; +} + +// +enum PlayLimitCode { + // + PLC_UNKNOWN = 0; + // + PLC_UGCNOTPAYED = 1; + // + PLC_ChargingPlusNotPass = 2; + // + PLC_ChargingPlusUpgrade = 3; + // + PLC_ChargingPlusReject = 4; +} + +// +message UGCAnyModel { + // + PlayLimit play_limit = 1; +} + diff --git a/proto/bilibili/mall/tab3/playerunite/v1.proto b/proto/bilibili/mall/tab3/playerunite/v1.proto new file mode 100644 index 0000000..a934754 --- /dev/null +++ b/proto/bilibili/mall/tab3/playerunite/v1.proto @@ -0,0 +1,49 @@ +syntax = "proto3"; + +package bilibili.mall.tab3.playerunite.v1; + +import "bilibili/playershared.proto"; +import "google/protobuf/any.proto"; + +// +service Player { + // + rpc PlayViewUnite (PlayViewUniteReq) returns (PlayViewUniteReply); +} + +// +message PlayViewUniteReply { + // + bilibili.playershared.VodInfo vod_info = 1; + // + bilibili.playershared.PlayArcConf play_arc_conf = 2; + // + bilibili.playershared.PlayDeviceConf play_device_conf = 3; + // + bilibili.playershared.Event event = 4; + // + google.protobuf.Any supplement = 5; + // + bilibili.playershared.PlayArc play_arc = 6; + // + bilibili.playershared.QnTrialInfo qn_trial_info = 7; + // + bilibili.playershared.History history = 8; + // + bilibili.playershared.ViewInfo view_info = 9; +} + +// +message PlayViewUniteReq { + // + bilibili.playershared.VideoVod vod = 1; + // + string spmid = 2; + // + string from_spmid = 3; + // + map extra_content = 4; + // + string bvid = 5; +} + diff --git a/proto/bilibili/mall/tab3/viewunite/common.proto b/proto/bilibili/mall/tab3/viewunite/common.proto new file mode 100644 index 0000000..faaad62 --- /dev/null +++ b/proto/bilibili/mall/tab3/viewunite/common.proto @@ -0,0 +1,2187 @@ +syntax = "proto3"; + +package bilibili.mall.tab3.viewunite.common; + +import "bilibili/dagw/component/avatar/v1.proto"; +import "bilibili/pagination.proto"; +import "google/protobuf/any.proto"; + +// +message ActBannerItem { + // + string url = 1; + // + string cover = 2; + // + JumpType jump_type = 3; + // + map report = 4; +} + +// +message ActPageItems { + // + repeated ActBannerItem item = 1; + // + ShowStyle show_style = 2; + // + string title = 3; +} + +// +message Activity { + // + int32 id = 1; + // + string title = 2; + // + string link = 3; + // + string cover = 4; + // + int32 type = 5; + // + string ab = 6; + // + string show_name = 7; + // + string picurl = 8; + // + string picurl_selected = 9; + // + string h5_link = 10; + // + string jump_mode = 11; + // + repeated Item items = 12; +} + +// +message ActivityEntrance { + // + string activity_cover = 1; + // + string activity_title = 2; + // + string word_tag = 3; + // + string activity_subtitle = 4; + // + string activity_link = 5; + // + int32 activity_type = 6; + // + int32 reserve_id = 7; + // + int32 status = 8; + // + repeated User upper_list = 9; + // + map report = 10; +} + +// +message ActivityEntranceModule { + // + repeated ActivityEntrance activity_entrance = 1; +} + +// +message ActivityReserve { + // + string title = 1; + // + StatInfo vt = 2; + // + StatInfo danmaku = 3; + // + ReserveButton button = 4; +} + +// +message ActivityResource { + // + string mod_pool_name = 1; + // + string mod_resource_name = 2; +} + +// +message ActivityTab { + // + int32 id = 1; + // + string title = 2; + // + int32 type = 3; + // + string show_name = 4; + // + string picurl = 5; + // + string picurl_selected = 6; + // + string h5_link = 7; + // + string link = 8; + // + int32 link_type = 9; + // + int64 biz_key = 10; + // + string desc = 11; + // + string act_ext = 12; + // + map report = 13; +} + +// +message AggEpCard { + // + string title = 1; + // + string cover = 2; + // + string icon = 3; + // + int32 num = 4; + // + string jump_url = 5; +} + +// +message AggEps { + // + repeated AggEpCard agg_ep_cards = 1; + // + int32 place_index = 2; +} + +// +message AttentionRecommend { +} + +// +enum AttentionRelationStatus { + // + ARS_NONE = 0; + // + ARS_N0RELATION = 1; + // + ARS_FOLLOWHIM = 2; + // + ARS_FOLLOWME = 3; + // + ARS_BUDDY = 4; + // + ARS_SPECIAL = 5; + // + ARS_CANCELBLOCK = 6; +} + +// +message Audio { + // + map audio_info = 1; +} + +// +message AudioInfo { + // + string title = 1; + // + string cover_url = 2; + // + int64 song_id = 3; + // + int64 play_count = 4; + // + int64 reply_count = 5; + // + int64 upper_id = 6; + // + string entrance = 7; + // + int64 song_attr = 8; +} + +// +message BadgeInfo { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + int32 bg_style = 8; + // + string img = 9; + // + int32 type = 10; +} + +// +message Banner { + // + string title = 1; + // + repeated RelateItem relate_item = 2; +} + +// +message BizFavParam { + // + int64 season_id = 1; +} + +// +message BizReserveActivityParam { + // + int64 activity_id = 1; + // + string from = 2; + // + string type = 3; + // + int64 oid = 4; + // + int64 reserve_id = 5; +} + +// +message Button { + // + string title = 1; + // + string left_strikethrough_text = 2; + // + string type = 3; + // + string link = 4; + // + BadgeInfo badge_info = 5; + // + string sub_title = 6; +} + +// +message CardBasicInfo { + // + string title = 1; + // + string desc = 2; + // + string cover = 3; + // + string uri = 4; + // + string track_id = 5; + // + string unique_id = 6; + // + int64 from_source_type = 7; + // + string from_source_id = 8; + // + int64 material_id = 9; + // + string cover_gif = 10; + // + Owner author = 11; + // + int64 id = 12; + // + string from = 13; + // + string from_spmid_suffix = 14; + // + string report_flow_data = 15; +} + +// +message CardStyle { + // + int32 id = 1; + // + string name = 2; +} + +// +message Celebrity { + // + int32 id = 1; + // + string name = 2; + // + string role = 3; + // + string avatar = 4; + // + string short_desc = 5; + // + string desc = 6; + // + string character_avatar = 7; + // + string link = 8; + // + int64 mid = 9; + // + int32 is_follow = 10; + // + string occupation_name = 11; + // + OccupationType occupation_type = 12; + // + int32 relate_attr = 13; + // + string small_avatar = 14; + // + map report = 15; + // + OfficialVerify official = 16; +} + +// +message CellFluid { + // + string top_base_color = 1; + // + string top_split_color = 2; + // + string top_text_color = 3; +} + +// +message CharacterGroup { + // + string title = 1; + // + repeated Celebrity characters = 2; +} + +// +message Characters { + // + repeated CharacterGroup groups = 1; +} + +// +message CoinExtend { + // + string coin_app_zip_icon = 1; + // + string coin_app_icon1 = 2; + // + string coin_app_icon2 = 3; + // + string coin_app_icon3 = 4; + // + string coin_app_icon4 = 5; +} + +// +message CombinationEp { + // + int32 id = 1; + // + int32 section_id = 2; + // + string title = 3; + // + int32 can_ord_desc = 4; + // + string more = 5; + // + repeated int32 episode_ids = 6; + // + repeated ViewEpisode episodes = 7; + // + string split_text = 8; + // + Style module_style = 9; + // + repeated SerialSeason serial_season = 10; + // + SectionData section_data = 11; +} + +// +message ContractText { + // + string title = 1; + // + string subtitle = 2; +} + +// +message Covenanter { + // + int32 is_follow_display = 1; + // + ContractText text = 2; + // + int32 is_interact_display = 3; +} + +// +message DeliveryData { + // + oneof data { + // + Activity activity = 4; + // + Characters characters = 5; + // + TheatreHotTopic theatre_hot_topic = 6; + // + AggEps agg_eps = 7; + // + ActPageItems act_page_items = 10; + } + // + string title = 1; + // + Style module_style = 2; + // + string more = 3; + // + int32 id = 8; + // + map report = 9; +} + +// +message Desc { + // + string info = 1; + // + string title = 2; +} + +// +enum DescType { + // + DescTypeUnknown = 0; + // + DescTypeText = 1; + // + DescTypeAt = 2; +} + +// +message DescV2 { + // + string text = 1; + // + DescType type = 2; + // + string uri = 3; + // + int64 rid = 4; +} + +// +message Dimension { + // + int64 width = 1; + // + int64 height = 2; + // + int64 rotate = 3; +} + +// +message DislikeReasons { + // + int64 id = 1; + // + int64 mid = 2; + // + int32 rid = 3; + // + int64 tag_id = 4; + // + string name = 5; +} + +// +message ExtTab { + // + ExtType ext_type = 1; + // + string data = 2; +} + +// +enum ExtType { + // + ExtNone = 0; + // + ExtDataCenter = 1; + // + ExtDataEarnings = 2; +} + +// +message FollowLayer { + // + Staff staff = 1; + // + Desc desc = 2; + // + map report = 3; +} + +// +message Headline { + // + Label label = 1; + // + string content = 2; +} + +// +message HistoryNode { + // + int64 node_id = 1; + // + string title = 2; + // + int64 cid = 3; +} + +// +message Honor { + // + string icon = 1; + // + string icon_night = 2; + // + string text = 3; + // + string text_extra = 4; + // + string text_color = 5; + // + string text_color_night = 6; + // + string bg_color = 7; + // + string bg_color_night = 8; + // + string url = 9; + // + string url_text = 10; + // + HonorType type = 11; + // + HonorJumpType honor_jump_type = 12; + // + map report = 13; +} + +// +enum HonorJumpType { + // + HONOR_JUMP_TYPE_UNKNOWN = 0; + // + HONOR_OPEN_URL = 1; + // + HONOR_HALF_SCREEN = 2; +} + +// +enum HonorType { + // + HONOR_NONE = 0; + // + PLAYLET = 1; + // + ARGUE = 2; + // + NOTICE = 3; + // + GUIDANCE = 4; + // + HONOR_BILI_RANK = 5; + // + HONOR_WEEKLY_RANK = 6; + // + HONOR_DAILY_RANK = 7; + // + HONOR_CHANNEL = 8; + // + HONOR_MUSIC = 9; + // + HONOR_REPLY = 10; +} + +// +message IconFont { + // + string name = 1; + // + string text = 2; +} + +// +message Interaction { + // + int64 ep_id = 1; + // + HistoryNode history_node = 2; + // + int64 graph_version = 3; + // + string msg = 4; + // + bool is_interaction = 5; +} + +// +message Item { + // + string link = 1; + // + string cover = 2; +} + +// +enum JumpType { + // + JUMP_TYPE_UNKNOWN = 0; + // + OPEN_URL = 1; + // + REFRESH = 2; + // + HALF_SCREEN = 3; + // + OPEN_URL_BY_OUTER_BROWSER = 4; +} + +// +message KingPos { + // + oneof extend { + // + LikeExtend like = 6; + // + CoinExtend coin = 7; + } + // + bool disable = 1; + // + string icon = 2; + // + KingPositionType type = 3; + // + string disable_toast = 4; + // + string checked_toast = 5; +} + +// +message KingPosition { + // + repeated KingPos king_pos = 1; + // + repeated KingPos extend = 2; +} + +// +enum KingPositionType { + // + KING_POS_UNSPECIFIED = 0; + // + LIKE = 1; + // + DISLIKE = 2; + // + COIN = 3; + // + FAV = 4; + // + SHARE = 5; + // + CACHE = 6; + // + DANMAKU = 7; +} + +// +message Label { + // + int32 type = 1; + // + string uri = 2; + // + string icon = 3; + // + string icon_night = 4; + // + int64 icon_width = 5; + // + int64 icon_height = 6; + // + string lottie = 7; + // + string lottie_night = 8; +} + +// +message LikeComment { + // + string reply = 1; + // + string title = 2; +} + +// +message LikeExtend { + // + UpLikeImg triple_like = 1; + // + string like_animation = 2; + // + PlayerAnimation player_animation = 3; + // + ActivityResource resource = 4; +} + +// +message Live { + // + int64 mid = 1; + // + int64 room_id = 2; + // + string uri = 3; + // + string endpage_uri = 4; +} + +// +message LiveOrder { + // + int64 sid = 1; + // + string text = 2; + // + int64 live_plan_start_time = 3; + // + bool is_follow = 4; + // + int64 follow_count = 5; +} + +// +message Mine { + // + double amount = 1; + // + int32 rank = 2; + // + string msg = 3; +} + +// +message Module { + // + oneof data { + // + OgvIntroduction ogv_introduction = 2; + // + UgcIntroduction ugc_introduction = 3; + // + KingPosition king_position = 4; + // + Headline head_line = 5; + // + OgvTitle ogv_title = 6; + // + Honor honor = 7; + // + UserList list = 8; + // + Staffs staffs = 9; + // + ActivityReserve activity_reserve = 10; + // + LiveOrder live_order = 11; + // + SectionData section_data = 12; + // + DeliveryData delivery_data = 13; + // + FollowLayer follow_layer = 14; + // + OgvSeasons ogv_seasons = 15; + // + UgcSeasons ugc_season = 16; + // + OgvLiveReserve ogv_live_reserve = 17; + // + CombinationEp combination_ep = 18; + // + Sponsor sponsor = 19; + // + ActivityEntranceModule activity_entrance_module = 20; + // + SerialSeason serial_season = 21; + // + Relates relates = 22; + // + Banner banner = 23; + // + Audio audio = 24; + // + LikeComment like_comment = 25; + // + AttentionRecommend attention_recommend = 26; + // + Covenanter covenanter = 27; + // + SpecialTag special_tag = 28; + // + UpDataModule up_data_module = 29; + // + ProfessionApproval profession_approval = 30; + } + // + ModuleType type = 1; +} + +// +enum ModuleType { + // + UNKNOWN = 0; + // + OGV_INTRODUCTION = 1; + // + OGV_TITLE = 2; + // + UGC_HEADLINE = 3; + // + UGC_INTRODUCTION = 4; + // + KING_POSITION = 5; + // + MASTER_USER_LIST = 6; + // + STAFFS = 7; + // + HONOR = 8; + // + OWNER = 9; + // + PAGE = 10; + // + ACTIVITY_RESERVE = 11; + // + LIVE_ORDER = 12; + // + POSITIVE = 13; + // + SECTION = 14; + // + RELATE = 15; + // + PUGV = 16; + // + COLLECTION_CARD = 17; + // + ACTIVITY = 18; + // + CHARACTER = 19; + // + FOLLOW_LAYER = 20; + // + OGV_SEASONS = 21; + // + UGC_SEASON = 22; + // + OGV_LIVE_RESERVE = 23; + // + COMBINATION_EPISODE = 24; + // + SPONSOR = 25; + // + ACTIVITY_ENTRANCE = 26; + // + THEATRE_HOT_TOPIC = 27; + // + RELATED_RECOMMEND = 28; + // + PAY_BAR = 29; + // + BANNER = 30; + // + AUDIO = 31; + // + AGG_CARD = 32; + // + SINGLE_EP = 33; + // + LIKE_COMMENT = 34; + // + ATTENTION_RECOMMEND = 35; + // + COVENANTER = 36; + // + SPECIALTAG = 37; + // + UPDATA = 38; + // + PROFESSION_APPROVAL = 39; +} + +// +message MultiViewEp { + // + int64 ep_id = 1; +} + +// +message NewEp { + // + int32 id = 1; + // + string title = 2; + // + string desc = 3; + // + int32 is_new = 4; + // + string more = 5; + // + string cover = 6; + // + string index_show = 7; +} + +// +enum OccupationType { + // + STAFF = 0; + // + CAST = 1; + // + UNKNOWN_TYPE = -1; +} + +// +message OfficialVerify { + // + int32 type = 1; + // + string desc = 2; +} + +// +message OgvIntroduction { + // + string followers = 1; + // + string score = 2; + // + StatInfo play_data = 3; +} + +// +message OgvLiveReserve { + // + int64 reserve_id = 1; + // + string title = 2; + // + string icon = 3; + // + string night_icon = 4; + // + string click_button = 5; + // + string link = 6; + // + int32 follow_video_is_reserve_live = 7; + // + string bg_color = 8; + // + string night_bg_color = 9; + // + string text_color = 10; + // + string night_text_color = 11; + // + string bt_bg_color = 12; + // + string bt_frame_color = 13; + // + string night_bt_bg_color = 14; + // + string night_bt_frame_color = 15; + // + int32 active_type = 16; + // + int32 reserve_status = 17; + // + string bt_text_color = 18; + // + string night_bt_text_color = 19; + // + map report = 20; +} + +// +message OgvSeasons { + // + string title = 1; + // + repeated SerialSeason serial_season = 2; + // + SerialSeasonCoverStyle style = 3; +} + +// +message OgvTitle { + // + string title = 1; + // + BadgeInfo badge_info = 2; + // + int32 is_show_btn_animation = 3; + // + int32 follow_video_is_reserve_live = 4; + // + int64 reserve_id = 5; + // + TitleDeliveryButton title_delivery_button = 6; +} + +// +message Owner { + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar = 1; + // + string url = 2; + // + string title = 3; + // + string fans = 4; + // + string arc_count = 5; + // + AttentionRelationStatus attention = 6; + // + AttentionRelationStatus attention_relation = 7; + // + string pub_location = 8; + // + Vip vip = 9; + // + string title_url = 10; + // + string face = 11; + // + int64 mid = 12; + // + OfficialVerify official_verify = 13; + // + Live live = 14; + // + int64 fans_num = 15; + // + repeated int64 assists = 16; +} + +// +message Page { + // + int64 cid = 1; + // + string part = 2; + // + int64 duration = 3; + // + string desc = 4; + // + Dimension dimension = 5; + // + string dl_title = 6; + // + string dl_subtitle = 7; +} + +// +message Pendant { + // + int32 pid = 1; + // + string name = 2; + // + string image = 3; +} + +// +message PlayerAnimation { + // + string player_icon = 1; + // + string player_triple_icon = 2; +} + +// +message PointActivity { + // + string tip = 1; + // + string content = 2; + // + string link = 3; +} + +// +message PowerIconStyle { + // + string icon_url = 1; + // + string icon_night_url = 2; + // + int64 icon_width = 3; + // + int64 icon_height = 4; +} + +// +message ProfessionApproval { + // + string title = 1; +} + +// +message Rank { + // + string icon = 1; + // + string icon_night = 2; + // + string text = 3; +} + +// +message RankInfo { + // + string icon_url_night = 1; + // + string icon_url_day = 2; + // + string bkg_night_color = 3; + // + string bkg_day_color = 4; + // + string font_night_color = 5; + // + string font_day_color = 6; + // + string rank_content = 7; + // + string rank_link = 8; +} + +// +message Rating { + // + string score = 1; + // + int32 count = 2; +} + +// +message RelateAVCard { + // + int64 duration = 1; + // + int64 cid = 2; + // + Dimension dimension = 3; + // + Stat stat = 4; + // + string jump_url = 5; + // + bool show_up_name = 6; + // + BadgeInfo rcmd_reason = 7; +} + +// +message RelateBangumiAvCard { + // + BadgeInfo badge = 1; + // + Stat stat = 2; + // + Rating rating = 3; +} + +// +message RelateBangumiCard { + // + int32 season_id = 1; + // + int32 season_type = 2; + // + NewEp new_ep = 3; + // + Stat stat = 4; + // + Rating rating = 5; + // + string rcmd_reason = 6; + // + BadgeInfo badge_info = 7; + // + string goto_type = 8; + // + map report = 9; +} + +// +message RelateBangumiResourceCard { + // + int32 type = 1; + // + string scover = 2; + // + int32 re_type = 3; + // + string re_value = 4; + // + string corner = 5; + // + int32 card = 6; + // + string siz = 7; + // + int32 position = 8; + // + string rcmd_reason = 9; + // + string label = 10; + // + map report = 11; + // + string goto_type = 12; +} + +// +message RelateBangumiUGCCard { + // + BadgeInfo badge = 1; + // + Stat stat = 2; + // + Rating rating = 3; +} + +// +message RelateCMCard { + // + int64 aid = 1; + // + google.protobuf.Any source_content = 2; + // + int64 duration = 3; + // + Stat stat = 4; +} + +// +message RelateCard { + // + oneof card { + // + RelateAVCard av = 2; + // + RelateBangumiCard bangumi = 3; + // + RelateBangumiResourceCard resource = 4; + // + RelateGameCard game = 5; + // + RelateCMCard cm = 6; + // + RelateLiveCard live = 7; + // + RelateBangumiAvCard bangumi_av = 8; + // + RelatedAICard ai_card = 9; + // + RelateBangumiUGCCard bangumi_ugc = 13; + // + RelateSpecial special = 14; + } + // + RelateCardType relate_card_type = 1; + // + RelateThreePoint three_point = 10; + // + google.protobuf.Any cm_stock = 11; + // + CardBasicInfo basic_info = 12; +} + +// +enum RelateCardType { + // + CARD_TYPE_UNKNOWN = 0; + // + AV = 1; + // + BANGUMI = 2; + // + RESOURCE = 3; + // + GAME = 4; + // + CM = 5; + // + LIVE = 6; + // + AI_RECOMMEND = 7; + // + BANGUMI_AV = 8; + // + BANGUMI_UGC = 9; + // + SPECIAL = 10; +} + +// +message RelateConfig { + // + int64 valid_show_m = 1; + // + int64 valid_show_n = 2; + // + bilibili.pagination.Pagination pagination = 3; + // + bool can_load_more = 4; +} + +// +message RelateDislike { + // + string title = 1; + // + string sub_title = 2; + // + string closed_sub_title = 3; + // + string paste_text = 4; + // + string closed_paste_text = 5; + // + repeated DislikeReasons dislike_reason = 6; + // + string toast = 7; + // + string closed_toast = 8; +} + +// +message RelateGameCard { + // + int64 reserve_status = 1; + // + string reserve_status_text = 2; + // + string reserve = 3; + // + float rating = 4; + // + string tag_name = 5; + // + RankInfo rank_info = 6; + // + Button pack_info = 7; + // + Button notice = 8; + // + PowerIconStyle power_icon_style = 9; + // + string game_rcmd_reason = 10; + // + WikiInfo wiki_info = 11; + // + BadgeInfo badge = 12; +} + +// +message RelateItem { + // + string url = 1; + // + string cover = 2; + // + bool use_default_browser = 3; +} + +// +message RelateLiveCard { + // + int64 icon_type = 1; + // + string area_name = 2; + // + int64 watched_show = 3; + // + int64 live_status = 4; +} + +// +message RelateSpecial { + // + BadgeInfo badge = 1; + // + BadgeInfo rcmd_reason = 2; +} + +// +message RelateThreePoint { + // + RelateDislike dislike = 1; + // + RelateDislike feedback = 2; + // + bool watch_later = 3; + // + string dislike_report_data = 4; +} + +// +message RelatedAICard { + // + int64 aid = 1; + // + int64 duration = 2; + // + Staff up_info = 3; + // + Stat stat = 4; + // + map report = 5; + // + string goto_type = 6; +} + +// +message Relates { + // + repeated RelateCard cards = 1; + // + RelateConfig config = 2; +} + +// +enum ReserveBizType { + // + BizTypeNone = 0; + // + BizTypeReserveActivity = 1; + // + BizTypeFavSeason = 2; +} + +// +message ReserveButton { + // + oneof order_param { + // + BizReserveActivityParam reserve = 8; + // + BizFavParam fav = 9; + } + // + bool status = 1; + // + string text = 3; + // + string selected_text = 4; + // + ReserveBizType order_type = 7; +} + +// +message Rights { + // + int32 allow_download = 1; + // + int32 allow_review = 2; + // + int32 can_watch = 3; + // + string resource = 4; + // + int32 allow_dm = 5; + // + int32 allow_demand = 6; + // + int32 area_limit = 7; +} + +// +message SeasonHead { + // + string title = 1; + // + string intro = 2; + // + StatInfo vt = 3; + // + StatInfo danmaku = 4; +} + +// +message SeasonShow { + // + string button_text = 1; + // + string join_text = 2; + // + string rule_text = 3; + // + string checkin_text = 4; + // + string checkin_prompt = 5; +} + +// +enum SeasonType { + // + Unknown = 0; + // + Base = 1; + // + Good = 2; +} + +// +message SectionData { + // + int32 id = 1; + // + int32 section_id = 2; + // + string title = 3; + // + int32 can_ord_desc = 4; + // + string more = 5; + // + repeated int32 episode_ids = 6; + // + repeated ViewEpisode episodes = 7; + // + string split_text = 8; + // + Style module_style = 9; + // + string more_bottom_desc = 10; + // + repeated SerialSeason seasons = 11; + // + Button more_left = 12; + // + int32 type = 13; + // + map report = 14; +} + +// +message SerialSeason { + // + int32 season_id = 1; + // + string title = 2; + // + string season_title = 3; + // + int32 is_new = 4; + // + string cover = 5; + // + string badge = 6; + // + int32 badge_type = 7; + // + BadgeInfo badge_info = 8; + // + string link = 9; + // + string resource = 10; + // + NewEp new_ep = 11; + // + map report = 12; +} + +// +enum SerialSeasonCoverStyle { + // + TITLE = 0; + // + PICTURE = 1; + // + SERIAL_SEASON_COVER_STYLE_UNKNOWN = -1; +} + +// +enum ShowStyle { + // + SHOW_STYLE_UNKNOWN = 0; + // + ONE_ROW_ONE_COLUMN = 1; + // + ONE_ROW_MULTI_COLUMN = 2; + // + ONE_COLUMN_MULTI_ROW = 3; +} + +// +message SkipRange { + // + int32 start = 1; + // + int32 end = 2; +} + +// +message SpecialCell { + // + string icon = 1; + // + string icon_night = 2; + // + string text = 3; + // + string text_color = 4; + // + string text_color_night = 5; + // + string jump_url = 6; + // + string cell_type = 7; + // + string cell_bgcolor = 8; + // + string cell_bgcolor_night = 9; + // + string param = 10; + // + string page_title = 11; + // + string jump_type = 12; + // + string end_icon = 13; + // + string end_icon_night = 14; + // + CellFluid cell_fluid = 15; +} + +// +message SpecialTag { + // + repeated SpecialCell special_cell = 1; + // + bool refresh = 2; +} + +// +message Sponsor { + // + int64 total = 1; + // + int64 week = 2; + // + repeated SponsorRank rank_list = 3; + // + Mine mine = 4; + // + PointActivity point_activity = 5; + // + repeated Pendant pendants = 6; + // + repeated Threshold threshold = 7; +} + +// +message SponsorRank { + // + int64 uid = 1; + // + string msg = 2; + // + string uname = 3; + // + string face = 4; + // + Vip vip = 5; +} + +// +message Staff { + // + int64 mid = 1; + // + int32 attention = 2; + // + string title = 3; + // + string name = 4; + // + string face = 5; + // + OfficialVerify official = 6; + // + Vip vip = 7; + // + int32 label_style = 8; + // + string fans = 9; +} + +// +message Staffs { + // + repeated Staff staff = 1; + // + string title = 2; +} + +// +message Stat { + // + StatInfo vt = 1; + // + StatInfo danmaku = 2; + // + int64 reply = 3; + // + int64 fav = 4; + // + int64 coin = 5; + // + int64 share = 6; + // + int64 like = 7; + // + int64 follow = 8; +} + +// +message StatInfo { + // + int64 value = 1; + // + string text = 2; + // + string pure_text = 3; + // + string icon = 4; +} + +// +message Style { + // + int32 line = 1; + // + int32 hidden = 2; + // + repeated string show_pages = 3; +} + +// +message Tag { + // + int64 tag_id = 1; + // + string name = 2; + // + string uri = 3; + // + string tag_type = 4; +} + +// +message TheatreHotTopic { + // + int64 theatre_id = 1; + // + int64 theatre_set_id = 2; + // + string theatre_title = 3; + // + string background_image_url = 4; + // + string theatre_url = 5; + // + int64 hot_topic_id = 6; + // + int64 hot_topic_set_id = 7; + // + string hot_topic_title = 8; + // + string hot_topic_url = 9; + // + int32 is_subscribe = 10; + // + map report = 11; +} + +// +message Threshold { + // + int32 bp = 1; + // + int32 days = 2; + // + string days_text = 3; +} + +// +message TitleDeliveryButton { + // + string icon = 1; + // + string title = 2; + // + string link = 3; + // + map report = 4; +} + +// +message UgcEpisode { + // + int64 id = 1; + // + int64 aid = 2; + // + int64 cid = 3; + // + string title = 4; + // + string cover = 5; + // + string cover_right_text = 6; + // + Page page = 7; + // + StatInfo vt = 8; + // + StatInfo danmaku = 9; +} + +// +message UgcIntroduction { + // + repeated Tag tags = 1; + // + Rating rating = 2; + // + Rank rank = 3; + // + repeated ViewMaterial bgm = 4; + // + repeated ViewMaterial sticker = 5; + // + repeated ViewMaterial video_source = 6; + // + int64 pubdate = 7; + // + repeated DescV2 desc = 8; +} + +// +message UgcSeasonActivity { + // + int32 type = 1; + // + int64 oid = 2; + // + int64 activity_id = 3; + // + string title = 4; + // + string intro = 5; + // + int32 day_count = 6; + // + int32 user_count = 7; + // + int64 join_deadline = 8; + // + int64 activity_deadline = 9; + // + int32 checkin_view_time = 10; + // + bool new_activity = 11; + // + UserActivity user_activity = 12; + // + SeasonShow season_show = 13; +} + +// +message UgcSeasons { + // + int64 id = 1; + // + string title = 2; + // + string cover = 3; + // + string supernatant_title = 4; + // + repeated UgcSection section = 5; + // + string union_title = 6; + // + SeasonHead head = 7; + // + int64 ep_count = 8; + // + SeasonType season_type = 9; + // + UgcSeasonActivity activity = 10; + // + repeated string season_ability = 11; + // + string season_title = 12; +} + +// +message UgcSection { + // + int64 id = 1; + // + string title = 2; + // + int64 type = 3; + // + repeated UgcEpisode episodes = 4; +} + +// +message UpDataModule { + // + repeated ExtTab ext_tabs = 1; + // + int32 idx = 2; + // + string protocol_url = 3; +} + +// +message UpLikeImg { + // + string pre_img = 1; + // + string suc_img = 2; + // + string content = 3; + // + int64 type = 4; +} + +// +message User { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + int64 follower = 4; +} + +// +message UserActivity { + // + int32 user_state = 1; + // + int64 last_checkin_date = 2; + // + int32 checkin_today = 3; + // + int32 user_day_count = 4; + // + int32 user_view_time = 5; + // + string portrait = 6; +} + +// +message UserList { + // + repeated User list = 1; + // + string title = 2; +} + +// +message UserStatus { + // + int32 show = 1; + // + int32 follow = 2; +} + +// +message ViewEpisode { + // + int64 ep_id = 1; + // + string badge = 2; + // + int32 badge_type = 3; + // + BadgeInfo badge_info = 4; + // + int32 duration = 5; + // + int32 status = 6; + // + string cover = 7; + // + int64 aid = 8; + // + string title = 9; + // + string movie_title = 10; + // + string subtitle = 11; + // + string long_title = 12; + // + string toast_title = 13; + // + int64 cid = 14; + // + string from = 15; + // + string share_url = 16; + // + string share_copy = 17; + // + string short_link = 18; + // + string vid = 19; + // + string release_date = 20; + // + Dimension dimension = 21; + // + Rights rights = 22; + // + Interaction interaction = 23; + // + string bvid = 24; + // + int32 archive_attr = 25; + // + string link = 26; + // + string link_type = 27; + // + string bmid = 28; + // + int64 pub_time = 29; + // + int32 pv = 30; + // + int32 ep_index = 31; + // + int32 section_index = 32; + // + repeated Staff up_infos = 33; + // + Staff up_info = 34; + // + string dialog_type = 35; + // + string toast_type = 36; + // + repeated MultiViewEp multi_view_eps = 37; + // + bool is_sub_view = 38; + // + bool is_view_hide = 39; + // + string jump_link = 40; + // + Stat stat_for_unity = 41; + // + map report = 42; +} + +// +message ViewMaterial { + // + int64 oid = 1; + // + int64 mid = 2; + // + string title = 3; + // + string author = 4; + // + string jump_url = 5; +} + +// +message Vip { + // + int32 type = 1; + // + int32 vip_status = 2; + // + int32 theme_type = 3; + // + VipLabel label = 4; + // + int32 is_vip = 5; +} + +// +message VipLabel { + // + string path = 1; + // + string text = 2; + // + string label_theme = 3; +} + +// +message WikiInfo { + // + string wiki_label = 1; + // + string wiki_url = 2; +} + diff --git a/proto/bilibili/mall/tab3/viewunite/ugcanymodel.proto b/proto/bilibili/mall/tab3/viewunite/ugcanymodel.proto new file mode 100644 index 0000000..565dd37 --- /dev/null +++ b/proto/bilibili/mall/tab3/viewunite/ugcanymodel.proto @@ -0,0 +1,136 @@ +syntax = "proto3"; + +package bilibili.mall.tab3.viewunite.ugcanymodel; + +import "bilibili/mall/tab3/viewunite/common.proto"; + +// +message Dislike { + // + string title = 1; + // + string subtitle = 2; + // + repeated DislikeReason reasons = 3; +} + +// +message DislikeReason { + // + int64 id = 1; + // + int64 mid = 2; + // + int32 rid = 3; + // + int64 tag_id = 4; + // + string name = 5; +} + +// +message ElecRank { + // + repeated ElecRankItem list = 1; + // + int64 count = 2; + // + string text = 3; +} + +// +message ElecRankItem { + // + string avatar = 1; + // + string nickname = 2; + // + string message = 3; + // + int64 mid = 4; +} + +// +message Premiere { + // + PremiereState premiere_state = 1; + // + int64 start_time = 2; + // + int64 service_time = 3; + // + int64 room_id = 4; +} + +// +message PremiereReserve { + // + int64 reserve_id = 1; + // + int64 count = 2; + // + bool is_follow = 3; +} + +// +message PremiereResource { + // + Premiere premiere = 1; + // + PremiereReserve reserve = 2; + // + PremiereText text = 3; +} + +// +enum PremiereState { + // + premiere_none = 0; + // + premiere_before = 1; + // + premiere_in = 2; + // + premiere_after = 3; +} + +// +message PremiereText { + // + string title = 1; + // + string subtitle = 2; + // + string online_text = 3; + // + string online_icon = 4; + // + string online_icon_dark = 5; + // + string intro_title = 6; + // + string intro_icon = 7; + // + string guidance_pulldown = 8; + // + string guidance_entry = 9; + // + string intro_icon_night = 10; +} + +// +message ViewUgcAny { + // + PremiereResource premiere = 1; + // + Dislike dislike = 2; + // + string short_link = 3; + // + string share_subtitle = 4; + // + repeated bilibili.mall.tab3.viewunite.common.Page pages = 5; + // + ElecRank elec_rank = 6; +} + diff --git a/proto/bilibili/mall/tab3/viewunite/v1.proto b/proto/bilibili/mall/tab3/viewunite/v1.proto new file mode 100644 index 0000000..0a6ec29 --- /dev/null +++ b/proto/bilibili/mall/tab3/viewunite/v1.proto @@ -0,0 +1,850 @@ +syntax = "proto3"; + +package bilibili.mall.tab3.viewunite.v1; + +import "bilibili/app/archive/middleware/v1.proto"; +import "bilibili/mall/tab3/viewunite/common.proto"; +import "bilibili/pagination.proto"; +import "bilibili/playershared.proto"; +import "google/protobuf/any.proto"; + +// +service View { + // + rpc ArcRefresh (ArcRefreshReq) returns (ArcRefreshReply); + // + rpc RelatesFeed (RelatesFeedReq) returns (RelatesFeedReply); + // + rpc View (ViewReq) returns (ViewReply); + // + rpc ViewProgress (ViewProgressReq) returns (ViewProgressReply); +} + +// +message ActivityResource { + // + string dark_text_color = 1; + // + string divider_color = 2; + // + string bg_color = 3; + // + string selected_bg_color = 4; + // + string text_color = 5; + // + string light_text_color = 6; +} + +// +message Arc { + // + int64 aid = 1; + // + int64 cid = 2; + // + int64 duration = 3; + // + bilibili.mall.tab3.viewunite.common.Stat stat = 4; + // + string bvid = 5; + // + int32 copyright = 6; + // + Rights right = 7; + // + string cover = 8; + // + int64 type_id = 9; + // + string title = 10; +} + +// +message ArcRefreshReply { + // + bilibili.mall.tab3.viewunite.common.Stat stat = 1; + // + SimpleReqUser req_user = 2; + // + SimpleArc arc = 3; + // + Online online = 4; + // + LikeConfig like_config = 5; +} + +// +message ArcRefreshReq { + // + int64 aid = 1; + // + string bvid = 2; +} + +// +message AttentionCard { + // + repeated ShowTime show_time = 1; +} + +// +message BizFollowVideoParam { + // + int64 season_id = 1; +} + +// +message BizJumpLinkParam { + // + string url = 1; +} + +// +message BizReserveActivityParam { + // + int64 activity_id = 1; + // + string from = 2; + // + string type = 3; + // + int64 oid = 4; + // + int64 reserve_id = 5; +} + +// +message BizReserveGameParam { + // + int64 game_id = 1; +} + +// +enum BizType { + // + BizTypeNone = 0; + // + BizTypeFollowVideo = 1; + // + BizTypeReserveActivity = 2; + // + BizTypeJumpLink = 3; + // + BizTypeFavSeason = 4; + // + BizTypeReserveGame = 5; +} + +// +message Button { + // + string title = 1; + // + string uri = 2; + // + string icon = 3; + // + JumpShowType jump_show_type = 4; +} + +// +message CM { + // + google.protobuf.Any cm_under_player = 1; + // + google.protobuf.Any ads_control = 2; + // + repeated google.protobuf.Any source_content = 3; +} + +// +message ChargingPlus { + // + bool pass = 1; + // + repeated PlayToast play_toast = 2; +} + +// +message Chronos { + // + string md5 = 1; + // + string file = 2; + // + string sign = 3; +} + +// +message ChronosParam { + // + string engine_version = 1; + // + string message_protocol = 2; + // + string service_key = 3; +} + +// +message CommandDm { + // + int64 id = 1; + // + int64 oid = 2; + // + int64 mid = 3; + // + string command = 4; + // + string content = 5; + // + int32 progress = 6; + // + string ctime = 7; + // + string mtime = 8; + // + string extra = 9; + // + string id_str = 10; +} + +// +message Config { + // + Online online = 1; + // + PlayerIcon player_icon = 2; + // + StoryEntrance story_entrance = 3; +} + +// +message ContractCard { + // + float display_progress = 1; + // + int64 display_accuracy = 2; + // + int64 display_duration = 3; + // + int32 show_mode = 4; + // + int32 page_type = 5; + // + UpperInfos upper = 6; + // + int32 is_follow_display = 7; + // + ContractText text = 8; + // + int64 follow_display_end_duration = 9; + // + int32 is_play_display = 10; + // + int32 is_interact_display = 11; + // + bool play_display_switch = 12; +} + +// +message ContractText { + // + string title = 1; + // + string subtitle = 2; + // + string inline_title = 3; +} + +// +message Control { + // + bool limit = 1; +} + +// +message DmResource { + // + repeated CommandDm command_dms = 1; + // + AttentionCard attention = 2; + // + repeated OperationCard cards = 3; +} + +// +enum ECode { + // + CODE_DEFAULT = 0; + // + CODE_404 = 1; + // + CODE_TEENAGER = 78301; +} + +// +message ECodeConfig { + // + string redirect_url = 1; +} + +// +message IconData { + // + string meta_json = 1; + // + string sprits_img = 2; +} + +// +message IntroductionTab { + // + string title = 1; + // + repeated bilibili.mall.tab3.viewunite.common.Module modules = 2; +} + +// +enum JumpShowType { + // + JST_DEFAULT = 0; + // + JST_FULLSCREEN = 1; + // + JST_HALFSCREEN = 2; +} + +// +message LikeConfig { + // + bilibili.mall.tab3.viewunite.common.UpLikeImg triple_like = 1; + // + string like_animation = 2; +} + +// +message Material { + // + string icon = 1; + // + string text = 2; + // + string url = 3; + // + MaterialBizType type = 4; + // + string param = 5; + // + string static_icon = 6; + // + string bg_color = 7; + // + string bg_pic = 8; + // + int32 jump_type = 9; + // + PageType page_type = 10; + // + bool need_login = 11; +} + +// +enum MaterialBizType { + // + NONE = 0; + // + ACTIVITY = 1; + // + BGM = 2; + // + EFFECT = 3; + // + SHOOT_SAME = 4; + // + SHOOT_TOGETHER = 5; + // + ACTIVITY_ICON = 6; + // + NEW_BGM = 7; +} + +// +enum MaterialSource { + // + DEFAULT = 0; + // + BIJIAN = 1; +} + +// +message Online { + // + bool online_show = 1; +} + +// +message OperationCard { + // + oneof param { + // + BizFollowVideoParam follow = 7; + // + BizReserveActivityParam reserve = 8; + // + BizJumpLinkParam jump = 9; + // + BizReserveGameParam game = 10; + } + // + int64 id = 1; + // + int32 from = 2; + // + int32 to = 3; + // + bool status = 4; + // + BizType biz_type = 5; + // + OperationCardContent content = 6; +} + +// +message OperationCardContent { + // + string title = 1; + // + string subtitle = 2; + // + string icon = 3; + // + string button_title = 4; + // + string button_selected_title = 5; + // + bool show_selected = 6; +} + +// +enum PageCategory { + // + COMMON_PAGE = 0; + // + ACTIVITY_PAGE = 1; +} + +// +message PageControl { + // + Control toast_show = 1; + // + Control material_show = 2; + // + Control up_show = 3; +} + +// +enum PageType { + // + H5 = 0; + // + NA = 1; +} + +// +message PlayToast { + // + PlayToastEnum business = 1; + // + string icon_url = 2; + // + string text = 3; +} + +// +enum PlayToastEnum { + // + PLAYTOAST_UNKNOWN = 0; + // + PLAYTOAST_CHARGINGPLUS = 1; +} + +// +message PlayerIcon { + // + string url1 = 1; + // + string hash1 = 2; + // + string url2 = 3; + // + string hash2 = 4; + // + string drag_left_png = 5; + // + string middle_png = 6; + // + string drag_right_png = 7; + // + IconData drag_data = 8; + // + IconData nodrag_data = 9; +} + +// +message PointMaterial { + // + string url = 1; + // + MaterialSource material_source = 2; +} + +// +message Relate { + // + int64 device_type = 1; + // + bilibili.pagination.Pagination pagination = 2; +} + +// +message RelatesFeedReply { + // + repeated bilibili.mall.tab3.viewunite.common.RelateCard relates = 1; + // + bilibili.pagination.Pagination pagination = 2; +} + +// +message RelatesFeedReq { + // + int64 aid = 1; + // + string bvid = 2; + // + string from = 3; + // + string spmid = 4; + // + string from_spmid = 5; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 6; + // + bilibili.pagination.Pagination pagination = 7; + // + string session_id = 8; + // + int64 auto_play = 9; + // + string from_track_id = 10; +} + +// +message ReplyStyle { + // + string badge_url = 1; + // + string badge_text = 2; + // + int64 badge_type = 3; +} + +// +message ReplyTab { + // + ReplyStyle reply_style = 1; + // + string title = 2; + // + TabControl control = 3; +} + +// +message ReqUser { + // + int32 favorite = 1; + // + int32 like = 2; + // + int32 coin = 3; + // + int32 fav_season = 4; + // + int32 follow = 5; + // + int32 dislike = 6; + // + Button elec_plus_btn = 7; + // + ChargingPlus charging_plus = 8; +} + +// +message Rights { + // + bool only_vip_download = 1; + // + bool no_reprint = 2; + // + bool download = 3; +} + +// +message ShowTime { + // + int32 start_time = 1; + // + int32 end_time = 2; + // + double pos_x = 3; + // + double pos_y = 4; +} + +// +message SimpleArc { + // + int32 copyright = 1; +} + +// +message SimpleReqUser { + // + int32 favorite = 1; + // + int32 like = 2; + // + int32 coin = 3; +} + +// +message StoryEntrance { + // + bool arc_play_story = 1; + // + string story_icon = 2; + // + bool arc_landscape_story = 3; + // + string landscape_icon = 4; + // + bool play_story = 5; +} + +// +message Tab { + // + repeated TabModule tab_module = 1; + // + string tab_bg = 2; + // + TabControl danmaku_entrance = 3; +} + +// +message TabControl { + // + bool limit = 1; + // + bool disable = 2; + // + string disable_click_tip = 3; +} + +// +message TabModule { + // + oneof tab { + // + IntroductionTab introduction = 2; + // + ReplyTab reply = 3; + // + bilibili.mall.tab3.viewunite.common.ActivityTab activity_tab = 4; + } + // + TabType tab_type = 1; +} + +// +enum TabType { + // + TAB_NONE = 0; + // + TAB_INTRODUCTION = 1; + // + TAB_REPLY = 2; + // + TAB_OGV_ACTIVITY = 3; +} + +// +enum UnionType { + // + UGC = 0; + // + OGV = 1; +} + +// +message UpperInfos { + // + int64 fans_count = 1; + // + int64 arc_count_last_half_year = 2; + // + int64 first_up_dates = 3; + // + int64 total_play_count = 4; +} + +// +message VideoGuide { + // + repeated Material material = 1; + // + VideoViewPoint video_point = 2; + // + ContractCard contract_card = 3; + // + Material right_material = 4; +} + +// +message VideoPoint { + // + int32 type = 1; + // + int64 from = 2; + // + int64 to = 3; + // + string content = 4; + // + string cover = 5; + // + string logo_url = 6; +} + +// +message VideoShot { + // + string pv_data = 1; + // + int32 img_x_len = 2; + // + int32 img_y_len = 3; + // + int32 img_x_size = 4; + // + int32 img_y_size = 5; + // + repeated string image = 6; +} + +// +message VideoViewPoint { + // + repeated VideoPoint points = 1; + // + PointMaterial point_material = 2; + // + bool point_permanent = 3; +} + +// +message ViewBase { + // + bilibili.playershared.BizType biz_type = 1; + // + PageCategory page_type = 2; + // + PageControl control = 3; + // + ActivityResource activity_resource = 4; + // + Config config = 5; +} + +// +message ViewProgressReply { + // + VideoGuide video_guide = 1; + // + Chronos chronos = 2; + // + VideoShot arc_shot = 3; + // + DmResource dm = 4; +} + +// +message ViewProgressReq { + // + int64 aid = 1; + // + int64 cid = 2; + // + int64 up_mid = 3; + // + ChronosParam chronos_param = 4; + // + UnionType type = 5; +} + +// +message ViewReply { + // + ViewBase view_base = 1; + // + Arc arc = 2; + // + ReqUser req_user = 3; + // + bilibili.mall.tab3.viewunite.common.Owner owner = 4; + // + Tab tab = 5; + // + google.protobuf.Any supplement = 6; + // + CM cm = 7; + // + ECode ecode = 8; + // + ECodeConfig ecode_config = 9; + // + map report = 10; +} + +// +message ViewReq { + // + int64 aid = 1; + // + string bvid = 2; + // + string from = 3; + // + string spmid = 4; + // + string from_spmid = 5; + // + string session_id = 6; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 7; + // + string track_id = 8; + // + map extra_content = 9; + // + string play_mode = 10; + // + Relate relate = 11; + // + string biz_extra = 12; + // + string ad_extra = 13; +} + diff --git a/proto/bilibili/metadata.proto b/proto/bilibili/metadata.proto new file mode 100644 index 0000000..6b6da95 --- /dev/null +++ b/proto/bilibili/metadata.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +package bilibili.metadata; + +// +message Metadata { + // + string access_key = 1; + // + string mobi_app = 2; + // + string device = 3; + // + int32 build = 4; + // + string channel = 5; + // + string buvid = 6; + // + string platform = 7; +} + diff --git a/proto/bilibili/metadata/device.proto b/proto/bilibili/metadata/device.proto new file mode 100644 index 0000000..23be64f --- /dev/null +++ b/proto/bilibili/metadata/device.proto @@ -0,0 +1,52 @@ +syntax = "proto3"; + +package bilibili.metadata.device; + +// +message Device { + // + int32 app_id = 1; + // + int32 build = 2; + // + string buvid = 3; + // + string mobi_app = 4; + // + string platform = 5; + // + string device = 6; + // + string channel = 7; + // + string brand = 8; + // + string model = 9; + // + string osver = 10; + // + string fp_local = 11; + // + string fp_remote = 12; + // + string version_name = 13; + // + string fp = 14; + // + int64 fts = 15; + // + string guest_id = 16; +} + +// +message DeviceType { +} + +// +message MobiApp { +} + +// +message Platform { +} + diff --git a/proto/bilibili/metadata/fawkes.proto b/proto/bilibili/metadata/fawkes.proto new file mode 100644 index 0000000..47b3c3b --- /dev/null +++ b/proto/bilibili/metadata/fawkes.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +package bilibili.metadata.fawkes; + +// +message FawkesReply { + // + string config = 1; + // + string ff = 2; + // + string dd = 3; +} + +// +message FawkesReq { + // + string appkey = 1; + // + string env = 2; + // + string session_id = 3; +} + diff --git a/proto/bilibili/metadata/locale.proto b/proto/bilibili/metadata/locale.proto new file mode 100644 index 0000000..5ff7c40 --- /dev/null +++ b/proto/bilibili/metadata/locale.proto @@ -0,0 +1,32 @@ +syntax = "proto3"; + +package bilibili.metadata.locale; + +// +message Locale { + // + LocaleIds c_locale = 1; + // + LocaleIds s_locale = 2; + // + string sim_code = 3; + // + string timezone = 4; + // + string utc_offset = 5; + // + bool is_daylight_time = 6; + // + bool always_translate = 7; +} + +// +message LocaleIds { + // + string language = 1; + // + string script = 2; + // + string region = 3; +} + diff --git a/proto/bilibili/metadata/network.proto b/proto/bilibili/metadata/network.proto new file mode 100644 index 0000000..20088f0 --- /dev/null +++ b/proto/bilibili/metadata/network.proto @@ -0,0 +1,60 @@ +syntax = "proto3"; + +package bilibili.metadata.network; + +// +message NetQuality { + // + float success_rate = 1; + // + int32 speed = 2; + // + int64 speed_timestamp = 3; + // + int32 net_type = 4; +} + +// +message Network { + // + NetworkType type = 1; + // + TFType tf = 2; + // + string oid = 3; +} + +// +enum NetworkType { + // + NT_UNKNOWN = 0; + // + WIFI = 1; + // + 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; +} + diff --git a/proto/bilibili/metadata/parabox.proto b/proto/bilibili/metadata/parabox.proto new file mode 100644 index 0000000..99d28b1 --- /dev/null +++ b/proto/bilibili/metadata/parabox.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package bilibili.metadata.parabox; + +// +message Exp { + // + int64 id = 1; + // + int32 bucket = 2; +} + +// +message Exps { + // + repeated Exp exps = 1; +} + diff --git a/proto/bilibili/metadata/restriction.proto b/proto/bilibili/metadata/restriction.proto new file mode 100644 index 0000000..78f6da2 --- /dev/null +++ b/proto/bilibili/metadata/restriction.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; + +package bilibili.metadata.restriction; + +// +enum ModeType { + // + NORMAL = 0; + // + TEENAGERS = 1; + // + LESSONS = 2; + // + BASIC = 3; +} + +// +message Restriction { + // + bool teenagers_mode = 1; + // + bool lessons_mode = 2; + // + ModeType mode = 3; + // + bool review = 4; + // + bool disable_rcmd = 5; + // + bool basic_mode = 6; + // + int32 teenagers_age = 7; +} + diff --git a/proto/bilibili/pagination.proto b/proto/bilibili/pagination.proto new file mode 100644 index 0000000..0a8d17b --- /dev/null +++ b/proto/bilibili/pagination.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; + +package bilibili.pagination; + +// +message FeedPagination { + // + int32 page_size = 1; + // + string offset = 2; + // + bool is_refresh = 3; +} + +// +message FeedPaginationReply { + // + string next_offset = 1; + // + string prev_offset = 2; + // + string last_read_offset = 3; +} + +// +message Pagination { + // + int32 page_size = 1; + // + string next = 2; +} + +// +message PaginationReply { + // + string next = 1; + // + string prev = 2; +} + diff --git a/proto/bilibili/pangu/gallery/v1.proto b/proto/bilibili/pangu/gallery/v1.proto new file mode 100644 index 0000000..3ad5ba0 --- /dev/null +++ b/proto/bilibili/pangu/gallery/v1.proto @@ -0,0 +1,322 @@ +syntax = "proto3"; + +package bilibili.pangu.gallery.v1; + +import "google/protobuf/empty.proto"; + +// +service GalleryInterface { + // + rpc AgreePolicy (AgreePolicyReq) returns (AgreePolicyReply); + // + rpc BasicInfo (BasicInfoReq) returns (BasicInfoReply); + // + rpc GetBanners (GetBannersReq) returns (GetBannersReply); + // + rpc GetLastPolicy (GetLastPolicyReq) returns (GetLastPolicyReply); + // + rpc ListNFTByMid (ListNFTByMidReq) returns (ListNFTByMidReply); + // + rpc ListOrderByMid (ListOrderByMidReq) returns (ListOrderByMidReply); + // + rpc MinePage (MinePageReq) returns (MinePageReply); + // + rpc Ping (google.protobuf.Empty) returns (google.protobuf.Empty); + // + rpc UserCheck (UserCheckReq) returns (UserCheckReply); + // + rpc UserInfo (GetUserInfoReq) returns (GetUserInfoReply); +} + +// +message AgreePolicyReply { +} + +// +message AgreePolicyReq { + // + PolicyType policy_type = 1; + // + string version = 2; +} + +// +message BannerInfo { + // + string image_url = 1; + // + string link = 2; + // + string title = 3; +} + +// +message BasicInfoReply { + // + string customer_service_url = 1; + // + string agreement_url = 2; + // + string privacy_url = 3; + // + repeated Link links = 4; +} + +// +message BasicInfoReq { + // + int64 mid = 1; +} + +// +message Display { + // + string bg_theme_light = 1; + // + string bg_theme_night = 2; + // + string nft_poster = 3; + // + string nft_raw = 4; +} + +// +enum GT14Status { + // + LT14 = 0; + // + GE14 = 1; + // + UNKNOWN_GT14 = 2; +} + +// +message GetBannersReply { + // + repeated BannerInfo banner_list = 1; +} + +// +message GetBannersReq { + // + int64 uid = 1; +} + +// +message GetLastPolicyReply { + // + string short_desc = 1; + // + string detail_jump = 2; + // + string version = 3; +} + +// +message GetLastPolicyReq { + // + PolicyType policy_type = 1; +} + +// +message GetUserInfoReply { + // + int64 mid = 1; + // + string name = 2; + // + string address = 3; + // + string avatar_url = 4; + // + string help_url = 5; +} + +// +message GetUserInfoReq { + // + int64 mid = 1; +} + +// +message Link { + // + string name = 1; + // + string link_url = 2; + // + string track_event_id = 3; +} + +// +message ListNFTByMidReply { + // + repeated NFT nfts = 1; + // + int64 anchor_id = 2; + // + bool end = 3; +} + +// +message ListNFTByMidReq { + // + int64 mid = 1; + // + string category = 2; + // + string biz_type = 3; + // + int64 anchor_id = 4; + // + int64 page_size = 5; +} + +// +message ListOrderByMidReply { + // + repeated Order orders = 1; + // + int64 anchor_id = 2; + // + bool end = 3; +} + +// +message ListOrderByMidReq { + // + int64 mid = 1; + // + int64 anchor_id = 2; + // + int64 page_size = 3; + // + RecordType rc_type = 4; +} + +// +message MinePageReply { + // + int64 uid = 1; + // + string name = 2; + // + string address = 3; + // + string avatar_url = 4; + // + string question_jump = 5; + // + string about_us_jump = 6; +} + +// +message MinePageReq { + // + int64 uid = 1; +} + +// +message NFT { + // + string nft_id = 1; + // + string item_name = 2; + // + string serial_number = 3; + // + string issuer = 4; + // + Display display = 5; + // + string detail_url = 6; + // + NFTStatus nft_status = 7; + // + int64 item_id = 8; +} + +// +enum NFTStatus { + // + UNDEFINED = 0; + // + NORMAL = 1; + // + DOING = 2; +} + +// +message Order { + // + string item_name = 1; + // + string serial_number = 2; + // + string tx_hash = 3; + // + string tx_time = 4; + // + string issuer = 5; + // + string issue_time = 6; + // + string token_id = 7; + // + Display display = 8; + // + string contract_address = 9; + // + string hash_jump = 10; + // + string contract_jump = 11; + // + bool disable_browser_jump = 12; +} + +// +enum PolicyAgreeStatus { + // + UNSIGNED = 0; + // + ACCEPTED = 1; + // + EXPIRED = 2; +} + +// +enum PolicyType { + // + UNKNOWN_POLICY = 0; + // + WALLET = 1; + // + SALE = 2; +} + +// +enum RecordType { + // + All = 0; + // + input = 1; + // + output = 2; +} + +// +message UserCheckReply { + // + PolicyAgreeStatus policy_status = 1; + // + GT14Status gt14 = 2; +} + +// +message UserCheckReq { + // + int64 mid = 1; + // + PolicyType policy_type = 2; +} + diff --git a/proto/bilibili/pgc/gateway/player/v1.proto b/proto/bilibili/pgc/gateway/player/v1.proto new file mode 100644 index 0000000..02e5d48 --- /dev/null +++ b/proto/bilibili/pgc/gateway/player/v1.proto @@ -0,0 +1,272 @@ +syntax = "proto3"; + +package bilibili.pgc.gateway.player.v1; + +import "bilibili/app/playurl/v1.proto"; + +// +message BusinessInfo { + // + bool is_preview = 1; + // + bool bp = 2; + // + string marlin_token = 3; +} + +// +message Event { + // + Shake shake = 1; +} + +// +message LivePlayInfo { + // + int32 current_qn = 1; + // + repeated QualityDescription quality_description = 2; + // + repeated ResponseDataUrl durl = 3; +} + +// +message LivePlayViewReply { + // + RoomInfo room_info = 1; + // + LivePlayInfo play_info = 2; +} + +// +message LivePlayViewReq { + // + int64 ep_id = 1; + // + int32 quality = 2; + // + int32 ptype = 3; + // + bool https = 4; + // + int32 play_type = 5; + // + int32 device_type = 6; +} + +// +message PlayAbilityConf { + // + bool background_play_disable = 1; + // + bool flip_disable = 2; + // + bool cast_disable = 3; + // + bool feedback_disable = 4; + // + bool subtitle_disable = 5; + // + bool playback_rate_disable = 6; + // + bool time_up_disable = 7; + // + bool playback_mode_disable = 8; + // + bool scale_mode_disable = 9; + // + bool like_disable = 10; + // + bool dislike_disable = 11; + // + bool coin_disable = 12; + // + bool elec_disable = 13; + // + bool share_disable = 14; + // + bool screen_shot_disable = 15; + // + bool lock_screen_disable = 16; + // + bool recommend_disable = 17; + // + bool playback_speed_disable = 18; + // + bool definition_disable = 19; + // + bool selections_disable = 20; + // + bool next_disable = 21; + // + bool edit_dm_disable = 22; + // + bool small_window_disable = 23; + // + bool shake_disable = 24; + // + bool outer_dm_disable = 25; + // + bool inner_dm_disable = 26; + // + bool freya_enter_disable = 27; + // + bool dolby_disable = 28; + // + bool freya_full_disable = 29; + // + bool skip_oped_switch_disable = 30; +} + +// +message PlayViewReply { + // + bilibili.app.playurl.v1.VideoInfo video_info = 1; + // + PlayAbilityConf play_conf = 2; + // + BusinessInfo business = 3; + // + Event event = 4; +} + +// +message PlayViewReq { + // + int64 ep_id = 1; + // + int64 cid = 2; + // + int64 qn = 3; + // + int32 fnver = 4; + // + int32 fnval = 5; + // + int32 download = 6; + // + int32 force_host = 7; + // + bool fourk = 8; + // + string spmid = 9; + // + string from_spmid = 10; + // + int32 teenagers_mode = 11; + // + bilibili.app.playurl.v1.CodeType prefer_codec_type = 12; + // + bool is_preview = 13; + // + int64 room_id = 14; +} + +// +message ProjectReply { + // + bilibili.app.playurl.v1.PlayURLReply project = 1; +} + +// +message ProjectReq { + // + int64 ep_id = 1; + // + int64 cid = 2; + // + int64 qn = 3; + // + int32 fnver = 4; + // + int32 fnval = 5; + // + int32 download = 6; + // + int32 force_host = 7; + // + bool fourk = 8; + // + string spmid = 9; + // + string from_spmid = 10; + // + int32 protocol = 11; + // + int32 device_type = 12; + // + bool use_new_project_code = 13; + // + int64 aid = 14; + // + string sku = 15; +} + +// +message QualityDescription { + // + int32 qn = 1; + // + string desc = 2; +} + +// +message ResponseDataUrl { + // + string url = 1; + // + int32 stream_type = 2; + // + int32 ptag = 3; +} + +// +message RoomInfo { + // + int64 room_id = 1; + // + int64 uid = 2; + // + RoomStatusInfo status = 3; + // + RoomShowInfo show = 4; +} + +// +message RoomShowInfo { + // + int64 short_id = 1; + // + int64 popularity_count = 8; + // + int64 live_start_time = 10; +} + +// +message RoomStatusInfo { + // + int64 live_status = 1; + // + int64 live_screen_type = 2; + // + int64 live_mark = 3; + // + int64 lock_status = 4; + // + int64 lock_time = 5; + // + int64 hidden_status = 6; + // + int64 hidden_time = 7; + // + int64 live_type = 8; + // + int64 room_shield = 9; +} + +// +message Shake { + // + string file = 1; +} + diff --git a/proto/bilibili/pgc/gateway/player/v2.proto b/proto/bilibili/pgc/gateway/player/v2.proto new file mode 100644 index 0000000..d908fc2 --- /dev/null +++ b/proto/bilibili/pgc/gateway/player/v2.proto @@ -0,0 +1,1284 @@ +syntax = "proto3"; + +package bilibili.pgc.gateway.player.v2; + +import "google/protobuf/timestamp.proto"; + +// +service PlayURL { + // + rpc PlayView (PlayViewReq) returns (PlayViewReply); + // + rpc PlayViewComic (PlayViewReq) returns (PlayViewReply); +} + +// +message Animation { + // + map qn_svga_animation_map = 1; +} + +// +message AudioMaterialProto { + // + string audio_id = 1; + // + string title = 2; + // + string edition = 3; + // + int64 person_id = 4; + // + string person_name = 5; + // + string person_avatar = 6; + // + repeated DashItem audio = 7; +} + +// +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; +} + +// +message BottomDisplay { + // + TextInfo title = 1; + // + string icon = 2; +} + +// +message BrandReport { + // + string brand_list = 1; +} + +// +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; + // + string 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 order_report_params = 15; + // + TaskParam task_param = 16; + // + string pc_link = 17; + // + int64 jump_type = 18; +} + +// +message CastTips { + // + int32 code = 1; + // + string message = 2; +} + +// +message ClipInfo { + // + int64 material_no = 1; + // + int32 start = 2; + // + int32 end = 3; + // + ClipType clip_type = 4; + // + string toast_text = 5; + // + MultiView multi_view = 6; +} + +// +enum ClipType { + // + NT_UNKNOWN = 0; + // + CLIP_TYPE_OP = 1; + // + CLIP_TYPE_ED = 2; + // + CLIP_TYPE_HE = 3; + // + CLIP_TYPE_MULTI_VIEW = 4; + // + CLIP_TYPE_AD = 5; + // + CLIP_TYPE_PREVIEW = 6; +} + +// +enum CodeType { + // + NOCODE = 0; + // + CODE264 = 1; + // + CODE265 = 2; +} + +// +message ContinuePlayInfo { + // + int64 continue_play_ep_id = 1; +} + +// +message Coupon { + // + string coupon_token = 1; + // + int64 type = 2; + // + string value = 3; + // + string use_desc = 4; + // + string title = 5; + // + string desc = 6; + // + string pay_button_text = 7; + // + string pay_button_text_line_through = 8; + // + string real_amount = 9; + // + google.protobuf.Timestamp expire_time = 10; + // + int64 otype = 11; + // + string amount = 12; +} + +// +message CouponInfo { + // + CouponToast toast = 1; + // + PopWin pop_win = 2; +} + +// +message CouponTextInfo { + // + string positive_preview = 1; + // + string section = 2; +} + +// +message CouponToast { + // + CouponTextInfo text_info = 1; + // + ButtonInfo button = 2; +} + +// +message DashItem { + // + int32 id = 1; + // + string base_url = 2; + // + repeated string backup_url = 3; + // + int32 bandwidth = 4; + // + int32 codecid = 5; + // + string md5 = 6; + // + int64 size = 7; + // + string frame_rate = 8; + // + string widevine_pssh = 9; +} + +// +message DashVideo { + // + string base_url = 1; + // + repeated string backup_url = 2; + // + int32 bandwidth = 3; + // + int32 codecid = 4; + // + string md5 = 5; + // + int64 size = 6; + // + int32 audio_id = 7; + // + bool no_rexcode = 8; + // + string frame_rate = 9; + // + int32 width = 10; + // + int32 height = 11; + // + string widevine_pssh = 12; +} + +// +message DataControl { + // + bool need_watch_progress = 1; +} + +// +message Dialog { + // + int64 code = 1; + // + string msg = 2; + // + string type = 3; + // + string style_type = 4; + // + DialogConfig config = 5; + // + TextInfo title = 6; + // + TextInfo subtitle = 7; + // + ImageInfo image = 8; + // + repeated ButtonInfo button = 9; + // + ButtonInfo bottom_desc = 10; + // + Report report = 11; + // + int32 count_down_sec = 12; + // + TextInfo right_bottom_desc = 13; + // + repeated BottomDisplay bottom_display = 14; + // + repeated Playlist play_list = 15; + // + string link = 16; + // + ImageInfo half_image = 17; + // + int32 hide_button_on_half = 18; + // + string link_desc = 19; +} + +// +message DialogConfig { + // + bool is_show_cover = 1; + // + bool is_orientation_enable = 2; + // + bool is_nested_scroll_enable = 3; + // + bool is_force_halfscreen_enable = 4; + // + bool is_background_translucent_enable = 5; +} + +// +message Dimension { + // + int32 width = 1; + // + int32 height = 2; + // + int32 rotate = 3; +} + +// +message DolbyItem { + // + enum Type { + // + NONE = 0; + // + COMMON = 1; + // + ATMOS = 2; + } + + // + DolbyItem.Type type = 1; + // + repeated DashItem audio = 2; +} + +// +enum DrmTechType { + // + NON = 0; + // + FAIR_PLAY = 1; + // + WIDE_VINE = 2; + // + BILI_DRM = 3; +} + +// +message EndPage { + // + Dialog dialog = 1; + // + bool hide = 2; +} + +// +message EpInlineVideo { + // + int64 material_no = 1; + // + int64 aid = 2; + // + int64 cid = 3; +} + +// +message EpPreVideo { + // + int64 aid = 1; + // + int64 cid = 2; +} + +// +message EpPublicityVideo { + // + oneof data { + // + EpPreVideo ep_pre_video = 2; + // + EpInlineVideo ep_inline = 3; + } + // + EpPublicityVideoType type = 1; +} + +// +enum EpPublicityVideoType { + // + PRE = 0; + // + INLINE = 1; + // + ADV_TYPE_UNKNOWN = -1; +} + +// +message EpisodeAdvertisementInfo { + // + int64 aid = 1; + // + string title = 2; + // + string link = 3; + // + int32 follow_video_bnt_flag = 4; + // + string next_video_title = 5; + // + string next_video_link = 6; + // + int64 cid = 7; + // + int32 season_id = 8; + // + int32 follow = 9; +} + +// +message EpisodeInfo { + // + int32 ep_id = 1; + // + int64 cid = 2; + // + int64 aid = 3; + // + int32 ep_status = 4; + // + SeasonInfo season_info = 5; + // + string cover = 6; + // + string title = 7; + // + Interaction interaction = 8; + // + string long_title = 9; +} + +// +message Event { + // + Shake shake = 1; +} + +// +message ExtraData { + // + string harmony_dialog_pay_link = 1; +} + +// +message FreyaConfig { + // + string desc = 1; + // + int32 type = 2; + // + int32 issued_cnt = 3; + // + bool is_always_show = 4; + // + int32 screen_number = 5; + // + int32 full_screen_number = 6; +} + +// +message GradientColor { + // + string start_color = 1; + // + string end_color = 2; +} + +// +message HideField { + // + bool fragment_disable = 1; + // + int32 vip_status = 2; +} + +// +message HighDefinitionTrialInfo { + // + bool trial_able = 1; + // + int32 remaining_times = 2; + // + int32 start = 3; + // + int32 time_length = 4; + // + Toast start_toast = 5; + // + Toast end_toast = 6; + // + Report report = 7; + // + ButtonInfo quality_open_tip_btn = 8; + // + ButtonInfo no_longer_trial_btn = 9; + // + int32 trial_quality_type = 10; +} + +// +message HistoryNode { + // + int64 node_id = 1; + // + string title = 2; + // + int64 cid = 3; +} + +// +message ImageInfo { + // + string url = 1; +} + +// +enum InlineScene { + // + UNKNOWN = 0; + // + RELATED_EP = 1; + // + HE = 2; + // + SKIP = 3; +} + +// +enum InlineType { + // + TYPE_UNKNOWN = 0; + // + TYPE_WHOLE = 1; + // + TYPE_HE_CLIP = 2; + // + TYPE_PREVIEW = 3; +} + +// +message Interaction { + // + HistoryNode history_node = 1; + // + int64 graph_version = 2; + // + string msg = 3; + // + bool is_interaction = 4; +} + +// +enum LimitActionType { + // + LAT_UNKNOWN = 0; + // + SHOW_LIMIT_DIALOG = 1; + // + SKIP_CURRENT_EP = 2; +} + +// +message MaterialInfo { + // + int64 id = 1; + // + string img = 2; + // + string title = 3; +} + +// +message MultiDashVideo { + // + repeated DashVideo dash_videos = 1; +} + +// +message MultiView { + // + string button_material = 1; + // + int64 ep_id = 2; + // + int64 cid = 3; + // + int64 avid = 4; +} + +// +message PayTip { + // + string title = 1; + // + string url = 2; + // + string icon = 3; + // + int32 type = 4; + // + int32 show_type = 5; + // + string img = 6; + // + string bg_day_color = 7; + // + string bg_night_color = 8; + // + string bg_line_color = 9; + // + string bg_night_line_color = 10; + // + string text_color = 11; + // + string text_night_color = 12; + // + int64 view_start_time = 13; + // + repeated ButtonInfo button = 14; + // + int32 url_open_type = 15; + // + Report report = 16; + // + int32 angle_style = 17; + // + int32 report_type = 18; + // + map order_report_params = 19; + // + string giant_screen_img = 20; +} + +// +message PlayAbilityConf { + // + bool background_play_disable = 1; + // + bool flip_disable = 2; + // + bool cast_disable = 3; + // + bool feedback_disable = 4; + // + bool subtitle_disable = 5; + // + bool playback_rate_disable = 6; + // + bool time_up_disable = 7; + // + bool playback_mode_disable = 8; + // + bool scale_mode_disable = 9; + // + bool like_disable = 10; + // + bool dislike_disable = 11; + // + bool coin_disable = 12; + // + bool elec_disable = 13; + // + bool share_disable = 14; + // + bool screen_shot_disable = 15; + // + bool lock_screen_disable = 16; + // + bool recommend_disable = 17; + // + bool playback_speed_disable = 18; + // + bool definition_disable = 19; + // + bool selections_disable = 20; + // + bool next_disable = 21; + // + bool edit_dm_disable = 22; + // + bool small_window_disable = 23; + // + bool shake_disable = 24; + // + bool outer_dm_disable = 25; + // + bool inner_dm_disable = 26; + // + bool freya_enter_disable = 27; + // + bool dolby_disable = 28; + // + bool freya_full_disable = 29; + // + bool skip_oped_switch_disable = 30; + // + bool record_screen_disable = 31; + // + bool color_optimize_disable = 32; + // + bool dubbing_disable = 33; + // + bool system_record_screen_disable = 34; +} + +// +message PlayAbilityExtConf { + // + bool allow_close_subtitle = 1; + // + FreyaConfig freya_config = 2; + // + CastTips cast_tips = 3; +} + +// +message PlayDubbingInfo { + // + AudioMaterialProto background_audio = 1; + // + repeated RoleAudioProto role_audio_list = 2; + // + string guide_text = 3; +} + +// +enum PlayErr { + // + NoErr = 0; + // + WithMultiDeviceLoginErr = 1; +} + +// +message PlayExtInfo { + // + PlayDubbingInfo play_dubbing_info = 1; +} + +// +message PlayViewBusinessInfo { + // + bool is_preview = 1; + // + bool bp = 2; + // + string marlin_token = 3; + // + string playback_speed_color = 4; + // + ContinuePlayInfo continue_play_info = 5; + // + repeated ClipInfo clip_info = 6; + // + InlineType inline_type = 7; + // + int32 ep_whole_duration = 8; + // + Dimension dimension = 9; + // + map quality_ext_map = 10; + // + map exp_map = 11; + // + DrmTechType drm_tech_type = 12; + // + LimitActionType limit_action_type = 13; + // + bool is_drm = 14; + // + RecordInfo record_info = 15; + // + int32 vip_status = 16; + // + bool is_live_pre = 17; + // + EpisodeInfo episode_info = 18; + // + EpisodeAdvertisementInfo episode_advertisement_info = 19; + // + UserStatus user_status = 20; + // + repeated EpPublicityVideo ep_publicity_video_list = 21; + // + int64 watch_time_length = 22; + // + BrandReport brand_report = 23; +} + +// +message PlayViewReply { + // + VideoInfo video_info = 1; + // + PlayAbilityConf play_conf = 2; + // + PlayViewBusinessInfo business = 3; + // + Event event = 4; + // + ViewInfo view_info = 5; + // + PlayAbilityExtConf play_ext_conf = 6; + // + PlayExtInfo play_ext_info = 7; + // + HideField hide_field = 8; +} + +// +message PlayViewReq { + // + int64 ep_id = 1; + // + int64 cid = 2; + // + int64 qn = 3; + // + int32 fnver = 4; + // + int32 fnval = 5; + // + int32 download = 6; + // + int32 force_host = 7; + // + bool fourk = 8; + // + string spmid = 9; + // + string from_spmid = 10; + // + int32 teenagers_mode = 11; + // + CodeType prefer_codec_type = 12; + // + bool is_preview = 13; + // + int64 room_id = 14; + // + bool is_need_view_info = 15; + // + SceneControl scene_control = 16; + // + InlineScene inline_scene = 17; + // + int64 material_no = 18; + // + SecurityLevel security_level = 19; + // + int64 season_id = 20; + // + DataControl data_control = 21; + // + bool is_close_drm = 22; +} + +// +message Playlist { + // + int64 season_id = 1; + // + string title = 2; + // + string cover = 3; + // + string link = 4; + // + BadgeInfo badge_info = 5; +} + +// +message PopWin { + // + string title = 1; + // + repeated Coupon coupon = 2; + // + repeated ButtonInfo button = 3; + // + string bottom_text = 4; + // + TextInfo pop_title = 5; + // + TextInfo subtitle = 6; + // + ButtonInfo bottom_desc = 7; + // + string cover = 8; + // + string pop_type = 9; +} + +// +message PromptBar { + // + TextInfo title = 1; + // + TextInfo sub_title = 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; + // + PromptBarType prompt_bar_type = 10; + // + int64 config_type = 11; + // + repeated MaterialInfo fixed_benefits = 12; + // + repeated MaterialInfo card_open_gift = 13; + // + int64 end_time = 14; + // + int32 show_on_paywall = 15; +} + +// +enum PromptBarType { + // + PROMPT_BAR_TYPE_UNKNOWN = 0; + // + OPEN_PROMPT_BAR = 1; + // + TRY_PROMPT_BAR = 2; +} + +// +message QualityExtInfo { + // + bool trial_support = 1; +} + +// +message RecordInfo { + // + string record = 1; + // + string record_icon = 2; +} + +// +message Report { + // + string show_event_id = 1; + // + string click_event_id = 2; + // + string extends = 3; +} + +// +message ResponseUrl { + // + int32 order = 1; + // + int64 length = 2; + // + int64 size = 3; + // + string url = 4; + // + repeated string backup_url = 5; + // + string md5 = 6; +} + +// +message Rights { + // + int32 can_watch = 1; +} + +// +message RoleAudioProto { + // + int64 role_id = 1; + // + string role_name = 2; + // + string role_avatar = 3; + // + repeated AudioMaterialProto audio_material_list = 4; +} + +// +message SceneControl { + // + bool fav_playlist = 1; + // + bool small_window = 2; + // + bool pip = 3; + // + bool was_he_inline = 4; + // + bool is_need_trial = 5; +} + +// +message Scheme { + // + enum ActionType { + // + UNKNOWN_ActionType = 0; + // + SHOW_TOAST = 1; + } + + // + Scheme.ActionType action_type = 1; + // + string toast = 2; +} + +// +message SeasonInfo { + // + int32 season_id = 1; + // + int32 season_type = 2; + // + int32 season_status = 3; + // + string cover = 4; + // + string title = 5; + // + Rights rights = 6; + // + int32 mode = 7; + // + string horizontal_cover169 = 8; + // + string horizontal_cover1610 = 9; +} + +// +enum SecurityLevel { + // + LEVEL_UNKNOWN = 0; + // + LEVEL_L1 = 1; + // + LEVEL_L2 = 2; + // + LEVEL_L3 = 3; +} + +// +message SegmentVideo { + // + repeated ResponseUrl segment = 1; +} + +// +message Shake { + // + string file = 1; +} + +// +message Stream { + // + oneof content { + // + DashVideo dash_video = 2; + // + SegmentVideo segment_video = 3; + // + MultiDashVideo multi_dash_video = 4; + } + // + StreamInfo stream_info = 1; +} + +// +message StreamInfo { + // + int32 quality = 1; + // + string format = 2; + // + string description = 3; + // + PlayErr err_code = 4; + // + StreamLimit limit = 5; + // + bool need_vip = 6; + // + bool need_login = 7; + // + bool intact = 8; + // + bool no_rexcode = 9; + // + int64 attribute = 10; + // + string new_description = 11; + // + string display_desc = 12; + // + string superscript = 13; + // + Scheme scheme = 14; + // + bool support_drm = 15; + // + string subtitle = 16; +} + +// +message StreamLimit { + // + string title = 1; + // + string uri = 2; + // + 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; +} + +// +message Toast { + // + string text = 1; + // + ButtonInfo button = 2; + // + int32 show_style_type = 3; + // + string icon = 4; + // + TextInfo toast_text = 5; + // + Report report = 6; + // + map order_report_params = 7; +} + +// +message UserStatus { + // + bool pay_check = 1; + // + bool sponsor = 2; + // + WatchProgress watch_progress = 3; + // + WatchProgress aid_watch_progress = 4; +} + +// +message VideoInfo { + // + int32 quality = 1; + // + string format = 2; + // + int64 timelength = 3; + // + int32 video_codecid = 4; + // + repeated Stream stream_list = 5; + // + repeated DashItem dash_audio = 6; + // + DolbyItem dolby = 7; + // + int64 main_timelength = 8; +} + +// +message ViewInfo { + // + Dialog dialog = 1; + // + Toast toast = 2; + // + CouponInfo coupon_info = 3; + // + repeated int64 demand_no_pay_epids = 4; + // + EndPage end_page = 5; + // + map exp_config = 6; + // + PopWin pop_win = 7; + // + PromptBar try_watch_prompt_bar = 8; + // + PayTip pay_tip = 9; + // + HighDefinitionTrialInfo high_definition_trial_info = 10; + // + map ext_dialog = 11; + // + Animation animation = 12; + // + map ext_toast = 13; + // + ExtraData extra_data = 14; +} + +// +message WatchProgress { + // + int32 last_ep_id = 1; + // + string last_ep_index = 2; + // + int64 progress = 3; + // + int64 last_play_cid = 4; + // + Toast toast = 5; + // + Toast toast_without_time = 6; + // + int64 last_play_aid = 7; +} + diff --git a/proto/bilibili/playershared.proto b/proto/bilibili/playershared.proto new file mode 100644 index 0000000..3b4ed23 --- /dev/null +++ b/proto/bilibili/playershared.proto @@ -0,0 +1,1567 @@ +syntax = "proto3"; + +package bilibili.playershared; + +import "google/protobuf/any.proto"; + +// +message AIAudio { + // + bool support_ai_audio = 1; + // + repeated AIAudioItem ai_audio_items = 2; + // + string ai_open_toast = 3; + // + string ai_close_toast = 4; + // + Badge badge = 5; + // + string default_title = 6; + // + string list_title = 7; + // + string list_desc = 8; +} + +// +message AIAudioItem { + // + repeated DashItem audio_info = 1; + // + string title = 2; + // + string button_title = 3; + // + string subtitle_lang = 4; +} + +// +message ArcConf { + // + bool is_support = 1; + // + bool disabled = 2; + // + ExtraContent extra_content = 3; + // + repeated int32 unsupport_scene = 4; + // + UnsupportState unsupport_state = 5; +} + +// +enum ArcType { + // + ARC_TYPE_NORMAL = 0; + // + ARC_TYPE_INTERACT = 1; +} + +// +message AutoQnCtl { + // + int64 login_half = 1; + // + int64 nologin_half = 2; + // + int64 login_full = 3; + // + int64 nologin_full = 4; + // + int64 mobile_login_full = 5; + // + int64 mobile_nologin_full = 6; + // + map scene_qn_range = 7; +} + +// +message AutoQnRange { + // + int64 max = 1; + // + int64 min = 2; +} + +// +message BackgroundInfo { + // + string drawable_color = 1; + // + string drawable_bitmap_url = 2; + // + Effects effects = 3; +} + +// +message Badge { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + int32 bg_style = 8; +} + +// +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; +} + +// +message Banner { + // + string jump_link = 1; + // + string image_link = 2; + // + string half_image_link = 3; + // + Report report = 4; +} + +// +message BenefitInfo { + // + string title = 1; + // + string icon = 2; +} + +// +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 { + // + string text = 1; + // + string link = 2; + // + map 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; + // + LOGIN = 15; + // + BUTTON_ACTION_CHEESE_PAY = 16; + // + DELIVER_REPORT = 17; + // + DEVICE_MANAGE = 18; + // + RELOAD = 19; +} + +// +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 order_report_params = 15; + // + TaskParam task_param = 16; + // + string frame_color = 17; + // + string icon = 18; + // + int32 font_size = 19; + // + string tips_link = 20; + // + string deliver_code = 21; +} + +// +message ChargingExt { + // + bool hide_bg_img = 1; +} + +// +enum CodeType { + // + NOCODE = 0; + // + CODE264 = 1; + // + CODE265 = 2; + // + CODEAV1 = 3; +} + +// +message ComprehensiveToast { + // + ToastType type = 1; + // + ButtonInfo button = 2; + // + ShowStyleType show_style_type = 3; + // + string icon = 4; + // + TextInfo toast_text = 5; + // + Report report = 6; + // + map order_report_params = 7; +} + +// +enum ConfType { + // + NoType = 0; + // + FLIPCONF = 1; + // + CASTCONF = 2; + // + FEEDBACK = 3; + // + SUBTITLE = 4; + // + PLAYBACKRATE = 5; + // + TIMEUP = 6; + // + PLAYBACKMODE = 7; + // + SCALEMODE = 8; + // + BACKGROUNDPLAY = 9; + // + LIKE = 10; + // + DISLIKE = 11; + // + COIN = 12; + // + ELEC = 13; + // + SHARE = 14; + // + SCREENSHOT = 15; + // + LOCKSCREEN = 16; + // + RECOMMEND = 17; + // + PLAYBACKSPEED = 18; + // + DEFINITION = 19; + // + SELECTIONS = 20; + // + NEXT = 21; + // + EDITDM = 22; + // + SMALLWINDOW = 23; + // + SHAKE = 24; + // + OUTERDM = 25; + // + INNERDM = 26; + // + PANORAMA = 27; + // + DOLBY = 28; + // + COLORFILTER = 29; + // + LOSSLESS = 30; + // + FREYAENTER = 31; + // + FREYAFULLENTER = 32; + // + SKIPOPED = 33; + // + RECORDSCREEN = 34; + // + DUBBING = 35; + // + LISTEN = 36; + // + WATCH_LATER = 37; + // + SYSTEM_RECORD = 38; +} + +// +message ConfValue { + // + oneof value { + // + bool switch_val = 1; + // + int64 selected_val = 2; + } +} + +// +message CountDownItem { + // + int64 fold_countdown = 1; + // + TextInfo title = 2; + // + TextInfo subtitle = 3; +} + +// +message DashItem { + // + int32 id = 1; + // + string base_url = 2; + // + repeated string backup_url = 3; + // + int32 bandwidth = 4; + // + int32 codecid = 5; + // + string md5 = 6; + // + int64 size = 7; + // + string frame_rate = 8; + // + string widevine_pssh = 9; + // + string bilidrm_uri = 10; +} + +// +message DashVideo { + // + string base_url = 1; + // + repeated string backup_url = 2; + // + int32 bandwidth = 3; + // + int32 codecid = 4; + // + string md5 = 5; + // + int64 size = 6; + // + int32 audio_id = 7; + // + bool no_rexcode = 8; + // + string frame_rate = 9; + // + int32 width = 10; + // + int32 height = 11; + // + string widevine_pssh = 12; + // + string bilidrm_uri = 13; +} + +// +message DeviceConf { + // + ConfValue conf_value = 1; +} + +// +message Dialog { + // + GuideStyle 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; + // + LimitActionType limit_action_type = 13; + // + int32 is_hide_more_btn = 14; + // + int32 hide_button_on_half = 15; + // + string deliver_win_id = 16; + // + map conditions = 17; +} + +// +message Dimension { + // + int64 width = 1; + // + int64 height = 2; + // + int64 rotate = 3; + // + int64 variable = 4; +} + +// +message DolbyItem { + // + enum Type { + // + NONE = 0; + // + COMMON = 1; + // + ATMOS = 2; + } + + // + DolbyItem.Type type = 1; + // + repeated DashItem audio = 2; +} + +// +enum DrmTechType { + // + UNKNOWN_DRM = 0; + // + FAIR_PLAY = 1; + // + WIDE_VINE = 2; + // + BILI_DRM = 3; +} + +// +enum Effects { + // + EFFECTS_UNKNOWN = 0; + // + GAUSSIAN_BLUR = 1; + // + HALF_ALPHA = 2; +} + +// +message EpInlineVideo { + // + int64 material_no = 1; + // + int64 aid = 2; + // + int64 cid = 3; +} + +// +message EpInlineVideoInfo { + // + repeated EpInlineVideo ep_inline_video = 1; +} + +// +message Event { + // + Shake shake = 1; + // + QnTip qn_tip = 2; +} + +// +message ExpSwitch { + // + int32 hit_opti_try_watch = 2; + // + map exp_ab = 3; +} + +// +message ExtData { + // + oneof data { + // + PlayListInfo play_list_info = 2; + // + Banner banner = 3; + // + EpInlineVideoInfo ep_inline_video_info = 4; + // + ChargingExt charging_ext = 5; + // + QrCode qr_code = 6; + } + // + ExtDataType type = 1; +} + +// +enum ExtDataType { + // + EXT_DATA_TYPE_UNKNOWN = 0; + // + PLAY_LIST = 1; + // + BANNER = 2; + // + HE_INLINE = 3; + // + EXT_DATA_TYPE_CHARGING = 4; + // + QR_CODE = 5; +} + +// +message ExtraContent { + // + string disabled_reason = 1; + // + int64 disabled_code = 2; +} + +// +message FoldData { + // + oneof data { + // + CountDownItem count_down = 2; + } + // + FoldStyle fold_style = 1; +} + +// +enum FoldStyle { + // + FOLD_STYLE_UNSPECIFIED = 0; + // + FOLD_STYLE_COUNT_DOWN = 1; + // + FOLD_STYLE_ONLY_BUTTON = 2; +} + +// +message Fragment { + // + repeated FragmentInfo infos = 1; +} + +// +message FragmentInfo { + // + int32 index = 1; + // + FragmentPosition fragment_position = 2; + // + FragmentType fragment_type = 3; + // + int64 aid = 4; + // + int64 cid = 5; + // + int64 start_time = 6; + // + google.protobuf.Any report = 7; +} + +// +enum FragmentPosition { + // + INVALID = 0; + // + PRE = 1; + // + MIDDLE = 2; + // + POST = 3; +} + +// +enum FragmentType { + // + UNKNOWN = 0; + // + AD_FRAGMENT = 1; + // + OGV_FRAGMENT = 2; + // + PUGV_FRAGMENT = 3; +} + +// +message FragmentVideo { + // + repeated FragmentVideoInfo videos = 1; +} + +// +message FragmentVideoInfo { + // + FragmentInfo fragment_info = 1; + // + VodInfo vod_info = 2; + // + PlayArcConf play_arc_conf = 3; + // + Dimension dimension = 4; + // + int64 timelength = 5; + // + BizType video_type = 6; + // + bool playable_status = 7; +} + +// +message FullPromptBar { + // + string icon = 1; + // + TextInfo title = 2; + // + int64 timer_countdown = 3; + // + bool countdown_enable = 4; + // + TextInfo subtitle = 5; + // + repeated ButtonInfo button = 6; + // + FoldData fold_data = 7; + // + Report report = 8; + // + string bg_image = 9; + // + int32 bar_height = 10; +} + +// +message GradientColor { + // + string start_color = 1; + // + string end_color = 2; +} + +// +enum GroupStyle { + // + GROUP_STYLE_DEFAULT = 0; + // + GROUP_STYLE_HORIZON = 1; +} + +// +enum GuideStyle { + // + STYLE_UNKNOWN = 0; + // + HORIZONTAL_IMAGE = 1; + // + VERTICAL_TEXT = 2; + // + SIMPLE_TEXT = 3; + // + CHARGING_TEXT = 4; + // + UNIVERSAL_INTERCEPT = 5; + // + MSG_ATTACH_QR_CODE = 6; +} + +// +message History { + // + HistoryInfo current_video = 1; + // + HistoryInfo related_video = 2; +} + +// +message HistoryInfo { + // + int64 progress = 1; + // + int64 last_play_cid = 2; + // + Toast toast = 3; + // + Toast toast_without_time = 4; + // + int64 last_play_aid = 5; +} + +// +message ImageInfo { + // + string url = 1; +} + +// +message Interaction { + // + Node history_node = 1; + // + int64 graph_version = 2; + // + string msg = 3; + // + int64 mark = 4; +} + +// +enum LimitActionType { + // + LAT_UNKNOWN = 0; + // + SHOW_LIMIT_DIALOG = 1; + // + SKIP_CURRENT_EP = 2; +} + +// +message LossLessItem { + // + bool is_lossless_audio = 1; + // + DashItem audio = 2; + // + bool need_vip = 3; +} + +// +message MultiDashVideo { + // + repeated DashVideo dash_videos = 1; +} + +// +message Node { + // + int64 node_id = 1; + // + string title = 2; + // + int64 cid = 3; +} + +// +message PayWallOnshowAction { + // + string link = 1; + // + map order_report_params = 2; + // + ButtonAction action_type = 3; +} + +// +message PlayArc { + // + BizType video_type = 1; + // + int64 aid = 2; + // + int64 cid = 3; + // + DrmTechType drm_tech_type = 4; + // + ArcType arc_type = 5; + // + Interaction interaction = 6; + // + Dimension dimension = 7; + // + int64 duration = 8; + // + bool is_preview = 9; + // + int64 watch_time_length = 10; + // + int64 duration_ms = 11; +} + +// +message PlayArcConf { + // + map arc_confs = 1; +} + +// +enum PlayCtrl { + // + PLAY_CTRL_DEFAULT = 0; + // + PLAY_CTRL_SIMPLE = 1; +} + +// +message PlayDeviceConf { + // + map device_confs = 1; +} + +// +enum PlayErr { + // + NoErr = 0; + // + 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; +} + +// +message PromptBar { + // + TextInfo title = 1; + // + TextInfo sub_title = 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; + // + PromptBarType prompt_bar_type = 10; + // + PromptBarStyle prompt_bar_style = 11; + // + repeated BenefitInfo benefit_infos = 12; + // + int64 end_time = 13; + // + int32 show_on_paywall = 14; +} + +// +enum PromptBarStyle { + // + PROMPT_BAR_STYLE_UNKNOWN = 0; + // + TEXT = 1; + // + CURING_BENEFITS = 2; + // + CARD_OPENING_GIFT = 3; + // + COUNTDOWN = 4; +} + +// +enum PromptBarType { + // + PROMPT_BAR_TYPE_UNKNOWN = 0; + // + OPEN_PROMPT_BAR = 1; + // + TRY_PROMPT_BAR = 2; +} + +// +message QnExp { + // + bool qn_exp1 = 1; + // + bool qn_exp2 = 2; +} + +// +enum QnPolicy { + // + QN_POLICY_DEFAULT = 0; + // + QN_POLICY_AUTO_QN_ENABLE = 1; +} + +// +message QnTip { + // + string msg = 1; +} + +// +message QnTrialInfo { + // + bool trial_able = 1; + // + int32 remaining_times = 2; + // + int32 start = 3; + // + int32 time_length = 4; + // + Toast start_toast = 5; + // + Toast end_toast = 6; + // + Button quality_open_tip_btn = 8; + // + int32 trial_quality_type = 9; +} + +// +message QrCode { + // + string link = 1; + // + string link_desc = 2; +} + +// +message Report { + // + string show_event_id = 1; + // + string click_event_id = 2; + // + string extends = 3; +} + +// +message ResidentBar { + // + string icon = 1; + // + TextInfo question_text = 2; + // + ButtonInfo button = 3; + // + string link = 4; + // + Report report = 5; + // + string bg_image = 6; +} + +// +message ResponseDash { + // + repeated DashItem video = 1; + // + repeated DashItem audio = 2; +} + +// +message ResponseUrl { + // + int32 order = 1; + // + int64 length = 2; + // + int64 size = 3; + // + string url = 4; + // + repeated string backup_url = 5; + // + string md5 = 6; +} + +// +message Scheme { + // + enum ActionType { + // + UNKNOWN_ActionType = 0; + // + SHOW_TOAST = 1; + } + + // + Scheme.ActionType action_type = 1; + // + string toast = 2; +} + +// +message SegmentVideo { + // + repeated ResponseUrl segment = 1; +} + +// +message SettingBase { + // + string left_icon = 1; + // + string left_title = 2; + // + SettingItemType type = 3; + // + SettingControl control = 4; + // + map report = 5; +} + +// +message SettingControl { + // + bool disabled = 1; + // + string disabled_reason = 2; + // + bool disable_gray = 3; +} + +// +message SettingGroup { + // + string title = 1; + // + repeated SettingItem items = 2; + // + GroupStyle group_style = 3; +} + +// +message SettingItem { + // + oneof value { + // + SettingMore more = 3; + // + SettingVertical vertical = 4; + // + SettingSwitch switch = 5; + } + // + SettingBase base = 1; + // + SettingItemStyle style = 2; +} + +// +enum SettingItemStyle { + // + SETTING_STYLE_NONE = 0; + // + SETTING_STYLE_SWITCH = 1; + // + SETTING_STYLE_MORE = 2; + // + SETTING_STYLE_SELECT = 3; + // + SETTING_STYLE_VERTICAL = 4; +} + +// +enum SettingItemType { + // + SETTING_NONE = 0; + // + SETTING_PLAYBACK_RATE = 1; + // + SETTING_WATCH_LATER = 2; + // + SETTING_DOWNlOAD = 3; + // + SETTING_SMALL_WINDOW = 4; + // + SETTING_FREYAENTER = 5; + // + SETTING_PLAYBACK_MODE = 6; + // + SETTING_LOOP_PLAYBACK = 7; + // + SETTING_TIMING_SWITCH = 8; + // + SETTING_BACKGROUND_PLAY = 9; + // + SETTING_SUBTITLE = 10; + // + SETTING_SUBTITLE_EXCHANGE = 11; + // + SETTING_FLIP_CONF = 12; + // + SETTING_MORE_PLAY = 13; + // + SETTING_SHAKE = 14; + // + SETTING_SKIP_OPED = 15; + // + SETTING_NOTE = 16; + // + SETTING_REPORT = 17; + // + SETTING_FEEDBACK = 18; + // + SETTING_FREE_GIFT = 19; + // + SETTING_DUB = 20; + // + SETTING_LISTEN = 21; + // + SETTING_PROJECT = 22; + // + SETTING_PIC_SIZE = 23; + // + SETTING_PANORAMA = 24; + // + SETTING_VISION_ASSIST = 25; + // + SETTING_EDIT = 26; + // + SETTING_DISLIKE = 27; + // + SETTING_BIHUO = 28; + // + SETTING_GESTURE = 29; + // + SETTING_DM = 30; + // + SETTING_DEFINITION = 31; + // + SETTING_SUGGEST = 32; + // + SETTING_AUTOMATIC_SCROLL = 33; + // + SETTING_BACKTRACKING = 34; + // + SETTING_AI_AUDIO = 35; + // + SETTING_AI_AUDIO_EXCHANGE = 36; +} + +// +enum SettingJumpType { + // + SETTING_JUMP_TYPE_NONE = 0; + // + SETTING_JUMP_TYPE_OPEN_URL = 1; + // + SETTING_JUMP_TYPE_HALF_SCREEN = 2; + // + SETTING_JUMP_TYPE_OPEN_URL_BY_OUTER_BROWSER = 3; +} + +// +message SettingMore { + // + string url = 1; + // + string right_title = 2; + // + string right_icon = 3; + // + SettingJumpType jump_type = 4; + // + bool need_login = 5; + // + Badge badge = 6; +} + +// +message SettingSwitch { + // + Badge badge = 1; +} + +// +message SettingVertical { + // + string url = 1; + // + SettingJumpType jump_type = 2; + // + bool need_login = 3; + // + Badge badge = 4; +} + +// +message Shake { + // + string file = 1; +} + +// +enum ShowStyleType { + // + SHOW_STYLE_TYPE_UNKNOWN = 0; + // + SHOW_STYLE_TYPE_ORDINARY = 1; + // + SHOW_STYLE_TYPE_RESIDENT = 2; +} + +// +message Stream { + // + oneof content { + // + DashVideo dash_video = 2; + // + SegmentVideo segment_video = 3; + // + MultiDashVideo multi_dash_video = 4; + } + // + StreamInfo stream_info = 1; +} + +// +message StreamInfo { + // + int32 quality = 1; + // + string format = 2; + // + string description = 3; + // + PlayErr err_code = 4; + // + StreamLimit limit = 5; + // + bool need_vip = 6; + // + bool need_login = 7; + // + bool intact = 8; + // + bool no_rexcode = 9; + // + int64 attribute = 10; + // + string new_description = 11; + // + string display_desc = 12; + // + string superscript = 13; + // + bool vip_free = 14; + // + string subtitle = 15; + // + Scheme scheme = 16; + // + bool support_drm = 17; +} + +// +message StreamLimit { + // + string title = 1; + // + string uri = 2; + // + 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; + // + int32 font_size = 4; +} + +// +message Toast { + // + string text = 1; + // + 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; + // + VIP_SKIP_FRAGMENT_TOAST = 6; + // + VIP_AI_FIX_DEFINITION_REMIND = 7; + // + NEW_USER_DEFINITION_REMIND = 8; + // + VIP_RISK_TOAST = 9; +} + +// +enum UnsupportScene { + // + UNKNOWN_SCENE = 0; + // + PREMIERE = 1; +} + +// +enum UnsupportState { + // + NONE_UnsupportState = 0; + // + HALF = 1; + // + FULL = 2; +} + +// +message VideoCtrl { + // + AutoQnCtl auto_qn_ctl = 1; + // + QnExp qn_exp = 2; +} + +// +message VideoVod { + // + int64 aid = 1; + // + int64 cid = 2; + // + int64 qn = 3; + // + int32 fnver = 4; + // + int32 fnval = 5; + // + int32 download = 6; + // + int32 force_host = 7; + // + bool fourk = 8; + // + CodeType prefer_codec_type = 9; + // + int64 voice_balance = 10; + // + bool is_need_trial = 11; + // + QnPolicy qn_policy = 12; + // + int64 soft_fnval = 13; +} + +// +message ViewInfo { + // + map dialog_map = 1; + // + PromptBar prompt_bar = 2; + // + repeated ComprehensiveToast toasts = 3; + // + PayWallOnshowAction pay_wall_onshow_action = 4; + // + ExpSwitch exp_switch = 5; + // + FullPromptBar full_prompt_bar = 6; + // + ResidentBar resident_bar = 7; +} + +// +message VodInfo { + // + int32 quality = 1; + // + string format = 2; + // + int64 timelength = 3; + // + int32 video_codecid = 4; + // + repeated Stream stream_list = 5; + // + repeated DashItem dash_audio = 6; + // + DolbyItem dolby = 7; + // + VolumeInfo volume = 8; + // + LossLessItem loss_less_item = 9; + // + bool support_project = 10; + // + AIAudio ai_audio = 11; +} + +// +message VolumeInfo { + // + double measured_i = 1; + // + double measured_lra = 2; + // + double measured_tp = 3; + // + double measured_threshold = 4; + // + double target_offset = 5; + // + double target_i = 6; + // + double target_tp = 7; + // + map multi_scene_args = 8; +} + diff --git a/proto/bilibili/polymer/app/search/v1.proto b/proto/bilibili/polymer/app/search/v1.proto new file mode 100644 index 0000000..09db64b --- /dev/null +++ b/proto/bilibili/polymer/app/search/v1.proto @@ -0,0 +1,3620 @@ +syntax = "proto3"; + +package bilibili.polymer.app.search.v1; + +import "bilibili/app/archive/middleware/v1.proto"; +import "bilibili/broadcast/message/main.proto"; +import "bilibili/dagw/component/avatar/v1.proto"; +import "bilibili/pagination.proto"; + +// +service Search { + // + rpc SearchAll (SearchAllRequest) returns (SearchAllResponse); + // + rpc SearchByType (SearchByTypeRequest) returns (SearchByTypeResponse); + // + rpc SearchComic (SearchComicRequest) returns (SearchComicResponse); + // + rpc SearchOGV (SearchOGVReq) returns (SearchOGVReply); + // + rpc SearchReserve (SearchReserveRequest) returns (SearchReserveResponse); + // + rpc SearchReserveCancel (SearchReserveRequest) returns (SearchReserveResponse); +} + +// +message Args { + // + int32 online = 1; + // + string rname = 2; + // + int64 room_id = 3; + // + string tname = 4; + // + int64 up_id = 5; + // + string up_name = 6; + // + int64 rid = 7; + // + int64 tid = 8; + // + int64 aid = 9; +} + +// +message AvItem { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string ctime_label = 4; + // + string duration = 5; + // + int32 play = 6; + // + int64 danmaku = 7; + // + int32 ctime = 8; + // + string goto = 9; + // + string param = 10; + // + int32 position = 11; + // + string ctime_label_v2 = 12; + // + string view_content = 13; + // + int32 icon_type = 14; + // + LabelStyle charging_label = 15; + // + bool is_inline = 16; +} + +// +message Avatar { + // + string cover = 1; + // + string event = 2; + // + string event_v2 = 3; + // + string text = 4; + // + int64 up_id = 5; + // + string uri = 6; + // + int32 face_nft_new = 7; + // + NftFaceIcon nft_face_icon = 8; +} + +// +message Background { + // + int32 show = 1; + // + string bg_pic_url = 2; + // + string fg_pic_url = 3; +} + +// +message Badge { + // + string text = 1; + // + string bg_cover = 2; +} + +// +message Badge2 { + // + string bg_cover = 1; + // + string text = 2; +} + +// +message BottomButton { + // + string desc = 1; + // + string link = 2; +} + +// +message BrandADAccount { + // + string param = 1; + // + string goto = 2; + // + int64 mid = 3; + // + string name = 4; + // + string face = 5; + // + string sign = 6; + // + Relation relation = 7; + // + int64 roomid = 8; + // + int64 live_status = 9; + // + string live_link = 10; + // + OfficialVerify official_verify = 11; + // + VipInfo vip = 12; + // + string uri = 13; + // + int32 face_nft_new = 14; +} + +// +message BrandADArc { + // + string param = 1; + // + string goto = 2; + // + int64 aid = 3; + // + int64 play = 4; + // + int64 reply = 5; + // + string duration = 6; + // + string author = 7; + // + string title = 8; + // + string uri = 9; + // + string cover = 10; +} + +// +message Button { + // + string text = 1; + // + string param = 2; + // + string uri = 3; + // + string event = 4; + // + int32 selected = 5; + // + int32 type = 6; + // + string event_v2 = 7; + // + Relation relation = 8; +} + +// +message ButtonMeta { + // + string icon = 1; + // + string text = 2; + // + string button_status = 3; + // + string toast = 4; +} + +// +message CardBusinessBadge { + // + GotoIcon goto_icon = 1; + // + ReasonStyle badge_style = 2; +} + +// +message CardLayout { + // + float compact_cover_width = 1; + // + float compact_cover_height = 2; + // + float vertical_padding = 3; + // + float module_spacing = 4; + // + bool is_large_avatar = 5; + // + float background_cover_height = 6; + // + bool button_top_equal_cover = 7; + // + int32 column = 8; +} + +// +enum CategorySort { + // + CATEGORY_SORT_DEFAULT = 0; + // + CATEGORY_SORT_PUBLISH_TIME = 1; + // + CATEGORY_SORT_CLICK_COUNT = 2; + // + CATEGORY_SORT_COMMENT_COUNT = 3; + // + CATEGORY_SORT_LIKE_COUNT = 4; +} + +// +message ChannelLabel { + // + string text = 1; + // + string uri = 2; + // + int32 icon_type = 3; +} + +// +message ChannelMixedItem { + // + int64 id = 1; + // + int32 cover_left_icon1 = 2; + // + string cover_left_text1 = 3; + // + string cover = 4; + // + string goto = 5; + // + string param = 6; + // + string uri = 7; + // + string title = 8; + // + Badge2 badge = 9; +} + +// +message CheckMore { + // + string content = 1; + // + string uri = 2; +} + +// +message CloudGameParams { + // + int64 source_from = 1; + // + string scene = 2; +} + +// +message Colors { + // + string day = 1; + // + string night = 2; +} + +// +message Comment { + // + string face = 1; + // + int64 mid = 2; + // + string name = 3; + // + string content = 4; + // + int64 like = 5; + // + int64 row = 6; + // + string up_uri = 7; + // + string uri = 8; + // + int64 id = 9; +} + +// +message DetailsRelationItem { + // + string title = 1; + // + string cover = 2; + // + string cover_left_text = 3; + // + ReasonStyle cover_badge_style = 4; + // + string module_pos = 5; + // + string goto = 6; + // + string param = 7; + // + string uri = 8; + // + int32 position = 9; + // + string cover_left_text_v2 = 10; + // + ReasonStyle cover_badge_style_v2 = 11; + // + string view_content = 12; + // + int32 icon_type = 13; +} + +// +message Disclaimer { + // + message Item { + // + string icon = 1; + // + string text = 2; + } + + // + string title = 1; + // + repeated Disclaimer.Item list = 2; +} + +// +message DislikeReason { + // + int32 id = 1; + // + string name = 2; +} + +// +message DisplayOption { + // + int32 video_title_row = 1; + // + int32 search_page_visual_opti = 2; + // + int32 refresh_opti = 3; + // + int32 refresh_exp = 4; + // + int32 filter_exp = 5; + // + int32 tag_highlight_opti = 6; + // + int32 cover_exp = 7; + // + double cover_exp_small = 8; + // + double cover_exp_normal = 9; + // + double cover_exp_large = 10; +} + +// +message DoubleOpusItem { + // + OpusType type = 1; + // + int64 id = 2; + // + int64 cover_count = 3; + // + string cover = 4; + // + int64 mid = 5; + // + string uname = 6; + // + string jump_url = 7; + // + int64 img_w = 8; + // + int64 img_h = 9; + // + string title = 10; +} + +// +message DyTopic { + // + string title = 1; + // + string uri = 2; +} + +// +message EasterEgg { + // + int32 id = 1; + // + int32 show_count = 2; + // + int32 type = 3; + // + string url = 4; + // + int32 close_count = 5; + // + int32 mask_transparency = 6; + // + string mask_color = 7; + // + int32 pic_type = 8; + // + int32 show_time = 9; + // + string source_url = 10; + // + string source_md5 = 11; + // + int32 source_size = 12; + // + int32 egg_type = 13; +} + +// +message Episode { + // + string uri = 1; + // + string param = 2; + // + string index = 3; + // + repeated ReasonStyle badges = 4; + // + int32 position = 5; +} + +// +message EpisodeNew { + // + string title = 1; + // + string uri = 2; + // + string param = 3; + // + int32 is_new = 4; + // + repeated ReasonStyle badges = 5; + // + int32 type = 6; + // + int32 position = 7; + // + string cover = 8; + // + string label = 9; +} + +// +message ExtraLink { + // + string text = 1; + // + string uri = 2; +} + +// +message ExtraWord { + // + string first_word = 1; + // + repeated string second_word = 2; +} + +// +message Feedback { + // + repeated FeedbackSection sections = 1; +} + +// +message FeedbackItem { + // + string text = 1; + // + int32 id = 2; +} + +// +message FeedbackSection { + // + string title = 1; + // + string type = 2; + // + repeated FeedbackItem items = 3; +} + +// +message FoldingTimeLine { + // + string icon = 1; + // + string left_title = 2; + // + string right_title = 3; + // + int32 color = 4; + // + int32 segment = 5; + // + int64 start_second = 6; + // + int64 end_second = 7; + // + int32 init_position = 8; + // + int32 type = 9; + // + int32 hang_style_sinal = 10; + // + int32 has_img_url = 11; + // + repeated VideoTextItem items = 12; + // + string icon_night = 13; +} + +// +message FollowButton { + // + string icon = 1; + // + map texts = 2; + // + string status_report = 3; +} + +// +message FollowButtonV2 { + // + string icon = 1; + // + map texts = 2; + // + string status_report = 3; +} + +// +message FullTextResult { + // + int32 type = 1; + // + string show_text = 2; + // + int64 jump_start_progress = 3; + // + string jump_uri = 4; + // + string icon = 5; + // + string icon_for_night = 6; + // + int64 id = 7; + // + string prefix = 8; + // + string text = 9; +} + +// +message GloryInfo { + // + string title = 1; + // + int32 total = 2; + // + repeated GloryItem items = 3; +} + +// +message GloryItem { + // + string title = 1; + // + string cover = 2; +} + +// +message GotoIcon { + // + string icon_url = 1; + // + string icon_night_url = 2; + // + int32 icon_width = 3; + // + int32 icon_height = 4; +} + +// +message InlineProgressBar { + // + string icon_drag = 1; + // + string icon_drag_hash = 2; + // + string icon_stop = 3; + // + string icon_stop_hash = 4; +} + +// +message InlineThreePointPanel { + // + int32 panel_type = 1; + // + string share_id = 2; + // + string share_origin = 3; + // + repeated ShareButtonItem functional_buttons = 4; +} + +// +message Item { + // + oneof card_item { + // + SearchSpecialCard special = 7; + // + SearchArticleCard article = 8; + // + SearchBannerCard banner = 9; + // + SearchLiveCard live = 10; + // + SearchGameCard game = 11; + // + SearchPurchaseCard purchase = 12; + // + SearchRecommendWordCard recommend_word = 13; + // + SearchDynamicCard dynamic = 14; + // + SearchNoResultSuggestWordCard suggest_keyword = 15; + // + SearchSpecialGuideCard special_guide = 16; + // + SearchComicCard comic = 17; + // + SearchNewChannelCard channel_new = 18; + // + SearchOgvCard ogv_card = 19; + // + SearchOgvRelationCard bangumi_relates = 20; + // + SearchOgvRecommendCard find_more = 21; + // + SearchSportCard esport = 22; + // + SearchAuthorNewCard author_new = 23; + // + SearchTipsCard tips = 24; + // + SearchAdCard cm = 25; + // + SearchPediaCard pedia_card = 26; + // + SearchUgcInlineCard ugc_inline = 27; + // + SearchLiveInlineCard live_inline = 28; + // + SearchTopGameCard top_game = 29; + // + SearchOlympicGameCard sports = 30; + // + SearchOlympicWikiCard pedia_card_inline = 31; + // + SearchRecommendTipCard recommend_tips = 32; + // + SearchCollectionCard collection_card = 33; + // + SearchOgvChannelCard ogv_channel = 34; + // + SearchOgvInlineCard ogv_inline = 35; + // + SearchUpperCard author = 36; + // + SearchVideoCard av = 37; + // + SearchBangumiCard bangumi = 38; + // + SearchSportInlineCard esports_inline = 39; + // + SearchHotBannerCard hot_banner = 40; + // + SearchSubjectCard subject = 41; + // + SearchDynamicCard dynamic_new = 42; + // + SearchArticleCard article_new = 43; + // + SearchPediaPicCard pedia_card_pic = 44; + // + SearchNPSCard nps_card = 45; + // + SearchChatGPTCard chat_gpt = 46; + // + SearchHotRecommend hot_recommend = 47; + // + SearchLiveMaster live_master = 48; + // + SearchLiveRoomTitle live_room_title = 49; + // + SearchLiveRoom live_room = 50; + // + SearchCheese cheese = 51; + // + SearchRelatedSearch related_search = 52; + // + SearchQACard qa_card = 53; + // + SearchDoubleColumnCard double_column = 54; + // + SearchUPRecommend up_recommend = 55; + // + SearchCommentCard comment_card = 57; + // + SearchPlayListCard playlist_card = 58; + // + SearchSeriesCard series_card = 59; + // + SearchMusicCard music_card = 60; + // + SearchCommentClusterCard comment_cluster = 61; + // + SearchTimeLineCard time_line = 62; + // + SearchDoubleOpusCard double_opus = 64; + // + SearchOgvClusterCard ogv_cluster_card = 65; + } + // + string uri = 1; + // + string param = 2; + // + string goto = 3; + // + string linktype = 4; + // + int32 position = 5; + // + string trackid = 6; + // + int64 spread_id = 56; + // + string user_act = 63; +} + +// +message LabelStyle { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + string icon = 8; + // + string icon_night = 9; +} + +// +message LikeResource { + // + string url = 1; + // + string content_hash = 2; +} + +// +message LiveBadgeResource { + // + string text = 1; + // + string animation_url = 2; + // + string animation_url_hash = 3; + // + string background_color_light = 4; + // + string background_color_night = 5; + // + int64 alpha_light = 6; + // + int64 alpha_night = 7; + // + string font_color = 8; +} + +// +message Mask { + // + Avatar avatar = 1; + // + Button button = 2; +} + +// +message MatchInfoObj { + // + int64 id = 1; + // + int32 status = 2; + // + string match_stage = 3; + // + MatchTeam team1 = 4; + // + MatchTeam team2 = 5; + // + MatchItem match_label = 6; + // + MatchItem match_time = 7; + // + MatchItem match_button = 8; +} + +// +message MatchItem { + // + int32 state = 1; + // + string text = 2; + // + string text_color = 3; + // + string text_color_night = 4; + // + string uri = 5; + // + string live_link = 6; + // + Texts texts = 7; +} + +// +message MatchTeam { + // + int64 id = 1; + // + string title = 2; + // + string cover = 3; + // + int32 score = 4; +} + +// +message Nav { + // + string name = 1; + // + int32 total = 2; + // + int32 pages = 3; + // + int32 type = 4; + // + int32 show_more = 5; +} + +// +message Navigation { + // + int64 id = 1; + // + repeated Navigation children = 2; + // + repeated Navigation inline_children = 3; + // + string title = 4; + // + string uri = 5; + // + NavigationButton button = 6; +} + +// +message NavigationButton { + // + int64 type = 1; + // + string text = 2; + // + string uri = 3; +} + +// +message NftFaceIcon { + // + int32 region_type = 1; + // + string icon = 2; + // + int32 show_status = 3; +} + +// +message Notice { + // + int64 mid = 1; + // + int64 notice_id = 2; + // + string content = 3; + // + string url = 4; + // + int64 notice_type = 5; + // + string icon = 6; + // + string icon_night = 7; + // + string text_color = 8; + // + string text_color_night = 9; + // + string bg_color = 10; + // + string bg_color_night = 11; +} + +// +message OfficialVerify { + // + int32 type = 1; + // + string desc = 2; +} + +// +message OgvCardUI { + // + string background_image = 1; + // + string gaussian_blur_value = 2; + // + string module_color = 3; + // + string mask_opacity = 4; +} + +// +message OgvClipInfo { + // + int64 play_start_time = 1; + // + int64 play_end_time = 2; +} + +// +message OgvClusterCardRelate { + // + string title = 1; + // + repeated ExtraWord extra_word_list = 2; + // + int32 need_order = 3; + // + int64 show_lines = 4; + // + repeated DetailsRelationItem items = 5; + // + string more_url = 6; + // + int32 more_search_type = 7; +} + +// +message OgvRecommendWord { + // + string title = 1; + // + string goto = 2; + // + string param = 3; + // + string uri = 4; +} + +// +enum OpusType { + // + OPUS_TYPE_UNKNOWN = 0; + // + OPUS_TYPE_ARTICLE = 1; + // + OPUS_TYPE_TWITTER = 2; +} + +// +message PageOffset { + // + int64 page = 1; + // + string qv_id = 2; +} + +// +message PediaCardUI { + // + string background_image = 1; + // + string cover_default_color = 2; + // + string gaussian_blur_value = 3; + // + string mask_color_value = 4; + // + string mask_opacity = 5; + // + string module_color = 6; +} + +// +message PediaCover { + // + int64 cover_type = 1; + // + string cover_sun_url = 2; + // + string cover_night_url = 3; + // + int32 cover_width = 4; + // + int32 cover_height = 5; +} + +// +message PicNavigation { + // + string title = 1; + // + string uri = 2; + // + string cover_sun_url = 3; + // + string cover_night_url = 4; +} + +// +message PlayerArgs { + // + int32 is_live = 1; + // + int64 aid = 2; + // + int64 cid = 3; + // + int32 sub_type = 4; + // + int64 room_id = 5; + // + int64 ep_id = 7; + // + int32 is_preview = 8; + // + string type = 9; + // + int32 duration = 10; + // + int64 season_id = 11; + // + int32 report_required_play_duration = 12; + // + int32 report_required_time = 13; + // + int32 manual_play = 14; + // + bool hide_play_button = 15; + // + int32 content_mode = 16; + // + int32 report_history = 17; +} + +// +message PlayerGrade { + // + string nickname = 1; + // + int64 player_id = 2; + // + string portrait = 3; + // + string hot_remark = 4; + // + string grade_users_text = 5; + // + string avg_grade = 6; + // + WatchButton watch_button = 7; +} + +// +message PlayerWidget { + // + string title = 1; + // + string desc = 2; +} + +// +message PurchaseButton { + // + string jump_url = 1; + // + string text = 2; +} + +// +message RankInfo { + // + string search_night_icon_url = 1; + // + string search_day_icon_url = 2; + // + string search_bkg_night_color = 3; + // + string search_bkg_day_color = 4; + // + string search_font_night_color = 5; + // + string search_font_day_color = 6; + // + string rank_content = 7; + // + string rank_link = 8; + // + int64 game_rank = 9; + // + int64 rank_type = 10; +} + +// +message RcmdReason { + // + string content = 1; +} + +// +message ReasonStyle { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + int32 bg_style = 8; +} + +// +message RecommendWord { + // + string param = 1; + // + string type = 2; + // + string title = 3; + // + string from_source = 4; +} + +// +message RelatedQuery { + // + string query = 1; + // + string url = 2; + // + string recommend_reason = 3; + // + int64 icon_type = 4; + // + string icon = 5; + // + string icon_night = 6; +} + +// +message Relation { + // + int32 status = 1; +} + +// +message ReserveInfo { + // + int64 sid = 1; + // + string title = 2; + // + int64 is_follow = 3; + // + string oid = 4; + // + string icon = 5; + // + string icon_night = 6; + // + int64 state = 7; + // + int64 bg_color = 8; +} + +// +message RightTopLiveBadge { + // + int32 live_status = 1; + // + LiveBadgeResource in_live = 2; + // + string live_stats_desc = 3; +} + +// +message SaleInfo { + // + string icon = 1; + // + string icon_night = 2; + // + string title = 3; + // + ReasonStyle label = 4; + // + string desc = 5; + // + PurchaseButton button = 6; + // + string vip_status = 7; + // + string vip_type = 8; + // + string tips_id = 9; +} + +// +message SearchAdCard { + // + string json_str = 1; +} + +// +message SearchAllRequest { + // + string keyword = 1; + // + Sort order = 2; + // + string tid_list = 3; + // + string duration_list = 4; + // + string extra_word = 5; + // + string from_source = 6; + // + int32 is_org_query = 7; + // + int32 local_time = 8; + // + string ad_extra = 9; + // + bilibili.pagination.Pagination pagination = 10; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 11; + // + map from_extra = 12; + // + int32 forced_display_chat_card = 13; + // + int32 is_refresh = 14; + // + int32 refresh_times = 15; + // + string since = 16; + // + int64 pub_time_begin_s = 17; + // + int64 pub_time_end_s = 18; + // + int64 all_double_column = 19; + // + string user_act = 20; + // + bool need_ogv_extra_word = 21; +} + +// +message SearchAllResponse { + // + string keyword = 1; + // + string trackid = 2; + // + repeated Nav nav = 3; + // + repeated Item item = 4; + // + EasterEgg easter_egg = 5; + // + string exp_str = 6; + // + repeated string extra_word_list = 7; + // + string org_extra_word = 8; + // + int64 select_bar_type = 9; + // + int64 new_search_exp_num = 10; + // + bilibili.pagination.PaginationReply pagination = 11; + // + DisplayOption app_display_option = 12; + // + map annotation = 13; + // + int64 page = 14; + // + double real_exposure_ratio = 15; + // + int64 all_double_column = 19; + // + int32 is_new_user = 20; +} + +// +message SearchArticleCard { + // + string title = 1; + // + string cover = 2; + // + int32 play = 3; + // + int32 like = 4; + // + int32 reply = 5; + // + repeated string image_urls = 6; + // + string author = 7; + // + int32 template_id = 8; + // + int64 id = 9; + // + int64 mid = 10; + // + string name = 11; + // + string desc = 12; + // + int32 view = 13; + // + string pub_time = 14; + // + string badge = 15; + // + Feedback feedback = 16; + // + CardLayout card_layout = 17; +} + +// +message SearchAuthorNewCard { + // + string title = 1; + // + string cover = 2; + // + int32 live_face = 3; + // + string live_uri = 4; + // + string live_link = 5; + // + int32 fans = 6; + // + int32 level = 7; + // + string sign = 8; + // + bool is_up = 9; + // + int32 archives = 10; + // + int64 mid = 11; + // + int64 roomid = 12; + // + Relation relation = 13; + // + OfficialVerify official_verify = 14; + // + int32 face_nft_new = 15; + // + NftFaceIcon nft_face_icon = 16; + // + int32 is_senior_member = 17; + // + Background background = 18; + // + int32 av_style = 19; + // + Space space = 20; + // + repeated AvItem av_items = 21; + // + Notice notice = 22; + // + SharePlane share_plane = 23; + // + string inline_type = 24; + // + SearchInlineData inline_live = 25; + // + int32 is_inline_live = 26; + // + repeated ThreePoint three_point = 27; + // + int32 live_status = 28; + // + VipInfo vip = 29; + // + int32 attentions = 30; + // + Feedback feedback = 31; + // + repeated string user_card_info = 32; + // + CardLayout card_layout = 33; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar_info = 34; +} + +// +message SearchBangumiCard { + // + string title = 1; + // + string cover = 2; + // + int32 media_type = 3; + // + int32 play_state = 4; + // + string area = 5; + // + string style = 6; + // + string styles = 7; + // + string cv = 8; + // + double rating = 9; + // + int32 vote = 10; + // + string target = 11; + // + string staff = 12; + // + string prompt = 13; + // + int64 ptime = 14; + // + string season_type_name = 15; + // + repeated Episode episodes = 16; + // + int32 is_selection = 17; + // + int32 is_atten = 18; + // + string label = 19; + // + int64 season_id = 20; + // + string out_name = 21; + // + string out_icon = 22; + // + string out_url = 23; + // + repeated ReasonStyle badges = 24; + // + int32 is_out = 25; + // + repeated EpisodeNew episodes_new = 26; + // + WatchButton watch_button = 27; + // + string selection_style = 28; + // + CheckMore check_more = 29; + // + FollowButton follow_button = 30; + // + ReasonStyle style_label = 31; + // + repeated ReasonStyle badges_v2 = 32; + // + string styles_v2 = 33; + // + CardLayout card_layout = 34; + // + SaleInfo sale_info = 35; + // + string view_content = 36; + // + int32 icon_type = 37; +} + +// +message SearchBannerCard { + // + string title = 1; + // + string cover = 2; +} + +// +message SearchByTypeRequest { + // + int32 type = 1; + // + string keyword = 2; + // + CategorySort category_sort = 3; + // + int64 category_id = 4; + // + UserType user_type = 5; + // + UserSort user_sort = 6; + // + bilibili.pagination.Pagination pagination = 7; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 8; + // + string from_seid = 9; + // + string from_source = 10; + // + string user_act = 11; +} + +// +message SearchByTypeResponse { + // + string trackid = 1; + // + int32 pages = 2; + // + string exp_str = 3; + // + string keyword = 4; + // + int32 result_is_recommend = 5; + // + repeated Item items = 6; + // + bilibili.pagination.PaginationReply pagination = 7; + // + map annotation = 8; + // + double real_exposure_ratio = 9; + // + int64 page = 10; +} + +// +message SearchChatGPTCard { + // + string session_id = 1; + // + repeated string loading_icon_light = 2; + // + repeated string loading_icon_night = 3; + // + string background_light = 4; + // + string background_night = 5; + // + string beta_text = 6; + // + Disclaimer disclaimer = 7; + // + string title = 8; + // + bool auto_expand = 9; + // + Feedback feedback = 10; + // + Colors beta_text_color = 11; +} + +// +message SearchCheese { + // + int64 season_id = 1; + // + string title = 2; + // + string cover = 3; + // + string name = 4; + // + string uri = 5; + // + string show_card_desc1 = 6; + // + string show_card_desc2 = 7; + // + string view_content = 8; + // + int32 icon_type = 9; + // + repeated ReasonStyle badges = 10; + // + repeated ThreePoint three_point = 11; + // + Feedback feedback = 12; + // + string share_from = 13; + // + CardLayout card_layout = 14; +} + +// +message SearchCollectionCard { + // + string title = 1; + // + string cover = 2; + // + string author = 3; + // + repeated AvItem av_items = 4; + // + BottomButton bottom_button = 5; + // + string collection_icon = 6; + // + string show_card_desc1 = 7; + // + string show_card_desc2 = 8; + // + CardLayout card_layout = 9; + // + Feedback feedback = 10; + // + SearchInlineData inline_data = 11; + // + int32 is_hide_title = 12; +} + +// +message SearchComicCard { + // + string title = 1; + // + string cover = 2; + // + string name = 3; + // + string style = 4; + // + string comic_url = 5; + // + string badge = 6; + // + CardLayout card_layout = 7; + // + repeated EpisodeNew episodes_new = 8; + // + ReasonStyle rec_tag = 9; + // + FollowButtonV2 follow_button = 10; + // + int32 is_attend = 11; + // + string selection_style = 12; + // + string rec_text = 13; + // + int64 cid = 14; +} + +// +message SearchComicInfo { + // + string uri = 1; + // + string param = 2; + // + SearchComicCard comic = 3; +} + +// +message SearchComicRequest { + // + string id_list = 1; +} + +// +message SearchComicResponse { + // + repeated SearchComicInfo items = 1; +} + +// +message SearchCommentCard { + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar_info = 1; + // + int64 mid = 2; + // + string name = 3; + // + string pub_time = 4; + // + string content = 5; + // + int64 like = 6; + // + string reply_text = 7; + // + string prefix = 8; + // + string title = 9; + // + int64 row = 10; + // + string up_uri = 11; + // + string badge = 12; + // + string icon = 13; + // + string icon_night = 14; +} + +// +message SearchCommentClusterCard { + // + string title = 1; + // + repeated Comment items = 2; + // + string more_text = 3; + // + bool is_more = 4; +} + +// +message SearchDoubleColumnCard { + // + string title = 1; + // + string cover = 2; + // + repeated ThreePoint three_point = 3; + // + Share share = 4; + // + int32 play = 5; + // + int32 danmaku = 6; + // + string author = 7; + // + string desc = 8; + // + string duration = 9; + // + int64 mid = 10; + // + string show_card_desc1 = 11; + // + string show_card_desc2 = 12; + // + Feedback feedback = 13; + // + string face = 14; + // + int64 ptime = 15; + // + string view_content = 16; + // + int32 icon_type = 17; + // + int32 aspect_ratio = 18; +} + +// +message SearchDoubleOpusCard { + // + string title = 1; + // + repeated DoubleOpusItem item = 2; + // + WatchButton watch_button = 3; +} + +// +message SearchDynamicCard { + // + string title = 1; + // + string cover = 2; + // + int32 cover_count = 3; + // + repeated string covers = 4; + // + Upper upper = 5; + // + Stat stat = 6; + // + repeated DyTopic dy_topic = 7; + // + string badge = 8; + // + Feedback feedback = 9; + // + CardLayout card_layout = 10; +} + +// +message SearchGameCard { + // + string title = 1; + // + string cover = 2; + // + string reserve = 3; + // + float rating = 4; + // + string tags = 5; + // + string notice_name = 6; + // + string notice_content = 7; + // + string gift_content = 8; + // + string gift_url = 9; + // + int32 reserve_status = 10; + // + RankInfo rank_info = 11; + // + string special_bg_color = 12; + // + CloudGameParams cloud_game_params = 13; + // + bool show_cloud_game_entry = 14; + // + ReasonStyle new_rec_tag = 15; + // + string notice_content_name = 16; + // + CardLayout card_layout = 17; +} + +// +message SearchHotBannerCard { + // + string icon = 1; + // + string icon_night = 2; + // + string title = 3; + // + string more_text = 4; + // + string more_url = 5; + // + string description = 6; +} + +// +message SearchHotRecommend { + // + string title = 1; + // + string cover = 2; +} + +// +message SearchInlineData { + // + string uri = 1; + // + string title = 2; + // + PlayerArgs player_args = 3; + // + int32 can_play = 4; + // + Args args = 5; + // + string card_goto = 6; + // + string card_type = 7; + // + string cover = 8; + // + int32 cover_left_icon1 = 9; + // + int32 cover_left_icon2 = 10; + // + string cover_left_text1 = 11; + // + string cover_left_text2 = 12; + // + UpArgs up_args = 13; + // + string extra_uri = 14; + // + bool is_fav = 15; + // + bool is_coin = 16; + // + string goto = 17; + // + Share share = 18; + // + ThreePoint2 three_point = 19; + // + repeated ThreePointV2 three_point_v2 = 20; + // + SharePlane share_plane = 21; + // + InlineThreePointPanel three_point_meta = 22; + // + Avatar avatar = 23; + // + string cover_right_text = 24; + // + string desc = 25; + // + InlineProgressBar inline_progress_bar = 26; + // + SearchLikeButtonItem like_button = 27; + // + int32 official_icon = 28; + // + int32 official_icon_v2 = 29; + // + string param = 30; + // + TrafficConfig traffic_config = 31; + // + bool is_atten = 32; + // + GotoIcon goto_icon = 33; + // + bool disable_danmaku = 34; + // + bool hide_danmaku_switch = 35; + // + ReasonStyle badge_style = 36; + // + PlayerWidget player_widget = 37; + // + ReasonStyle cover_badge_style = 38; + // + RightTopLiveBadge right_top_live_badge = 39; + // + string report_flow_data = 40; +} + +// +message SearchLikeButtonItem { + // + int64 aid = 1; + // + int64 count = 2; + // + int32 selected = 3; + // + bool show_count = 4; + // + LikeResource like_resource = 5; + // + LikeResource like_night_resource = 6; + // + LikeResource dislike_resource = 7; + // + LikeResource dislike_night_resource = 8; +} + +// +message SearchLiveCard { + // + string title = 1; + // + string cover = 2; + // + RcmdReason rcmd_reason = 3; + // + string name = 4; + // + int32 online = 5; + // + string badge = 6; + // + string live_link = 7; + // + string card_left_text = 8; + // + int32 card_left_icon = 9; + // + string show_card_desc2 = 10; + // + RightTopLiveBadge right_top_live_badge = 11; + // + Feedback feedback = 12; + // + CardLayout card_layout = 13; +} + +// +message SearchLiveInlineCard { + // + string title = 1; + // + string cover = 2; + // + int64 mid = 3; + // + ReasonStyle rcmd_reason_style = 4; + // + int64 roomid = 5; + // + string live_link = 6; + // + SearchInlineData live_room_inline = 7; + // + string inline_type = 8; + // + Feedback feedback = 9; + // + CardLayout card_layout = 10; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar_info = 11; +} + +// +message SearchLiveMaster { + // + string title = 1; + // + string name = 2; + // + string cover = 3; + // + string uri = 4; + // + WatchedShow watched_show = 5; + // + string ucover = 6; + // + int64 attentions = 7; + // + int32 verify_type = 8; + // + bool face_nft_new = 9; + // + string nft_damrk = 10; + // + string verify_desc = 11; + // + int32 level = 12; + // + int32 level_color = 13; + // + int32 is_atten = 14; + // + GloryInfo glory_info = 15; + // + int64 roomid = 16; + // + int64 mid = 17; + // + int32 online = 18; + // + int32 live_status = 19; + // + string cate_parent_name = 20; + // + string cate_name = 21; + // + string live_link = 22; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar_info = 23; +} + +// +message SearchLiveRoom { + // + string title = 1; + // + string name = 2; + // + string cover = 3; + // + string uri = 4; + // + string param = 5; + // + WatchedShow watched_show = 6; + // + int64 roomid = 7; + // + int64 short_id = 8; + // + string goto = 9; + // + string area_v2_name = 10; + // + int32 online = 11; + // + int64 mid = 12; + // + int32 live_status = 13; + // + string live_link = 14; +} + +// +message SearchLiveRoomTitle { + // + int32 total_count = 1; +} + +// +message SearchMusicCard { + // + string title = 1; + // + string cover = 2; + // + string badge = 3; + // + string author = 4; + // + string desc = 5; + // + ReasonStyle new_rec_tag = 6; + // + string show_card_desc1 = 7; + // + string show_card_desc2 = 8; + // + WatchButton watch_button = 9; + // + Feedback feedback = 10; +} + +// +message SearchNPSCard { + // + message Option { + // + string text = 1; + } + + // + string title = 1; + // + repeated SearchNPSCard.Option options = 2; + // + CardLayout card_layout = 3; +} + +// +message SearchNewChannelCard { + // + string title = 1; + // + string cover = 2; + // + int64 id = 3; + // + string type_icon = 4; + // + ChannelLabel channel_label1 = 5; + // + ChannelLabel channel_label2 = 6; + // + ChannelLabel channel_button = 7; + // + string design_type = 8; + // + repeated ChannelMixedItem items = 9; + // + CardLayout card_layout = 10; +} + +// +message SearchNoResultSuggestWordCard { + // + string title = 1; + // + string cover = 2; + // + int32 sug_key_word_type = 3; + // + CardLayout card_layout = 4; + // + string prefix = 5; + // + string content = 6; + // + string suffix = 7; +} + +// +message SearchOGVReply { + // + repeated ExtraWord extra_word_list = 1; + // + int32 need_order = 2; + // + repeated Item items = 3; + // + repeated DetailsRelationItem relation_items = 4; + // + bilibili.pagination.PaginationReply pagination = 5; + // + int64 page = 6; + // + map annotation = 7; + // + string query = 8; + // + string trackid = 9; +} + +// +message SearchOGVReq { + // + Sort order = 1; + // + string first_extra_word = 2; + // + string second_extra_word = 3; + // + string from_source = 4; + // + string keyword = 5; + // + bilibili.pagination.Pagination pagination = 6; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 7; + // + string user_act = 8; + // + bool need_ogv_extra_word = 9; +} + +// +message SearchOgvCard { + // + string title = 1; + // + string sub_title1 = 2; + // + string sub_title2 = 3; + // + string cover = 4; + // + string bg_cover = 5; + // + string special_bg_color = 6; + // + string cover_uri = 7; +} + +// +message SearchOgvChannelCard { + // + string title = 1; + // + string cover = 2; + // + int64 media_id = 3; + // + string styles = 4; + // + string area = 5; + // + string staff = 6; + // + string badge = 7; + // + WatchButton watch_button = 8; + // + double rating = 9; + // + string desc = 10; + // + repeated ReasonStyle badges_v2 = 11; + // + string styles_v2 = 12; + // + PurchaseButton purchase_button = 13; + // + ReasonStyle style_label = 14; + // + CardLayout card_layout = 15; +} + +// +message SearchOgvClusterCard { + // + string title = 1; + // + Item single_card = 2; + // + OgvClusterCardRelate relate = 3; + // + int32 inline_title_style = 4; +} + +// +message SearchOgvInlineCard { + // + string title = 1; + // + string cover = 2; + // + string author = 3; + // + int32 danmaku = 4; + // + string desc = 5; + // + string face = 6; + // + string inline_type = 7; + // + int64 mid = 8; + // + int64 play = 9; + // + SearchInlineData ogv_inline = 10; + // + OgvClipInfo ogv_clip_info = 11; + // + WatchButton watch_button = 12; + // + string score = 13; + // + int32 ogv_inline_exp = 14; + // + repeated ReasonStyle badges_v2 = 15; + // + CardLayout card_layout = 16; + // + SaleInfo sale_info = 17; +} + +// +message SearchOgvRecommendCard { + // + string title = 1; + // + string cover = 2; + // + repeated OgvRecommendWord items = 3; + // + string special_bg_color = 4; +} + +// +message SearchOgvRelationCard { + // + string title = 1; + // + string cover = 2; + // + string special_bg_color = 3; + // + string more_text = 4; + // + string more_url = 5; + // + repeated DetailsRelationItem items = 6; + // + int32 is_new_style = 7; + // + OgvCardUI ogv_card_ui = 8; + // + int32 more_search_type = 9; + // + CardLayout card_layout = 10; + // + SaleInfo sale_info = 11; +} + +// +message SearchOlympicGameCard { + // + string title = 1; + // + string cover = 2; + // + SportsMatchItem sports_match_item = 3; + // + MatchItem match_top = 4; + // + string bg_cover = 5; + // + repeated ExtraLink extra_link = 6; + // + string inline_type = 7; + // + SearchInlineData ugc_inline = 8; + // + SearchInlineData live_room_inline = 9; + // + MatchItem match_bottom = 10; + // + CardLayout card_layout = 11; +} + +// +message SearchOlympicWikiCard { + // + string title = 1; + // + string cover = 2; + // + CardBusinessBadge card_business_badge = 3; + // + NavigationButton read_more = 4; + // + string inline_type = 5; + // + SearchInlineData ugc_inline = 6; + // + SearchInlineData live_room_inline = 7; + // + PediaCover pedia_cover = 8; + // + repeated Navigation navigation = 9; +} + +// +message SearchPediaCard { + // + string title = 1; + // + string cover = 2; + // + repeated Navigation navigation = 3; + // + NavigationButton read_more = 4; + // + int32 navigation_module_count = 5; + // + PediaCover pedia_cover = 6; + // + CardBusinessBadge card_business_badge = 7; +} + +// +message SearchPediaPicCard { + // + string cover = 1; + // + repeated PicNavigation pic_navigation = 2; + // + CardLayout card_layout = 3; + // + PediaCardUI pedia_card_ui = 4; + // + int32 cover_type = 5; +} + +// +message SearchPlayListCard { + // + string title = 1; + // + repeated AvItem av_items = 2; + // + Feedback feedback = 3; + // + BottomButton bottom_button = 4; + // + SearchInlineData inline_data = 5; + // + string show_card_desc1 = 6; + // + string show_card_desc2 = 7; + // + int32 is_hide_title = 8; +} + +// +message SearchPurchaseCard { + // + string title = 1; + // + string cover = 2; + // + string badge = 3; + // + string venue = 4; + // + int32 price = 5; + // + string price_complete = 6; + // + int32 price_type = 7; + // + int32 required_number = 8; + // + string city = 9; + // + string show_time = 10; + // + int64 id = 11; + // + string shop_name = 12; + // + CardLayout card_layout = 13; +} + +// +message SearchQACard { + // + string session_id = 1; + // + repeated string loading_icon_light = 2; + // + repeated string loading_icon_night = 3; + // + string background_light = 4; + // + string background_night = 5; + // + string beta_text = 6; + // + Colors beta_text_color = 7; + // + Disclaimer disclaimer = 8; + // + string title = 9; + // + bool auto_expand = 10; + // + bilibili.broadcast.message.main.ChatResult result = 11; + // + Feedback feedback = 12; +} + +// +message SearchRecommendTipCard { + // + string title = 1; + // + string cover = 2; +} + +// +message SearchRecommendWordCard { + // + string title = 1; + // + string cover = 2; + // + repeated RecommendWord list = 3; +} + +// +message SearchRelatedSearch { + // + string title = 1; + // + repeated RelatedQuery related_query_list = 2; + // + CardLayout card_layout = 3; +} + +// +message SearchReserveRequest { + // + int64 sid = 1; + // + string oid = 2; +} + +// +message SearchReserveResponse { + // + ReserveInfo reserve_info = 1; +} + +// +message SearchSeriesCard { + // + string title = 1; + // + repeated AvItem av_items = 2; + // + Feedback feedback = 3; + // + BottomButton bottom_button = 4; + // + SearchInlineData inline_data = 5; + // + string show_card_desc1 = 6; + // + string show_card_desc2 = 7; + // + int32 is_hide_title = 8; +} + +// +message SearchSpecialCard { + // + string title = 1; + // + string cover = 2; + // + repeated ReasonStyle new_rec_tags = 3; + // + CardBusinessBadge card_business_badge = 4; + // + string badge = 5; + // + string desc = 6; + // + repeated ReasonStyle new_rec_tags_v2 = 7; + // + RcmdReason rcmd_reason = 8; + // + ReserveInfo reserve_info = 9; + // + CardLayout card_layout = 10; +} + +// +message SearchSpecialGuideCard { + // + string title = 1; + // + string cover = 2; + // + string phone = 3; + // + string desc = 4; +} + +// +message SearchSportCard { + // + string title = 1; + // + string cover = 2; + // + string bg_cover = 3; + // + MatchItem match_top = 4; + // + MatchItem match_bottom = 5; + // + repeated ExtraLink extra_link = 6; + // + repeated MatchInfoObj items = 7; + // + int64 id = 8; + // + CardLayout card_layout = 9; + // + PlayerGrade player_grade = 10; +} + +// +message SearchSportInlineCard { + // + string title = 1; + // + string cover = 2; + // + string bg_cover = 3; + // + MatchItem match_top = 4; + // + MatchItem match_bottom = 5; + // + repeated ExtraLink extra_link = 6; + // + repeated MatchInfoObj items = 7; + // + int64 id = 8; + // + SearchInlineData esports_inline = 9; + // + string inline_type = 10; + // + CardLayout card_layout = 11; + // + PlayerGrade player_grade = 12; +} + +// +message SearchSubjectCard { + // + int64 id = 1; + // + string title = 2; + // + string cover = 3; + // + string desc = 4; + // + string hot_text = 5; + // + string more_text = 6; + // + string more_url = 7; + // + string topic_type = 8; + // + repeated ReasonStyle badges = 9; + // + repeated TopicItem items = 10; + // + Feedback feedback = 11; + // + CardLayout card_layout = 12; + // + WatchButton button = 13; +} + +// +message SearchTimeLineCard { + // + int64 time_line_id = 1; + // + string time_line_title = 2; + // + repeated TimeLineEvents time_line_events = 3; + // + bool has_more = 4; + // + int64 start_time = 5; + // + int64 end_time = 6; + // + WatchButton watch_button = 7; +} + +// +message SearchTipsCard { + // + string title = 1; + // + string cover = 2; + // + string sub_title = 4; + // + string cover_night = 134; +} + +// +message SearchTopGameCard { + // + string title = 1; + // + string cover = 2; + // + int32 array = 3; + // + string background_image = 4; + // + int32 button_type = 5; + // + string game_icon = 6; + // + int64 game_base_id = 7; + // + int32 game_status = 8; + // + string inline_type = 9; + // + TopGameUI top_game_ui = 10; + // + string notice_content = 11; + // + string notice_name = 12; + // + float rating = 13; + // + string score = 14; + // + repeated TabInfo tab_info = 15; + // + string tags = 16; + // + SearchInlineData ugc_inline = 17; + // + string video_cover_image = 18; + // + SearchInlineData inline_live = 19; + // + CardLayout card_layout = 20; + // + ReasonStyle rec_tag = 21; +} + +// +message SearchUPRecommend { + // + int64 id = 1; + // + int32 card_style = 2; + // + string more_url = 3; + // + string more_text = 4; + // + int32 show_follow_button = 5; + // + repeated UPRecommendItem items = 6; + // + string title = 7; +} + +// +message SearchUgcInlineCard { + // + string title = 1; + // + string cover = 2; + // + string author = 3; + // + int32 danmaku = 4; + // + string desc = 5; + // + string inline_type = 6; + // + int64 mid = 7; + // + int64 play = 8; + // + SearchInlineData ugc_inline = 9; + // + FullTextResult full_text = 10; + // + Feedback feedback = 11; + // + CardLayout card_layout = 12; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar_info = 13; +} + +// +message SearchUpperCard { + // + string title = 1; + // + string cover = 2; + // + string sign = 3; + // + int32 fans = 4; + // + int32 archives = 5; + // + int32 live_status = 6; + // + int32 roomid = 7; + // + OfficialVerify official_verify = 8; + // + int32 face_nft_new = 9; + // + NftFaceIcon nft_face_icon = 10; + // + repeated AvItem av_items = 11; + // + bool is_up = 12; + // + int32 attentions = 13; + // + int32 level = 14; + // + int32 is_senior_member = 15; + // + VipInfo vip = 16; + // + Relation relation = 17; + // + string live_link = 18; + // + Notice notice = 19; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar_info = 20; + // + string user_card_desc = 21; +} + +// +message SearchVideoCard { + // + string title = 1; + // + string cover = 2; + // + RcmdReason rcmd_reason = 3; + // + repeated ReasonStyle new_rec_tags = 4; + // + repeated ThreePoint three_point = 5; + // + Share share = 6; + // + CardBusinessBadge card_business_badge = 7; + // + int32 play = 8; + // + int32 danmaku = 9; + // + string author = 10; + // + string desc = 11; + // + string duration = 12; + // + repeated ReasonStyle badges = 13; + // + int64 mid = 14; + // + string show_card_desc1 = 15; + // + string show_card_desc2 = 16; + // + FullTextResult full_text = 17; + // + repeated ReasonStyle new_rec_tags_v2 = 18; + // + repeated ReasonStyle badges_v2 = 19; + // + Feedback feedback = 20; + // + TimeLine time_line = 21; + // + string face = 22; + // + int64 ptime = 23; + // + string view_content = 24; + // + int32 icon_type = 25; + // + FoldingTimeLine folding_time_line = 26; + // + LabelStyle charging_label = 27; + // + CardLayout card_layout = 28; + // + string author_prefix = 29; + // + repeated string highlight_tags = 30; +} + +// +message Share { + // + string type = 1; + // + Video video = 2; +} + +// +message ShareButtonItem { + // + int32 type = 1; + // + repeated ButtonMeta button_metas = 2; +} + +// +message SharePlane { + // + string title = 1; + // + string share_subtitle = 2; + // + string desc = 3; + // + string cover = 4; + // + int64 aid = 5; + // + string bvid = 6; + // + ShareTo share_to = 7; + // + string author = 8; + // + int64 author_id = 9; + // + string short_link = 10; + // + string play_number = 11; + // + int64 room_id = 12; + // + int32 ep_id = 13; + // + string area_name = 14; + // + string author_face = 15; + // + int32 season_id = 16; + // + string share_from = 17; + // + string season_title = 18; + // + string from = 19; +} + +// +message ShareTo { + // + bool dynamic = 1; + // + bool im = 2; + // + bool copy = 3; + // + bool more = 4; + // + bool wechat = 5; + // + bool weibo = 6; + // + bool wechat_monment = 7; + // + bool qq = 8; + // + bool qzone = 9; + // + bool facebook = 10; + // + bool line = 11; + // + bool messenger = 12; + // + bool whats_app = 13; + // + bool twitter = 14; +} + +// +enum Sort { + // + SORT_DEFAULT = 0; + // + SORT_VIEW_COUNT = 1; + // + SORT_PUBLISH_TIME = 2; + // + SORT_DANMAKU_COUNT = 3; +} + +// +message Space { + // + int32 show = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string text = 4; + // + string space_url = 5; +} + +// +message SportsMatchItem { + // + int64 match_id = 1; + // + int64 season_id = 2; + // + string match_name = 3; + // + string img = 4; + // + string begin_time_desc = 5; + // + string match_status_desc = 6; + // + string sub_content = 7; + // + string sub_extra_icon = 8; +} + +// +message Stat { + // + int32 play = 1; + // + int32 like = 2; + // + int32 reply = 3; +} + +// +message TabInfo { + // + string tab_name = 1; + // + string tab_url = 2; + // + int32 sort = 3; +} + +// +message TextButton { + // + string text = 1; + // + string uri = 2; +} + +// +message TextLabel { + // + string text = 1; + // + string uri = 2; +} + +// +message Texts { + // + string booking_text = 1; + // + string unbooking_text = 2; +} + +// +message ThreePoint { + // + string type = 1; + // + string icon = 2; + // + string title = 3; +} + +// +message ThreePoint2 { + // + repeated DislikeReason dislike_reasons = 1; + // + repeated DislikeReason feedbacks = 2; + // + int32 watch_later = 3; +} + +// +message ThreePointV2 { + // + string title = 1; + // + string subtitle = 2; + // + repeated DislikeReason reasons = 3; + // + string type = 4; + // + int64 id = 5; +} + +// +message ThreePointV3 { + // + string title = 1; + // + string selected_title = 2; + // + string subtitle = 3; + // + repeated DislikeReason reasons = 4; + // + string type = 5; + // + int64 id = 6; + // + int32 selected = 7; + // + string icon = 8; + // + string selected_icon = 9; + // + string url = 10; + // + int32 default_id = 11; +} + +// +message ThreePointV4 { + // + SharePlane share_plane = 1; + // + WatchLater watch_later = 2; +} + +// +message TimeLine { + // + string icon = 1; + // + string title = 2; + // + int32 color = 3; + // + int32 segment = 4; + // + int64 start_second = 5; + // + int64 end_second = 6; + // + int32 init_position = 7; + // + int32 type = 8; + // + repeated VideoTextItem items = 9; +} + +// +message TimeLineEvents { + // + int64 event_id = 1; + // + string title = 2; + // + string time_desc = 3; + // + string jump_link = 4; +} + +// +message TopGameUI { + // + string background_image = 1; + // + string cover_default_color = 2; + // + string gaussian_blur_value = 3; + // + string mask_color_value = 4; + // + string mask_opacity = 5; + // + string module_color = 6; +} + +// +message TopicItem { + // + string uri = 1; + // + string param = 2; + // + string goto = 3; + // + string linktype = 4; + // + int32 position = 5; + // + string trackid = 6; + // + int64 id = 7; + // + string title = 8; + // + int32 content_type = 9; + // + string up_name = 10; + // + string publish_text = 11; +} + +// +message TrafficConfig { + // + string title = 1; + // + repeated TrafficConfigOption options = 2; + // + int64 default_option_id = 3; +} + +// +message TrafficConfigOption { + // + int32 id = 1; + // + string text = 2; +} + +// +message UPRecommendItem { + // + int64 mid = 1; + // + int32 level = 2; + // + int32 is_senior_member = 3; + // + string name = 4; + // + string cover = 5; + // + string uri = 6; + // + repeated string user_card_info = 7; + // + repeated ThreePoint three_point = 8; + // + Relation relation = 9; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar_info = 10; + // + SharePlane share_plane = 11; + // + string live_link = 12; + // + int32 is_live = 13; +} + +// +message UpArgs { + // + int64 up_id = 1; + // + string up_name = 2; + // + string up_face = 3; + // + int32 selected = 4; +} + +// +message Upper { + // + int64 mid = 1; + // + string title = 2; + // + string cover = 3; + // + string ptime_text = 4; +} + +// +enum UserSort { + // + USER_SORT_DEFAULT = 0; + // + USER_SORT_FANS_DESCEND = 1; + // + USER_SORT_FANS_ASCEND = 2; + // + USER_SORT_LEVEL_DESCEND = 3; + // + USER_SORT_LEVEL_ASCEND = 4; +} + +// +enum UserType { + // + ALL = 0; + // + UP = 1; + // + NORMAL_USER = 2; + // + AUTHENTICATED_USER = 3; +} + +// +message Video { + // + string bvid = 1; + // + int64 cid = 2; + // + string share_subtitle = 3; + // + bool is_hot_label = 4; + // + int32 page = 5; + // + int32 page_count = 6; + // + string short_link = 7; +} + +// +message VideoTextItem { + // + int32 type = 1; + // + string text = 2; + // + int64 start_second = 3; + // + string jump_url = 4; + // + string img_url = 5; + // + string video_time = 6; +} + +// +message VipInfo { + // + int32 type = 1; + // + int32 status = 2; + // + int64 due_date = 3; + // + int32 vip_pay_type = 4; + // + int32 theme_type = 5; + // + VipLabel label = 6; + // + int32 avatar_subscript = 7; + // + string nickname_color = 8; + // + int64 role = 9; + // + string avatar_subscript_url = 10; + // + int32 tv_vip_status = 11; + // + int32 tv_vip_pay_type = 12; +} + +// +message VipLabel { + // + string path = 1; + // + string text = 2; + // + string label_theme = 3; + // + string text_color = 4; + // + int32 bg_style = 5; + // + string bg_color = 6; + // + string border_color = 7; + // + bool use_img_label = 8; + // + string img_label_uri_hans = 9; + // + string img_label_uri_hant = 10; + // + string img_label_uri_hans_static = 11; + // + string img_label_uri_hant_static = 12; +} + +// +message WatchButton { + // + string title = 1; + // + string link = 2; +} + +// +message WatchLater { + // + int64 aid = 1; + // + string bvid = 2; +} + +// +message WatchedShow { + // + bool switch = 1; + // + int64 num = 2; + // + string text_small = 3; + // + string text_large = 4; + // + string icon = 5; + // + string icon_location = 6; + // + string icon_web = 7; +} + diff --git a/proto/bilibili/polymer/chronos/v1.proto b/proto/bilibili/polymer/chronos/v1.proto new file mode 100644 index 0000000..1373e84 --- /dev/null +++ b/proto/bilibili/polymer/chronos/v1.proto @@ -0,0 +1,44 @@ +syntax = "proto3"; + +package bilibili.polymer.chronos.v1; + +// +service ChronosService { + // + rpc ObtainChronosPackage (ObtainChronosPackageReq) returns (ObtainChronosPackageRsp); + // + rpc ObtainChronosPackageV2 (ObtainChronosPackageV2Req) returns (ObtainChronosPackageRsp); +} + +// +message ObtainChronosPackageReq { + // + string service_key = 1; + // + string engine_version = 2; + // + string biz_id = 3; +} + +// +message ObtainChronosPackageRsp { + // + string md5 = 1; + // + string url = 2; + // + string sign = 3; +} + +// +message ObtainChronosPackageV2Req { + // + string service_key = 1; + // + string engine_version = 2; + // + string biz_id = 3; + // + string business_app_key = 4; +} + diff --git a/proto/bilibili/polymer/community/govern/v1.proto b/proto/bilibili/polymer/community/govern/v1.proto new file mode 100644 index 0000000..3ae0656 --- /dev/null +++ b/proto/bilibili/polymer/community/govern/v1.proto @@ -0,0 +1,110 @@ +syntax = "proto3"; + +package bilibili.polymer.community.govern.v1; + +// +service AntiHarassmentService { + // + rpc LoadAntiHarassmentSettings (LoadAntiHarassmentSettingsReq) returns (LoadAntiHarassmentSettingsRsp); + // + rpc StoreAntiHarassmentSettings (StoreAntiHarassmentSettingsReq) returns (StoreAntiHarassmentSettingsRsp); +} + +// +message AntiHarassmentInfo { + // + AntiHarassmentLimit limit = 1; + // + int32 follow_time_limit_second = 2; + // + int64 expire_time = 3; +} + +// +enum AntiHarassmentLimit { + // + DefaultLimit = 0; + // + FollowLimit = 1; + // + ReFollowLimit = 2; + // + TwoWayFollow = 3; + // + AllLimit = 4; +} + +// +message AntiHarassmentSetting { + // + int64 mid = 1; + // + bool auto_limit = 2; + // + AntiHarassmentInfo im = 3; + // + AntiHarassmentInfo reply = 4; + // + AntiHarassmentInfo dm = 5; + // + AntiHarassmentInfo reply_me = 6; + // + AntiHarassmentInfo like_me = 7; + // + AntiHarassmentInfo at_me = 8; + // + int64 auto_limit_expire_time = 9; +} + +// +enum BizType { + // + InvalidBizType = 0; + // + Im = 1; + // + Dm = 2; + // + Reply = 3; + // + ReplyMe = 4; + // + LikeMe = 5; + // + AtMe = 6; +} + +// +message LoadAntiHarassmentSettingsReq { + // + BizType biz_type = 1; + // + int64 recv_mid = 2; + // + int64 send_mid = 3; +} + +// +message LoadAntiHarassmentSettingsRsp { + // + bool anti_harassment_ret = 1; + // + AntiHarassmentSetting anti_harassment_setting = 2; + // + int32 show_window = 3; +} + +// +message StoreAntiHarassmentSettingsReq { + // + BizType biz_type = 1; + // + int64 mid = 2; + // + AntiHarassmentSetting anti_harassment_setting = 3; +} + +// +message StoreAntiHarassmentSettingsRsp { +} + diff --git a/proto/bilibili/polymer/contract.proto b/proto/bilibili/polymer/contract.proto new file mode 100644 index 0000000..3140790 --- /dev/null +++ b/proto/bilibili/polymer/contract.proto @@ -0,0 +1,110 @@ +syntax = "proto3"; + +package bilibili.polymer.contract; + +import "google/protobuf/empty.proto"; + +// +service Contract { + // + rpc AddContract (AddContractReq) returns (google.protobuf.Empty); + // + rpc AddContractV2 (AddContractReq) returns (AddContractReply); + // + rpc ContractConfig (ContractConfigReq) returns (ContractConfigReply); +} + +// +message AddContractReply { + // + bool allow_message = 1; + // + bool allow_reply = 2; + // + string input_text = 3; + // + string input_title = 4; +} + +// +message AddContractReq { + // + enum Source { + // + PLAY = 0; + // + SPACE = 1; + } + + // + CommonReq common = 1; + // + int64 mid = 2; + // + int64 up_mid = 3; + // + int64 aid = 4; + // + AddContractReq.Source source = 5; +} + +// +message CommonReq { + // + string platform = 1; + // + int32 build = 2; + // + string buvid = 3; + // + string mobi_app = 4; + // + string device = 5; + // + string ip = 6; + // + string spmid = 7; +} + +// +message ContractCard { + // + string title = 1; + // + string sub_title = 2; +} + +// +message ContractConfigReply { + // + int32 is_follow_display = 1; + // + int32 is_triple_display = 2; + // + ContractCard contract_card = 3; +} + +// +message ContractConfigReq { + // + enum Source { + // + PLAY_Source = 0; + // + SPACE_Source = 1; + // + STORY = 2; + } + + // + CommonReq common = 1; + // + int64 mid = 2; + // + int64 up_mid = 3; + // + int64 aid = 4; + // + ContractConfigReq.Source source = 5; +} + diff --git a/proto/bilibili/polymer/list.proto b/proto/bilibili/polymer/list.proto new file mode 100644 index 0000000..5b09a19 --- /dev/null +++ b/proto/bilibili/polymer/list.proto @@ -0,0 +1,46 @@ +syntax = "proto3"; + +package bilibili.polymer.list; + +// +service List { + // + rpc CheckAccount (CheckAccountReq) returns (CheckAccountReply); + // + rpc FavoriteTab (FavoriteTabReq) returns (FavoriteTabReply); +} + +// +message CheckAccountReply { + // + bool is_new = 1; +} + +// +message CheckAccountReq { + // + int64 uid = 1; + // + string periods = 2; +} + +// +message FavoriteTabItem { + // + string name = 1; + // + string uri = 2; + // + string type = 3; +} + +// +message FavoriteTabReply { + // + repeated FavoriteTabItem items = 1; +} + +// +message FavoriteTabReq { +} + diff --git a/proto/bilibili/relation/interfaces.proto b/proto/bilibili/relation/interfaces.proto new file mode 100644 index 0000000..b1495c5 --- /dev/null +++ b/proto/bilibili/relation/interfaces.proto @@ -0,0 +1,114 @@ +syntax = "proto3"; + +package bilibili.relation.interfaces; + +import "bilibili/dagw/component/avatar/v1.proto"; + +// +service RelationInterface { + // + rpc AtSearch (AtSearchReq) returns (AtSearchReply); + // + rpc ModifyRelation (FollowingReq) returns (ModifyRelationReply); +} + +// +enum Act { + // + ACT_NA = 0; + // + ACT_ADD_FOLLOWING = 1; + // + ACT_DEL_FOLLOWING = 2; + // + ACT_ADD_WHISPER = 3; + // + ACT_DEL_WHISPER = 4; + // + ACT_ADD_BLACK = 5; + // + ACT_DEL_BLACK = 6; + // + ACT_DEL_FOLLOWER = 7; +} + +// +message AtGroup { + // + enum Type { + // + AT_GROUP_TYPE_DEFAULT = 0; + // + AT_GROUP_TYPE_RECENT = 1; + // + AT_GROUP_TYPE_FOLLOW = 2; + // + AT_GROUP_TYPE_FANS = 3; + // + AT_GROUP_TYPE_OTHERS = 4; + } + + // + AtGroup.Type group_type = 1; + // + string group_name = 2; + // + repeated AtItem items = 3; +} + +// +message AtItem { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + int32 fans = 4; + // + int32 official_verify_type = 5; + // + bilibili.dagw.component.avatar.v1.AvatarItem avatar = 6; +} + +// +message AtSearchReply { + // + repeated AtGroup groups = 1; +} + +// +message AtSearchReq { + // + int64 mid = 1; + // + string keyword = 2; + // + int32 scene = 3; +} + +// +message FollowingReq { + // + int64 fid = 1; + // + Act act = 2; + // + int32 source = 3; + // + string spmid = 4; + // + string extend_content = 5; + // + string from_spmid = 6; + // + string from_scmid = 7; + // + string action_id = 8; +} + +// +message ModifyRelationReply { +} + diff --git a/proto/bilibili/rpc.proto b/proto/bilibili/rpc.proto new file mode 100644 index 0000000..8768136 --- /dev/null +++ b/proto/bilibili/rpc.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package bilibili.rpc; + +import "google/protobuf/any.proto"; + +// +message Status { + // + int32 code = 1; + // + string message = 2; + // + repeated google.protobuf.Any details = 3; +} + diff --git a/proto/bilibili/vas/garb/model.proto b/proto/bilibili/vas/garb/model.proto new file mode 100644 index 0000000..26e2fa7 --- /dev/null +++ b/proto/bilibili/vas/garb/model.proto @@ -0,0 +1,96 @@ +syntax = "proto3"; + +package bilibili.vas.garb.model; + +// +message FanNumColorFormat { + // + string start_point = 1; + // + string end_point = 2; + // + repeated string colors = 3; + // + repeated int64 gradients = 4; +} + +// +message ImageGroup { + // + message VisualEffect { + // + string medal_image = 1; + // + string color_theme = 2; + } + + // + int64 type = 1; + // + VisualEffect effect_visual = 2; +} + +// +message UserCardBG { + // + int64 id = 1; + // + string name = 2; + // + string image = 3; + // + string jump_url = 4; + // + UserFanShow fan = 5; + // + string type = 6; + // + ImageGroup image_group = 7; +} + +// +message UserFanShow { + // + int64 is_fan = 1; + // + int64 number = 2; + // + string color = 3; + // + string name = 4; + // + string num_desc = 5; + // + string num_prefix = 6; + // + FanNumColorFormat color_format = 7; +} + +// +message UserPendant { + // + int64 id = 1; + // + string name = 2; + // + string image = 3; + // + string jump_url = 4; + // + string type = 5; + // + string image_enhance = 6; + // + string image_enhance_frame = 7; +} + +// +message UserSailing { + // + UserPendant pendant = 1; + // + UserCardBG card_bg = 2; + // + UserCardBG card_bg_with_focus = 3; +} + diff --git a/proto/bilibili/vas/garb/service.proto b/proto/bilibili/vas/garb/service.proto new file mode 100644 index 0000000..3e4291b --- /dev/null +++ b/proto/bilibili/vas/garb/service.proto @@ -0,0 +1,71 @@ +syntax = "proto3"; + +package bilibili.vas.garb.service; + +import "bilibili/metadata/device.proto"; +import "bilibili/vas/garb/model.proto"; + +// +message SailingEquipMultiReply { + // + map data = 1; +} + +// +message SailingEquipMultiReq { + // + repeated int64 mids = 1; + // + int64 up_mid = 2; + // + int64 otype = 3; + // + int64 oid = 4; + // + int64 mid = 5; + // + bilibili.metadata.device.Device device = 6; +} + +// +message UserCard { + // + int64 id = 1; + // + int64 item_id = 2; + // + string name = 3; + // + string card_url = 4; + // + string big_card_url = 5; + // + int64 card_type = 6; + // + int64 expire_time = 7; + // + string card_type_name = 8; + // + string jump_url = 9; + // + bilibili.vas.garb.model.UserFanShow fan = 10; + // + string image_enhance = 12; + // + bilibili.vas.garb.model.ImageGroup image_group = 13; +} + +// +message UserCardMultiReply { + // + map cards = 1; +} + +// +message UserCardMultiReq { + // + repeated int64 mids = 1; + // + bilibili.metadata.device.Device device = 2; +} + diff --git a/proto/bilibili/vega/deneb/v1.proto b/proto/bilibili/vega/deneb/v1.proto new file mode 100644 index 0000000..40babd6 --- /dev/null +++ b/proto/bilibili/vega/deneb/v1.proto @@ -0,0 +1,38 @@ +syntax = "proto3"; + +package bilibili.vega.deneb.v1; + +import "google/protobuf/any.proto"; + +// +service VegaDenebRPC { + // + rpc MessagePulls (MessagePullsReq) returns (MessagePullsReply); +} + +// +message MessagePullsReply { + // + repeated google.protobuf.Any data = 1; + // + int32 pn = 2; + // + int32 ps = 3; + // + int64 count = 4; + // + bool has_next = 5; +} + +// +message MessagePullsReq { + // + int64 start_seq_id = 1; + // + int64 end_seq_id = 2; + // + int32 pn = 3; + // + int32 ps = 4; +} + diff --git a/proto/pgc/biz.proto b/proto/pgc/biz.proto new file mode 100644 index 0000000..cf3ba20 --- /dev/null +++ b/proto/pgc/biz.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +package pgc.biz; + +// +message RoomProto { + // + repeated string room_id = 1; +} + diff --git a/proto/pgc/gateway/vega/v1.proto b/proto/pgc/gateway/vega/v1.proto new file mode 100644 index 0000000..806dc1d --- /dev/null +++ b/proto/pgc/gateway/vega/v1.proto @@ -0,0 +1,80 @@ +syntax = "proto3"; + +package pgc.gateway.vega.v1; + +import "bilibili/rpc.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/empty.proto"; + +// +message AuthReq { +} + +// +message AuthResp { +} + +// +message FrameOption { + // + int64 vega_id = 1; + // + string req_id = 2; + // + int64 sequence = 3; + // + bool is_ack = 4; + // + bilibili.rpc.Status status = 5; + // + string ack_origin = 6; + // + int64 mid = 7; +} + +// +message HeartbeatReq { +} + +// +message HeartbeatResp { +} + +// +message MessageAckReq { + // + string vega_id = 1; + // + string req_id = 2; + // + string origin = 3; + // + string target_path = 4; +} + +// +message SubscribeReq { + // + repeated TargetPath target_paths = 1; +} + +// +message TargetPath { + // + string key = 1; + // + google.protobuf.Any subs = 2; +} + +// +message VegaFrame { + // + FrameOption options = 1; + // + string route_path = 2; + // + google.protobuf.Any body = 3; + // + google.protobuf.Any sub_biz = 4; +} + diff --git a/proto/version.json b/proto/version.json new file mode 100644 index 0000000..d02af88 --- /dev/null +++ b/proto/version.json @@ -0,0 +1,6 @@ +{ + "decompiler": "mikufans-decompiler/0.3.0-rc.4-master-b5b64e9-RELEASE", + "package": "tv.danmaku.bili", + "version": 8430300, + "build_sn": 18619313 +} \ No newline at end of file From fdcdbe447906134e9c25778f5f946477666d74cb Mon Sep 17 00:00:00 2001 From: Hantong Chen Date: Sun, 4 May 2025 00:00:47 +0800 Subject: [PATCH 2/8] comments: bilibili.api.probe.v1 --- proto/bilibili/api/probe/v1.proto | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/proto/bilibili/api/probe/v1.proto b/proto/bilibili/api/probe/v1.proto index bb39b70..1d97a82 100644 --- a/proto/bilibili/api/probe/v1.proto +++ b/proto/bilibili/api/probe/v1.proto @@ -4,13 +4,16 @@ package bilibili.api.probe.v1; // service Probe { - // + // Simulate error codes and return rpc TestCode (CodeReq) returns (CodeReply); - // + // Test a regular request, which can be placed together with a certain API + // to test connectivity. rpc TestReq (ProbeReq) returns (ProbeReply); - // + // TODO: not implemented rpc TestStream (stream ProbeStreamReq) returns (stream ProbeStreamReply); - // + // Within the test environment, the server sends a message every minute, + // containing a message ID. The client needs to record and report the + // message ID. rpc TestSub (ProbeSubReq) returns (stream ProbeSubReply); } From e88f332a4a47a8a757c449c4f8f821e8b9af3ca3 Mon Sep 17 00:00:00 2001 From: Hantong Chen Date: Sun, 4 May 2025 00:08:15 +0800 Subject: [PATCH 3/8] comments: bilibili.app.archive.v1 --- proto/bilibili/app/archive/v1.proto | 161 +++++++++++++++------------- 1 file changed, 86 insertions(+), 75 deletions(-) diff --git a/proto/bilibili/app/archive/v1.proto b/proto/bilibili/app/archive/v1.proto index e1d0f27..08d090e 100644 --- a/proto/bilibili/app/archive/v1.proto +++ b/proto/bilibili/app/archive/v1.proto @@ -6,67 +6,74 @@ package bilibili.app.archive.v1; message Arc { // int64 aid = 1; - // + // 分 P 数 int64 videos = 2; - // + // 分区 ID int32 type_id = 3; - // + // 分区名称 string type_name = 4; - // + // 是否转载 + // + // - 0: 历史上可能遗留的脏数据 + // - 1: 原创 + // - 2: 转载 int32 copyright = 5; - // + // 封面地址 string pic = 6; - // + // 标题 string title = 7; - // + // 发布时间戳 int64 pubdate = 8; - // + // 提交时间戳 int64 ctime = 9; - // + // 简介 string desc = 10; - // + // 状态 (>= 0 为正常可见状态) int32 state = 11; + // 是否可访问 // + // - 0: 公开 + // - 10000: 仅登录用户 int32 access = 12; - // + // 属性 int32 attribute = 13; - // + // Depecated string tag = 14; - // + // Deprecated repeated string tags = 15; - // + // 所有分 P 加起来的总时长 (seconds) int64 duration = 16; - // + // 参与的活动 id int64 mission_id = 17; - // + // 参与的商单 id int64 order_id = 18; - // + // 强制跳转地址 string redirect_url = 19; // int64 forward = 20; - // + // 参见 [`Rights`] Rights rights = 21; - // + // 稿件作者信息, 参见 [`Author`] Author author = 22; - // + // 稿件计数信息, 参见 [`Stat`] Stat stat = 23; // string report_result = 24; - // + // 发布时动态描述 string dynamic = 25; - // + // 首个分 P 的 cid int64 first_cid = 26; - // + // 首个分 P 的分辨率 Dimension dimension = 27; - // + // 联合投稿信息 repeated StaffInfo staff_info = 28; - // + // UGC 剧集 ID int64 season_id = 29; - // + // 属性 (旧的 int32 不够用了) int64 attribute_v2 = 30; - // + // ? UGC 剧集主题 SeasonTheme season_theme = 31; - // + // ? 短链接 string short_link_v2 = 40; // int32 up_from_v2 = 41; @@ -74,79 +81,83 @@ message Arc { string first_frame = 42; } -// +// 作者信息 message Author { - // + // UP mid int64 mid = 1; - // + // UP 昵称 string name = 2; - // + // UP 头像 string face = 3; } -// +// 视频分辨率 message Dimension { - // + // 宽 int64 width = 1; - // + // 高 int64 height = 2; - // + // 是否竖屏 int64 rotate = 3; } -// +// 分 P 信息 message Page { - // + // 视频流 CID int64 cid = 1; - // + // 视频序号 int32 page = 2; + // 视频来源 // + // - vupload + // - qq: Tencent + // - hunan: Hunan TV string from = 3; - // + // 视频标题 string part = 4; - // + // 视频时长 (seconds) int64 duration = 5; - // + // 站外视频 vid string vid = 6; - // + // 视频简介 string desc = 7; - // + // 站外视频跳转地址 string web_link = 8; - // + // 见 [`Dimension`] Dimension dimension = 9; // string first_frame = 10; } -// +// 常用属性, 0 否 1 是 message Rights { - // + // 是否付费(旧版) int32 bp = 1; - // + // 是否支持充电 int32 elec = 2; - // + // 是否下载 int32 download = 3; - // + // 是否电影 int32 movie = 4; - // + // 是否是需要付费的 PGC 稿件 int32 pay = 5; - // + // Deprecated int32 hd5 = 6; - // + // 是否允许转发 int32 no_reprint = 7; - // + // 是否可以自动播放 int32 autoplay = 8; - // + // 是否是需要付费的 UGC 稿件 int32 ugc_pay = 9; - // + // 是否联合投稿 int32 is_cooperation = 10; - // + // 需要付费的 PGC 稿件是否支持预览 int32 ugc_pay_preview = 11; - // + // 是否禁止后台播放 int32 no_background = 12; // int32 arc_pay = 13; - // + // ? 需要付费的稿件是否支持免费畅览 int32 pay_free_watch = 14; } @@ -160,39 +171,39 @@ message SeasonTheme { string text_color = 3; } -// +// 联合投稿成员 message StaffInfo { - // + // 联合投稿成员 mid int64 mid = 1; - // + // 联合投稿成员角色 string title = 2; - // + // 属性 int64 attribute = 3; } -// +// 计数相关信息 message Stat { - // + // 稿件 avid int64 aid = 1; - // + // 播放量 int32 view = 2; - // + // 弹幕数 int32 danmaku = 3; - // + // 评论数 int32 reply = 4; - // + // 收藏数 int32 fav = 5; - // + // 投币数 int32 coin = 6; - // + // 分享数 int32 share = 7; - // + // 当前排名 int32 now_rank = 8; - // + // 历史最高排名 int32 his_rank = 9; - // + // 点赞数 int32 like = 10; - // + // 点踩数 (Deprecated) int32 dislike = 11; } From 4369a5a2eff2ab2549bcd44c1e7df27042d3ba08 Mon Sep 17 00:00:00 2001 From: Hantong Chen Date: Sun, 4 May 2025 00:13:41 +0800 Subject: [PATCH 4/8] comments: bilibili.app.card.v1 --- proto/bilibili/app/card/v1.proto | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/proto/bilibili/app/card/v1.proto b/proto/bilibili/app/card/v1.proto index 45a18bc..0127324 100644 --- a/proto/bilibili/app/card/v1.proto +++ b/proto/bilibili/app/card/v1.proto @@ -276,7 +276,9 @@ message EntranceItem { int64 entrance_id = 6; // Bubble bubble = 7; - // + // 入口类型 + // + // - 1: 分品类热门 int32 entrance_type = 8; } @@ -674,13 +676,22 @@ message ReasonStyle { string left_icon_type = 16; } -// +// 新关注组件 message Relation { - // + // - 1: 未关注 + // - 2: 已关注 + // - 3: 被关注 + // - 4: 互相关注 int32 status = 1; + // 用户关注 UP 主 // + // - 0: 未关注 + // - 1: 已关注 int32 is_follow = 2; + // UP 主关注用户 // + // - 0: 未被关注 + // - 1: 已被关注 int32 is_followed = 3; } @@ -698,7 +709,7 @@ message SharePlane { int64 aid = 5; // string bvid = 6; - // + // 分享渠道, 如: `"weibo": true` map share_to = 7; // string author = 8; @@ -878,7 +889,7 @@ message SmallCoverV5 { ReasonStyle rcmd_reason_style = 7; // HotwordEntrance hotword_entrance = 8; - // + // 直播小卡角标 ReasonStyle corner_mark_style = 9; // int32 right_icon1 = 10; From 6e48a4973430ef5d2481285ea5265fc37236f30d Mon Sep 17 00:00:00 2001 From: Hantong Chen Date: Sun, 4 May 2025 01:01:13 +0800 Subject: [PATCH 5/8] typo: comments: bilibili.app.archive.v1 --- proto/bilibili/app/archive/v1.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/bilibili/app/archive/v1.proto b/proto/bilibili/app/archive/v1.proto index 08d090e..49a441c 100644 --- a/proto/bilibili/app/archive/v1.proto +++ b/proto/bilibili/app/archive/v1.proto @@ -37,7 +37,7 @@ message Arc { int32 access = 12; // 属性 int32 attribute = 13; - // Depecated + // Deprecated string tag = 14; // Deprecated repeated string tags = 15; From 2b7e13f0f1083fafe2e24dad9e7f26ee288ceea2 Mon Sep 17 00:00:00 2001 From: Hantong Chen Date: Sun, 4 May 2025 02:20:43 +0800 Subject: [PATCH 6/8] comments: bilibili.app.dynamic.v1 --- proto/bilibili/app/dynamic/v1.proto | 877 +++++++++++++++------------- 1 file changed, 474 insertions(+), 403 deletions(-) diff --git a/proto/bilibili/app/dynamic/v1.proto b/proto/bilibili/app/dynamic/v1.proto index c2305c7..c9d44f3 100644 --- a/proto/bilibili/app/dynamic/v1.proto +++ b/proto/bilibili/app/dynamic/v1.proto @@ -4,33 +4,33 @@ package bilibili.app.dynamic.v1; import "bilibili/app/archive/middleware/v1.proto"; -// +// 动态 service Dynamic { - // + // 通过动态 ID 批量获取动态详情请求 rpc DynDetails (DynDetailsReq) returns (DynDetailsReply); // rpc DynMixUpListSearch (DynMixUpListSearchReq) returns (DynMixUpListSearchReply); // rpc DynMixUpListViewMore (NoReq) returns (DynMixUpListViewMoreReply); - // + // 动态同城页请求 rpc DynOurCity (DynOurCityReq) returns (DynOurCityReply); - // + // 动态同城开关请求 rpc DynOurCitySwitch (DynOurCitySwitchReq) returns (NoReply); - // + // 动态红点请求 rpc DynRed (DynRedReq) returns (DynRedReply); - // + // 动态 tab 请求 rpc DynTab (DynTabReq) returns (DynTabReply); - // + // 最近访问标记已读请求 rpc DynUpdOffset (DynUpdOffsetReq) returns (NoReply); - // + // 动态视频页请求 rpc DynVideo (DynVideoReq) returns (DynVideoReqReply); - // + // 最近访问个人视频 feed 流请求 rpc DynVideoPersonal (DynVideoPersonalReq) returns (DynVideoPersonalReply); // rpc GeoCoder (GeoCoderReq) returns (GeoCoderReply); // rpc OurCityClickReport (OurCityClickReportReq) returns (OurCityClickReportReply); - // + // 小视频连播 rpc SVideo (SVideoReq) returns (SVideoReply); } @@ -153,101 +153,101 @@ message BubbleModuleUser { repeated UserInfo users = 1; } -// +// 付费课程批次卡片数据 message CardCurrBatch { - // + // 标题 string title = 1; - // + // 封面 string cover = 2; - // + // 跳转地址 string uri = 3; - // + // 展示项 1: 本集标题 string text1 = 4; - // + // 展示项 2: 更新了多少个视频 string text2 = 5; - // + // 角标 VideoBadge badge = 6; } -// +// 付费课程系列卡片数据 message CardCurrSeason { - // + // 标题 string title = 1; - // + // 封面 string cover = 2; - // + // 跳转地址 string uri = 3; - // + // 展示项 1 (展示更新信息) string text1 = 4; - // + // 描述信息 string desc = 5; - // + // 角标 VideoBadge badge = 6; } -// +// PGC 视频卡片数据 message CardPGC { - // + // 标题 string title = 1; - // + // 封面 string cover = 2; - // + // 秒开地址 string uri = 3; - // + // 视频封面展示项 1 string cover_left_text1 = 4; - // + // 视频封面展示项 2 string cover_left_text2 = 5; - // + // 视频封面展示项 3 string cover_left_text3 = 6; - // + // 视频 cid int64 cid = 7; - // + // PGC 剧集 ID int64 season_id = 8; - // + // PGC 剧集分集 ID int64 epid = 9; - // + // 视频 avid int64 aid = 10; - // + // 视频源类型 MediaType media_type = 11; - // + // 番剧类型 VideoSubType sub_type = 12; - // + // 番剧是否为预览视频 int32 is_preview = 13; - // + // 分辨率 Dimension dimension = 14; - // + // 角标 repeated VideoBadge badge = 15; - // + // 是否能够自动播放 int32 can_play = 16; - // + // PGC 剧集信息 PGCSeason season = 17; } -// +// UGC 视频卡片数据 message CardUGC { - // + // 标题 string title = 1; - // + // 封面图 string cover = 2; - // + // 秒开地址 string uri = 3; - // + // 视频封面展示项 1 string cover_left_text1 = 4; - // + // 视频封面展示项 2 string cover_left_text2 = 5; - // + // 视频封面展示项 3 string cover_left_text3 = 6; - // + // 视频 avid int64 avid = 7; - // + // 视频 cid int64 cid = 8; - // + // 视频源类型 MediaType media_type = 9; - // + // 分辨率 Dimension dimension = 10; - // + // 角标 repeated VideoBadge badge = 11; - // + // 是否能够自动播放 int32 can_play = 12; } @@ -291,73 +291,73 @@ enum CornerType { corner_type_number = 5; } -// +// 粉丝样式 message DecoCardFan { - // + // 是否是粉丝 int32 is_fan = 1; - // + // 数量 int32 number = 2; - // + // 颜色 string color = 3; } -// +// 装扮卡片 message DecorateCard { - // + // 装扮卡片 ID int64 id = 1; - // + // 装扮卡片链接 string card_url = 2; - // + // 装扮卡片点击跳转链接 string jump_url = 3; - // + // 粉丝样式 DecoCardFan fan = 4; } -// +// 文本描述 message Description { - // + // 文本内容 string text = 1; - // + // 文本类型 string type = 2; - // + // 跳转地址 string uri = 3; - // + // emoji 类型 string emoji_type = 4; - // + // 商品类型 string goods_type = 5; } -// +// 分辨率信息 message Dimension { - // + // 高 int64 height = 1; - // + // 宽 int64 width = 2; - // + // 是否为竖屏 int64 rotate = 3; } -// +// 通过动态 ID 批量获取动态详情返回值 message DynDetailsReply { - // + // 动态列表 repeated DynamicItem list = 1; } -// +// 通过动态 ID 批量获取动态详情请求参数 message DynDetailsReq { - // + // 青少年模式 int32 teenagers_mode = 1; - // + // 动态 ID string dynamic_ids = 2; - // + // 清晰度 (供秒开) int32 qn = 3; - // + // 功能版本号 (供秒开) int32 fnver = 4; - // + // 功能标识 (供秒开) int32 fnval = 5; - // + // 返回 playurl 是否强制使用域名 (供秒开) int32 force_host = 6; - // + // 是否需要 4K 视频 (供秒开) int32 fourk = 7; } @@ -381,78 +381,97 @@ message DynMixUpListViewMoreReply { string search_default_text = 2; } -// +// 动态同城物料 message DynOurCityItem { - // + // 卡片类型 + // + // - av: 稿件 + // - draw: 图文 string card_type = 1; - // + // 动态 ID int64 dyn_id = 2; - // + // 跳转地址 string uri = 3; - // + // 模块列表 repeated DynOurCityModule modules = 4; - // + // 资源 ID int64 rid = 5; - // + // ? DEBUG 信息 string debug_info = 6; } -// +// 动态同城物料模块 message DynOurCityModule { - // + // 模块类型 + // + // - `cover`: 封面 + // - `desc`: 描述 + // - `author`: 发布人 + // - `extend`: 扩展部分 oneof module_item { - // + // 参见 [`DynOurCityModuleCover`] DynOurCityModuleCover module_cover = 2; - // + // 参见 [`DynOurCityModuleDesc`] DynOurCityModuleDesc module_desc = 3; - // + // 参见 [`DynOurCityModuleAuthor`] DynOurCityModuleAuthor module_author = 4; - // + // 参见 [`DynOurCityModuleExtend`] DynOurCityModuleExtend module_extend = 5; } - // + // 模块类型 + // + // - `cover`: 封面 + // - `desc`: 描述 + // - `author`: 发布人 + // - `extend`: 扩展部分 string module_type = 1; } -// +// 动态同城物料发布人模块 message DynOurCityModuleAuthor { - // + // 发布人 mid int64 mid = 1; - // + // 发布人昵称 string name = 2; - // + // 发布人头像 string face = 3; - // + // 跳转地址 string uri = 4; } -// +// 动态同城物料封面模块 message DynOurCityModuleCover { - // + // 封面图 + // + // 单图样式取第一个元素 repeated string covers = 1; - // + // 封面样式 + // + // - 1: 横图 + // - 2: 竖图 + // - 3: 方图 int32 style = 2; - // + // 视频封面展示项图标 1 int32 cover_left_icon1 = 3; - // + // 视频封面展示项 1 string cover_left_text1 = 4; - // + // 视频封面展示项图标 2 int32 cover_left_icon2 = 5; - // + // 视频封面展示项 2 string cover_left_text2 = 6; - // + // 视频封面展示项 3 string cover_left_text3 = 7; - // + // 角标 repeated VideoBadge badge = 8; } -// +// 动态同城物料详情模块 message DynOurCityModuleDesc { - // + // 详情 string desc = 1; } -// +// 动态同城物料拓展模块 message DynOurCityModuleExtend { // oneof extend { @@ -463,69 +482,72 @@ message DynOurCityModuleExtend { string type = 1; } -// +// 动态同城物料拓展模块: LBS message DynOurCityModuleExtendLBS { - // + // 标题 string title = 1; - // + // 跳转地址 string uri = 2; - // + // 小图标 string icon = 3; // int32 poi_type = 4; } -// +// 动态同城页请求返回值 message DynOurCityReply { - // + // 翻页游标 string offset = 1; - // + // 是否还有更多 int32 has_more = 2; - // + // 样式类型 + // + // - 1: 双列 + // - 2: 瀑布流 int32 style = 3; - // + // ? 顶部导引信息 string top_label = 4; - // + // 列表详情 repeated DynOurCityItem list = 5; - // + // ? 顶部导引按钮信息 string top_button_label = 6; - // + // 城市 ID int32 city_id = 7; - // + // 城市名称 string city_name = 8; } -// +// 动态同城页请求参数 message DynOurCityReq { - // + // 城市 ID int64 city_id = 1; - // + // 纬度 double lat = 2; - // + // 精度 double lng = 3; - // + // 透传上一次接口请求返回的 offset string offset = 4; - // + // 每页元素个数 int32 page_size = 5; - // + // 青少年模式 int32 teenagers_mode = 6; - // + // 清晰度 (供秒开) int32 qn = 7; - // + // 功能版本号 (供秒开) int32 fnver = 8; - // + // 功能标识 (供秒开) int32 fnval = 9; - // + // 返回 playurl 是否强制使用域名 (供秒开) int32 force_host = 10; - // + // 是否需要 4K 视频 (供秒开) int32 fourk = 11; - // + // 是否开启 LBS int32 lbs_state = 12; // int32 refresh_city = 13; - // + // ab 测试配置 ExpConf exp_conf = 14; - // + // 播放器参数 (供秒开) bilibili.app.archive.middleware.v1.PlayerArgs player_args = 15; // int64 city_code = 16; @@ -533,27 +555,31 @@ message DynOurCityReq { int64 build_time = 17; } -// +// 动态同城开关请求参数 message DynOurCitySwitchReq { // int32 switch = 1; } -// +// 红点具体信息 message DynRedItem { - // + // 数字红点有效更新数 int64 count = 1; } -// +// 动态红点返回值 message DynRedReply { - // + // 动态红点类型 + // + // - count: 数字红点 + // - point: 普通红点 + // - no_point: 没有红点 string red_type = 1; - // + // 动态红点具体信息, 参见 [`DynRedItem`] DynRedItem dyn_red_item = 2; - // + // 动态红点默认 tab 值, 对应 tab 接口下发的 anchor string default_tab = 3; - // + // 动态红点样式 DynRedStyle red_style = 4; // string tab_recall_extra = 5; @@ -561,7 +587,7 @@ message DynRedReply { BubbleInfo bubble_info = 6; } -// +// 动态红点请求参数 message DynRedReq { // enum DynRedReqScene { @@ -575,7 +601,7 @@ message DynRedReq { RED_REQ_SWITCH_ACCOUNT = 3; } - // + // 参见 [`TabOffset`] repeated TabOffset tab_offset = 1; // bool is_new_install = 2; @@ -587,7 +613,7 @@ message DynRedReq { DynRedReq.DynRedReqScene req_scene = 5; } -// +// 动态红点样式 message DynRedStyle { // BgType bg_type = 1; @@ -617,141 +643,158 @@ message DynRedStyleUp { Color border_color = 4; } -// +// 动态 tab message DynTab { - // + // tab 标题 + // + // 优先展示用, 未开启状态第一次请求返回 `同城`, 后续请求返回对应城市名 string title = 1; - // + // 跳转链接 string uri = 2; - // + // 气泡内容 string bubble = 3; - // + // 是否推红点 int32 red_point = 4; - // + // 城市 ID int64 city_id = 5; - // + // 是否弹窗 int32 is_popup = 6; - // + // 弹窗内容 Popup popup = 7; - // + // 是否默认 tab bool default_tab = 8; - // + // 副标题 + // + // 对应城市名 string sub_title = 9; - // + // 锚点字段 string anchor = 10; - // + // ? 内部测试 string internal_test = 11; } -// +// 动态 tab 请求返回值 message DynTabReply { - // + // 参见 [`DynTab`] repeated DynTab dyn_tab = 1; } -// +// 动态 tab 请求参数 message DynTabReq { - // + // 青少年模式 int32 teenagers_mode = 1; } -// +// 最近访问标记已读请求参数 message DynUpdOffsetReq { - // + // 被访问者的 mid int64 host_uid = 1; - // + // 用户已读进度 string read_offset = 2; } -// +// 最近访问个人视频 feed 流返回值 message DynVideoPersonalReply { - // + // 参见 [`DynamicItem`] repeated DynamicItem list = 1; - // + // 偏移量 string offset = 2; - // + // 是否还有更多 int32 has_more = 3; - // + // 已读进度 string read_offset = 4; } -// +// 最近访问个人视频 feed 流请求参数 message DynVideoPersonalReq { - // + // 青少年模式 int32 teenagers_mode = 1; - // + // 被访问者的 mid int64 host_uid = 2; - // + // 偏移量 + // + // 第一页可传空 string offset = 3; - // + // 标明下拉几次 int32 page = 4; - // + // 是否是预加载 int32 is_preload = 5; - // + // 清晰度 (供秒开) int32 qn = 6; - // + // 功能版本号 (供秒开) int32 fnver = 7; - // + // 功能标识 (供秒开) int32 fnval = 8; - // + // 返回 playurl 是否强制使用域名 (供秒开) int32 force_host = 9; - // + // 是否需要 4K 视频 (供秒开) int32 fourk = 10; } -// +// 动态视频页请求参数 message DynVideoReq { - // + // 青少年模式 int32 teenagers_mode = 1; - // + // 透传参数 string update_baseline = 2; - // + // 透传参数 string offset = 3; - // + // 向下翻页数 int32 page = 4; + // 刷新方式 // + // - 1: 向上刷新 + // - 2: 向下翻页 int32 refresh_type = 5; - // + // 清晰度 (供秒开) int32 qn = 6; - // + // 功能版本号 (供秒开) int32 fnver = 7; - // + // 功能标识 (供秒开) int32 fnval = 8; - // + // 返回 playurl 是否强制使用域名 (供秒开) int32 force_host = 9; - // + // 是否需要 4K 视频 (供秒开) int32 fourk = 10; } -// +// 动态视频页返回值 message DynVideoReqReply { - // + // 动态列表 repeated DynamicItem list = 1; - // + // 更新的动态数 int32 update_num = 2; - // + // 历史偏移 string history_offset = 3; - // + // 更新基础信息 string update_baseline = 4; - // + // 是否还有更多 int32 has_more = 5; } -// +// 动态卡片项 message DynamicItem { - // + // 动态卡片类型 + // + // - 转发: `forward` + // - 稿件视频: `av` + // - 折叠: `fold` + // - PGC 内容: `pgc` + // - 付费视频: `courses` + // - 最近访问列表: `upList` + // - 我的追番列表: `followList` string card_type = 1; - // + // 转发类型的 items 的类型 string item_type = 2; - // + // 模块内容 repeated Module modules = 3; - // + // 动态 ID (string) string dyn_id_str = 4; - // + // 转发源动态 ID(string) string orig_dyn_id_str = 5; // int32 r_type = 6; - // + // 该卡片下面是否含折叠卡片 int32 has_fold = 7; } @@ -771,90 +814,100 @@ message ExpConf { repeated Exp exps = 2; } -// +// 拓展信息: 游戏小卡 message ExtInfoGame { - // + // 标题 string title = 1; - // + // 跳转地址 string uri = 2; - // + // 图标 string icon = 3; } -// +// 拓展信息: 热门视频 message ExtInfoHot { - // + // 标题 string title = 1; - // + // 跳转地址 string uri = 2; - // + // 图标 string icon = 3; } -// +// 拓展信息: LBS message ExtInfoLBS { - // + // 标题 string title = 1; - // + // 跳转地址 string uri = 2; - // + // 图标 string icon = 3; // int32 poi_type = 4; } -// +// 拓展信息: 话题小卡 message ExtInfoTopic { - // + // 话题名 string title = 1; - // + // 跳转地址 string uri = 2; - // + // 图标 string icon = 3; } -// +// 拓展 message Extend { - // + // 类型 + // + // - 话题小卡: `topic` + // - lbs: `lbs` + // - 热门视频: `hot` + // - 游戏: `game` oneof extend { - // + // 参见 [`ExtInfoTopic`] ExtInfoTopic ext_info_topic = 2; - // + // 参见 [`ExtInfoLBS`] ExtInfoLBS ext_info_lbs = 3; - // + // 参见 [`ExtInfoHot`] ExtInfoHot ext_info_hot = 4; - // + // 参见 [`ExtInfoGame`] ExtInfoGame ext_info_game = 5; } - // + // 类型 + // + // - 话题小卡: `topic` + // - lbs: `lbs` + // - 热门视频: `hot` + // - 游戏: `game` string type = 1; } -// +// 折叠分类 enum FoldType { - // + // 占位 FoldTypeZero = 0; - // + // 用户发布折叠 FoldTypePublish = 1; - // + // 转发超频折叠 FoldTypeFrequent = 2; - // + // 联合投稿折叠 FoldTypeUnite = 3; - // + // 动态受限折叠 FoldTypeLimit = 4; } -// +// 我的追番列表项目 message FollowListItem { - // + // 剧集 ID int32 season_id = 1; - // + // 标题 string title = 2; - // + // 封面 string cover = 3; - // + // 跳转链接 string url = 4; - // + // 剧集最新分集 NewEP new_ep = 5; } @@ -886,55 +939,55 @@ message Gps { double lng = 2; } -// +// 点赞动画 message LikeAnimation { - // + // 开始动画 string begin = 1; - // + // 过程动画 string proc = 2; - // + // 结束动画 string end = 3; - // + // ID int64 like_icon_id = 4; } -// +// 点赞拓展信息 message LikeInfo { - // + // 点赞动画 LikeAnimation animation = 1; - // + // 是否点赞 int32 is_like = 2; } -// +// 点赞用户 message LikeUser { - // + // 点赞用户 mid int64 uid = 1; - // + // 点赞用户昵称 string uname = 2; - // + // 点击跳转链接 string uri = 3; } -// +// 直播信息 message LiveInfo { - // + // 正在直播 int32 is_living = 1; - // + // 跳转地址 string uri = 2; } -// +// 播放器类型 enum MediaType { - // + // 本地 MediaTypeNone = 0; - // + // UGC MediaTypeUGC = 1; - // + // PGC MediaTypePGC = 2; - // + // 直播 MediaTypeLive = 3; - // + // 小视频 MediaTypeVCS = 4; } @@ -974,175 +1027,190 @@ message MixUpListLiveItem { string uri = 3; } -// +// 卡片模块 message Module { - // + // - 折叠: `fold` + // - 发布人: `author` + // - 动态卡片内容: `dynamic` + // - 描述信息: `desc` + // - 争议小黄条: `dispute` + // - 转发: `forward` + // - 点赞用户: `likeUser` + // - 小卡信息: `extend` + // - 计数信息: `state` + // - 最近访问列表: `upList` + // - 我的追番: `followList` oneof module_item { - // + // 参见 [`ModuleFold`] ModuleFold module_fold = 2; - // + // 参见 [`ModuleAuthor`] ModuleAuthor module_author = 3; - // + // 参见 [`ModuleDynamic`] ModuleDynamic module_dynamic = 4; - // + // 参见 [`ModuleState`] ModuleState module_state = 5; - // + // 参见 [`ModuleForward`] ModuleForward module_forward = 6; - // + // 参见 [`ModuleExtend`] ModuleExtend module_extend = 7; - // + // 参见 [`ModuleDispute`] ModuleDispute module_dispute = 8; - // + // 参见 [`ModuleDesc`] ModuleDesc module_desc = 9; - // + // 参见 [`ModuleLikeUser`] ModuleLikeUser module_like_user = 10; - // + // 参见 [`ModuleDynUpList`] ModuleDynUpList module_up_list = 11; - // + // 参见 [`ModuleFollowList`] ModuleFollowList module_follow_list = 12; } // string module_type = 1; } -// +// Module: 作者信息 message ModuleAuthor { - // + // 作者 mid int64 id = 1; - // + // 时间标签 string ptime_label_text = 2; - // + // 用户详情 UserInfo author = 3; - // + // 装扮卡片 DecorateCard decorate_card = 4; } -// +// Module: 文本内容 message ModuleDesc { // repeated Description desc = 1; } -// +// Module: 争议小黄条 message ModuleDispute { - // + // 标题 string title = 1; - // + // 描述 string desc = 2; - // + // 跳转地址 string uri = 3; } -// +// 最近访问 UP 主列表 message ModuleDynUpList { - // + // 标题展示文案 string module_title = 1; - // + // "全部" 按钮文案 string show_all = 2; - // + // UP 主列表 repeated UpListItem list = 3; } -// +// Module: 动态详情 message ModuleDynamic { - // + // 动态卡片类型 oneof card { - // + // UGC 视频卡片 CardUGC card_ugc = 2; - // + // PGC 视频卡片 CardPGC card_pgc = 3; - // + // 付费课程系列 CardCurrSeason card_curr_season = 4; - // + // 付费课程批次 CardCurrBatch card_curr_batch = 5; } - // + // 动态卡片类型 + // + // - UGC 视频卡片: `ugc` + // - PGC 视频卡片: `pgc` + // - 付费课程系列: `currSeason` + // - 付费课程批次: `currBatch` string card_type = 1; } -// +// Module: 拓展 message ModuleExtend { // repeated Extend extend = 1; } -// +// Module: 折叠 message ModuleFold { - // + // Deprecated, see [`Self::fold_type_v2`] instead. FoldType fold_type = 1; - // + // 折叠文案 string text = 2; - // + // 被折叠的动态 string fold_ids = 3; - // + // 被折叠的用户 repeated UserInfo fold_users = 4; - // + // 折叠分类 FoldType fold_type_v2 = 5; } -// +// 我的追番列表 message ModuleFollowList { - // + // 查看全部的跳转链接 string view_all_link = 1; - // + // 参见 [`FollowListItem`] repeated FollowListItem list = 2; } -// +// Module: 转发 message ModuleForward { - // + // 卡片类型 string card_type = 1; - // + // 嵌套的 modules repeated Module modules = 2; } -// +// Module: 点赞用户 message ModuleLikeUser { - // + // 点赞用户 repeated LikeUser like_users = 1; - // + // 文案 string display_text = 2; } -// +// Module: 计数状态 message ModuleState { - // + // 转发数 int32 repost = 1; - // + // 点赞数 int32 like = 2; - // + // 评论数 int32 reply = 3; - // + // 点赞拓展信息 LikeInfo like_info = 4; - // + // 禁止评论 bool no_comment = 5; - // + // 禁止转发 bool no_forward = 6; } -// +// 认证名牌 message Nameplate { - // + // 认证名牌 ID int64 nid = 1; - // + // 认证名牌名称 string name = 2; - // + // 认证名牌图片 string image = 3; - // + // 认证名牌图片(小) string image_small = 4; - // + // 等级 string level = 5; - // + // 获取条件 string condition = 6; } -// +// 剧集最新分集 message NewEP { - // + // 剧集最新分集的 ID int32 id = 1; - // + // 更新至 XX 话 string index_show = 2; - // + // 更新剧集的封面 string cover = 3; } @@ -1154,11 +1222,13 @@ message NoReply { message NoReq { } -// +// 认证信息 message OfficialVerify { - // + // - 0: 个人 + // - 1: 官方 + // - 127: 未认证 int32 type = 1; - // + // 认证描述 string desc = 2; // int32 is_atten = 3; @@ -1180,13 +1250,13 @@ message OurCityClickReportReq { double lng = 4; } -// +// PGC 剧集信息 message PGCSeason { - // + // 已完结 int32 is_finish = 1; - // + // 标题 string title = 2; - // + // 类型 int32 type = 3; } @@ -1204,13 +1274,13 @@ message PlayerPreloadParams { int32 fourk = 5; } -// +// 动态 tab 弹窗详情 message Popup { - // + // 标题 string title = 1; - // + // 文案 string desc = 2; - // + // 文案附加跳转地址 string uri = 3; } @@ -1333,7 +1403,7 @@ message SVideoReply { SVideoTop top = 4; } -// +// 小视频连播页请求参数 message SVideoReq { // int64 oid = 1; @@ -1395,21 +1465,21 @@ enum SVideoType { TypePopularHotword = 3; } -// +// 分享信息 message ShareInfo { - // + // 稿件 avid int64 aid = 1; - // + // 稿件 bvid string bvid = 2; - // + // 稿件标题 string title = 3; - // + // 稿件字幕 string subtitle = 4; - // + // 稿件方面 string cover = 5; - // + // UP 主 mid int64 mid = 6; - // + // UP 主昵称 string name = 7; } @@ -1427,113 +1497,114 @@ enum StyleType { STYLE_TYPE_COLLECTION_UP = 4; } -// +// 动态红点接口各 tab offset 信息 message TabOffset { - // + // - 1: 综合页 + // - 2: 视频页 int32 tab = 1; - // + // 上一次对应列表页 offset string offset = 2; } -// +// UP 主列表 message UpListItem { - // + // 是否有更新 int32 has_update = 1; - // + // 头像 string face = 2; - // + // 昵称 string name = 3; - // + // mid int64 uid = 4; } -// +// 用户信息 message UserInfo { - // + // 用户 mid int64 mid = 1; - // + // 用户昵称 string name = 2; - // + // 用户头像 string face = 3; - // + // 用户认证信息 OfficialVerify official = 4; - // + // 用户大会员信息 VipInfo vip = 5; - // + // 用户直播信息 LiveInfo live = 6; - // + // 空间页跳转链接 string uri = 7; - // + // 挂件 UserPendant pendant = 8; - // + // 认证名牌 Nameplate nameplate = 9; } -// +// 挂件 message UserPendant { - // + // 挂件 ID int64 pid = 1; - // + // 挂件名称 string name = 2; - // + // 挂件图片 string image = 3; - // + // 挂件有效期 int64 expire = 4; } -// +// 角标 message VideoBadge { - // + // 文案 string text = 1; - // + // 文案文本颜色 string text_color = 2; - // + // 文案文本颜色 (暗黑模式下) string text_color_night = 3; - // + // 背景颜色 string bg_color = 4; - // + // 背景颜色 (暗黑模式下) string bg_color_night = 5; - // + // 边框颜色 string border_color = 6; - // + // 边框颜色 (暗黑模式下) string border_color_night = 7; - // + // 样式 int32 bg_style = 8; } -// +// 番剧类型 enum VideoSubType { - // + // 没有子类型 VideoSubTypeNone = 0; - // + // 番剧 VideoSubTypeBangumi = 1; - // + // 电影 VideoSubTypeMovie = 2; - // + // 纪录片 VideoSubTypeDocumentary = 3; - // + // 国创 VideoSubTypeDomestic = 4; - // + // 电视剧 VideoSubTypeTeleplay = 5; } -// +// 大会员信息 message VipInfo { - // + // 大会员类型 int32 type = 1; - // + // 大会员状态 int32 status = 2; - // + // 大会员过期时间 int64 due_date = 3; - // + // 大会员标签 VipLabel label = 4; - // + // 大会员主题 int32 theme_type = 5; } -// +// 大会员标签 message VipLabel { - // + // 图片地址 string path = 1; } From d014cc6d96f809351f29da0b97dd0b93c9bf309a Mon Sep 17 00:00:00 2001 From: Hantong Chen Date: Sun, 4 May 2025 03:11:31 +0800 Subject: [PATCH 7/8] add: datacenter.hakase.protobuf --- .../hakase/protobuf/android_device_info.proto | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 proto/datacenter/hakase/protobuf/android_device_info.proto diff --git a/proto/datacenter/hakase/protobuf/android_device_info.proto b/proto/datacenter/hakase/protobuf/android_device_info.proto new file mode 100644 index 0000000..3435558 --- /dev/null +++ b/proto/datacenter/hakase/protobuf/android_device_info.proto @@ -0,0 +1,287 @@ +syntax = "proto3"; + +package datacenter.hakase.protobuf; + +// Android device information +message AndroidDeviceInfo { + // SDK version + string sdkver = 1; + // app product id, allocated by data platform + // + // - 粉: 1 + // - 白: 2 + // - 蓝: 3 + // - 直播姬: 4 + // - HD: 5 + // - 海外: 6 + // - OTT: 7 + // - 漫画: 8 + // - TV野版: 9 + // - 小视频: 10 + // - 网易漫画: 11 + // - 网易漫画 lite: 12 + // - 网易漫画 HD: 13 + // - 国际版: 14 + // - SEA: 30 + string app_id = 2; + // app version, like `"7.39.0"` + string app_version = 3; + // app version code, like `"7390300"` + string app_version_code = 4; + // user mid + string mid = 5; + // channel id, like `"master"` + string chid = 6; + // Timestamp (in milliseconds) when the user launches the app at the first + // time after installation. + int64 fts = 7; + // Device local fingerprint (actually not BUVID) + string buvid_local = 8; + // If it's the first time user launches the app after installation. + int32 first = 9; + // app process name, like `"tv.danmaku.bili"` + string proc = 10; + // Local network device list, format: "{interface},{ipv6},{ipv4}," + string net = 11; + // Radio firmware version (`Build.getRadioVersion()`), like `"21C20B686S000C000,21C20B686S000C000"`. + string band = 12; + // OS version, like `"12"` + string osver = 13; + // System timestamp (in milliseconds) + int64 t = 14; + // CPU logical core count + int32 cpu_count = 15; + // Phone model, like `"NOH-AN01"` + string model = 16; + // Phone brand, like `"HUAWEI"` + string brand = 17; + // Screen info, like `"1288,2646,560"`, i.e. "{width},{height},{pixel}" + string screen = 18; + // CPU model, left blank or determine according to actual situation + string cpu_model = 19; + // Bluetooth MAC, left blank or determine according to actual situation + string btmac = 20; + // Linux kernel bootid + int64 boot = 21; + // emulator detect, like `"000"` (in this example, there're 3 items have been checked. Code `1` indicates a emulator, `0`` + // indicates a real device) + string emu = 22; + // Cellular network MCC MNC, like China Mobile: 46007 + string oid = 23; + // Current Network type, can be `WIFI` / `CELLULAR` / `OFFLINE` / `OTHERNET` + // / `ETHERNET` + string network = 24; + // Total memory (in bytes) + int64 mem = 25; + // Sensors, format: ["{name},{vendor}", "{name},{vendor}", ...] + string sensor = 26; + // CPU frequency, like `2045000` + int64 cpu_freq = 27; + // CPU vendor, like "ARM" + string cpu_vendor = 28; + // SIM card status, "true" means SIM card is present, "false" means no SIM card + string sim = 29; + // Screen brightness, like `110` + int32 brightness = 30; + // Android Build.prop,i ncluding `net.hostname`, `ro.boot.hardware`, etc. + // + // The actual key-value pairs need to be determined through technical means. + map props = 31; + // Android Build.sys, including `product`, `cpu_model_name`, `display`, `cpu_abi_list`, etc. + // + // The actual key-value pairs need to be determined through technical means. + map sys = 32; + // WIFI MAC, just leave blank + string wifimac = 33; + // Android ID + string adid = 34; + // OS name, like "android" + string os = 35; + // IMEI, just leave blank + string imei = 36; + // Cellular network base station information, just leave blank + string cell = 37; + // IMSI, just leave blank + string imsi = 38; + // ICCID, just leave blank + string iccid = 39; + // Camera count, just leave blank + int32 camcnt = 40; + // Camera pixel, just leave blank + string campx = 41; + // Internal storage (in bytes) + int64 total_space = 42; + // Whether the Xposed framework activ, just set to "false" + string axposed = 43; + // Whether the Xposed or Substrate framework is active in the process, the + // value can be `Xposed` or `substrate`, just leave blank + string maps = 44; + // `files` dir, like "/data/user/0/tv.danmaku.bili/files" + string files = 45; + // Multi-instance detection, just set to `"0"` + string virtual = 46; + // Multi-instance process list, just set to `"[]"` + string virtualproc = 47; + // Google AD ID, just leave blank + string gadid = 48; + // Google AD whether tracing is allowed, just leave blank + string glimit = 49; + // List of the 20 most recently installed apps on the device, like `"[]"` + string apps = 50; + // GUID + string guid = 51; + // Android multi users, the user id, just set to `"0"` + string uid = 52; + // Whether the device is rooted, just set to `0` + int32 root = 53; + // ? Camera zoom level, just leave blank + string camzoom = 54; + // ? Camera flash light count, just leave blank + string camlight = 55; + // OAID 匿名设备标识符, see *T/TAF 095-2021 安卓系统补充设备标识技术规范*, 默认 "00000000-0000-0000-0000-000000000000" + string oaid = 56; + // UDID 设备唯一标识符, see *T/TAF 095-2021 安卓系统补充设备标识技术规范*, just leave blank + string udid = 57; + // VAID 开发者匿名设备标识符, see *T/TAF 095-2021 安卓系统补充设备标识技术规范*, just leave blank + string vaid = 58; + // AAID, 应用匿名设备标识符, see *T/TAF 095-2021 安卓系统补充设备标识技术规范*, just leave blank + string aaid = 59; + // ?, just set to `"[]"` + string androidapp20 = 60; + // ?, just set to `0` + int32 androidappcnt = 61; + // ?, just set to `"[]"` + string androidsysapp20 = 62; + // Current remaining battery level, like `100` + int32 battery = 63; + // Android battery state, like "BATTERY_STATUS_DISCHARGING" + string battery_state = 64; + // Wifi BSSID, just leave blank + string bssid = 65; + // ?, like "NOH-AN01 4.0.0.102(DEVC00E100R7P5)" + string build_id = 67; + // ISO country code, like "CN" + string country_iso = 68; + // Free memory (in bytes) + int64 free_memory = 70; + // Free internal storage (in bytes) + string fstorage = 71; + // Linux kernel version + string kernel_version = 74; + // Lang, like "zh" + string languages = 75; + // ?, just leave blank + string mac = 76; + // The currently connected WiFi SSID, just leave blank + string ssid = 79; + // System volume, just set to `0` + int32 systemvolume = 80; + // WIFI MACs list (?), just leave blank + string wifimaclist = 81; + // Total memory (in bytes) + int64 memory = 82; + // Current remaining battery level, like `"100"` + string str_battery = 83; + // Whether the device is rooted, just set to `false` + bool is_root = 84; + // Screen brightness, like `"110"` + string str_brightness = 85; + // See `app_id` + string str_app_id = 86; + // Current IP (?), just leave blank + string ip = 87; + // ?, just leave blank + string user_agent = 88; + // ?, like: "1.25" + string light_intensity = 89; + // Device xyz direction angle + repeated float device_angle = 90; + // Number of GPS sensors (or whether there're any GPS sensors?), just set to `"1"` + int64 gps_sensor = 91; + // Number of speed sensors (or whether there're any speed sensors?), just set to `"1"` + int64 speed_sensor = 92; + // Number of linear acceleration sensors (or whether there're any linear acceleration sensors?), just set to `"1"` + int64 linear_speed_sensor = 93; + // Number of gyroscope sensors (or whether there're any gyroscope sensors?), just set to `"1"` + int64 gyroscope_sensor = 94; + // Number of biometric sensors (or whether there're any biometric sensors?), just set to `"1"` + int64 biometric = 95; + // Biometric sensor types (?), like "touchid" + repeated string biometrics = 96; + // Timestamp (in milliseconds) of the last crash dump + int64 last_dump_ts = 97; + // ?, just leave blank + string location = 98; + // ?, just leave blank + string country = 99; + // ?, just leave blank + string city = 100; + // ?, just set to `0` + int32 data_activity_state = 101; + // ?, just set to `0` + int32 data_connect_state = 102; + // ?, just set to `0` + int32 data_network_type = 103; + // ?, just set to `0` + int32 voice_network_type = 104; + // ?, just set to `0` + int32 voice_service_state = 105; + // Whether USB is connected, just set to `0` + int32 usb_connected = 106; + // Whether ADB is enabled, just set to `0` + int32 adb_enabled = 107; + // System UI version (?), like "14.0.0" + string ui_version = 108; + // Accessibility service, just leave blank + repeated string accessibility_service = 109; + // Sensors info (should be the same with `sensor`) + repeated SensorInfo sensors_info = 110; + // DrmId + string drmid = 111; + // Whether battery present, just set to `true` + bool battery_present = 112; + // Battery technology, like "Li-poly" + string battery_technology = 113; + // Battery temperature (milli degree celsius) + int32 battery_temperature = 114; + // Battery voltage (mV) + int32 battery_voltage = 115; + // Whether is the battery disconnected, just set to `0` + int32 battery_plugged = 116; + // Battery health, like `2` + int32 battery_health = 117; + // ?, just leave blank + repeated string cpu_abi_list = 118; + // ?, just leave blank + string cpu_abi_libc = 119; + // ?, just leave blank + string cpu_abi_libc64 = 120; + // ?, just leave blank + string cpu_processor = 121; + // ?, just leave blank + string cpu_model_name = 122; + // ?, just leave blank + string cpu_hardware = 123; + // ?, just leave blank + string cpu_features = 124; +} + +// Sensor Info +message SensorInfo { + // Sensor name, like "rotation Vector" + string name = 1; + // + string vendor = 2; + // + int32 version = 3; + // + int32 type = 4; + // + float max_range = 5; + // + float resolution = 6; + // Power (mA) + float power = 7; + // + int32 min_delay = 8; +} From 42dfa0e3bfcabb06142ce4f056158ea22c5c476f Mon Sep 17 00:00:00 2001 From: Hantong Chen Date: Sun, 4 May 2025 14:35:36 +0800 Subject: [PATCH 8/8] comments: bilibili.app.interfaces.v1 --- proto/bilibili/app/interfaces/v1.proto | 208 +++++++++++++------------ 1 file changed, 112 insertions(+), 96 deletions(-) diff --git a/proto/bilibili/app/interfaces/v1.proto b/proto/bilibili/app/interfaces/v1.proto index a87ad2a..d92f2dd 100644 --- a/proto/bilibili/app/interfaces/v1.proto +++ b/proto/bilibili/app/interfaces/v1.proto @@ -7,15 +7,15 @@ import "bilibili/app/archive/v1.proto"; import "bilibili/app/card/v1.proto"; import "bilibili/app/dynamic/v2.proto"; -// +// 历史记录 service History { // rpc Clear (ClearReq) returns (NoReply); - // + // 历史记录列表请求 rpc Cursor (CursorReq) returns (CursorReply); - // + // 历史记录列表请求 rpc CursorV2 (CursorV2Req) returns (CursorV2Reply); - // + // 历史记录删除请求 rpc Delete (DeleteReq) returns (NoReply); // rpc HistoryTab (HistoryTabReq) returns (HistoryTabReply); @@ -183,107 +183,107 @@ message Button { string has_title = 7; } -// +// 专栏卡片 message CardArticle { - // + // 封面 repeated string covers = 1; - // + // 标题 string name = 2; - // + // UP 主 mid int64 mid = 3; - // + // 是否展示 "关注" 按钮 bool display_attention = 4; - // + // 角标 string badge = 5; - // + // 新关注组件 Relation relation = 6; } -// +// 付费课程卡片 message CardCheese { - // + // 封面 string cover = 1; - // + // 观看进度 int64 progress = 2; - // + // 时长 int64 duration = 3; - // + // 分集标题 string subtitle = 4; // int64 state = 5; } -// +// 直播卡片 message CardLive { - // + // 封面 string cover = 1; - // + // UP 主昵称 string name = 2; - // + // UP 主 mid int64 mid = 3; - // + // tag 名称 string tag = 4; - // + // 直播状态 int32 status = 5; - // + // 是否展示 "关注" 按钮 bool display_attention = 6; - // + // 新关注组件 Relation relation = 7; } -// +// OGV 稿件卡片 message CardOGV { - // + // 封面 string cover = 1; - // + // 观看进度 int64 progress = 2; - // + // 总时长 int64 duration = 3; - // + // 番剧卡分集标题 string subtitle = 4; - // + // 角标 string badge = 5; // int64 state = 6; } -// +// UGC 稿件卡片 message CardUGC { - // + // 封面 string cover = 1; - // + // 观看进度 int64 progress = 2; - // + // 时长 int64 duration = 3; - // + // UP 昵称 string name = 4; - // + // UP mid int64 mid = 5; - // + // 是否展示 "关注" 按钮 bool display_attention = 6; - // + // 分 P 的 cid int64 cid = 7; - // + // 分 P int32 page = 8; - // + // 分 P 的标题 string subtitle = 9; - // + // 新关注组件 Relation relation = 10; - // + // 稿件 bvid string bvid = 11; - // + // ? 分 P 总数 int64 videos = 12; - // + // ? 短链接 string short_link = 13; - // + // ? 分享标题 string share_subtitle = 14; - // + // ? 播放量 int64 view = 15; // int64 state = 16; - // + // ? 角标 string badge = 17; - // + // ? 角标 Badge badge_v2 = 18; } @@ -335,90 +335,95 @@ enum CommentType { comment_type_judge = 2; } -// +// 历史记录游标 message Cursor { - // + // 本页最大值游标值 int64 max = 1; - // + // 本页最大值游标类型 int32 max_tp = 2; } -// +// 历史记录卡片内容 message CursorItem { - // + // 历史记录卡片内容 oneof card_item { - // + // 参见 [`CardUGC`] CardUGC card_ugc = 1; - // + // 参见 [`CardOGV`] CardOGV card_ogv = 2; - // + // 参见 [`CardArticle`] CardArticle card_article = 3; - // + // 参见 [`CardLive`] CardLive card_live = 4; - // + // 参见 [`CardCheese`] CardCheese card_cheese = 5; } - // + // 标题 string title = 6; - // + // 跳转链接 string uri = 7; - // + // 观看时间 int64 view_at = 8; - // + // 历史记录主键 int64 kid = 9; - // + // 业务 ID (如稿件 avid 或直播间 room_id 等) int64 oid = 10; - // + // 业务类型 string business = 11; - // + // 业务类型 int32 tp = 12; - // + // 播放设备 DeviceType dt = 13; - // + // ? 是否带分享按钮 bool has_share = 14; - // + // ? 埋点上报参数 string report = 15; } -// +// 历史记录列表请求返回值 message CursorReply { - // + // 参见 [`CursorItem`] repeated CursorItem items = 1; - // + // 参见 [`CursorTab`] repeated CursorTab tab = 2; - // + // 当前偏移 Cursor cursor = 3; - // + // 是否还有更多数据 bool has_more = 4; } -// +// 历史记录列表请求参数 message CursorReq { - // + // 翻页游标 (透传上一页的游标) Cursor cursor = 1; - // + // 业务类型 + // + // - 全部: `all` + // - 视频: `archive` + // - 直播: `live` + // - 专栏: `article` string business = 2; - // + // 秒开参数 PlayerPreloadParams player_preload = 3; - // + // 秒开参数 bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; } -// +// 历史记录顶部 tab message CursorTab { - // + // 业务类型 string business = 1; - // + // 业务名称 string name = 2; - // + // ? app 内部跳转路由 string router = 3; - // + // ? 是否选中 bool focus = 4; } -// +// 参见 [`CursorReply`] message CursorV2Reply { - // + // repeated CursorItem items = 1; // Cursor cursor = 2; @@ -428,7 +433,7 @@ message CursorV2Reply { string empty_link = 4; } -// +// 参见 [`CursorReq`] message CursorV2Req { // Cursor cursor = 1; @@ -442,7 +447,7 @@ message CursorV2Req { bool is_local = 5; } -// +// 设备类型 enum DT { // Unknown = 0; @@ -526,19 +531,19 @@ message DefaultWordsReq { int32 search_page_return = 15; } -// +// 历史记录删除请求参数 message DeleteReq { - // + // 要删除的历史信息 repeated HisInfo his_info = 1; // string tab = 2; } -// +// 设备类型 message DeviceType { - // + // 设备类型 DT type = 1; - // + // 图标 string icon = 2; } @@ -972,13 +977,24 @@ message ReasonStyle { int32 bg_style = 8; } -// +// 新关注组件 message Relation { - // + // 按钮展示文案 + // + // - 1: 未关注 + // - 2: 已关注 + // - 3: 被关注 + // - 4: 互相关注 int32 status = 1; - // + // 用户关注 UP 主 + // + // - 0: 未关注 + // - 1: 已关注 int32 is_follow = 2; - // + // UP 主关注用户 + // + // - 0: 未被关注 + // - 1: 已被关注 int32 is_followed = 3; }