@dcl/protocol 1.0.0-3220294254.commit-23e191b → 1.0.0-3237582415.commit-28fe6ac

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/package.json +5 -9
  25. package/proto/buf.yaml +45 -0
  26. package/{bff/authentication-service.proto → proto/decentraland/bff/authentication_service.proto} +0 -1
  27. package/{bff/comms-director-service.proto → proto/decentraland/bff/comms_director_service.proto} +1 -1
  28. package/{bff/comms-service.proto → proto/decentraland/bff/comms_service.proto} +2 -2
  29. package/{bff/http-endpoints.proto → proto/decentraland/bff/http_endpoints.proto} +1 -2
  30. package/{bff/topics-service.proto → proto/decentraland/bff/topics_service.proto} +0 -1
  31. package/proto/decentraland/common/colors.proto +15 -0
  32. package/{common/ContentMapping.proto → proto/decentraland/common/content_mapping.proto} +0 -0
  33. package/{common/Entity.proto → proto/decentraland/common/entity.proto} +1 -1
  34. package/{kernel/apis/common-sdk/UserData.proto → proto/decentraland/common/sdk/user_data.proto} +1 -0
  35. package/{common/Vectors.proto → proto/decentraland/common/vectors.proto} +0 -0
  36. package/{kernel/apis/CommunicationsController.proto → proto/decentraland/kernel/apis/communications_controller.proto} +1 -0
  37. package/{kernel/apis/DevTools.proto → proto/decentraland/kernel/apis/dev_tools.proto} +1 -0
  38. package/proto/decentraland/kernel/apis/engine_api.proto +179 -0
  39. package/{kernel/apis/EnvironmentAPI.proto → proto/decentraland/kernel/apis/environment_api.proto} +3 -2
  40. package/{kernel/apis/EthereumController.proto → proto/decentraland/kernel/apis/ethereum_controller.proto} +2 -1
  41. package/{kernel/apis/ExperimentalAPI.proto → proto/decentraland/kernel/apis/experimental_api.proto} +1 -0
  42. package/{kernel/apis/ParcelIdentity.proto → proto/decentraland/kernel/apis/parcel_identity.proto} +2 -1
  43. package/proto/decentraland/kernel/apis/permissions.proto +32 -0
  44. package/{kernel/apis/Players.proto → proto/decentraland/kernel/apis/players.proto} +3 -2
  45. package/{kernel/apis/PortableExperiences.proto → proto/decentraland/kernel/apis/portable_experiences.proto} +1 -0
  46. package/{kernel/apis/RestrictedActions.proto → proto/decentraland/kernel/apis/restricted_actions.proto} +1 -0
  47. package/{kernel/apis/SignedFetch.proto → proto/decentraland/kernel/apis/signed_fetch.proto} +1 -0
  48. package/{kernel/apis/SocialController.proto → proto/decentraland/kernel/apis/social_controller.proto} +1 -0
  49. package/{kernel/apis/UserActionModule.proto → proto/decentraland/kernel/apis/user_action_module.proto} +1 -0
  50. package/{kernel/apis/UserIdentity.proto → proto/decentraland/kernel/apis/user_identity.proto} +3 -2
  51. package/{kernel/comms/comms-rfc-4.proto → proto/decentraland/kernel/comms/rfc4/comms.proto} +2 -2
  52. package/{kernel/comms/ws-comms-rfc-5.proto → proto/decentraland/kernel/comms/rfc5/ws_comms.proto} +1 -1
  53. package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
  54. package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
  55. package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
  56. package/{kernel → proto/decentraland/kernel}/comms/v3/archipelago.proto +7 -7
  57. package/{kernel → proto/decentraland/kernel}/comms/v3/comms.proto +3 -3
  58. package/{renderer-protocol/EngineInterface.proto → proto/decentraland/renderer/engine_interface.proto} +2 -2
  59. package/{renderer-protocol/RendererProtocol.proto → proto/decentraland/renderer/protocol.proto} +2 -0
  60. package/{ecs → proto/decentraland/sdk}/components/README.md +3 -3
  61. package/{ecs → proto/decentraland/sdk}/components/Transform.md +0 -0
  62. package/{ecs/components/Animator.proto → proto/decentraland/sdk/components/animator.proto} +3 -2
  63. package/{ecs/components/AudioSource.proto → proto/decentraland/sdk/components/audio_source.proto} +3 -2
  64. package/{ecs/components/AudioStream.proto → proto/decentraland/sdk/components/audio_stream.proto} +3 -2
  65. package/proto/decentraland/sdk/components/avatar_attach.proto +19 -0
  66. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +19 -0
  67. package/{ecs/components/AvatarShape.proto → proto/decentraland/sdk/components/avatar_shape.proto} +7 -6
  68. package/{ecs/components/Billboard.proto → proto/decentraland/sdk/components/billboard.proto} +3 -2
  69. package/proto/decentraland/sdk/components/camera_mode.proto +10 -0
  70. package/proto/decentraland/sdk/components/camera_mode_area.proto +12 -0
  71. package/proto/decentraland/sdk/components/common/action_button.proto +20 -0
  72. package/proto/decentraland/sdk/components/common/camera_mode_value.proto +8 -0
  73. package/{ecs → proto/decentraland/sdk}/components/common/id.md +0 -0
  74. package/{ecs → proto/decentraland/sdk}/components/common/id.proto +1 -0
  75. package/proto/decentraland/sdk/components/common/texts.proto +14 -0
  76. package/{ecs/components/GltfContainer.proto → proto/decentraland/sdk/components/gltf_container.proto} +3 -2
  77. package/proto/decentraland/sdk/components/material.proto +59 -0
  78. package/proto/decentraland/sdk/components/mesh_collider.proto +35 -0
  79. package/{ecs/components/MeshRenderer.proto → proto/decentraland/sdk/components/mesh_renderer.proto} +3 -2
  80. package/proto/decentraland/sdk/components/nft_shape.proto +40 -0
  81. package/proto/decentraland/sdk/components/pointer_events.proto +29 -0
  82. package/{ecs/components/PointerEventsResult.proto → proto/decentraland/sdk/components/pointer_events_result.proto} +7 -6
  83. package/proto/decentraland/sdk/components/pointer_lock.proto +9 -0
  84. package/proto/decentraland/sdk/components/raycast.proto +21 -0
  85. package/proto/decentraland/sdk/components/raycast_result.proto +25 -0
  86. package/{ecs/components/TextShape.proto → proto/decentraland/sdk/components/text_shape.proto} +11 -10
  87. package/proto/decentraland/sdk/components/ui_background.proto +11 -0
  88. package/proto/decentraland/sdk/components/ui_text.proto +16 -0
  89. package/{ecs/components/UiTransform.proto → proto/decentraland/sdk/components/ui_transform.proto} +50 -49
  90. package/proto/decentraland/sdk/components/visibility_component.proto +9 -0
  91. package/proto/google/LICENSE +27 -0
  92. package/proto/google/README.md +1 -0
  93. package/proto/google/api/annotations.json +83 -0
  94. package/proto/google/api/annotations.proto +11 -0
  95. package/proto/google/api/http.json +86 -0
  96. package/proto/google/api/http.proto +31 -0
  97. package/proto/google/protobuf/api.json +118 -0
  98. package/proto/google/protobuf/api.proto +34 -0
  99. package/proto/google/protobuf/descriptor.json +739 -0
  100. package/proto/google/protobuf/descriptor.proto +286 -0
  101. package/proto/google/protobuf/source_context.json +20 -0
  102. package/proto/google/protobuf/source_context.proto +7 -0
  103. package/proto/google/protobuf/type.json +202 -0
  104. package/proto/google/protobuf/type.proto +89 -0
  105. package/{bff-services.proto → public/bff-services.proto} +5 -5
  106. package/public/sdk-apis.proto +21 -0
  107. package/ecs/components/AvatarAttach.proto +0 -16
  108. package/ecs/components/AvatarModifierArea.proto +0 -16
  109. package/ecs/components/CameraMode.proto +0 -9
  110. package/ecs/components/CameraModeArea.proto +0 -11
  111. package/ecs/components/Material.proto +0 -59
  112. package/ecs/components/MeshCollider.proto +0 -35
  113. package/ecs/components/NFTShape.proto +0 -38
  114. package/ecs/components/OnPointerDown.proto +0 -12
  115. package/ecs/components/OnPointerDownResult.proto +0 -17
  116. package/ecs/components/OnPointerUp.proto +0 -12
  117. package/ecs/components/OnPointerUpResult.proto +0 -17
  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,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import _m0 from "protobufjs/minimal";
3
3
 
4
- export const protobufPackage = "";
4
+ export const protobufPackage = "decentraland.kernel.apis";
5
5
 
6
6
  export interface RequestTeleportRequest {
7
7
  destination: string;
@@ -99,7 +99,7 @@ export const RequestTeleportResponse = {
99
99
  export type UserActionModuleServiceDefinition = typeof UserActionModuleServiceDefinition;
100
100
  export const UserActionModuleServiceDefinition = {
101
101
  name: "UserActionModuleService",
102
- fullName: "UserActionModuleService",
102
+ fullName: "decentraland.kernel.apis.UserActionModuleService",
103
103
  methods: {
104
104
  requestTeleport: {
105
105
  name: "RequestTeleport",
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable */
2
2
  import _m0 from "protobufjs/minimal";
3
- import { UserData } from "./common-sdk/UserData.gen";
3
+ import { UserData } from "../../common/sdk/user_data.gen";
4
4
 
5
- export const protobufPackage = "";
5
+ export const protobufPackage = "decentraland.kernel.apis";
6
6
 
7
7
  export interface GetUserDataRequest {
8
8
  }
@@ -193,7 +193,7 @@ export const GetUserPublicKeyResponse = {
193
193
  export type UserIdentityServiceDefinition = typeof UserIdentityServiceDefinition;
194
194
  export const UserIdentityServiceDefinition = {
195
195
  name: "UserIdentityService",
196
- fullName: "UserIdentityService",
196
+ fullName: "decentraland.kernel.apis.UserIdentityService",
197
197
  methods: {
198
198
  getUserPublicKey: {
199
199
  name: "GetUserPublicKey",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-3220294254.commit-23e191b",
3
+ "version": "1.0.0-3237582415.commit-28fe6ac",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,13 +21,9 @@
21
21
  "ts-proto": "^1.126.1"
22
22
  },
23
23
  "files": [
24
- "bff",
25
- "common",
26
- "ecs",
27
- "kernel",
28
- "renderer-protocol",
29
- "*.proto",
30
- "out-ts"
24
+ "proto",
25
+ "out-ts",
26
+ "public"
31
27
  ],
32
- "commit": "23e191bc7f59c0583f577d48e8c92e02b3bd6b7c"
28
+ "commit": "28fe6ac842acb1f10a2549eb83eff993a876518c"
33
29
  }
package/proto/buf.yaml ADDED
@@ -0,0 +1,45 @@
1
+ version: v1
2
+ breaking:
3
+ use:
4
+ - FILE
5
+ lint:
6
+ use:
7
+ - DIRECTORY_SAME_PACKAGE
8
+ - PACKAGE_DEFINED
9
+ - PACKAGE_DIRECTORY_MATCH
10
+ - PACKAGE_SAME_DIRECTORY
11
+ - ENUM_PASCAL_CASE
12
+ - ENUM_VALUE_UPPER_SNAKE_CASE
13
+ - FIELD_LOWER_SNAKE_CASE
14
+ - MESSAGE_PASCAL_CASE
15
+ - ONEOF_LOWER_SNAKE_CASE
16
+ - PACKAGE_LOWER_SNAKE_CASE
17
+ - RPC_PASCAL_CASE
18
+ - SERVICE_PASCAL_CASE
19
+ - PACKAGE_SAME_CSHARP_NAMESPACE
20
+ - PACKAGE_SAME_GO_PACKAGE
21
+ - PACKAGE_SAME_JAVA_MULTIPLE_FILES
22
+ - PACKAGE_SAME_JAVA_PACKAGE
23
+ - PACKAGE_SAME_PHP_NAMESPACE
24
+ - PACKAGE_SAME_RUBY_PACKAGE
25
+ - PACKAGE_SAME_SWIFT_PREFIX
26
+ - ENUM_FIRST_VALUE_ZERO
27
+ - ENUM_NO_ALLOW_ALIAS
28
+ - IMPORT_NO_WEAK
29
+ - IMPORT_NO_PUBLIC
30
+ - IMPORT_USED
31
+ - FILE_LOWER_SNAKE_CASE
32
+ # Ignored:the default value is used
33
+ # - ENUM_ZERO_VALUE_SUFFIX
34
+ # Ignored: if a prefix is needed in the target language, implement a preprocessor
35
+ # - ENUM_VALUE_PREFIX
36
+ # Not wished
37
+ # - PACKAGE_VERSION_SUFFIX
38
+ # TODO: See if this needs to be added
39
+ # - RPC_REQUEST_RESPONSE_UNIQUE
40
+ # - RPC_REQUEST_STANDARD_NAME
41
+ # - RPC_RESPONSE_STANDARD_NAME
42
+ # - SERVICE_SUFFIX
43
+ ignore:
44
+ - google
45
+ - decentraland/renderer/engine_interface.proto
@@ -1,5 +1,4 @@
1
1
  syntax = "proto3";
2
-
3
2
  package decentraland.bff;
4
3
 
5
4
  message GetChallengeRequest {
@@ -3,7 +3,7 @@ syntax = "proto3";
3
3
  // CommsDirector are formalized at https://rfc.decentraland.org/adr/ADR-81
4
4
 
5
5
  import "google/protobuf/empty.proto";
6
- import "common/Vectors.proto";
6
+ import "decentraland/common/vectors.proto";
7
7
 
8
8
  package decentraland.bff;
9
9
 
@@ -1,8 +1,8 @@
1
1
  syntax = "proto3";
2
-
3
- import public "bff/topics-service.proto";
4
2
  package decentraland.bff;
5
3
 
4
+ import "decentraland/bff/topics_service.proto";
5
+
6
6
  message Subscription {
7
7
  uint32 subscription_id = 1;
8
8
  }
@@ -1,10 +1,9 @@
1
1
  syntax = "proto3";
2
+ package decentraland.bff;
2
3
 
3
4
  import "google/protobuf/empty.proto";
4
5
  import "google/api/annotations.proto";
5
6
 
6
- package decentraland.bff;
7
-
8
7
  message AboutResponse {
9
8
  bool healthy = 1;
10
9
  AboutConfiguration configurations = 2;
@@ -1,5 +1,4 @@
1
1
  syntax = "proto3";
2
-
3
2
  package decentraland.bff;
4
3
 
5
4
  message SubscriptionRequest {
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+ package decentraland.common;
3
+
4
+ message Color3 {
5
+ float r = 1;
6
+ float g = 2;
7
+ float b = 3;
8
+ }
9
+
10
+ message Color4 {
11
+ float r = 1;
12
+ float g = 2;
13
+ float b = 3;
14
+ float a = 4;
15
+ }
@@ -1,6 +1,6 @@
1
1
  syntax = "proto3";
2
2
  package decentraland.common;
3
- import "common/ContentMapping.proto";
3
+ import "decentraland/common/content_mapping.proto";
4
4
 
5
5
  // Entity schema compliant with https://rfc.decentraland.org/adr/ADR-80
6
6
 
@@ -1,4 +1,5 @@
1
1
  syntax = "proto3";
2
+ package decentraland.common.sdk;
2
3
 
3
4
  message Snapshots {
4
5
  string face256 = 1;
@@ -1,4 +1,5 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
4
  message RealSendRequest {
4
5
  string message = 1;
@@ -1,4 +1,5 @@
1
1
  syntax = "proto3";
2
+ package decentraland.kernel.apis;
2
3
 
3
4
  message DevToolsBody {
4
5
  string type = 1;
@@ -0,0 +1,179 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.kernel.apis;
4
+
5
+ message OpenExternalUrlBody {
6
+ string url = 1;
7
+ }
8
+
9
+ message OpenNFTDialogBody {
10
+ string asset_contract_address = 1;
11
+ string token_id = 2;
12
+ optional string comment = 3;
13
+ }
14
+
15
+ message CreateEntityBody {
16
+ string id = 1;
17
+ }
18
+
19
+ message RemoveEntityBody {
20
+ string id = 1;
21
+ }
22
+
23
+ message UpdateEntityComponentBody {
24
+ string entity_id = 1;
25
+ int32 class_id = 2;
26
+ string name = 3;
27
+ string json = 4;
28
+ }
29
+
30
+ message AttachEntityComponentBody {
31
+ string entity_id = 1;
32
+ string name = 2;
33
+ string id = 3;
34
+ }
35
+
36
+ message ComponentRemovedBody {
37
+ string entity_id = 1;
38
+ string name = 2;
39
+ }
40
+
41
+ message SetEntityParentBody {
42
+ string entity_id = 1;
43
+ string parent_id = 2;
44
+ }
45
+
46
+ enum QueryType {
47
+ QT_INVALID_QUERY_TYPE = 0;
48
+ QT_HIT_FIRST = 1;
49
+ QT_HIT_ALL = 2;
50
+ QT_HIT_FIRST_AVATAR = 3;
51
+ QT_HIT_ALL_AVATARS = 4;
52
+ }
53
+
54
+ message QueryBody {
55
+ QueryType query_id = 1;
56
+ string payload = 2;
57
+ }
58
+
59
+ message ComponentCreatedBody {
60
+ string id = 1;
61
+ int32 class_id = 2;
62
+ string name = 3;
63
+ }
64
+
65
+ message ComponentDisposedBody {
66
+ string id = 1;
67
+ }
68
+
69
+ message ComponentUpdatedBody {
70
+ string id = 1;
71
+ string json = 2;
72
+ }
73
+
74
+ message InitMessagesFinishedBody {}
75
+
76
+ message Payload {
77
+ optional OpenExternalUrlBody open_external_url = 1;
78
+ optional OpenNFTDialogBody open_nft_dialog = 2;
79
+ optional CreateEntityBody create_entity = 3;
80
+ optional RemoveEntityBody remove_entity = 4;
81
+ optional UpdateEntityComponentBody update_entity_component = 5;
82
+ optional AttachEntityComponentBody attach_entity_component = 6;
83
+ optional ComponentRemovedBody component_removed = 7;
84
+ optional SetEntityParentBody set_entity_parent = 8;
85
+ optional QueryBody query = 9;
86
+ optional ComponentCreatedBody component_created = 10;
87
+ optional ComponentDisposedBody component_disposed = 11;
88
+ optional ComponentUpdatedBody component_updated = 12;
89
+ optional InitMessagesFinishedBody init_messages_finished = 13;
90
+ }
91
+
92
+ enum EAType {
93
+ EAT_INVALID_EA_TYPE = 0;
94
+ EAT_OPEN_EXTERNAL_URL = 1;
95
+ EAT_OPEN_NFT_DIALOG = 2;
96
+ EAT_CREATE_ENTITY = 3;
97
+ EAT_REMOVE_ENTITY = 4;
98
+ EAT_UPDATE_ENTITY_COMPONENT = 5;
99
+ EAT_ATTACH_ENTITY_COMPONENT = 6;
100
+ EAT_COMPONENT_REMOVED = 7;
101
+ EAT_SET_ENTITY_PARENT = 8;
102
+ EAT_QUERY = 9;
103
+ EAT_COMPONENT_CREATED = 10;
104
+ EAT_COMPONENT_DISPOSED = 11;
105
+ EAT_COMPONENT_UPDATED = 12;
106
+ EAT_INIT_MESSAGES_FINISHED = 13;
107
+ }
108
+
109
+ message EntityAction {
110
+ EAType type = 1;
111
+ optional string tag = 2;
112
+ Payload payload = 3;
113
+ }
114
+
115
+ message ManyEntityAction {
116
+ repeated EntityAction actions = 1;
117
+ }
118
+
119
+ message SendBatchResponse {
120
+ repeated EventData events = 1;
121
+ }
122
+
123
+ message UnsubscribeRequest {
124
+ string event_id = 1;
125
+ }
126
+ message SubscribeRequest {
127
+ string event_id = 1;
128
+ }
129
+ message SubscribeResponse {}
130
+ message UnsubscribeResponse {}
131
+
132
+ // Events
133
+ enum EventDataType {
134
+ EDT_GENERIC = 0;
135
+ EDT_POSITION_CHANGED = 1;
136
+ EDT_ROTATION_CHANGED = 2;
137
+ }
138
+
139
+ message GenericPayload {
140
+ string event_id = 3;
141
+ string event_data = 4;
142
+ }
143
+
144
+ message ReadOnlyVector3 {
145
+ float x = 1;
146
+ float y = 2;
147
+ float z = 3;
148
+ }
149
+
150
+ message ReadOnlyQuaternion {
151
+ float x = 1;
152
+ float y = 2;
153
+ float z = 3;
154
+ float w = 4;
155
+ }
156
+
157
+ message PositionChangedPayload {
158
+ ReadOnlyVector3 position = 1;
159
+ ReadOnlyVector3 camera_position = 2;
160
+ float player_height = 3;
161
+ }
162
+
163
+ message RotationChangedPayload {
164
+ ReadOnlyVector3 rotation = 1;
165
+ ReadOnlyQuaternion quaternion = 2;
166
+ }
167
+
168
+ message EventData {
169
+ EventDataType type = 1;
170
+ optional GenericPayload generic = 2;
171
+ optional PositionChangedPayload position_changed = 3;
172
+ optional RotationChangedPayload rotation_changed = 4;
173
+ }
174
+
175
+ service EngineAPIService {
176
+ rpc SendBatch(ManyEntityAction) returns (SendBatchResponse) {}
177
+ rpc Subscribe(SubscribeRequest) returns (SubscribeResponse) {}
178
+ rpc Unsubscribe(UnsubscribeRequest) returns (UnsubscribeResponse) {}
179
+ }
@@ -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 MinimalRunnableEntity {
6
7
  repeated decentraland.common.ContentMapping content = 1;
@@ -40,7 +41,7 @@ message GetCurrentRealmResponse {
40
41
  }
41
42
 
42
43
  message GetExplorerConfigurationResponse {
43
- string clientUri = 1;
44
+ string client_uri = 1;
44
45
  map<string, string> configurations = 2;
45
46
  }
46
47
 
@@ -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
+ }