@dcl/protocol 1.0.0-15216382134.commit-071135f → 1.0.0-15417746548.commit-e270f1e
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 +22 -477
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +987 -3350
- 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 +1015 -3664
- package/package.json +4 -3
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +9 -190
- 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-15417746548.commit-e270f1e",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"protocVersion": "22.2"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@dcl/ts-proto": "1.154.0"
|
|
24
|
+
"@dcl/ts-proto": "1.154.0",
|
|
25
|
+
"protobufjs": "7.2.4"
|
|
25
26
|
},
|
|
26
27
|
"files": [
|
|
27
28
|
"proto",
|
|
@@ -29,5 +30,5 @@
|
|
|
29
30
|
"out-js",
|
|
30
31
|
"public"
|
|
31
32
|
],
|
|
32
|
-
"commit": "
|
|
33
|
+
"commit": "e270f1e7cafeb12fb30b0448eaa1fd0af6cc13b9"
|
|
33
34
|
}
|
|
@@ -10,9 +10,7 @@ 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
|
|
14
13
|
message PBVirtualCamera {
|
|
15
14
|
optional common.CameraTransition default_transition = 1;
|
|
16
15
|
optional uint32 look_at_entity = 2;
|
|
17
|
-
optional float fov = 3; // default: 60
|
|
18
16
|
}
|
|
@@ -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,127 +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
|
-
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
|
-
|
|
294
137
|
service SocialService {
|
|
295
138
|
// Get the list of friends for the authenticated user
|
|
296
|
-
rpc GetFriends(GetFriendsPayload) returns (
|
|
139
|
+
rpc GetFriends(GetFriendsPayload) returns (PaginatedUsersResponse) {}
|
|
297
140
|
|
|
298
141
|
// Get the list of mutual friends between the authenticated user and the one in the parameter
|
|
299
|
-
rpc GetMutualFriends(GetMutualFriendsPayload) returns (
|
|
142
|
+
rpc GetMutualFriends(GetMutualFriendsPayload) returns (PaginatedUsersResponse) {}
|
|
300
143
|
|
|
301
144
|
// Get the pending friendship requests for the authenticated user
|
|
302
145
|
rpc GetPendingFriendshipRequests(GetFriendshipRequestsPayload) returns (PaginatedFriendshipRequestsResponse) {}
|
|
@@ -312,29 +155,5 @@ service SocialService {
|
|
|
312
155
|
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
|
|
313
156
|
returns (stream FriendshipUpdate) {}
|
|
314
157
|
|
|
315
|
-
// Get the friendship status between the authenticated user and the one in the parameter
|
|
316
158
|
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) {}
|
|
340
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
|
-
}
|