@dcl/protocol 1.0.0-3678623066.commit-a335c0a → 1.0.0-3732507470.commit-55d3d8c

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.
@@ -0,0 +1,100 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.renderer.kernel_services;
4
+
5
+ import "decentraland/renderer/common/friend_request_common.proto";
6
+
7
+ // Get friend requests
8
+ message GetFriendRequestsPayload {
9
+ int32 sent_limit = 1; // Max amount of entries of sent friend requests to request
10
+ int32 sent_skip = 2; // The amount of entries of sent friend requests to skip
11
+ int32 received_limit = 3; // Max amount of entries of received friend requests to request
12
+ int32 received_skip = 4; // The amount of entries of received friend requests to skip
13
+ }
14
+
15
+ message GetFriendRequestsReplyOk {
16
+ repeated decentraland.renderer.common.FriendRequestInfo requested_to = 1; // Friend request info on the requests you've sent to users
17
+ repeated decentraland.renderer.common.FriendRequestInfo requested_from = 2; // Friend request info on the requests you've received from users
18
+ int32 total_received_friend_requests = 3; // Total amount of friend requests received
19
+ int32 total_sent_friend_requests = 4; // Total amount of friend requests sent
20
+ }
21
+
22
+ message GetFriendRequestsReply {
23
+ oneof message {
24
+ GetFriendRequestsReplyOk reply = 1;
25
+ decentraland.renderer.common.FriendshipErrorCode error = 2;
26
+ }
27
+ }
28
+
29
+ // Send friend request
30
+ message SendFriendRequestPayload {
31
+ string user_id = 1;
32
+ string message_body = 2;
33
+ }
34
+
35
+ message SendFriendRequestReplyOk {
36
+ decentraland.renderer.common.FriendRequestInfo friend_request = 1; // Friend request info on the request you've sent to a user
37
+ }
38
+
39
+ message SendFriendRequestReply {
40
+ oneof message {
41
+ SendFriendRequestReplyOk reply = 1;
42
+ decentraland.renderer.common.FriendshipErrorCode error = 2;
43
+ }
44
+ }
45
+
46
+ // Cancel friend request
47
+ message CancelFriendRequestPayload {
48
+ string friend_request_id = 1;
49
+ }
50
+
51
+ message CancelFriendRequestReplyOk {
52
+ decentraland.renderer.common.FriendRequestInfo friend_request = 1; // Friend request info on the request you've canceled
53
+ }
54
+
55
+ message CancelFriendRequestReply {
56
+ oneof message {
57
+ CancelFriendRequestReplyOk reply = 1;
58
+ decentraland.renderer.common.FriendshipErrorCode error = 2;
59
+ }
60
+ }
61
+
62
+ // Accept friend request
63
+ message AcceptFriendRequestPayload {
64
+ string friend_request_id = 1;
65
+ }
66
+
67
+ message AcceptFriendRequestReplyOk {
68
+ decentraland.renderer.common.FriendRequestInfo friend_request = 1;
69
+ }
70
+
71
+ message AcceptFriendRequestReply {
72
+ oneof message {
73
+ AcceptFriendRequestReplyOk reply = 1;
74
+ decentraland.renderer.common.FriendshipErrorCode error = 2;
75
+ }
76
+ }
77
+
78
+ // Reject friend request
79
+ message RejectFriendRequestPayload {
80
+ string friend_request_id = 1;
81
+ }
82
+
83
+ message RejectFriendRequestReplyOk {
84
+ decentraland.renderer.common.FriendRequestInfo friend_request = 1;
85
+ }
86
+
87
+ message RejectFriendRequestReply {
88
+ oneof message {
89
+ RejectFriendRequestReplyOk reply = 1;
90
+ decentraland.renderer.common.FriendshipErrorCode error = 2;
91
+ }
92
+ }
93
+
94
+ service FriendRequestKernelService {
95
+ rpc GetFriendRequests(GetFriendRequestsPayload) returns (GetFriendRequestsReply) {}
96
+ rpc SendFriendRequest(SendFriendRequestPayload) returns (SendFriendRequestReply) {}
97
+ rpc CancelFriendRequest(CancelFriendRequestPayload) returns (CancelFriendRequestReply) {}
98
+ rpc AcceptFriendRequest(AcceptFriendRequestPayload) returns (AcceptFriendRequestReply) {}
99
+ rpc RejectFriendRequest(RejectFriendRequestPayload) returns (RejectFriendRequestReply) {}
100
+ }
@@ -0,0 +1,36 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.renderer.renderer_services;
4
+
5
+ import "decentraland/renderer/common/friend_request_common.proto";
6
+
7
+ message ApproveFriendRequestPayload {
8
+ string user_id = 1;
9
+ }
10
+
11
+ message ApproveFriendRequestReply {}
12
+
13
+ message RejectFriendRequestPayload {
14
+ string user_id = 1;
15
+ }
16
+
17
+ message RejectFriendRequestReply {}
18
+
19
+ message CancelFriendRequestPayload {
20
+ string user_id = 1;
21
+ }
22
+
23
+ message CancelFriendRequestReply {}
24
+
25
+ message ReceiveFriendRequestPayload {
26
+ decentraland.renderer.common.FriendRequestInfo friend_request = 1;
27
+ }
28
+
29
+ message ReceiveFriendRequestReply {}
30
+
31
+ service FriendRequestRendererService {
32
+ rpc ApproveFriendRequest(ApproveFriendRequestPayload) returns (ApproveFriendRequestReply) {}
33
+ rpc RejectFriendRequest(RejectFriendRequestPayload) returns (RejectFriendRequestReply) {}
34
+ rpc CancelFriendRequest(CancelFriendRequestPayload) returns (CancelFriendRequestReply) {}
35
+ rpc ReceiveFriendRequest(ReceiveFriendRequestPayload) returns (ReceiveFriendRequestReply) {}
36
+ }
@@ -0,0 +1,54 @@
1
+ syntax = "proto3";
2
+ package decentraland.renderer.renderer_services;
3
+ import "decentraland/common/entity.proto";
4
+
5
+ message LoadSceneMessage {
6
+ // entity and content mappings of the scene (string scene_id = 1; THIS IS NOW entity.id)
7
+ decentraland.common.Entity entity = 1;
8
+ // scene number is used to refer to the scene internally in kernel
9
+ int32 scene_number = 2;
10
+ // name for the UI, handy for portable experiences
11
+ string scene_name = 3;
12
+ // baseUrl to be used to resolve the entity's content mappings
13
+ string base_url = 4;
14
+ // if present, this scene will try to download asset bundles
15
+ string base_url_asset_bundles = 5;
16
+ // this scene is bound to a wearable
17
+ bool is_portable_experience = 6;
18
+ // this scene is a global scene, like the avatar scene
19
+ bool is_global_scene = 7;
20
+ // this scene uses the new runtime
21
+ bool sdk7 = 8;
22
+ }
23
+
24
+ message LoadSceneResult {
25
+ // if false, the port should be closed and resources released.
26
+ bool success = 1;
27
+ }
28
+
29
+ message GetCurrentStateMessage {}
30
+ message UnloadSceneMessage {}
31
+ message UnloadSceneResult {}
32
+
33
+ message CRDTSceneMessage {
34
+ bytes payload = 1;
35
+ }
36
+
37
+ message CRDTSceneCurrentState {
38
+ bool has_own_entities = 1;
39
+ bytes payload = 2;
40
+ }
41
+
42
+
43
+ // The SceneController exists once per RPC port. Every scene is a independent
44
+ // port and thus, rpcContext and its lifecycle is controlled by the SceneController.
45
+ service RpcSceneControllerService {
46
+ // creates a scene in the renderer
47
+ rpc LoadScene(LoadSceneMessage) returns (LoadSceneResult){}
48
+ // unloads the scene and releases its resources
49
+ rpc UnloadScene(UnloadSceneMessage) returns (UnloadSceneResult){}
50
+ // back and forth of CRDT messages
51
+ rpc SendCrdt(CRDTSceneMessage) returns (CRDTSceneMessage) {}
52
+ // back and forth of CRDT messages
53
+ rpc GetCurrentState(GetCurrentStateMessage) returns (CRDTSceneCurrentState) {}
54
+ }
@@ -4,5 +4,8 @@ import public "decentraland/renderer/engine_interface.proto";
4
4
  import public "decentraland/renderer/renderer_services/crdt.proto";
5
5
  import public "decentraland/renderer/renderer_services/transport.proto";
6
6
  import public "decentraland/renderer/renderer_services/emotes_renderer.proto";
7
+ import public "decentraland/renderer/renderer_services/scene_controller.proto";
8
+ import public "decentraland/renderer/renderer_services/friend_request_renderer.proto";
7
9
  import public "decentraland/renderer/kernel_services/emotes_kernel.proto";
8
- import public "decentraland/renderer/kernel_services/analytics.proto";
10
+ import public "decentraland/renderer/kernel_services/analytics.proto";
11
+ import public "decentraland/renderer/kernel_services/friend_request_kernel.proto";