@dcl/protocol 1.0.0-16571562775.commit-b0f1f6b → 1.0.0-16670787325.commit-554f0f2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-16571562775.commit-b0f1f6b",
3
+ "version": "1.0.0-16670787325.commit-554f0f2",
4
4
  "description": "",
5
5
  "repository": "decentraland/protocol.git",
6
6
  "homepage": "https://github.com/decentraland/protocol#readme",
@@ -30,5 +30,5 @@
30
30
  "out-js",
31
31
  "public"
32
32
  ],
33
- "commit": "b0f1f6b9d357e4df1417888ff35a2501bf13065c"
33
+ "commit": "554f0f200a6a4ff8021f92e5a8e621f21d6e5bc7"
34
34
  }
@@ -0,0 +1,30 @@
1
+ syntax = "proto3";
2
+ package decentraland.social_service;
3
+
4
+ message InvalidFriendshipAction {
5
+ optional string message = 1;
6
+ }
7
+
8
+ message InternalServerError {
9
+ optional string message = 1;
10
+ }
11
+
12
+ message InvalidRequest {
13
+ optional string message = 1;
14
+ }
15
+
16
+ message ProfileNotFound {
17
+ optional string message = 1;
18
+ }
19
+
20
+ message ConflictingError {
21
+ optional string message = 1;
22
+ }
23
+
24
+ message ForbiddenError {
25
+ optional string message = 1;
26
+ }
27
+
28
+ message NotFoundError {
29
+ optional string message = 1;
30
+ }
@@ -2,29 +2,7 @@ syntax = "proto3";
2
2
  package decentraland.social_service.v2;
3
3
 
4
4
  import "google/protobuf/empty.proto";
5
-
6
- // Errors
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
- }
5
+ import "decentraland/social_service/errors.proto";
28
6
 
29
7
  // Types
30
8
  message User { string address = 1; }
@@ -127,6 +105,7 @@ message UpsertFriendshipResponse {
127
105
  Accepted accepted = 1;
128
106
  InvalidFriendshipAction invalid_friendship_action = 2;
129
107
  InternalServerError internal_server_error = 3;
108
+ InvalidRequest invalid_request = 4;
130
109
  }
131
110
  }
132
111
 
@@ -182,6 +161,7 @@ message GetFriendshipStatusResponse {
182
161
  oneof response {
183
162
  Ok accepted = 1;
184
163
  InternalServerError internal_server_error = 2;
164
+ InvalidRequest invalid_request = 3;
185
165
  }
186
166
  }
187
167
 
@@ -556,13 +536,17 @@ enum CommunityVoiceChatStatus {
556
536
  COMMUNITY_VOICE_CHAT_ENDED = 1;
557
537
  }
558
538
 
559
- // Community voice chat updates/events - 'started' and 'ended' status
539
+ // Community voice chat updates/events - 'started' and 'ended' status
560
540
  message CommunityVoiceChatUpdate {
561
541
  string community_id = 1;
562
- string voice_chat_id = 2;
563
- int64 created_at = 3;
564
- CommunityVoiceChatStatus status = 4; // 'started' or 'ended'
565
- optional int64 ended_at = 5; // Only present when status is 'ended'
542
+ int64 created_at = 2;
543
+ CommunityVoiceChatStatus status = 3; // 'started' or 'ended'
544
+ optional int64 ended_at = 4; // Only present when status is 'ended'
545
+ repeated string positions = 5; // Positions/coordinates associated with the community (world: false)
546
+ bool is_member = 6; // Whether the receiving user is a member of the community
547
+ string community_name = 7; // Name of the community
548
+ optional string community_image = 8; // Image/picture of the community
549
+ repeated string worlds = 9; // World names associated with the community (world: true)
566
550
  }
567
551
 
568
552
  service SocialService {
@@ -0,0 +1,51 @@
1
+ syntax = "proto3";
2
+ package decentraland.social_service.v3;
3
+
4
+ import "decentraland/social_service/errors.proto";
5
+
6
+ // Common types
7
+ message User { string address = 1; }
8
+
9
+ message Profile {
10
+ string name = 1;
11
+ bool has_claimed_name = 2;
12
+ string profile_picture_url = 3;
13
+ }
14
+
15
+ message Friend {
16
+ string address = 1;
17
+ optional Profile profile = 2;
18
+ }
19
+
20
+ message Pagination {
21
+ int32 limit = 1;
22
+ int32 offset = 2;
23
+ }
24
+
25
+ message PaginatedResponse {
26
+ int32 total = 1;
27
+ int32 page = 2;
28
+ }
29
+
30
+ // Get mutual friends
31
+ message GetMutualFriendsPayload {
32
+ User user = 1;
33
+ optional Pagination pagination = 2;
34
+ }
35
+
36
+ message GetMutualFriendsResponse {
37
+ message Ok {
38
+ repeated Friend friends = 1;
39
+ PaginatedResponse pagination_data = 2;
40
+ }
41
+
42
+ oneof response {
43
+ Ok ok = 1;
44
+ InternalServerError internal_server_error = 2;
45
+ InvalidRequest invalid_request = 3;
46
+ }
47
+ }
48
+
49
+ service SocialService {
50
+ rpc GetMutualFriends(GetMutualFriendsPayload) returns (GetMutualFriendsResponse) {}
51
+ }