@dcl/protocol 1.0.0-15736212864.commit-41e200e → 1.0.0-15970336800.commit-4d07dcd
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/common/texture.gen.d.ts +0 -18
- package/out-js/decentraland/common/texture.gen.js +4 -104
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -50
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1 -175
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +5 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +14 -2
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -2
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -19
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +0 -3
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -18
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
- package/out-js/decentraland/sdk/components/material.gen.js +2 -86
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
- package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
- package/out-js/decentraland/sdk/components/ui_transform.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/common/texture.gen.ts +4 -119
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -187
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +19 -1
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +0 -20
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -18
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
- package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +5630 -939
- package/package.json +4 -7
- package/proto/decentraland/common/texture.proto +1 -8
- package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -16
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +4 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
- package/proto/decentraland/sdk/components/avatar_shape.proto +0 -1
- package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -3
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
- package/proto/decentraland/sdk/components/light_source.proto +35 -0
- package/proto/decentraland/sdk/components/material.proto +1 -13
- package/proto/decentraland/sdk/components/mesh_collider.proto +1 -8
- package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
- package/proto/decentraland/sdk/components/ui_text.proto +0 -3
- package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
- package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +347 -9
- package/public/sdk-components.proto +0 -2
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
- package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
- package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
- package/proto/decentraland/sdk/components/global_light.proto +0 -22
- package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
- package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
- package/proto/decentraland/sdk/components/light.proto +0 -42
- package/proto/decentraland/sdk/components/spotlight.proto +0 -21
- package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
- package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
|
@@ -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
|
}
|
|
@@ -16,8 +16,6 @@ import public "decentraland/sdk/components/camera_mode.proto";
|
|
|
16
16
|
import public "decentraland/sdk/components/engine_info.proto";
|
|
17
17
|
import public "decentraland/sdk/components/gltf_container.proto";
|
|
18
18
|
import public "decentraland/sdk/components/gltf_container_loading_state.proto";
|
|
19
|
-
import public "decentraland/sdk/components/gltf_node.proto";
|
|
20
|
-
import public "decentraland/sdk/components/gltf_node_state.proto";
|
|
21
19
|
import public "decentraland/sdk/components/material.proto";
|
|
22
20
|
import public "decentraland/sdk/components/mesh_collider.proto";
|
|
23
21
|
import public "decentraland/sdk/components/mesh_renderer.proto";
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "decentraland.sdk.components";
|
|
3
|
-
/**
|
|
4
|
-
* a GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it.
|
|
5
|
-
* This component must be added to a direct child of an entity with a PBGltfContainer component, or
|
|
6
|
-
* to a direct child of another entity with a GltfNode component, and the referenced gltf node must be a descendent of the gltf node
|
|
7
|
-
* in the parent.
|
|
8
|
-
* The name must match the path of one of the nodes within the Gltf. These are available on the GltfContainerLoadingState component.
|
|
9
|
-
*
|
|
10
|
-
* The renderer will attach a PBGltfNodeState to the entity describing the state. Once the state is `GNS_READY`,
|
|
11
|
-
* - the `Transform` will be updated to match the position of the node within the gltf (relative to the gltf root, or the parent node),
|
|
12
|
-
* - a `MeshRenderer` with a GltfMesh mesh type will be added (if the gltf node has a mesh).
|
|
13
|
-
* - a `MeshCollider` with a GltfMesh mesh type will be added (if the gltf node has a collider).
|
|
14
|
-
* - a `Material` component including a GltfMaterial reference will be added (if the gltf node has a material).
|
|
15
|
-
*
|
|
16
|
-
* After creation, if an animation moves the node, the `Transform` will be updated.
|
|
17
|
-
*
|
|
18
|
-
* From the scene, you can modify various components to alter the gltf node:
|
|
19
|
-
* - modifying the `Transform` position/rotation/scale will move the node. The position is interpreted relative to the gltf root (or parent node),
|
|
20
|
-
* regardless of any intermediate gltf node hierarchy.
|
|
21
|
-
* If an animation is playing, the animation takes priority and the scene entity's position will be updated to match the animation.
|
|
22
|
-
* - `Visibility` can be added to hide or show the node and it's children in the gltf hierarchy.
|
|
23
|
-
* - `MeshRenderer` can be added/modified/removed to create/modify/remove a mesh on the node.
|
|
24
|
-
* - `MeshCollider` can be added/modified/removed to create/modify/remove a collider on the node.
|
|
25
|
-
* - `Material` can be added or modified to change the material properties. If the gltf node has a material, the original material will be
|
|
26
|
-
* used as a base, and any gltf features (e.g. occlusion maps) from the gtlf spec that the renderer supports but that are not exposed in the
|
|
27
|
-
* PBMaterial will be maintained.
|
|
28
|
-
*
|
|
29
|
-
* The scene can add additional entities as children to the gltf node, but structural modifications of the gltf are not possible:
|
|
30
|
-
* - changing the scene hierarchy will not change the gltf node hierarchy. Moving the entity out of the gltf will sever the link and
|
|
31
|
-
* change the state to `GNS_FAILED`.
|
|
32
|
-
* - deleting the scene entity will not delete the gltf node.
|
|
33
|
-
*
|
|
34
|
-
* Removing the GltfNode will revert any changes to the original gltf. If the GltfNode component is removed and the mesh/collider/material
|
|
35
|
-
* are not removed, this will result in a duplication of these components as the previously-linked entity will retain it's components and
|
|
36
|
-
* the gltf node will also be displayed.
|
|
37
|
-
*/
|
|
38
|
-
export interface PBGltfNode {
|
|
39
|
-
/** the path of the target node in the Gltf. */
|
|
40
|
-
path: string;
|
|
41
|
-
}
|
|
42
|
-
export declare namespace PBGltfNode {
|
|
43
|
-
function encode(message: PBGltfNode, writer?: _m0.Writer): _m0.Writer;
|
|
44
|
-
function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNode;
|
|
45
|
-
function fromJSON(object: any): PBGltfNode;
|
|
46
|
-
function toJSON(message: PBGltfNode): unknown;
|
|
47
|
-
function create<I extends Exact<DeepPartial<PBGltfNode>, I>>(base?: I): PBGltfNode;
|
|
48
|
-
function fromPartial<I extends Exact<DeepPartial<PBGltfNode>, I>>(object: I): PBGltfNode;
|
|
49
|
-
}
|
|
50
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
51
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
52
|
-
$case: string;
|
|
53
|
-
} ? {
|
|
54
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
55
|
-
} & {
|
|
56
|
-
$case: T["$case"];
|
|
57
|
-
} : T extends {} ? {
|
|
58
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
59
|
-
} : Partial<T>;
|
|
60
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
61
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
62
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
63
|
-
} & {
|
|
64
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
65
|
-
};
|
|
66
|
-
export {};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PBGltfNode = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
exports.protobufPackage = "decentraland.sdk.components";
|
|
10
|
-
function createBasePBGltfNode() {
|
|
11
|
-
return { path: "" };
|
|
12
|
-
}
|
|
13
|
-
var PBGltfNode;
|
|
14
|
-
(function (PBGltfNode) {
|
|
15
|
-
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
16
|
-
if (message.path !== "") {
|
|
17
|
-
writer.uint32(10).string(message.path);
|
|
18
|
-
}
|
|
19
|
-
return writer;
|
|
20
|
-
}
|
|
21
|
-
PBGltfNode.encode = encode;
|
|
22
|
-
function decode(input, length) {
|
|
23
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
-
const message = createBasePBGltfNode();
|
|
26
|
-
while (reader.pos < end) {
|
|
27
|
-
const tag = reader.uint32();
|
|
28
|
-
switch (tag >>> 3) {
|
|
29
|
-
case 1:
|
|
30
|
-
if (tag !== 10) {
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
message.path = reader.string();
|
|
34
|
-
continue;
|
|
35
|
-
}
|
|
36
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
reader.skipType(tag & 7);
|
|
40
|
-
}
|
|
41
|
-
return message;
|
|
42
|
-
}
|
|
43
|
-
PBGltfNode.decode = decode;
|
|
44
|
-
function fromJSON(object) {
|
|
45
|
-
return { path: isSet(object.path) ? String(object.path) : "" };
|
|
46
|
-
}
|
|
47
|
-
PBGltfNode.fromJSON = fromJSON;
|
|
48
|
-
function toJSON(message) {
|
|
49
|
-
const obj = {};
|
|
50
|
-
message.path !== undefined && (obj.path = message.path);
|
|
51
|
-
return obj;
|
|
52
|
-
}
|
|
53
|
-
PBGltfNode.toJSON = toJSON;
|
|
54
|
-
function create(base) {
|
|
55
|
-
return PBGltfNode.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
56
|
-
}
|
|
57
|
-
PBGltfNode.create = create;
|
|
58
|
-
function fromPartial(object) {
|
|
59
|
-
var _a;
|
|
60
|
-
const message = createBasePBGltfNode();
|
|
61
|
-
message.path = (_a = object.path) !== null && _a !== void 0 ? _a : "";
|
|
62
|
-
return message;
|
|
63
|
-
}
|
|
64
|
-
PBGltfNode.fromPartial = fromPartial;
|
|
65
|
-
})(PBGltfNode || (exports.PBGltfNode = PBGltfNode = {}));
|
|
66
|
-
function isSet(value) {
|
|
67
|
-
return value !== null && value !== undefined;
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=gltf_node.gen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gltf_node.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/gltf_node.gen.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "decentraland.sdk.components";
|
|
3
|
-
export declare enum GltfNodeStateValue {
|
|
4
|
-
GNSV_PENDING = 0,
|
|
5
|
-
GNSV_FAILED = 1,
|
|
6
|
-
GNSV_READY = 2,
|
|
7
|
-
UNRECOGNIZED = -1
|
|
8
|
-
}
|
|
9
|
-
export declare function gltfNodeStateValueFromJSON(object: any): GltfNodeStateValue;
|
|
10
|
-
export declare function gltfNodeStateValueToJSON(object: GltfNodeStateValue): string;
|
|
11
|
-
/**
|
|
12
|
-
* The state of a linked gltf node.
|
|
13
|
-
* If the state is GNSV_FAILED, the renderer may describe the failure in the error string.
|
|
14
|
-
*/
|
|
15
|
-
export interface PBGltfNodeState {
|
|
16
|
-
state: GltfNodeStateValue;
|
|
17
|
-
error?: string | undefined;
|
|
18
|
-
}
|
|
19
|
-
export declare namespace PBGltfNodeState {
|
|
20
|
-
function encode(message: PBGltfNodeState, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
-
function decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfNodeState;
|
|
22
|
-
function fromJSON(object: any): PBGltfNodeState;
|
|
23
|
-
function toJSON(message: PBGltfNodeState): unknown;
|
|
24
|
-
function create<I extends Exact<DeepPartial<PBGltfNodeState>, I>>(base?: I): PBGltfNodeState;
|
|
25
|
-
function fromPartial<I extends Exact<DeepPartial<PBGltfNodeState>, I>>(object: I): PBGltfNodeState;
|
|
26
|
-
}
|
|
27
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
29
|
-
$case: string;
|
|
30
|
-
} ? {
|
|
31
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
32
|
-
} & {
|
|
33
|
-
$case: T["$case"];
|
|
34
|
-
} : T extends {} ? {
|
|
35
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
36
|
-
} : Partial<T>;
|
|
37
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
38
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
39
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
40
|
-
} & {
|
|
41
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
42
|
-
};
|
|
43
|
-
export {};
|