@dcl/protocol 1.0.0-2825359340.commit-a339b67 → 1.0.0-2861674650.commit-28abb06

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.
@@ -1,9 +1,6 @@
1
1
  syntax = "proto3";
2
2
 
3
- message ContentMapping {
4
- string file = 1;
5
- string hash = 2;
6
- }
3
+ import "common/ContentMapping.proto";
7
4
 
8
5
  message MinimalRunnableEntity {
9
6
  repeated ContentMapping content = 1;
@@ -1,9 +1,6 @@
1
1
  syntax = "proto3";
2
2
 
3
- message ContentMapping {
4
- string file = 1;
5
- string hash = 2;
6
- }
3
+ import "common/ContentMapping.proto";
7
4
 
8
5
  message MappingsResponse {
9
6
  string parcel_id = 1;
@@ -1,6 +1,6 @@
1
1
  syntax = "proto3";
2
2
 
3
- import "UserIdentity.proto";
3
+ import "common/UserData.proto";
4
4
 
5
5
  message Player {
6
6
  string user_id = 1;
@@ -25,4 +25,4 @@ service PlayersService {
25
25
  rpc GetPlayerData(GetPlayerDataRequest) returns (PlayersGetUserDataResponse) {}
26
26
  rpc GetPlayersInScene(GetPlayersInSceneRequest) returns (PlayerListResponse) {}
27
27
  rpc GetConnectedPlayers(GetConnectedPlayersRequest) returns (PlayerListResponse) {}
28
- }
28
+ }
@@ -1,27 +1,6 @@
1
1
  syntax = "proto3";
2
2
 
3
- message Snapshots {
4
- string face256 = 1;
5
- string body = 2;
6
- }
7
-
8
- message AvatarForUserData {
9
- string body_shape = 1;
10
- string skin_color = 2;
11
- string hair_color = 3;
12
- string eye_color = 4;
13
- repeated string wearables = 5;
14
- Snapshots snapshots = 6;
15
- }
16
-
17
- message UserData {
18
- string display_name = 1;
19
- optional string public_key = 2;
20
- bool has_connected_web3 = 3;
21
- string user_id = 4;
22
- int32 version = 5;
23
- AvatarForUserData avatar = 6;
24
- }
3
+ import "common/UserData.proto";
25
4
 
26
5
  message GetUserDataRequest {}
27
6
 
@@ -0,0 +1,6 @@
1
+ syntax = "proto3";
2
+
3
+ message ContentMapping {
4
+ string file = 1;
5
+ string hash = 2;
6
+ }
@@ -0,0 +1,24 @@
1
+ syntax = "proto3";
2
+
3
+ message Snapshots {
4
+ string face256 = 1;
5
+ string body = 2;
6
+ }
7
+
8
+ message AvatarForUserData {
9
+ string body_shape = 1;
10
+ string skin_color = 2;
11
+ string hair_color = 3;
12
+ string eye_color = 4;
13
+ repeated string wearables = 5;
14
+ Snapshots snapshots = 6;
15
+ }
16
+
17
+ message UserData {
18
+ string display_name = 1;
19
+ optional string public_key = 2;
20
+ bool has_connected_web3 = 3;
21
+ string user_id = 4;
22
+ int32 version = 5;
23
+ AvatarForUserData avatar = 6;
24
+ }
@@ -0,0 +1,64 @@
1
+ syntax = "proto3";
2
+
3
+ package protocol;
4
+
5
+ message Position {
6
+ double time = 2;
7
+ float position_x = 3;
8
+ float position_y = 4;
9
+ float position_z = 5;
10
+ float rotation_x = 6;
11
+ float rotation_y = 7;
12
+ float rotation_z = 8;
13
+ float rotation_w = 9;
14
+ }
15
+
16
+ message Profile {
17
+ double time = 2;
18
+ string profile_version = 3;
19
+ enum ProfileType {
20
+ LOCAL = 0;
21
+ DEPLOYED = 1;
22
+ }
23
+ ProfileType profile_type = 4;
24
+ }
25
+
26
+ message ProfileRequest {
27
+ double time = 2;
28
+ string profile_version = 3;
29
+ string user_id = 4;
30
+ }
31
+
32
+ message ProfileResponse {
33
+ double time = 2;
34
+ string serialized_profile = 3;
35
+ }
36
+
37
+ message Chat {
38
+ double time = 2;
39
+ string message_id = 3;
40
+ string text = 4;
41
+ }
42
+
43
+ message Scene {
44
+ double time = 2;
45
+ string scene_id = 3;
46
+ string data = 4;
47
+ }
48
+
49
+ message Voice {
50
+ bytes encoded_samples = 2;
51
+ uint32 index = 3;
52
+ }
53
+
54
+ message Data {
55
+ oneof message {
56
+ Position position = 1;
57
+ Profile profile = 2;
58
+ ProfileRequest profile_request = 3;
59
+ ProfileResponse profile_response = 4;
60
+ Chat chat = 5;
61
+ Scene scene = 6;
62
+ Voice voice = 7;
63
+ }
64
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-2825359340.commit-a339b67",
3
+ "version": "1.0.0-2861674650.commit-28abb06",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,14 +8,14 @@
8
8
  },
9
9
  "keywords": [],
10
10
  "author": "",
11
- "license": "ISC",
11
+ "license": "Apache-2.0",
12
12
  "devDependencies": {
13
- "proto-compatibility-tool": "^1.0.0"
13
+ "proto-compatibility-tool": "^1.1.1-20220811001836.commit-414739b"
14
14
  },
15
15
  "files": [
16
16
  "kernel",
17
17
  "renderer-protocol",
18
18
  "ecs"
19
19
  ],
20
- "commit": "a339b67daa963ae663bdfc9580d9b975013802c2"
20
+ "commit": "28abb06ea925fe30065fde6bb29a1bfc833c66ac"
21
21
  }
@@ -1,14 +1,16 @@
1
1
  syntax = "proto3";
2
2
 
3
3
  message CRDTManyMessages {
4
- string sceneId = 1;
4
+ string scene_id = 1;
5
5
  bytes payload = 2;
6
+ int32 scene_number = 3;
6
7
  }
7
8
 
8
9
  message CRDTResponse {}
9
10
 
10
11
  message PullCRDTRequest {
11
- string sceneId = 1;
12
+ string scene_id = 1;
13
+ int32 scene_number = 3;
12
14
  }
13
15
 
14
16
  // CRDTStreamRequest is deprecated