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