@dcl/protocol 1.0.0-29255960851.commit-cd43ffd → 1.0.0-29274665765.commit-1e0422c

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 (49) hide show
  1. package/README.md +0 -217
  2. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +0 -19
  3. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1 -54
  4. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  5. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -21
  6. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +4 -124
  7. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  8. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +2 -0
  9. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +15 -2
  10. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -1
  11. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +0 -8
  12. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +1 -35
  13. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  14. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +0 -56
  15. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -166
  16. package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +16 -1
  17. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +0 -34
  18. package/package.json +6 -9
  19. package/proto/buf.yaml +47 -0
  20. package/proto/decentraland/kernel/apis/restricted_actions.proto +0 -5
  21. package/proto/decentraland/kernel/comms/rfc4/comms.proto +0 -11
  22. package/proto/decentraland/sdk/components/avatar_emote_command.proto +3 -1
  23. package/proto/decentraland/sdk/components/avatar_shape.proto +0 -5
  24. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  25. package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
  26. package/proto/google/LICENSE +27 -0
  27. package/proto/google/README.md +1 -0
  28. package/proto/google/api/annotations.json +83 -0
  29. package/proto/google/api/annotations.proto +11 -0
  30. package/proto/google/api/http.json +86 -0
  31. package/proto/google/api/http.proto +31 -0
  32. package/proto/google/protobuf/api.json +118 -0
  33. package/proto/google/protobuf/api.proto +34 -0
  34. package/proto/google/protobuf/descriptor.json +739 -0
  35. package/proto/google/protobuf/descriptor.proto +286 -0
  36. package/proto/google/protobuf/source_context.json +20 -0
  37. package/proto/google/protobuf/source_context.proto +7 -0
  38. package/proto/google/protobuf/type.json +202 -0
  39. package/proto/google/protobuf/type.proto +89 -0
  40. package/proto/decentraland/common/options.proto +0 -51
  41. package/proto/decentraland/common/quantization_example.proto +0 -164
  42. package/proto/decentraland/pulse/pulse_client.proto +0 -79
  43. package/proto/decentraland/pulse/pulse_server.proto +0 -144
  44. package/proto/decentraland/pulse/pulse_shared.proto +0 -57
  45. package/protoc-gen-bitwise/generator_csharp.js +0 -248
  46. package/protoc-gen-bitwise/options.js +0 -139
  47. package/protoc-gen-bitwise/plugin.js +0 -87
  48. package/protoc-gen-bitwise/runtime/cs/Quantize.cs +0 -70
  49. package/protoc-gen-bitwise/wire.js +0 -239
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-29255960851.commit-cd43ffd",
3
+ "version": "1.0.0-29274665765.commit-1e0422c",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,11 +13,10 @@
13
13
  "license": "Apache-2.0",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
- "test": "./scripts/check-proto-compabitility.sh",
17
- "gen:test": "node protoc-gen-bitwise/test/generator.test.js"
16
+ "test": "./scripts/check-proto-compabitility.sh"
18
17
  },
19
18
  "devDependencies": {
20
- "@protobuf-ts/protoc": "^2.11.0",
19
+ "@protobuf-ts/protoc": "^2.8.1",
21
20
  "proto-compatibility-tool": "^1.1.2-20220925163655.commit-25bd040",
22
21
  "typescript": "^5.0.4"
23
22
  },
@@ -29,12 +28,10 @@
29
28
  "protobufjs": "7.2.4"
30
29
  },
31
30
  "files": [
32
- "proto/decentraland",
31
+ "proto",
33
32
  "out-ts",
34
33
  "out-js",
35
- "public",
36
- "protoc-gen-bitwise/*.js",
37
- "protoc-gen-bitwise/runtime"
34
+ "public"
38
35
  ],
39
- "commit": "cd43ffd67622c1aaf5820bd592a99ea48f3fbcde"
36
+ "commit": "1e0422c4db1ced770755de0c62daf1eb31489808"
40
37
  }
package/proto/buf.yaml ADDED
@@ -0,0 +1,47 @@
1
+ version: v1
2
+ breaking:
3
+ use:
4
+ - WIRE_JSON
5
+ ignore:
6
+ - google
7
+ lint:
8
+ use:
9
+ - DIRECTORY_SAME_PACKAGE
10
+ - PACKAGE_DEFINED
11
+ - PACKAGE_DIRECTORY_MATCH
12
+ - PACKAGE_SAME_DIRECTORY
13
+ - ENUM_PASCAL_CASE
14
+ - ENUM_VALUE_UPPER_SNAKE_CASE
15
+ - FIELD_LOWER_SNAKE_CASE
16
+ - MESSAGE_PASCAL_CASE
17
+ - ONEOF_LOWER_SNAKE_CASE
18
+ - PACKAGE_LOWER_SNAKE_CASE
19
+ - RPC_PASCAL_CASE
20
+ - SERVICE_PASCAL_CASE
21
+ - PACKAGE_SAME_CSHARP_NAMESPACE
22
+ - PACKAGE_SAME_GO_PACKAGE
23
+ - PACKAGE_SAME_JAVA_MULTIPLE_FILES
24
+ - PACKAGE_SAME_JAVA_PACKAGE
25
+ - PACKAGE_SAME_PHP_NAMESPACE
26
+ - PACKAGE_SAME_RUBY_PACKAGE
27
+ - PACKAGE_SAME_SWIFT_PREFIX
28
+ - ENUM_FIRST_VALUE_ZERO
29
+ - ENUM_NO_ALLOW_ALIAS
30
+ - IMPORT_NO_WEAK
31
+ - IMPORT_NO_PUBLIC
32
+ - IMPORT_USED
33
+ - FILE_LOWER_SNAKE_CASE
34
+ # Ignored:the default value is used
35
+ # - ENUM_ZERO_VALUE_SUFFIX
36
+ # Ignored: if a prefix is needed in the target language, implement a preprocessor
37
+ # - ENUM_VALUE_PREFIX
38
+ # Not wished
39
+ # - PACKAGE_VERSION_SUFFIX
40
+ # TODO: See if this needs to be added
41
+ # - RPC_REQUEST_RESPONSE_UNIQUE
42
+ # - RPC_REQUEST_STANDARD_NAME
43
+ # - RPC_RESPONSE_STANDARD_NAME
44
+ # - SERVICE_SUFFIX
45
+ ignore:
46
+ - google
47
+ - decentraland/renderer/engine_interface.proto
@@ -63,8 +63,6 @@ message CopyToClipboardRequest {
63
63
 
64
64
  message EmptyResponse { }
65
65
 
66
- message StopEmoteRequest { }
67
-
68
66
  service RestrictedActionsService {
69
67
  // MovePlayerTo will move the player to a position relative to the current scene.
70
68
  // If 'duration' field is used in the request, the success response depends on the
@@ -95,7 +93,4 @@ service RestrictedActionsService {
95
93
 
96
94
  // CopyToClipboard copies the provided text into the clipboard
97
95
  rpc CopyToClipboard(CopyToClipboardRequest) returns (EmptyResponse) {}
98
-
99
- // StopEmote will stop the current emote
100
- rpc StopEmote(StopEmoteRequest) returns (SuccessResponse) {}
101
96
  }
@@ -94,14 +94,6 @@ message PlayerEmote {
94
94
  uint32 incremental_id = 1;
95
95
  string urn = 2;
96
96
  float timestamp = 3;
97
- optional bool is_stopping = 4; // true means the emote has been stopped in the sender's client
98
- optional bool is_repeating = 5; // true when it is not the first time the looping animation plays
99
- optional int32 interaction_id = 6; // identifies an interaction univocaly, established when the start animation is triggered
100
- optional int32 social_emote_outcome = 7; // -1 means it does not use an outcome animation
101
- optional bool is_reacting = 8; // to a social emote started by other user
102
- optional string social_emote_initiator = 9; // wallet address of the user that initiated social emote
103
- optional string target_avatar = 10; // wallet address of the user whose avatar is the target of a directed emote
104
- optional uint32 mask = 11; // mask for which bones an animation applies to.
105
97
  }
106
98
 
107
99
  message SceneEmote {
@@ -134,9 +126,6 @@ message ProfileResponse {
134
126
  message Chat {
135
127
  string message = 1;
136
128
  double timestamp = 2;
137
- // Extension: optional forwarded_from to identify the original sender when
138
- // messages are forwarded through an SFU
139
- optional string forwarded_from = 3;
140
129
  }
141
130
 
142
131
  message Scene {
@@ -2,6 +2,7 @@ syntax = "proto3";
2
2
  package decentraland.sdk.components;
3
3
 
4
4
  import "decentraland/sdk/components/common/id.proto";
5
+ import "decentraland/sdk/components/common/avatar_mask.proto";
5
6
  option (common.ecs_component_id) = 1088;
6
7
 
7
8
  // AvatarEmoteCommand is a grow only value set, used to signal the renderer about
@@ -9,5 +10,6 @@ option (common.ecs_component_id) = 1088;
9
10
  message PBAvatarEmoteCommand {
10
11
  string emote_urn = 1;
11
12
  bool loop = 2;
12
- uint32 timestamp = 3; // monotonic counter
13
+ uint32 timestamp = 3; // monotonic counter
14
+ optional decentraland.sdk.components.common.AvatarMask mask = 4;
13
15
  }
@@ -42,8 +42,3 @@ message PBAvatarShape {
42
42
  optional bool show_only_wearables = 12; // hides the skin + hair + facial features (default: false)
43
43
  }
44
44
 
45
- // Mask for which bones an animation applies to.
46
- enum AvatarEmoteMask {
47
- AEM_FULL_BODY = 0;
48
- AEM_UPPER_BODY = 1;
49
- }
@@ -25,4 +25,4 @@ message PBLightSource {
25
25
  optional float inner_angle = 9; // default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179.
26
26
  optional float outer_angle = 10; // default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179.
27
27
  }
28
- }
28
+ }
@@ -10,9 +10,7 @@ option (common.ecs_component_id) = 1076;
10
10
  // an 'instant' transition (like using speed/time = 0)
11
11
  // * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
12
12
  // the holding entity transform).
13
- // * The fov defines the Field of View of the virtual camera
14
13
  message PBVirtualCamera {
15
14
  optional common.CameraTransition default_transition = 1;
16
15
  optional uint32 look_at_entity = 2;
17
- optional float fov = 3; // default: 60
18
16
  }
@@ -0,0 +1,27 @@
1
+ Copyright 2014, Google Inc. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are
5
+ met:
6
+
7
+ * Redistributions of source code must retain the above copyright
8
+ notice, this list of conditions and the following disclaimer.
9
+ * Redistributions in binary form must reproduce the above
10
+ copyright notice, this list of conditions and the following disclaimer
11
+ in the documentation and/or other materials provided with the
12
+ distribution.
13
+ * Neither the name of Google Inc. nor the names of its
14
+ contributors may be used to endorse or promote products derived from
15
+ this software without specific prior written permission.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1 @@
1
+ This folder contains stripped and pre-parsed definitions of common Google types. These files are not used by protobuf.js directly but are here so you can use or include them where required.
@@ -0,0 +1,83 @@
1
+ {
2
+ "nested": {
3
+ "google": {
4
+ "nested": {
5
+ "api": {
6
+ "nested": {
7
+ "http": {
8
+ "type": "HttpRule",
9
+ "id": 72295728,
10
+ "extend": "google.protobuf.MethodOptions"
11
+ },
12
+ "HttpRule": {
13
+ "oneofs": {
14
+ "pattern": {
15
+ "oneof": [
16
+ "get",
17
+ "put",
18
+ "post",
19
+ "delete",
20
+ "patch",
21
+ "custom"
22
+ ]
23
+ }
24
+ },
25
+ "fields": {
26
+ "get": {
27
+ "type": "string",
28
+ "id": 2
29
+ },
30
+ "put": {
31
+ "type": "string",
32
+ "id": 3
33
+ },
34
+ "post": {
35
+ "type": "string",
36
+ "id": 4
37
+ },
38
+ "delete": {
39
+ "type": "string",
40
+ "id": 5
41
+ },
42
+ "patch": {
43
+ "type": "string",
44
+ "id": 6
45
+ },
46
+ "custom": {
47
+ "type": "CustomHttpPattern",
48
+ "id": 8
49
+ },
50
+ "selector": {
51
+ "type": "string",
52
+ "id": 1
53
+ },
54
+ "body": {
55
+ "type": "string",
56
+ "id": 7
57
+ },
58
+ "additionalBindings": {
59
+ "rule": "repeated",
60
+ "type": "HttpRule",
61
+ "id": 11
62
+ }
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "protobuf": {
68
+ "nested": {
69
+ "MethodOptions": {
70
+ "fields": {},
71
+ "extensions": [
72
+ [
73
+ 1000,
74
+ 536870911
75
+ ]
76
+ ]
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,11 @@
1
+ syntax = "proto3";
2
+
3
+ package google.api;
4
+
5
+ import "google/api/http.proto";
6
+ import "google/protobuf/descriptor.proto";
7
+
8
+ extend google.protobuf.MethodOptions {
9
+
10
+ HttpRule http = 72295728;
11
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "nested": {
3
+ "google": {
4
+ "nested": {
5
+ "api": {
6
+ "nested": {
7
+ "Http": {
8
+ "fields": {
9
+ "rules": {
10
+ "rule": "repeated",
11
+ "type": "HttpRule",
12
+ "id": 1
13
+ }
14
+ }
15
+ },
16
+ "HttpRule": {
17
+ "oneofs": {
18
+ "pattern": {
19
+ "oneof": [
20
+ "get",
21
+ "put",
22
+ "post",
23
+ "delete",
24
+ "patch",
25
+ "custom"
26
+ ]
27
+ }
28
+ },
29
+ "fields": {
30
+ "get": {
31
+ "type": "string",
32
+ "id": 2
33
+ },
34
+ "put": {
35
+ "type": "string",
36
+ "id": 3
37
+ },
38
+ "post": {
39
+ "type": "string",
40
+ "id": 4
41
+ },
42
+ "delete": {
43
+ "type": "string",
44
+ "id": 5
45
+ },
46
+ "patch": {
47
+ "type": "string",
48
+ "id": 6
49
+ },
50
+ "custom": {
51
+ "type": "CustomHttpPattern",
52
+ "id": 8
53
+ },
54
+ "selector": {
55
+ "type": "string",
56
+ "id": 1
57
+ },
58
+ "body": {
59
+ "type": "string",
60
+ "id": 7
61
+ },
62
+ "additionalBindings": {
63
+ "rule": "repeated",
64
+ "type": "HttpRule",
65
+ "id": 11
66
+ }
67
+ }
68
+ },
69
+ "CustomHttpPattern": {
70
+ "fields": {
71
+ "kind": {
72
+ "type": "string",
73
+ "id": 1
74
+ },
75
+ "path": {
76
+ "type": "string",
77
+ "id": 2
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,31 @@
1
+ syntax = "proto3";
2
+
3
+ package google.api;
4
+
5
+ message Http {
6
+
7
+ repeated HttpRule rules = 1;
8
+ }
9
+
10
+ message HttpRule {
11
+
12
+ oneof pattern {
13
+
14
+ string get = 2;
15
+ string put = 3;
16
+ string post = 4;
17
+ string delete = 5;
18
+ string patch = 6;
19
+ CustomHttpPattern custom = 8;
20
+ }
21
+
22
+ string selector = 1;
23
+ string body = 7;
24
+ repeated HttpRule additional_bindings = 11;
25
+ }
26
+
27
+ message CustomHttpPattern {
28
+
29
+ string kind = 1;
30
+ string path = 2;
31
+ }
@@ -0,0 +1,118 @@
1
+ {
2
+ "nested": {
3
+ "google": {
4
+ "nested": {
5
+ "protobuf": {
6
+ "nested": {
7
+ "Api": {
8
+ "fields": {
9
+ "name": {
10
+ "type": "string",
11
+ "id": 1
12
+ },
13
+ "methods": {
14
+ "rule": "repeated",
15
+ "type": "Method",
16
+ "id": 2
17
+ },
18
+ "options": {
19
+ "rule": "repeated",
20
+ "type": "Option",
21
+ "id": 3
22
+ },
23
+ "version": {
24
+ "type": "string",
25
+ "id": 4
26
+ },
27
+ "sourceContext": {
28
+ "type": "SourceContext",
29
+ "id": 5
30
+ },
31
+ "mixins": {
32
+ "rule": "repeated",
33
+ "type": "Mixin",
34
+ "id": 6
35
+ },
36
+ "syntax": {
37
+ "type": "Syntax",
38
+ "id": 7
39
+ }
40
+ }
41
+ },
42
+ "Method": {
43
+ "fields": {
44
+ "name": {
45
+ "type": "string",
46
+ "id": 1
47
+ },
48
+ "requestTypeUrl": {
49
+ "type": "string",
50
+ "id": 2
51
+ },
52
+ "requestStreaming": {
53
+ "type": "bool",
54
+ "id": 3
55
+ },
56
+ "responseTypeUrl": {
57
+ "type": "string",
58
+ "id": 4
59
+ },
60
+ "responseStreaming": {
61
+ "type": "bool",
62
+ "id": 5
63
+ },
64
+ "options": {
65
+ "rule": "repeated",
66
+ "type": "Option",
67
+ "id": 6
68
+ },
69
+ "syntax": {
70
+ "type": "Syntax",
71
+ "id": 7
72
+ }
73
+ }
74
+ },
75
+ "Mixin": {
76
+ "fields": {
77
+ "name": {
78
+ "type": "string",
79
+ "id": 1
80
+ },
81
+ "root": {
82
+ "type": "string",
83
+ "id": 2
84
+ }
85
+ }
86
+ },
87
+ "SourceContext": {
88
+ "fields": {
89
+ "fileName": {
90
+ "type": "string",
91
+ "id": 1
92
+ }
93
+ }
94
+ },
95
+ "Option": {
96
+ "fields": {
97
+ "name": {
98
+ "type": "string",
99
+ "id": 1
100
+ },
101
+ "value": {
102
+ "type": "Any",
103
+ "id": 2
104
+ }
105
+ }
106
+ },
107
+ "Syntax": {
108
+ "values": {
109
+ "SYNTAX_PROTO2": 0,
110
+ "SYNTAX_PROTO3": 1
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
@@ -0,0 +1,34 @@
1
+ syntax = "proto3";
2
+
3
+ package google.protobuf;
4
+
5
+ import "google/protobuf/source_context.proto";
6
+ import "google/protobuf/type.proto";
7
+
8
+ message Api {
9
+
10
+ string name = 1;
11
+ repeated Method methods = 2;
12
+ repeated Option options = 3;
13
+ string version = 4;
14
+ SourceContext source_context = 5;
15
+ repeated Mixin mixins = 6;
16
+ Syntax syntax = 7;
17
+ }
18
+
19
+ message Method {
20
+
21
+ string name = 1;
22
+ string request_type_url = 2;
23
+ bool request_streaming = 3;
24
+ string response_type_url = 4;
25
+ bool response_streaming = 5;
26
+ repeated Option options = 6;
27
+ Syntax syntax = 7;
28
+ }
29
+
30
+ message Mixin {
31
+
32
+ string name = 1;
33
+ string root = 2;
34
+ }