@dcl/protocol 1.0.0-13373633961.commit-e07ccb6 → 1.0.0-13589257140.commit-dc6f088
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/kernel/apis/restricted_actions.gen.d.ts +1 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +16 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +14 -67
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +58 -368
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +18 -1
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +59 -416
- package/package.json +2 -2
- package/proto/decentraland/kernel/apis/restricted_actions.proto +1 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +7 -33
- 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-13589257140.commit-dc6f088",
|
|
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": "dc6f0880e2a98d203d810d35a527a1e202c41500"
|
|
33
33
|
}
|
|
@@ -6,6 +6,7 @@ import "decentraland/common/vectors.proto";
|
|
|
6
6
|
message MovePlayerToRequest {
|
|
7
7
|
decentraland.common.Vector3 new_relative_position = 1;
|
|
8
8
|
optional decentraland.common.Vector3 camera_target = 2;
|
|
9
|
+
optional decentraland.common.Vector3 avatar_target = 3;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
message TeleportToRequest {
|
|
@@ -10,23 +10,15 @@ message InternalServerError {}
|
|
|
10
10
|
// Types
|
|
11
11
|
message User { string address = 1; }
|
|
12
12
|
|
|
13
|
-
message FriendProfile {
|
|
14
|
-
string address = 1;
|
|
15
|
-
string name = 2;
|
|
16
|
-
bool has_claimed_name = 3;
|
|
17
|
-
string profile_picture_url = 4;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
13
|
message Pagination {
|
|
21
14
|
int32 limit = 1;
|
|
22
15
|
int32 offset = 2;
|
|
23
16
|
}
|
|
24
17
|
|
|
25
18
|
message FriendshipRequestResponse {
|
|
26
|
-
|
|
19
|
+
User user = 1;
|
|
27
20
|
int64 created_at = 2;
|
|
28
21
|
optional string message = 3;
|
|
29
|
-
string id = 4;
|
|
30
22
|
}
|
|
31
23
|
|
|
32
24
|
message FriendshipRequests {
|
|
@@ -41,6 +33,7 @@ enum ConnectivityStatus {
|
|
|
41
33
|
|
|
42
34
|
message GetFriendsPayload {
|
|
43
35
|
optional Pagination pagination = 1;
|
|
36
|
+
optional ConnectivityStatus status = 2;
|
|
44
37
|
}
|
|
45
38
|
|
|
46
39
|
message GetFriendshipRequestsPayload {
|
|
@@ -76,8 +69,8 @@ message PaginatedResponse {
|
|
|
76
69
|
int32 page = 2;
|
|
77
70
|
}
|
|
78
71
|
|
|
79
|
-
message
|
|
80
|
-
repeated
|
|
72
|
+
message PaginatedUsersResponse {
|
|
73
|
+
repeated User users = 1;
|
|
81
74
|
PaginatedResponse pagination_data = 2;
|
|
82
75
|
}
|
|
83
76
|
|
|
@@ -93,8 +86,6 @@ message UpsertFriendshipResponse {
|
|
|
93
86
|
message Accepted {
|
|
94
87
|
string id = 1;
|
|
95
88
|
int64 created_at = 2;
|
|
96
|
-
FriendProfile friend = 3;
|
|
97
|
-
optional string message = 4;
|
|
98
89
|
}
|
|
99
90
|
oneof response {
|
|
100
91
|
Accepted accepted = 1;
|
|
@@ -104,19 +95,13 @@ message UpsertFriendshipResponse {
|
|
|
104
95
|
}
|
|
105
96
|
|
|
106
97
|
message FriendshipUpdate {
|
|
107
|
-
message RequestResponse {
|
|
108
|
-
FriendProfile friend = 1;
|
|
109
|
-
int64 created_at = 2;
|
|
110
|
-
optional string message = 3;
|
|
111
|
-
string id = 4;
|
|
112
|
-
}
|
|
113
98
|
message AcceptResponse { User user = 1; }
|
|
114
99
|
message RejectResponse { User user = 1; }
|
|
115
100
|
message DeleteResponse { User user = 1; }
|
|
116
101
|
message CancelResponse { User user = 1; }
|
|
117
102
|
|
|
118
103
|
oneof update {
|
|
119
|
-
|
|
104
|
+
FriendshipRequestResponse request = 1;
|
|
120
105
|
AcceptResponse accept = 2;
|
|
121
106
|
RejectResponse reject = 3;
|
|
122
107
|
DeleteResponse delete = 4;
|
|
@@ -124,11 +109,6 @@ message FriendshipUpdate {
|
|
|
124
109
|
}
|
|
125
110
|
}
|
|
126
111
|
|
|
127
|
-
message FriendConnectivityUpdate {
|
|
128
|
-
FriendProfile friend = 1;
|
|
129
|
-
ConnectivityStatus status = 2;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
112
|
message GetFriendshipStatusPayload {
|
|
133
113
|
User user = 1;
|
|
134
114
|
}
|
|
@@ -141,7 +121,6 @@ enum FriendshipStatus {
|
|
|
141
121
|
REJECTED = 4;
|
|
142
122
|
DELETED = 5;
|
|
143
123
|
BLOCKED = 6;
|
|
144
|
-
NONE = 7;
|
|
145
124
|
}
|
|
146
125
|
|
|
147
126
|
message GetFriendshipStatusResponse {
|
|
@@ -157,10 +136,10 @@ message GetFriendshipStatusResponse {
|
|
|
157
136
|
|
|
158
137
|
service SocialService {
|
|
159
138
|
// Get the list of friends for the authenticated user
|
|
160
|
-
rpc GetFriends(GetFriendsPayload) returns (
|
|
139
|
+
rpc GetFriends(GetFriendsPayload) returns (PaginatedUsersResponse) {}
|
|
161
140
|
|
|
162
141
|
// Get the list of mutual friends between the authenticated user and the one in the parameter
|
|
163
|
-
rpc GetMutualFriends(GetMutualFriendsPayload) returns (
|
|
142
|
+
rpc GetMutualFriends(GetMutualFriendsPayload) returns (PaginatedUsersResponse) {}
|
|
164
143
|
|
|
165
144
|
// Get the pending friendship requests for the authenticated user
|
|
166
145
|
rpc GetPendingFriendshipRequests(GetFriendshipRequestsPayload) returns (PaginatedFriendshipRequestsResponse) {}
|
|
@@ -176,10 +155,5 @@ service SocialService {
|
|
|
176
155
|
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
|
|
177
156
|
returns (stream FriendshipUpdate) {}
|
|
178
157
|
|
|
179
|
-
// Get the friendship status between the authenticated user and the one in the parameter
|
|
180
158
|
rpc GetFriendshipStatus(GetFriendshipStatusPayload) returns (GetFriendshipStatusResponse) {}
|
|
181
|
-
|
|
182
|
-
// Subscribe to connectivity updates of friends: ONLINE, OFFLINE, AWAY
|
|
183
|
-
rpc SubscribeToFriendConnectivityUpdates(google.protobuf.Empty)
|
|
184
|
-
returns (stream FriendConnectivityUpdate) {}
|
|
185
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
|
-
}
|