@dcl/protocol 1.0.0-4543854409.commit-89f5875 → 1.0.0-45872166367.commit-57a13e1

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 (552) hide show
  1. package/README.md +241 -12
  2. package/out-js/about.gen.d.ts +1 -0
  3. package/out-js/{bff-services.gen.js → about.gen.js} +2 -2
  4. package/out-js/about.gen.js.map +1 -0
  5. package/out-js/decentraland/common/border_rect.gen.d.ts +23 -28
  6. package/out-js/decentraland/common/border_rect.gen.js +122 -21
  7. package/out-js/decentraland/common/border_rect.gen.js.map +1 -1
  8. package/out-js/decentraland/common/colors.gen.d.ts +29 -52
  9. package/out-js/decentraland/common/colors.gen.js +125 -40
  10. package/out-js/decentraland/common/colors.gen.js.map +1 -1
  11. package/out-js/decentraland/common/content_mapping.gen.d.ts +8 -20
  12. package/out-js/decentraland/common/content_mapping.gen.js +25 -18
  13. package/out-js/decentraland/common/content_mapping.gen.js.map +1 -1
  14. package/out-js/decentraland/common/gradient.gen.d.ts +50 -0
  15. package/out-js/decentraland/common/gradient.gen.js +147 -0
  16. package/out-js/decentraland/common/gradient.gen.js.map +1 -0
  17. package/out-js/decentraland/common/sdk/user_data.gen.d.ts +24 -176
  18. package/out-js/decentraland/common/sdk/user_data.gen.js +93 -72
  19. package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -1
  20. package/out-js/decentraland/common/texture.gen.d.ts +38 -252
  21. package/out-js/decentraland/common/texture.gen.js +156 -105
  22. package/out-js/decentraland/common/texture.gen.js.map +1 -1
  23. package/out-js/decentraland/common/vectors.gen.d.ts +38 -68
  24. package/out-js/decentraland/common/vectors.gen.js +172 -57
  25. package/out-js/decentraland/common/vectors.gen.js.map +1 -1
  26. package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +206 -0
  27. package/out-js/decentraland/kernel/apis/comms_api.gen.js +792 -0
  28. package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -0
  29. package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +64 -48
  30. package/out-js/decentraland/kernel/apis/communications_controller.gen.js +319 -36
  31. package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
  32. package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +18 -56
  33. package/out-js/decentraland/kernel/apis/dev_tools.gen.js +50 -36
  34. package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
  35. package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +186 -4088
  36. package/out-js/decentraland/kernel/apis/engine_api.gen.js +650 -1709
  37. package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
  38. package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +151 -691
  39. package/out-js/decentraland/kernel/apis/environment_api.gen.js +439 -320
  40. package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
  41. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +106 -440
  42. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +309 -225
  43. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -1
  44. package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +70 -518
  45. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +212 -156
  46. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
  47. package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +37 -128
  48. package/out-js/decentraland/kernel/apis/permissions.gen.js +112 -78
  49. package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
  50. package/out-js/decentraland/kernel/apis/players.gen.d.ts +54 -476
  51. package/out-js/decentraland/kernel/apis/players.gen.js +153 -111
  52. package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
  53. package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +84 -309
  54. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +273 -172
  55. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
  56. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +280 -605
  57. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +998 -350
  58. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
  59. package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +165 -208
  60. package/out-js/decentraland/kernel/apis/runtime.gen.js +660 -172
  61. package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
  62. package/out-js/decentraland/kernel/apis/scene.gen.d.ts +18 -132
  63. package/out-js/decentraland/kernel/apis/scene.gen.js +52 -38
  64. package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
  65. package/out-js/decentraland/kernel/apis/scene_credits.gen.d.ts +186 -0
  66. package/out-js/decentraland/kernel/apis/scene_credits.gen.js +388 -0
  67. package/out-js/decentraland/kernel/apis/scene_credits.gen.js.map +1 -0
  68. package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +75 -284
  69. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +292 -106
  70. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -1
  71. package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +26 -128
  72. package/out-js/decentraland/kernel/apis/social_controller.gen.js +79 -58
  73. package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
  74. package/out-js/decentraland/kernel/apis/testing.gen.d.ts +249 -0
  75. package/out-js/decentraland/kernel/apis/testing.gen.js +1073 -0
  76. package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -0
  77. package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +18 -48
  78. package/out-js/decentraland/kernel/apis/user_action_module.gen.js +49 -35
  79. package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -1
  80. package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +36 -352
  81. package/out-js/decentraland/kernel/apis/user_identity.gen.js +98 -70
  82. package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
  83. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +237 -551
  84. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1478 -244
  85. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
  86. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +81 -561
  87. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +318 -242
  88. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -1
  89. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +194 -748
  90. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +884 -557
  91. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
  92. package/out-js/decentraland/pulse/pulse_clusters.gen.d.ts +105 -0
  93. package/out-js/decentraland/pulse/pulse_clusters.gen.js +336 -0
  94. package/out-js/decentraland/pulse/pulse_clusters.gen.js.map +1 -0
  95. package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
  96. package/out-js/decentraland/quests/definitions.gen.js +2728 -0
  97. package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
  98. package/out-js/decentraland/realm/about.gen.d.ts +229 -0
  99. package/out-js/decentraland/realm/about.gen.js +1185 -0
  100. package/out-js/decentraland/realm/about.gen.js.map +1 -0
  101. package/out-js/decentraland/sdk/components/animator.gen.d.ts +19 -141
  102. package/out-js/decentraland/sdk/components/animator.gen.js +66 -72
  103. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
  104. package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +19 -32
  105. package/out-js/decentraland/sdk/components/audio_source.gen.js +62 -23
  106. package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -1
  107. package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +18 -24
  108. package/out-js/decentraland/sdk/components/audio_stream.gen.js +71 -21
  109. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
  110. package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +31 -20
  111. package/out-js/decentraland/sdk/components/avatar_attach.gen.js +162 -22
  112. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
  113. package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +38 -0
  114. package/out-js/decentraland/sdk/components/avatar_base.gen.js +148 -0
  115. package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
  116. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +64 -0
  117. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +171 -0
  118. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
  119. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +55 -0
  120. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +182 -0
  121. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
  122. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +10 -48
  123. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +38 -24
  124. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
  125. package/out-js/decentraland/sdk/components/avatar_nametag.gen.d.ts +58 -0
  126. package/out-js/decentraland/sdk/components/avatar_nametag.gen.js +117 -0
  127. package/out-js/decentraland/sdk/components/avatar_nametag.gen.js.map +1 -0
  128. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +37 -140
  129. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +49 -29
  130. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
  131. package/out-js/decentraland/sdk/components/billboard.gen.d.ts +21 -19
  132. package/out-js/decentraland/sdk/components/billboard.gen.js +49 -25
  133. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -1
  134. package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +8 -16
  135. package/out-js/decentraland/sdk/components/camera_mode.gen.js +24 -17
  136. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -1
  137. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +8 -44
  138. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +25 -18
  139. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
  140. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.d.ts +8 -0
  141. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js +34 -0
  142. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js.map +1 -0
  143. package/out-js/decentraland/sdk/components/common/camera_type.gen.js +4 -4
  144. package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -1
  145. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.d.ts +19 -0
  146. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js +80 -0
  147. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js.map +1 -0
  148. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +11 -0
  149. package/out-js/decentraland/sdk/components/common/input_action.gen.js +59 -7
  150. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
  151. package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
  152. package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
  153. package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
  154. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +8 -136
  155. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +30 -23
  156. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -1
  157. package/out-js/decentraland/sdk/components/common/texts.gen.js +7 -7
  158. package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -1
  159. package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +43 -0
  160. package/out-js/decentraland/sdk/components/engine_info.gen.js +107 -0
  161. package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
  162. package/out-js/decentraland/sdk/components/environment_fog.gen.d.ts +44 -0
  163. package/out-js/decentraland/sdk/components/environment_fog.gen.js +86 -0
  164. package/out-js/decentraland/sdk/components/environment_fog.gen.js.map +1 -0
  165. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +78 -0
  166. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js +308 -0
  167. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js.map +1 -0
  168. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +73 -0
  169. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js +231 -0
  170. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js.map +1 -0
  171. package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +12 -16
  172. package/out-js/decentraland/sdk/components/gltf_container.gen.js +59 -20
  173. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -1
  174. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +35 -0
  175. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +70 -0
  176. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
  177. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +57 -0
  178. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +164 -0
  179. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +1 -0
  180. package/out-js/decentraland/sdk/components/material.gen.d.ts +30 -3374
  181. package/out-js/decentraland/sdk/components/material.gen.js +134 -104
  182. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
  183. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +47 -181
  184. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +160 -123
  185. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
  186. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +43 -223
  187. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +145 -110
  188. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
  189. package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +11 -51
  190. package/out-js/decentraland/sdk/components/nft_shape.gen.js +37 -30
  191. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -1
  192. package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
  193. package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
  194. package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
  195. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +63 -187
  196. package/out-js/decentraland/sdk/components/pointer_events.gen.js +162 -69
  197. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
  198. package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +11 -209
  199. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +42 -23
  200. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -1
  201. package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +8 -16
  202. package/out-js/decentraland/sdk/components/pointer_lock.gen.js +24 -17
  203. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -1
  204. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +10 -250
  205. package/out-js/decentraland/sdk/components/raycast.gen.js +45 -36
  206. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
  207. package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +10 -348
  208. package/out-js/decentraland/sdk/components/raycast_result.gen.js +41 -22
  209. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -1
  210. package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +43 -0
  211. package/out-js/decentraland/sdk/components/realm_info.gen.js +151 -0
  212. package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
  213. package/out-js/decentraland/sdk/components/skybox.gen.d.ts +103 -0
  214. package/out-js/decentraland/sdk/components/skybox.gen.js +355 -0
  215. package/out-js/decentraland/sdk/components/skybox.gen.js.map +1 -0
  216. package/out-js/decentraland/sdk/components/sun.gen.d.ts +53 -0
  217. package/out-js/decentraland/sdk/components/sun.gen.js +114 -0
  218. package/out-js/decentraland/sdk/components/sun.gen.js.map +1 -0
  219. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +10 -174
  220. package/out-js/decentraland/sdk/components/text_shape.gen.js +58 -38
  221. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
  222. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.d.ts +77 -0
  223. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js +201 -0
  224. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js.map +1 -0
  225. package/out-js/decentraland/sdk/components/tween.gen.d.ts +220 -0
  226. package/out-js/decentraland/sdk/components/tween.gen.js +1213 -0
  227. package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
  228. package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
  229. package/out-js/decentraland/sdk/components/tween_sequence.gen.js +122 -0
  230. package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
  231. package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
  232. package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
  233. package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
  234. package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +8 -314
  235. package/out-js/decentraland/sdk/components/ui_background.gen.js +33 -26
  236. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -1
  237. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +10 -78
  238. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +46 -26
  239. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
  240. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +8 -16
  241. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +24 -17
  242. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -1
  243. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +10 -104
  244. package/out-js/decentraland/sdk/components/ui_input.gen.js +45 -25
  245. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
  246. package/out-js/decentraland/sdk/components/ui_input_binding.gen.d.ts +52 -0
  247. package/out-js/decentraland/sdk/components/ui_input_binding.gen.js +81 -0
  248. package/out-js/decentraland/sdk/components/ui_input_binding.gen.js.map +1 -0
  249. package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +10 -16
  250. package/out-js/decentraland/sdk/components/ui_input_result.gen.js +41 -20
  251. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
  252. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +20 -63
  253. package/out-js/decentraland/sdk/components/ui_text.gen.js +97 -24
  254. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
  255. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +51 -216
  256. package/out-js/decentraland/sdk/components/ui_transform.gen.js +489 -96
  257. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
  258. package/out-js/decentraland/sdk/components/video_player.gen.d.ts +18 -36
  259. package/out-js/decentraland/sdk/components/video_player.gen.js +69 -23
  260. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
  261. package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +16 -16
  262. package/out-js/decentraland/sdk/components/visibility_component.gen.js +41 -20
  263. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
  264. package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
  265. package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
  266. package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
  267. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
  268. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7842 -0
  269. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
  270. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
  271. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
  272. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
  273. package/out-js/decentraland/social_service/errors.gen.d.ts +96 -0
  274. package/out-js/decentraland/social_service/errors.gen.js +405 -0
  275. package/out-js/decentraland/social_service/errors.gen.js.map +1 -0
  276. package/out-js/decentraland/social_service/v1/social_service_v1.gen.d.ts +501 -0
  277. package/out-js/decentraland/social_service/v1/social_service_v1.gen.js +2517 -0
  278. package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
  279. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +1827 -0
  280. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +9308 -0
  281. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -0
  282. package/out-js/google/protobuf/descriptor.gen.d.ts +200 -87148
  283. package/out-js/google/protobuf/descriptor.gen.js +882 -707
  284. package/out-js/google/protobuf/descriptor.gen.js.map +1 -1
  285. package/out-js/google/protobuf/empty.gen.d.ts +8 -8
  286. package/out-js/google/protobuf/empty.gen.js +23 -16
  287. package/out-js/google/protobuf/empty.gen.js.map +1 -1
  288. package/out-js/quests.gen.d.ts +1 -0
  289. package/out-js/quests.gen.js +6 -0
  290. package/out-js/quests.gen.js.map +1 -0
  291. package/out-js/sdk-development.gen.d.ts +1 -0
  292. package/out-js/sdk-development.gen.js +6 -0
  293. package/out-js/sdk-development.gen.js.map +1 -0
  294. package/out-ts/about.gen.ts +3 -0
  295. package/out-ts/decentraland/common/border_rect.gen.ts +124 -19
  296. package/out-ts/decentraland/common/colors.gen.ts +116 -37
  297. package/out-ts/decentraland/common/content_mapping.gen.ts +17 -17
  298. package/out-ts/decentraland/common/gradient.gen.ts +170 -0
  299. package/out-ts/decentraland/common/sdk/user_data.gen.ts +59 -59
  300. package/out-ts/decentraland/common/texture.gen.ts +114 -81
  301. package/out-ts/decentraland/common/vectors.gen.ts +157 -53
  302. package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +884 -0
  303. package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +318 -31
  304. package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +32 -32
  305. package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +500 -1880
  306. package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +310 -277
  307. package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +220 -199
  308. package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +132 -132
  309. package/out-ts/decentraland/kernel/apis/permissions.gen.ts +82 -66
  310. package/out-ts/decentraland/kernel/apis/players.gen.ts +106 -94
  311. package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +196 -149
  312. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +988 -355
  313. package/out-ts/decentraland/kernel/apis/runtime.gen.ts +705 -178
  314. package/out-ts/decentraland/kernel/apis/scene.gen.ts +34 -34
  315. package/out-ts/decentraland/kernel/apis/scene_credits.gen.ts +459 -0
  316. package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +266 -89
  317. package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +50 -48
  318. package/out-ts/decentraland/kernel/apis/testing.gen.ts +1270 -0
  319. package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +33 -31
  320. package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +66 -62
  321. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +1576 -225
  322. package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +209 -200
  323. package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +872 -596
  324. package/out-ts/decentraland/pulse/pulse_clusters.gen.ts +422 -0
  325. package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
  326. package/out-ts/decentraland/{bff/http_endpoints.gen.ts → realm/about.gen.ts} +582 -225
  327. package/out-ts/decentraland/sdk/components/animator.gen.ts +41 -64
  328. package/out-ts/decentraland/sdk/components/audio_source.gen.ts +68 -21
  329. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +79 -19
  330. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +150 -17
  331. package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +171 -0
  332. package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +202 -0
  333. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +218 -0
  334. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +27 -19
  335. package/out-ts/decentraland/sdk/components/avatar_nametag.gen.ts +162 -0
  336. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +73 -42
  337. package/out-ts/decentraland/sdk/components/billboard.gen.ts +49 -22
  338. package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +16 -16
  339. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +17 -17
  340. package/out-ts/decentraland/sdk/components/common/avatar_mask.gen.ts +31 -0
  341. package/out-ts/decentraland/sdk/components/common/explorer_ui.gen.ts +77 -0
  342. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +52 -0
  343. package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
  344. package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +22 -22
  345. package/out-ts/decentraland/sdk/components/engine_info.gen.ts +134 -0
  346. package/out-ts/decentraland/sdk/components/environment_fog.gen.ts +113 -0
  347. package/out-ts/decentraland/sdk/components/explorer_item_purchase_result.gen.ts +370 -0
  348. package/out-ts/decentraland/sdk/components/explorer_ui_events_result.gen.ts +281 -0
  349. package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +58 -18
  350. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +89 -0
  351. package/out-ts/decentraland/sdk/components/gltf_node_modifiers.gen.ts +204 -0
  352. package/out-ts/decentraland/sdk/components/material.gen.ts +111 -93
  353. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +116 -100
  354. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +109 -91
  355. package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +28 -28
  356. package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
  357. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +186 -58
  358. package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +42 -23
  359. package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +16 -16
  360. package/out-ts/decentraland/sdk/components/raycast.gen.ts +36 -33
  361. package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +35 -20
  362. package/out-ts/decentraland/sdk/components/realm_info.gen.ts +183 -0
  363. package/out-ts/decentraland/sdk/components/skybox.gen.ts +440 -0
  364. package/out-ts/decentraland/sdk/components/sun.gen.ts +155 -0
  365. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +55 -37
  366. package/out-ts/decentraland/sdk/components/touch_screen_controls.gen.ts +265 -0
  367. package/out-ts/decentraland/sdk/components/tween.gen.ts +1336 -0
  368. package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
  369. package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
  370. package/out-ts/decentraland/sdk/components/ui_background.gen.ts +22 -21
  371. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +43 -25
  372. package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +16 -16
  373. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +42 -24
  374. package/out-ts/decentraland/sdk/components/ui_input_binding.gen.ts +114 -0
  375. package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +35 -18
  376. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +99 -23
  377. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +532 -66
  378. package/out-ts/decentraland/sdk/components/video_player.gen.ts +80 -22
  379. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +46 -19
  380. package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
  381. package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
  382. package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
  383. package/out-ts/decentraland/social_service/errors.gen.ts +442 -0
  384. package/out-ts/decentraland/social_service/v1/social_service_v1.gen.ts +2799 -0
  385. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +10674 -0
  386. package/out-ts/google/protobuf/descriptor.gen.ts +529 -499
  387. package/out-ts/google/protobuf/empty.gen.ts +15 -15
  388. package/out-ts/quests.gen.ts +3 -0
  389. package/out-ts/sdk-development.gen.ts +3 -0
  390. package/package.json +20 -11
  391. package/proto/decentraland/common/border_rect.proto +9 -1
  392. package/proto/decentraland/common/colors.proto +6 -0
  393. package/proto/decentraland/common/floats.proto +8 -0
  394. package/proto/decentraland/common/gradient.proto +16 -0
  395. package/proto/decentraland/common/options.proto +51 -0
  396. package/proto/decentraland/common/quantization_example.proto +164 -0
  397. package/proto/decentraland/common/texture.proto +13 -9
  398. package/proto/decentraland/common/vectors.proto +7 -0
  399. package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
  400. package/proto/decentraland/kernel/apis/communications_controller.proto +19 -4
  401. package/proto/decentraland/kernel/apis/engine_api.proto +9 -110
  402. package/proto/decentraland/kernel/apis/environment_api.proto +1 -1
  403. package/proto/decentraland/kernel/apis/permissions.proto +1 -0
  404. package/proto/decentraland/kernel/apis/portable_experiences.proto +4 -1
  405. package/proto/decentraland/kernel/apis/restricted_actions.proto +84 -16
  406. package/proto/decentraland/kernel/apis/runtime.proto +47 -9
  407. package/proto/decentraland/kernel/apis/scene_credits.proto +108 -0
  408. package/proto/decentraland/kernel/apis/signed_fetch.proto +6 -0
  409. package/proto/decentraland/kernel/apis/testing.proto +100 -0
  410. package/proto/decentraland/kernel/comms/rfc4/comms.proto +101 -0
  411. package/proto/decentraland/kernel/comms/v3/archipelago.proto +58 -34
  412. package/proto/decentraland/pulse/pulse_client.proto +120 -0
  413. package/proto/decentraland/pulse/pulse_clusters.proto +61 -0
  414. package/proto/decentraland/pulse/pulse_server.proto +144 -0
  415. package/proto/decentraland/pulse/pulse_shared.proto +57 -0
  416. package/proto/decentraland/quests/definitions.proto +185 -0
  417. package/proto/decentraland/realm/about.proto +138 -0
  418. package/proto/decentraland/sdk/components/animator.proto +9 -4
  419. package/proto/decentraland/sdk/components/asset_load.proto +10 -0
  420. package/proto/decentraland/sdk/components/asset_load_loading_state.proto +16 -0
  421. package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
  422. package/proto/decentraland/sdk/components/audio_event.proto +12 -0
  423. package/proto/decentraland/sdk/components/audio_source.proto +10 -2
  424. package/proto/decentraland/sdk/components/audio_stream.proto +8 -0
  425. package/proto/decentraland/sdk/components/avatar_attach.proto +26 -3
  426. package/proto/decentraland/sdk/components/avatar_base.proto +16 -0
  427. package/proto/decentraland/sdk/components/avatar_emote_command.proto +32 -0
  428. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +22 -0
  429. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
  430. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +1 -0
  431. package/proto/decentraland/sdk/components/avatar_nametag.proto +33 -0
  432. package/proto/decentraland/sdk/components/avatar_shape.proto +34 -17
  433. package/proto/decentraland/sdk/components/billboard.proto +11 -3
  434. package/proto/decentraland/sdk/components/common/avatar_mask.proto +7 -0
  435. package/proto/decentraland/sdk/components/common/camera_transition.proto +11 -0
  436. package/proto/decentraland/sdk/components/common/explorer_ui.proto +15 -0
  437. package/proto/decentraland/sdk/components/common/input_action.proto +9 -0
  438. package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
  439. package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
  440. package/proto/decentraland/sdk/components/engine_info.proto +16 -0
  441. package/proto/decentraland/sdk/components/environment_fog.proto +21 -0
  442. package/proto/decentraland/sdk/components/explorer_item_purchase_result.proto +24 -0
  443. package/proto/decentraland/sdk/components/explorer_ui_events_result.proto +33 -0
  444. package/proto/decentraland/sdk/components/gltf_container.proto +6 -0
  445. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  446. package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +25 -0
  447. package/proto/decentraland/sdk/components/input_modifier.proto +22 -0
  448. package/proto/decentraland/sdk/components/light_source.proto +28 -0
  449. package/proto/decentraland/sdk/components/main_camera.proto +11 -0
  450. package/proto/decentraland/sdk/components/map_pin.proto +16 -0
  451. package/proto/decentraland/sdk/components/material.proto +6 -6
  452. package/proto/decentraland/sdk/components/mesh_collider.proto +6 -6
  453. package/proto/decentraland/sdk/components/mesh_renderer.proto +2 -2
  454. package/proto/decentraland/sdk/components/nft_shape.proto +3 -3
  455. package/proto/decentraland/sdk/components/particle_system.proto +133 -0
  456. package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
  457. package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
  458. package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
  459. package/proto/decentraland/sdk/components/pointer_events.proto +33 -2
  460. package/proto/decentraland/sdk/components/pointer_events_result.proto +2 -1
  461. package/proto/decentraland/sdk/components/primary_pointer_info.proto +39 -0
  462. package/proto/decentraland/sdk/components/raycast.proto +1 -1
  463. package/proto/decentraland/sdk/components/raycast_result.proto +1 -0
  464. package/proto/decentraland/sdk/components/realm_info.proto +15 -0
  465. package/proto/decentraland/sdk/components/skybox.proto +51 -0
  466. package/proto/decentraland/sdk/components/skybox_time.proto +20 -0
  467. package/proto/decentraland/sdk/components/sun.proto +26 -0
  468. package/proto/decentraland/sdk/components/text_shape.proto +1 -0
  469. package/proto/decentraland/sdk/components/touch_screen_controls.proto +38 -0
  470. package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
  471. package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
  472. package/proto/decentraland/sdk/components/tween.proto +117 -0
  473. package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
  474. package/proto/decentraland/sdk/components/tween_state.proto +18 -0
  475. package/proto/decentraland/sdk/components/ui_background.proto +2 -2
  476. package/proto/decentraland/sdk/components/ui_canvas_information.proto +30 -0
  477. package/proto/decentraland/sdk/components/ui_dropdown.proto +1 -0
  478. package/proto/decentraland/sdk/components/ui_input.proto +1 -0
  479. package/proto/decentraland/sdk/components/ui_input_binding.proto +27 -0
  480. package/proto/decentraland/sdk/components/ui_input_result.proto +1 -0
  481. package/proto/decentraland/sdk/components/ui_text.proto +8 -1
  482. package/proto/decentraland/sdk/components/ui_transform.proto +37 -0
  483. package/proto/decentraland/sdk/components/video_event.proto +25 -0
  484. package/proto/decentraland/sdk/components/video_player.proto +8 -0
  485. package/proto/decentraland/sdk/components/virtual_camera.proto +18 -0
  486. package/proto/decentraland/sdk/components/visibility_component.proto +7 -0
  487. package/proto/decentraland/sdk/development/local_development.proto +29 -0
  488. package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
  489. package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
  490. package/proto/decentraland/social_service/errors.proto +30 -0
  491. package/proto/decentraland/social_service/v1/social_service_v1.proto +163 -0
  492. package/proto/decentraland/social_service/v2/social_service_v2.proto +721 -0
  493. package/protoc-gen-bitwise/generator_csharp.js +248 -0
  494. package/protoc-gen-bitwise/options.js +139 -0
  495. package/protoc-gen-bitwise/plugin.js +87 -0
  496. package/protoc-gen-bitwise/runtime/cs/Quantize.cs +70 -0
  497. package/protoc-gen-bitwise/wire.js +239 -0
  498. package/public/about.proto +5 -0
  499. package/public/comms.proto +2 -1
  500. package/public/quests.proto +5 -0
  501. package/public/sdk-apis.proto +3 -0
  502. package/public/sdk-components.proto +37 -19
  503. package/public/sdk-development.proto +5 -0
  504. package/public/social.proto +3 -1
  505. package/out-js/bff-services.gen.d.ts +0 -1
  506. package/out-js/bff-services.gen.js.map +0 -1
  507. package/out-js/decentraland/bff/authentication_service.gen.d.ts +0 -197
  508. package/out-js/decentraland/bff/authentication_service.gen.js +0 -266
  509. package/out-js/decentraland/bff/authentication_service.gen.js.map +0 -1
  510. package/out-js/decentraland/bff/comms_director_service.gen.d.ts +0 -289
  511. package/out-js/decentraland/bff/comms_director_service.gen.js +0 -228
  512. package/out-js/decentraland/bff/comms_director_service.gen.js.map +0 -1
  513. package/out-js/decentraland/bff/comms_service.gen.d.ts +0 -348
  514. package/out-js/decentraland/bff/comms_service.gen.js +0 -175
  515. package/out-js/decentraland/bff/comms_service.gen.js.map +0 -1
  516. package/out-js/decentraland/bff/http_endpoints.gen.d.ts +0 -929
  517. package/out-js/decentraland/bff/http_endpoints.gen.js +0 -873
  518. package/out-js/decentraland/bff/http_endpoints.gen.js.map +0 -1
  519. package/out-js/decentraland/bff/topics_service.gen.d.ts +0 -272
  520. package/out-js/decentraland/bff/topics_service.gen.js +0 -386
  521. package/out-js/decentraland/bff/topics_service.gen.js.map +0 -1
  522. package/out-js/decentraland/social/friendships/friendships.gen.d.ts +0 -4816
  523. package/out-js/decentraland/social/friendships/friendships.gen.js +0 -1334
  524. package/out-js/decentraland/social/friendships/friendships.gen.js.map +0 -1
  525. package/out-ts/bff-services.gen.ts +0 -3
  526. package/out-ts/decentraland/bff/authentication_service.gen.ts +0 -323
  527. package/out-ts/decentraland/bff/comms_director_service.gen.ts +0 -272
  528. package/out-ts/decentraland/bff/comms_service.gen.ts +0 -212
  529. package/out-ts/decentraland/bff/topics_service.gen.ts +0 -468
  530. package/out-ts/decentraland/social/friendships/friendships.gen.ts +0 -1598
  531. package/proto/buf.yaml +0 -47
  532. package/proto/decentraland/bff/authentication_service.proto +0 -27
  533. package/proto/decentraland/bff/comms_director_service.proto +0 -33
  534. package/proto/decentraland/bff/comms_service.proto +0 -25
  535. package/proto/decentraland/bff/http_endpoints.proto +0 -80
  536. package/proto/decentraland/bff/topics_service.proto +0 -34
  537. package/proto/decentraland/social/friendships/friendships.proto +0 -106
  538. package/proto/google/LICENSE +0 -27
  539. package/proto/google/README.md +0 -1
  540. package/proto/google/api/annotations.json +0 -83
  541. package/proto/google/api/annotations.proto +0 -11
  542. package/proto/google/api/http.json +0 -86
  543. package/proto/google/api/http.proto +0 -31
  544. package/proto/google/protobuf/api.json +0 -118
  545. package/proto/google/protobuf/api.proto +0 -34
  546. package/proto/google/protobuf/descriptor.json +0 -739
  547. package/proto/google/protobuf/descriptor.proto +0 -286
  548. package/proto/google/protobuf/source_context.json +0 -20
  549. package/proto/google/protobuf/source_context.proto +0 -7
  550. package/proto/google/protobuf/type.json +0 -202
  551. package/proto/google/protobuf/type.proto +0 -89
  552. package/public/bff-services.proto +0 -16
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PBAvatarModifierArea = exports.avatarModifierTypeToJSON = exports.avatarModifierTypeFromJSON = exports.AvatarModifierType = exports.protobufPackage = void 0;
6
+ exports.PBAvatarModifierArea = exports.AvatarModifierType = exports.protobufPackage = void 0;
7
+ exports.avatarModifierTypeFromJSON = avatarModifierTypeFromJSON;
8
+ exports.avatarModifierTypeToJSON = avatarModifierTypeToJSON;
7
9
  /* eslint-disable */
8
10
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
11
  const vectors_gen_1 = require("../../common/vectors.gen");
@@ -15,8 +17,10 @@ var AvatarModifierType;
15
17
  AvatarModifierType[AvatarModifierType["AMT_HIDE_AVATARS"] = 0] = "AMT_HIDE_AVATARS";
16
18
  /** AMT_DISABLE_PASSPORTS - selecting (e.g. clicking) an avatar will not bring up their profile. */
17
19
  AvatarModifierType[AvatarModifierType["AMT_DISABLE_PASSPORTS"] = 1] = "AMT_DISABLE_PASSPORTS";
20
+ /** AMT_HIDE_NAMETAGS - the name tag displayed above an avatar is hidden. */
21
+ AvatarModifierType[AvatarModifierType["AMT_HIDE_NAMETAGS"] = 2] = "AMT_HIDE_NAMETAGS";
18
22
  AvatarModifierType[AvatarModifierType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
19
- })(AvatarModifierType = exports.AvatarModifierType || (exports.AvatarModifierType = {}));
23
+ })(AvatarModifierType || (exports.AvatarModifierType = AvatarModifierType = {}));
20
24
  function avatarModifierTypeFromJSON(object) {
21
25
  switch (object) {
22
26
  case 0:
@@ -25,30 +29,34 @@ function avatarModifierTypeFromJSON(object) {
25
29
  case 1:
26
30
  case "AMT_DISABLE_PASSPORTS":
27
31
  return AvatarModifierType.AMT_DISABLE_PASSPORTS;
32
+ case 2:
33
+ case "AMT_HIDE_NAMETAGS":
34
+ return AvatarModifierType.AMT_HIDE_NAMETAGS;
28
35
  case -1:
29
36
  case "UNRECOGNIZED":
30
37
  default:
31
38
  return AvatarModifierType.UNRECOGNIZED;
32
39
  }
33
40
  }
34
- exports.avatarModifierTypeFromJSON = avatarModifierTypeFromJSON;
35
41
  function avatarModifierTypeToJSON(object) {
36
42
  switch (object) {
37
43
  case AvatarModifierType.AMT_HIDE_AVATARS:
38
44
  return "AMT_HIDE_AVATARS";
39
45
  case AvatarModifierType.AMT_DISABLE_PASSPORTS:
40
46
  return "AMT_DISABLE_PASSPORTS";
47
+ case AvatarModifierType.AMT_HIDE_NAMETAGS:
48
+ return "AMT_HIDE_NAMETAGS";
41
49
  case AvatarModifierType.UNRECOGNIZED:
42
50
  default:
43
51
  return "UNRECOGNIZED";
44
52
  }
45
53
  }
46
- exports.avatarModifierTypeToJSON = avatarModifierTypeToJSON;
47
54
  function createBasePBAvatarModifierArea() {
48
55
  return { area: undefined, excludeIds: [], modifiers: [] };
49
56
  }
50
- exports.PBAvatarModifierArea = {
51
- encode(message, writer = minimal_1.default.Writer.create()) {
57
+ var PBAvatarModifierArea;
58
+ (function (PBAvatarModifierArea) {
59
+ function encode(message, writer = minimal_1.default.Writer.create()) {
52
60
  if (message.area !== undefined) {
53
61
  vectors_gen_1.Vector3.encode(message.area, writer.uint32(10).fork()).ldelim();
54
62
  }
@@ -61,8 +69,9 @@ exports.PBAvatarModifierArea = {
61
69
  }
62
70
  writer.ldelim();
63
71
  return writer;
64
- },
65
- decode(input, length) {
72
+ }
73
+ PBAvatarModifierArea.encode = encode;
74
+ function decode(input, length) {
66
75
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
67
76
  let end = length === undefined ? reader.len : reader.pos + length;
68
77
  const message = createBasePBAvatarModifierArea();
@@ -70,23 +79,23 @@ exports.PBAvatarModifierArea = {
70
79
  const tag = reader.uint32();
71
80
  switch (tag >>> 3) {
72
81
  case 1:
73
- if (tag != 10) {
82
+ if (tag !== 10) {
74
83
  break;
75
84
  }
76
85
  message.area = vectors_gen_1.Vector3.decode(reader, reader.uint32());
77
86
  continue;
78
87
  case 2:
79
- if (tag != 18) {
88
+ if (tag !== 18) {
80
89
  break;
81
90
  }
82
91
  message.excludeIds.push(reader.string());
83
92
  continue;
84
93
  case 3:
85
- if (tag == 24) {
94
+ if (tag === 24) {
86
95
  message.modifiers.push(reader.int32());
87
96
  continue;
88
97
  }
89
- if (tag == 26) {
98
+ if (tag === 26) {
90
99
  const end2 = reader.uint32() + reader.pos;
91
100
  while (reader.pos < end2) {
92
101
  message.modifiers.push(reader.int32());
@@ -95,14 +104,15 @@ exports.PBAvatarModifierArea = {
95
104
  }
96
105
  break;
97
106
  }
98
- if ((tag & 7) == 4 || tag == 0) {
107
+ if ((tag & 7) === 4 || tag === 0) {
99
108
  break;
100
109
  }
101
110
  reader.skipType(tag & 7);
102
111
  }
103
112
  return message;
104
- },
105
- fromJSON(object) {
113
+ }
114
+ PBAvatarModifierArea.decode = decode;
115
+ function fromJSON(object) {
106
116
  return {
107
117
  area: isSet(object.area) ? vectors_gen_1.Vector3.fromJSON(object.area) : undefined,
108
118
  excludeIds: Array.isArray(object === null || object === void 0 ? void 0 : object.excludeIds) ? object.excludeIds.map((e) => String(e)) : [],
@@ -110,8 +120,9 @@ exports.PBAvatarModifierArea = {
110
120
  ? object.modifiers.map((e) => avatarModifierTypeFromJSON(e))
111
121
  : [],
112
122
  };
113
- },
114
- toJSON(message) {
123
+ }
124
+ PBAvatarModifierArea.fromJSON = fromJSON;
125
+ function toJSON(message) {
115
126
  const obj = {};
116
127
  message.area !== undefined && (obj.area = message.area ? vectors_gen_1.Vector3.toJSON(message.area) : undefined);
117
128
  if (message.excludeIds) {
@@ -127,19 +138,22 @@ exports.PBAvatarModifierArea = {
127
138
  obj.modifiers = [];
128
139
  }
129
140
  return obj;
130
- },
131
- create(base) {
132
- return exports.PBAvatarModifierArea.fromPartial(base !== null && base !== void 0 ? base : {});
133
- },
134
- fromPartial(object) {
141
+ }
142
+ PBAvatarModifierArea.toJSON = toJSON;
143
+ function create(base) {
144
+ return PBAvatarModifierArea.fromPartial(base !== null && base !== void 0 ? base : {});
145
+ }
146
+ PBAvatarModifierArea.create = create;
147
+ function fromPartial(object) {
135
148
  var _a, _b;
136
149
  const message = createBasePBAvatarModifierArea();
137
150
  message.area = (object.area !== undefined && object.area !== null) ? vectors_gen_1.Vector3.fromPartial(object.area) : undefined;
138
151
  message.excludeIds = ((_a = object.excludeIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
139
152
  message.modifiers = ((_b = object.modifiers) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
140
153
  return message;
141
- },
142
- };
154
+ }
155
+ PBAvatarModifierArea.fromPartial = fromPartial;
156
+ })(PBAvatarModifierArea || (exports.PBAvatarModifierArea = PBAvatarModifierArea = {}));
143
157
  function isSet(value) {
144
158
  return value !== null && value !== undefined;
145
159
  }
@@ -1 +1 @@
1
- {"version":3,"file":"avatar_modifier_area.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AAEtC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAE7D,2FA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CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAClH,OAAO,CAAC,UAAU,GAAG,CAAA,MAAA,MAAM,CAAC,UAAU,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QAC5D,OAAO,CAAC,SAAS,GAAG,CAAA,MAAA,MAAM,CAAC,SAAS,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QAC1D,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AAcF,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
1
+ {"version":3,"file":"avatar_modifier_area.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts"],"names":[],"mappings":";;;;;;AAiBA,gEAgBC;AAED,4DAYC;AA/CD,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AAEtC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAE7D,2FAA2F;AAC3F,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,+CAA+C;IAC/C,mFAAoB,CAAA;IACpB,mGAAmG;IACnG,6FAAyB,CAAA;IACzB,4EAA4E;IAC5E,qFAAqB,CAAA;IACrB,4EAAiB,CAAA;AACnB,CAAC,EARW,kBAAkB,kCAAlB,kBAAkB,QAQ7B;AAED,SAAgB,0BAA0B,CAAC,MAAW;IACpD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,CAAC,CAAC;QACP,KAAK,kBAAkB;YACrB,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;QAC7C,KAAK,CAAC,CAAC;QACP,KAAK,uBAAuB;YAC1B,OAAO,kBAAkB,CAAC,qBAAqB,CAAC;QAClD,KAAK,CAAC,CAAC;QACP,KAAK,mBAAmB;YACtB,OAAO,kBAAkB,CAA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AAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAClH,OAAO,CAAC,UAAU,GAAG,CAAA,MAAA,MAAM,CAAC,UAAU,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QAC5D,OAAO,CAAC,SAAS,GAAG,CAAA,MAAA,MAAM,CAAC,SAAS,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QAC1D,OAAO,OAAO,CAAC;IACjB,CAAC;IANe,gCAAW,cAM1B,CAAA;AACH,CAAC,EApGgB,oBAAoB,oCAApB,oBAAoB,QAoGpC;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,58 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { Color3 } from "../../common/colors.gen";
3
+ export declare const protobufPackage = "decentraland.sdk.components";
4
+ /**
5
+ * The AvatarNametag component adds a plate with scene-provided text above an avatar's nametag,
6
+ * for example to show a rank or a role that the scene assigns to that player.
7
+ *
8
+ * Valid only on an avatar-bearing entity:
9
+ * - the local player: `engine.PlayerEntity`
10
+ * - another player in the scene: that player's entity
11
+ * - an NPC: any entity with an AvatarShape
12
+ * Writes to any other entity are ignored.
13
+ *
14
+ * Player entity ids are not stable across disconnects: a write to a stale entity lands on
15
+ * whoever holds that id next. Resolve the entity from the user id on every write, and remove
16
+ * the component when the player leaves the scene.
17
+ *
18
+ * The plate is local to the client that renders it; it is never relayed to other players.
19
+ */
20
+ export interface PBAvatarNametag {
21
+ /**
22
+ * The plate text: a single line, for example "Club Owner". Empty draws the plate without text,
23
+ * and spaces are preserved: a label of spaces widens a text-less plate. For a plate sized
24
+ * exactly to a word without showing it, set label_color equal to background_color instead.
25
+ */
26
+ label: string;
27
+ /** (default: the client's native nametag text color) */
28
+ labelColor?: Color3 | undefined;
29
+ /** (default: the client's native nametag background color) */
30
+ backgroundColor?: Color3 | undefined;
31
+ /** (default: background_color, so the plate carries no visible border) */
32
+ borderColor?: Color3 | undefined;
33
+ }
34
+ export declare namespace PBAvatarNametag {
35
+ function encode(message: PBAvatarNametag, writer?: _m0.Writer): _m0.Writer;
36
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarNametag;
37
+ function fromJSON(object: any): PBAvatarNametag;
38
+ function toJSON(message: PBAvatarNametag): unknown;
39
+ function create<I extends Exact<DeepPartial<PBAvatarNametag>, I>>(base?: I): PBAvatarNametag;
40
+ function fromPartial<I extends Exact<DeepPartial<PBAvatarNametag>, I>>(object: I): PBAvatarNametag;
41
+ }
42
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
43
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
44
+ $case: string;
45
+ } ? {
46
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
47
+ } & {
48
+ $case: T["$case"];
49
+ } : T extends {} ? {
50
+ [K in keyof T]?: DeepPartial<T[K]>;
51
+ } : Partial<T>;
52
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
53
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
54
+ [K in keyof P]: Exact<P[K], I[K]>;
55
+ } & {
56
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
57
+ };
58
+ export {};
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PBAvatarNametag = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ const colors_gen_1 = require("../../common/colors.gen");
10
+ exports.protobufPackage = "decentraland.sdk.components";
11
+ function createBasePBAvatarNametag() {
12
+ return { label: "", labelColor: undefined, backgroundColor: undefined, borderColor: undefined };
13
+ }
14
+ var PBAvatarNametag;
15
+ (function (PBAvatarNametag) {
16
+ function encode(message, writer = minimal_1.default.Writer.create()) {
17
+ if (message.label !== "") {
18
+ writer.uint32(10).string(message.label);
19
+ }
20
+ if (message.labelColor !== undefined) {
21
+ colors_gen_1.Color3.encode(message.labelColor, writer.uint32(18).fork()).ldelim();
22
+ }
23
+ if (message.backgroundColor !== undefined) {
24
+ colors_gen_1.Color3.encode(message.backgroundColor, writer.uint32(26).fork()).ldelim();
25
+ }
26
+ if (message.borderColor !== undefined) {
27
+ colors_gen_1.Color3.encode(message.borderColor, writer.uint32(34).fork()).ldelim();
28
+ }
29
+ return writer;
30
+ }
31
+ PBAvatarNametag.encode = encode;
32
+ function decode(input, length) {
33
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
34
+ let end = length === undefined ? reader.len : reader.pos + length;
35
+ const message = createBasePBAvatarNametag();
36
+ while (reader.pos < end) {
37
+ const tag = reader.uint32();
38
+ switch (tag >>> 3) {
39
+ case 1:
40
+ if (tag !== 10) {
41
+ break;
42
+ }
43
+ message.label = reader.string();
44
+ continue;
45
+ case 2:
46
+ if (tag !== 18) {
47
+ break;
48
+ }
49
+ message.labelColor = colors_gen_1.Color3.decode(reader, reader.uint32());
50
+ continue;
51
+ case 3:
52
+ if (tag !== 26) {
53
+ break;
54
+ }
55
+ message.backgroundColor = colors_gen_1.Color3.decode(reader, reader.uint32());
56
+ continue;
57
+ case 4:
58
+ if (tag !== 34) {
59
+ break;
60
+ }
61
+ message.borderColor = colors_gen_1.Color3.decode(reader, reader.uint32());
62
+ continue;
63
+ }
64
+ if ((tag & 7) === 4 || tag === 0) {
65
+ break;
66
+ }
67
+ reader.skipType(tag & 7);
68
+ }
69
+ return message;
70
+ }
71
+ PBAvatarNametag.decode = decode;
72
+ function fromJSON(object) {
73
+ return {
74
+ label: isSet(object.label) ? String(object.label) : "",
75
+ labelColor: isSet(object.labelColor) ? colors_gen_1.Color3.fromJSON(object.labelColor) : undefined,
76
+ backgroundColor: isSet(object.backgroundColor) ? colors_gen_1.Color3.fromJSON(object.backgroundColor) : undefined,
77
+ borderColor: isSet(object.borderColor) ? colors_gen_1.Color3.fromJSON(object.borderColor) : undefined,
78
+ };
79
+ }
80
+ PBAvatarNametag.fromJSON = fromJSON;
81
+ function toJSON(message) {
82
+ const obj = {};
83
+ message.label !== undefined && (obj.label = message.label);
84
+ message.labelColor !== undefined &&
85
+ (obj.labelColor = message.labelColor ? colors_gen_1.Color3.toJSON(message.labelColor) : undefined);
86
+ message.backgroundColor !== undefined &&
87
+ (obj.backgroundColor = message.backgroundColor ? colors_gen_1.Color3.toJSON(message.backgroundColor) : undefined);
88
+ message.borderColor !== undefined &&
89
+ (obj.borderColor = message.borderColor ? colors_gen_1.Color3.toJSON(message.borderColor) : undefined);
90
+ return obj;
91
+ }
92
+ PBAvatarNametag.toJSON = toJSON;
93
+ function create(base) {
94
+ return PBAvatarNametag.fromPartial(base !== null && base !== void 0 ? base : {});
95
+ }
96
+ PBAvatarNametag.create = create;
97
+ function fromPartial(object) {
98
+ var _a;
99
+ const message = createBasePBAvatarNametag();
100
+ message.label = (_a = object.label) !== null && _a !== void 0 ? _a : "";
101
+ message.labelColor = (object.labelColor !== undefined && object.labelColor !== null)
102
+ ? colors_gen_1.Color3.fromPartial(object.labelColor)
103
+ : undefined;
104
+ message.backgroundColor = (object.backgroundColor !== undefined && object.backgroundColor !== null)
105
+ ? colors_gen_1.Color3.fromPartial(object.backgroundColor)
106
+ : undefined;
107
+ message.borderColor = (object.borderColor !== undefined && object.borderColor !== null)
108
+ ? colors_gen_1.Color3.fromPartial(object.borderColor)
109
+ : undefined;
110
+ return message;
111
+ }
112
+ PBAvatarNametag.fromPartial = fromPartial;
113
+ })(PBAvatarNametag || (exports.PBAvatarNametag = PBAvatarNametag = {}));
114
+ function isSet(value) {
115
+ return value !== null && value !== undefined;
116
+ }
117
+ //# sourceMappingURL=avatar_nametag.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar_nametag.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_nametag.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,wDAAiD;AAEpC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAqC7D,SAAS,yBAAyB;IAChC,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;AAClG,CAAC;AAED,IAAiB,eAAe,CAoG/B;AApGD,WAAiB,eAAe;IAC9B,SAAgB,MAAM,CAAC,OAAwB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACvF,IAAI,OAAO,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;YACzB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC1C,CAAC;QACD,IAAI,OAAO,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;YACrC,mBAAM,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QACvE,CAAC;QACD,IAAI,OAAO,CAAC,eAAe,KAAK,SAAS,EAAE,CAAC;YAC1C,mBAAM,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QAC5E,CAAC;QACD,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;YACtC,mBAAM,CAA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AAW,CAAC,MAAM,CAAC,UAAU,CAAC;YACvC,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,eAAe,GAAG,CAAC,MAAM,CAAC,eAAe,KAAK,SAAS,IAAI,MAAM,CAAC,eAAe,KAAK,IAAI,CAAC;YACjG,CAAC,CAAC,mBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,eAAe,CAAC;YAC5C,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,CAAC,WAAW,GAAG,CAAC,MAAM,CAAC,WAAW,KAAK,SAAS,IAAI,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC;YACrF,CAAC,CAAC,mBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC;YACxC,CAAC,CAAC,SAAS,CAAC;QACd,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,2BAAW,cAa1B,CAAA;AACH,CAAC,EApGgB,eAAe,+BAAf,eAAe,QAoG/B;AAcD,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -5,16 +5,26 @@ export declare const protobufPackage = "decentraland.sdk.components";
5
5
  * The AvatarShape component contains the information required to draw and animate avatar, acting as
6
6
  * a simplified GLTF container for this specific case.
7
7
  *
8
- * All fields (except ID) are optional have reasonable default values. In the case of `wearables`,
8
+ * All fields (except ID) are optional and have reasonable default values. In the case of `wearables`,
9
9
  * each slot on the Avatar's body that is not explicitly included in the list has its own default.
10
10
  *
11
- * Note that, while AvatarShape can be attached to any Entity, it's only actually used in the global
12
- * Avatar Scene. Other requirements are usually better served by GLTFs.
11
+ * On most entities, AvatarShape draws an avatar, for example an NPC. Other requirements are usually
12
+ * better served by GLTFs.
13
+ *
14
+ * On a player entity (`engine.PlayerEntity` or the entity of another player), AvatarShape changes the
15
+ * look of that player's avatar:
16
+ * - An unset field keeps the value from the player's profile. The defaults below apply only to other entities.
17
+ * - A non-empty `wearables` replaces all the wearables. A body slot that it does not fill stays empty.
18
+ * An empty `wearables` is the same as unset.
19
+ * - Fields marked "ignored on player entities" have no effect.
20
+ * - The change is local to this client. It is not broadcast.
21
+ * - The change applies only while the scene that wrote it is the current scene.
22
+ * - AvatarBase and AvatarEquippedData keep the values from the profile.
13
23
  */
14
24
  export interface PBAvatarShape {
15
- /** the user ID */
25
+ /** the user ID; ignored on player entities */
16
26
  id: string;
17
- /** visible name (default: "NPC") */
27
+ /** visible name (default: "NPC"); ignored on player entities */
18
28
  name?: string | undefined;
19
29
  /** shape URN (default "urn:decentraland:off-chain:base-avatars:BaseFemale") */
20
30
  bodyShape?: string | undefined;
@@ -24,155 +34,42 @@ export interface PBAvatarShape {
24
34
  hairColor?: Color3 | undefined;
25
35
  /** RGB (default [0.6, 0.462, 0.356]) */
26
36
  eyeColor?: Color3 | undefined;
27
- /** current emote animations */
37
+ /** current emote animations; ignored on player entities */
28
38
  expressionTriggerId?: string | undefined;
29
- /** start of emote animations (in the same order) */
39
+ /** start of emote animations (in the same order); ignored on player entities */
30
40
  expressionTriggerTimestamp?: number | undefined;
31
- /** whether to display the floating voice chat icon */
41
+ /** whether to display the floating voice chat icon; ignored on player entities */
32
42
  talking?: boolean | undefined;
33
43
  /**
34
- * Wearable URNs, one for each body slot.
44
+ * Wearables, one per body slot. Each item is one of:
45
+ * - a wearable URN
46
+ * - the path of a GLB file in the scene content, named `<name>_<category>.glb`, for example `cap_hat.glb`
47
+ * If two items have the same category, the later item is used.
48
+ * A scene GLB is always visible and hides nothing. Exception: a `skin` GLB hides the body that it replaces.
49
+ * If an item is not a URN or a `.glb` path, or if it cannot be loaded, the item is skipped.
35
50
  * Default values for each unspecified slot:
36
51
  * Eyes : "urn:decentraland:off-chain:base-avatars:f_eyes_00",
37
52
  * Eyebrows: "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
38
- * Mouth : "urn:decentraland:off-chain:base-avatars:f_mouth_00"
53
+ * Mouth : "urn:decentraland:off-chain:base-avatars:f_mouth_00",
39
54
  * Hair : "urn:decentraland:off-chain:base-avatars:standard_hair",
40
55
  * Shirt : "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
41
56
  * Trousers: "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
42
- * Shoes : "urn:decentraland:off-chain:base-avatars:bun_shoes"]
57
+ * Shoes : "urn:decentraland:off-chain:base-avatars:bun_shoes"
43
58
  */
44
59
  wearables: string[];
45
- /** available emotes (default empty) */
60
+ /** available emotes (default empty); ignored on player entities */
46
61
  emotes: string[];
62
+ /** hides the skin + hair + facial features (default: false) */
63
+ showOnlyWearables?: boolean | undefined;
64
+ }
65
+ export declare namespace PBAvatarShape {
66
+ function encode(message: PBAvatarShape, writer?: _m0.Writer): _m0.Writer;
67
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarShape;
68
+ function fromJSON(object: any): PBAvatarShape;
69
+ function toJSON(message: PBAvatarShape): unknown;
70
+ function create<I extends Exact<DeepPartial<PBAvatarShape>, I>>(base?: I): PBAvatarShape;
71
+ function fromPartial<I extends Exact<DeepPartial<PBAvatarShape>, I>>(object: I): PBAvatarShape;
47
72
  }
48
- export declare const PBAvatarShape: {
49
- encode(message: PBAvatarShape, writer?: _m0.Writer): _m0.Writer;
50
- decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarShape;
51
- fromJSON(object: any): PBAvatarShape;
52
- toJSON(message: PBAvatarShape): unknown;
53
- create<I extends {
54
- id?: string | undefined;
55
- name?: string | undefined;
56
- bodyShape?: string | undefined;
57
- skinColor?: {
58
- r?: number | undefined;
59
- g?: number | undefined;
60
- b?: number | undefined;
61
- } | undefined;
62
- hairColor?: {
63
- r?: number | undefined;
64
- g?: number | undefined;
65
- b?: number | undefined;
66
- } | undefined;
67
- eyeColor?: {
68
- r?: number | undefined;
69
- g?: number | undefined;
70
- b?: number | undefined;
71
- } | undefined;
72
- expressionTriggerId?: string | undefined;
73
- expressionTriggerTimestamp?: number | undefined;
74
- talking?: boolean | undefined;
75
- wearables?: string[] | undefined;
76
- emotes?: string[] | undefined;
77
- } & {
78
- id?: string | undefined;
79
- name?: string | undefined;
80
- bodyShape?: string | undefined;
81
- skinColor?: ({
82
- r?: number | undefined;
83
- g?: number | undefined;
84
- b?: number | undefined;
85
- } & {
86
- r?: number | undefined;
87
- g?: number | undefined;
88
- b?: number | undefined;
89
- } & { [K in Exclude<keyof I["skinColor"], keyof Color3>]: never; }) | undefined;
90
- hairColor?: ({
91
- r?: number | undefined;
92
- g?: number | undefined;
93
- b?: number | undefined;
94
- } & {
95
- r?: number | undefined;
96
- g?: number | undefined;
97
- b?: number | undefined;
98
- } & { [K_1 in Exclude<keyof I["hairColor"], keyof Color3>]: never; }) | undefined;
99
- eyeColor?: ({
100
- r?: number | undefined;
101
- g?: number | undefined;
102
- b?: number | undefined;
103
- } & {
104
- r?: number | undefined;
105
- g?: number | undefined;
106
- b?: number | undefined;
107
- } & { [K_2 in Exclude<keyof I["eyeColor"], keyof Color3>]: never; }) | undefined;
108
- expressionTriggerId?: string | undefined;
109
- expressionTriggerTimestamp?: number | undefined;
110
- talking?: boolean | undefined;
111
- wearables?: (string[] & string[] & { [K_3 in Exclude<keyof I["wearables"], keyof string[]>]: never; }) | undefined;
112
- emotes?: (string[] & string[] & { [K_4 in Exclude<keyof I["emotes"], keyof string[]>]: never; }) | undefined;
113
- } & { [K_5 in Exclude<keyof I, keyof PBAvatarShape>]: never; }>(base?: I | undefined): PBAvatarShape;
114
- fromPartial<I_1 extends {
115
- id?: string | undefined;
116
- name?: string | undefined;
117
- bodyShape?: string | undefined;
118
- skinColor?: {
119
- r?: number | undefined;
120
- g?: number | undefined;
121
- b?: number | undefined;
122
- } | undefined;
123
- hairColor?: {
124
- r?: number | undefined;
125
- g?: number | undefined;
126
- b?: number | undefined;
127
- } | undefined;
128
- eyeColor?: {
129
- r?: number | undefined;
130
- g?: number | undefined;
131
- b?: number | undefined;
132
- } | undefined;
133
- expressionTriggerId?: string | undefined;
134
- expressionTriggerTimestamp?: number | undefined;
135
- talking?: boolean | undefined;
136
- wearables?: string[] | undefined;
137
- emotes?: string[] | undefined;
138
- } & {
139
- id?: string | undefined;
140
- name?: string | undefined;
141
- bodyShape?: string | undefined;
142
- skinColor?: ({
143
- r?: number | undefined;
144
- g?: number | undefined;
145
- b?: number | undefined;
146
- } & {
147
- r?: number | undefined;
148
- g?: number | undefined;
149
- b?: number | undefined;
150
- } & { [K_6 in Exclude<keyof I_1["skinColor"], keyof Color3>]: never; }) | undefined;
151
- hairColor?: ({
152
- r?: number | undefined;
153
- g?: number | undefined;
154
- b?: number | undefined;
155
- } & {
156
- r?: number | undefined;
157
- g?: number | undefined;
158
- b?: number | undefined;
159
- } & { [K_7 in Exclude<keyof I_1["hairColor"], keyof Color3>]: never; }) | undefined;
160
- eyeColor?: ({
161
- r?: number | undefined;
162
- g?: number | undefined;
163
- b?: number | undefined;
164
- } & {
165
- r?: number | undefined;
166
- g?: number | undefined;
167
- b?: number | undefined;
168
- } & { [K_8 in Exclude<keyof I_1["eyeColor"], keyof Color3>]: never; }) | undefined;
169
- expressionTriggerId?: string | undefined;
170
- expressionTriggerTimestamp?: number | undefined;
171
- talking?: boolean | undefined;
172
- wearables?: (string[] & string[] & { [K_9 in Exclude<keyof I_1["wearables"], keyof string[]>]: never; }) | undefined;
173
- emotes?: (string[] & string[] & { [K_10 in Exclude<keyof I_1["emotes"], keyof string[]>]: never; }) | undefined;
174
- } & { [K_11 in Exclude<keyof I_1, keyof PBAvatarShape>]: never; }>(object: I_1): PBAvatarShape;
175
- };
176
73
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
177
74
  export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
178
75
  $case: string;