@dcl/protocol 1.0.0-13897190826.commit-195803d → 1.0.0-14033082444.commit-84b403d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +312 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +22 -306
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +75 -1552
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +379 -1
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +945 -2589
- package/package.json +2 -2
- package/proto/decentraland/sdk/components/ui_transform.proto +28 -1
- package/proto/decentraland/social_service/v2/social_service_v2.proto +9 -119
- package/proto/decentraland/sdk/components/light_source.proto +0 -35
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-14033082444.commit-84b403d",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"out-js",
|
|
30
30
|
"public"
|
|
31
31
|
],
|
|
32
|
-
"commit": "
|
|
32
|
+
"commit": "84b403d3a47e2e51aa5ae63894130ff96a5b1c85"
|
|
33
33
|
}
|
|
@@ -3,6 +3,7 @@ syntax = "proto3";
|
|
|
3
3
|
package decentraland.sdk.components;
|
|
4
4
|
|
|
5
5
|
import "decentraland/sdk/components/common/id.proto";
|
|
6
|
+
import "decentraland/common/colors.proto";
|
|
6
7
|
|
|
7
8
|
option (common.ecs_component_id) = 1050;
|
|
8
9
|
|
|
@@ -143,6 +144,32 @@ message PBUiTransform {
|
|
|
143
144
|
float padding_right = 49;
|
|
144
145
|
YGUnit padding_bottom_unit = 50; // YGUnit.YGU_UNDEFINED
|
|
145
146
|
float padding_bottom = 51;
|
|
146
|
-
|
|
147
|
+
|
|
147
148
|
optional PointerFilterMode pointer_filter = 52; // default: PointerFilterMode.PFM_NONE
|
|
149
|
+
|
|
150
|
+
// Border Width
|
|
151
|
+
optional YGUnit border_left_width_unit = 53; // YGUnit.YGU_UNDEFINED
|
|
152
|
+
optional float border_left_width = 54;
|
|
153
|
+
optional YGUnit border_top_width_unit = 55; // YGUnit.YGU_UNDEFINED
|
|
154
|
+
optional float border_top_width = 56;
|
|
155
|
+
optional YGUnit border_right_width_unit = 57; // YGUnit.YGU_UNDEFINED
|
|
156
|
+
optional float border_right_width = 58;
|
|
157
|
+
optional YGUnit border_bottom_width_unit = 59; // YGUnit.YGU_UNDEFINED
|
|
158
|
+
optional float border_bottom_width = 60;
|
|
159
|
+
|
|
160
|
+
// Border Radius
|
|
161
|
+
optional YGUnit border_top_left_radius_unit = 61; // YGUnit.YGU_UNDEFINED
|
|
162
|
+
optional float border_top_left_radius = 62;
|
|
163
|
+
optional YGUnit border_top_right_radius_unit = 63; // YGUnit.YGU_UNDEFINED
|
|
164
|
+
optional float border_top_right_radius = 64;
|
|
165
|
+
optional YGUnit border_bottom_left_radius_unit = 65; // YGUnit.YGU_UNDEFINED
|
|
166
|
+
optional float border_bottom_left_radius = 66;
|
|
167
|
+
optional YGUnit border_bottom_right_radius_unit = 67; // YGUnit.YGU_UNDEFINED
|
|
168
|
+
optional float border_bottom_right_radius = 68;
|
|
169
|
+
|
|
170
|
+
// Border Color
|
|
171
|
+
optional decentraland.common.Color4 border_top_color = 69;
|
|
172
|
+
optional decentraland.common.Color4 border_bottom_color = 70;
|
|
173
|
+
optional decentraland.common.Color4 border_left_color = 71;
|
|
174
|
+
optional decentraland.common.Color4 border_right_color = 72;
|
|
148
175
|
}
|
|
@@ -4,47 +4,21 @@ package decentraland.social_service.v2;
|
|
|
4
4
|
import "google/protobuf/empty.proto";
|
|
5
5
|
|
|
6
6
|
// Errors
|
|
7
|
-
message InvalidFriendshipAction {
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
message InternalServerError {
|
|
11
|
-
optional string message = 1;
|
|
12
|
-
}
|
|
13
|
-
message InvalidRequest {
|
|
14
|
-
optional string message = 1;
|
|
15
|
-
}
|
|
16
|
-
message ProfileNotFound {
|
|
17
|
-
optional string message = 1;
|
|
18
|
-
}
|
|
7
|
+
message InvalidFriendshipAction {}
|
|
8
|
+
message InternalServerError {}
|
|
19
9
|
|
|
20
10
|
// Types
|
|
21
11
|
message User { string address = 1; }
|
|
22
12
|
|
|
23
|
-
message FriendProfile {
|
|
24
|
-
string address = 1;
|
|
25
|
-
string name = 2;
|
|
26
|
-
bool has_claimed_name = 3;
|
|
27
|
-
string profile_picture_url = 4;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
message BlockedUserProfile {
|
|
31
|
-
string address = 1;
|
|
32
|
-
string name = 2;
|
|
33
|
-
bool has_claimed_name = 3;
|
|
34
|
-
string profile_picture_url = 4;
|
|
35
|
-
optional int64 blocked_at = 5;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
13
|
message Pagination {
|
|
39
14
|
int32 limit = 1;
|
|
40
15
|
int32 offset = 2;
|
|
41
16
|
}
|
|
42
17
|
|
|
43
18
|
message FriendshipRequestResponse {
|
|
44
|
-
|
|
19
|
+
User user = 1;
|
|
45
20
|
int64 created_at = 2;
|
|
46
21
|
optional string message = 3;
|
|
47
|
-
string id = 4;
|
|
48
22
|
}
|
|
49
23
|
|
|
50
24
|
message FriendshipRequests {
|
|
@@ -59,6 +33,7 @@ enum ConnectivityStatus {
|
|
|
59
33
|
|
|
60
34
|
message GetFriendsPayload {
|
|
61
35
|
optional Pagination pagination = 1;
|
|
36
|
+
optional ConnectivityStatus status = 2;
|
|
62
37
|
}
|
|
63
38
|
|
|
64
39
|
message GetFriendshipRequestsPayload {
|
|
@@ -94,8 +69,8 @@ message PaginatedResponse {
|
|
|
94
69
|
int32 page = 2;
|
|
95
70
|
}
|
|
96
71
|
|
|
97
|
-
message
|
|
98
|
-
repeated
|
|
72
|
+
message PaginatedUsersResponse {
|
|
73
|
+
repeated User users = 1;
|
|
99
74
|
PaginatedResponse pagination_data = 2;
|
|
100
75
|
}
|
|
101
76
|
|
|
@@ -111,8 +86,6 @@ message UpsertFriendshipResponse {
|
|
|
111
86
|
message Accepted {
|
|
112
87
|
string id = 1;
|
|
113
88
|
int64 created_at = 2;
|
|
114
|
-
FriendProfile friend = 3;
|
|
115
|
-
optional string message = 4;
|
|
116
89
|
}
|
|
117
90
|
oneof response {
|
|
118
91
|
Accepted accepted = 1;
|
|
@@ -122,33 +95,20 @@ message UpsertFriendshipResponse {
|
|
|
122
95
|
}
|
|
123
96
|
|
|
124
97
|
message FriendshipUpdate {
|
|
125
|
-
message RequestResponse {
|
|
126
|
-
FriendProfile friend = 1;
|
|
127
|
-
int64 created_at = 2;
|
|
128
|
-
optional string message = 3;
|
|
129
|
-
string id = 4;
|
|
130
|
-
}
|
|
131
98
|
message AcceptResponse { User user = 1; }
|
|
132
99
|
message RejectResponse { User user = 1; }
|
|
133
100
|
message DeleteResponse { User user = 1; }
|
|
134
101
|
message CancelResponse { User user = 1; }
|
|
135
|
-
message BlockResponse { User user = 1; }
|
|
136
102
|
|
|
137
103
|
oneof update {
|
|
138
|
-
|
|
104
|
+
FriendshipRequestResponse request = 1;
|
|
139
105
|
AcceptResponse accept = 2;
|
|
140
106
|
RejectResponse reject = 3;
|
|
141
107
|
DeleteResponse delete = 4;
|
|
142
108
|
CancelResponse cancel = 5;
|
|
143
|
-
BlockResponse block = 6;
|
|
144
109
|
}
|
|
145
110
|
}
|
|
146
111
|
|
|
147
|
-
message FriendConnectivityUpdate {
|
|
148
|
-
FriendProfile friend = 1;
|
|
149
|
-
ConnectivityStatus status = 2;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
112
|
message GetFriendshipStatusPayload {
|
|
153
113
|
User user = 1;
|
|
154
114
|
}
|
|
@@ -161,8 +121,6 @@ enum FriendshipStatus {
|
|
|
161
121
|
REJECTED = 4;
|
|
162
122
|
DELETED = 5;
|
|
163
123
|
BLOCKED = 6;
|
|
164
|
-
NONE = 7;
|
|
165
|
-
BLOCKED_BY = 8;
|
|
166
124
|
}
|
|
167
125
|
|
|
168
126
|
message GetFriendshipStatusResponse {
|
|
@@ -176,65 +134,12 @@ message GetFriendshipStatusResponse {
|
|
|
176
134
|
}
|
|
177
135
|
}
|
|
178
136
|
|
|
179
|
-
message BlockUserPayload {
|
|
180
|
-
User user = 1;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
message BlockUserResponse {
|
|
184
|
-
message Ok {
|
|
185
|
-
BlockedUserProfile profile = 1;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
oneof response {
|
|
189
|
-
Ok ok = 1;
|
|
190
|
-
InternalServerError internal_server_error = 2;
|
|
191
|
-
InvalidRequest invalid_request = 3;
|
|
192
|
-
ProfileNotFound profile_not_found = 4;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
message UnblockUserPayload {
|
|
197
|
-
User user = 1;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
message UnblockUserResponse {
|
|
201
|
-
message Ok {
|
|
202
|
-
BlockedUserProfile profile = 1;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
oneof response {
|
|
206
|
-
Ok ok = 1;
|
|
207
|
-
InternalServerError internal_server_error = 2;
|
|
208
|
-
InvalidRequest invalid_request = 3;
|
|
209
|
-
ProfileNotFound profile_not_found = 4;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
message GetBlockedUsersPayload {
|
|
214
|
-
optional Pagination pagination = 1;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
message GetBlockedUsersResponse {
|
|
218
|
-
repeated BlockedUserProfile profiles = 1;
|
|
219
|
-
PaginatedResponse pagination_data = 2;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
message GetBlockingStatusResponse {
|
|
223
|
-
repeated string blocked_users = 1;
|
|
224
|
-
repeated string blocked_by_users = 2;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
message BlockUpdate {
|
|
228
|
-
string address = 1;
|
|
229
|
-
bool is_blocked = 2;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
137
|
service SocialService {
|
|
233
138
|
// Get the list of friends for the authenticated user
|
|
234
|
-
rpc GetFriends(GetFriendsPayload) returns (
|
|
139
|
+
rpc GetFriends(GetFriendsPayload) returns (PaginatedUsersResponse) {}
|
|
235
140
|
|
|
236
141
|
// Get the list of mutual friends between the authenticated user and the one in the parameter
|
|
237
|
-
rpc GetMutualFriends(GetMutualFriendsPayload) returns (
|
|
142
|
+
rpc GetMutualFriends(GetMutualFriendsPayload) returns (PaginatedUsersResponse) {}
|
|
238
143
|
|
|
239
144
|
// Get the pending friendship requests for the authenticated user
|
|
240
145
|
rpc GetPendingFriendshipRequests(GetFriendshipRequestsPayload) returns (PaginatedFriendshipRequestsResponse) {}
|
|
@@ -250,20 +155,5 @@ service SocialService {
|
|
|
250
155
|
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
|
|
251
156
|
returns (stream FriendshipUpdate) {}
|
|
252
157
|
|
|
253
|
-
// Get the friendship status between the authenticated user and the one in the parameter
|
|
254
158
|
rpc GetFriendshipStatus(GetFriendshipStatusPayload) returns (GetFriendshipStatusResponse) {}
|
|
255
|
-
|
|
256
|
-
// Subscribe to connectivity updates of friends: ONLINE, OFFLINE, AWAY
|
|
257
|
-
rpc SubscribeToFriendConnectivityUpdates(google.protobuf.Empty)
|
|
258
|
-
returns (stream FriendConnectivityUpdate) {}
|
|
259
|
-
|
|
260
|
-
rpc BlockUser(BlockUserPayload) returns (BlockUserResponse) {}
|
|
261
|
-
|
|
262
|
-
rpc UnblockUser(UnblockUserPayload) returns (UnblockUserResponse) {}
|
|
263
|
-
|
|
264
|
-
rpc GetBlockedUsers(GetBlockedUsersPayload) returns (GetBlockedUsersResponse) {}
|
|
265
|
-
|
|
266
|
-
rpc GetBlockingStatus(google.protobuf.Empty) returns (GetBlockingStatusResponse) {}
|
|
267
|
-
|
|
268
|
-
rpc SubscribeToBlockUpdates(google.protobuf.Empty) returns (stream BlockUpdate) {}
|
|
269
159
|
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package decentraland.sdk.components;
|
|
3
|
-
import "decentraland/sdk/components/common/id.proto";
|
|
4
|
-
import "decentraland/common/colors.proto";
|
|
5
|
-
import "decentraland/common/texture.proto";
|
|
6
|
-
option (common.ecs_component_id) = 1079;
|
|
7
|
-
|
|
8
|
-
message PBLightSource {
|
|
9
|
-
optional bool active = 4; // default = true, whether the lightSource is active or not.
|
|
10
|
-
optional decentraland.common.Color3 color = 1; // default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1.
|
|
11
|
-
optional float brightness = 2; // default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot.
|
|
12
|
-
optional float range = 3; // default = 10, how far the light travels, expressed in meters.
|
|
13
|
-
|
|
14
|
-
oneof type {
|
|
15
|
-
Point point = 6;
|
|
16
|
-
Spot spot = 7;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
message Point {
|
|
20
|
-
optional ShadowType shadow = 5; // default = ShadowType.ST_NONE The type of shadow the light source supports.
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
message Spot {
|
|
24
|
-
optional float inner_angle = 1; // default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179.
|
|
25
|
-
optional float outer_angle = 2; // default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179.
|
|
26
|
-
optional ShadowType shadow = 5; // default = ShadowType.ST_NONE The type of shadow the light source supports.
|
|
27
|
-
optional decentraland.common.TextureUnion shadow_mask_texture = 8; // Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window.
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
enum ShadowType {
|
|
31
|
-
ST_NONE = 0; // No shadows are cast from this LightSource.
|
|
32
|
-
ST_SOFT = 1; // More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing.
|
|
33
|
-
ST_HARD = 2; // Less realistic type of shadow but more performant, uses hard edges.
|
|
34
|
-
}
|
|
35
|
-
}
|