@dcl/protocol 1.0.0-23951495761.commit-bf007b9 → 1.0.0-24197129021.commit-3a0cc03

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 (25) hide show
  1. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +21 -0
  2. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +85 -6
  3. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +41 -0
  5. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +261 -9
  6. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  7. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +8 -0
  8. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +35 -1
  9. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  10. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +1 -0
  11. package/out-js/decentraland/sdk/components/common/input_action.gen.js +6 -0
  12. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  13. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +89 -3
  14. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +316 -2
  15. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +34 -0
  16. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +6 -0
  17. package/package.json +3 -3
  18. package/proto/decentraland/kernel/apis/restricted_actions.proto +7 -0
  19. package/proto/decentraland/kernel/comms/rfc4/comms.proto +25 -1
  20. package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
  21. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
  22. package/proto/decentraland/sdk/components/avatar_shape.proto +5 -0
  23. package/proto/decentraland/sdk/components/common/input_action.proto +1 -0
  24. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  25. package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
@@ -17,6 +17,7 @@ export enum InputAction {
17
17
  IA_ACTION_4 = 11,
18
18
  IA_ACTION_5 = 12,
19
19
  IA_ACTION_6 = 13,
20
+ IA_MODIFIER = 14,
20
21
  UNRECOGNIZED = -1,
21
22
  }
22
23
 
@@ -64,6 +65,9 @@ export function inputActionFromJSON(object: any): InputAction {
64
65
  case 13:
65
66
  case "IA_ACTION_6":
66
67
  return InputAction.IA_ACTION_6;
68
+ case 14:
69
+ case "IA_MODIFIER":
70
+ return InputAction.IA_MODIFIER;
67
71
  case -1:
68
72
  case "UNRECOGNIZED":
69
73
  default:
@@ -101,6 +105,8 @@ export function inputActionToJSON(object: InputAction): string {
101
105
  return "IA_ACTION_5";
102
106
  case InputAction.IA_ACTION_6:
103
107
  return "IA_ACTION_6";
108
+ case InputAction.IA_MODIFIER:
109
+ return "IA_MODIFIER";
104
110
  case InputAction.UNRECOGNIZED:
105
111
  default:
106
112
  return "UNRECOGNIZED";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-23951495761.commit-bf007b9",
3
+ "version": "1.0.0-24197129021.commit-3a0cc03",
4
4
  "description": "",
5
5
  "repository": "decentraland/protocol.git",
6
6
  "homepage": "https://github.com/decentraland/protocol#readme",
@@ -13,7 +13,7 @@
13
13
  "test": "./scripts/check-proto-compabitility.sh"
14
14
  },
15
15
  "devDependencies": {
16
- "@protobuf-ts/protoc": "^2.8.1",
16
+ "@protobuf-ts/protoc": "^2.11.0",
17
17
  "proto-compatibility-tool": "^1.1.2-20220925163655.commit-25bd040",
18
18
  "typescript": "^5.0.4"
19
19
  },
@@ -30,5 +30,5 @@
30
30
  "out-js",
31
31
  "public"
32
32
  ],
33
- "commit": "bf007b91c1558bcf8fe53c0e14ae434303d0c646"
33
+ "commit": "3a0cc035775e4cdc8564f6f714ba5912ac5cf8f8"
34
34
  }
@@ -16,6 +16,7 @@ message TeleportToRequest {
16
16
 
17
17
  message TriggerEmoteRequest {
18
18
  string predefined_emote = 1;
19
+ optional uint32 mask = 2;
19
20
  }
20
21
 
21
22
  message ChangeRealmRequest {
@@ -40,6 +41,7 @@ message CommsAdapterRequest {
40
41
  message TriggerSceneEmoteRequest {
41
42
  string src = 1;
42
43
  optional bool loop = 2;
44
+ optional uint32 mask = 3;
43
45
  }
44
46
 
45
47
  message SuccessResponse {
@@ -60,6 +62,8 @@ message CopyToClipboardRequest {
60
62
 
61
63
  message EmptyResponse { }
62
64
 
65
+ message StopEmoteRequest { }
66
+
63
67
  service RestrictedActionsService {
64
68
  // MovePlayerTo will move the player to a position relative to the current scene.
65
69
  // If 'duration' field is used in the request, the success response depends on the
@@ -90,4 +94,7 @@ service RestrictedActionsService {
90
94
 
91
95
  // CopyToClipboard copies the provided text into the clipboard
92
96
  rpc CopyToClipboard(CopyToClipboardRequest) returns (EmptyResponse) {}
97
+
98
+ // StopEmote will stop the current emote
99
+ rpc StopEmote(StopEmoteRequest) returns (SuccessResponse) {}
93
100
  }
@@ -18,6 +18,7 @@ message Packet {
18
18
  PlayerEmote player_emote = 9;
19
19
  SceneEmote scene_emote = 10;
20
20
  MovementCompressed movement_compressed = 12;
21
+ LookAtPosition look_at_position = 13;
21
22
  }
22
23
  uint32 protocol_version = 11;
23
24
  }
@@ -84,13 +85,32 @@ message MovementCompressed {
84
85
  int32 temporal_data = 1; // bit-compressed: timestamp + animations
85
86
  int64 movement_data = 2; // bit-compressed: position + velocity
86
87
  int32 head_sync_data = 3; // bit-compressed: enabled flags + yaw + pitch
87
- int32 point_at_data = 4; // bit-compressed: flag + point coordinates
88
+ int32 point_at_data = 4; // bit-compressed: flag + point coordinates
88
89
  }
89
90
 
90
91
  message PlayerEmote {
91
92
  uint32 incremental_id = 1;
92
93
  string urn = 2;
93
94
  float timestamp = 3;
95
+ optional bool is_stopping = 4; // true means the emote has been stopped in the sender's client
96
+ optional bool is_repeating = 5; // true when it is not the first time the looping animation plays
97
+ optional int32 interaction_id = 6; // identifies an interaction univocaly, established when the start animation is triggered
98
+ optional int32 social_emote_outcome = 7; // -1 means it does not use an outcome animation
99
+ optional bool is_reacting = 8; // to a social emote started by other user
100
+ optional string social_emote_initiator = 9; // wallet address of the user that initiated social emote
101
+ optional string target_avatar = 10; // wallet address of the user whose avatar is the target of a directed emote
102
+ optional uint32 mask = 11; // mask for which bones an animation applies to.
103
+ }
104
+
105
+ // Message sent to force an avatar to look at a position
106
+ message LookAtPosition
107
+ {
108
+ float timestamp = 1;
109
+ // world position
110
+ float position_x = 2;
111
+ float position_y = 3;
112
+ float position_z = 4;
113
+ string target_avatar_wallet_address = 5;
94
114
  }
95
115
 
96
116
  message SceneEmote {
@@ -123,6 +143,10 @@ message ProfileResponse {
123
143
  message Chat {
124
144
  string message = 1;
125
145
  double timestamp = 2;
146
+
147
+ // Extension: optional forwarded_from to identify the original sender when
148
+ // messages are forwarded through an SFU
149
+ optional string forwarded_from = 3;
126
150
  }
127
151
 
128
152
  message Scene {
@@ -0,0 +1,44 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1212;
6
+
7
+ enum PBAudioAnalysisMode {
8
+ MODE_RAW = 0;
9
+ MODE_LOGARITHMIC = 1;
10
+ }
11
+
12
+ message PBAudioAnalysis {
13
+
14
+ // Parameters section
15
+ PBAudioAnalysisMode mode = 1;
16
+
17
+ // Used only when mode == MODE_LOGARITHMIC
18
+ optional float amplitude_gain = 100;
19
+ optional float bands_gain = 101;
20
+ // End when mode == MODE_LOGARITHMIC
21
+
22
+ // End Parameters section
23
+
24
+ // Result section
25
+ float amplitude = 200;
26
+
27
+ // Protobuf doesn't support fixed arrays -> 8 band fields
28
+ float band_0 = 201;
29
+ float band_1 = 202;
30
+ float band_2 = 203;
31
+ float band_3 = 204;
32
+ float band_4 = 205;
33
+ float band_5 = 206;
34
+ float band_6 = 207;
35
+ float band_7 = 208;
36
+
37
+ // End Result section
38
+
39
+ // Future fields
40
+ // float spectral_centroid = 13;
41
+ // float spectral_flux = 14;
42
+ // bool onset = 15;
43
+ // float bpm = 16;
44
+ }
@@ -0,0 +1,21 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.sdk.components;
4
+
5
+ import "decentraland/sdk/components/common/id.proto";
6
+
7
+ option (common.ecs_component_id) = 1211;
8
+
9
+ // The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
10
+ // as the avatar movement speed, jump height etc.
11
+ message PBAvatarLocomotionSettings {
12
+ optional float walk_speed = 1; // Maximum speed when walking (in meters per second)
13
+ optional float jog_speed = 2; // Maximum speed when jogging (in meters per second)
14
+ optional float run_speed = 3; // Maximum speed when running (in meters per second)
15
+ optional float jump_height = 4; // Height of a regular jump (in meters)
16
+ optional float run_jump_height = 5; // Height of a jump while running (in meters)
17
+ optional float hard_landing_cooldown = 6; // Cooldown time after a hard landing before the avatar can move again (in seconds)
18
+ optional float double_jump_height = 7; // Height of the double jump (in meters)
19
+ optional float gliding_speed = 8; // Maximum speed when gliding (in meters per second)
20
+ optional float gliding_falling_speed = 9; // Maximum falling speed when gliding (in meters per second)
21
+ }
@@ -42,3 +42,8 @@ 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
+ }
@@ -17,6 +17,7 @@ enum InputAction {
17
17
  IA_ACTION_4 = 11;
18
18
  IA_ACTION_5 = 12;
19
19
  IA_ACTION_6 = 13;
20
+ IA_MODIFIER = 14;
20
21
  }
21
22
 
22
23
  // PointerEventType is a kind of interaction that can be detected.
@@ -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,7 +10,9 @@ 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
13
14
  message PBVirtualCamera {
14
15
  optional common.CameraTransition default_transition = 1;
15
16
  optional uint32 look_at_entity = 2;
17
+ optional float fov = 3; // default: 60
16
18
  }