@dcl/protocol 1.0.0-12815778152.commit-3614ead → 1.0.0-12891435340.commit-b3fea33
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/apis/communications_controller.gen.d.ts +16 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +103 -4
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
- package/out-js/decentraland/{social/friendships/friendships.gen.d.ts → social_service/v1/social_service_v1.gen.d.ts} +3 -2
- package/out-js/decentraland/{social/friendships/friendships.gen.js → social_service/v1/social_service_v1.gen.js} +3 -3
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
- package/out-js/decentraland/social_service/{v3/social_service_v3.gen.d.ts → v2/social_service_v2.gen.d.ts} +2 -2
- package/out-js/decentraland/social_service/{v3/social_service_v3.gen.js → v2/social_service_v2.gen.js} +3 -3
- package/out-js/decentraland/social_service/{v3/social_service_v3.gen.js.map → v2/social_service_v2.gen.js.map} +1 -1
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +109 -2
- package/out-ts/decentraland/{social/friendships/friendships.gen.ts → social_service/v1/social_service_v1.gen.ts} +3 -2
- package/out-ts/decentraland/social_service/{v3/social_service_v3.gen.ts → v2/social_service_v2.gen.ts} +2 -2
- package/package.json +2 -2
- package/proto/decentraland/kernel/apis/communications_controller.proto +6 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +84 -37
- package/public/social.proto +3 -1
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +0 -1
- package/out-js/decentraland/social_service_v2/social_service.gen.d.ts +0 -358
- package/out-js/decentraland/social_service_v2/social_service.gen.js +0 -1554
- package/out-js/decentraland/social_service_v2/social_service.gen.js.map +0 -1
- package/out-js/social_service.gen.d.ts +0 -1
- package/out-js/social_service.gen.js +0 -6
- package/out-js/social_service.gen.js.map +0 -1
- package/out-js/social_service_v2.gen.d.ts +0 -1
- package/out-js/social_service_v2.gen.js +0 -6
- package/out-js/social_service_v2.gen.js.map +0 -1
- package/out-ts/decentraland/social_service_v2/social_service.gen.ts +0 -1710
- package/out-ts/social_service.gen.ts +0 -3
- package/out-ts/social_service_v2.gen.ts +0 -3
- package/proto/decentraland/social/friendships/friendships.proto +0 -162
- package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -159
- package/proto/decentraland/social_service_v2/social_service.proto +0 -112
- package/public/social_service.proto +0 -4
- package/public/social_service_v2.proto +0 -4
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package decentraland.social.friendships;
|
|
3
|
-
|
|
4
|
-
// This message is a response that is sent from the server to the client
|
|
5
|
-
message FriendshipEventResponse {
|
|
6
|
-
oneof body {
|
|
7
|
-
RequestResponse request = 1;
|
|
8
|
-
AcceptResponse accept = 2;
|
|
9
|
-
RejectResponse reject = 4;
|
|
10
|
-
DeleteResponse delete = 5;
|
|
11
|
-
CancelResponse cancel = 6;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
message FriendshipEventResponses {
|
|
16
|
-
repeated FriendshipEventResponse responses = 1;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
message FriendshipEventPayload {
|
|
20
|
-
oneof body {
|
|
21
|
-
RequestPayload request = 1;
|
|
22
|
-
AcceptPayload accept = 2;
|
|
23
|
-
RejectPayload reject = 4;
|
|
24
|
-
DeletePayload delete = 5;
|
|
25
|
-
CancelPayload cancel = 6;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
message User { string address = 1; }
|
|
30
|
-
|
|
31
|
-
message Users { repeated User users = 1; }
|
|
32
|
-
|
|
33
|
-
message RequestResponse {
|
|
34
|
-
User user = 1;
|
|
35
|
-
int64 created_at = 2;
|
|
36
|
-
optional string message = 3;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
message RequestPayload {
|
|
40
|
-
User user = 1;
|
|
41
|
-
optional string message = 3;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message Requests {
|
|
45
|
-
int64 total = 1; // Total amount of friendship requests
|
|
46
|
-
repeated RequestResponse items = 2;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
message RequestEvents {
|
|
50
|
-
Requests outgoing = 1; // Requests the authed user have sent to users
|
|
51
|
-
Requests incoming = 2; // Requests the authed user have received from users
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
message AcceptResponse { User user = 1; }
|
|
55
|
-
|
|
56
|
-
message AcceptPayload { User user = 1; }
|
|
57
|
-
|
|
58
|
-
message RejectResponse { User user = 1; }
|
|
59
|
-
|
|
60
|
-
message RejectPayload { User user = 1; }
|
|
61
|
-
|
|
62
|
-
message DeleteResponse { User user = 1; }
|
|
63
|
-
|
|
64
|
-
message DeletePayload { User user = 1; }
|
|
65
|
-
|
|
66
|
-
message CancelResponse { User user = 1; }
|
|
67
|
-
|
|
68
|
-
message CancelPayload { User user = 1; }
|
|
69
|
-
|
|
70
|
-
message UpdateFriendshipPayload {
|
|
71
|
-
FriendshipEventPayload event = 1;
|
|
72
|
-
// For internal use only, subject to change.
|
|
73
|
-
optional Payload auth_token = 2;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message MutualFriendsPayload {
|
|
77
|
-
User user = 1;
|
|
78
|
-
// For internal use only, subject to change.
|
|
79
|
-
optional Payload auth_token = 2;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
message Payload {
|
|
83
|
-
// For internal use only, subject to change.
|
|
84
|
-
optional string synapse_token = 1;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
message BadRequestError {
|
|
88
|
-
string message = 1;
|
|
89
|
-
}
|
|
90
|
-
message UnauthorizedError {
|
|
91
|
-
string message = 1;
|
|
92
|
-
}
|
|
93
|
-
message ForbiddenError {
|
|
94
|
-
string message = 1;
|
|
95
|
-
}
|
|
96
|
-
message TooManyRequestsError {
|
|
97
|
-
string message = 1;
|
|
98
|
-
}
|
|
99
|
-
message InternalServerError {
|
|
100
|
-
string message = 1;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
message UsersResponse {
|
|
104
|
-
oneof response {
|
|
105
|
-
Users users = 1;
|
|
106
|
-
InternalServerError internal_server_error = 2;
|
|
107
|
-
UnauthorizedError unauthorized_error = 3;
|
|
108
|
-
ForbiddenError forbidden_error = 4;
|
|
109
|
-
TooManyRequestsError too_many_requests_error = 5;
|
|
110
|
-
BadRequestError bad_request_error = 6;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
message RequestEventsResponse {
|
|
115
|
-
oneof response {
|
|
116
|
-
RequestEvents events = 1;
|
|
117
|
-
InternalServerError internal_server_error = 2;
|
|
118
|
-
UnauthorizedError unauthorized_error = 3;
|
|
119
|
-
ForbiddenError forbidden_error = 4;
|
|
120
|
-
TooManyRequestsError too_many_requests_error = 5;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
message UpdateFriendshipResponse {
|
|
125
|
-
oneof response {
|
|
126
|
-
FriendshipEventResponse event = 1;
|
|
127
|
-
InternalServerError internal_server_error = 2;
|
|
128
|
-
UnauthorizedError unauthorized_error = 3;
|
|
129
|
-
ForbiddenError forbidden_error = 4;
|
|
130
|
-
TooManyRequestsError too_many_requests_error = 5;
|
|
131
|
-
BadRequestError bad_request_error = 6;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
message SubscribeFriendshipEventsUpdatesResponse {
|
|
136
|
-
oneof response {
|
|
137
|
-
FriendshipEventResponses events = 1;
|
|
138
|
-
InternalServerError internal_server_error = 2;
|
|
139
|
-
UnauthorizedError unauthorized_error = 3;
|
|
140
|
-
ForbiddenError forbidden_error = 4;
|
|
141
|
-
TooManyRequestsError too_many_requests_error = 5;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
service FriendshipsService {
|
|
146
|
-
// Get the list of friends for the authenticated user
|
|
147
|
-
rpc GetFriends(Payload) returns (stream UsersResponse) {}
|
|
148
|
-
|
|
149
|
-
// Get the list of mutual friends between the authenticated user and the one in the parameter
|
|
150
|
-
rpc GetMutualFriends(MutualFriendsPayload) returns (stream UsersResponse) {}
|
|
151
|
-
|
|
152
|
-
// Get the list of request events for the authenticated user
|
|
153
|
-
rpc GetRequestEvents(Payload) returns (RequestEventsResponse) {}
|
|
154
|
-
|
|
155
|
-
// Update friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
|
|
156
|
-
rpc UpdateFriendshipEvent(UpdateFriendshipPayload)
|
|
157
|
-
returns (UpdateFriendshipResponse) {}
|
|
158
|
-
|
|
159
|
-
// Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
|
|
160
|
-
rpc SubscribeFriendshipEventsUpdates(Payload)
|
|
161
|
-
returns (stream SubscribeFriendshipEventsUpdatesResponse) {}
|
|
162
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package decentraland.social_service.v3;
|
|
3
|
-
|
|
4
|
-
import "google/protobuf/empty.proto";
|
|
5
|
-
|
|
6
|
-
// Errors
|
|
7
|
-
message InvalidFriendshipAction {}
|
|
8
|
-
message InternalServerError {}
|
|
9
|
-
|
|
10
|
-
// Types
|
|
11
|
-
message User { string address = 1; }
|
|
12
|
-
|
|
13
|
-
message Pagination {
|
|
14
|
-
int32 limit = 1;
|
|
15
|
-
int32 offset = 2;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
message FriendshipRequestResponse {
|
|
19
|
-
User user = 1;
|
|
20
|
-
int64 created_at = 2;
|
|
21
|
-
optional string message = 3;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
message FriendshipRequests {
|
|
25
|
-
repeated FriendshipRequestResponse requests = 1;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
enum ConnectivityStatus {
|
|
29
|
-
ONLINE = 0;
|
|
30
|
-
OFFLINE = 1;
|
|
31
|
-
AWAY = 2;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
message GetFriendsPayload {
|
|
35
|
-
optional Pagination pagination = 1;
|
|
36
|
-
optional ConnectivityStatus status = 2;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
message GetFriendshipRequestsPayload {
|
|
40
|
-
optional Pagination pagination = 1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
message UpsertFriendshipPayload {
|
|
44
|
-
message RequestPayload {
|
|
45
|
-
User user = 1;
|
|
46
|
-
optional string message = 3;
|
|
47
|
-
}
|
|
48
|
-
message AcceptPayload { User user = 1; }
|
|
49
|
-
message RejectPayload { User user = 1; }
|
|
50
|
-
message DeletePayload { User user = 1; }
|
|
51
|
-
message CancelPayload { User user = 1; }
|
|
52
|
-
|
|
53
|
-
oneof action {
|
|
54
|
-
RequestPayload request = 1;
|
|
55
|
-
AcceptPayload accept = 2;
|
|
56
|
-
RejectPayload reject = 4;
|
|
57
|
-
DeletePayload delete = 5;
|
|
58
|
-
CancelPayload cancel = 6;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
message GetMutualFriendsPayload {
|
|
63
|
-
User user = 1;
|
|
64
|
-
optional Pagination pagination = 2;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
message PaginatedResponse {
|
|
68
|
-
int32 total = 1;
|
|
69
|
-
int32 page = 2;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
message PaginatedUsersResponse {
|
|
73
|
-
repeated User users = 1;
|
|
74
|
-
PaginatedResponse pagination_data = 2;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
message PaginatedFriendshipRequestsResponse {
|
|
78
|
-
oneof response {
|
|
79
|
-
FriendshipRequests requests = 1;
|
|
80
|
-
InternalServerError internal_server_error = 2;
|
|
81
|
-
}
|
|
82
|
-
optional PaginatedResponse pagination_data = 3;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
message UpsertFriendshipResponse {
|
|
86
|
-
message Accepted {
|
|
87
|
-
string id = 1;
|
|
88
|
-
int64 created_at = 2;
|
|
89
|
-
}
|
|
90
|
-
oneof response {
|
|
91
|
-
Accepted accepted = 1;
|
|
92
|
-
InvalidFriendshipAction invalid_friendship_action = 2;
|
|
93
|
-
InternalServerError internal_server_error = 3;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
message FriendshipUpdate {
|
|
98
|
-
message AcceptResponse { User user = 1; }
|
|
99
|
-
message RejectResponse { User user = 1; }
|
|
100
|
-
message DeleteResponse { User user = 1; }
|
|
101
|
-
message CancelResponse { User user = 1; }
|
|
102
|
-
|
|
103
|
-
oneof update {
|
|
104
|
-
FriendshipRequestResponse request = 1;
|
|
105
|
-
AcceptResponse accept = 2;
|
|
106
|
-
RejectResponse reject = 3;
|
|
107
|
-
DeleteResponse delete = 4;
|
|
108
|
-
CancelResponse cancel = 5;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
message GetFriendshipStatusPayload {
|
|
113
|
-
User user = 1;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
enum FriendshipStatus {
|
|
117
|
-
REQUEST_SENT = 0;
|
|
118
|
-
REQUEST_RECEIVED = 1;
|
|
119
|
-
CANCELED = 2;
|
|
120
|
-
ACCEPTED = 3;
|
|
121
|
-
REJECTED = 4;
|
|
122
|
-
DELETED = 5;
|
|
123
|
-
BLOCKED = 6;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
message GetFriendshipStatusResponse {
|
|
127
|
-
message Ok {
|
|
128
|
-
FriendshipStatus status = 1;
|
|
129
|
-
optional string message = 2;
|
|
130
|
-
}
|
|
131
|
-
oneof response {
|
|
132
|
-
Ok accepted = 1;
|
|
133
|
-
InternalServerError internal_server_error = 2;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
service SocialService {
|
|
138
|
-
// Get the list of friends for the authenticated user
|
|
139
|
-
rpc GetFriends(GetFriendsPayload) returns (PaginatedUsersResponse) {}
|
|
140
|
-
|
|
141
|
-
// Get the list of mutual friends between the authenticated user and the one in the parameter
|
|
142
|
-
rpc GetMutualFriends(GetMutualFriendsPayload) returns (PaginatedUsersResponse) {}
|
|
143
|
-
|
|
144
|
-
// Get the pending friendship requests for the authenticated user
|
|
145
|
-
rpc GetPendingFriendshipRequests(GetFriendshipRequestsPayload) returns (PaginatedFriendshipRequestsResponse) {}
|
|
146
|
-
|
|
147
|
-
// Get the sent friendship requests for the authenticated user
|
|
148
|
-
rpc GetSentFriendshipRequests(GetFriendshipRequestsPayload) returns (PaginatedFriendshipRequestsResponse) {}
|
|
149
|
-
|
|
150
|
-
// Create or update friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
|
|
151
|
-
rpc UpsertFriendship(UpsertFriendshipPayload)
|
|
152
|
-
returns (UpsertFriendshipResponse) {}
|
|
153
|
-
|
|
154
|
-
// Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
|
|
155
|
-
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
|
|
156
|
-
returns (stream FriendshipUpdate) {}
|
|
157
|
-
|
|
158
|
-
rpc GetFriendshipStatus(GetFriendshipStatusPayload) returns (GetFriendshipStatusResponse) {}
|
|
159
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
package decentraland.social_service_v2;
|
|
3
|
-
|
|
4
|
-
import "google/protobuf/empty.proto";
|
|
5
|
-
|
|
6
|
-
// Errors
|
|
7
|
-
|
|
8
|
-
message InvalidFriendshipAction {}
|
|
9
|
-
|
|
10
|
-
message InternalServerError {}
|
|
11
|
-
|
|
12
|
-
// Types
|
|
13
|
-
|
|
14
|
-
message User { string address = 1; }
|
|
15
|
-
|
|
16
|
-
message RequestResponse {
|
|
17
|
-
User user = 1;
|
|
18
|
-
int64 created_at = 2;
|
|
19
|
-
optional string message = 3;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
message RequestPayload {
|
|
23
|
-
User user = 1;
|
|
24
|
-
optional string message = 3;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
message Requests {
|
|
28
|
-
repeated RequestResponse requests = 1;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
message AcceptResponse { User user = 1; }
|
|
32
|
-
|
|
33
|
-
message AcceptPayload { User user = 1; }
|
|
34
|
-
|
|
35
|
-
message RejectResponse { User user = 1; }
|
|
36
|
-
|
|
37
|
-
message RejectPayload { User user = 1; }
|
|
38
|
-
|
|
39
|
-
message DeleteResponse { User user = 1; }
|
|
40
|
-
|
|
41
|
-
message DeletePayload { User user = 1; }
|
|
42
|
-
|
|
43
|
-
message CancelResponse { User user = 1; }
|
|
44
|
-
|
|
45
|
-
message CancelPayload { User user = 1; }
|
|
46
|
-
|
|
47
|
-
message UpsertFriendshipPayload {
|
|
48
|
-
oneof action {
|
|
49
|
-
RequestPayload request = 1;
|
|
50
|
-
AcceptPayload accept = 2;
|
|
51
|
-
RejectPayload reject = 4;
|
|
52
|
-
DeletePayload delete = 5;
|
|
53
|
-
CancelPayload cancel = 6;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message MutualFriendsPayload {
|
|
58
|
-
User user = 1;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message UsersResponse {
|
|
62
|
-
repeated User users = 1;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
message FriendshipRequestsResponse {
|
|
66
|
-
oneof response {
|
|
67
|
-
Requests requests = 1;
|
|
68
|
-
InternalServerError internal_server_error = 2;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
message UpsertFriendshipResponse {
|
|
73
|
-
message Accepted {}
|
|
74
|
-
oneof response {
|
|
75
|
-
Accepted accepted = 1;
|
|
76
|
-
InvalidFriendshipAction invalid_friendship_action = 2;
|
|
77
|
-
InternalServerError internal_server_error = 3;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
message FriendshipUpdate {
|
|
82
|
-
oneof update {
|
|
83
|
-
RequestResponse request = 1;
|
|
84
|
-
AcceptResponse accept = 2;
|
|
85
|
-
RejectResponse reject = 4;
|
|
86
|
-
DeleteResponse delete = 5;
|
|
87
|
-
CancelResponse cancel = 6;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// @deprecated
|
|
92
|
-
service SocialService {
|
|
93
|
-
// Get the list of friends for the authenticated user
|
|
94
|
-
rpc GetFriends(google.protobuf.Empty) returns (stream UsersResponse) {}
|
|
95
|
-
|
|
96
|
-
// Get the list of mutual friends between the authenticated user and the one in the parameter
|
|
97
|
-
rpc GetMutualFriends(MutualFriendsPayload) returns (stream UsersResponse) {}
|
|
98
|
-
|
|
99
|
-
// Get the pending friendship requests for the authenticated user
|
|
100
|
-
rpc GetPendingFriendshipRequests(google.protobuf.Empty) returns (FriendshipRequestsResponse) {}
|
|
101
|
-
|
|
102
|
-
// Get the sent friendship requests for the authenticated user
|
|
103
|
-
rpc GetSentFriendshipRequests(google.protobuf.Empty) returns (FriendshipRequestsResponse) {}
|
|
104
|
-
|
|
105
|
-
// Create or update friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
|
|
106
|
-
rpc UpsertFriendship(UpsertFriendshipPayload)
|
|
107
|
-
returns (UpsertFriendshipResponse) {}
|
|
108
|
-
|
|
109
|
-
// Subscribe to updates of friendship status: REQUEST, ACCEPT, REJECT, CANCEL, DELETE
|
|
110
|
-
rpc SubscribeToFriendshipUpdates(google.protobuf.Empty)
|
|
111
|
-
returns (stream FriendshipUpdate) {}
|
|
112
|
-
}
|