@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.
- package/out-ts/{bff/authentication-service.gen.ts → decentraland/bff/authentication_service.gen.ts} +0 -0
- package/out-ts/{bff/comms-director-service.gen.ts → decentraland/bff/comms_director_service.gen.ts} +2 -2
- package/out-ts/{bff/comms-service.gen.ts → decentraland/bff/comms_service.gen.ts} +1 -1
- package/out-ts/{bff/http-endpoints.gen.ts → decentraland/bff/http_endpoints.gen.ts} +1 -1
- package/out-ts/{bff/topics-service.gen.ts → decentraland/bff/topics_service.gen.ts} +0 -0
- package/out-ts/{common/ContentMapping.gen.ts → decentraland/common/content_mapping.gen.ts} +0 -0
- package/out-ts/{kernel/apis/common-sdk/UserData.gen.ts → decentraland/common/sdk/user_data.gen.ts} +1 -1
- package/out-ts/{common/Vectors.gen.ts → decentraland/common/vectors.gen.ts} +0 -0
- package/out-ts/{kernel/apis/CommunicationsController.gen.ts → decentraland/kernel/apis/communications_controller.gen.ts} +2 -2
- package/out-ts/{kernel/apis/DevTools.gen.ts → decentraland/kernel/apis/dev_tools.gen.ts} +2 -2
- package/out-ts/{kernel/apis/EngineAPI.gen.ts → decentraland/kernel/apis/engine_api.gen.ts} +112 -112
- package/out-ts/{kernel/apis/EnvironmentAPI.gen.ts → decentraland/kernel/apis/environment_api.gen.ts} +3 -3
- package/out-ts/{kernel/apis/EthereumController.gen.ts → decentraland/kernel/apis/ethereum_controller.gen.ts} +2 -2
- package/out-ts/{kernel/apis/ExperimentalAPI.gen.ts → decentraland/kernel/apis/experimental_api.gen.ts} +2 -2
- package/out-ts/{kernel/apis/ParcelIdentity.gen.ts → decentraland/kernel/apis/parcel_identity.gen.ts} +3 -3
- package/out-ts/{kernel/apis/Permissions.gen.ts → decentraland/kernel/apis/permissions.gen.ts} +27 -27
- package/out-ts/{kernel/apis/Players.gen.ts → decentraland/kernel/apis/players.gen.ts} +3 -3
- package/out-ts/{kernel/apis/PortableExperiences.gen.ts → decentraland/kernel/apis/portable_experiences.gen.ts} +2 -2
- package/out-ts/{kernel/apis/RestrictedActions.gen.ts → decentraland/kernel/apis/restricted_actions.gen.ts} +2 -2
- package/out-ts/{kernel/apis/SignedFetch.gen.ts → decentraland/kernel/apis/signed_fetch.gen.ts} +2 -2
- package/out-ts/{kernel/apis/SocialController.gen.ts → decentraland/kernel/apis/social_controller.gen.ts} +2 -2
- package/out-ts/{kernel/apis/UserActionModule.gen.ts → decentraland/kernel/apis/user_action_module.gen.ts} +2 -2
- package/out-ts/{kernel/apis/UserIdentity.gen.ts → decentraland/kernel/apis/user_identity.gen.ts} +3 -3
- package/package.json +5 -9
- package/proto/buf.yaml +45 -0
- package/{bff/authentication-service.proto → proto/decentraland/bff/authentication_service.proto} +0 -1
- package/{bff/comms-director-service.proto → proto/decentraland/bff/comms_director_service.proto} +1 -1
- package/{bff/comms-service.proto → proto/decentraland/bff/comms_service.proto} +2 -2
- package/{bff/http-endpoints.proto → proto/decentraland/bff/http_endpoints.proto} +1 -2
- package/{bff/topics-service.proto → proto/decentraland/bff/topics_service.proto} +0 -1
- package/proto/decentraland/common/colors.proto +15 -0
- package/{common/ContentMapping.proto → proto/decentraland/common/content_mapping.proto} +0 -0
- package/{common/Entity.proto → proto/decentraland/common/entity.proto} +1 -1
- package/{kernel/apis/common-sdk/UserData.proto → proto/decentraland/common/sdk/user_data.proto} +1 -0
- package/{common/Vectors.proto → proto/decentraland/common/vectors.proto} +0 -0
- package/{kernel/apis/CommunicationsController.proto → proto/decentraland/kernel/apis/communications_controller.proto} +1 -0
- package/{kernel/apis/DevTools.proto → proto/decentraland/kernel/apis/dev_tools.proto} +1 -0
- package/proto/decentraland/kernel/apis/engine_api.proto +179 -0
- package/{kernel/apis/EnvironmentAPI.proto → proto/decentraland/kernel/apis/environment_api.proto} +3 -2
- package/{kernel/apis/EthereumController.proto → proto/decentraland/kernel/apis/ethereum_controller.proto} +2 -1
- package/{kernel/apis/ExperimentalAPI.proto → proto/decentraland/kernel/apis/experimental_api.proto} +1 -0
- package/{kernel/apis/ParcelIdentity.proto → proto/decentraland/kernel/apis/parcel_identity.proto} +2 -1
- package/proto/decentraland/kernel/apis/permissions.proto +32 -0
- package/{kernel/apis/Players.proto → proto/decentraland/kernel/apis/players.proto} +3 -2
- package/{kernel/apis/PortableExperiences.proto → proto/decentraland/kernel/apis/portable_experiences.proto} +1 -0
- package/{kernel/apis/RestrictedActions.proto → proto/decentraland/kernel/apis/restricted_actions.proto} +1 -0
- package/{kernel/apis/SignedFetch.proto → proto/decentraland/kernel/apis/signed_fetch.proto} +1 -0
- package/{kernel/apis/SocialController.proto → proto/decentraland/kernel/apis/social_controller.proto} +1 -0
- package/{kernel/apis/UserActionModule.proto → proto/decentraland/kernel/apis/user_action_module.proto} +1 -0
- package/{kernel/apis/UserIdentity.proto → proto/decentraland/kernel/apis/user_identity.proto} +3 -2
- package/{kernel/comms/comms-rfc-4.proto → proto/decentraland/kernel/comms/rfc4/comms.proto} +2 -2
- package/{kernel/comms/ws-comms-rfc-5.proto → proto/decentraland/kernel/comms/rfc5/ws_comms.proto} +1 -1
- package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
- package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
- package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
- package/{kernel → proto/decentraland/kernel}/comms/v3/archipelago.proto +7 -7
- package/{kernel → proto/decentraland/kernel}/comms/v3/comms.proto +3 -3
- package/{renderer-protocol/EngineInterface.proto → proto/decentraland/renderer/engine_interface.proto} +2 -2
- package/{renderer-protocol/RendererProtocol.proto → proto/decentraland/renderer/protocol.proto} +2 -0
- package/{ecs → proto/decentraland/sdk}/components/README.md +3 -3
- package/{ecs → proto/decentraland/sdk}/components/Transform.md +0 -0
- package/{ecs/components/Animator.proto → proto/decentraland/sdk/components/animator.proto} +3 -2
- package/{ecs/components/AudioSource.proto → proto/decentraland/sdk/components/audio_source.proto} +3 -2
- package/{ecs/components/AudioStream.proto → proto/decentraland/sdk/components/audio_stream.proto} +3 -2
- package/proto/decentraland/sdk/components/avatar_attach.proto +19 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +19 -0
- package/{ecs/components/AvatarShape.proto → proto/decentraland/sdk/components/avatar_shape.proto} +7 -6
- package/{ecs/components/Billboard.proto → proto/decentraland/sdk/components/billboard.proto} +3 -2
- package/proto/decentraland/sdk/components/camera_mode.proto +10 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +12 -0
- package/proto/decentraland/sdk/components/common/action_button.proto +20 -0
- package/proto/decentraland/sdk/components/common/camera_mode_value.proto +8 -0
- package/{ecs → proto/decentraland/sdk}/components/common/id.md +0 -0
- package/{ecs → proto/decentraland/sdk}/components/common/id.proto +1 -0
- package/proto/decentraland/sdk/components/common/texts.proto +14 -0
- package/{ecs/components/GltfContainer.proto → proto/decentraland/sdk/components/gltf_container.proto} +3 -2
- package/proto/decentraland/sdk/components/material.proto +59 -0
- package/proto/decentraland/sdk/components/mesh_collider.proto +35 -0
- package/{ecs/components/MeshRenderer.proto → proto/decentraland/sdk/components/mesh_renderer.proto} +3 -2
- package/proto/decentraland/sdk/components/nft_shape.proto +40 -0
- package/proto/decentraland/sdk/components/pointer_events.proto +29 -0
- package/{ecs/components/PointerEventsResult.proto → proto/decentraland/sdk/components/pointer_events_result.proto} +7 -6
- package/proto/decentraland/sdk/components/pointer_lock.proto +9 -0
- package/proto/decentraland/sdk/components/raycast.proto +21 -0
- package/proto/decentraland/sdk/components/raycast_result.proto +25 -0
- package/{ecs/components/TextShape.proto → proto/decentraland/sdk/components/text_shape.proto} +11 -10
- package/proto/decentraland/sdk/components/ui_background.proto +11 -0
- package/proto/decentraland/sdk/components/ui_text.proto +16 -0
- package/{ecs/components/UiTransform.proto → proto/decentraland/sdk/components/ui_transform.proto} +50 -49
- package/proto/decentraland/sdk/components/visibility_component.proto +9 -0
- package/proto/google/LICENSE +27 -0
- package/proto/google/README.md +1 -0
- package/proto/google/api/annotations.json +83 -0
- package/proto/google/api/annotations.proto +11 -0
- package/proto/google/api/http.json +86 -0
- package/proto/google/api/http.proto +31 -0
- package/proto/google/protobuf/api.json +118 -0
- package/proto/google/protobuf/api.proto +34 -0
- package/proto/google/protobuf/descriptor.json +739 -0
- package/proto/google/protobuf/descriptor.proto +286 -0
- package/proto/google/protobuf/source_context.json +20 -0
- package/proto/google/protobuf/source_context.proto +7 -0
- package/proto/google/protobuf/type.json +202 -0
- package/proto/google/protobuf/type.proto +89 -0
- package/{bff-services.proto → public/bff-services.proto} +5 -5
- package/public/sdk-apis.proto +21 -0
- package/ecs/components/AvatarAttach.proto +0 -16
- package/ecs/components/AvatarModifierArea.proto +0 -16
- package/ecs/components/CameraMode.proto +0 -9
- package/ecs/components/CameraModeArea.proto +0 -11
- package/ecs/components/Material.proto +0 -59
- package/ecs/components/MeshCollider.proto +0 -35
- package/ecs/components/NFTShape.proto +0 -38
- package/ecs/components/OnPointerDown.proto +0 -12
- package/ecs/components/OnPointerDownResult.proto +0 -17
- package/ecs/components/OnPointerUp.proto +0 -12
- package/ecs/components/OnPointerUpResult.proto +0 -17
- package/ecs/components/PointerEvents.proto +0 -28
- package/ecs/components/PointerLock.proto +0 -8
- package/ecs/components/Raycast.proto +0 -19
- package/ecs/components/RaycastResult.proto +0 -24
- package/ecs/components/UiBackground.proto +0 -10
- package/ecs/components/UiText.proto +0 -25
- package/ecs/components/VisibilityComponent.proto +0 -8
- package/ecs/components/common/ActionButton.proto +0 -18
- package/ecs/components/common/CameraModeValue.proto +0 -6
- package/ecs/components/common/Color3.proto +0 -8
- package/ecs/components/common/Color4.proto +0 -8
- package/ecs/components/common/Vector3.proto +0 -7
- package/kernel/apis/EngineAPI.proto +0 -180
- package/kernel/apis/Permissions.proto +0 -30
- package/kernel/apis/SceneStateStorageController.proto +0 -114
- package/kernel/comms/v1/broker.proto +0 -114
- package/kernel/comms/v1/comms.proto +0 -68
- package/kernel/comms/v2/comms.proto +0 -61
- package/out-ts/kernel/apis/SceneStateStorageController.gen.ts +0 -1331
- 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",
|
package/out-ts/{kernel/apis/UserIdentity.gen.ts → decentraland/kernel/apis/user_identity.gen.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { UserData } from "
|
|
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-
|
|
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
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"kernel",
|
|
28
|
-
"renderer-protocol",
|
|
29
|
-
"*.proto",
|
|
30
|
-
"out-ts"
|
|
24
|
+
"proto",
|
|
25
|
+
"out-ts",
|
|
26
|
+
"public"
|
|
31
27
|
],
|
|
32
|
-
"commit": "
|
|
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
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
+
}
|
package/{kernel/apis/EnvironmentAPI.proto → proto/decentraland/kernel/apis/environment_api.proto}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
|
+
package decentraland.kernel.apis;
|
|
2
3
|
|
|
3
|
-
import "common/
|
|
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
|
|
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
|
|
20
|
+
string hex_encoded_message = 2;
|
|
20
21
|
string signature = 3;
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -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 "
|
|
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 {
|
package/{kernel/apis/UserIdentity.proto → proto/decentraland/kernel/apis/user_identity.proto}
RENAMED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
|
+
package decentraland.kernel.apis;
|
|
2
3
|
|
|
3
|
-
import "
|
|
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
|
|
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
|
-
|
|
71
|
+
VC_OPUS = 0;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -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
|
+
}
|