@dcl/protocol 1.0.0-16721006271.commit-e03db90 → 1.0.0-16800835851.commit-2ec49fe
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 +1 -9
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +11 -49
- 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 +32 -1246
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +148 -6401
- 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 +10 -59
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +1005 -8189
- package/package.json +3 -3
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +3 -8
- package/proto/decentraland/sdk/components/light_source.proto +6 -6
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +11 -515
- package/out-js/decentraland/social_service/errors.gen.d.ts +0 -96
- package/out-js/decentraland/social_service/errors.gen.js +0 -405
- package/out-js/decentraland/social_service/errors.gen.js.map +0 -1
- package/out-ts/decentraland/social_service/errors.gen.ts +0 -442
- package/proto/decentraland/social_service/errors.proto +0 -30
- package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -51
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-16800835851.commit-2ec49fe",
|
|
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.8.1",
|
|
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": "2ec49fe0b4036e3494ccf0bebdb3c529660661e9"
|
|
34
34
|
}
|
|
@@ -55,11 +55,10 @@ message Movement {
|
|
|
55
55
|
bool is_long_jump = 12;
|
|
56
56
|
bool is_long_fall = 13;
|
|
57
57
|
bool is_falling = 14;
|
|
58
|
+
|
|
58
59
|
bool is_stunned = 15;
|
|
60
|
+
|
|
59
61
|
float rotation_y = 16;
|
|
60
|
-
// interpolation
|
|
61
|
-
bool is_instant = 17;
|
|
62
|
-
bool is_emoting = 18;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
message MovementCompressed {
|
|
@@ -68,7 +67,7 @@ message MovementCompressed {
|
|
|
68
67
|
}
|
|
69
68
|
|
|
70
69
|
message PlayerEmote {
|
|
71
|
-
|
|
70
|
+
uint32 incremental_id = 1;
|
|
72
71
|
string urn = 2;
|
|
73
72
|
}
|
|
74
73
|
|
|
@@ -102,10 +101,6 @@ message ProfileResponse {
|
|
|
102
101
|
message Chat {
|
|
103
102
|
string message = 1;
|
|
104
103
|
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;
|
|
109
104
|
}
|
|
110
105
|
|
|
111
106
|
message Scene {
|
|
@@ -6,12 +6,12 @@ import "decentraland/common/texture.proto";
|
|
|
6
6
|
option (common.ecs_component_id) = 1079;
|
|
7
7
|
|
|
8
8
|
message PBLightSource {
|
|
9
|
-
optional bool active = 1;
|
|
10
|
-
optional decentraland.common.Color3 color = 2;
|
|
11
|
-
optional float intensity = 3;
|
|
12
|
-
optional float range = 4;
|
|
13
|
-
optional bool shadow = 5;
|
|
14
|
-
optional decentraland.common.TextureUnion shadow_mask_texture = 6;
|
|
9
|
+
optional bool active = 1; // default = true, whether the lightSource is active or not.
|
|
10
|
+
optional decentraland.common.Color3 color = 2; // default = 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 = 16000, light intensity expressed in candels (lumens/m^2 at 1 m distance, or lumens divided by 4*pi)
|
|
12
|
+
optional float range = 4; // default = -1, how far the light travels, expressed in meters. If negative will be computed automatically as pow(intensity, 0.25)
|
|
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
15
|
|
|
16
16
|
oneof type {
|
|
17
17
|
Point point = 7;
|
|
@@ -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
|
}
|
|
@@ -2,36 +2,23 @@ syntax = "proto3";
|
|
|
2
2
|
package decentraland.social_service.v2;
|
|
3
3
|
|
|
4
4
|
import "google/protobuf/empty.proto";
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
// Errors
|
|
7
|
+
message InvalidFriendshipAction {}
|
|
8
|
+
message InternalServerError {}
|
|
6
9
|
|
|
7
10
|
// Types
|
|
8
11
|
message User { string address = 1; }
|
|
9
12
|
|
|
10
|
-
message FriendProfile {
|
|
11
|
-
string address = 1;
|
|
12
|
-
string name = 2;
|
|
13
|
-
bool has_claimed_name = 3;
|
|
14
|
-
string profile_picture_url = 4;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
message BlockedUserProfile {
|
|
18
|
-
string address = 1;
|
|
19
|
-
string name = 2;
|
|
20
|
-
bool has_claimed_name = 3;
|
|
21
|
-
string profile_picture_url = 4;
|
|
22
|
-
optional int64 blocked_at = 5;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
13
|
message Pagination {
|
|
26
14
|
int32 limit = 1;
|
|
27
15
|
int32 offset = 2;
|
|
28
16
|
}
|
|
29
17
|
|
|
30
18
|
message FriendshipRequestResponse {
|
|
31
|
-
|
|
19
|
+
User user = 1;
|
|
32
20
|
int64 created_at = 2;
|
|
33
21
|
optional string message = 3;
|
|
34
|
-
string id = 4;
|
|
35
22
|
}
|
|
36
23
|
|
|
37
24
|
message FriendshipRequests {
|
|
@@ -46,6 +33,7 @@ enum ConnectivityStatus {
|
|
|
46
33
|
|
|
47
34
|
message GetFriendsPayload {
|
|
48
35
|
optional Pagination pagination = 1;
|
|
36
|
+
optional ConnectivityStatus status = 2;
|
|
49
37
|
}
|
|
50
38
|
|
|
51
39
|
message GetFriendshipRequestsPayload {
|
|
@@ -81,8 +69,8 @@ message PaginatedResponse {
|
|
|
81
69
|
int32 page = 2;
|
|
82
70
|
}
|
|
83
71
|
|
|
84
|
-
message
|
|
85
|
-
repeated
|
|
72
|
+
message PaginatedUsersResponse {
|
|
73
|
+
repeated User users = 1;
|
|
86
74
|
PaginatedResponse pagination_data = 2;
|
|
87
75
|
}
|
|
88
76
|
|
|
@@ -98,45 +86,29 @@ message UpsertFriendshipResponse {
|
|
|
98
86
|
message Accepted {
|
|
99
87
|
string id = 1;
|
|
100
88
|
int64 created_at = 2;
|
|
101
|
-
FriendProfile friend = 3;
|
|
102
|
-
optional string message = 4;
|
|
103
89
|
}
|
|
104
90
|
oneof response {
|
|
105
91
|
Accepted accepted = 1;
|
|
106
92
|
InvalidFriendshipAction invalid_friendship_action = 2;
|
|
107
93
|
InternalServerError internal_server_error = 3;
|
|
108
|
-
InvalidRequest invalid_request = 4;
|
|
109
94
|
}
|
|
110
95
|
}
|
|
111
96
|
|
|
112
97
|
message FriendshipUpdate {
|
|
113
|
-
message RequestResponse {
|
|
114
|
-
FriendProfile friend = 1;
|
|
115
|
-
int64 created_at = 2;
|
|
116
|
-
optional string message = 3;
|
|
117
|
-
string id = 4;
|
|
118
|
-
}
|
|
119
98
|
message AcceptResponse { User user = 1; }
|
|
120
99
|
message RejectResponse { User user = 1; }
|
|
121
100
|
message DeleteResponse { User user = 1; }
|
|
122
101
|
message CancelResponse { User user = 1; }
|
|
123
|
-
message BlockResponse { User user = 1; }
|
|
124
102
|
|
|
125
103
|
oneof update {
|
|
126
|
-
|
|
104
|
+
FriendshipRequestResponse request = 1;
|
|
127
105
|
AcceptResponse accept = 2;
|
|
128
106
|
RejectResponse reject = 3;
|
|
129
107
|
DeleteResponse delete = 4;
|
|
130
108
|
CancelResponse cancel = 5;
|
|
131
|
-
BlockResponse block = 6;
|
|
132
109
|
}
|
|
133
110
|
}
|
|
134
111
|
|
|
135
|
-
message FriendConnectivityUpdate {
|
|
136
|
-
FriendProfile friend = 1;
|
|
137
|
-
ConnectivityStatus status = 2;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
112
|
message GetFriendshipStatusPayload {
|
|
141
113
|
User user = 1;
|
|
142
114
|
}
|
|
@@ -149,8 +121,6 @@ enum FriendshipStatus {
|
|
|
149
121
|
REJECTED = 4;
|
|
150
122
|
DELETED = 5;
|
|
151
123
|
BLOCKED = 6;
|
|
152
|
-
NONE = 7;
|
|
153
|
-
BLOCKED_BY = 8;
|
|
154
124
|
}
|
|
155
125
|
|
|
156
126
|
message GetFriendshipStatusResponse {
|
|
@@ -161,419 +131,15 @@ message GetFriendshipStatusResponse {
|
|
|
161
131
|
oneof response {
|
|
162
132
|
Ok accepted = 1;
|
|
163
133
|
InternalServerError internal_server_error = 2;
|
|
164
|
-
InvalidRequest invalid_request = 3;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
message BlockUserPayload {
|
|
169
|
-
User user = 1;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
message BlockUserResponse {
|
|
173
|
-
message Ok {
|
|
174
|
-
BlockedUserProfile profile = 1;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
oneof response {
|
|
178
|
-
Ok ok = 1;
|
|
179
|
-
InternalServerError internal_server_error = 2;
|
|
180
|
-
InvalidRequest invalid_request = 3;
|
|
181
|
-
ProfileNotFound profile_not_found = 4;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
message UnblockUserPayload {
|
|
186
|
-
User user = 1;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
message UnblockUserResponse {
|
|
190
|
-
message Ok {
|
|
191
|
-
BlockedUserProfile profile = 1;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
oneof response {
|
|
195
|
-
Ok ok = 1;
|
|
196
|
-
InternalServerError internal_server_error = 2;
|
|
197
|
-
InvalidRequest invalid_request = 3;
|
|
198
|
-
ProfileNotFound profile_not_found = 4;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
enum PrivateMessagePrivacySetting {
|
|
203
|
-
ALL = 0;
|
|
204
|
-
ONLY_FRIENDS = 1;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
enum BlockedUsersMessagesVisibilitySetting {
|
|
208
|
-
SHOW_MESSAGES = 0;
|
|
209
|
-
DO_NOT_SHOW_MESSAGES = 1;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
message SocialSettings {
|
|
213
|
-
PrivateMessagePrivacySetting private_messages_privacy = 1;
|
|
214
|
-
BlockedUsersMessagesVisibilitySetting blocked_users_messages_visibility = 2;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
message GetSocialSettingsResponse {
|
|
218
|
-
message Ok {
|
|
219
|
-
SocialSettings settings = 1;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
oneof response {
|
|
223
|
-
Ok ok = 1;
|
|
224
|
-
InternalServerError internal_server_error = 2;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
message UpsertSocialSettingsPayload {
|
|
229
|
-
optional PrivateMessagePrivacySetting private_messages_privacy = 1;
|
|
230
|
-
optional BlockedUsersMessagesVisibilitySetting blocked_users_messages_visibility = 2;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
message UpsertSocialSettingsResponse {
|
|
234
|
-
oneof response {
|
|
235
|
-
SocialSettings ok = 1;
|
|
236
|
-
InternalServerError internal_server_error = 2;
|
|
237
|
-
InvalidRequest invalid_request = 3;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
message GetPrivateMessagesSettingsPayload {
|
|
242
|
-
repeated User user = 1;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
message GetPrivateMessagesSettingsResponse {
|
|
246
|
-
message PrivateMessagesSettings {
|
|
247
|
-
User user = 1;
|
|
248
|
-
PrivateMessagePrivacySetting private_messages_privacy = 2;
|
|
249
|
-
bool is_friend = 3;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
message Ok {
|
|
253
|
-
repeated PrivateMessagesSettings settings = 1;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
oneof response {
|
|
257
|
-
Ok ok = 1;
|
|
258
|
-
InternalServerError internal_server_error = 2;
|
|
259
|
-
InvalidRequest invalid_request = 3;
|
|
260
|
-
ProfileNotFound profile_not_found = 4;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
message GetBlockedUsersPayload {
|
|
265
|
-
optional Pagination pagination = 1;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
message GetBlockedUsersResponse {
|
|
269
|
-
repeated BlockedUserProfile profiles = 1;
|
|
270
|
-
PaginatedResponse pagination_data = 2;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
message GetBlockingStatusResponse {
|
|
274
|
-
repeated string blocked_users = 1;
|
|
275
|
-
repeated string blocked_by_users = 2;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
message BlockUpdate {
|
|
279
|
-
string address = 1;
|
|
280
|
-
bool is_blocked = 2;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
message CommunityMemberConnectivityUpdate {
|
|
284
|
-
string community_id = 1;
|
|
285
|
-
User member = 2;
|
|
286
|
-
ConnectivityStatus status = 3;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
// Private voice chats
|
|
290
|
-
|
|
291
|
-
// Starting a private voice chat
|
|
292
|
-
|
|
293
|
-
message StartPrivateVoiceChatPayload {
|
|
294
|
-
User callee = 1;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
message StartPrivateVoiceChatResponse {
|
|
298
|
-
message Ok {
|
|
299
|
-
string call_id = 1;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
oneof response {
|
|
303
|
-
Ok ok = 1;
|
|
304
|
-
InternalServerError internal_server_error = 2;
|
|
305
|
-
InvalidRequest invalid_request = 3;
|
|
306
|
-
ConflictingError conflicting_error = 4;
|
|
307
|
-
ForbiddenError forbidden_error = 5;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
// Accepting a private voice chat
|
|
312
|
-
|
|
313
|
-
message AcceptPrivateVoiceChatPayload {
|
|
314
|
-
string call_id = 1;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
message AcceptPrivateVoiceChatResponse {
|
|
318
|
-
message Ok {
|
|
319
|
-
string call_id = 1;
|
|
320
|
-
PrivateVoiceChatCredentials credentials = 2;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
oneof response {
|
|
324
|
-
Ok ok = 1;
|
|
325
|
-
InternalServerError internal_server_error = 2;
|
|
326
|
-
InvalidRequest invalid_request = 3;
|
|
327
|
-
NotFoundError not_found = 4;
|
|
328
|
-
ForbiddenError forbidden_error = 5;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
// Rejecting a private voice chat
|
|
333
|
-
|
|
334
|
-
message RejectPrivateVoiceChatPayload {
|
|
335
|
-
string call_id = 1;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
message RejectPrivateVoiceChatResponse {
|
|
339
|
-
message Ok {
|
|
340
|
-
string call_id = 1;
|
|
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
|
-
}
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
// Private voice chat updates
|
|
352
|
-
|
|
353
|
-
enum PrivateVoiceChatStatus {
|
|
354
|
-
VOICE_CHAT_REQUESTED = 0;
|
|
355
|
-
VOICE_CHAT_ACCEPTED = 1;
|
|
356
|
-
VOICE_CHAT_REJECTED = 2;
|
|
357
|
-
VOICE_CHAT_ENDED = 3;
|
|
358
|
-
VOICE_CHAT_EXPIRED = 4;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
message PrivateVoiceChatCredentials {
|
|
362
|
-
string connection_url = 1;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
message PrivateVoiceChatUpdate {
|
|
366
|
-
string call_id = 1;
|
|
367
|
-
PrivateVoiceChatStatus status = 2;
|
|
368
|
-
optional User caller = 3;
|
|
369
|
-
optional User callee = 4;
|
|
370
|
-
optional PrivateVoiceChatCredentials credentials = 5;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
// Ending a private voice chat
|
|
374
|
-
// This is sent from the client to the server whenever the user wants to end the voice chat
|
|
375
|
-
// This could occur before the voice chat is accepted or after it is accepted
|
|
376
|
-
|
|
377
|
-
message EndPrivateVoiceChatPayload {
|
|
378
|
-
string call_id = 1;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
message EndPrivateVoiceChatResponse {
|
|
382
|
-
message Ok {
|
|
383
|
-
string call_id = 1;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
oneof response {
|
|
387
|
-
Ok ok = 1;
|
|
388
|
-
InternalServerError internal_server_error = 2;
|
|
389
|
-
NotFoundError not_found = 3;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
// Get incoming private voice chat request
|
|
394
|
-
|
|
395
|
-
message GetIncomingPrivateVoiceChatRequestResponse {
|
|
396
|
-
message Ok {
|
|
397
|
-
User caller = 1;
|
|
398
|
-
string call_id = 2;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
oneof response {
|
|
402
|
-
Ok ok = 1;
|
|
403
|
-
NotFoundError not_found = 2;
|
|
404
|
-
InternalServerError internal_server_error = 3;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
// Community Voice Chat messages
|
|
409
|
-
|
|
410
|
-
// Community voice chat credentials - specific type for community chats
|
|
411
|
-
message CommunityVoiceChatCredentials {
|
|
412
|
-
string connection_url = 1;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
// Starting a community voice chat
|
|
416
|
-
message StartCommunityVoiceChatPayload {
|
|
417
|
-
string community_id = 1;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
message StartCommunityVoiceChatResponse {
|
|
421
|
-
message Ok {
|
|
422
|
-
CommunityVoiceChatCredentials credentials = 1; // Moderator gets credentials immediately
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
oneof response {
|
|
426
|
-
Ok ok = 1;
|
|
427
|
-
InvalidRequest invalid_request = 2;
|
|
428
|
-
ForbiddenError forbidden_error = 3;
|
|
429
|
-
ConflictingError conflicting_error = 4;
|
|
430
|
-
InternalServerError internal_server_error = 5;
|
|
431
134
|
}
|
|
432
135
|
}
|
|
433
136
|
|
|
434
|
-
// Joining a community voice chat
|
|
435
|
-
message JoinCommunityVoiceChatPayload {
|
|
436
|
-
string community_id = 1;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
message JoinCommunityVoiceChatResponse {
|
|
440
|
-
message Ok {
|
|
441
|
-
string voice_chat_id = 1;
|
|
442
|
-
CommunityVoiceChatCredentials credentials = 2;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
oneof response {
|
|
446
|
-
Ok ok = 1;
|
|
447
|
-
InvalidRequest invalid_request = 2;
|
|
448
|
-
ForbiddenError forbidden_error = 3;
|
|
449
|
-
NotFoundError not_found_error = 4;
|
|
450
|
-
ConflictingError conflicting_error = 5;
|
|
451
|
-
InternalServerError internal_server_error = 6;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
// Request to speak in community voice chat
|
|
456
|
-
message RequestToSpeakInCommunityVoiceChatPayload {
|
|
457
|
-
string community_id = 1;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
message RequestToSpeakInCommunityVoiceChatResponse {
|
|
461
|
-
message Ok {
|
|
462
|
-
string message = 1;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
oneof response {
|
|
466
|
-
Ok ok = 1;
|
|
467
|
-
InvalidRequest invalid_request = 2;
|
|
468
|
-
ForbiddenError forbidden_error = 3;
|
|
469
|
-
NotFoundError not_found_error = 4;
|
|
470
|
-
InternalServerError internal_server_error = 5;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
// Promote speaker in community voice chat
|
|
475
|
-
message PromoteSpeakerInCommunityVoiceChatPayload {
|
|
476
|
-
string community_id = 1;
|
|
477
|
-
string user_address = 2;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
message PromoteSpeakerInCommunityVoiceChatResponse {
|
|
481
|
-
message Ok {
|
|
482
|
-
string message = 1;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
oneof response {
|
|
486
|
-
Ok ok = 1;
|
|
487
|
-
InvalidRequest invalid_request = 2;
|
|
488
|
-
ForbiddenError forbidden_error = 3;
|
|
489
|
-
NotFoundError not_found_error = 4;
|
|
490
|
-
InternalServerError internal_server_error = 5;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
// Demote speaker in community voice chat
|
|
495
|
-
message DemoteSpeakerInCommunityVoiceChatPayload {
|
|
496
|
-
string community_id = 1;
|
|
497
|
-
string user_address = 2;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
message DemoteSpeakerInCommunityVoiceChatResponse {
|
|
501
|
-
message Ok {
|
|
502
|
-
string message = 1;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
oneof response {
|
|
506
|
-
Ok ok = 1;
|
|
507
|
-
InvalidRequest invalid_request = 2;
|
|
508
|
-
ForbiddenError forbidden_error = 3;
|
|
509
|
-
NotFoundError not_found_error = 4;
|
|
510
|
-
InternalServerError internal_server_error = 5;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
// Kick player from community voice chat
|
|
515
|
-
message KickPlayerFromCommunityVoiceChatPayload {
|
|
516
|
-
string community_id = 1;
|
|
517
|
-
string user_address = 2;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
message KickPlayerFromCommunityVoiceChatResponse {
|
|
521
|
-
message Ok {
|
|
522
|
-
string message = 1;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
oneof response {
|
|
526
|
-
Ok ok = 1;
|
|
527
|
-
InvalidRequest invalid_request = 2;
|
|
528
|
-
ForbiddenError forbidden_error = 3;
|
|
529
|
-
NotFoundError not_found_error = 4;
|
|
530
|
-
InternalServerError internal_server_error = 5;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
// End community voice chat (moderator/owner only)
|
|
535
|
-
message EndCommunityVoiceChatPayload {
|
|
536
|
-
string community_id = 1;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
message EndCommunityVoiceChatResponse {
|
|
540
|
-
message Ok {
|
|
541
|
-
string message = 1;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
oneof response {
|
|
545
|
-
Ok ok = 1;
|
|
546
|
-
InvalidRequest invalid_request = 2;
|
|
547
|
-
ForbiddenError forbidden_error = 3;
|
|
548
|
-
NotFoundError not_found_error = 4;
|
|
549
|
-
InternalServerError internal_server_error = 5;
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
enum CommunityVoiceChatStatus {
|
|
554
|
-
COMMUNITY_VOICE_CHAT_STARTED = 0;
|
|
555
|
-
COMMUNITY_VOICE_CHAT_ENDED = 1;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
// Community voice chat updates/events - 'started' and 'ended' status
|
|
559
|
-
message CommunityVoiceChatUpdate {
|
|
560
|
-
string community_id = 1;
|
|
561
|
-
int64 created_at = 2;
|
|
562
|
-
CommunityVoiceChatStatus status = 3; // 'started' or 'ended'
|
|
563
|
-
optional int64 ended_at = 4; // Only present when status is 'ended'
|
|
564
|
-
repeated string positions = 5; // Positions/coordinates associated with the community (world: false)
|
|
565
|
-
bool is_member = 6; // Whether the receiving user is a member of the community
|
|
566
|
-
string community_name = 7; // Name of the community
|
|
567
|
-
optional string community_image = 8; // Image/picture of the community
|
|
568
|
-
repeated string worlds = 9; // World names associated with the community (world: true)
|
|
569
|
-
}
|
|
570
|
-
|
|
571
137
|
service SocialService {
|
|
572
138
|
// Get the list of friends for the authenticated user
|
|
573
|
-
rpc GetFriends(GetFriendsPayload) returns (
|
|
139
|
+
rpc GetFriends(GetFriendsPayload) returns (PaginatedUsersResponse) {}
|
|
574
140
|
|
|
575
141
|
// Get the list of mutual friends between the authenticated user and the one in the parameter
|
|
576
|
-
rpc GetMutualFriends(GetMutualFriendsPayload) returns (
|
|
142
|
+
rpc GetMutualFriends(GetMutualFriendsPayload) returns (PaginatedUsersResponse) {}
|
|
577
143
|
|
|
578
144
|
// Get the pending friendship requests for the authenticated user
|
|
579
145
|
rpc GetPendingFriendshipRequests(GetFriendshipRequestsPayload) returns (PaginatedFriendshipRequestsResponse) {}
|
|
@@ -589,75 +155,5 @@ service SocialService {
|
|
|
589
155
|
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
|
|
590
156
|
returns (stream FriendshipUpdate) {}
|
|
591
157
|
|
|
592
|
-
// Get the friendship status between the authenticated user and the one in the parameter
|
|
593
158
|
rpc GetFriendshipStatus(GetFriendshipStatusPayload) returns (GetFriendshipStatusResponse) {}
|
|
594
|
-
|
|
595
|
-
// Subscribe to connectivity updates of friends: ONLINE, OFFLINE, AWAY
|
|
596
|
-
rpc SubscribeToFriendConnectivityUpdates(google.protobuf.Empty)
|
|
597
|
-
returns (stream FriendConnectivityUpdate) {}
|
|
598
|
-
|
|
599
|
-
rpc BlockUser(BlockUserPayload) returns (BlockUserResponse) {}
|
|
600
|
-
|
|
601
|
-
rpc UnblockUser(UnblockUserPayload) returns (UnblockUserResponse) {}
|
|
602
|
-
|
|
603
|
-
rpc GetBlockedUsers(GetBlockedUsersPayload) returns (GetBlockedUsersResponse) {}
|
|
604
|
-
|
|
605
|
-
rpc GetBlockingStatus(google.protobuf.Empty) returns (GetBlockingStatusResponse) {}
|
|
606
|
-
|
|
607
|
-
rpc SubscribeToBlockUpdates(google.protobuf.Empty) returns (stream BlockUpdate) {}
|
|
608
|
-
|
|
609
|
-
// Get all the social settings for the authenticated user
|
|
610
|
-
rpc GetSocialSettings(google.protobuf.Empty) returns (GetSocialSettingsResponse) {}
|
|
611
|
-
|
|
612
|
-
// Insert or update the social settings for the authenticated user
|
|
613
|
-
rpc UpsertSocialSettings(UpsertSocialSettingsPayload) returns (UpsertSocialSettingsResponse) {}
|
|
614
|
-
|
|
615
|
-
// Get the private messages privacy settings for the requested users
|
|
616
|
-
rpc GetPrivateMessagesSettings(GetPrivateMessagesSettingsPayload) returns (GetPrivateMessagesSettingsResponse) {}
|
|
617
|
-
|
|
618
|
-
// Subscribe to community member connectivity updates: ONLINE, OFFLINE
|
|
619
|
-
rpc SubscribeToCommunityMemberConnectivityUpdates(google.protobuf.Empty)
|
|
620
|
-
returns (stream CommunityMemberConnectivityUpdate) {}
|
|
621
|
-
|
|
622
|
-
// Start a private voice chat
|
|
623
|
-
rpc StartPrivateVoiceChat(StartPrivateVoiceChatPayload) returns (StartPrivateVoiceChatResponse) {}
|
|
624
|
-
|
|
625
|
-
// Accept a private voice chat
|
|
626
|
-
rpc AcceptPrivateVoiceChat(AcceptPrivateVoiceChatPayload) returns (AcceptPrivateVoiceChatResponse) {}
|
|
627
|
-
|
|
628
|
-
// Reject a private voice chat
|
|
629
|
-
rpc RejectPrivateVoiceChat(RejectPrivateVoiceChatPayload) returns (RejectPrivateVoiceChatResponse) {}
|
|
630
|
-
|
|
631
|
-
// End a private voice chat
|
|
632
|
-
rpc EndPrivateVoiceChat(EndPrivateVoiceChatPayload) returns (EndPrivateVoiceChatResponse) {}
|
|
633
|
-
|
|
634
|
-
// Get the incoming private voice chat request
|
|
635
|
-
rpc GetIncomingPrivateVoiceChatRequest(google.protobuf.Empty) returns (GetIncomingPrivateVoiceChatRequestResponse) {}
|
|
636
|
-
|
|
637
|
-
// Subscribe to private voice chat updates
|
|
638
|
-
rpc SubscribeToPrivateVoiceChatUpdates(google.protobuf.Empty) returns (stream PrivateVoiceChatUpdate) {}
|
|
639
|
-
|
|
640
|
-
// Start a community voice chat (moderator/owner only)
|
|
641
|
-
rpc StartCommunityVoiceChat(StartCommunityVoiceChatPayload) returns (StartCommunityVoiceChatResponse) {}
|
|
642
|
-
|
|
643
|
-
// Join a community voice chat
|
|
644
|
-
rpc JoinCommunityVoiceChat(JoinCommunityVoiceChatPayload) returns (JoinCommunityVoiceChatResponse) {}
|
|
645
|
-
|
|
646
|
-
// Request to speak in community voice chat
|
|
647
|
-
rpc RequestToSpeakInCommunityVoiceChat(RequestToSpeakInCommunityVoiceChatPayload) returns (RequestToSpeakInCommunityVoiceChatResponse) {}
|
|
648
|
-
|
|
649
|
-
// Promote speaker in community voice chat (moderator only)
|
|
650
|
-
rpc PromoteSpeakerInCommunityVoiceChat(PromoteSpeakerInCommunityVoiceChatPayload) returns (PromoteSpeakerInCommunityVoiceChatResponse) {}
|
|
651
|
-
|
|
652
|
-
// Demote speaker in community voice chat (moderator only)
|
|
653
|
-
rpc DemoteSpeakerInCommunityVoiceChat(DemoteSpeakerInCommunityVoiceChatPayload) returns (DemoteSpeakerInCommunityVoiceChatResponse) {}
|
|
654
|
-
|
|
655
|
-
// Kick player from community voice chat (moderator only)
|
|
656
|
-
rpc KickPlayerFromCommunityVoiceChat(KickPlayerFromCommunityVoiceChatPayload) returns (KickPlayerFromCommunityVoiceChatResponse) {}
|
|
657
|
-
|
|
658
|
-
// End community voice chat (moderator/owner only)
|
|
659
|
-
rpc EndCommunityVoiceChat(EndCommunityVoiceChatPayload) returns (EndCommunityVoiceChatResponse) {}
|
|
660
|
-
|
|
661
|
-
// Subscribe to community voice chat updates (only 'started' events)
|
|
662
|
-
rpc SubscribeToCommunityVoiceChatUpdates(google.protobuf.Empty) returns (stream CommunityVoiceChatUpdate) {}
|
|
663
159
|
}
|