返回提交历史
Modified
grpc_api/bilibili/app/dynamic/v2/dynamic.proto
+10
-0
Modified
grpc_api/bilibili/dagw/component/avatar/common/common.proto
+108
-1
Modified
grpc_api/bilibili/dagw/component/avatar/v1/avatar.proto
+112
-1
Added
grpc_api/bilibili/dagw/component/avatar/v1/plugin.proto
+91
-0
XFEstudio/bilibili-API-collect
更新gRPC proto定义
aa23377
代码差异
4 个文件
+321
-2
@@ -785,6 +785,16 @@ message CampusHomePagesReq {
785
785
int32 page_type = 6;
786
786
}
787
787
788
//
789
enum CampusRcmdReqFrom {
790
CAMPUS_RCMD_FROM_UNKNOWN = 0;
791
CAMPUS_RCMD_FROM_HOME_UN_OPEN = 1;
792
CAMPUS_RCMD_FROM_VISIT_OTHER = 2;
793
CAMPUS_RCMD_FROM_HOME_MOMENT = 3;
794
CAMPUS_RCMD_FROM_DYN_MOMENT = 4;
795
CAMPUS_RCMD_FROM_PAGE_SUBORDINATE_MOMENT = 5;
796
}
797
788
798
//
789
799
enum CampusHomePageType {
790
800
//
@@ -1 +1,108 @@
1
// TODO
1
syntax = "proto3";
2
3
package bilibili.dagw.component.avatar.common;
4
5
//
6
message BasicRenderSpec {
7
//
8
double opacity = 1;
9
}
10
11
//
12
message ColorConfig {
13
//
14
bool is_dark_mode_aware = 1;
15
//
16
ColorSpec day = 2;
17
//
18
ColorSpec night = 3;
19
}
20
21
//
22
message ColorSpec {
23
//
24
string argb = 1;
25
}
26
27
//
28
message LayerGeneralSpec {
29
//
30
PositionSpec pos_spec = 1;
31
//
32
SizeSpec size_spec = 2;
33
//
34
BasicRenderSpec render_spec = 3;
35
}
36
37
//
38
message MaskProperty {
39
//
40
LayerGeneralSpec general_spec = 1;
41
//
42
ResourceSource mask_src = 2;
43
}
44
45
//
46
message NativeDrawRes {
47
//
48
int32 draw_type = 1;
49
//
50
int32 fill_mode = 2;
51
//
52
ColorConfig color_config = 3;
53
//
54
double edge_weight = 4;
55
}
56
57
//
58
message PositionSpec {
59
//
60
int32 coordinate_pos = 1;
61
//
62
double axis_x = 2;
63
//
64
double axis_y = 3;
65
}
66
67
//
68
message RemoteRes {
69
//
70
string url = 1;
71
//
72
string bfs_style = 2;
73
}
74
75
//
76
message ResourceSource {
77
//
78
enum LocalRes {
79
LOCAL_RES_INVALID = 0;
80
LOCAL_RES_ICON_VIP = 1;
81
LOCAL_RES_ICON_SMALL_VIP = 2;
82
LOCAL_RES_ICON_PERSONAL_VERIFY = 3;
83
LOCAL_RES_ICON_ENTERPRISE_VERIFY = 4;
84
LOCAL_RES_ICON_NFT_MAINLAND = 5;
85
LOCAL_RES_DEFAULT_AVATAR = 6;
86
}
87
//
88
int32 src_type = 1;
89
//
90
int32 placeholder = 2;
91
//
92
oneof res {
93
//
94
RemoteRes remote = 3;
95
//
96
LocalRes local = 4;
97
//
98
NativeDrawRes draw = 5;
99
}
100
}
101
102
//
103
message SizeSpec {
104
//
105
double width = 1;
106
//
107
double height = 2;
108
}
@@ -1 +1,112 @@
1
// TODO
1
syntax = "proto3";
2
3
package bilibili.dagw.component.avatar.v1;
4
5
import "bilibili/dagw/component/avatar/common/common.proto";
6
import "bilibili/dagw/component/avatar/v1/plugin.proto";
7
8
//
9
message AvatarItem {
10
//
11
bilibili.dagw.component.avatar.common.SizeSpec container_size = 1;
12
//
13
repeated LayerGroup layers = 2;
14
//
15
LayerGroup fallback_layers = 3;
16
//
17
int64 mid = 4;
18
}
19
20
//
21
message BasicLayerResource {
22
//
23
int32 res_type = 1;
24
//
25
oneof payload {
26
//
27
ResImage res_image = 2;
28
//
29
ResAnimation res_animation = 3;
30
///
31
ResNativeDraw res_native_draw = 4;
32
};
33
}
34
35
//
36
message GeneralConfig {
37
//
38
map<string, string> web_css_style = 1;
39
}
40
41
//
42
message Layer {
43
//
44
string layer_id = 1;
45
//
46
bool visible = 2;
47
//
48
LayerGeneralSpec general_spec = 3;
49
//
50
LayerConfig layer_config = 4;
51
//
52
BasicLayerResource resource = 5;
53
}
54
55
//
56
message LayerConfig {
57
//
58
map<string, LayerTagConfig> tags = 1;
59
//
60
bool is_critical = 2;
61
//
62
bool allow_over_paint = 3;
63
//
64
MaskProperty layer_mask = 4;
65
}
66
67
//
68
message LayerGroup {
69
//
70
string group_id = 1;
71
//
72
repeated Layer layers = 2;
73
//
74
MaskProperty group_mask = 3;
75
//
76
bool is_critical_group = 4;
77
}
78
79
//
80
message LayerTagConfig {
81
//
82
int32 config_type = 1;
83
//
84
oneof config {
85
//
86
GeneralConfig general_config = 2;
87
//
88
bilibili.dagw.component.avatar.v1.plugin.GyroConfig gyro_config = 3;
89
//
90
bilibili.dagw.component.avatar.v1.plugin.CommentDoubleClickConfig comment_doubleClick_config = 4;
91
//
92
bilibili.dagw.component.avatar.v1.plugin.LiveAnimeConfig live_anime_config = 5;
93
};
94
}
95
96
//
97
message ResAnimation {
98
//
99
ResourceSource webp_src = 1;
100
}
101
102
//
103
message ResImage {
104
//
105
ResourceSource image_src = 1;
106
}
107
108
//
109
message ResNativeDraw {
110
//
111
ResourceSource draw_src = 1;
112
}
@@ -0,0 +1,91 @@
1
syntax = "proto3";
2
3
package bilibili.dagw.component.avatar.v1.plugin;
4
5
//
6
message CommentDoubleClickConfig {
7
//
8
Interaction interaction = 1;
9
//
10
double animation_scale = 2;
11
}
12
13
//
14
message GyroConfig {
15
//
16
NFTImageV2 gyroscope = 1;
17
}
18
19
//
20
message GyroscopeContentV2 {
21
//
22
string file_url = 1;
23
//
24
float scale = 2;
25
//
26
repeated PhysicalOrientationV2 physical_orientation = 3;
27
}
28
29
//
30
message GyroscopeEntityV2 {
31
//
32
string display_type = 1;
33
//
34
repeated GyroscopeContentV2 contents = 2;
35
}
36
37
//
38
message Interaction {
39
//
40
string nft_id = 1;
41
//
42
bool enabled = 2;
43
//
44
string itype = 3;
45
//
46
string metadata_url = 4;
47
}
48
49
//
50
message LiveAnimeConfig {
51
//
52
bool is_live = 1;
53
}
54
55
//
56
message LiveAnimeItem {
57
//
58
ColorConfig color = 1;
59
//
60
double start_ratio = 2;
61
//
62
double end_ratio = 3;
63
//
64
double start_stroke = 4;
65
//
66
double start_opacity = 5;
67
//
68
int64 phase = 6;
69
}
70
71
//
72
message NFTImageV2 {
73
//
74
repeated GyroscopeEntityV2 gyroscope = 1;
75
}
76
77
//
78
message PhysicalOrientationAnimation {
79
//
80
string type = 1;
81
//
82
string bezier = 3;
83
}
84
85
//
86
message PhysicalOrientationV2 {
87
//
88
string type = 1;
89
//
90
repeated PhysicalOrientationAnimation animations = 3;
91
}