@dcl/protocol 1.0.0-15417746548.commit-e270f1e → 1.0.0-15463532285.commit-444eb93
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/social_service/v2/social_service_v2.gen.d.ts +477 -22
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +3354 -991
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +3664 -1015
- package/package.json +2 -2
- package/proto/decentraland/sdk/components/light_source.proto +35 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +190 -9
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-15463532285.commit-444eb93",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"out-js",
|
|
31
31
|
"public"
|
|
32
32
|
],
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "444eb93b7450bc59e07f330bb05afc8b6464e314"
|
|
34
34
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
}
|
|
@@ -10,7 +10,9 @@ option (common.ecs_component_id) = 1076;
|
|
|
10
10
|
// an 'instant' transition (like using speed/time = 0)
|
|
11
11
|
// * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
12
12
|
// the holding entity transform).
|
|
13
|
+
// * The fov defines the Field of View of the virtual camera
|
|
13
14
|
message PBVirtualCamera {
|
|
14
15
|
optional common.CameraTransition default_transition = 1;
|
|
15
16
|
optional uint32 look_at_entity = 2;
|
|
17
|
+
optional float fov = 3; // default: 60
|
|
16
18
|
}
|
|
@@ -4,21 +4,47 @@ package decentraland.social_service.v2;
|
|
|
4
4
|
import "google/protobuf/empty.proto";
|
|
5
5
|
|
|
6
6
|
// Errors
|
|
7
|
-
message InvalidFriendshipAction {
|
|
8
|
-
message
|
|
7
|
+
message InvalidFriendshipAction {
|
|
8
|
+
optional string message = 1;
|
|
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
|
+
}
|
|
9
19
|
|
|
10
20
|
// Types
|
|
11
21
|
message User { string address = 1; }
|
|
12
22
|
|
|
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
|
+
|
|
13
38
|
message Pagination {
|
|
14
39
|
int32 limit = 1;
|
|
15
40
|
int32 offset = 2;
|
|
16
41
|
}
|
|
17
42
|
|
|
18
43
|
message FriendshipRequestResponse {
|
|
19
|
-
|
|
44
|
+
FriendProfile friend = 1;
|
|
20
45
|
int64 created_at = 2;
|
|
21
46
|
optional string message = 3;
|
|
47
|
+
string id = 4;
|
|
22
48
|
}
|
|
23
49
|
|
|
24
50
|
message FriendshipRequests {
|
|
@@ -33,7 +59,6 @@ enum ConnectivityStatus {
|
|
|
33
59
|
|
|
34
60
|
message GetFriendsPayload {
|
|
35
61
|
optional Pagination pagination = 1;
|
|
36
|
-
optional ConnectivityStatus status = 2;
|
|
37
62
|
}
|
|
38
63
|
|
|
39
64
|
message GetFriendshipRequestsPayload {
|
|
@@ -69,8 +94,8 @@ message PaginatedResponse {
|
|
|
69
94
|
int32 page = 2;
|
|
70
95
|
}
|
|
71
96
|
|
|
72
|
-
message
|
|
73
|
-
repeated
|
|
97
|
+
message PaginatedFriendsProfilesResponse {
|
|
98
|
+
repeated FriendProfile friends = 1;
|
|
74
99
|
PaginatedResponse pagination_data = 2;
|
|
75
100
|
}
|
|
76
101
|
|
|
@@ -86,6 +111,8 @@ message UpsertFriendshipResponse {
|
|
|
86
111
|
message Accepted {
|
|
87
112
|
string id = 1;
|
|
88
113
|
int64 created_at = 2;
|
|
114
|
+
FriendProfile friend = 3;
|
|
115
|
+
optional string message = 4;
|
|
89
116
|
}
|
|
90
117
|
oneof response {
|
|
91
118
|
Accepted accepted = 1;
|
|
@@ -95,20 +122,33 @@ message UpsertFriendshipResponse {
|
|
|
95
122
|
}
|
|
96
123
|
|
|
97
124
|
message FriendshipUpdate {
|
|
125
|
+
message RequestResponse {
|
|
126
|
+
FriendProfile friend = 1;
|
|
127
|
+
int64 created_at = 2;
|
|
128
|
+
optional string message = 3;
|
|
129
|
+
string id = 4;
|
|
130
|
+
}
|
|
98
131
|
message AcceptResponse { User user = 1; }
|
|
99
132
|
message RejectResponse { User user = 1; }
|
|
100
133
|
message DeleteResponse { User user = 1; }
|
|
101
134
|
message CancelResponse { User user = 1; }
|
|
135
|
+
message BlockResponse { User user = 1; }
|
|
102
136
|
|
|
103
137
|
oneof update {
|
|
104
|
-
|
|
138
|
+
RequestResponse request = 1;
|
|
105
139
|
AcceptResponse accept = 2;
|
|
106
140
|
RejectResponse reject = 3;
|
|
107
141
|
DeleteResponse delete = 4;
|
|
108
142
|
CancelResponse cancel = 5;
|
|
143
|
+
BlockResponse block = 6;
|
|
109
144
|
}
|
|
110
145
|
}
|
|
111
146
|
|
|
147
|
+
message FriendConnectivityUpdate {
|
|
148
|
+
FriendProfile friend = 1;
|
|
149
|
+
ConnectivityStatus status = 2;
|
|
150
|
+
}
|
|
151
|
+
|
|
112
152
|
message GetFriendshipStatusPayload {
|
|
113
153
|
User user = 1;
|
|
114
154
|
}
|
|
@@ -121,6 +161,8 @@ enum FriendshipStatus {
|
|
|
121
161
|
REJECTED = 4;
|
|
122
162
|
DELETED = 5;
|
|
123
163
|
BLOCKED = 6;
|
|
164
|
+
NONE = 7;
|
|
165
|
+
BLOCKED_BY = 8;
|
|
124
166
|
}
|
|
125
167
|
|
|
126
168
|
message GetFriendshipStatusResponse {
|
|
@@ -134,12 +176,127 @@ message GetFriendshipStatusResponse {
|
|
|
134
176
|
}
|
|
135
177
|
}
|
|
136
178
|
|
|
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
|
+
enum PrivateMessagePrivacySetting {
|
|
214
|
+
ALL = 0;
|
|
215
|
+
ONLY_FRIENDS = 1;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
enum BlockedUsersMessagesVisibilitySetting {
|
|
219
|
+
SHOW_MESSAGES = 0;
|
|
220
|
+
DO_NOT_SHOW_MESSAGES = 1;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
message SocialSettings {
|
|
224
|
+
PrivateMessagePrivacySetting private_messages_privacy = 1;
|
|
225
|
+
BlockedUsersMessagesVisibilitySetting blocked_users_messages_visibility = 2;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
message GetSocialSettingsResponse {
|
|
229
|
+
message Ok {
|
|
230
|
+
SocialSettings settings = 1;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
oneof response {
|
|
234
|
+
Ok ok = 1;
|
|
235
|
+
InternalServerError internal_server_error = 2;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
message UpsertSocialSettingsPayload {
|
|
240
|
+
optional PrivateMessagePrivacySetting private_messages_privacy = 1;
|
|
241
|
+
optional BlockedUsersMessagesVisibilitySetting blocked_users_messages_visibility = 2;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
message UpsertSocialSettingsResponse {
|
|
245
|
+
oneof response {
|
|
246
|
+
SocialSettings ok = 1;
|
|
247
|
+
InternalServerError internal_server_error = 2;
|
|
248
|
+
InvalidRequest invalid_request = 3;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
message GetPrivateMessagesSettingsPayload {
|
|
253
|
+
repeated User user = 1;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
message GetPrivateMessagesSettingsResponse {
|
|
257
|
+
message PrivateMessagesSettings {
|
|
258
|
+
User user = 1;
|
|
259
|
+
PrivateMessagePrivacySetting private_messages_privacy = 2;
|
|
260
|
+
bool is_friend = 3;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
message Ok {
|
|
264
|
+
repeated PrivateMessagesSettings settings = 1;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
oneof response {
|
|
268
|
+
Ok ok = 1;
|
|
269
|
+
InternalServerError internal_server_error = 2;
|
|
270
|
+
InvalidRequest invalid_request = 3;
|
|
271
|
+
ProfileNotFound profile_not_found = 4;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
message GetBlockedUsersPayload {
|
|
276
|
+
optional Pagination pagination = 1;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
message GetBlockedUsersResponse {
|
|
280
|
+
repeated BlockedUserProfile profiles = 1;
|
|
281
|
+
PaginatedResponse pagination_data = 2;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
message GetBlockingStatusResponse {
|
|
285
|
+
repeated string blocked_users = 1;
|
|
286
|
+
repeated string blocked_by_users = 2;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
message BlockUpdate {
|
|
290
|
+
string address = 1;
|
|
291
|
+
bool is_blocked = 2;
|
|
292
|
+
}
|
|
293
|
+
|
|
137
294
|
service SocialService {
|
|
138
295
|
// Get the list of friends for the authenticated user
|
|
139
|
-
rpc GetFriends(GetFriendsPayload) returns (
|
|
296
|
+
rpc GetFriends(GetFriendsPayload) returns (PaginatedFriendsProfilesResponse) {}
|
|
140
297
|
|
|
141
298
|
// Get the list of mutual friends between the authenticated user and the one in the parameter
|
|
142
|
-
rpc GetMutualFriends(GetMutualFriendsPayload) returns (
|
|
299
|
+
rpc GetMutualFriends(GetMutualFriendsPayload) returns (PaginatedFriendsProfilesResponse) {}
|
|
143
300
|
|
|
144
301
|
// Get the pending friendship requests for the authenticated user
|
|
145
302
|
rpc GetPendingFriendshipRequests(GetFriendshipRequestsPayload) returns (PaginatedFriendshipRequestsResponse) {}
|
|
@@ -155,5 +312,29 @@ service SocialService {
|
|
|
155
312
|
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
|
|
156
313
|
returns (stream FriendshipUpdate) {}
|
|
157
314
|
|
|
315
|
+
// Get the friendship status between the authenticated user and the one in the parameter
|
|
158
316
|
rpc GetFriendshipStatus(GetFriendshipStatusPayload) returns (GetFriendshipStatusResponse) {}
|
|
317
|
+
|
|
318
|
+
// Subscribe to connectivity updates of friends: ONLINE, OFFLINE, AWAY
|
|
319
|
+
rpc SubscribeToFriendConnectivityUpdates(google.protobuf.Empty)
|
|
320
|
+
returns (stream FriendConnectivityUpdate) {}
|
|
321
|
+
|
|
322
|
+
rpc BlockUser(BlockUserPayload) returns (BlockUserResponse) {}
|
|
323
|
+
|
|
324
|
+
rpc UnblockUser(UnblockUserPayload) returns (UnblockUserResponse) {}
|
|
325
|
+
|
|
326
|
+
rpc GetBlockedUsers(GetBlockedUsersPayload) returns (GetBlockedUsersResponse) {}
|
|
327
|
+
|
|
328
|
+
rpc GetBlockingStatus(google.protobuf.Empty) returns (GetBlockingStatusResponse) {}
|
|
329
|
+
|
|
330
|
+
rpc SubscribeToBlockUpdates(google.protobuf.Empty) returns (stream BlockUpdate) {}
|
|
331
|
+
|
|
332
|
+
// Get all the social settings for the authenticated user
|
|
333
|
+
rpc GetSocialSettings(google.protobuf.Empty) returns (GetSocialSettingsResponse) {}
|
|
334
|
+
|
|
335
|
+
// Insert or update the social settings for the authenticated user
|
|
336
|
+
rpc UpsertSocialSettings(UpsertSocialSettingsPayload) returns (UpsertSocialSettingsResponse) {}
|
|
337
|
+
|
|
338
|
+
// Get the private messages privacy settings for the requested users
|
|
339
|
+
rpc GetPrivateMessagesSettings(GetPrivateMessagesSettingsPayload) returns (GetPrivateMessagesSettingsResponse) {}
|
|
159
340
|
}
|