@dcl/protocol 1.0.0-4659981125.commit-93719f9 → 1.0.0-4721150054.commit-85597a5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out-js/about.gen.d.ts +1 -0
- package/out-js/about.gen.js +6 -0
- package/out-js/about.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +1 -1
- package/out-js/decentraland/kernel/apis/environment_api.gen.js +1 -1
- package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +1 -29
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +22 -96
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +246 -0
- package/out-js/decentraland/kernel/apis/runtime.gen.js +307 -1
- package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +731 -420
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +437 -392
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
- package/out-js/decentraland/realm/about.gen.d.ts +620 -0
- package/out-js/decentraland/realm/about.gen.js +857 -0
- package/out-js/decentraland/realm/about.gen.js.map +1 -0
- package/out-ts/about.gen.ts +3 -0
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +1 -1
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +1 -90
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +367 -0
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +548 -493
- package/out-ts/decentraland/realm/about.gen.ts +1040 -0
- package/package.json +2 -2
- package/proto/decentraland/kernel/apis/environment_api.proto +1 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +5 -9
- package/proto/decentraland/kernel/apis/runtime.proto +32 -0
- package/proto/decentraland/kernel/comms/v3/archipelago.proto +47 -34
- package/proto/decentraland/realm/about.proto +73 -0
- package/public/about.proto +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-4721150054.commit-85597a5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"out-js",
|
|
27
27
|
"public"
|
|
28
28
|
],
|
|
29
|
-
"commit": "
|
|
29
|
+
"commit": "85597a5e332505742d1d68c3abfd676f9219814a"
|
|
30
30
|
}
|
|
@@ -59,7 +59,7 @@ message GetExplorerConfigurationRequest {}
|
|
|
59
59
|
message GetDecentralandTimeRequest {}
|
|
60
60
|
|
|
61
61
|
service EnvironmentApiService {
|
|
62
|
-
// @deprecated, only available for SDK6 compatibility
|
|
62
|
+
// @deprecated, only available for SDK6 compatibility. Use runtime_api instead
|
|
63
63
|
rpc GetBootstrapData(GetBootstrapDataRequest) returns (BootstrapDataResponse) {}
|
|
64
64
|
// @deprecated, only available for SDK6 compatibility. Needs migration
|
|
65
65
|
rpc IsPreviewMode(IsPreviewModeRequest) returns (PreviewModeResponse) {}
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package decentraland.kernel.apis;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
float x = 1;
|
|
6
|
-
float y = 2;
|
|
7
|
-
float z = 3;
|
|
8
|
-
}
|
|
4
|
+
import "decentraland/common/vectors.proto";
|
|
9
5
|
|
|
10
6
|
message MovePlayerToResponse { }
|
|
11
7
|
|
|
12
8
|
message MovePlayerToRequest {
|
|
13
|
-
Vector3 new_relative_position = 1;
|
|
14
|
-
optional Vector3 camera_target = 2;
|
|
9
|
+
decentraland.common.Vector3 new_relative_position = 1;
|
|
10
|
+
optional decentraland.common.Vector3 camera_target = 2;
|
|
15
11
|
}
|
|
16
12
|
|
|
17
13
|
message TeleportToRequest {
|
|
18
|
-
Vector3 world_position = 1;
|
|
19
|
-
optional Vector3 camera_target = 2;
|
|
14
|
+
decentraland.common.Vector3 world_position = 1;
|
|
15
|
+
optional decentraland.common.Vector3 camera_target = 2;
|
|
20
16
|
}
|
|
21
17
|
|
|
22
18
|
message TriggerEmoteResponse { }
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package decentraland.kernel.apis;
|
|
3
3
|
|
|
4
|
+
import "decentraland/common/content_mapping.proto";
|
|
5
|
+
|
|
4
6
|
// This API will contain all the information related to the world runtime.
|
|
5
7
|
// Things related to the user, players or the scene itself has they own api, and
|
|
6
8
|
// won't live here. (UserIdentity, Players, ParcelIdentity)
|
|
@@ -24,10 +26,40 @@ message GetWorldTimeResponse {
|
|
|
24
26
|
message GetRealmRequest {}
|
|
25
27
|
message GetWorldTimeRequest {}
|
|
26
28
|
|
|
29
|
+
message ReadFileRequest {
|
|
30
|
+
// name of the deployed file
|
|
31
|
+
string file_name = 1;
|
|
32
|
+
}
|
|
33
|
+
message ReadFileResponse {
|
|
34
|
+
// contents of the file
|
|
35
|
+
bytes content = 1;
|
|
36
|
+
// deployed hash/CID
|
|
37
|
+
string hash = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message CurrentSceneEntityRequest {}
|
|
41
|
+
message CurrentSceneEntityResponse {
|
|
42
|
+
// this is either the entityId or the full URN of the scene that is running
|
|
43
|
+
string urn = 1;
|
|
44
|
+
// contents of the deployed entities
|
|
45
|
+
repeated decentraland.common.ContentMapping content = 2;
|
|
46
|
+
// JSON serialization of the entity.metadata field
|
|
47
|
+
string metadata_json = 3;
|
|
48
|
+
// baseUrl used to resolve all content files
|
|
49
|
+
string base_url = 4;
|
|
50
|
+
}
|
|
51
|
+
|
|
27
52
|
service RuntimeService {
|
|
28
53
|
// Provides information about the current realm
|
|
29
54
|
rpc GetRealm(GetRealmRequest) returns (GetRealmResponse) {}
|
|
30
55
|
// Provides information about the Decentraland Time, which is coordinated
|
|
31
56
|
// across players.
|
|
32
57
|
rpc GetWorldTime(GetWorldTimeRequest) returns (GetWorldTimeResponse) {}
|
|
58
|
+
// Returns the file content of a deployed asset. If the file doesn't
|
|
59
|
+
// exist or cannot be retrieved, the RPC call throws an error.
|
|
60
|
+
// This method is called to load any assets deployed among the scene,
|
|
61
|
+
// runtime may cache this response much more than the provided "fetch" function.
|
|
62
|
+
rpc ReadFile(ReadFileRequest) returns (ReadFileResponse) {}
|
|
63
|
+
// Returns information about the current scene. This is the replacement of GetBootstrapData
|
|
64
|
+
rpc GetSceneInformation(CurrentSceneEntityRequest) returns (CurrentSceneEntityResponse) {}
|
|
33
65
|
}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
|
+
import "decentraland/common/vectors.proto";
|
|
4
|
+
|
|
3
5
|
package decentraland.kernel.comms.v3;
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
// Server->Client messsages
|
|
8
|
+
message ChallengeResponseMessage {
|
|
9
|
+
string challenge_to_sign = 1;
|
|
10
|
+
bool already_connected = 2;
|
|
8
11
|
}
|
|
9
12
|
|
|
10
|
-
message
|
|
11
|
-
|
|
12
|
-
double y = 2;
|
|
13
|
-
double z = 3;
|
|
13
|
+
message WelcomeMessage {
|
|
14
|
+
string peer_id = 1;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
message IslandChangedMessage {
|
|
17
18
|
string island_id = 1;
|
|
18
19
|
string conn_str = 2;
|
|
19
20
|
optional string from_island_id = 3;
|
|
20
|
-
map<string,
|
|
21
|
+
map<string, decentraland.common.Position> peers = 4;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
message LeftIslandMessage {
|
|
@@ -30,44 +31,56 @@ message JoinIslandMessage {
|
|
|
30
31
|
string peer_id = 2;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
repeated string peers = 2;
|
|
36
|
-
uint32 max_peers = 3;
|
|
37
|
-
Position3DMessage center = 4;
|
|
38
|
-
double radius = 5;
|
|
34
|
+
enum KickedReason {
|
|
35
|
+
KR_NEW_SESSION = 0;
|
|
39
36
|
}
|
|
40
37
|
|
|
41
|
-
message
|
|
42
|
-
|
|
38
|
+
message KickedMessage {
|
|
39
|
+
KickedReason reason = 1;
|
|
43
40
|
}
|
|
44
41
|
|
|
45
|
-
message
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
message ServerPacket {
|
|
43
|
+
oneof message {
|
|
44
|
+
ChallengeResponseMessage challenge_response = 1;
|
|
45
|
+
WelcomeMessage welcome = 2;
|
|
46
|
+
IslandChangedMessage island_changed = 3;
|
|
47
|
+
LeftIslandMessage left_island = 4;
|
|
48
|
+
JoinIslandMessage join_island = 5;
|
|
49
|
+
KickedMessage kicked = 6;
|
|
50
|
+
}
|
|
48
51
|
}
|
|
49
52
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
// Client->Server messsages
|
|
54
|
+
message ChallengeRequestMessage {
|
|
55
|
+
string address = 1;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
|
-
message
|
|
56
|
-
string
|
|
57
|
-
string room_id = 2;
|
|
58
|
-
repeated string user_ids = 3;
|
|
58
|
+
message SignedChallengeMessage {
|
|
59
|
+
string auth_chain_json = 1;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
message
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
message Heartbeat {
|
|
63
|
+
decentraland.common.Position position = 1;
|
|
64
|
+
optional string desired_room = 2;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
message
|
|
67
|
+
message ClientPacket {
|
|
67
68
|
oneof message {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
TransportAuthorizationResponse auth_response = 4;
|
|
69
|
+
ChallengeRequestMessage challenge_request = 1;
|
|
70
|
+
SignedChallengeMessage signed_challenge = 2;
|
|
71
|
+
Heartbeat heartbeat = 3;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
|
|
75
|
+
// Others
|
|
76
|
+
message IslandData {
|
|
77
|
+
string id = 1;
|
|
78
|
+
repeated string peers = 2;
|
|
79
|
+
uint32 max_peers = 3;
|
|
80
|
+
decentraland.common.Position center = 4;
|
|
81
|
+
double radius = 5;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message IslandStatusMessage {
|
|
85
|
+
repeated IslandData data = 1;
|
|
86
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.realm;
|
|
3
|
+
|
|
4
|
+
message AboutResponse {
|
|
5
|
+
bool healthy = 1;
|
|
6
|
+
AboutConfiguration configurations = 2;
|
|
7
|
+
ContentInfo content = 3;
|
|
8
|
+
CommsInfo comms = 4;
|
|
9
|
+
LambdasInfo lambdas = 5;
|
|
10
|
+
optional BffInfo bff = 6;
|
|
11
|
+
bool accepting_users = 7;
|
|
12
|
+
|
|
13
|
+
message MinimapConfiguration {
|
|
14
|
+
bool enabled = 1;
|
|
15
|
+
optional string data_image = 2;
|
|
16
|
+
optional string estate_image = 3;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message SkyboxConfiguration {
|
|
20
|
+
// only one value at a time
|
|
21
|
+
optional float fixed_hour = 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message AboutConfiguration {
|
|
25
|
+
optional string realm_name = 1;
|
|
26
|
+
uint32 network_id = 2;
|
|
27
|
+
repeated string global_scenes_urn = 3;
|
|
28
|
+
repeated string scenes_urn = 4;
|
|
29
|
+
optional MinimapConfiguration minimap = 5;
|
|
30
|
+
optional SkyboxConfiguration skybox = 6;
|
|
31
|
+
|
|
32
|
+
// A content server to be used to load the parcels around the user. Uses the POST /entities/active endpoint
|
|
33
|
+
// to continously fetch the parcels around the users. if null, then the default content server will be used
|
|
34
|
+
// if == "" then the city_loader will be disabled and the scenes_urn will be used to load the world
|
|
35
|
+
optional string city_loader_content_server = 7;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message ContentInfo {
|
|
39
|
+
// common properties
|
|
40
|
+
bool healthy = 1;
|
|
41
|
+
optional string version = 2;
|
|
42
|
+
optional string commit_hash = 3;
|
|
43
|
+
string public_url = 4;
|
|
44
|
+
}
|
|
45
|
+
message LambdasInfo {
|
|
46
|
+
// common properties
|
|
47
|
+
bool healthy = 1;
|
|
48
|
+
optional string version = 2;
|
|
49
|
+
optional string commit_hash = 3;
|
|
50
|
+
string public_url = 4;
|
|
51
|
+
}
|
|
52
|
+
message CommsInfo {
|
|
53
|
+
// common properties
|
|
54
|
+
bool healthy = 1;
|
|
55
|
+
optional string version = 2;
|
|
56
|
+
optional string commit_hash = 3;
|
|
57
|
+
optional string public_url = 4;
|
|
58
|
+
// specific properties
|
|
59
|
+
string protocol = 50;
|
|
60
|
+
optional int32 users_count = 51;
|
|
61
|
+
optional string fixed_adapter = 52;
|
|
62
|
+
}
|
|
63
|
+
message BffInfo {
|
|
64
|
+
// common properties
|
|
65
|
+
bool healthy = 1;
|
|
66
|
+
optional string version = 2;
|
|
67
|
+
optional string commit_hash = 3;
|
|
68
|
+
string public_url = 4;
|
|
69
|
+
// specific properties
|
|
70
|
+
optional int32 user_count = 51;
|
|
71
|
+
optional string protocol_version = 52;
|
|
72
|
+
}
|
|
73
|
+
}
|