@dcl/protocol 1.0.0-14033250574.commit-0daf6ca → 1.0.0-14129719212.commit-3bf30a3
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/social_service/v2/social_service_v2.gen.d.ts +170 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +1055 -181
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +1126 -135
- package/package.json +2 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +70 -0
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-14129719212.commit-3bf30a3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"out-js",
|
|
30
30
|
"public"
|
|
31
31
|
],
|
|
32
|
-
"commit": "
|
|
32
|
+
"commit": "3bf30a394732d4c5a8ae6471c6218b41a1d2bb93"
|
|
33
33
|
}
|
|
@@ -210,6 +210,67 @@ message UnblockUserResponse {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
enum PrivateMessagePrivacySetting {
|
|
214
|
+
ALL = 0;
|
|
215
|
+
ONLY_FRIENDS = 1;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
enum BlockedUsersMessagesVisibilitySetting {
|
|
219
|
+
SHOW_MESSAGES = 0;
|
|
220
|
+
DO_NOT_SHOW_MESSAGES = 1;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
message SocialSettings {
|
|
224
|
+
PrivateMessagePrivacySetting private_messages_privacy = 1;
|
|
225
|
+
BlockedUsersMessagesVisibilitySetting blocked_users_messages_visibility = 2;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
message GetSocialSettingsResponse {
|
|
229
|
+
message Ok {
|
|
230
|
+
SocialSettings settings = 1;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
oneof response {
|
|
234
|
+
Ok ok = 1;
|
|
235
|
+
InternalServerError internal_server_error = 2;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
message UpsertSocialSettingsPayload {
|
|
240
|
+
optional PrivateMessagePrivacySetting private_messages_privacy = 1;
|
|
241
|
+
optional BlockedUsersMessagesVisibilitySetting blocked_users_messages_visibility = 2;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
message UpsertSocialSettingsResponse {
|
|
245
|
+
oneof response {
|
|
246
|
+
SocialSettings ok = 1;
|
|
247
|
+
InternalServerError internal_server_error = 2;
|
|
248
|
+
InvalidRequest invalid_request = 3;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
message GetPrivateMessagesSettingsPayload {
|
|
253
|
+
repeated User user = 1;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
message GetPrivateMessagesSettingsResponse {
|
|
257
|
+
message PrivateMessagesSettings {
|
|
258
|
+
User user = 1;
|
|
259
|
+
PrivateMessagePrivacySetting private_messages_privacy = 2;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
message Ok {
|
|
263
|
+
repeated PrivateMessagesSettings settings = 1;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
oneof response {
|
|
267
|
+
Ok ok = 1;
|
|
268
|
+
InternalServerError internal_server_error = 2;
|
|
269
|
+
InvalidRequest invalid_request = 3;
|
|
270
|
+
ProfileNotFound profile_not_found = 4;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
213
274
|
message GetBlockedUsersPayload {
|
|
214
275
|
optional Pagination pagination = 1;
|
|
215
276
|
}
|
|
@@ -266,4 +327,13 @@ service SocialService {
|
|
|
266
327
|
rpc GetBlockingStatus(google.protobuf.Empty) returns (GetBlockingStatusResponse) {}
|
|
267
328
|
|
|
268
329
|
rpc SubscribeToBlockUpdates(google.protobuf.Empty) returns (stream BlockUpdate) {}
|
|
330
|
+
|
|
331
|
+
// Get all the social settings for the authenticated user
|
|
332
|
+
rpc GetSocialSettings(google.protobuf.Empty) returns (GetSocialSettingsResponse) {}
|
|
333
|
+
|
|
334
|
+
// Insert or update the social settings for the authenticated user
|
|
335
|
+
rpc UpsertSocialSettings(UpsertSocialSettingsPayload) returns (UpsertSocialSettingsResponse) {}
|
|
336
|
+
|
|
337
|
+
// Get the private messages privacy settings for the requested users
|
|
338
|
+
rpc GetPrivateMessagesSettings(GetPrivateMessagesSettingsPayload) returns (GetPrivateMessagesSettingsResponse) {}
|
|
269
339
|
}
|