@dcl/protocol 1.0.0-16428499484.commit-7aab7c2 → 1.0.0-16564528964.commit-5630df7
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/comms/rfc4/comms.gen.d.ts +9 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +49 -11
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +838 -22
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +5093 -941
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +59 -10
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +5630 -939
- package/package.json +3 -3
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +8 -3
- package/proto/decentraland/sdk/components/light_source.proto +28 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +347 -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-16564528964.commit-5630df7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"test": "./scripts/check-proto-compabitility.sh"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@protobuf-ts/protoc": "^2.
|
|
16
|
+
"@protobuf-ts/protoc": "^2.11.0",
|
|
17
17
|
"proto-compatibility-tool": "^1.1.2-20220925163655.commit-25bd040",
|
|
18
18
|
"typescript": "^5.0.4"
|
|
19
19
|
},
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"out-js",
|
|
31
31
|
"public"
|
|
32
32
|
],
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "5630df76f6558e779d7819062ffcc98299a3fd86"
|
|
34
34
|
}
|
|
@@ -55,10 +55,11 @@ message Movement {
|
|
|
55
55
|
bool is_long_jump = 12;
|
|
56
56
|
bool is_long_fall = 13;
|
|
57
57
|
bool is_falling = 14;
|
|
58
|
-
|
|
59
58
|
bool is_stunned = 15;
|
|
60
|
-
|
|
61
59
|
float rotation_y = 16;
|
|
60
|
+
// interpolation
|
|
61
|
+
bool is_instant = 17;
|
|
62
|
+
bool is_emoting = 18;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
message MovementCompressed {
|
|
@@ -67,7 +68,7 @@ message MovementCompressed {
|
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
message PlayerEmote {
|
|
70
|
-
|
|
71
|
+
float timestamp = 1;
|
|
71
72
|
string urn = 2;
|
|
72
73
|
}
|
|
73
74
|
|
|
@@ -101,6 +102,10 @@ message ProfileResponse {
|
|
|
101
102
|
message Chat {
|
|
102
103
|
string message = 1;
|
|
103
104
|
double timestamp = 2;
|
|
105
|
+
|
|
106
|
+
// Extension: optional forwarded_from to identify the original sender when
|
|
107
|
+
// messages are forwarded through an SFU
|
|
108
|
+
optional string forwarded_from = 3;
|
|
104
109
|
}
|
|
105
110
|
|
|
106
111
|
message Scene {
|
|
@@ -0,0 +1,28 @@
|
|
|
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 = 1; // default = true, whether the lightSource is active or not.
|
|
10
|
+
optional decentraland.common.Color3 color = 2; // 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 intensity = 3; // default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot.
|
|
12
|
+
optional float range = 4; // default = 0, how far the light travels, expressed in meters. If left at 0 will be computed automatically
|
|
13
|
+
optional bool shadow = 5; // default = false, whether the light casts shadows or not.
|
|
14
|
+
optional decentraland.common.TextureUnion shadow_mask_texture = 6; // Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window.
|
|
15
|
+
|
|
16
|
+
oneof type {
|
|
17
|
+
Point point = 7;
|
|
18
|
+
Spot spot = 8;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message Point {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message Spot {
|
|
25
|
+
optional float inner_angle = 9; // 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.
|
|
26
|
+
optional float outer_angle = 10; // 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.
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -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,56 @@ 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
|
+
}
|
|
19
|
+
message ConflictingError {
|
|
20
|
+
optional string message = 1;
|
|
21
|
+
}
|
|
22
|
+
message ForbiddenError {
|
|
23
|
+
optional string message = 1;
|
|
24
|
+
}
|
|
25
|
+
message NotFoundError {
|
|
26
|
+
optional string message = 1;
|
|
27
|
+
}
|
|
9
28
|
|
|
10
29
|
// Types
|
|
11
30
|
message User { string address = 1; }
|
|
12
31
|
|
|
32
|
+
message FriendProfile {
|
|
33
|
+
string address = 1;
|
|
34
|
+
string name = 2;
|
|
35
|
+
bool has_claimed_name = 3;
|
|
36
|
+
string profile_picture_url = 4;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message BlockedUserProfile {
|
|
40
|
+
string address = 1;
|
|
41
|
+
string name = 2;
|
|
42
|
+
bool has_claimed_name = 3;
|
|
43
|
+
string profile_picture_url = 4;
|
|
44
|
+
optional int64 blocked_at = 5;
|
|
45
|
+
}
|
|
46
|
+
|
|
13
47
|
message Pagination {
|
|
14
48
|
int32 limit = 1;
|
|
15
49
|
int32 offset = 2;
|
|
16
50
|
}
|
|
17
51
|
|
|
18
52
|
message FriendshipRequestResponse {
|
|
19
|
-
|
|
53
|
+
FriendProfile friend = 1;
|
|
20
54
|
int64 created_at = 2;
|
|
21
55
|
optional string message = 3;
|
|
56
|
+
string id = 4;
|
|
22
57
|
}
|
|
23
58
|
|
|
24
59
|
message FriendshipRequests {
|
|
@@ -33,7 +68,6 @@ enum ConnectivityStatus {
|
|
|
33
68
|
|
|
34
69
|
message GetFriendsPayload {
|
|
35
70
|
optional Pagination pagination = 1;
|
|
36
|
-
optional ConnectivityStatus status = 2;
|
|
37
71
|
}
|
|
38
72
|
|
|
39
73
|
message GetFriendshipRequestsPayload {
|
|
@@ -69,8 +103,8 @@ message PaginatedResponse {
|
|
|
69
103
|
int32 page = 2;
|
|
70
104
|
}
|
|
71
105
|
|
|
72
|
-
message
|
|
73
|
-
repeated
|
|
106
|
+
message PaginatedFriendsProfilesResponse {
|
|
107
|
+
repeated FriendProfile friends = 1;
|
|
74
108
|
PaginatedResponse pagination_data = 2;
|
|
75
109
|
}
|
|
76
110
|
|
|
@@ -86,6 +120,8 @@ message UpsertFriendshipResponse {
|
|
|
86
120
|
message Accepted {
|
|
87
121
|
string id = 1;
|
|
88
122
|
int64 created_at = 2;
|
|
123
|
+
FriendProfile friend = 3;
|
|
124
|
+
optional string message = 4;
|
|
89
125
|
}
|
|
90
126
|
oneof response {
|
|
91
127
|
Accepted accepted = 1;
|
|
@@ -95,20 +131,33 @@ message UpsertFriendshipResponse {
|
|
|
95
131
|
}
|
|
96
132
|
|
|
97
133
|
message FriendshipUpdate {
|
|
134
|
+
message RequestResponse {
|
|
135
|
+
FriendProfile friend = 1;
|
|
136
|
+
int64 created_at = 2;
|
|
137
|
+
optional string message = 3;
|
|
138
|
+
string id = 4;
|
|
139
|
+
}
|
|
98
140
|
message AcceptResponse { User user = 1; }
|
|
99
141
|
message RejectResponse { User user = 1; }
|
|
100
142
|
message DeleteResponse { User user = 1; }
|
|
101
143
|
message CancelResponse { User user = 1; }
|
|
144
|
+
message BlockResponse { User user = 1; }
|
|
102
145
|
|
|
103
146
|
oneof update {
|
|
104
|
-
|
|
147
|
+
RequestResponse request = 1;
|
|
105
148
|
AcceptResponse accept = 2;
|
|
106
149
|
RejectResponse reject = 3;
|
|
107
150
|
DeleteResponse delete = 4;
|
|
108
151
|
CancelResponse cancel = 5;
|
|
152
|
+
BlockResponse block = 6;
|
|
109
153
|
}
|
|
110
154
|
}
|
|
111
155
|
|
|
156
|
+
message FriendConnectivityUpdate {
|
|
157
|
+
FriendProfile friend = 1;
|
|
158
|
+
ConnectivityStatus status = 2;
|
|
159
|
+
}
|
|
160
|
+
|
|
112
161
|
message GetFriendshipStatusPayload {
|
|
113
162
|
User user = 1;
|
|
114
163
|
}
|
|
@@ -121,6 +170,8 @@ enum FriendshipStatus {
|
|
|
121
170
|
REJECTED = 4;
|
|
122
171
|
DELETED = 5;
|
|
123
172
|
BLOCKED = 6;
|
|
173
|
+
NONE = 7;
|
|
174
|
+
BLOCKED_BY = 8;
|
|
124
175
|
}
|
|
125
176
|
|
|
126
177
|
message GetFriendshipStatusResponse {
|
|
@@ -134,12 +185,253 @@ message GetFriendshipStatusResponse {
|
|
|
134
185
|
}
|
|
135
186
|
}
|
|
136
187
|
|
|
188
|
+
message BlockUserPayload {
|
|
189
|
+
User user = 1;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
message BlockUserResponse {
|
|
193
|
+
message Ok {
|
|
194
|
+
BlockedUserProfile profile = 1;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
oneof response {
|
|
198
|
+
Ok ok = 1;
|
|
199
|
+
InternalServerError internal_server_error = 2;
|
|
200
|
+
InvalidRequest invalid_request = 3;
|
|
201
|
+
ProfileNotFound profile_not_found = 4;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
message UnblockUserPayload {
|
|
206
|
+
User user = 1;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
message UnblockUserResponse {
|
|
210
|
+
message Ok {
|
|
211
|
+
BlockedUserProfile profile = 1;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
oneof response {
|
|
215
|
+
Ok ok = 1;
|
|
216
|
+
InternalServerError internal_server_error = 2;
|
|
217
|
+
InvalidRequest invalid_request = 3;
|
|
218
|
+
ProfileNotFound profile_not_found = 4;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
enum PrivateMessagePrivacySetting {
|
|
223
|
+
ALL = 0;
|
|
224
|
+
ONLY_FRIENDS = 1;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
enum BlockedUsersMessagesVisibilitySetting {
|
|
228
|
+
SHOW_MESSAGES = 0;
|
|
229
|
+
DO_NOT_SHOW_MESSAGES = 1;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
message SocialSettings {
|
|
233
|
+
PrivateMessagePrivacySetting private_messages_privacy = 1;
|
|
234
|
+
BlockedUsersMessagesVisibilitySetting blocked_users_messages_visibility = 2;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
message GetSocialSettingsResponse {
|
|
238
|
+
message Ok {
|
|
239
|
+
SocialSettings settings = 1;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
oneof response {
|
|
243
|
+
Ok ok = 1;
|
|
244
|
+
InternalServerError internal_server_error = 2;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
message UpsertSocialSettingsPayload {
|
|
249
|
+
optional PrivateMessagePrivacySetting private_messages_privacy = 1;
|
|
250
|
+
optional BlockedUsersMessagesVisibilitySetting blocked_users_messages_visibility = 2;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
message UpsertSocialSettingsResponse {
|
|
254
|
+
oneof response {
|
|
255
|
+
SocialSettings ok = 1;
|
|
256
|
+
InternalServerError internal_server_error = 2;
|
|
257
|
+
InvalidRequest invalid_request = 3;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
message GetPrivateMessagesSettingsPayload {
|
|
262
|
+
repeated User user = 1;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
message GetPrivateMessagesSettingsResponse {
|
|
266
|
+
message PrivateMessagesSettings {
|
|
267
|
+
User user = 1;
|
|
268
|
+
PrivateMessagePrivacySetting private_messages_privacy = 2;
|
|
269
|
+
bool is_friend = 3;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
message Ok {
|
|
273
|
+
repeated PrivateMessagesSettings settings = 1;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
oneof response {
|
|
277
|
+
Ok ok = 1;
|
|
278
|
+
InternalServerError internal_server_error = 2;
|
|
279
|
+
InvalidRequest invalid_request = 3;
|
|
280
|
+
ProfileNotFound profile_not_found = 4;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
message GetBlockedUsersPayload {
|
|
285
|
+
optional Pagination pagination = 1;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
message GetBlockedUsersResponse {
|
|
289
|
+
repeated BlockedUserProfile profiles = 1;
|
|
290
|
+
PaginatedResponse pagination_data = 2;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
message GetBlockingStatusResponse {
|
|
294
|
+
repeated string blocked_users = 1;
|
|
295
|
+
repeated string blocked_by_users = 2;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
message BlockUpdate {
|
|
299
|
+
string address = 1;
|
|
300
|
+
bool is_blocked = 2;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
message CommunityMemberConnectivityUpdate {
|
|
304
|
+
string community_id = 1;
|
|
305
|
+
User member = 2;
|
|
306
|
+
ConnectivityStatus status = 3;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// Private voice chats
|
|
310
|
+
|
|
311
|
+
// Starting a private voice chat
|
|
312
|
+
|
|
313
|
+
message StartPrivateVoiceChatPayload {
|
|
314
|
+
User callee = 1;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
message StartPrivateVoiceChatResponse {
|
|
318
|
+
message Ok {
|
|
319
|
+
string call_id = 1;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
oneof response {
|
|
323
|
+
Ok ok = 1;
|
|
324
|
+
InternalServerError internal_server_error = 2;
|
|
325
|
+
InvalidRequest invalid_request = 3;
|
|
326
|
+
ConflictingError conflicting_error = 4;
|
|
327
|
+
ForbiddenError forbidden_error = 5;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// Accepting a private voice chat
|
|
332
|
+
|
|
333
|
+
message AcceptPrivateVoiceChatPayload {
|
|
334
|
+
string call_id = 1;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
message AcceptPrivateVoiceChatResponse {
|
|
338
|
+
message Ok {
|
|
339
|
+
string call_id = 1;
|
|
340
|
+
PrivateVoiceChatCredentials credentials = 2;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
oneof response {
|
|
344
|
+
Ok ok = 1;
|
|
345
|
+
InternalServerError internal_server_error = 2;
|
|
346
|
+
InvalidRequest invalid_request = 3;
|
|
347
|
+
NotFoundError not_found = 4;
|
|
348
|
+
ForbiddenError forbidden_error = 5;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// Rejecting a private voice chat
|
|
353
|
+
|
|
354
|
+
message RejectPrivateVoiceChatPayload {
|
|
355
|
+
string call_id = 1;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
message RejectPrivateVoiceChatResponse {
|
|
359
|
+
message Ok {
|
|
360
|
+
string call_id = 1;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
oneof response {
|
|
364
|
+
Ok ok = 1;
|
|
365
|
+
InternalServerError internal_server_error = 2;
|
|
366
|
+
InvalidRequest invalid_request = 3;
|
|
367
|
+
NotFoundError not_found = 4;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
// Private voice chat updates
|
|
372
|
+
|
|
373
|
+
enum PrivateVoiceChatStatus {
|
|
374
|
+
VOICE_CHAT_REQUESTED = 0;
|
|
375
|
+
VOICE_CHAT_ACCEPTED = 1;
|
|
376
|
+
VOICE_CHAT_REJECTED = 2;
|
|
377
|
+
VOICE_CHAT_ENDED = 3;
|
|
378
|
+
VOICE_CHAT_EXPIRED = 4;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
message PrivateVoiceChatCredentials {
|
|
382
|
+
string connection_url = 1;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
message PrivateVoiceChatUpdate {
|
|
386
|
+
string call_id = 1;
|
|
387
|
+
PrivateVoiceChatStatus status = 2;
|
|
388
|
+
optional User caller = 3;
|
|
389
|
+
optional User callee = 4;
|
|
390
|
+
optional PrivateVoiceChatCredentials credentials = 5;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// Ending a private voice chat
|
|
394
|
+
// This is sent from the client to the server whenever the user wants to end the voice chat
|
|
395
|
+
// This could occur before the voice chat is accepted or after it is accepted
|
|
396
|
+
|
|
397
|
+
message EndPrivateVoiceChatPayload {
|
|
398
|
+
string call_id = 1;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
message EndPrivateVoiceChatResponse {
|
|
402
|
+
message Ok {
|
|
403
|
+
string call_id = 1;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
oneof response {
|
|
407
|
+
Ok ok = 1;
|
|
408
|
+
InternalServerError internal_server_error = 2;
|
|
409
|
+
NotFoundError not_found = 3;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// Get incoming private voice chat request
|
|
414
|
+
|
|
415
|
+
message GetIncomingPrivateVoiceChatRequestResponse {
|
|
416
|
+
message Ok {
|
|
417
|
+
User caller = 1;
|
|
418
|
+
string call_id = 2;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
oneof response {
|
|
422
|
+
Ok ok = 1;
|
|
423
|
+
NotFoundError not_found = 2;
|
|
424
|
+
InternalServerError internal_server_error = 3;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
|
|
137
429
|
service SocialService {
|
|
138
430
|
// Get the list of friends for the authenticated user
|
|
139
|
-
rpc GetFriends(GetFriendsPayload) returns (
|
|
431
|
+
rpc GetFriends(GetFriendsPayload) returns (PaginatedFriendsProfilesResponse) {}
|
|
140
432
|
|
|
141
433
|
// Get the list of mutual friends between the authenticated user and the one in the parameter
|
|
142
|
-
rpc GetMutualFriends(GetMutualFriendsPayload) returns (
|
|
434
|
+
rpc GetMutualFriends(GetMutualFriendsPayload) returns (PaginatedFriendsProfilesResponse) {}
|
|
143
435
|
|
|
144
436
|
// Get the pending friendship requests for the authenticated user
|
|
145
437
|
rpc GetPendingFriendshipRequests(GetFriendshipRequestsPayload) returns (PaginatedFriendshipRequestsResponse) {}
|
|
@@ -155,5 +447,51 @@ service SocialService {
|
|
|
155
447
|
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
|
|
156
448
|
returns (stream FriendshipUpdate) {}
|
|
157
449
|
|
|
450
|
+
// Get the friendship status between the authenticated user and the one in the parameter
|
|
158
451
|
rpc GetFriendshipStatus(GetFriendshipStatusPayload) returns (GetFriendshipStatusResponse) {}
|
|
452
|
+
|
|
453
|
+
// Subscribe to connectivity updates of friends: ONLINE, OFFLINE, AWAY
|
|
454
|
+
rpc SubscribeToFriendConnectivityUpdates(google.protobuf.Empty)
|
|
455
|
+
returns (stream FriendConnectivityUpdate) {}
|
|
456
|
+
|
|
457
|
+
rpc BlockUser(BlockUserPayload) returns (BlockUserResponse) {}
|
|
458
|
+
|
|
459
|
+
rpc UnblockUser(UnblockUserPayload) returns (UnblockUserResponse) {}
|
|
460
|
+
|
|
461
|
+
rpc GetBlockedUsers(GetBlockedUsersPayload) returns (GetBlockedUsersResponse) {}
|
|
462
|
+
|
|
463
|
+
rpc GetBlockingStatus(google.protobuf.Empty) returns (GetBlockingStatusResponse) {}
|
|
464
|
+
|
|
465
|
+
rpc SubscribeToBlockUpdates(google.protobuf.Empty) returns (stream BlockUpdate) {}
|
|
466
|
+
|
|
467
|
+
// Get all the social settings for the authenticated user
|
|
468
|
+
rpc GetSocialSettings(google.protobuf.Empty) returns (GetSocialSettingsResponse) {}
|
|
469
|
+
|
|
470
|
+
// Insert or update the social settings for the authenticated user
|
|
471
|
+
rpc UpsertSocialSettings(UpsertSocialSettingsPayload) returns (UpsertSocialSettingsResponse) {}
|
|
472
|
+
|
|
473
|
+
// Get the private messages privacy settings for the requested users
|
|
474
|
+
rpc GetPrivateMessagesSettings(GetPrivateMessagesSettingsPayload) returns (GetPrivateMessagesSettingsResponse) {}
|
|
475
|
+
|
|
476
|
+
// Subscribe to community member connectivity updates: ONLINE, OFFLINE
|
|
477
|
+
rpc SubscribeToCommunityMemberConnectivityUpdates(google.protobuf.Empty)
|
|
478
|
+
returns (stream CommunityMemberConnectivityUpdate) {}
|
|
479
|
+
|
|
480
|
+
// Start a private voice chat
|
|
481
|
+
rpc StartPrivateVoiceChat(StartPrivateVoiceChatPayload) returns (StartPrivateVoiceChatResponse) {}
|
|
482
|
+
|
|
483
|
+
// Accept a private voice chat
|
|
484
|
+
rpc AcceptPrivateVoiceChat(AcceptPrivateVoiceChatPayload) returns (AcceptPrivateVoiceChatResponse) {}
|
|
485
|
+
|
|
486
|
+
// Reject a private voice chat
|
|
487
|
+
rpc RejectPrivateVoiceChat(RejectPrivateVoiceChatPayload) returns (RejectPrivateVoiceChatResponse) {}
|
|
488
|
+
|
|
489
|
+
// End a private voice chat
|
|
490
|
+
rpc EndPrivateVoiceChat(EndPrivateVoiceChatPayload) returns (EndPrivateVoiceChatResponse) {}
|
|
491
|
+
|
|
492
|
+
// Get the incoming private voice chat request
|
|
493
|
+
rpc GetIncomingPrivateVoiceChatRequest(google.protobuf.Empty) returns (GetIncomingPrivateVoiceChatRequestResponse) {}
|
|
494
|
+
|
|
495
|
+
// Subscribe to private voice chat updates
|
|
496
|
+
rpc SubscribeToPrivateVoiceChatUpdates(google.protobuf.Empty) returns (stream PrivateVoiceChatUpdate) {}
|
|
159
497
|
}
|