@dcl/protocol 1.0.0-25748996127.commit-767845e → 1.0.0-25825802864.commit-1efee00

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 (128) hide show
  1. package/out-js/decentraland/common/texture.gen.d.ts +0 -18
  2. package/out-js/decentraland/common/texture.gen.js +4 -104
  3. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  4. package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +130 -0
  5. package/out-js/decentraland/kernel/apis/comms_api.gen.js +536 -1
  6. package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -1
  7. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +21 -109
  8. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +85 -388
  9. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  10. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +73 -0
  11. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +463 -9
  12. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  13. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +0 -2
  14. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +2 -19
  15. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -1
  16. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +0 -41
  17. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +3 -241
  18. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  19. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +8 -2
  20. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +36 -20
  21. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  22. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +1 -35
  23. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +3 -172
  24. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  25. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +1 -3
  26. package/out-js/decentraland/sdk/components/common/input_action.gen.js +1 -18
  27. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  28. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +0 -19
  29. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +3 -90
  30. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
  31. package/out-js/decentraland/sdk/components/material.gen.d.ts +0 -20
  32. package/out-js/decentraland/sdk/components/material.gen.js +2 -86
  33. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  34. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +0 -18
  35. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +4 -90
  36. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  37. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +3 -19
  38. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +4 -90
  39. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  40. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +0 -13
  41. package/out-js/decentraland/sdk/components/raycast.gen.js +2 -64
  42. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  43. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +0 -2
  44. package/out-js/decentraland/sdk/components/ui_input.gen.js +1 -14
  45. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
  46. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +0 -4
  47. package/out-js/decentraland/sdk/components/ui_text.gen.js +1 -30
  48. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  49. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +0 -33
  50. package/out-js/decentraland/sdk/components/ui_transform.gen.js +3 -176
  51. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  52. package/out-ts/decentraland/common/texture.gen.ts +4 -119
  53. package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +589 -0
  54. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +87 -411
  55. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +542 -2
  56. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +1 -20
  57. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +1 -292
  58. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +35 -23
  59. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +2 -218
  60. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +1 -18
  61. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +2 -108
  62. package/out-ts/decentraland/sdk/components/material.gen.ts +1 -102
  63. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +0 -99
  64. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +3 -100
  65. package/out-ts/decentraland/sdk/components/raycast.gen.ts +1 -73
  66. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +1 -19
  67. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +1 -40
  68. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +0 -193
  69. package/package.json +4 -7
  70. package/proto/decentraland/common/texture.proto +1 -8
  71. package/proto/decentraland/kernel/apis/comms_api.proto +37 -1
  72. package/proto/decentraland/kernel/apis/restricted_actions.proto +8 -39
  73. package/proto/decentraland/kernel/comms/rfc4/comms.proto +36 -0
  74. package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
  75. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +1 -2
  76. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +3 -0
  77. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +0 -21
  78. package/proto/decentraland/sdk/components/avatar_shape.proto +5 -1
  79. package/proto/decentraland/sdk/components/camera_mode_area.proto +3 -22
  80. package/proto/decentraland/sdk/components/common/input_action.proto +1 -3
  81. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +0 -13
  82. package/proto/decentraland/sdk/components/light_source.proto +1 -1
  83. package/proto/decentraland/sdk/components/material.proto +1 -13
  84. package/proto/decentraland/sdk/components/mesh_collider.proto +0 -7
  85. package/proto/decentraland/sdk/components/mesh_renderer.proto +3 -8
  86. package/proto/decentraland/sdk/components/particle_system.proto +5 -1
  87. package/proto/decentraland/sdk/components/primary_pointer_info.proto +0 -5
  88. package/proto/decentraland/sdk/components/raycast.proto +0 -13
  89. package/proto/decentraland/sdk/components/ui_canvas_information.proto +0 -6
  90. package/proto/decentraland/sdk/components/ui_input.proto +0 -1
  91. package/proto/decentraland/sdk/components/ui_text.proto +0 -3
  92. package/proto/decentraland/sdk/components/ui_transform.proto +0 -20
  93. package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
  94. package/public/sdk-components.proto +0 -4
  95. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +0 -45
  96. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +0 -138
  97. package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +0 -1
  98. package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +0 -36
  99. package/out-js/decentraland/sdk/components/avatar_movement.gen.js +0 -113
  100. package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +0 -1
  101. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +0 -48
  102. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +0 -207
  103. package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +0 -1
  104. package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +0 -66
  105. package/out-js/decentraland/sdk/components/gltf_node.gen.js +0 -69
  106. package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +0 -1
  107. package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +0 -43
  108. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +0 -122
  109. package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +0 -1
  110. package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +0 -52
  111. package/out-js/decentraland/sdk/components/input_modifier.gen.js +0 -233
  112. package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +0 -1
  113. package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +0 -183
  114. package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +0 -136
  115. package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +0 -249
  116. package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +0 -116
  117. package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +0 -139
  118. package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +0 -265
  119. package/proto/decentraland/sdk/components/avatar_movement.proto +0 -46
  120. package/proto/decentraland/sdk/components/avatar_movement_info.proto +0 -22
  121. package/proto/decentraland/sdk/components/camera_layer.proto +0 -30
  122. package/proto/decentraland/sdk/components/camera_layers.proto +0 -11
  123. package/proto/decentraland/sdk/components/global_light.proto +0 -22
  124. package/proto/decentraland/sdk/components/gltf_node.proto +0 -42
  125. package/proto/decentraland/sdk/components/gltf_node_state.proto +0 -20
  126. package/proto/decentraland/sdk/components/texture_camera.proto +0 -46
  127. package/proto/decentraland/sdk/components/ui_canvas.proto +0 -16
  128. package/proto/decentraland/sdk/components/ui_scroll_result.proto +0 -12
@@ -1,7 +1,6 @@
1
1
  /* eslint-disable */
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { Color4 } from "../../common/colors.gen";
4
- import { Vector2 } from "../../common/vectors.gen";
5
4
 
6
5
  export const protobufPackage = "decentraland.sdk.components";
7
6
 
@@ -473,55 +472,6 @@ export function pointerFilterModeToJSON(object: PointerFilterMode): string {
473
472
  }
474
473
  }
475
474
 
476
- export enum ShowScrollBar {
477
- SSB_BOTH = 0,
478
- SSB_ONLY_VERTICAL = 1,
479
- SSB_ONLY_HORIZONTAL = 2,
480
- SSB_HIDDEN = 3,
481
- UNRECOGNIZED = -1,
482
- }
483
-
484
- export function showScrollBarFromJSON(object: any): ShowScrollBar {
485
- switch (object) {
486
- case 0:
487
- case "SSB_BOTH":
488
- return ShowScrollBar.SSB_BOTH;
489
- case 1:
490
- case "SSB_ONLY_VERTICAL":
491
- return ShowScrollBar.SSB_ONLY_VERTICAL;
492
- case 2:
493
- case "SSB_ONLY_HORIZONTAL":
494
- return ShowScrollBar.SSB_ONLY_HORIZONTAL;
495
- case 3:
496
- case "SSB_HIDDEN":
497
- return ShowScrollBar.SSB_HIDDEN;
498
- case -1:
499
- case "UNRECOGNIZED":
500
- default:
501
- return ShowScrollBar.UNRECOGNIZED;
502
- }
503
- }
504
-
505
- export function showScrollBarToJSON(object: ShowScrollBar): string {
506
- switch (object) {
507
- case ShowScrollBar.SSB_BOTH:
508
- return "SSB_BOTH";
509
- case ShowScrollBar.SSB_ONLY_VERTICAL:
510
- return "SSB_ONLY_VERTICAL";
511
- case ShowScrollBar.SSB_ONLY_HORIZONTAL:
512
- return "SSB_ONLY_HORIZONTAL";
513
- case ShowScrollBar.SSB_HIDDEN:
514
- return "SSB_HIDDEN";
515
- case ShowScrollBar.UNRECOGNIZED:
516
- default:
517
- return "UNRECOGNIZED";
518
- }
519
- }
520
-
521
- export interface ScrollPositionValue {
522
- value?: { $case: "position"; position: Vector2 } | { $case: "reference"; reference: string } | undefined;
523
- }
524
-
525
475
  export interface PBUiTransform {
526
476
  parent: number;
527
477
  rightOf: number;
@@ -666,105 +616,10 @@ export interface PBUiTransform {
666
616
  opacity?:
667
617
  | number
668
618
  | undefined;
669
- /** reference for scroll_position. default empty */
670
- elementId?:
671
- | string
672
- | undefined;
673
- /** default position=(0,0) */
674
- scrollPosition?:
675
- | ScrollPositionValue
676
- | undefined;
677
- /** default ShowScrollBar.SSB_BOTH */
678
- scrollVisible?:
679
- | ShowScrollBar
680
- | undefined;
681
619
  /** default: 0 — controls render stacking order. Higher values appear in front of lower values. */
682
620
  zIndex?: number | undefined;
683
621
  }
684
622
 
685
- function createBaseScrollPositionValue(): ScrollPositionValue {
686
- return { value: undefined };
687
- }
688
-
689
- export namespace ScrollPositionValue {
690
- export function encode(message: ScrollPositionValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
691
- switch (message.value?.$case) {
692
- case "position":
693
- Vector2.encode(message.value.position, writer.uint32(10).fork()).ldelim();
694
- break;
695
- case "reference":
696
- writer.uint32(18).string(message.value.reference);
697
- break;
698
- }
699
- return writer;
700
- }
701
-
702
- export function decode(input: _m0.Reader | Uint8Array, length?: number): ScrollPositionValue {
703
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
704
- let end = length === undefined ? reader.len : reader.pos + length;
705
- const message = createBaseScrollPositionValue();
706
- while (reader.pos < end) {
707
- const tag = reader.uint32();
708
- switch (tag >>> 3) {
709
- case 1:
710
- if (tag !== 10) {
711
- break;
712
- }
713
-
714
- message.value = { $case: "position", position: Vector2.decode(reader, reader.uint32()) };
715
- continue;
716
- case 2:
717
- if (tag !== 18) {
718
- break;
719
- }
720
-
721
- message.value = { $case: "reference", reference: reader.string() };
722
- continue;
723
- }
724
- if ((tag & 7) === 4 || tag === 0) {
725
- break;
726
- }
727
- reader.skipType(tag & 7);
728
- }
729
- return message;
730
- }
731
-
732
- export function fromJSON(object: any): ScrollPositionValue {
733
- return {
734
- value: isSet(object.position)
735
- ? { $case: "position", position: Vector2.fromJSON(object.position) }
736
- : isSet(object.reference)
737
- ? { $case: "reference", reference: String(object.reference) }
738
- : undefined,
739
- };
740
- }
741
-
742
- export function toJSON(message: ScrollPositionValue): unknown {
743
- const obj: any = {};
744
- message.value?.$case === "position" &&
745
- (obj.position = message.value?.position ? Vector2.toJSON(message.value?.position) : undefined);
746
- message.value?.$case === "reference" && (obj.reference = message.value?.reference);
747
- return obj;
748
- }
749
-
750
- export function create<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(base?: I): ScrollPositionValue {
751
- return ScrollPositionValue.fromPartial(base ?? {});
752
- }
753
-
754
- export function fromPartial<I extends Exact<DeepPartial<ScrollPositionValue>, I>>(object: I): ScrollPositionValue {
755
- const message = createBaseScrollPositionValue();
756
- if (object.value?.$case === "position" && object.value?.position !== undefined && object.value?.position !== null) {
757
- message.value = { $case: "position", position: Vector2.fromPartial(object.value.position) };
758
- }
759
- if (
760
- object.value?.$case === "reference" && object.value?.reference !== undefined && object.value?.reference !== null
761
- ) {
762
- message.value = { $case: "reference", reference: object.value.reference };
763
- }
764
- return message;
765
- }
766
- }
767
-
768
623
  function createBasePBUiTransform(): PBUiTransform {
769
624
  return {
770
625
  parent: 0,
@@ -840,9 +695,6 @@ function createBasePBUiTransform(): PBUiTransform {
840
695
  borderLeftColor: undefined,
841
696
  borderRightColor: undefined,
842
697
  opacity: undefined,
843
- elementId: undefined,
844
- scrollPosition: undefined,
845
- scrollVisible: undefined,
846
698
  zIndex: undefined,
847
699
  };
848
700
  }
@@ -1068,15 +920,6 @@ export namespace PBUiTransform {
1068
920
  if (message.opacity !== undefined) {
1069
921
  writer.uint32(589).float(message.opacity);
1070
922
  }
1071
- if (message.elementId !== undefined) {
1072
- writer.uint32(594).string(message.elementId);
1073
- }
1074
- if (message.scrollPosition !== undefined) {
1075
- ScrollPositionValue.encode(message.scrollPosition, writer.uint32(602).fork()).ldelim();
1076
- }
1077
- if (message.scrollVisible !== undefined) {
1078
- writer.uint32(608).int32(message.scrollVisible);
1079
- }
1080
923
  if (message.zIndex !== undefined) {
1081
924
  writer.uint32(616).int32(message.zIndex);
1082
925
  }
@@ -1601,27 +1444,6 @@ export namespace PBUiTransform {
1601
1444
 
1602
1445
  message.opacity = reader.float();
1603
1446
  continue;
1604
- case 74:
1605
- if (tag !== 594) {
1606
- break;
1607
- }
1608
-
1609
- message.elementId = reader.string();
1610
- continue;
1611
- case 75:
1612
- if (tag !== 602) {
1613
- break;
1614
- }
1615
-
1616
- message.scrollPosition = ScrollPositionValue.decode(reader, reader.uint32());
1617
- continue;
1618
- case 76:
1619
- if (tag !== 608) {
1620
- break;
1621
- }
1622
-
1623
- message.scrollVisible = reader.int32() as any;
1624
- continue;
1625
1447
  case 77:
1626
1448
  if (tag !== 616) {
1627
1449
  break;
@@ -1727,9 +1549,6 @@ export namespace PBUiTransform {
1727
1549
  borderLeftColor: isSet(object.borderLeftColor) ? Color4.fromJSON(object.borderLeftColor) : undefined,
1728
1550
  borderRightColor: isSet(object.borderRightColor) ? Color4.fromJSON(object.borderRightColor) : undefined,
1729
1551
  opacity: isSet(object.opacity) ? Number(object.opacity) : undefined,
1730
- elementId: isSet(object.elementId) ? String(object.elementId) : undefined,
1731
- scrollPosition: isSet(object.scrollPosition) ? ScrollPositionValue.fromJSON(object.scrollPosition) : undefined,
1732
- scrollVisible: isSet(object.scrollVisible) ? showScrollBarFromJSON(object.scrollVisible) : undefined,
1733
1552
  zIndex: isSet(object.zIndex) ? Number(object.zIndex) : undefined,
1734
1553
  };
1735
1554
  }
@@ -1843,13 +1662,6 @@ export namespace PBUiTransform {
1843
1662
  message.borderRightColor !== undefined &&
1844
1663
  (obj.borderRightColor = message.borderRightColor ? Color4.toJSON(message.borderRightColor) : undefined);
1845
1664
  message.opacity !== undefined && (obj.opacity = message.opacity);
1846
- message.elementId !== undefined && (obj.elementId = message.elementId);
1847
- message.scrollPosition !== undefined &&
1848
- (obj.scrollPosition = message.scrollPosition ? ScrollPositionValue.toJSON(message.scrollPosition) : undefined);
1849
- message.scrollVisible !== undefined &&
1850
- (obj.scrollVisible = message.scrollVisible !== undefined
1851
- ? showScrollBarToJSON(message.scrollVisible)
1852
- : undefined);
1853
1665
  message.zIndex !== undefined && (obj.zIndex = Math.round(message.zIndex));
1854
1666
  return obj;
1855
1667
  }
@@ -1941,11 +1753,6 @@ export namespace PBUiTransform {
1941
1753
  ? Color4.fromPartial(object.borderRightColor)
1942
1754
  : undefined;
1943
1755
  message.opacity = object.opacity ?? undefined;
1944
- message.elementId = object.elementId ?? undefined;
1945
- message.scrollPosition = (object.scrollPosition !== undefined && object.scrollPosition !== null)
1946
- ? ScrollPositionValue.fromPartial(object.scrollPosition)
1947
- : undefined;
1948
- message.scrollVisible = object.scrollVisible ?? undefined;
1949
1756
  message.zIndex = object.zIndex ?? undefined;
1950
1757
  return message;
1951
1758
  }
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-25748996127.commit-767845e",
3
+ "version": "1.0.0-25825802864.commit-1efee00",
4
4
  "description": "",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/decentraland/protocol.git"
8
- },
5
+ "repository": "decentraland/protocol.git",
9
6
  "homepage": "https://github.com/decentraland/protocol#readme",
10
7
  "bugs": "https://github.com/decentraland/protocol/issues",
11
8
  "keywords": [],
@@ -16,7 +13,7 @@
16
13
  "test": "./scripts/check-proto-compabitility.sh"
17
14
  },
18
15
  "devDependencies": {
19
- "@protobuf-ts/protoc": "^2.8.1",
16
+ "@protobuf-ts/protoc": "^2.11.0",
20
17
  "proto-compatibility-tool": "^1.1.2-20220925163655.commit-25bd040",
21
18
  "typescript": "^5.0.4"
22
19
  },
@@ -33,5 +30,5 @@
33
30
  "out-js",
34
31
  "public"
35
32
  ],
36
- "commit": "767845ec17fea55379461c48fc6f4a6cdb7b219e"
33
+ "commit": "1efee0046880a719e1830160821138373fd0a93c"
37
34
  }
@@ -36,17 +36,10 @@ message VideoTexture {
36
36
  optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
37
37
  }
38
38
 
39
- message UiCanvasTexture {
40
- uint32 ui_canvas_entity = 1;
41
- optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp
42
- optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
43
- }
44
-
45
39
  message TextureUnion {
46
40
  oneof tex {
47
41
  Texture texture = 1; // default = null
48
42
  AvatarTexture avatar_texture = 2; // default = null
49
43
  VideoTexture video_texture = 3; // default = null
50
- UiCanvasTexture ui_texture = 4;
51
44
  }
52
- }
45
+ }
@@ -20,6 +20,42 @@ message VideoTracksActiveStreamsData {
20
20
  VideoTrackSourceType source_type = 3;
21
21
  }
22
22
 
23
+ message SubscribeToTopicRequest {
24
+ string topic = 1;
25
+ }
26
+
27
+ message SubscribeToTopicResponse {}
28
+
29
+ message UnsubscribeFromTopicRequest {
30
+ string topic = 1;
31
+ }
32
+
33
+ message UnsubscribeFromTopicResponse {}
34
+
35
+ message PublishDataRequest {
36
+ string topic = 1;
37
+ string data = 2;
38
+ }
39
+
40
+ message PublishDataResponse {}
41
+
42
+ message ConsumeMessagesRequest {
43
+ string topic = 1;
44
+ }
45
+
46
+ message ConsumeMessages {
47
+ string sender = 1;
48
+ string data = 2;
49
+ }
50
+
51
+ message ConsumeMessagesResponse {
52
+ repeated ConsumeMessages messages = 1;
53
+ }
54
+
23
55
  service CommsApiService {
24
56
  rpc GetActiveVideoStreams(VideoTracksActiveStreamsRequest) returns (VideoTracksActiveStreamsResponse) {}
25
- }
57
+ rpc SubscribeToTopic(SubscribeToTopicRequest) returns (SubscribeToTopicResponse) {}
58
+ rpc UnsubscribeFromTopic(UnsubscribeFromTopicRequest) returns (UnsubscribeFromTopicResponse) {}
59
+ rpc PublishData(PublishDataRequest) returns (PublishDataResponse) {}
60
+ rpc ConsumeMessages(ConsumeMessagesRequest) returns (ConsumeMessagesResponse) {}
61
+ }
@@ -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 {
@@ -48,53 +50,26 @@ message SuccessResponse {
48
50
 
49
51
  message TriggerEmoteResponse { }
50
52
 
51
- message MovePlayerToResponse {
52
- bool success = 1;
53
- }
54
-
55
- message WalkPlayerToRequest {
56
- decentraland.common.Vector3 new_relative_position = 1;
57
- float stop_threshold = 2;
58
- optional float timeout = 3; // max seconds before the request is failed; not passed to the movement scene
59
- }
60
-
61
- message WalkPlayerToResponse {
53
+ message MovePlayerToResponse {
62
54
  bool success = 1;
63
55
  }
64
56
 
65
57
  message TeleportToResponse { }
66
58
 
67
- message SetUiFocusRequest {
68
- string element_id = 1;
69
- }
70
-
71
- message ClearUiFocusRequest { }
72
-
73
- message GetUiFocusRequest { }
74
-
75
- message UiFocusResponse {
76
- // the element that is/was focussed
77
- optional string element_id = 1;
78
- }
79
-
80
59
  message CopyToClipboardRequest {
81
60
  string text = 1;
82
61
  }
83
62
 
84
63
  message EmptyResponse { }
85
64
 
65
+ message StopEmoteRequest { }
66
+
86
67
  service RestrictedActionsService {
87
68
  // MovePlayerTo will move the player to a position relative to the current scene.
88
69
  // If 'duration' field is used in the request, the success response depends on the
89
70
  // whole interpolation being completed or interrupted (e.g: by input movement)
90
71
  rpc MovePlayerTo(MovePlayerToRequest) returns (MovePlayerToResponse) {}
91
72
 
92
- // WalkPlayerTo will walk the player to a position relative to the current scene,
93
- // managed by the movement controller scene. Returns success when the player reaches
94
- // within stop_threshold distance, or false if the path is blocked, the player gets
95
- // stuck, the player interrupts the walk with manual input, or the optional timeout expires.
96
- rpc WalkPlayerTo(WalkPlayerToRequest) returns (WalkPlayerToResponse) {}
97
-
98
73
  // TeleportTo will move the user to the specified world LAND parcel coordinates
99
74
  rpc TeleportTo(TeleportToRequest) returns (TeleportToResponse) {}
100
75
 
@@ -117,15 +92,9 @@ service RestrictedActionsService {
117
92
  // TriggerSceneEmote will trigger an scene emote file in this current user
118
93
  rpc TriggerSceneEmote(TriggerSceneEmoteRequest) returns (SuccessResponse) {}
119
94
 
120
- // Sets the focus to a specific UI element
121
- rpc SetUiFocus(SetUiFocusRequest) returns (UiFocusResponse) {}
122
-
123
- // Clears the focus from any currently focused textentry or dropdown
124
- rpc ClearUiFocus(SetUiFocusRequest) returns (UiFocusResponse) {}
125
-
126
- // Returns the element_id of any currently focused textentry or dropdown
127
- rpc GetUiFocus(GetUiFocusRequest) returns (UiFocusResponse) {}
128
-
129
95
  // CopyToClipboard copies the provided text into the clipboard
130
96
  rpc CopyToClipboard(CopyToClipboardRequest) returns (EmptyResponse) {}
97
+
98
+ // StopEmote will stop the current emote
99
+ rpc StopEmote(StopEmoteRequest) returns (SuccessResponse) {}
131
100
  }
@@ -18,6 +18,9 @@ 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;
22
+ Reaction reaction = 14;
23
+ ChatReaction chat_reaction = 15;
21
24
  }
22
25
  uint32 protocol_version = 11;
23
26
  }
@@ -91,6 +94,14 @@ message PlayerEmote {
91
94
  uint32 incremental_id = 1;
92
95
  string urn = 2;
93
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.
94
105
  }
95
106
 
96
107
  message SceneEmote {
@@ -123,6 +134,9 @@ message ProfileResponse {
123
134
  message Chat {
124
135
  string message = 1;
125
136
  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;
126
140
  }
127
141
 
128
142
  message Scene {
@@ -138,3 +152,25 @@ message Voice {
138
152
  VC_OPUS = 0;
139
153
  }
140
154
  }
155
+
156
+ // Message sent to force an avatar to look at a position
157
+ message LookAtPosition {
158
+ float timestamp = 1;
159
+ // world position
160
+ float position_x = 2;
161
+ float position_y = 3;
162
+ float position_z = 4;
163
+ string target_avatar_wallet_address = 5;
164
+ }
165
+
166
+ message Reaction {
167
+ int32 emoji_index = 1;
168
+ float timestamp = 2;
169
+ int32 count = 3;
170
+ }
171
+
172
+ message ChatReaction {
173
+ int32 emoji_index = 1;
174
+ string message_id = 2;
175
+ string address = 3;
176
+ }
@@ -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
+ }
@@ -10,5 +10,4 @@ option (common.ecs_component_id) = 1091;
10
10
  message PBAvatarEquippedData {
11
11
  repeated string wearable_urns = 1;
12
12
  repeated string emote_urns = 2;
13
- repeated string force_render = 3; // slots that will render even if hidden
14
- }
13
+ }
@@ -15,4 +15,7 @@ message PBAvatarLocomotionSettings {
15
15
  optional float jump_height = 4; // Height of a regular jump (in meters)
16
16
  optional float run_jump_height = 5; // Height of a jump while running (in meters)
17
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)
18
21
  }
@@ -23,8 +23,6 @@ message PBAvatarModifierArea {
23
23
  decentraland.common.Vector3 area = 1; // the 3D size of the region
24
24
  repeated string exclude_ids = 2; // user IDs that can enter and remain unaffected
25
25
  repeated AvatarModifierType modifiers = 3; // list of modifiers to apply
26
- optional AvatarMovementSettings movement_settings = 4;
27
- optional bool use_collider_range = 5; // if true, the player will be considered inside the area when they are within 0.3m of the area. default true
28
26
  }
29
27
 
30
28
  // AvatarModifierType is an effect that should be applied to avatars inside the region.
@@ -32,22 +30,3 @@ enum AvatarModifierType {
32
30
  AMT_HIDE_AVATARS = 0; // avatars are invisible
33
31
  AMT_DISABLE_PASSPORTS = 1; // selecting (e.g. clicking) an avatar will not bring up their profile.
34
32
  }
35
-
36
- message AvatarMovementSettings {
37
- optional AvatarControlType control_mode = 1;
38
- // if not explicitly set, the following properties default to user's preference settings
39
- optional float run_speed = 2; // speed the player moves at, in m/s
40
- optional float friction = 3; // how fast the player gets up to speed or comes to rest. higher = more responsive
41
- optional float gravity = 4; // how fast the player accelerates vertically when not on a solid surface, in m/s. should normally be negative
42
- optional float jump_height = 5; // how high the player can jump, in meters. should normally be positive. gravity must have the same sign for jumping to be possible
43
- optional float max_fall_speed = 6; // max fall speed in m/s. should normally be negative
44
- optional float turn_speed = 7; // speed the player turns in tank mode, in radians/s
45
- optional float walk_speed = 8; // speed the player walks at, in m/s
46
- optional bool allow_weighted_movement = 9; // whether to allow player to move at a slower speed (e.g. with a walk-key or when using a gamepad/joystick). defaults to true
47
- }
48
-
49
- enum AvatarControlType {
50
- CCT_NONE = 0; // avatar cannot move
51
- CCT_RELATIVE = 1; // avatar moves relative to the camera origin
52
- CCT_TANK = 2; // avatar moves like a tank: left/right rotate the player, forward/backward advance/retreat the player
53
- }
@@ -40,6 +40,10 @@ message PBAvatarShape {
40
40
  repeated string emotes = 11; // available emotes (default empty)
41
41
 
42
42
  optional bool show_only_wearables = 12; // hides the skin + hair + facial features (default: false)
43
- repeated string force_render = 13; // slots that will render even if hidden
44
43
  }
45
44
 
45
+ // Mask for which bones an animation applies to.
46
+ enum AvatarEmoteMask {
47
+ AEM_FULL_BODY = 0;
48
+ AEM_UPPER_BODY = 1;
49
+ }
@@ -9,7 +9,7 @@ import "decentraland/sdk/components/common/id.proto";
9
9
  option (common.ecs_component_id) = 1071;
10
10
 
11
11
  // The CameraModeArea component can be attached to an Entity to define a region of space where
12
- // the player's camera mode (1st-person, 3rd-person or cinematic) is overridden.
12
+ // the player's camera mode (1st-person or 3rd-person) is overridden.
13
13
  //
14
14
  // The Entity's Transform position determines the center-point of the region, while its size is
15
15
  // given as a vector in the `area` property below. The Transform rotation is applied, but the scale
@@ -19,26 +19,7 @@ option (common.ecs_component_id) = 1071;
19
19
  //
20
20
  // Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
21
21
  // is actually a 3D volume.
22
- //
23
- // When mode is set to CtCinematic, the cinematic_settings field must also be provided.
24
22
  message PBCameraModeArea {
25
- decentraland.common.Vector3 area = 1; // the 3D size of the region
26
- common.CameraType mode = 2; // the camera mode to enforce
27
- optional CinematicSettings cinematic_settings = 3;
28
- optional bool use_collider_range = 4; // if true, the player will be considered inside the area when they are within 0.3m of the area. default true
29
- }
30
-
31
- message CinematicSettings {
32
- uint32 camera_entity = 1; // Entity that defines the cinematic camera transform.
33
- // Position -> camera's position
34
- // Rotation -> camera's direction
35
- // scale.z -> zoom level
36
- // scale.x and scale.y -> unused
37
- optional bool allow_manual_rotation = 2; // whether the user can move the camera's rotation. default false
38
- optional float yaw_range = 3; // how far the camera can rotate around the y-axis / look left/right, in radians. default unrestricted
39
- optional float pitch_range = 4; // how far the camera can rotate around the x-axis / look up-down, in radians. default unrestricted
40
- // note: cameras can never look up/down further than Vec3::Y
41
- optional float roll_range = 5; // how far the camera can rotate around the z-axis / tilt, in radians. default unrestricted
42
- optional float zoom_min = 6; // minimum zoom level. must be greater than 0. defaults to the input zoom level
43
- optional float zoom_max = 7; // maximum zoom level. must be greater than 0. defaults to the input zoom level
23
+ decentraland.common.Vector3 area = 1; // the 3D size of the region
24
+ common.CameraType mode = 2; // the camera mode to enforce
44
25
  }
@@ -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
+ // Modifier key (Shift on desktop)
20
21
  IA_MODIFIER = 14;
21
22
  }
22
23
 
@@ -28,9 +29,6 @@ enum PointerEventType {
28
29
  PET_HOVER_LEAVE = 3;
29
30
  PET_PROXIMITY_ENTER = 4;
30
31
  PET_PROXIMITY_LEAVE = 5;
31
- PET_DRAG_LOCKED = 6;
32
- PET_DRAG = 7;
33
- PET_DRAG_END = 8;
34
32
  }
35
33
 
36
34
  enum InteractionType {