@dcl/protocol 1.0.0-3227242807.commit-ad14cba → 1.0.0-3238274199.commit-12a8e73

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.
Files changed (137) hide show
  1. package/out-ts/{bff/authentication-service.gen.ts → decentraland/bff/authentication_service.gen.ts} +0 -0
  2. package/out-ts/{bff/comms-director-service.gen.ts → decentraland/bff/comms_director_service.gen.ts} +2 -2
  3. package/out-ts/{bff/comms-service.gen.ts → decentraland/bff/comms_service.gen.ts} +1 -1
  4. package/out-ts/{bff/http-endpoints.gen.ts → decentraland/bff/http_endpoints.gen.ts} +1 -1
  5. package/out-ts/{bff/topics-service.gen.ts → decentraland/bff/topics_service.gen.ts} +0 -0
  6. package/out-ts/{common/ContentMapping.gen.ts → decentraland/common/content_mapping.gen.ts} +0 -0
  7. package/out-ts/{kernel/apis/common-sdk/UserData.gen.ts → decentraland/common/sdk/user_data.gen.ts} +1 -1
  8. package/out-ts/{common/Vectors.gen.ts → decentraland/common/vectors.gen.ts} +0 -0
  9. package/out-ts/{kernel/apis/CommunicationsController.gen.ts → decentraland/kernel/apis/communications_controller.gen.ts} +2 -2
  10. package/out-ts/{kernel/apis/DevTools.gen.ts → decentraland/kernel/apis/dev_tools.gen.ts} +2 -2
  11. package/out-ts/{kernel/apis/EngineAPI.gen.ts → decentraland/kernel/apis/engine_api.gen.ts} +112 -112
  12. package/out-ts/{kernel/apis/EnvironmentAPI.gen.ts → decentraland/kernel/apis/environment_api.gen.ts} +3 -3
  13. package/out-ts/{kernel/apis/EthereumController.gen.ts → decentraland/kernel/apis/ethereum_controller.gen.ts} +2 -2
  14. package/out-ts/{kernel/apis/ExperimentalAPI.gen.ts → decentraland/kernel/apis/experimental_api.gen.ts} +2 -2
  15. package/out-ts/{kernel/apis/ParcelIdentity.gen.ts → decentraland/kernel/apis/parcel_identity.gen.ts} +3 -3
  16. package/out-ts/{kernel/apis/Permissions.gen.ts → decentraland/kernel/apis/permissions.gen.ts} +27 -27
  17. package/out-ts/{kernel/apis/Players.gen.ts → decentraland/kernel/apis/players.gen.ts} +3 -3
  18. package/out-ts/{kernel/apis/PortableExperiences.gen.ts → decentraland/kernel/apis/portable_experiences.gen.ts} +2 -2
  19. package/out-ts/{kernel/apis/RestrictedActions.gen.ts → decentraland/kernel/apis/restricted_actions.gen.ts} +2 -2
  20. package/out-ts/{kernel/apis/SignedFetch.gen.ts → decentraland/kernel/apis/signed_fetch.gen.ts} +2 -2
  21. package/out-ts/{kernel/apis/SocialController.gen.ts → decentraland/kernel/apis/social_controller.gen.ts} +2 -2
  22. package/out-ts/{kernel/apis/UserActionModule.gen.ts → decentraland/kernel/apis/user_action_module.gen.ts} +2 -2
  23. package/out-ts/{kernel/apis/UserIdentity.gen.ts → decentraland/kernel/apis/user_identity.gen.ts} +3 -3
  24. package/out-ts/decentraland/renderer/engine_interface.gen.ts +8432 -0
  25. package/out-ts/decentraland/renderer/protocol.gen.ts +322 -0
  26. package/out-ts/renderer-interface.gen.ts +3 -0
  27. package/package.json +5 -9
  28. package/proto/buf.yaml +45 -0
  29. package/{bff/authentication-service.proto → proto/decentraland/bff/authentication_service.proto} +0 -1
  30. package/{bff/comms-director-service.proto → proto/decentraland/bff/comms_director_service.proto} +1 -1
  31. package/{bff/comms-service.proto → proto/decentraland/bff/comms_service.proto} +2 -2
  32. package/{bff/http-endpoints.proto → proto/decentraland/bff/http_endpoints.proto} +1 -2
  33. package/{bff/topics-service.proto → proto/decentraland/bff/topics_service.proto} +0 -1
  34. package/proto/decentraland/common/colors.proto +15 -0
  35. package/{common/ContentMapping.proto → proto/decentraland/common/content_mapping.proto} +0 -0
  36. package/{common/Entity.proto → proto/decentraland/common/entity.proto} +1 -1
  37. package/{kernel/apis/common-sdk/UserData.proto → proto/decentraland/common/sdk/user_data.proto} +1 -0
  38. package/{common/Vectors.proto → proto/decentraland/common/vectors.proto} +0 -0
  39. package/{kernel/apis/CommunicationsController.proto → proto/decentraland/kernel/apis/communications_controller.proto} +1 -0
  40. package/{kernel/apis/DevTools.proto → proto/decentraland/kernel/apis/dev_tools.proto} +1 -0
  41. package/proto/decentraland/kernel/apis/engine_api.proto +179 -0
  42. package/{kernel/apis/EnvironmentAPI.proto → proto/decentraland/kernel/apis/environment_api.proto} +3 -2
  43. package/{kernel/apis/EthereumController.proto → proto/decentraland/kernel/apis/ethereum_controller.proto} +2 -1
  44. package/{kernel/apis/ExperimentalAPI.proto → proto/decentraland/kernel/apis/experimental_api.proto} +1 -0
  45. package/{kernel/apis/ParcelIdentity.proto → proto/decentraland/kernel/apis/parcel_identity.proto} +2 -1
  46. package/proto/decentraland/kernel/apis/permissions.proto +32 -0
  47. package/{kernel/apis/Players.proto → proto/decentraland/kernel/apis/players.proto} +3 -2
  48. package/{kernel/apis/PortableExperiences.proto → proto/decentraland/kernel/apis/portable_experiences.proto} +1 -0
  49. package/{kernel/apis/RestrictedActions.proto → proto/decentraland/kernel/apis/restricted_actions.proto} +1 -0
  50. package/{kernel/apis/SignedFetch.proto → proto/decentraland/kernel/apis/signed_fetch.proto} +1 -0
  51. package/{kernel/apis/SocialController.proto → proto/decentraland/kernel/apis/social_controller.proto} +1 -0
  52. package/{kernel/apis/UserActionModule.proto → proto/decentraland/kernel/apis/user_action_module.proto} +1 -0
  53. package/{kernel/apis/UserIdentity.proto → proto/decentraland/kernel/apis/user_identity.proto} +3 -2
  54. package/{kernel/comms/comms-rfc-4.proto → proto/decentraland/kernel/comms/rfc4/comms.proto} +2 -2
  55. package/{kernel/comms/ws-comms-rfc-5.proto → proto/decentraland/kernel/comms/rfc5/ws_comms.proto} +1 -1
  56. package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
  57. package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
  58. package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
  59. package/{kernel → proto/decentraland/kernel}/comms/v3/archipelago.proto +7 -7
  60. package/{kernel → proto/decentraland/kernel}/comms/v3/comms.proto +3 -3
  61. package/{renderer-protocol/EngineInterface.proto → proto/decentraland/renderer/engine_interface.proto} +2 -2
  62. package/{renderer-protocol/RendererProtocol.proto → proto/decentraland/renderer/protocol.proto} +2 -0
  63. package/{ecs → proto/decentraland/sdk}/components/README.md +3 -3
  64. package/{ecs → proto/decentraland/sdk}/components/Transform.md +0 -0
  65. package/{ecs/components/Animator.proto → proto/decentraland/sdk/components/animator.proto} +3 -2
  66. package/{ecs/components/AudioSource.proto → proto/decentraland/sdk/components/audio_source.proto} +3 -2
  67. package/{ecs/components/AudioStream.proto → proto/decentraland/sdk/components/audio_stream.proto} +3 -2
  68. package/proto/decentraland/sdk/components/avatar_attach.proto +19 -0
  69. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +19 -0
  70. package/{ecs/components/AvatarShape.proto → proto/decentraland/sdk/components/avatar_shape.proto} +7 -6
  71. package/{ecs/components/Billboard.proto → proto/decentraland/sdk/components/billboard.proto} +3 -2
  72. package/proto/decentraland/sdk/components/camera_mode.proto +10 -0
  73. package/proto/decentraland/sdk/components/camera_mode_area.proto +12 -0
  74. package/proto/decentraland/sdk/components/common/action_button.proto +20 -0
  75. package/proto/decentraland/sdk/components/common/camera_mode_value.proto +8 -0
  76. package/{ecs → proto/decentraland/sdk}/components/common/id.md +0 -0
  77. package/{ecs → proto/decentraland/sdk}/components/common/id.proto +1 -0
  78. package/proto/decentraland/sdk/components/common/texts.proto +14 -0
  79. package/{ecs/components/GltfContainer.proto → proto/decentraland/sdk/components/gltf_container.proto} +3 -2
  80. package/proto/decentraland/sdk/components/material.proto +59 -0
  81. package/proto/decentraland/sdk/components/mesh_collider.proto +35 -0
  82. package/{ecs/components/MeshRenderer.proto → proto/decentraland/sdk/components/mesh_renderer.proto} +3 -2
  83. package/proto/decentraland/sdk/components/nft_shape.proto +40 -0
  84. package/proto/decentraland/sdk/components/pointer_events.proto +29 -0
  85. package/{ecs/components/PointerEventsResult.proto → proto/decentraland/sdk/components/pointer_events_result.proto} +7 -6
  86. package/proto/decentraland/sdk/components/pointer_lock.proto +9 -0
  87. package/proto/decentraland/sdk/components/raycast.proto +21 -0
  88. package/proto/decentraland/sdk/components/raycast_result.proto +25 -0
  89. package/{ecs/components/TextShape.proto → proto/decentraland/sdk/components/text_shape.proto} +11 -10
  90. package/proto/decentraland/sdk/components/ui_background.proto +11 -0
  91. package/proto/decentraland/sdk/components/ui_text.proto +16 -0
  92. package/{ecs/components/UiTransform.proto → proto/decentraland/sdk/components/ui_transform.proto} +50 -49
  93. package/proto/decentraland/sdk/components/visibility_component.proto +9 -0
  94. package/proto/google/LICENSE +27 -0
  95. package/proto/google/README.md +1 -0
  96. package/proto/google/api/annotations.json +83 -0
  97. package/proto/google/api/annotations.proto +11 -0
  98. package/proto/google/api/http.json +86 -0
  99. package/proto/google/api/http.proto +31 -0
  100. package/proto/google/protobuf/api.json +118 -0
  101. package/proto/google/protobuf/api.proto +34 -0
  102. package/proto/google/protobuf/descriptor.json +739 -0
  103. package/proto/google/protobuf/descriptor.proto +286 -0
  104. package/proto/google/protobuf/source_context.json +20 -0
  105. package/proto/google/protobuf/source_context.proto +7 -0
  106. package/proto/google/protobuf/type.json +202 -0
  107. package/proto/google/protobuf/type.proto +89 -0
  108. package/{bff-services.proto → public/bff-services.proto} +5 -5
  109. package/public/renderer-interface.proto +4 -0
  110. package/public/sdk-apis.proto +21 -0
  111. package/ecs/components/AvatarAttach.proto +0 -16
  112. package/ecs/components/AvatarModifierArea.proto +0 -16
  113. package/ecs/components/CameraMode.proto +0 -9
  114. package/ecs/components/CameraModeArea.proto +0 -11
  115. package/ecs/components/Material.proto +0 -59
  116. package/ecs/components/MeshCollider.proto +0 -35
  117. package/ecs/components/NFTShape.proto +0 -38
  118. package/ecs/components/PointerEvents.proto +0 -28
  119. package/ecs/components/PointerLock.proto +0 -8
  120. package/ecs/components/Raycast.proto +0 -19
  121. package/ecs/components/RaycastResult.proto +0 -24
  122. package/ecs/components/UiBackground.proto +0 -10
  123. package/ecs/components/UiText.proto +0 -25
  124. package/ecs/components/VisibilityComponent.proto +0 -8
  125. package/ecs/components/common/ActionButton.proto +0 -18
  126. package/ecs/components/common/CameraModeValue.proto +0 -6
  127. package/ecs/components/common/Color3.proto +0 -8
  128. package/ecs/components/common/Color4.proto +0 -8
  129. package/ecs/components/common/Vector3.proto +0 -7
  130. package/kernel/apis/EngineAPI.proto +0 -180
  131. package/kernel/apis/Permissions.proto +0 -30
  132. package/kernel/apis/SceneStateStorageController.proto +0 -114
  133. package/kernel/comms/v1/broker.proto +0 -114
  134. package/kernel/comms/v1/comms.proto +0 -68
  135. package/kernel/comms/v2/comms.proto +0 -61
  136. package/out-ts/kernel/apis/SceneStateStorageController.gen.ts +0 -1331
  137. package/sdk-apis.proto +0 -22
@@ -1,4 +1,5 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
4
  message RequirePaymentRequest {
4
5
  string to_address = 1;
@@ -16,7 +17,7 @@ message SignMessageRequest {
16
17
 
17
18
  message SignMessageResponse {
18
19
  string message = 1;
19
- string hexEncodedMessage = 2;
20
+ string hex_encoded_message = 2;
20
21
  string signature = 3;
21
22
  }
22
23
 
@@ -1,4 +1,5 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
4
  message SendToRendererRequest {
4
5
  bytes data = 1;
@@ -1,6 +1,7 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
- import "common/ContentMapping.proto";
4
+ import "decentraland/common/content_mapping.proto";
4
5
 
5
6
  message MappingsResponse {
6
7
  string parcel_id = 1;
@@ -0,0 +1,32 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.kernel.apis;
4
+
5
+ enum PermissionItem {
6
+ PI_ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE = 0;
7
+ PI_ALLOW_TO_TRIGGER_AVATAR_EMOTE = 1;
8
+ PI_USE_WEB3_API = 2;
9
+ PI_USE_WEBSOCKET = 3;
10
+ PI_USE_FETCH = 4;
11
+ }
12
+
13
+ message PermissionResponse {
14
+ bool has_permission = 1;
15
+ }
16
+
17
+ message HasPermissionRequest {
18
+ PermissionItem permission = 1;
19
+ }
20
+
21
+ message HasManyPermissionRequest {
22
+ repeated PermissionItem permissions = 1;
23
+ }
24
+
25
+ message HasManyPermissionResponse {
26
+ repeated bool has_many_permission = 1;
27
+ }
28
+
29
+ service PermissionsService {
30
+ rpc HasPermission(HasPermissionRequest) returns (PermissionResponse) {}
31
+ rpc HasManyPermissions(HasManyPermissionRequest) returns (HasManyPermissionResponse) {}
32
+ }
@@ -1,13 +1,14 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
- import "kernel/apis/common-sdk/UserData.proto";
4
+ import "decentraland/common/sdk/user_data.proto";
4
5
 
5
6
  message Player {
6
7
  string user_id = 1;
7
8
  }
8
9
 
9
10
  message PlayersGetUserDataResponse {
10
- optional UserData data = 1;
11
+ optional decentraland.common.sdk.UserData data = 1;
11
12
  }
12
13
 
13
14
  message PlayerListResponse {
@@ -1,4 +1,5 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
4
  message KillRequest {
4
5
  string pid = 1;
@@ -1,4 +1,5 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
4
  message Vector3 {
4
5
  float x = 1;
@@ -1,4 +1,5 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
4
  message FlatFetchInit {
4
5
  optional string method = 1;
@@ -1,4 +1,5 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
4
  message InitRequest {}
4
5
  message SocialEvent {
@@ -1,4 +1,5 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
4
  message RequestTeleportRequest {
4
5
  string destination = 1;
@@ -1,11 +1,12 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
- import "kernel/apis/common-sdk/UserData.proto";
4
+ import "decentraland/common/sdk/user_data.proto";
4
5
 
5
6
  message GetUserDataRequest {}
6
7
 
7
8
  message GetUserDataResponse {
8
- optional UserData data = 1;
9
+ optional decentraland.common.sdk.UserData data = 1;
9
10
  }
10
11
 
11
12
  message GetUserPublicKeyRequest {}
@@ -3,7 +3,7 @@
3
3
 
4
4
  syntax = "proto3";
5
5
 
6
- package protocol.comms.rfc4;
6
+ package decentraland.kernel.comms.rfc4;
7
7
 
8
8
  message Packet {
9
9
  oneof message {
@@ -68,6 +68,6 @@ message Voice {
68
68
  uint32 index = 2;
69
69
  VoiceCodec codec = 3;
70
70
  enum VoiceCodec {
71
- VoiceCodec_OPUS = 0;
71
+ VC_OPUS = 0;
72
72
  }
73
73
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  syntax = "proto3";
5
5
 
6
- package protocol.comms.rfc5;
6
+ package decentraland.kernel.comms.rfc5;
7
7
 
8
8
  /**
9
9
  * Sent to the clients when the challenge is validated and they are authenticated.
@@ -0,0 +1,114 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.kernel.comms.v1;
4
+
5
+ enum MessageType {
6
+ MT_UNKNOWN_MESSAGE_TYPE = 0;
7
+ MT_WELCOME = 1;
8
+ MT_CONNECT = 2;
9
+ MT_WEBRTC_OFFER = 3;
10
+ MT_WEBRTC_ANSWER = 4;
11
+ MT_WEBRTC_ICE_CANDIDATE = 5;
12
+ MT_PING = 6;
13
+ MT_SUBSCRIPTION = 7;
14
+ MT_AUTH = 8;
15
+
16
+ MT_TOPIC = 9;
17
+ MT_TOPIC_FW = 10;
18
+
19
+ MT_TOPIC_IDENTITY = 11;
20
+ MT_TOPIC_IDENTITY_FW = 12;
21
+ }
22
+
23
+ enum Role {
24
+ R_UNKNOWN_ROLE = 0;
25
+ R_CLIENT = 1;
26
+ R_COMMUNICATION_SERVER = 2;
27
+ }
28
+
29
+ enum Format {
30
+ F_UNKNOWN_FORMAT = 0;
31
+ F_PLAIN = 1;
32
+ F_GZIP = 2;
33
+ }
34
+
35
+ // NOTE: coordination messsages
36
+
37
+ message CoordinatorMessage {
38
+ MessageType type = 1;
39
+ }
40
+
41
+ message WelcomeMessage {
42
+ MessageType type = 1;
43
+ uint64 alias = 2;
44
+ repeated uint64 available_servers = 3;
45
+ }
46
+
47
+ message ConnectMessage {
48
+ MessageType type = 1;
49
+ uint64 from_alias = 2;
50
+ uint64 to_alias = 3;
51
+ }
52
+
53
+ message WebRtcMessage {
54
+ MessageType type = 1;
55
+ uint64 from_alias = 2;
56
+ uint64 to_alias = 3;
57
+ bytes data = 4;
58
+ }
59
+
60
+ // NOTE: comm server messsages
61
+
62
+ message MessageHeader {
63
+ MessageType type = 1;
64
+ }
65
+
66
+ message PingMessage {
67
+ MessageType type = 1;
68
+ double time = 2;
69
+ }
70
+
71
+ // NOTE: topics is a space separated string in the format specified by Format
72
+ message SubscriptionMessage {
73
+ MessageType type = 1;
74
+ Format format = 2;
75
+ bytes topics = 3;
76
+ }
77
+
78
+ // NOTE: comm server messsages
79
+
80
+ message AuthMessage {
81
+ MessageType type = 1;
82
+ Role role = 2;
83
+ bytes body = 3;
84
+ }
85
+
86
+ message TopicMessage {
87
+ MessageType type = 1;
88
+ uint64 from_alias = 2;
89
+ string topic = 3;
90
+ bytes body = 4;
91
+ }
92
+
93
+ message TopicFWMessage {
94
+ MessageType type = 1;
95
+ uint64 from_alias = 2;
96
+ bytes body = 3;
97
+ }
98
+
99
+ message TopicIdentityMessage {
100
+ MessageType type = 1;
101
+ uint64 from_alias = 2;
102
+ string topic = 3;
103
+ bytes identity = 4;
104
+ Role role = 5;
105
+ bytes body = 6;
106
+ }
107
+
108
+ message TopicIdentityFWMessage {
109
+ MessageType type = 1;
110
+ uint64 from_alias = 2;
111
+ bytes identity = 3;
112
+ Role role = 4;
113
+ bytes body = 5;
114
+ }
@@ -0,0 +1,68 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.kernel.comms.v1;
4
+
5
+ message AuthData {
6
+ string signature = 1;
7
+ string identity = 2;
8
+ string timestamp = 3;
9
+ string access_token = 4;
10
+ }
11
+
12
+ enum Category {
13
+ C_UNKNOWN = 0;
14
+ C_POSITION = 1;
15
+ C_PROFILE = 2;
16
+ C_CHAT = 3;
17
+ C_SCENE_MESSAGE = 4;
18
+ C_PROF_REQ = 5;
19
+ C_PROF_RES = 6;
20
+ }
21
+
22
+ message DataHeader {
23
+ Category category = 1;
24
+ }
25
+
26
+ message PositionData {
27
+ Category category = 1;
28
+ double time = 2;
29
+ float position_x = 3;
30
+ float position_y = 4;
31
+ float position_z = 5;
32
+ float rotation_x = 6;
33
+ float rotation_y = 7;
34
+ float rotation_z = 8;
35
+ float rotation_w = 9;
36
+ bool immediate = 10;
37
+ }
38
+
39
+ message ProfileData {
40
+ Category category = 1;
41
+ double time = 2;
42
+ string profile_version = 3;
43
+ enum ProfileType {
44
+ PT_LOCAL = 0;
45
+ PT_DEPLOYED = 1;
46
+ }
47
+ ProfileType profile_type = 4;
48
+ }
49
+
50
+ message ProfileRequestData {
51
+ Category category = 1;
52
+ double time = 2;
53
+ string profile_version = 3;
54
+ string user_id = 4;
55
+ }
56
+
57
+ message ProfileResponseData {
58
+ Category category = 1;
59
+ double time = 2;
60
+ string serialized_profile = 3;
61
+ }
62
+
63
+ message ChatData {
64
+ Category category = 1;
65
+ double time = 2;
66
+ string message_id = 3;
67
+ string text = 4;
68
+ }
@@ -0,0 +1,61 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.kernel.comms.v2;
4
+
5
+ message CommsMessage {
6
+ double time = 1;
7
+ oneof data {
8
+ PositionData position_data = 2;
9
+ ProfileData profile_data = 3;
10
+ ChatData chat_data = 4;
11
+ SceneData scene_data = 5;
12
+ VoiceData voice_data = 6;
13
+ ProfileRequestData profile_request_data = 7;
14
+ ProfileResponseData profile_response_data = 8;
15
+ }
16
+ }
17
+
18
+ message PositionData {
19
+ float position_x = 1;
20
+ float position_y = 2;
21
+ float position_z = 3;
22
+ float rotation_x = 4;
23
+ float rotation_y = 5;
24
+ float rotation_z = 6;
25
+ float rotation_w = 7;
26
+ bool immediate = 8;
27
+ }
28
+
29
+ message ProfileData {
30
+ string profile_version = 1;
31
+ string user_id = 2;
32
+ enum ProfileType {
33
+ PT_DEPLOYED = 0;
34
+ PT_LOCAL = 1;
35
+ }
36
+ ProfileType profile_type = 3;
37
+ }
38
+
39
+ message ProfileRequestData {
40
+ string profile_version = 1;
41
+ string user_id = 2;
42
+ }
43
+
44
+ message ProfileResponseData {
45
+ string serialized_profile = 1;
46
+ }
47
+
48
+ message ChatData {
49
+ string message_id = 1;
50
+ string text = 2;
51
+ }
52
+
53
+ message SceneData {
54
+ string scene_id = 1;
55
+ string text = 2;
56
+ }
57
+
58
+ message VoiceData {
59
+ bytes encoded_samples = 1;
60
+ uint32 index = 2;
61
+ }
@@ -1,10 +1,10 @@
1
1
  syntax = "proto3";
2
2
 
3
- package protocol.comms.v3;
3
+ package decentraland.kernel.comms.v3;
4
4
 
5
5
  enum TransportType {
6
- TRANSPORT_LIVEKIT = 0;
7
- TRANSPORT_WS = 1;
6
+ TT_LIVEKIT = 0;
7
+ TT_WS = 1;
8
8
  }
9
9
 
10
10
  message Position3DMessage {
@@ -17,7 +17,7 @@ message IslandChangedMessage {
17
17
  string island_id = 1;
18
18
  string conn_str = 2;
19
19
  optional string from_island_id = 3;
20
- map<string, Position3DMessage> peers = 4;
20
+ map<string, Position3DMessage> peers = 4;
21
21
  }
22
22
 
23
23
  message LeftIslandMessage {
@@ -33,7 +33,7 @@ message JoinIslandMessage {
33
33
  message IslandData {
34
34
  string id = 1;
35
35
  repeated string peers = 2;
36
- uint32 maxPeers = 3;
36
+ uint32 max_peers = 3;
37
37
  Position3DMessage center = 4;
38
38
  double radius = 5;
39
39
  }
@@ -67,7 +67,7 @@ message TransportMessage {
67
67
  oneof message {
68
68
  TransportInit init = 1;
69
69
  TransportHeartbeat heartbeat = 2;
70
- TransportAuthorizationRequest authRequest = 3;
71
- TransportAuthorizationResponse authResponse = 4;
70
+ TransportAuthorizationRequest auth_request = 3;
71
+ TransportAuthorizationResponse auth_response = 4;
72
72
  }
73
73
  }
@@ -1,6 +1,6 @@
1
1
  syntax = "proto3";
2
2
 
3
- package protocol.comms.v3;
3
+ package decentraland.kernel.comms.v3;
4
4
 
5
5
  message Position {
6
6
  double time = 2;
@@ -17,8 +17,8 @@ message Profile {
17
17
  double time = 2;
18
18
  string profile_version = 3;
19
19
  enum ProfileType {
20
- LOCAL = 0;
21
- DEPLOYED = 1;
20
+ PT_LOCAL = 0;
21
+ PT_DEPLOYED = 1;
22
22
  }
23
23
  ProfileType profile_type = 4;
24
24
  }
@@ -3,11 +3,11 @@
3
3
 
4
4
  syntax = "proto3";
5
5
 
6
- package engineinterface;
6
+ package decentraland.renderer;
7
7
 
8
8
  import "google/protobuf/empty.proto";
9
9
 
10
- option csharp_namespace = "DCL.Interface";
10
+ // option csharp_namespace = "DCL.Interface";
11
11
 
12
12
  message PB_CreateEntity {
13
13
  string id = 1;
@@ -1,5 +1,7 @@
1
1
  syntax = "proto3";
2
2
 
3
+ package decentraland.renderer;
4
+
3
5
  message CRDTManyMessages {
4
6
  string scene_id = 1;
5
7
  bytes payload = 2;
@@ -6,8 +6,8 @@ Inside each proto, we need to have at least this template:
6
6
  ```proto
7
7
  syntax = "proto3";
8
8
 
9
- import "ecs/components/common/id.proto";
10
- option (ecs_component_id) = XXXX;
9
+ import "decentraland/sdk/components/common/id.proto";
10
+ option (common.ecs_component_id) = XXXX;
11
11
 
12
12
  message PBComponentName {
13
13
  float one_parameter = 1;
@@ -22,7 +22,7 @@ Some points that must be well-defined:
22
22
 
23
23
 
24
24
  ## Common directory
25
- The common directory only has to have unambiguous structures like Vector3, Color3, Quaternion, etc. These messages will never change.
25
+ The common directory only has to have unambiguous structures like decentraland.common.Vector3, decentraland.common.Color3, Quaternion, etc. These messages will never change.
26
26
 
27
27
  ## About specific options with other languages
28
28
  The definition must be the minimal proto code, and it shouldn't have a specific option to compile on some platform. So if you have to add additional information to the proto, you will be able to run a post-process after the protocol schemas acquisition.
@@ -1,7 +1,8 @@
1
1
  syntax = "proto3";
2
+ package decentraland.sdk.components;
2
3
 
3
- import "ecs/components/common/id.proto";
4
- option (ecs_component_id) = 1042;
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1042;
5
6
 
6
7
  message PBAnimator {
7
8
  repeated PBAnimationState states = 1;
@@ -1,7 +1,8 @@
1
1
  syntax = "proto3";
2
+ package decentraland.sdk.components;
2
3
 
3
- import "ecs/components/common/id.proto";
4
- option (ecs_component_id) = 1020;
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1020;
5
6
 
6
7
  message PBAudioSource {
7
8
  optional bool playing = 1;
@@ -1,7 +1,8 @@
1
1
  syntax = "proto3";
2
+ package decentraland.sdk.components;
2
3
 
3
- import "ecs/components/common/id.proto";
4
- option (ecs_component_id) = 1021;
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1021;
5
6
 
6
7
  message PBAudioStream {
7
8
  optional bool playing = 1;
@@ -0,0 +1,19 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.sdk.components;
4
+
5
+ import "decentraland/sdk/components/common/id.proto";
6
+
7
+ option (common.ecs_component_id) = 1073;
8
+
9
+ enum AvatarAnchorPoint {
10
+ AAP_POSITION = 0;
11
+ AAP_NAME_TAG = 1;
12
+ AAP_LEFT_HAND = 2;
13
+ AAP_RIGHT_HAND = 3;
14
+ }
15
+
16
+ message PBAvatarAttach {
17
+ string avatar_id = 1;
18
+ AvatarAnchorPoint anchor_point_id = 2;
19
+ }
@@ -0,0 +1,19 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.sdk.components;
4
+
5
+ import "decentraland/common/vectors.proto";
6
+ import "decentraland/sdk/components/common/id.proto";
7
+
8
+ option (common.ecs_component_id) = 1070;
9
+
10
+ enum AvatarModifier {
11
+ AM_HIDE_AVATARS = 0;
12
+ AM_DISABLE_PASSPORTS = 1;
13
+ }
14
+
15
+ message PBAvatarModifierArea {
16
+ decentraland.common.Vector3 area = 1;
17
+ repeated string exclude_ids = 2;
18
+ repeated AvatarModifier modifiers = 3;
19
+ }
@@ -1,16 +1,17 @@
1
1
  syntax = "proto3";
2
+ package decentraland.sdk.components;
2
3
 
3
- import "ecs/components/common/id.proto";
4
- option (ecs_component_id) = 1080;
5
- import "ecs/components/common/Color3.proto";
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1080;
6
+ import "decentraland/common/colors.proto";
6
7
 
7
8
  message PBAvatarShape {
8
9
  string id = 1;
9
10
  optional string name = 2; // default = NPC
10
11
  optional string body_shape = 3; // default = urn:decentraland:off-chain:base-avatars:BaseFemale
11
- optional Color3 skin_color = 4; // default = Color3(R = 0.6f, G = 0.462f, B = 0.356f)
12
- optional Color3 hair_color = 5; // default = Color3(R = 0.283f, G = 0.142f, B = 0f)
13
- optional Color3 eye_color = 6; // default = Color3(R = 0.6f, G = 0.462f, B = 0.356f)
12
+ optional decentraland.common.Color3 skin_color = 4; // default = decentraland.common.Color3(R = 0.6f, G = 0.462f, B = 0.356f)
13
+ optional decentraland.common.Color3 hair_color = 5; // default = decentraland.common.Color3(R = 0.283f, G = 0.142f, B = 0f)
14
+ optional decentraland.common.Color3 eye_color = 6; // default = decentraland.common.Color3(R = 0.6f, G = 0.462f, B = 0.356f)
14
15
  optional string expression_trigger_id = 7;
15
16
  optional int64 expression_trigger_timestamp = 8; // default = timestamp
16
17
  optional bool talking = 9;
@@ -1,7 +1,8 @@
1
1
  syntax = "proto3";
2
+ package decentraland.sdk.components;
2
3
 
3
- import "ecs/components/common/id.proto";
4
- option (ecs_component_id) = 1090;
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1090;
5
6
 
6
7
  message PBBillboard {
7
8
  optional bool x = 1; // default=true
@@ -0,0 +1,10 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1072;
6
+ import "decentraland/sdk/components/common/camera_mode_value.proto";
7
+
8
+ message PBCameraMode {
9
+ common.CameraModeValue mode = 1;
10
+ }
@@ -0,0 +1,12 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1071;
6
+ import "decentraland/common/vectors.proto";
7
+ import "decentraland/sdk/components/common/camera_mode_value.proto";
8
+
9
+ message PBCameraModeArea {
10
+ decentraland.common.Vector3 area = 1;
11
+ common.CameraModeValue mode = 2;
12
+ }
@@ -0,0 +1,20 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.sdk.components.common;
4
+
5
+ enum ActionButton {
6
+ AB_POINTER = 0;
7
+ AB_PRIMARY = 1;
8
+ AB_SECONDARY = 2;
9
+ AB_ANY = 3;
10
+ AB_FORWARD = 4;
11
+ AB_BACKWARD = 5;
12
+ AB_RIGHT = 6;
13
+ AB_LEFT = 7;
14
+ AB_JUMP = 8;
15
+ AB_WALK = 9;
16
+ AB_ACTION_3 = 10;
17
+ AB_ACTION_4 = 11;
18
+ AB_ACTION_5 = 12;
19
+ AB_ACTION_6 = 13;
20
+ }