@dcl/protocol 1.0.0-3462922101.commit-3985a0a → 1.0.0-34643020503.commit-6402953

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 (548) hide show
  1. package/README.md +265 -5
  2. package/out-js/about.gen.d.ts +1 -0
  3. package/out-js/about.gen.js +6 -0
  4. package/out-js/about.gen.js.map +1 -0
  5. package/out-js/comms.gen.d.ts +1 -0
  6. package/out-js/comms.gen.js +6 -0
  7. package/out-js/comms.gen.js.map +1 -0
  8. package/out-js/decentraland/common/border_rect.gen.d.ts +49 -0
  9. package/out-js/decentraland/common/border_rect.gen.js +201 -0
  10. package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
  11. package/out-js/decentraland/common/colors.gen.d.ts +59 -0
  12. package/out-js/decentraland/common/colors.gen.js +260 -0
  13. package/out-js/decentraland/common/colors.gen.js.map +1 -0
  14. package/out-js/decentraland/common/content_mapping.gen.d.ts +31 -0
  15. package/out-js/decentraland/common/content_mapping.gen.js +80 -0
  16. package/out-js/decentraland/common/content_mapping.gen.js.map +1 -0
  17. package/out-js/decentraland/common/sdk/user_data.gen.d.ts +63 -0
  18. package/out-js/decentraland/common/sdk/user_data.gen.js +330 -0
  19. package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -0
  20. package/out-js/decentraland/common/texture.gen.d.ts +105 -0
  21. package/out-js/decentraland/common/texture.gen.js +475 -0
  22. package/out-js/decentraland/common/texture.gen.js.map +1 -0
  23. package/out-js/decentraland/common/vectors.gen.d.ts +71 -0
  24. package/out-js/decentraland/common/vectors.gen.js +338 -0
  25. package/out-js/decentraland/common/vectors.gen.js.map +1 -0
  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 +105 -0
  30. package/out-js/decentraland/kernel/apis/communications_controller.gen.js +400 -0
  31. package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -0
  32. package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +58 -0
  33. package/out-js/decentraland/kernel/apis/dev_tools.gen.js +142 -0
  34. package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -0
  35. package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +338 -0
  36. package/out-js/decentraland/kernel/apis/engine_api.gen.js +1452 -0
  37. package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -0
  38. package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +283 -0
  39. package/out-js/decentraland/kernel/apis/environment_api.gen.js +1122 -0
  40. package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -0
  41. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +225 -0
  42. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +878 -0
  43. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -0
  44. package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +146 -0
  45. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +557 -0
  46. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -0
  47. package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +100 -0
  48. package/out-js/decentraland/kernel/apis/permissions.gen.js +360 -0
  49. package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -0
  50. package/out-js/decentraland/kernel/apis/players.gen.d.ts +127 -0
  51. package/out-js/decentraland/kernel/apis/players.gen.js +372 -0
  52. package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -0
  53. package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +178 -0
  54. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +607 -0
  55. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -0
  56. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +383 -0
  57. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1363 -0
  58. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -0
  59. package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +217 -0
  60. package/out-js/decentraland/kernel/apis/runtime.gen.js +801 -0
  61. package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -0
  62. package/out-js/decentraland/kernel/apis/scene.gen.d.ts +59 -0
  63. package/out-js/decentraland/kernel/apis/scene.gen.js +171 -0
  64. package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -0
  65. package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +139 -0
  66. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +615 -0
  67. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -0
  68. package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +72 -0
  69. package/out-js/decentraland/kernel/apis/social_controller.gen.js +207 -0
  70. package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -0
  71. package/out-js/decentraland/kernel/apis/testing.gen.d.ts +249 -0
  72. package/out-js/decentraland/kernel/apis/testing.gen.js +1073 -0
  73. package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -0
  74. package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +56 -0
  75. package/out-js/decentraland/kernel/apis/user_action_module.gen.js +128 -0
  76. package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -0
  77. package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +86 -0
  78. package/out-js/decentraland/kernel/apis/user_identity.gen.js +236 -0
  79. package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -0
  80. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +313 -0
  81. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1973 -0
  82. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -0
  83. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +183 -0
  84. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +906 -0
  85. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -0
  86. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +249 -0
  87. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1384 -0
  88. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -0
  89. package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
  90. package/out-js/decentraland/quests/definitions.gen.js +2728 -0
  91. package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
  92. package/out-js/decentraland/realm/about.gen.d.ts +229 -0
  93. package/out-js/decentraland/realm/about.gen.js +1185 -0
  94. package/out-js/decentraland/realm/about.gen.js.map +1 -0
  95. package/out-js/decentraland/sdk/components/animator.gen.d.ts +62 -0
  96. package/out-js/decentraland/sdk/components/animator.gen.js +192 -0
  97. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
  98. package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +61 -0
  99. package/out-js/decentraland/sdk/components/audio_source.gen.js +151 -0
  100. package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
  101. package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +50 -0
  102. package/out-js/decentraland/sdk/components/audio_stream.gen.js +138 -0
  103. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
  104. package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +76 -0
  105. package/out-js/decentraland/sdk/components/avatar_attach.gen.js +262 -0
  106. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
  107. package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +36 -0
  108. package/out-js/decentraland/sdk/components/avatar_base.gen.js +129 -0
  109. package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
  110. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +64 -0
  111. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +171 -0
  112. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
  113. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +36 -0
  114. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +90 -0
  115. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
  116. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +62 -0
  117. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +160 -0
  118. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
  119. package/out-js/decentraland/sdk/components/avatar_nametag.gen.d.ts +58 -0
  120. package/out-js/decentraland/sdk/components/avatar_nametag.gen.js +117 -0
  121. package/out-js/decentraland/sdk/components/avatar_nametag.gen.js.map +1 -0
  122. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +74 -0
  123. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +264 -0
  124. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
  125. package/out-js/decentraland/sdk/components/billboard.gen.d.ts +61 -0
  126. package/out-js/decentraland/sdk/components/billboard.gen.js +142 -0
  127. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
  128. package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +36 -0
  129. package/out-js/decentraland/sdk/components/camera_mode.gen.js +70 -0
  130. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
  131. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +48 -0
  132. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +85 -0
  133. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
  134. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.d.ts +8 -0
  135. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js +34 -0
  136. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js.map +1 -0
  137. package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +10 -0
  138. package/out-js/decentraland/sdk/components/common/camera_type.gen.js +46 -0
  139. package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
  140. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.d.ts +19 -0
  141. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js +80 -0
  142. package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js.map +1 -0
  143. package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
  144. package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
  145. package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
  146. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +41 -0
  147. package/out-js/decentraland/sdk/components/common/input_action.gen.js +209 -0
  148. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
  149. package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
  150. package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
  151. package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
  152. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +45 -0
  153. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +163 -0
  154. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -0
  155. package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
  156. package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
  157. package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
  158. package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +43 -0
  159. package/out-js/decentraland/sdk/components/engine_info.gen.js +107 -0
  160. package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
  161. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +78 -0
  162. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js +308 -0
  163. package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js.map +1 -0
  164. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +73 -0
  165. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js +231 -0
  166. package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js.map +1 -0
  167. package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +41 -0
  168. package/out-js/decentraland/sdk/components/gltf_container.gen.js +101 -0
  169. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
  170. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +35 -0
  171. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +70 -0
  172. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
  173. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +57 -0
  174. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +164 -0
  175. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +1 -0
  176. package/out-js/decentraland/sdk/components/material.gen.d.ts +108 -0
  177. package/out-js/decentraland/sdk/components/material.gen.js +536 -0
  178. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
  179. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +130 -0
  180. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +471 -0
  181. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
  182. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +104 -0
  183. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +382 -0
  184. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
  185. package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +74 -0
  186. package/out-js/decentraland/sdk/components/nft_shape.gen.js +259 -0
  187. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
  188. package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
  189. package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
  190. package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
  191. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +115 -0
  192. package/out-js/decentraland/sdk/components/pointer_events.gen.js +319 -0
  193. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
  194. package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +42 -0
  195. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +133 -0
  196. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
  197. package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +35 -0
  198. package/out-js/decentraland/sdk/components/pointer_lock.gen.js +69 -0
  199. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
  200. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +79 -0
  201. package/out-js/decentraland/sdk/components/raycast.gen.js +274 -0
  202. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
  203. package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +48 -0
  204. package/out-js/decentraland/sdk/components/raycast_result.gen.js +132 -0
  205. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
  206. package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +43 -0
  207. package/out-js/decentraland/sdk/components/realm_info.gen.js +151 -0
  208. package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
  209. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +81 -0
  210. package/out-js/decentraland/sdk/components/text_shape.gen.js +345 -0
  211. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
  212. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.d.ts +77 -0
  213. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js +201 -0
  214. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js.map +1 -0
  215. package/out-js/decentraland/sdk/components/tween.gen.d.ts +220 -0
  216. package/out-js/decentraland/sdk/components/tween.gen.js +1213 -0
  217. package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
  218. package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
  219. package/out-js/decentraland/sdk/components/tween_sequence.gen.js +122 -0
  220. package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
  221. package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
  222. package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
  223. package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
  224. package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +63 -0
  225. package/out-js/decentraland/sdk/components/ui_background.gen.js +197 -0
  226. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
  227. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +45 -0
  228. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +187 -0
  229. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
  230. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +30 -0
  231. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +69 -0
  232. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
  233. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +44 -0
  234. package/out-js/decentraland/sdk/components/ui_input.gen.js +172 -0
  235. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
  236. package/out-js/decentraland/sdk/components/ui_input_binding.gen.d.ts +52 -0
  237. package/out-js/decentraland/sdk/components/ui_input_binding.gen.js +81 -0
  238. package/out-js/decentraland/sdk/components/ui_input_binding.gen.js.map +1 -0
  239. package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +32 -0
  240. package/out-js/decentraland/sdk/components/ui_input_result.gen.js +83 -0
  241. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
  242. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +50 -0
  243. package/out-js/decentraland/sdk/components/ui_text.gen.js +177 -0
  244. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
  245. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +238 -0
  246. package/out-js/decentraland/sdk/components/ui_transform.gen.js +1547 -0
  247. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
  248. package/out-js/decentraland/sdk/components/video_player.gen.d.ts +51 -0
  249. package/out-js/decentraland/sdk/components/video_player.gen.js +177 -0
  250. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
  251. package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +39 -0
  252. package/out-js/decentraland/sdk/components/visibility_component.gen.js +83 -0
  253. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
  254. package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
  255. package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
  256. package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
  257. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
  258. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7842 -0
  259. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
  260. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
  261. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
  262. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
  263. package/out-js/decentraland/social_service/errors.gen.d.ts +96 -0
  264. package/out-js/decentraland/social_service/errors.gen.js +405 -0
  265. package/out-js/decentraland/social_service/errors.gen.js.map +1 -0
  266. package/out-js/decentraland/social_service/v1/social_service_v1.gen.d.ts +501 -0
  267. package/out-js/decentraland/social_service/v1/social_service_v1.gen.js +2517 -0
  268. package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
  269. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +1827 -0
  270. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +9308 -0
  271. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -0
  272. package/out-js/google/protobuf/descriptor.gen.d.ts +436 -0
  273. package/out-js/google/protobuf/descriptor.gen.js +3173 -0
  274. package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
  275. package/out-js/google/protobuf/empty.gen.d.ts +38 -0
  276. package/out-js/google/protobuf/empty.gen.js +54 -0
  277. package/out-js/google/protobuf/empty.gen.js.map +1 -0
  278. package/out-js/quests.gen.d.ts +1 -0
  279. package/out-js/quests.gen.js +6 -0
  280. package/out-js/quests.gen.js.map +1 -0
  281. package/out-js/sdk-apis.gen.d.ts +1 -0
  282. package/out-js/sdk-apis.gen.js +6 -0
  283. package/out-js/sdk-apis.gen.js.map +1 -0
  284. package/out-js/sdk-components.gen.d.ts +1 -0
  285. package/out-js/sdk-components.gen.js +6 -0
  286. package/out-js/sdk-components.gen.js.map +1 -0
  287. package/out-js/sdk-development.gen.d.ts +1 -0
  288. package/out-js/sdk-development.gen.js +6 -0
  289. package/out-js/sdk-development.gen.js.map +1 -0
  290. package/out-js/social.gen.d.ts +1 -0
  291. package/out-js/social.gen.js +6 -0
  292. package/out-js/social.gen.js.map +1 -0
  293. package/out-ts/about.gen.ts +3 -0
  294. package/out-ts/decentraland/common/border_rect.gen.ts +230 -0
  295. package/out-ts/decentraland/common/colors.gen.ts +293 -0
  296. package/out-ts/decentraland/common/content_mapping.gen.ts +31 -18
  297. package/out-ts/decentraland/common/sdk/user_data.gen.ts +133 -62
  298. package/out-ts/decentraland/common/texture.gen.ts +539 -0
  299. package/out-ts/decentraland/common/vectors.gen.ts +207 -56
  300. package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +884 -0
  301. package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +338 -33
  302. package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +54 -34
  303. package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +813 -1608
  304. package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +506 -293
  305. package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +386 -211
  306. package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +231 -140
  307. package/out-ts/decentraland/kernel/apis/permissions.gen.ts +136 -72
  308. package/out-ts/decentraland/kernel/apis/players.gen.ts +170 -100
  309. package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +305 -158
  310. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +1339 -162
  311. package/out-ts/decentraland/kernel/apis/runtime.gen.ts +911 -0
  312. package/out-ts/decentraland/kernel/apis/scene.gen.ts +192 -0
  313. package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +356 -94
  314. package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +85 -51
  315. package/out-ts/decentraland/kernel/apis/testing.gen.ts +1270 -0
  316. package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +50 -33
  317. package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +99 -66
  318. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +1690 -239
  319. package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +404 -241
  320. package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1092 -611
  321. package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
  322. package/out-ts/decentraland/realm/about.gen.ts +1415 -0
  323. package/out-ts/decentraland/sdk/components/animator.gen.ts +240 -0
  324. package/out-ts/decentraland/sdk/components/audio_source.gen.ts +209 -0
  325. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +182 -0
  326. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +289 -0
  327. package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +149 -0
  328. package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +202 -0
  329. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +105 -0
  330. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +195 -0
  331. package/out-ts/decentraland/sdk/components/avatar_nametag.gen.ts +162 -0
  332. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +349 -0
  333. package/out-ts/decentraland/sdk/components/billboard.gen.ts +172 -0
  334. package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +86 -0
  335. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +115 -0
  336. package/out-ts/decentraland/sdk/components/common/avatar_mask.gen.ts +31 -0
  337. package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +43 -0
  338. package/out-ts/decentraland/sdk/components/common/explorer_ui.gen.ts +77 -0
  339. package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
  340. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +206 -0
  341. package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
  342. package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +204 -0
  343. package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
  344. package/out-ts/decentraland/sdk/components/engine_info.gen.ts +134 -0
  345. package/out-ts/decentraland/sdk/components/explorer_item_purchase_result.gen.ts +370 -0
  346. package/out-ts/decentraland/sdk/components/explorer_ui_events_result.gen.ts +281 -0
  347. package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +127 -0
  348. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +89 -0
  349. package/out-ts/decentraland/sdk/components/gltf_node_modifiers.gen.ts +204 -0
  350. package/out-ts/decentraland/sdk/components/material.gen.ts +655 -0
  351. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +536 -0
  352. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +454 -0
  353. package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +288 -0
  354. package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
  355. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +436 -0
  356. package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +170 -0
  357. package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +85 -0
  358. package/out-ts/decentraland/sdk/components/raycast.gen.ts +333 -0
  359. package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +168 -0
  360. package/out-ts/decentraland/sdk/components/realm_info.gen.ts +183 -0
  361. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +470 -0
  362. package/out-ts/decentraland/sdk/components/touch_screen_controls.gen.ts +265 -0
  363. package/out-ts/decentraland/sdk/components/tween.gen.ts +1336 -0
  364. package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
  365. package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
  366. package/out-ts/decentraland/sdk/components/ui_background.gen.ts +223 -0
  367. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +231 -0
  368. package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +80 -0
  369. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +215 -0
  370. package/out-ts/decentraland/sdk/components/ui_input_binding.gen.ts +114 -0
  371. package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +97 -0
  372. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +219 -0
  373. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1775 -0
  374. package/out-ts/decentraland/sdk/components/video_player.gen.ts +231 -0
  375. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +108 -0
  376. package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
  377. package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
  378. package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
  379. package/out-ts/decentraland/social_service/errors.gen.ts +442 -0
  380. package/out-ts/decentraland/social_service/v1/social_service_v1.gen.ts +2799 -0
  381. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +10674 -0
  382. package/out-ts/google/protobuf/descriptor.gen.ts +1145 -536
  383. package/out-ts/google/protobuf/empty.gen.ts +21 -16
  384. package/out-ts/quests.gen.ts +3 -0
  385. package/out-ts/sdk-components.gen.ts +3 -0
  386. package/out-ts/sdk-development.gen.ts +3 -0
  387. package/out-ts/social.gen.ts +3 -0
  388. package/package.json +21 -10
  389. package/proto/decentraland/common/border_rect.proto +18 -0
  390. package/proto/decentraland/common/colors.proto +6 -0
  391. package/proto/decentraland/common/entity.proto +1 -1
  392. package/proto/decentraland/common/floats.proto +8 -0
  393. package/proto/decentraland/common/options.proto +51 -0
  394. package/proto/decentraland/common/quantization_example.proto +164 -0
  395. package/proto/decentraland/common/texture.proto +19 -8
  396. package/proto/decentraland/common/vectors.proto +7 -0
  397. package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
  398. package/proto/decentraland/kernel/apis/communications_controller.proto +19 -2
  399. package/proto/decentraland/kernel/apis/dev_tools.proto +2 -0
  400. package/proto/decentraland/kernel/apis/engine_api.proto +37 -111
  401. package/proto/decentraland/kernel/apis/environment_api.proto +7 -0
  402. package/proto/decentraland/kernel/apis/ethereum_controller.proto +10 -0
  403. package/proto/decentraland/kernel/apis/parcel_identity.proto +3 -0
  404. package/proto/decentraland/kernel/apis/permissions.proto +4 -0
  405. package/proto/decentraland/kernel/apis/players.proto +6 -0
  406. package/proto/decentraland/kernel/apis/portable_experiences.proto +15 -1
  407. package/proto/decentraland/kernel/apis/restricted_actions.proto +127 -12
  408. package/proto/decentraland/kernel/apis/runtime.proto +71 -0
  409. package/proto/decentraland/kernel/apis/scene.proto +16 -0
  410. package/proto/decentraland/kernel/apis/signed_fetch.proto +8 -0
  411. package/proto/decentraland/kernel/apis/social_controller.proto +6 -3
  412. package/proto/decentraland/kernel/apis/testing.proto +100 -0
  413. package/proto/decentraland/kernel/apis/user_action_module.proto +1 -0
  414. package/proto/decentraland/kernel/apis/user_identity.proto +1 -0
  415. package/proto/decentraland/kernel/comms/rfc4/comms.proto +92 -0
  416. package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +6 -3
  417. package/proto/decentraland/kernel/comms/v3/archipelago.proto +58 -34
  418. package/proto/decentraland/pulse/pulse_client.proto +120 -0
  419. package/proto/decentraland/pulse/pulse_server.proto +144 -0
  420. package/proto/decentraland/pulse/pulse_shared.proto +57 -0
  421. package/proto/decentraland/quests/definitions.proto +185 -0
  422. package/proto/decentraland/realm/about.proto +138 -0
  423. package/proto/decentraland/sdk/components/animator.proto +20 -8
  424. package/proto/decentraland/sdk/components/asset_load.proto +10 -0
  425. package/proto/decentraland/sdk/components/asset_load_loading_state.proto +16 -0
  426. package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
  427. package/proto/decentraland/sdk/components/audio_event.proto +12 -0
  428. package/proto/decentraland/sdk/components/audio_source.proto +24 -6
  429. package/proto/decentraland/sdk/components/audio_stream.proto +14 -3
  430. package/proto/decentraland/sdk/components/avatar_attach.proto +37 -5
  431. package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
  432. package/proto/decentraland/sdk/components/avatar_emote_command.proto +32 -0
  433. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
  434. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
  435. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +21 -7
  436. package/proto/decentraland/sdk/components/avatar_nametag.proto +33 -0
  437. package/proto/decentraland/sdk/components/avatar_shape.proto +36 -24
  438. package/proto/decentraland/sdk/components/billboard.proto +24 -6
  439. package/proto/decentraland/sdk/components/camera_mode.proto +3 -1
  440. package/proto/decentraland/sdk/components/camera_mode_area.proto +13 -2
  441. package/proto/decentraland/sdk/components/common/avatar_mask.proto +7 -0
  442. package/proto/decentraland/sdk/components/common/camera_transition.proto +11 -0
  443. package/proto/decentraland/sdk/components/common/camera_type.proto +1 -0
  444. package/proto/decentraland/sdk/components/common/explorer_ui.proto +15 -0
  445. package/proto/decentraland/sdk/components/common/input_action.proto +17 -0
  446. package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
  447. package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
  448. package/proto/decentraland/sdk/components/common/raycast_hit.proto +16 -0
  449. package/proto/decentraland/sdk/components/common/texts.proto +3 -2
  450. package/proto/decentraland/sdk/components/engine_info.proto +16 -0
  451. package/proto/decentraland/sdk/components/explorer_item_purchase_result.proto +24 -0
  452. package/proto/decentraland/sdk/components/explorer_ui_events_result.proto +33 -0
  453. package/proto/decentraland/sdk/components/gltf_container.proto +11 -5
  454. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  455. package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +25 -0
  456. package/proto/decentraland/sdk/components/input_modifier.proto +22 -0
  457. package/proto/decentraland/sdk/components/light_source.proto +28 -0
  458. package/proto/decentraland/sdk/components/main_camera.proto +11 -0
  459. package/proto/decentraland/sdk/components/map_pin.proto +16 -0
  460. package/proto/decentraland/sdk/components/material.proto +8 -7
  461. package/proto/decentraland/sdk/components/mesh_collider.proto +36 -9
  462. package/proto/decentraland/sdk/components/mesh_renderer.proto +17 -4
  463. package/proto/decentraland/sdk/components/nft_shape.proto +15 -7
  464. package/proto/decentraland/sdk/components/particle_system.proto +133 -0
  465. package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
  466. package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
  467. package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
  468. package/proto/decentraland/sdk/components/pointer_events.proto +68 -0
  469. package/proto/decentraland/sdk/components/pointer_events_result.proto +8 -14
  470. package/proto/decentraland/sdk/components/pointer_lock.proto +3 -1
  471. package/proto/decentraland/sdk/components/primary_pointer_info.proto +39 -0
  472. package/proto/decentraland/sdk/components/raycast.proto +45 -8
  473. package/proto/decentraland/sdk/components/raycast_result.proto +12 -16
  474. package/proto/decentraland/sdk/components/realm_info.proto +15 -0
  475. package/proto/decentraland/sdk/components/skybox_time.proto +20 -0
  476. package/proto/decentraland/sdk/components/text_shape.proto +33 -21
  477. package/proto/decentraland/sdk/components/touch_screen_controls.proto +38 -0
  478. package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
  479. package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
  480. package/proto/decentraland/sdk/components/tween.proto +117 -0
  481. package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
  482. package/proto/decentraland/sdk/components/tween_state.proto +18 -0
  483. package/proto/decentraland/sdk/components/ui_background.proto +25 -2
  484. package/proto/decentraland/sdk/components/ui_canvas_information.proto +30 -0
  485. package/proto/decentraland/sdk/components/ui_dropdown.proto +22 -0
  486. package/proto/decentraland/sdk/components/ui_dropdown_result.proto +11 -0
  487. package/proto/decentraland/sdk/components/ui_input.proto +20 -0
  488. package/proto/decentraland/sdk/components/ui_input_binding.proto +27 -0
  489. package/proto/decentraland/sdk/components/ui_input_result.proto +12 -0
  490. package/proto/decentraland/sdk/components/ui_text.proto +14 -5
  491. package/proto/decentraland/sdk/components/ui_transform.proto +97 -82
  492. package/proto/decentraland/sdk/components/video_event.proto +25 -0
  493. package/proto/decentraland/sdk/components/video_player.proto +24 -0
  494. package/proto/decentraland/sdk/components/virtual_camera.proto +18 -0
  495. package/proto/decentraland/sdk/components/visibility_component.proto +7 -0
  496. package/proto/decentraland/sdk/development/local_development.proto +29 -0
  497. package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
  498. package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
  499. package/proto/decentraland/social_service/errors.proto +30 -0
  500. package/proto/decentraland/social_service/v1/social_service_v1.proto +163 -0
  501. package/proto/decentraland/social_service/v2/social_service_v2.proto +721 -0
  502. package/protoc-gen-bitwise/generator_csharp.js +248 -0
  503. package/protoc-gen-bitwise/options.js +139 -0
  504. package/protoc-gen-bitwise/plugin.js +87 -0
  505. package/protoc-gen-bitwise/runtime/cs/Quantize.cs +70 -0
  506. package/protoc-gen-bitwise/wire.js +239 -0
  507. package/public/about.proto +5 -0
  508. package/public/quests.proto +5 -0
  509. package/public/sdk-apis.proto +4 -0
  510. package/public/sdk-components.proto +48 -0
  511. package/public/sdk-development.proto +5 -0
  512. package/public/social.proto +6 -0
  513. package/out-ts/bff-services.gen.ts +0 -3
  514. package/out-ts/decentraland/bff/authentication_service.gen.ts +0 -279
  515. package/out-ts/decentraland/bff/comms_director_service.gen.ts +0 -239
  516. package/out-ts/decentraland/bff/comms_service.gen.ts +0 -194
  517. package/out-ts/decentraland/bff/http_endpoints.gen.ts +0 -845
  518. package/out-ts/decentraland/bff/topics_service.gen.ts +0 -405
  519. package/out-ts/decentraland/renderer/engine_interface.gen.ts +0 -8669
  520. package/out-ts/decentraland/renderer/protocol.gen.ts +0 -267
  521. package/out-ts/google/api/annotations.gen.ts +0 -3
  522. package/out-ts/google/api/http.gen.ts +0 -295
  523. package/out-ts/renderer-interface.gen.ts +0 -3
  524. package/proto/buf.yaml +0 -45
  525. package/proto/decentraland/bff/authentication_service.proto +0 -27
  526. package/proto/decentraland/bff/comms_director_service.proto +0 -33
  527. package/proto/decentraland/bff/comms_service.proto +0 -25
  528. package/proto/decentraland/bff/http_endpoints.proto +0 -82
  529. package/proto/decentraland/bff/topics_service.proto +0 -34
  530. package/proto/decentraland/renderer/engine_interface.proto +0 -709
  531. package/proto/decentraland/renderer/protocol.proto +0 -21
  532. package/proto/decentraland/sdk/components/pointer_hover_feedback.proto +0 -31
  533. package/proto/google/LICENSE +0 -27
  534. package/proto/google/README.md +0 -1
  535. package/proto/google/api/annotations.json +0 -83
  536. package/proto/google/api/annotations.proto +0 -11
  537. package/proto/google/api/http.json +0 -86
  538. package/proto/google/api/http.proto +0 -31
  539. package/proto/google/protobuf/api.json +0 -118
  540. package/proto/google/protobuf/api.proto +0 -34
  541. package/proto/google/protobuf/descriptor.json +0 -739
  542. package/proto/google/protobuf/descriptor.proto +0 -286
  543. package/proto/google/protobuf/source_context.json +0 -20
  544. package/proto/google/protobuf/source_context.proto +0 -7
  545. package/proto/google/protobuf/type.json +0 -202
  546. package/proto/google/protobuf/type.proto +0 -89
  547. package/public/bff-services.proto +0 -16
  548. package/public/renderer-interface.proto +0 -4
@@ -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,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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"}
@@ -0,0 +1,74 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { Color3 } from "../../common/colors.gen";
3
+ export declare const protobufPackage = "decentraland.sdk.components";
4
+ /**
5
+ * The AvatarShape component contains the information required to draw and animate avatar, acting as
6
+ * a simplified GLTF container for this specific case.
7
+ *
8
+ * All fields (except ID) are optional have reasonable default values. In the case of `wearables`,
9
+ * each slot on the Avatar's body that is not explicitly included in the list has its own default.
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.
13
+ */
14
+ export interface PBAvatarShape {
15
+ /** the user ID */
16
+ id: string;
17
+ /** visible name (default: "NPC") */
18
+ name?: string | undefined;
19
+ /** shape URN (default "urn:decentraland:off-chain:base-avatars:BaseFemale") */
20
+ bodyShape?: string | undefined;
21
+ /** RGB (default [0.6, 0.462, 0.356]) */
22
+ skinColor?: Color3 | undefined;
23
+ /** RGB (default [0.283, 0.142, 0]) */
24
+ hairColor?: Color3 | undefined;
25
+ /** RGB (default [0.6, 0.462, 0.356]) */
26
+ eyeColor?: Color3 | undefined;
27
+ /** current emote animations */
28
+ expressionTriggerId?: string | undefined;
29
+ /** start of emote animations (in the same order) */
30
+ expressionTriggerTimestamp?: number | undefined;
31
+ /** whether to display the floating voice chat icon */
32
+ talking?: boolean | undefined;
33
+ /**
34
+ * Wearable URNs, one for each body slot.
35
+ * Default values for each unspecified slot:
36
+ * Eyes : "urn:decentraland:off-chain:base-avatars:f_eyes_00",
37
+ * Eyebrows: "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
38
+ * Mouth : "urn:decentraland:off-chain:base-avatars:f_mouth_00"
39
+ * Hair : "urn:decentraland:off-chain:base-avatars:standard_hair",
40
+ * Shirt : "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
41
+ * Trousers: "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
42
+ * Shoes : "urn:decentraland:off-chain:base-avatars:bun_shoes"]
43
+ */
44
+ wearables: string[];
45
+ /** available emotes (default empty) */
46
+ emotes: string[];
47
+ /** hides the skin + hair + facial features (default: false) */
48
+ showOnlyWearables?: boolean | undefined;
49
+ }
50
+ export declare namespace PBAvatarShape {
51
+ function encode(message: PBAvatarShape, writer?: _m0.Writer): _m0.Writer;
52
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarShape;
53
+ function fromJSON(object: any): PBAvatarShape;
54
+ function toJSON(message: PBAvatarShape): unknown;
55
+ function create<I extends Exact<DeepPartial<PBAvatarShape>, I>>(base?: I): PBAvatarShape;
56
+ function fromPartial<I extends Exact<DeepPartial<PBAvatarShape>, I>>(object: I): PBAvatarShape;
57
+ }
58
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
59
+ 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 {
60
+ $case: string;
61
+ } ? {
62
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
63
+ } & {
64
+ $case: T["$case"];
65
+ } : T extends {} ? {
66
+ [K in keyof T]?: DeepPartial<T[K]>;
67
+ } : Partial<T>;
68
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
69
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
70
+ [K in keyof P]: Exact<P[K], I[K]>;
71
+ } & {
72
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
73
+ };
74
+ export {};
@@ -0,0 +1,264 @@
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.PBAvatarShape = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const long_1 = __importDefault(require("long"));
9
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ const colors_gen_1 = require("../../common/colors.gen");
11
+ exports.protobufPackage = "decentraland.sdk.components";
12
+ function createBasePBAvatarShape() {
13
+ return {
14
+ id: "",
15
+ name: undefined,
16
+ bodyShape: undefined,
17
+ skinColor: undefined,
18
+ hairColor: undefined,
19
+ eyeColor: undefined,
20
+ expressionTriggerId: undefined,
21
+ expressionTriggerTimestamp: undefined,
22
+ talking: undefined,
23
+ wearables: [],
24
+ emotes: [],
25
+ showOnlyWearables: undefined,
26
+ };
27
+ }
28
+ var PBAvatarShape;
29
+ (function (PBAvatarShape) {
30
+ function encode(message, writer = minimal_1.default.Writer.create()) {
31
+ if (message.id !== "") {
32
+ writer.uint32(10).string(message.id);
33
+ }
34
+ if (message.name !== undefined) {
35
+ writer.uint32(18).string(message.name);
36
+ }
37
+ if (message.bodyShape !== undefined) {
38
+ writer.uint32(26).string(message.bodyShape);
39
+ }
40
+ if (message.skinColor !== undefined) {
41
+ colors_gen_1.Color3.encode(message.skinColor, writer.uint32(34).fork()).ldelim();
42
+ }
43
+ if (message.hairColor !== undefined) {
44
+ colors_gen_1.Color3.encode(message.hairColor, writer.uint32(42).fork()).ldelim();
45
+ }
46
+ if (message.eyeColor !== undefined) {
47
+ colors_gen_1.Color3.encode(message.eyeColor, writer.uint32(50).fork()).ldelim();
48
+ }
49
+ if (message.expressionTriggerId !== undefined) {
50
+ writer.uint32(58).string(message.expressionTriggerId);
51
+ }
52
+ if (message.expressionTriggerTimestamp !== undefined) {
53
+ writer.uint32(64).int64(message.expressionTriggerTimestamp);
54
+ }
55
+ if (message.talking !== undefined) {
56
+ writer.uint32(72).bool(message.talking);
57
+ }
58
+ for (const v of message.wearables) {
59
+ writer.uint32(82).string(v);
60
+ }
61
+ for (const v of message.emotes) {
62
+ writer.uint32(90).string(v);
63
+ }
64
+ if (message.showOnlyWearables !== undefined) {
65
+ writer.uint32(96).bool(message.showOnlyWearables);
66
+ }
67
+ return writer;
68
+ }
69
+ PBAvatarShape.encode = encode;
70
+ function decode(input, length) {
71
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
72
+ let end = length === undefined ? reader.len : reader.pos + length;
73
+ const message = createBasePBAvatarShape();
74
+ while (reader.pos < end) {
75
+ const tag = reader.uint32();
76
+ switch (tag >>> 3) {
77
+ case 1:
78
+ if (tag !== 10) {
79
+ break;
80
+ }
81
+ message.id = reader.string();
82
+ continue;
83
+ case 2:
84
+ if (tag !== 18) {
85
+ break;
86
+ }
87
+ message.name = reader.string();
88
+ continue;
89
+ case 3:
90
+ if (tag !== 26) {
91
+ break;
92
+ }
93
+ message.bodyShape = reader.string();
94
+ continue;
95
+ case 4:
96
+ if (tag !== 34) {
97
+ break;
98
+ }
99
+ message.skinColor = colors_gen_1.Color3.decode(reader, reader.uint32());
100
+ continue;
101
+ case 5:
102
+ if (tag !== 42) {
103
+ break;
104
+ }
105
+ message.hairColor = colors_gen_1.Color3.decode(reader, reader.uint32());
106
+ continue;
107
+ case 6:
108
+ if (tag !== 50) {
109
+ break;
110
+ }
111
+ message.eyeColor = colors_gen_1.Color3.decode(reader, reader.uint32());
112
+ continue;
113
+ case 7:
114
+ if (tag !== 58) {
115
+ break;
116
+ }
117
+ message.expressionTriggerId = reader.string();
118
+ continue;
119
+ case 8:
120
+ if (tag !== 64) {
121
+ break;
122
+ }
123
+ message.expressionTriggerTimestamp = longToNumber(reader.int64());
124
+ continue;
125
+ case 9:
126
+ if (tag !== 72) {
127
+ break;
128
+ }
129
+ message.talking = reader.bool();
130
+ continue;
131
+ case 10:
132
+ if (tag !== 82) {
133
+ break;
134
+ }
135
+ message.wearables.push(reader.string());
136
+ continue;
137
+ case 11:
138
+ if (tag !== 90) {
139
+ break;
140
+ }
141
+ message.emotes.push(reader.string());
142
+ continue;
143
+ case 12:
144
+ if (tag !== 96) {
145
+ break;
146
+ }
147
+ message.showOnlyWearables = reader.bool();
148
+ continue;
149
+ }
150
+ if ((tag & 7) === 4 || tag === 0) {
151
+ break;
152
+ }
153
+ reader.skipType(tag & 7);
154
+ }
155
+ return message;
156
+ }
157
+ PBAvatarShape.decode = decode;
158
+ function fromJSON(object) {
159
+ return {
160
+ id: isSet(object.id) ? String(object.id) : "",
161
+ name: isSet(object.name) ? String(object.name) : undefined,
162
+ bodyShape: isSet(object.bodyShape) ? String(object.bodyShape) : undefined,
163
+ skinColor: isSet(object.skinColor) ? colors_gen_1.Color3.fromJSON(object.skinColor) : undefined,
164
+ hairColor: isSet(object.hairColor) ? colors_gen_1.Color3.fromJSON(object.hairColor) : undefined,
165
+ eyeColor: isSet(object.eyeColor) ? colors_gen_1.Color3.fromJSON(object.eyeColor) : undefined,
166
+ expressionTriggerId: isSet(object.expressionTriggerId) ? String(object.expressionTriggerId) : undefined,
167
+ expressionTriggerTimestamp: isSet(object.expressionTriggerTimestamp)
168
+ ? Number(object.expressionTriggerTimestamp)
169
+ : undefined,
170
+ talking: isSet(object.talking) ? Boolean(object.talking) : undefined,
171
+ wearables: Array.isArray(object === null || object === void 0 ? void 0 : object.wearables) ? object.wearables.map((e) => String(e)) : [],
172
+ emotes: Array.isArray(object === null || object === void 0 ? void 0 : object.emotes) ? object.emotes.map((e) => String(e)) : [],
173
+ showOnlyWearables: isSet(object.showOnlyWearables) ? Boolean(object.showOnlyWearables) : undefined,
174
+ };
175
+ }
176
+ PBAvatarShape.fromJSON = fromJSON;
177
+ function toJSON(message) {
178
+ const obj = {};
179
+ message.id !== undefined && (obj.id = message.id);
180
+ message.name !== undefined && (obj.name = message.name);
181
+ message.bodyShape !== undefined && (obj.bodyShape = message.bodyShape);
182
+ message.skinColor !== undefined &&
183
+ (obj.skinColor = message.skinColor ? colors_gen_1.Color3.toJSON(message.skinColor) : undefined);
184
+ message.hairColor !== undefined &&
185
+ (obj.hairColor = message.hairColor ? colors_gen_1.Color3.toJSON(message.hairColor) : undefined);
186
+ message.eyeColor !== undefined && (obj.eyeColor = message.eyeColor ? colors_gen_1.Color3.toJSON(message.eyeColor) : undefined);
187
+ message.expressionTriggerId !== undefined && (obj.expressionTriggerId = message.expressionTriggerId);
188
+ message.expressionTriggerTimestamp !== undefined &&
189
+ (obj.expressionTriggerTimestamp = Math.round(message.expressionTriggerTimestamp));
190
+ message.talking !== undefined && (obj.talking = message.talking);
191
+ if (message.wearables) {
192
+ obj.wearables = message.wearables.map((e) => e);
193
+ }
194
+ else {
195
+ obj.wearables = [];
196
+ }
197
+ if (message.emotes) {
198
+ obj.emotes = message.emotes.map((e) => e);
199
+ }
200
+ else {
201
+ obj.emotes = [];
202
+ }
203
+ message.showOnlyWearables !== undefined && (obj.showOnlyWearables = message.showOnlyWearables);
204
+ return obj;
205
+ }
206
+ PBAvatarShape.toJSON = toJSON;
207
+ function create(base) {
208
+ return PBAvatarShape.fromPartial(base !== null && base !== void 0 ? base : {});
209
+ }
210
+ PBAvatarShape.create = create;
211
+ function fromPartial(object) {
212
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
213
+ const message = createBasePBAvatarShape();
214
+ message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
215
+ message.name = (_b = object.name) !== null && _b !== void 0 ? _b : undefined;
216
+ message.bodyShape = (_c = object.bodyShape) !== null && _c !== void 0 ? _c : undefined;
217
+ message.skinColor = (object.skinColor !== undefined && object.skinColor !== null)
218
+ ? colors_gen_1.Color3.fromPartial(object.skinColor)
219
+ : undefined;
220
+ message.hairColor = (object.hairColor !== undefined && object.hairColor !== null)
221
+ ? colors_gen_1.Color3.fromPartial(object.hairColor)
222
+ : undefined;
223
+ message.eyeColor = (object.eyeColor !== undefined && object.eyeColor !== null)
224
+ ? colors_gen_1.Color3.fromPartial(object.eyeColor)
225
+ : undefined;
226
+ message.expressionTriggerId = (_d = object.expressionTriggerId) !== null && _d !== void 0 ? _d : undefined;
227
+ message.expressionTriggerTimestamp = (_e = object.expressionTriggerTimestamp) !== null && _e !== void 0 ? _e : undefined;
228
+ message.talking = (_f = object.talking) !== null && _f !== void 0 ? _f : undefined;
229
+ message.wearables = ((_g = object.wearables) === null || _g === void 0 ? void 0 : _g.map((e) => e)) || [];
230
+ message.emotes = ((_h = object.emotes) === null || _h === void 0 ? void 0 : _h.map((e) => e)) || [];
231
+ message.showOnlyWearables = (_j = object.showOnlyWearables) !== null && _j !== void 0 ? _j : undefined;
232
+ return message;
233
+ }
234
+ PBAvatarShape.fromPartial = fromPartial;
235
+ })(PBAvatarShape || (exports.PBAvatarShape = PBAvatarShape = {}));
236
+ const tsProtoGlobalThis = (() => {
237
+ if (typeof globalThis !== "undefined") {
238
+ return globalThis;
239
+ }
240
+ if (typeof self !== "undefined") {
241
+ return self;
242
+ }
243
+ if (typeof window !== "undefined") {
244
+ return window;
245
+ }
246
+ if (typeof global !== "undefined") {
247
+ return global;
248
+ }
249
+ throw "Unable to locate global object";
250
+ })();
251
+ function longToNumber(long) {
252
+ if (long.gt(Number.MAX_SAFE_INTEGER)) {
253
+ throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
254
+ }
255
+ return long.toNumber();
256
+ }
257
+ if (minimal_1.default.util.Long !== long_1.default) {
258
+ minimal_1.default.util.Long = long_1.default;
259
+ minimal_1.default.configure();
260
+ }
261
+ function isSet(value) {
262
+ return value !== null && value !== undefined;
263
+ }
264
+ //# sourceMappingURL=avatar_shape.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar_shape.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_shape.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,gDAAwB;AACxB,iEAAqC;AACrC,wDAAiD;AAEpC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAiE7D,SAAS,uBAAuB;IAC9B,OAAO;QACL,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,S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7B;AAKD,MAAM,iBAAiB,GAAQ,CAAC,GAAG,EAAE;IACnC,IAAI,OAAO,UAAU,KAAK,WAAW,EAAE,CAAC;QACtC,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,gCAAgC,CAAC;AACzC,CAAC,CAAC,EAAE,CAAC;AAcL,SAAS,YAAY,CAAC,IAAU;IAC9B,IAAI,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,iBAAiB,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;IACpF,CAAC;IACD,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzB,CAAC;AAED,IAAI,iBAAG,CAAC,IAAI,CAAC,IAAI,KAAK,cAAI,EAAE,CAAC;IAC3B,iBAAG,CAAC,IAAI,CAAC,IAAI,GAAG,cAAW,CAAC;IAC5B,iBAAG,CAAC,SAAS,EAAE,CAAC;AAClB,CAAC;AAED,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,61 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ /**
4
+ * BillboardMode indicates one or more axis for automatic rotation, in OR-able bit flag form.
5
+ * Only the values below and the (BM_X | BM_Y) combination are valid.
6
+ */
7
+ export declare enum BillboardMode {
8
+ BM_NONE = 0,
9
+ BM_X = 1,
10
+ BM_Y = 2,
11
+ BM_Z = 4,
12
+ /** BM_ALL - bitwise combination BM_X | BM_Y | BM_Z */
13
+ BM_ALL = 7,
14
+ UNRECOGNIZED = -1
15
+ }
16
+ export declare function billboardModeFromJSON(object: any): BillboardMode;
17
+ export declare function billboardModeToJSON(object: BillboardMode): string;
18
+ /**
19
+ * The Billboard component makes an Entity automatically reorient its rotation to face a target.
20
+ * By default (when target_entity is unset), the billboard faces the main camera. When target_entity
21
+ * is set, the billboard faces that entity instead. Setting target_entity to the camera reserved
22
+ * entity (2) is equivalent to leaving the field unset. If the referenced target entity doesn’t exist
23
+ * or is deleted, the billboard reorientation is disabled until the target exists again.
24
+ *
25
+ * As the name indicates, it’s used to display in-game billboards and frequently combined with
26
+ * the TextShape component.
27
+ *
28
+ * Billboard only affects the Entity’s rotation. Its scale and position are still determined by its
29
+ * Transform.
30
+ */
31
+ export interface PBBillboard {
32
+ /** the BillboardMode (default: BM_ALL) */
33
+ billboardMode?: BillboardMode | undefined;
34
+ /** entity to face instead of the camera; if the referenced entity doesn’t exist, the billboard behavior is disabled until it does */
35
+ targetEntity?: number | undefined;
36
+ }
37
+ export declare namespace PBBillboard {
38
+ function encode(message: PBBillboard, writer?: _m0.Writer): _m0.Writer;
39
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBBillboard;
40
+ function fromJSON(object: any): PBBillboard;
41
+ function toJSON(message: PBBillboard): unknown;
42
+ function create<I extends Exact<DeepPartial<PBBillboard>, I>>(base?: I): PBBillboard;
43
+ function fromPartial<I extends Exact<DeepPartial<PBBillboard>, I>>(object: I): PBBillboard;
44
+ }
45
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
46
+ 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 {
47
+ $case: string;
48
+ } ? {
49
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
50
+ } & {
51
+ $case: T["$case"];
52
+ } : T extends {} ? {
53
+ [K in keyof T]?: DeepPartial<T[K]>;
54
+ } : Partial<T>;
55
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
56
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
57
+ [K in keyof P]: Exact<P[K], I[K]>;
58
+ } & {
59
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
60
+ };
61
+ export {};