This commit is contained in:
Hantong Chen 2026-01-28 14:17:37 +08:00 committed by GitHub
commit d97c543600
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
138 changed files with 59455 additions and 0 deletions

View File

@ -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 {
}

View File

@ -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<string, int64> 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;
}

View File

@ -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;
}

1367
proto/bilibili/ad/v1.proto Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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;
}

View File

@ -0,0 +1,195 @@
syntax = "proto3";
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);
}
//
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<string, string> map_string_val = 13;
//
map<string, ErrorMessage> 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;
}

View File

@ -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<string, string> 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<string, bytes> 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;
}

View File

@ -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;
}

View File

@ -0,0 +1,209 @@
syntax = "proto3";
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;
// Deprecated
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;
//
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;
}
//
message SeasonTheme {
//
string bg_color = 1;
//
string selected_bg_color = 2;
//
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;
}

File diff suppressed because it is too large Load Diff

View File

@ -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;
}

View File

@ -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<string, string> 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<string, string> 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;
}
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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 {
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<string, string> 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<string, string> 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<string, string> track = 7;
}

View File

@ -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<string, Dialog> 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<string, string> multi_scene_args = 8;
}

View File

@ -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;
}

View File

@ -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<string, DwTime> 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<string, PatchInfo> 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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<string, string> 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;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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<int64, bilibili.app.viewunite.common.Staff> all_up_info = 2;
}
//
message WatchProgress {
//
int64 last_ep_id = 1;
//
string last_ep_index = 2;
//
int64 last_time = 3;
}

View File

@ -0,0 +1,561 @@
syntax = "proto3";
package bilibili.app.viewunite.pugvanymodel;
//
message AbTest {
//
map<string, int32> 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;
}

View File

@ -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;
}

File diff suppressed because it is too large Load Diff

View File

@ -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<string, RulesInfo> rules_info = 1;
//
string hash_value = 2;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<string, string> 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;
}

View File

@ -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<int64, int32> 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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<string, string> 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<string, string> resource = 2;
}
//
message TestResp {
//
int64 taskid = 1;
//
int64 timestamp = 2;
//
string message = 3;
//
google.protobuf.Any extra = 4;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<string, int64> 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;
}

View File

@ -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;
}

View File

@ -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 {
}

File diff suppressed because it is too large Load Diff

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<string, string> 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<string, LayerTagConfig> 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;
}

View File

@ -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;
}

File diff suppressed because it is too large Load Diff

View File

@ -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;
}

View File

@ -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<int64, GoodsItem> 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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<string, int64> 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<int64, int64> 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;
}

View File

@ -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<string, int64> 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<int64, HasLikeState> 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<int32, int64> 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<int64, int64> 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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<int64, int32> 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;
}

View File

@ -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 {
}

View File

@ -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;
}

Some files were not shown because too many files have changed in this diff Show More