@dcl/protocol 1.0.0-10043247792.commit-428d1eb

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 (473) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +69 -0
  3. package/out-js/about.gen.d.ts +1 -0
  4. package/out-js/about.gen.js +6 -0
  5. package/out-js/about.gen.js.map +1 -0
  6. package/out-js/comms.gen.d.ts +1 -0
  7. package/out-js/comms.gen.js +6 -0
  8. package/out-js/comms.gen.js.map +1 -0
  9. package/out-js/decentraland/common/border_rect.gen.d.ts +49 -0
  10. package/out-js/decentraland/common/border_rect.gen.js +201 -0
  11. package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
  12. package/out-js/decentraland/common/colors.gen.d.ts +46 -0
  13. package/out-js/decentraland/common/colors.gen.js +189 -0
  14. package/out-js/decentraland/common/colors.gen.js.map +1 -0
  15. package/out-js/decentraland/common/content_mapping.gen.d.ts +31 -0
  16. package/out-js/decentraland/common/content_mapping.gen.js +80 -0
  17. package/out-js/decentraland/common/content_mapping.gen.js.map +1 -0
  18. package/out-js/decentraland/common/sdk/user_data.gen.d.ts +63 -0
  19. package/out-js/decentraland/common/sdk/user_data.gen.js +330 -0
  20. package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -0
  21. package/out-js/decentraland/common/texture.gen.d.ts +100 -0
  22. package/out-js/decentraland/common/texture.gen.js +446 -0
  23. package/out-js/decentraland/common/texture.gen.js.map +1 -0
  24. package/out-js/decentraland/common/vectors.gen.d.ts +71 -0
  25. package/out-js/decentraland/common/vectors.gen.js +338 -0
  26. package/out-js/decentraland/common/vectors.gen.js.map +1 -0
  27. package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +76 -0
  28. package/out-js/decentraland/kernel/apis/comms_api.gen.js +257 -0
  29. package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -0
  30. package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +89 -0
  31. package/out-js/decentraland/kernel/apis/communications_controller.gen.js +301 -0
  32. package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -0
  33. package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +58 -0
  34. package/out-js/decentraland/kernel/apis/dev_tools.gen.js +142 -0
  35. package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -0
  36. package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +338 -0
  37. package/out-js/decentraland/kernel/apis/engine_api.gen.js +1452 -0
  38. package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -0
  39. package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +283 -0
  40. package/out-js/decentraland/kernel/apis/environment_api.gen.js +1122 -0
  41. package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -0
  42. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +225 -0
  43. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +878 -0
  44. package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -0
  45. package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +146 -0
  46. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +557 -0
  47. package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -0
  48. package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +100 -0
  49. package/out-js/decentraland/kernel/apis/permissions.gen.js +360 -0
  50. package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -0
  51. package/out-js/decentraland/kernel/apis/players.gen.d.ts +127 -0
  52. package/out-js/decentraland/kernel/apis/players.gen.js +372 -0
  53. package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -0
  54. package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +178 -0
  55. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +607 -0
  56. package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -0
  57. package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +244 -0
  58. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +824 -0
  59. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -0
  60. package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +217 -0
  61. package/out-js/decentraland/kernel/apis/runtime.gen.js +801 -0
  62. package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -0
  63. package/out-js/decentraland/kernel/apis/scene.gen.d.ts +59 -0
  64. package/out-js/decentraland/kernel/apis/scene.gen.js +171 -0
  65. package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -0
  66. package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +139 -0
  67. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +615 -0
  68. package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -0
  69. package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +72 -0
  70. package/out-js/decentraland/kernel/apis/social_controller.gen.js +207 -0
  71. package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -0
  72. package/out-js/decentraland/kernel/apis/testing.gen.d.ts +249 -0
  73. package/out-js/decentraland/kernel/apis/testing.gen.js +1073 -0
  74. package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -0
  75. package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +56 -0
  76. package/out-js/decentraland/kernel/apis/user_action_module.gen.js +128 -0
  77. package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -0
  78. package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +86 -0
  79. package/out-js/decentraland/kernel/apis/user_identity.gen.js +236 -0
  80. package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -0
  81. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +213 -0
  82. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1282 -0
  83. package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -0
  84. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +183 -0
  85. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +906 -0
  86. package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -0
  87. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +224 -0
  88. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1204 -0
  89. package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -0
  90. package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
  91. package/out-js/decentraland/quests/definitions.gen.js +2728 -0
  92. package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
  93. package/out-js/decentraland/realm/about.gen.d.ts +150 -0
  94. package/out-js/decentraland/realm/about.gen.js +914 -0
  95. package/out-js/decentraland/realm/about.gen.js.map +1 -0
  96. package/out-js/decentraland/sdk/components/animator.gen.d.ts +62 -0
  97. package/out-js/decentraland/sdk/components/animator.gen.js +192 -0
  98. package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
  99. package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +61 -0
  100. package/out-js/decentraland/sdk/components/audio_source.gen.js +151 -0
  101. package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
  102. package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +40 -0
  103. package/out-js/decentraland/sdk/components/audio_stream.gen.js +95 -0
  104. package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
  105. package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +76 -0
  106. package/out-js/decentraland/sdk/components/avatar_attach.gen.js +262 -0
  107. package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
  108. package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +36 -0
  109. package/out-js/decentraland/sdk/components/avatar_base.gen.js +129 -0
  110. package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
  111. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +37 -0
  112. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +95 -0
  113. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
  114. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +36 -0
  115. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +90 -0
  116. package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
  117. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +60 -0
  118. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +153 -0
  119. package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
  120. package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +72 -0
  121. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +251 -0
  122. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
  123. package/out-js/decentraland/sdk/components/billboard.gen.d.ts +54 -0
  124. package/out-js/decentraland/sdk/components/billboard.gen.js +128 -0
  125. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
  126. package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +36 -0
  127. package/out-js/decentraland/sdk/components/camera_mode.gen.js +70 -0
  128. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
  129. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +48 -0
  130. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +85 -0
  131. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
  132. package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +10 -0
  133. package/out-js/decentraland/sdk/components/common/camera_type.gen.js +46 -0
  134. package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
  135. package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
  136. package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
  137. package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
  138. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +30 -0
  139. package/out-js/decentraland/sdk/components/common/input_action.gen.js +157 -0
  140. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
  141. package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
  142. package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
  143. package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
  144. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +45 -0
  145. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +163 -0
  146. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -0
  147. package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
  148. package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
  149. package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
  150. package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +41 -0
  151. package/out-js/decentraland/sdk/components/engine_info.gen.js +95 -0
  152. package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
  153. package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +41 -0
  154. package/out-js/decentraland/sdk/components/gltf_container.gen.js +101 -0
  155. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
  156. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +35 -0
  157. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +70 -0
  158. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
  159. package/out-js/decentraland/sdk/components/material.gen.d.ts +106 -0
  160. package/out-js/decentraland/sdk/components/material.gen.js +515 -0
  161. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
  162. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +128 -0
  163. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +469 -0
  164. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
  165. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +104 -0
  166. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +382 -0
  167. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
  168. package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +74 -0
  169. package/out-js/decentraland/sdk/components/nft_shape.gen.js +259 -0
  170. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
  171. package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
  172. package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
  173. package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
  174. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +79 -0
  175. package/out-js/decentraland/sdk/components/pointer_events.gen.js +247 -0
  176. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
  177. package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +42 -0
  178. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +133 -0
  179. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
  180. package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +35 -0
  181. package/out-js/decentraland/sdk/components/pointer_lock.gen.js +69 -0
  182. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
  183. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +79 -0
  184. package/out-js/decentraland/sdk/components/raycast.gen.js +274 -0
  185. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
  186. package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +48 -0
  187. package/out-js/decentraland/sdk/components/raycast_result.gen.js +132 -0
  188. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
  189. package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +35 -0
  190. package/out-js/decentraland/sdk/components/realm_info.gen.js +131 -0
  191. package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
  192. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +81 -0
  193. package/out-js/decentraland/sdk/components/text_shape.gen.js +345 -0
  194. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
  195. package/out-js/decentraland/sdk/components/tween.gen.d.ts +125 -0
  196. package/out-js/decentraland/sdk/components/tween.gen.js +598 -0
  197. package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
  198. package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
  199. package/out-js/decentraland/sdk/components/tween_sequence.gen.js +122 -0
  200. package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
  201. package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
  202. package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
  203. package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
  204. package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +63 -0
  205. package/out-js/decentraland/sdk/components/ui_background.gen.js +197 -0
  206. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
  207. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +45 -0
  208. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +187 -0
  209. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
  210. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +30 -0
  211. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +69 -0
  212. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
  213. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +44 -0
  214. package/out-js/decentraland/sdk/components/ui_input.gen.js +172 -0
  215. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
  216. package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +32 -0
  217. package/out-js/decentraland/sdk/components/ui_input_result.gen.js +83 -0
  218. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
  219. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +50 -0
  220. package/out-js/decentraland/sdk/components/ui_text.gen.js +177 -0
  221. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
  222. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +204 -0
  223. package/out-js/decentraland/sdk/components/ui_transform.gen.js +1210 -0
  224. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
  225. package/out-js/decentraland/sdk/components/video_player.gen.d.ts +41 -0
  226. package/out-js/decentraland/sdk/components/video_player.gen.js +138 -0
  227. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
  228. package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +31 -0
  229. package/out-js/decentraland/sdk/components/visibility_component.gen.js +69 -0
  230. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
  231. package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
  232. package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
  233. package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
  234. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
  235. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7842 -0
  236. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
  237. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
  238. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
  239. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
  240. package/out-js/decentraland/social/friendships/friendships.gen.d.ts +500 -0
  241. package/out-js/decentraland/social/friendships/friendships.gen.js +2517 -0
  242. package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -0
  243. package/out-js/decentraland/social_service_v2/social_service.gen.d.ts +357 -0
  244. package/out-js/decentraland/social_service_v2/social_service.gen.js +1554 -0
  245. package/out-js/decentraland/social_service_v2/social_service.gen.js.map +1 -0
  246. package/out-js/google/protobuf/descriptor.gen.d.ts +436 -0
  247. package/out-js/google/protobuf/descriptor.gen.js +3173 -0
  248. package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
  249. package/out-js/google/protobuf/empty.gen.d.ts +38 -0
  250. package/out-js/google/protobuf/empty.gen.js +54 -0
  251. package/out-js/google/protobuf/empty.gen.js.map +1 -0
  252. package/out-js/quests.gen.d.ts +1 -0
  253. package/out-js/quests.gen.js +6 -0
  254. package/out-js/quests.gen.js.map +1 -0
  255. package/out-js/sdk-apis.gen.d.ts +1 -0
  256. package/out-js/sdk-apis.gen.js +6 -0
  257. package/out-js/sdk-apis.gen.js.map +1 -0
  258. package/out-js/sdk-components.gen.d.ts +1 -0
  259. package/out-js/sdk-components.gen.js +6 -0
  260. package/out-js/sdk-components.gen.js.map +1 -0
  261. package/out-js/sdk-development.gen.d.ts +1 -0
  262. package/out-js/sdk-development.gen.js +6 -0
  263. package/out-js/sdk-development.gen.js.map +1 -0
  264. package/out-js/social.gen.d.ts +1 -0
  265. package/out-js/social.gen.js +6 -0
  266. package/out-js/social.gen.js.map +1 -0
  267. package/out-js/social_service_v2.gen.d.ts +1 -0
  268. package/out-js/social_service_v2.gen.js +6 -0
  269. package/out-js/social_service_v2.gen.js.map +1 -0
  270. package/out-ts/about.gen.ts +3 -0
  271. package/out-ts/comms.gen.ts +3 -0
  272. package/out-ts/decentraland/common/border_rect.gen.ts +230 -0
  273. package/out-ts/decentraland/common/colors.gen.ts +214 -0
  274. package/out-ts/decentraland/common/content_mapping.gen.ts +93 -0
  275. package/out-ts/decentraland/common/sdk/user_data.gen.ts +370 -0
  276. package/out-ts/decentraland/common/texture.gen.ts +500 -0
  277. package/out-ts/decentraland/common/vectors.gen.ts +377 -0
  278. package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +295 -0
  279. package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +327 -0
  280. package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +161 -0
  281. package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +1587 -0
  282. package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +1264 -0
  283. package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +982 -0
  284. package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +608 -0
  285. package/out-ts/decentraland/kernel/apis/permissions.gen.ts +397 -0
  286. package/out-ts/decentraland/kernel/apis/players.gen.ts +415 -0
  287. package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +668 -0
  288. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +895 -0
  289. package/out-ts/decentraland/kernel/apis/runtime.gen.ts +911 -0
  290. package/out-ts/decentraland/kernel/apis/scene.gen.ts +192 -0
  291. package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +691 -0
  292. package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +230 -0
  293. package/out-ts/decentraland/kernel/apis/testing.gen.ts +1270 -0
  294. package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +146 -0
  295. package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +264 -0
  296. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +1440 -0
  297. package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +1029 -0
  298. package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1338 -0
  299. package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
  300. package/out-ts/decentraland/realm/about.gen.ts +1062 -0
  301. package/out-ts/decentraland/sdk/components/animator.gen.ts +240 -0
  302. package/out-ts/decentraland/sdk/components/audio_source.gen.ts +209 -0
  303. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +122 -0
  304. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +289 -0
  305. package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +149 -0
  306. package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +115 -0
  307. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +105 -0
  308. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +188 -0
  309. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +333 -0
  310. package/out-ts/decentraland/sdk/components/billboard.gen.ts +148 -0
  311. package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +86 -0
  312. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +115 -0
  313. package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +43 -0
  314. package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
  315. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +154 -0
  316. package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
  317. package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +204 -0
  318. package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
  319. package/out-ts/decentraland/sdk/components/engine_info.gen.ts +119 -0
  320. package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +127 -0
  321. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +89 -0
  322. package/out-ts/decentraland/sdk/components/material.gen.ts +629 -0
  323. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +534 -0
  324. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +454 -0
  325. package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +288 -0
  326. package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
  327. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +310 -0
  328. package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +170 -0
  329. package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +85 -0
  330. package/out-ts/decentraland/sdk/components/raycast.gen.ts +333 -0
  331. package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +168 -0
  332. package/out-ts/decentraland/sdk/components/realm_info.gen.ts +152 -0
  333. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +470 -0
  334. package/out-ts/decentraland/sdk/components/tween.gen.ts +648 -0
  335. package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
  336. package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
  337. package/out-ts/decentraland/sdk/components/ui_background.gen.ts +223 -0
  338. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +231 -0
  339. package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +80 -0
  340. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +215 -0
  341. package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +97 -0
  342. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +219 -0
  343. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1361 -0
  344. package/out-ts/decentraland/sdk/components/video_player.gen.ts +173 -0
  345. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +83 -0
  346. package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
  347. package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
  348. package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
  349. package/out-ts/decentraland/social/friendships/friendships.gen.ts +2798 -0
  350. package/out-ts/decentraland/social_service_v2/social_service.gen.ts +1709 -0
  351. package/out-ts/google/protobuf/descriptor.gen.ts +3470 -0
  352. package/out-ts/google/protobuf/empty.gen.ts +72 -0
  353. package/out-ts/quests.gen.ts +3 -0
  354. package/out-ts/sdk-apis.gen.ts +3 -0
  355. package/out-ts/sdk-components.gen.ts +3 -0
  356. package/out-ts/sdk-development.gen.ts +3 -0
  357. package/out-ts/social.gen.ts +3 -0
  358. package/out-ts/social_service_v2.gen.ts +3 -0
  359. package/package.json +33 -0
  360. package/proto/buf.yaml +47 -0
  361. package/proto/decentraland/common/border_rect.proto +18 -0
  362. package/proto/decentraland/common/colors.proto +15 -0
  363. package/proto/decentraland/common/content_mapping.proto +7 -0
  364. package/proto/decentraland/common/entity.proto +13 -0
  365. package/proto/decentraland/common/sdk/user_data.proto +25 -0
  366. package/proto/decentraland/common/texture.proto +40 -0
  367. package/proto/decentraland/common/vectors.proto +26 -0
  368. package/proto/decentraland/kernel/apis/comms_api.proto +25 -0
  369. package/proto/decentraland/kernel/apis/communications_controller.proto +23 -0
  370. package/proto/decentraland/kernel/apis/dev_tools.proto +15 -0
  371. package/proto/decentraland/kernel/apis/engine_api.proto +118 -0
  372. package/proto/decentraland/kernel/apis/environment_api.proto +76 -0
  373. package/proto/decentraland/kernel/apis/ethereum_controller.proto +64 -0
  374. package/proto/decentraland/kernel/apis/parcel_identity.proto +43 -0
  375. package/proto/decentraland/kernel/apis/permissions.proto +36 -0
  376. package/proto/decentraland/kernel/apis/players.proto +35 -0
  377. package/proto/decentraland/kernel/apis/portable_experiences.proto +55 -0
  378. package/proto/decentraland/kernel/apis/restricted_actions.proto +78 -0
  379. package/proto/decentraland/kernel/apis/runtime.proto +71 -0
  380. package/proto/decentraland/kernel/apis/scene.proto +16 -0
  381. package/proto/decentraland/kernel/apis/signed_fetch.proto +33 -0
  382. package/proto/decentraland/kernel/apis/social_controller.proto +19 -0
  383. package/proto/decentraland/kernel/apis/testing.proto +100 -0
  384. package/proto/decentraland/kernel/apis/user_action_module.proto +13 -0
  385. package/proto/decentraland/kernel/apis/user_identity.proto +22 -0
  386. package/proto/decentraland/kernel/comms/rfc4/comms.proto +110 -0
  387. package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +104 -0
  388. package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
  389. package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
  390. package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
  391. package/proto/decentraland/kernel/comms/v3/archipelago.proto +86 -0
  392. package/proto/decentraland/kernel/comms/v3/comms.proto +64 -0
  393. package/proto/decentraland/quests/definitions.proto +185 -0
  394. package/proto/decentraland/realm/about.proto +73 -0
  395. package/proto/decentraland/sdk/components/README.md +32 -0
  396. package/proto/decentraland/sdk/components/Transform.md +25 -0
  397. package/proto/decentraland/sdk/components/animator.proto +31 -0
  398. package/proto/decentraland/sdk/components/audio_event.proto +12 -0
  399. package/proto/decentraland/sdk/components/audio_source.proto +31 -0
  400. package/proto/decentraland/sdk/components/audio_stream.proto +14 -0
  401. package/proto/decentraland/sdk/components/avatar_attach.proto +51 -0
  402. package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
  403. package/proto/decentraland/sdk/components/avatar_emote_command.proto +13 -0
  404. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
  405. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +32 -0
  406. package/proto/decentraland/sdk/components/avatar_shape.proto +42 -0
  407. package/proto/decentraland/sdk/components/billboard.proto +29 -0
  408. package/proto/decentraland/sdk/components/camera_mode.proto +12 -0
  409. package/proto/decentraland/sdk/components/camera_mode_area.proto +25 -0
  410. package/proto/decentraland/sdk/components/common/camera_type.proto +9 -0
  411. package/proto/decentraland/sdk/components/common/id.md +2 -0
  412. package/proto/decentraland/sdk/components/common/id.proto +8 -0
  413. package/proto/decentraland/sdk/components/common/input_action.proto +28 -0
  414. package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
  415. package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
  416. package/proto/decentraland/sdk/components/common/raycast_hit.proto +16 -0
  417. package/proto/decentraland/sdk/components/common/texts.proto +21 -0
  418. package/proto/decentraland/sdk/components/engine_info.proto +15 -0
  419. package/proto/decentraland/sdk/components/gltf_container.proto +19 -0
  420. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  421. package/proto/decentraland/sdk/components/material.proto +57 -0
  422. package/proto/decentraland/sdk/components/mesh_collider.proto +62 -0
  423. package/proto/decentraland/sdk/components/mesh_renderer.proto +43 -0
  424. package/proto/decentraland/sdk/components/nft_shape.proto +48 -0
  425. package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
  426. package/proto/decentraland/sdk/components/pointer_events.proto +37 -0
  427. package/proto/decentraland/sdk/components/pointer_events_result.proto +19 -0
  428. package/proto/decentraland/sdk/components/pointer_lock.proto +11 -0
  429. package/proto/decentraland/sdk/components/raycast.proto +58 -0
  430. package/proto/decentraland/sdk/components/raycast_result.proto +21 -0
  431. package/proto/decentraland/sdk/components/realm_info.proto +14 -0
  432. package/proto/decentraland/sdk/components/text_shape.proto +45 -0
  433. package/proto/decentraland/sdk/components/tween.proto +74 -0
  434. package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
  435. package/proto/decentraland/sdk/components/tween_state.proto +18 -0
  436. package/proto/decentraland/sdk/components/ui_background.proto +34 -0
  437. package/proto/decentraland/sdk/components/ui_canvas_information.proto +24 -0
  438. package/proto/decentraland/sdk/components/ui_dropdown.proto +22 -0
  439. package/proto/decentraland/sdk/components/ui_dropdown_result.proto +11 -0
  440. package/proto/decentraland/sdk/components/ui_input.proto +20 -0
  441. package/proto/decentraland/sdk/components/ui_input_result.proto +12 -0
  442. package/proto/decentraland/sdk/components/ui_text.proto +26 -0
  443. package/proto/decentraland/sdk/components/ui_transform.proto +148 -0
  444. package/proto/decentraland/sdk/components/video_event.proto +25 -0
  445. package/proto/decentraland/sdk/components/video_player.proto +16 -0
  446. package/proto/decentraland/sdk/components/visibility_component.proto +9 -0
  447. package/proto/decentraland/sdk/development/local_development.proto +29 -0
  448. package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
  449. package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
  450. package/proto/decentraland/social/friendships/friendships.proto +162 -0
  451. package/proto/decentraland/social_service_v2/social_service.proto +111 -0
  452. package/proto/google/LICENSE +27 -0
  453. package/proto/google/README.md +1 -0
  454. package/proto/google/api/annotations.json +83 -0
  455. package/proto/google/api/annotations.proto +11 -0
  456. package/proto/google/api/http.json +86 -0
  457. package/proto/google/api/http.proto +31 -0
  458. package/proto/google/protobuf/api.json +118 -0
  459. package/proto/google/protobuf/api.proto +34 -0
  460. package/proto/google/protobuf/descriptor.json +739 -0
  461. package/proto/google/protobuf/descriptor.proto +286 -0
  462. package/proto/google/protobuf/source_context.json +20 -0
  463. package/proto/google/protobuf/source_context.proto +7 -0
  464. package/proto/google/protobuf/type.json +202 -0
  465. package/proto/google/protobuf/type.proto +89 -0
  466. package/public/about.proto +5 -0
  467. package/public/comms.proto +5 -0
  468. package/public/quests.proto +5 -0
  469. package/public/sdk-apis.proto +25 -0
  470. package/public/sdk-components.proto +42 -0
  471. package/public/sdk-development.proto +5 -0
  472. package/public/social.proto +4 -0
  473. package/public/social_service_v2.proto +4 -0
@@ -0,0 +1,37 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ /**
4
+ * AvatarEmoteCommand is a grow only value set, used to signal the renderer about
5
+ * avatar emotes playback.
6
+ */
7
+ export interface PBAvatarEmoteCommand {
8
+ emoteUrn: string;
9
+ loop: boolean;
10
+ /** monotonic counter */
11
+ timestamp: number;
12
+ }
13
+ export declare namespace PBAvatarEmoteCommand {
14
+ function encode(message: PBAvatarEmoteCommand, writer?: _m0.Writer): _m0.Writer;
15
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEmoteCommand;
16
+ function fromJSON(object: any): PBAvatarEmoteCommand;
17
+ function toJSON(message: PBAvatarEmoteCommand): unknown;
18
+ function create<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(base?: I): PBAvatarEmoteCommand;
19
+ function fromPartial<I extends Exact<DeepPartial<PBAvatarEmoteCommand>, I>>(object: I): PBAvatarEmoteCommand;
20
+ }
21
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
22
+ 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 {
23
+ $case: string;
24
+ } ? {
25
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
26
+ } & {
27
+ $case: T["$case"];
28
+ } : T extends {} ? {
29
+ [K in keyof T]?: DeepPartial<T[K]>;
30
+ } : Partial<T>;
31
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
32
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
33
+ [K in keyof P]: Exact<P[K], I[K]>;
34
+ } & {
35
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
36
+ };
37
+ export {};
@@ -0,0 +1,95 @@
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.PBAvatarEmoteCommand = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBAvatarEmoteCommand() {
11
+ return { emoteUrn: "", loop: false, timestamp: 0 };
12
+ }
13
+ var PBAvatarEmoteCommand;
14
+ (function (PBAvatarEmoteCommand) {
15
+ function encode(message, writer = minimal_1.default.Writer.create()) {
16
+ if (message.emoteUrn !== "") {
17
+ writer.uint32(10).string(message.emoteUrn);
18
+ }
19
+ if (message.loop === true) {
20
+ writer.uint32(16).bool(message.loop);
21
+ }
22
+ if (message.timestamp !== 0) {
23
+ writer.uint32(24).uint32(message.timestamp);
24
+ }
25
+ return writer;
26
+ }
27
+ PBAvatarEmoteCommand.encode = encode;
28
+ function decode(input, length) {
29
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
30
+ let end = length === undefined ? reader.len : reader.pos + length;
31
+ const message = createBasePBAvatarEmoteCommand();
32
+ while (reader.pos < end) {
33
+ const tag = reader.uint32();
34
+ switch (tag >>> 3) {
35
+ case 1:
36
+ if (tag !== 10) {
37
+ break;
38
+ }
39
+ message.emoteUrn = reader.string();
40
+ continue;
41
+ case 2:
42
+ if (tag !== 16) {
43
+ break;
44
+ }
45
+ message.loop = reader.bool();
46
+ continue;
47
+ case 3:
48
+ if (tag !== 24) {
49
+ break;
50
+ }
51
+ message.timestamp = reader.uint32();
52
+ continue;
53
+ }
54
+ if ((tag & 7) === 4 || tag === 0) {
55
+ break;
56
+ }
57
+ reader.skipType(tag & 7);
58
+ }
59
+ return message;
60
+ }
61
+ PBAvatarEmoteCommand.decode = decode;
62
+ function fromJSON(object) {
63
+ return {
64
+ emoteUrn: isSet(object.emoteUrn) ? String(object.emoteUrn) : "",
65
+ loop: isSet(object.loop) ? Boolean(object.loop) : false,
66
+ timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
67
+ };
68
+ }
69
+ PBAvatarEmoteCommand.fromJSON = fromJSON;
70
+ function toJSON(message) {
71
+ const obj = {};
72
+ message.emoteUrn !== undefined && (obj.emoteUrn = message.emoteUrn);
73
+ message.loop !== undefined && (obj.loop = message.loop);
74
+ message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
75
+ return obj;
76
+ }
77
+ PBAvatarEmoteCommand.toJSON = toJSON;
78
+ function create(base) {
79
+ return PBAvatarEmoteCommand.fromPartial(base !== null && base !== void 0 ? base : {});
80
+ }
81
+ PBAvatarEmoteCommand.create = create;
82
+ function fromPartial(object) {
83
+ var _a, _b, _c;
84
+ const message = createBasePBAvatarEmoteCommand();
85
+ message.emoteUrn = (_a = object.emoteUrn) !== null && _a !== void 0 ? _a : "";
86
+ message.loop = (_b = object.loop) !== null && _b !== void 0 ? _b : false;
87
+ message.timestamp = (_c = object.timestamp) !== null && _c !== void 0 ? _c : 0;
88
+ return message;
89
+ }
90
+ PBAvatarEmoteCommand.fromPartial = fromPartial;
91
+ })(PBAvatarEmoteCommand || (exports.PBAvatarEmoteCommand = PBAvatarEmoteCommand = {}));
92
+ function isSet(value) {
93
+ return value !== null && value !== undefined;
94
+ }
95
+ //# sourceMappingURL=avatar_emote_command.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar_emote_command.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts"],"names":[],"mapp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D,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,36 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.sdk.components";
3
+ /**
4
+ * AvatarEquipData is used to read the information about the avatar's owneables.
5
+ * this component is written by the engine using the communications transports'
6
+ * data.
7
+ */
8
+ export interface PBAvatarEquippedData {
9
+ wearableUrns: string[];
10
+ emoteUrns: string[];
11
+ }
12
+ export declare namespace PBAvatarEquippedData {
13
+ function encode(message: PBAvatarEquippedData, writer?: _m0.Writer): _m0.Writer;
14
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarEquippedData;
15
+ function fromJSON(object: any): PBAvatarEquippedData;
16
+ function toJSON(message: PBAvatarEquippedData): unknown;
17
+ function create<I extends Exact<DeepPartial<PBAvatarEquippedData>, I>>(base?: I): PBAvatarEquippedData;
18
+ function fromPartial<I extends Exact<DeepPartial<PBAvatarEquippedData>, I>>(object: I): PBAvatarEquippedData;
19
+ }
20
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
21
+ 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 {
22
+ $case: string;
23
+ } ? {
24
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
25
+ } & {
26
+ $case: T["$case"];
27
+ } : T extends {} ? {
28
+ [K in keyof T]?: DeepPartial<T[K]>;
29
+ } : Partial<T>;
30
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
31
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
32
+ [K in keyof P]: Exact<P[K], I[K]>;
33
+ } & {
34
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
35
+ };
36
+ export {};
@@ -0,0 +1,90 @@
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.PBAvatarEquippedData = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.sdk.components";
10
+ function createBasePBAvatarEquippedData() {
11
+ return { wearableUrns: [], emoteUrns: [] };
12
+ }
13
+ var PBAvatarEquippedData;
14
+ (function (PBAvatarEquippedData) {
15
+ function encode(message, writer = minimal_1.default.Writer.create()) {
16
+ for (const v of message.wearableUrns) {
17
+ writer.uint32(10).string(v);
18
+ }
19
+ for (const v of message.emoteUrns) {
20
+ writer.uint32(18).string(v);
21
+ }
22
+ return writer;
23
+ }
24
+ PBAvatarEquippedData.encode = encode;
25
+ function decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBasePBAvatarEquippedData();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.wearableUrns.push(reader.string());
37
+ continue;
38
+ case 2:
39
+ if (tag !== 18) {
40
+ break;
41
+ }
42
+ message.emoteUrns.push(reader.string());
43
+ continue;
44
+ }
45
+ if ((tag & 7) === 4 || tag === 0) {
46
+ break;
47
+ }
48
+ reader.skipType(tag & 7);
49
+ }
50
+ return message;
51
+ }
52
+ PBAvatarEquippedData.decode = decode;
53
+ function fromJSON(object) {
54
+ return {
55
+ wearableUrns: Array.isArray(object === null || object === void 0 ? void 0 : object.wearableUrns) ? object.wearableUrns.map((e) => String(e)) : [],
56
+ emoteUrns: Array.isArray(object === null || object === void 0 ? void 0 : object.emoteUrns) ? object.emoteUrns.map((e) => String(e)) : [],
57
+ };
58
+ }
59
+ PBAvatarEquippedData.fromJSON = fromJSON;
60
+ function toJSON(message) {
61
+ const obj = {};
62
+ if (message.wearableUrns) {
63
+ obj.wearableUrns = message.wearableUrns.map((e) => e);
64
+ }
65
+ else {
66
+ obj.wearableUrns = [];
67
+ }
68
+ if (message.emoteUrns) {
69
+ obj.emoteUrns = message.emoteUrns.map((e) => e);
70
+ }
71
+ else {
72
+ obj.emoteUrns = [];
73
+ }
74
+ return obj;
75
+ }
76
+ PBAvatarEquippedData.toJSON = toJSON;
77
+ function create(base) {
78
+ return PBAvatarEquippedData.fromPartial(base !== null && base !== void 0 ? base : {});
79
+ }
80
+ PBAvatarEquippedData.create = create;
81
+ function fromPartial(object) {
82
+ var _a, _b;
83
+ const message = createBasePBAvatarEquippedData();
84
+ message.wearableUrns = ((_a = object.wearableUrns) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
85
+ message.emoteUrns = ((_b = object.emoteUrns) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
86
+ return message;
87
+ }
88
+ PBAvatarEquippedData.fromPartial = fromPartial;
89
+ })(PBAvatarEquippedData || (exports.PBAvatarEquippedData = PBAvatarEquippedData = {}));
90
+ //# sourceMappingURL=avatar_equipped_data.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar_equipped_data.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAY7D,SAAS,8BAA8B;IACrC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;AAC7C,CAAC;AAED,IAAiB,oBAAoB,CAyEpC;AAzED,WAAiB,oBAAoB;IACnC,SAAgB,MAAM,CAAC,OAA6B,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC5F,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,YAAY,EAA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;QAClD,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC;QACrB,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAbe,2BAAM,SAarB,CAAA;IAED,SAAgB,MAAM,CAAwD,IAAQ;QACpF,OAAO,oBAAoB,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAFe,2BAAM,SAErB,CAAA;IAED,SAAgB,WAAW,CAAwD,MAAS;;QAC1F,MAAM,OAAO,GAAG,8BAA8B,EAAE,CAAC;QACjD,OAAO,CAAC,YAAY,GAAG,CAAA,MAAA,MAAM,CAAC,YAAY,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QAChE,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;IALe,gCAAW,cAK1B,CAAA;AACH,CAAC,EAzEgB,oBAAoB,oCAApB,oBAAoB,QAyEpC"}
@@ -0,0 +1,60 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ import { Vector3 } from "../../common/vectors.gen";
3
+ export declare const protobufPackage = "decentraland.sdk.components";
4
+ /** AvatarModifierType is an effect that should be applied to avatars inside the region. */
5
+ export declare enum AvatarModifierType {
6
+ /** AMT_HIDE_AVATARS - avatars are invisible */
7
+ AMT_HIDE_AVATARS = 0,
8
+ /** AMT_DISABLE_PASSPORTS - selecting (e.g. clicking) an avatar will not bring up their profile. */
9
+ AMT_DISABLE_PASSPORTS = 1,
10
+ UNRECOGNIZED = -1
11
+ }
12
+ export declare function avatarModifierTypeFromJSON(object: any): AvatarModifierType;
13
+ export declare function avatarModifierTypeToJSON(object: AvatarModifierType): string;
14
+ /**
15
+ * The AvatarModifierArea component can be attached to an Entity to define a region of space where
16
+ * avatar behavior changes.
17
+ *
18
+ * The Entity's Transform position determines the center-point of the region, while its size is
19
+ * given as a vector in the `area` property below. The Transform rotation is applied, but the scale
20
+ * is ignored.
21
+ *
22
+ * The modifier effect is only applied to avatars inside the region. It does not affect how players
23
+ * standing inside it see avatars on the other side of the boundary.
24
+ *
25
+ * Note that, while commonly used to delineate a 2D area in a scene (hence the name), the region
26
+ * is actually a 3D volume.
27
+ */
28
+ export interface PBAvatarModifierArea {
29
+ /** the 3D size of the region */
30
+ area: Vector3 | undefined;
31
+ /** user IDs that can enter and remain unaffected */
32
+ excludeIds: string[];
33
+ /** list of modifiers to apply */
34
+ modifiers: AvatarModifierType[];
35
+ }
36
+ export declare namespace PBAvatarModifierArea {
37
+ function encode(message: PBAvatarModifierArea, writer?: _m0.Writer): _m0.Writer;
38
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarModifierArea;
39
+ function fromJSON(object: any): PBAvatarModifierArea;
40
+ function toJSON(message: PBAvatarModifierArea): unknown;
41
+ function create<I extends Exact<DeepPartial<PBAvatarModifierArea>, I>>(base?: I): PBAvatarModifierArea;
42
+ function fromPartial<I extends Exact<DeepPartial<PBAvatarModifierArea>, I>>(object: I): PBAvatarModifierArea;
43
+ }
44
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
45
+ 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 {
46
+ $case: string;
47
+ } ? {
48
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
49
+ } & {
50
+ $case: T["$case"];
51
+ } : T extends {} ? {
52
+ [K in keyof T]?: DeepPartial<T[K]>;
53
+ } : Partial<T>;
54
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
55
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
56
+ [K in keyof P]: Exact<P[K], I[K]>;
57
+ } & {
58
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
59
+ };
60
+ export {};
@@ -0,0 +1,153 @@
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.PBAvatarModifierArea = exports.AvatarModifierType = exports.protobufPackage = void 0;
7
+ exports.avatarModifierTypeFromJSON = avatarModifierTypeFromJSON;
8
+ exports.avatarModifierTypeToJSON = avatarModifierTypeToJSON;
9
+ /* eslint-disable */
10
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
11
+ const vectors_gen_1 = require("../../common/vectors.gen");
12
+ exports.protobufPackage = "decentraland.sdk.components";
13
+ /** AvatarModifierType is an effect that should be applied to avatars inside the region. */
14
+ var AvatarModifierType;
15
+ (function (AvatarModifierType) {
16
+ /** AMT_HIDE_AVATARS - avatars are invisible */
17
+ AvatarModifierType[AvatarModifierType["AMT_HIDE_AVATARS"] = 0] = "AMT_HIDE_AVATARS";
18
+ /** AMT_DISABLE_PASSPORTS - selecting (e.g. clicking) an avatar will not bring up their profile. */
19
+ AvatarModifierType[AvatarModifierType["AMT_DISABLE_PASSPORTS"] = 1] = "AMT_DISABLE_PASSPORTS";
20
+ AvatarModifierType[AvatarModifierType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
21
+ })(AvatarModifierType || (exports.AvatarModifierType = AvatarModifierType = {}));
22
+ function avatarModifierTypeFromJSON(object) {
23
+ switch (object) {
24
+ case 0:
25
+ case "AMT_HIDE_AVATARS":
26
+ return AvatarModifierType.AMT_HIDE_AVATARS;
27
+ case 1:
28
+ case "AMT_DISABLE_PASSPORTS":
29
+ return AvatarModifierType.AMT_DISABLE_PASSPORTS;
30
+ case -1:
31
+ case "UNRECOGNIZED":
32
+ default:
33
+ return AvatarModifierType.UNRECOGNIZED;
34
+ }
35
+ }
36
+ function avatarModifierTypeToJSON(object) {
37
+ switch (object) {
38
+ case AvatarModifierType.AMT_HIDE_AVATARS:
39
+ return "AMT_HIDE_AVATARS";
40
+ case AvatarModifierType.AMT_DISABLE_PASSPORTS:
41
+ return "AMT_DISABLE_PASSPORTS";
42
+ case AvatarModifierType.UNRECOGNIZED:
43
+ default:
44
+ return "UNRECOGNIZED";
45
+ }
46
+ }
47
+ function createBasePBAvatarModifierArea() {
48
+ return { area: undefined, excludeIds: [], modifiers: [] };
49
+ }
50
+ var PBAvatarModifierArea;
51
+ (function (PBAvatarModifierArea) {
52
+ function encode(message, writer = minimal_1.default.Writer.create()) {
53
+ if (message.area !== undefined) {
54
+ vectors_gen_1.Vector3.encode(message.area, writer.uint32(10).fork()).ldelim();
55
+ }
56
+ for (const v of message.excludeIds) {
57
+ writer.uint32(18).string(v);
58
+ }
59
+ writer.uint32(26).fork();
60
+ for (const v of message.modifiers) {
61
+ writer.int32(v);
62
+ }
63
+ writer.ldelim();
64
+ return writer;
65
+ }
66
+ PBAvatarModifierArea.encode = encode;
67
+ function decode(input, length) {
68
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
69
+ let end = length === undefined ? reader.len : reader.pos + length;
70
+ const message = createBasePBAvatarModifierArea();
71
+ while (reader.pos < end) {
72
+ const tag = reader.uint32();
73
+ switch (tag >>> 3) {
74
+ case 1:
75
+ if (tag !== 10) {
76
+ break;
77
+ }
78
+ message.area = vectors_gen_1.Vector3.decode(reader, reader.uint32());
79
+ continue;
80
+ case 2:
81
+ if (tag !== 18) {
82
+ break;
83
+ }
84
+ message.excludeIds.push(reader.string());
85
+ continue;
86
+ case 3:
87
+ if (tag === 24) {
88
+ message.modifiers.push(reader.int32());
89
+ continue;
90
+ }
91
+ if (tag === 26) {
92
+ const end2 = reader.uint32() + reader.pos;
93
+ while (reader.pos < end2) {
94
+ message.modifiers.push(reader.int32());
95
+ }
96
+ continue;
97
+ }
98
+ break;
99
+ }
100
+ if ((tag & 7) === 4 || tag === 0) {
101
+ break;
102
+ }
103
+ reader.skipType(tag & 7);
104
+ }
105
+ return message;
106
+ }
107
+ PBAvatarModifierArea.decode = decode;
108
+ function fromJSON(object) {
109
+ return {
110
+ area: isSet(object.area) ? vectors_gen_1.Vector3.fromJSON(object.area) : undefined,
111
+ excludeIds: Array.isArray(object === null || object === void 0 ? void 0 : object.excludeIds) ? object.excludeIds.map((e) => String(e)) : [],
112
+ modifiers: Array.isArray(object === null || object === void 0 ? void 0 : object.modifiers)
113
+ ? object.modifiers.map((e) => avatarModifierTypeFromJSON(e))
114
+ : [],
115
+ };
116
+ }
117
+ PBAvatarModifierArea.fromJSON = fromJSON;
118
+ function toJSON(message) {
119
+ const obj = {};
120
+ message.area !== undefined && (obj.area = message.area ? vectors_gen_1.Vector3.toJSON(message.area) : undefined);
121
+ if (message.excludeIds) {
122
+ obj.excludeIds = message.excludeIds.map((e) => e);
123
+ }
124
+ else {
125
+ obj.excludeIds = [];
126
+ }
127
+ if (message.modifiers) {
128
+ obj.modifiers = message.modifiers.map((e) => avatarModifierTypeToJSON(e));
129
+ }
130
+ else {
131
+ obj.modifiers = [];
132
+ }
133
+ return obj;
134
+ }
135
+ PBAvatarModifierArea.toJSON = toJSON;
136
+ function create(base) {
137
+ return PBAvatarModifierArea.fromPartial(base !== null && base !== void 0 ? base : {});
138
+ }
139
+ PBAvatarModifierArea.create = create;
140
+ function fromPartial(object) {
141
+ var _a, _b;
142
+ const message = createBasePBAvatarModifierArea();
143
+ message.area = (object.area !== undefined && object.area !== null) ? vectors_gen_1.Vector3.fromPartial(object.area) : undefined;
144
+ message.excludeIds = ((_a = object.excludeIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
145
+ message.modifiers = ((_b = object.modifiers) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
146
+ return message;
147
+ }
148
+ PBAvatarModifierArea.fromPartial = fromPartial;
149
+ })(PBAvatarModifierArea || (exports.PBAvatarModifierArea = PBAvatarModifierArea = {}));
150
+ function isSet(value) {
151
+ return value !== null && value !== undefined;
152
+ }
153
+ //# sourceMappingURL=avatar_modifier_area.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar_modifier_area.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts"],"names":[],"mappings":";;;;;;AAeA,gEAaC;AAED,4DAUC;AAxCD,oBAAoB;AACpB,iEAAqC;AACrC,0DAAmD;AAEtC,QAAA,eAAe,GAAG,6BAA6B,CAAC;AAE7D,2FAA2F;AAC3F,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,+CAA+C;IAC/C,mFAAoB,CAAA;IACpB,mGAAmG;IACnG,6FAAyB,CAAA;IACzB,4EAAiB,CAAA;AACnB,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B;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,CAAC;QACR,KAAK,cAAc,CAAC;QACpB;YACE,OAAO,kBAAkB,CAAC,YAAY,CAAC;IAC3C,CAAC;AACH,CAAC;AAED,SAAgB,wBAAwB,CAAC,MAA0B;IACjE,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,kBAAkB,CAAC,gBAAgB;YACtC,OAAO,kBAAkB,CAAC;QAC5B,KAAK,kBAAkB,CAAC,qBAAqB;YAC3C,OAAO,uBAAuB,CAAC;QACjC,KAAK,kBAAkB,CAAC,YAAY,CAAC;QACrC;YACE,OAAO,cAAc,CAAC;IAC1B,CAAC;AACH,CAAC;AA2BD,SAAS,8BAA8B;IACrC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,EAA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 -0,0 +1,72 @@
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
+ }
48
+ export declare namespace PBAvatarShape {
49
+ function encode(message: PBAvatarShape, writer?: _m0.Writer): _m0.Writer;
50
+ function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarShape;
51
+ function fromJSON(object: any): PBAvatarShape;
52
+ function toJSON(message: PBAvatarShape): unknown;
53
+ function create<I extends Exact<DeepPartial<PBAvatarShape>, I>>(base?: I): PBAvatarShape;
54
+ function fromPartial<I extends Exact<DeepPartial<PBAvatarShape>, I>>(object: I): PBAvatarShape;
55
+ }
56
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
57
+ 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 {
58
+ $case: string;
59
+ } ? {
60
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
61
+ } & {
62
+ $case: T["$case"];
63
+ } : T extends {} ? {
64
+ [K in keyof T]?: DeepPartial<T[K]>;
65
+ } : Partial<T>;
66
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
67
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
68
+ [K in keyof P]: Exact<P[K], I[K]>;
69
+ } & {
70
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
71
+ };
72
+ export {};