@dcl/protocol 1.0.0-3069963250.commit-85ff482 → 1.0.0-30827383791.commit-0ff6038

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 (560) hide show
  1. package/README.md +285 -0
  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 +368 -0
  57. package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1307 -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 +40 -0
  111. package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +108 -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_shape.gen.d.ts +74 -0
  120. package/out-js/decentraland/sdk/components/avatar_shape.gen.js +264 -0
  121. package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
  122. package/out-js/decentraland/sdk/components/billboard.gen.d.ts +61 -0
  123. package/out-js/decentraland/sdk/components/billboard.gen.js +142 -0
  124. package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
  125. package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +36 -0
  126. package/out-js/decentraland/sdk/components/camera_mode.gen.js +70 -0
  127. package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
  128. package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +48 -0
  129. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +85 -0
  130. package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
  131. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.d.ts +8 -0
  132. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js +34 -0
  133. package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js.map +1 -0
  134. package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +10 -0
  135. package/out-js/decentraland/sdk/components/common/camera_type.gen.js +46 -0
  136. package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
  137. package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
  138. package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
  139. package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
  140. package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +41 -0
  141. package/out-js/decentraland/sdk/components/common/input_action.gen.js +209 -0
  142. package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
  143. package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
  144. package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
  145. package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
  146. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +45 -0
  147. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +163 -0
  148. package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -0
  149. package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
  150. package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
  151. package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
  152. package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +41 -0
  153. package/out-js/decentraland/sdk/components/engine_info.gen.js +95 -0
  154. package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
  155. package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +41 -0
  156. package/out-js/decentraland/sdk/components/gltf_container.gen.js +101 -0
  157. package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
  158. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +35 -0
  159. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +70 -0
  160. package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
  161. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +57 -0
  162. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +164 -0
  163. package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +1 -0
  164. package/out-js/decentraland/sdk/components/material.gen.d.ts +108 -0
  165. package/out-js/decentraland/sdk/components/material.gen.js +536 -0
  166. package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
  167. package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +130 -0
  168. package/out-js/decentraland/sdk/components/mesh_collider.gen.js +471 -0
  169. package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
  170. package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +104 -0
  171. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +382 -0
  172. package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
  173. package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +74 -0
  174. package/out-js/decentraland/sdk/components/nft_shape.gen.js +259 -0
  175. package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
  176. package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
  177. package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
  178. package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
  179. package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +110 -0
  180. package/out-js/decentraland/sdk/components/pointer_events.gen.js +306 -0
  181. package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
  182. package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +42 -0
  183. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +133 -0
  184. package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
  185. package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +35 -0
  186. package/out-js/decentraland/sdk/components/pointer_lock.gen.js +69 -0
  187. package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
  188. package/out-js/decentraland/sdk/components/raycast.gen.d.ts +79 -0
  189. package/out-js/decentraland/sdk/components/raycast.gen.js +274 -0
  190. package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
  191. package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +48 -0
  192. package/out-js/decentraland/sdk/components/raycast_result.gen.js +132 -0
  193. package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
  194. package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +43 -0
  195. package/out-js/decentraland/sdk/components/realm_info.gen.js +151 -0
  196. package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
  197. package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +81 -0
  198. package/out-js/decentraland/sdk/components/text_shape.gen.js +345 -0
  199. package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
  200. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.d.ts +77 -0
  201. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js +201 -0
  202. package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js.map +1 -0
  203. package/out-js/decentraland/sdk/components/tween.gen.d.ts +220 -0
  204. package/out-js/decentraland/sdk/components/tween.gen.js +1213 -0
  205. package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
  206. package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
  207. package/out-js/decentraland/sdk/components/tween_sequence.gen.js +122 -0
  208. package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
  209. package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
  210. package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
  211. package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
  212. package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +63 -0
  213. package/out-js/decentraland/sdk/components/ui_background.gen.js +197 -0
  214. package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
  215. package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +45 -0
  216. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +187 -0
  217. package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
  218. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +30 -0
  219. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +69 -0
  220. package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
  221. package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +44 -0
  222. package/out-js/decentraland/sdk/components/ui_input.gen.js +172 -0
  223. package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
  224. package/out-js/decentraland/sdk/components/ui_input_binding.gen.d.ts +52 -0
  225. package/out-js/decentraland/sdk/components/ui_input_binding.gen.js +81 -0
  226. package/out-js/decentraland/sdk/components/ui_input_binding.gen.js.map +1 -0
  227. package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +32 -0
  228. package/out-js/decentraland/sdk/components/ui_input_result.gen.js +83 -0
  229. package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
  230. package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +50 -0
  231. package/out-js/decentraland/sdk/components/ui_text.gen.js +177 -0
  232. package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
  233. package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +238 -0
  234. package/out-js/decentraland/sdk/components/ui_transform.gen.js +1547 -0
  235. package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
  236. package/out-js/decentraland/sdk/components/video_player.gen.d.ts +51 -0
  237. package/out-js/decentraland/sdk/components/video_player.gen.js +177 -0
  238. package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
  239. package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +39 -0
  240. package/out-js/decentraland/sdk/components/visibility_component.gen.js +83 -0
  241. package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
  242. package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
  243. package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
  244. package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
  245. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
  246. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7842 -0
  247. package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
  248. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
  249. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
  250. package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
  251. package/out-js/decentraland/social_service/errors.gen.d.ts +96 -0
  252. package/out-js/decentraland/social_service/errors.gen.js +405 -0
  253. package/out-js/decentraland/social_service/errors.gen.js.map +1 -0
  254. package/out-js/decentraland/social_service/v1/social_service_v1.gen.d.ts +501 -0
  255. package/out-js/decentraland/social_service/v1/social_service_v1.gen.js +2517 -0
  256. package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
  257. package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +1827 -0
  258. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +9308 -0
  259. package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -0
  260. package/out-js/google/protobuf/descriptor.gen.d.ts +436 -0
  261. package/out-js/google/protobuf/descriptor.gen.js +3173 -0
  262. package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
  263. package/out-js/google/protobuf/empty.gen.d.ts +38 -0
  264. package/out-js/google/protobuf/empty.gen.js +54 -0
  265. package/out-js/google/protobuf/empty.gen.js.map +1 -0
  266. package/out-js/quests.gen.d.ts +1 -0
  267. package/out-js/quests.gen.js +6 -0
  268. package/out-js/quests.gen.js.map +1 -0
  269. package/out-js/sdk-apis.gen.d.ts +1 -0
  270. package/out-js/sdk-apis.gen.js +6 -0
  271. package/out-js/sdk-apis.gen.js.map +1 -0
  272. package/out-js/sdk-components.gen.d.ts +1 -0
  273. package/out-js/sdk-components.gen.js +6 -0
  274. package/out-js/sdk-components.gen.js.map +1 -0
  275. package/out-js/sdk-development.gen.d.ts +1 -0
  276. package/out-js/sdk-development.gen.js +6 -0
  277. package/out-js/sdk-development.gen.js.map +1 -0
  278. package/out-js/social.gen.d.ts +1 -0
  279. package/out-js/social.gen.js +6 -0
  280. package/out-js/social.gen.js.map +1 -0
  281. package/out-ts/about.gen.ts +3 -0
  282. package/out-ts/comms.gen.ts +3 -0
  283. package/out-ts/decentraland/common/border_rect.gen.ts +230 -0
  284. package/out-ts/decentraland/common/colors.gen.ts +293 -0
  285. package/out-ts/decentraland/common/content_mapping.gen.ts +93 -0
  286. package/out-ts/decentraland/common/sdk/user_data.gen.ts +370 -0
  287. package/out-ts/decentraland/common/texture.gen.ts +539 -0
  288. package/out-ts/decentraland/common/vectors.gen.ts +377 -0
  289. package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +884 -0
  290. package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +434 -0
  291. package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +161 -0
  292. package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +1587 -0
  293. package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +1264 -0
  294. package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +982 -0
  295. package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +608 -0
  296. package/out-ts/decentraland/kernel/apis/permissions.gen.ts +397 -0
  297. package/out-ts/decentraland/kernel/apis/players.gen.ts +415 -0
  298. package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +668 -0
  299. package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +1414 -0
  300. package/out-ts/decentraland/kernel/apis/runtime.gen.ts +911 -0
  301. package/out-ts/decentraland/kernel/apis/scene.gen.ts +192 -0
  302. package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +691 -0
  303. package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +230 -0
  304. package/out-ts/decentraland/kernel/apis/testing.gen.ts +1270 -0
  305. package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +146 -0
  306. package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +264 -0
  307. package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2225 -0
  308. package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +1029 -0
  309. package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1540 -0
  310. package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
  311. package/out-ts/decentraland/realm/about.gen.ts +1415 -0
  312. package/out-ts/decentraland/sdk/components/animator.gen.ts +240 -0
  313. package/out-ts/decentraland/sdk/components/audio_source.gen.ts +209 -0
  314. package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +182 -0
  315. package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +289 -0
  316. package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +149 -0
  317. package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +131 -0
  318. package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +105 -0
  319. package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +195 -0
  320. package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +349 -0
  321. package/out-ts/decentraland/sdk/components/billboard.gen.ts +172 -0
  322. package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +86 -0
  323. package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +115 -0
  324. package/out-ts/decentraland/sdk/components/common/avatar_mask.gen.ts +31 -0
  325. package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +43 -0
  326. package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
  327. package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +206 -0
  328. package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
  329. package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +204 -0
  330. package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
  331. package/out-ts/decentraland/sdk/components/engine_info.gen.ts +119 -0
  332. package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +127 -0
  333. package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +89 -0
  334. package/out-ts/decentraland/sdk/components/gltf_node_modifiers.gen.ts +204 -0
  335. package/out-ts/decentraland/sdk/components/material.gen.ts +655 -0
  336. package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +536 -0
  337. package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +454 -0
  338. package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +288 -0
  339. package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
  340. package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +415 -0
  341. package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +170 -0
  342. package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +85 -0
  343. package/out-ts/decentraland/sdk/components/raycast.gen.ts +333 -0
  344. package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +168 -0
  345. package/out-ts/decentraland/sdk/components/realm_info.gen.ts +183 -0
  346. package/out-ts/decentraland/sdk/components/text_shape.gen.ts +470 -0
  347. package/out-ts/decentraland/sdk/components/touch_screen_controls.gen.ts +265 -0
  348. package/out-ts/decentraland/sdk/components/tween.gen.ts +1336 -0
  349. package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
  350. package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
  351. package/out-ts/decentraland/sdk/components/ui_background.gen.ts +223 -0
  352. package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +231 -0
  353. package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +80 -0
  354. package/out-ts/decentraland/sdk/components/ui_input.gen.ts +215 -0
  355. package/out-ts/decentraland/sdk/components/ui_input_binding.gen.ts +114 -0
  356. package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +97 -0
  357. package/out-ts/decentraland/sdk/components/ui_text.gen.ts +219 -0
  358. package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1775 -0
  359. package/out-ts/decentraland/sdk/components/video_player.gen.ts +231 -0
  360. package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +108 -0
  361. package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
  362. package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
  363. package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
  364. package/out-ts/decentraland/social_service/errors.gen.ts +442 -0
  365. package/out-ts/decentraland/social_service/v1/social_service_v1.gen.ts +2799 -0
  366. package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +10674 -0
  367. package/out-ts/google/protobuf/descriptor.gen.ts +3470 -0
  368. package/out-ts/google/protobuf/empty.gen.ts +72 -0
  369. package/out-ts/quests.gen.ts +3 -0
  370. package/out-ts/sdk-apis.gen.ts +3 -0
  371. package/out-ts/sdk-components.gen.ts +3 -0
  372. package/out-ts/sdk-development.gen.ts +3 -0
  373. package/out-ts/social.gen.ts +3 -0
  374. package/package.json +28 -10
  375. package/proto/decentraland/common/border_rect.proto +18 -0
  376. package/proto/decentraland/common/colors.proto +21 -0
  377. package/{kernel/apis/common/ContentMapping.proto → proto/decentraland/common/content_mapping.proto} +1 -0
  378. package/proto/decentraland/common/entity.proto +13 -0
  379. package/proto/decentraland/common/floats.proto +8 -0
  380. package/proto/decentraland/common/options.proto +51 -0
  381. package/proto/decentraland/common/quantization_example.proto +164 -0
  382. package/{kernel/apis/common/UserData.proto → proto/decentraland/common/sdk/user_data.proto} +1 -0
  383. package/proto/decentraland/common/texture.proto +45 -0
  384. package/proto/decentraland/common/vectors.proto +26 -0
  385. package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
  386. package/proto/decentraland/kernel/apis/communications_controller.proto +29 -0
  387. package/{kernel/apis/DevTools.proto → proto/decentraland/kernel/apis/dev_tools.proto} +3 -0
  388. package/proto/decentraland/kernel/apis/engine_api.proto +118 -0
  389. package/proto/decentraland/kernel/apis/environment_api.proto +76 -0
  390. package/{kernel/apis/EthereumController.proto → proto/decentraland/kernel/apis/ethereum_controller.proto} +12 -1
  391. package/{kernel/apis/ParcelIdentity.proto → proto/decentraland/kernel/apis/parcel_identity.proto} +6 -2
  392. package/proto/decentraland/kernel/apis/permissions.proto +36 -0
  393. package/proto/decentraland/kernel/apis/players.proto +35 -0
  394. package/proto/decentraland/kernel/apis/portable_experiences.proto +55 -0
  395. package/proto/decentraland/kernel/apis/restricted_actions.proto +140 -0
  396. package/proto/decentraland/kernel/apis/runtime.proto +71 -0
  397. package/proto/decentraland/kernel/apis/scene.proto +16 -0
  398. package/{kernel/apis/SignedFetch.proto → proto/decentraland/kernel/apis/signed_fetch.proto} +9 -0
  399. package/proto/decentraland/kernel/apis/social_controller.proto +19 -0
  400. package/proto/decentraland/kernel/apis/testing.proto +100 -0
  401. package/{kernel/apis/UserActionModule.proto → proto/decentraland/kernel/apis/user_action_module.proto} +2 -0
  402. package/{kernel/apis/UserIdentity.proto → proto/decentraland/kernel/apis/user_identity.proto} +4 -2
  403. package/proto/decentraland/kernel/comms/rfc4/comms.proto +165 -0
  404. package/{kernel/comms/ws-comms-rfc-5.proto → proto/decentraland/kernel/comms/rfc5/ws_comms.proto} +24 -4
  405. package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
  406. package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
  407. package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
  408. package/proto/decentraland/kernel/comms/v3/archipelago.proto +97 -0
  409. package/{kernel → proto/decentraland/kernel}/comms/v3/comms.proto +3 -3
  410. package/proto/decentraland/pulse/pulse_client.proto +79 -0
  411. package/proto/decentraland/pulse/pulse_server.proto +144 -0
  412. package/proto/decentraland/pulse/pulse_shared.proto +57 -0
  413. package/proto/decentraland/quests/definitions.proto +185 -0
  414. package/proto/decentraland/realm/about.proto +138 -0
  415. package/{ecs → proto/decentraland/sdk}/components/README.md +3 -3
  416. package/proto/decentraland/sdk/components/animator.proto +31 -0
  417. package/proto/decentraland/sdk/components/asset_load.proto +10 -0
  418. package/proto/decentraland/sdk/components/asset_load_loading_state.proto +16 -0
  419. package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
  420. package/proto/decentraland/sdk/components/audio_event.proto +12 -0
  421. package/proto/decentraland/sdk/components/audio_source.proto +31 -0
  422. package/proto/decentraland/sdk/components/audio_stream.proto +22 -0
  423. package/proto/decentraland/sdk/components/avatar_attach.proto +51 -0
  424. package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
  425. package/proto/decentraland/sdk/components/avatar_emote_command.proto +16 -0
  426. package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
  427. package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
  428. package/proto/decentraland/sdk/components/avatar_modifier_area.proto +33 -0
  429. package/proto/decentraland/sdk/components/avatar_shape.proto +44 -0
  430. package/proto/decentraland/sdk/components/billboard.proto +35 -0
  431. package/proto/decentraland/sdk/components/camera_mode.proto +12 -0
  432. package/proto/decentraland/sdk/components/camera_mode_area.proto +25 -0
  433. package/proto/decentraland/sdk/components/common/avatar_mask.proto +7 -0
  434. package/proto/decentraland/sdk/components/common/camera_transition.proto +11 -0
  435. package/proto/decentraland/sdk/components/common/camera_type.proto +9 -0
  436. package/{ecs → proto/decentraland/sdk}/components/common/id.proto +1 -0
  437. package/proto/decentraland/sdk/components/common/input_action.proto +37 -0
  438. package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
  439. package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
  440. package/proto/decentraland/sdk/components/common/raycast_hit.proto +16 -0
  441. package/proto/decentraland/sdk/components/common/texts.proto +21 -0
  442. package/proto/decentraland/sdk/components/engine_info.proto +15 -0
  443. package/proto/decentraland/sdk/components/gltf_container.proto +19 -0
  444. package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
  445. package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +25 -0
  446. package/proto/decentraland/sdk/components/input_modifier.proto +22 -0
  447. package/proto/decentraland/sdk/components/light_source.proto +28 -0
  448. package/proto/decentraland/sdk/components/main_camera.proto +11 -0
  449. package/proto/decentraland/sdk/components/map_pin.proto +16 -0
  450. package/proto/decentraland/sdk/components/material.proto +57 -0
  451. package/proto/decentraland/sdk/components/mesh_collider.proto +62 -0
  452. package/proto/decentraland/sdk/components/mesh_renderer.proto +43 -0
  453. package/proto/decentraland/sdk/components/nft_shape.proto +48 -0
  454. package/proto/decentraland/sdk/components/particle_system.proto +133 -0
  455. package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
  456. package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
  457. package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
  458. package/proto/decentraland/sdk/components/pointer_events.proto +64 -0
  459. package/proto/decentraland/sdk/components/pointer_events_result.proto +19 -0
  460. package/proto/decentraland/sdk/components/pointer_lock.proto +11 -0
  461. package/proto/decentraland/sdk/components/primary_pointer_info.proto +39 -0
  462. package/proto/decentraland/sdk/components/raycast.proto +58 -0
  463. package/proto/decentraland/sdk/components/raycast_result.proto +21 -0
  464. package/proto/decentraland/sdk/components/realm_info.proto +15 -0
  465. package/proto/decentraland/sdk/components/skybox_time.proto +20 -0
  466. package/proto/decentraland/sdk/components/text_shape.proto +45 -0
  467. package/proto/decentraland/sdk/components/touch_screen_controls.proto +38 -0
  468. package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
  469. package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
  470. package/proto/decentraland/sdk/components/tween.proto +117 -0
  471. package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
  472. package/proto/decentraland/sdk/components/tween_state.proto +18 -0
  473. package/proto/decentraland/sdk/components/ui_background.proto +34 -0
  474. package/proto/decentraland/sdk/components/ui_canvas_information.proto +30 -0
  475. package/proto/decentraland/sdk/components/ui_dropdown.proto +22 -0
  476. package/proto/decentraland/sdk/components/ui_dropdown_result.proto +11 -0
  477. package/proto/decentraland/sdk/components/ui_input.proto +20 -0
  478. package/proto/decentraland/sdk/components/ui_input_binding.proto +27 -0
  479. package/proto/decentraland/sdk/components/ui_input_result.proto +12 -0
  480. package/proto/decentraland/sdk/components/ui_text.proto +26 -0
  481. package/proto/decentraland/sdk/components/ui_transform.proto +178 -0
  482. package/proto/decentraland/sdk/components/video_event.proto +25 -0
  483. package/proto/decentraland/sdk/components/video_player.proto +24 -0
  484. package/proto/decentraland/sdk/components/virtual_camera.proto +18 -0
  485. package/proto/decentraland/sdk/components/visibility_component.proto +16 -0
  486. package/proto/decentraland/sdk/development/local_development.proto +29 -0
  487. package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
  488. package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
  489. package/proto/decentraland/social_service/errors.proto +30 -0
  490. package/proto/decentraland/social_service/v1/social_service_v1.proto +163 -0
  491. package/proto/decentraland/social_service/v2/social_service_v2.proto +721 -0
  492. package/protoc-gen-bitwise/generator_csharp.js +248 -0
  493. package/protoc-gen-bitwise/options.js +139 -0
  494. package/protoc-gen-bitwise/plugin.js +87 -0
  495. package/protoc-gen-bitwise/runtime/cs/Quantize.cs +70 -0
  496. package/protoc-gen-bitwise/wire.js +239 -0
  497. package/public/about.proto +5 -0
  498. package/public/comms.proto +5 -0
  499. package/public/quests.proto +5 -0
  500. package/public/sdk-apis.proto +25 -0
  501. package/public/sdk-components.proto +45 -0
  502. package/public/sdk-development.proto +5 -0
  503. package/public/social.proto +6 -0
  504. package/bff/authentication-service.proto +0 -25
  505. package/bff/comms-service.proto +0 -49
  506. package/bff/http-endpoints.proto +0 -66
  507. package/ecs/components/Animator.proto +0 -18
  508. package/ecs/components/AudioSource.proto +0 -12
  509. package/ecs/components/AudioStream.proto +0 -10
  510. package/ecs/components/AvatarAttach.proto +0 -16
  511. package/ecs/components/AvatarModifierArea.proto +0 -16
  512. package/ecs/components/AvatarShape.proto +0 -31
  513. package/ecs/components/Billboard.proto +0 -10
  514. package/ecs/components/BoxShape.proto +0 -14
  515. package/ecs/components/CameraMode.proto +0 -9
  516. package/ecs/components/CameraModeArea.proto +0 -11
  517. package/ecs/components/CylinderShape.proto +0 -15
  518. package/ecs/components/GLTFShape.proto +0 -14
  519. package/ecs/components/Material.proto +0 -59
  520. package/ecs/components/MeshCollider.proto +0 -35
  521. package/ecs/components/MeshRenderer.proto +0 -29
  522. package/ecs/components/NFTShape.proto +0 -19
  523. package/ecs/components/OnPointerDown.proto +0 -12
  524. package/ecs/components/OnPointerDownResult.proto +0 -17
  525. package/ecs/components/OnPointerUp.proto +0 -12
  526. package/ecs/components/OnPointerUpResult.proto +0 -17
  527. package/ecs/components/PlaneShape.proto +0 -14
  528. package/ecs/components/PointerEvents.proto +0 -28
  529. package/ecs/components/PointerEventsResult.proto +0 -22
  530. package/ecs/components/PointerLock.proto +0 -8
  531. package/ecs/components/Raycast.proto +0 -19
  532. package/ecs/components/RaycastResult.proto +0 -24
  533. package/ecs/components/SphereShape.proto +0 -13
  534. package/ecs/components/TextShape.proto +0 -34
  535. package/ecs/components/UiText.proto +0 -25
  536. package/ecs/components/UiTransform.proto +0 -162
  537. package/ecs/components/VisibilityComponent.proto +0 -8
  538. package/ecs/components/common/ActionButton.proto +0 -18
  539. package/ecs/components/common/CameraModeValue.proto +0 -6
  540. package/ecs/components/common/Color3.proto +0 -8
  541. package/ecs/components/common/Vector3.proto +0 -7
  542. package/kernel/apis/CommunicationsController.proto +0 -11
  543. package/kernel/apis/EngineAPI.proto +0 -180
  544. package/kernel/apis/EnvironmentAPI.proto +0 -67
  545. package/kernel/apis/ExperimentalAPI.proto +0 -16
  546. package/kernel/apis/Permissions.proto +0 -30
  547. package/kernel/apis/Players.proto +0 -28
  548. package/kernel/apis/PortableExperiences.proto +0 -40
  549. package/kernel/apis/RestrictedActions.proto +0 -25
  550. package/kernel/apis/SceneStateStorageController.proto +0 -114
  551. package/kernel/apis/SocialController.proto +0 -15
  552. package/kernel/comms/comms-rfc-4.proto +0 -71
  553. package/kernel/comms/v1/broker.proto +0 -114
  554. package/kernel/comms/v1/comms.proto +0 -68
  555. package/kernel/comms/v2/comms.proto +0 -61
  556. package/kernel/comms/v3/archipelago.proto +0 -42
  557. package/renderer-protocol/EngineInterface.proto +0 -716
  558. package/renderer-protocol/RendererProtocol.proto +0 -26
  559. /package/{ecs → proto/decentraland/sdk}/components/Transform.md +0 -0
  560. /package/{ecs → proto/decentraland/sdk}/components/common/id.md +0 -0
@@ -0,0 +1,239 @@
1
+ 'use strict'
2
+
3
+ /**
4
+ * Self-contained protobuf wire-format codec for protoc-gen-bitwise.
5
+ *
6
+ * The plugin only needs a tiny slice of the descriptor/plugin schemas, so
7
+ * rather than pull in a protobuf runtime (which would force every consumer —
8
+ * including the sibling Pulse checkout that runs this file directly off disk —
9
+ * to `npm install` the protocol repo) we decode the handful of fields we care
10
+ * about by walking the wire format directly. This mirrors the original Python
11
+ * plugin, which already hand-parsed FieldOptions for the same reason.
12
+ *
13
+ * Decoded subset:
14
+ * CodeGeneratorRequest { file_to_generate = 1; proto_file = 15; }
15
+ * FileDescriptorProto { name = 1; package = 2; message_type = 4; }
16
+ * DescriptorProto { name = 1; field = 2; }
17
+ * FieldDescriptorProto { name = 1; label = 4; type = 5; options = 8 (raw bytes); }
18
+ *
19
+ * Encoded subset:
20
+ * CodeGeneratorResponse { error = 1; supported_features = 2; file = 15; }
21
+ * CodeGeneratorResponse.File { name = 1; content = 15; }
22
+ *
23
+ * Wire types: 0 = varint, 1 = 64-bit, 2 = length-delimited, 5 = 32-bit.
24
+ */
25
+
26
+ // ---------------------------------------------------------------------------
27
+ // Low-level readers
28
+ // ---------------------------------------------------------------------------
29
+
30
+ /** Decode a protobuf varint at `pos`. Returns [value, newPos]. */
31
+ function readVarint(buf, pos) {
32
+ let result = 0
33
+ let shift = 0
34
+ let byte
35
+ do {
36
+ byte = buf[pos++]
37
+ // Multiplication (not <<) keeps values correct past 32 bits.
38
+ result += (byte & 0x7f) * Math.pow(2, shift)
39
+ shift += 7
40
+ } while (byte & 0x80)
41
+ return [result, pos]
42
+ }
43
+
44
+ /** Advance `pos` past a field of the given wire type. Returns newPos. */
45
+ function skipField(buf, pos, wireType) {
46
+ switch (wireType) {
47
+ case 0: // varint
48
+ return readVarint(buf, pos)[1]
49
+ case 1: // 64-bit
50
+ return pos + 8
51
+ case 2: {
52
+ // length-delimited
53
+ const [length, next] = readVarint(buf, pos)
54
+ return next + length
55
+ }
56
+ case 5: // 32-bit
57
+ return pos + 4
58
+ default:
59
+ // Groups (3/4) are deprecated and never appear in descriptors.
60
+ return pos
61
+ }
62
+ }
63
+
64
+ // ---------------------------------------------------------------------------
65
+ // Request decoding
66
+ // ---------------------------------------------------------------------------
67
+
68
+ function decodeFieldDescriptor(buf) {
69
+ const field = { name: '', label: 0, type: 0, optionsRaw: null }
70
+ let pos = 0
71
+ while (pos < buf.length) {
72
+ let tag
73
+ ;[tag, pos] = readVarint(buf, pos)
74
+ const fieldNum = tag >>> 3
75
+ const wireType = tag & 0x7
76
+ if (fieldNum === 1 && wireType === 2) {
77
+ let len
78
+ ;[len, pos] = readVarint(buf, pos)
79
+ field.name = buf.toString('utf8', pos, pos + len)
80
+ pos += len
81
+ } else if (fieldNum === 4 && wireType === 0) {
82
+ ;[field.label, pos] = readVarint(buf, pos)
83
+ } else if (fieldNum === 5 && wireType === 0) {
84
+ ;[field.type, pos] = readVarint(buf, pos)
85
+ } else if (fieldNum === 8 && wireType === 2) {
86
+ let len
87
+ ;[len, pos] = readVarint(buf, pos)
88
+ // Keep the raw FieldOptions bytes so custom extensions survive (the
89
+ // descriptor schema doesn't know about ext 50001/50002).
90
+ field.optionsRaw = buf.subarray(pos, pos + len)
91
+ pos += len
92
+ } else {
93
+ pos = skipField(buf, pos, wireType)
94
+ }
95
+ }
96
+ return field
97
+ }
98
+
99
+ function decodeDescriptor(buf) {
100
+ const message = { name: '', field: [] }
101
+ let pos = 0
102
+ while (pos < buf.length) {
103
+ let tag
104
+ ;[tag, pos] = readVarint(buf, pos)
105
+ const fieldNum = tag >>> 3
106
+ const wireType = tag & 0x7
107
+ if (fieldNum === 1 && wireType === 2) {
108
+ let len
109
+ ;[len, pos] = readVarint(buf, pos)
110
+ message.name = buf.toString('utf8', pos, pos + len)
111
+ pos += len
112
+ } else if (fieldNum === 2 && wireType === 2) {
113
+ let len
114
+ ;[len, pos] = readVarint(buf, pos)
115
+ message.field.push(decodeFieldDescriptor(buf.subarray(pos, pos + len)))
116
+ pos += len
117
+ } else {
118
+ // nested_type / enum_type / etc. are intentionally ignored — the
119
+ // generator only walks top-level messages, matching the Python plugin.
120
+ pos = skipField(buf, pos, wireType)
121
+ }
122
+ }
123
+ return message
124
+ }
125
+
126
+ function decodeFileDescriptor(buf) {
127
+ const file = { name: '', package: '', messageType: [] }
128
+ let pos = 0
129
+ while (pos < buf.length) {
130
+ let tag
131
+ ;[tag, pos] = readVarint(buf, pos)
132
+ const fieldNum = tag >>> 3
133
+ const wireType = tag & 0x7
134
+ if (fieldNum === 1 && wireType === 2) {
135
+ let len
136
+ ;[len, pos] = readVarint(buf, pos)
137
+ file.name = buf.toString('utf8', pos, pos + len)
138
+ pos += len
139
+ } else if (fieldNum === 2 && wireType === 2) {
140
+ let len
141
+ ;[len, pos] = readVarint(buf, pos)
142
+ file.package = buf.toString('utf8', pos, pos + len)
143
+ pos += len
144
+ } else if (fieldNum === 4 && wireType === 2) {
145
+ let len
146
+ ;[len, pos] = readVarint(buf, pos)
147
+ file.messageType.push(decodeDescriptor(buf.subarray(pos, pos + len)))
148
+ pos += len
149
+ } else {
150
+ pos = skipField(buf, pos, wireType)
151
+ }
152
+ }
153
+ return file
154
+ }
155
+
156
+ /** Decode a serialized CodeGeneratorRequest. */
157
+ function decodeRequest(buf) {
158
+ const request = { fileToGenerate: [], protoFile: [] }
159
+ let pos = 0
160
+ while (pos < buf.length) {
161
+ let tag
162
+ ;[tag, pos] = readVarint(buf, pos)
163
+ const fieldNum = tag >>> 3
164
+ const wireType = tag & 0x7
165
+ if (fieldNum === 1 && wireType === 2) {
166
+ let len
167
+ ;[len, pos] = readVarint(buf, pos)
168
+ request.fileToGenerate.push(buf.toString('utf8', pos, pos + len))
169
+ pos += len
170
+ } else if (fieldNum === 15 && wireType === 2) {
171
+ let len
172
+ ;[len, pos] = readVarint(buf, pos)
173
+ request.protoFile.push(decodeFileDescriptor(buf.subarray(pos, pos + len)))
174
+ pos += len
175
+ } else {
176
+ pos = skipField(buf, pos, wireType)
177
+ }
178
+ }
179
+ return request
180
+ }
181
+
182
+ // ---------------------------------------------------------------------------
183
+ // Response encoding
184
+ // ---------------------------------------------------------------------------
185
+
186
+ /** Encode an unsigned integer as a protobuf varint Buffer. */
187
+ function encodeVarint(value) {
188
+ const bytes = []
189
+ let v = value
190
+ while (v > 0x7f) {
191
+ bytes.push((v & 0x7f) | 0x80)
192
+ v = Math.floor(v / 128)
193
+ }
194
+ bytes.push(v & 0x7f)
195
+ return Buffer.from(bytes)
196
+ }
197
+
198
+ function encodeTag(fieldNum, wireType) {
199
+ return encodeVarint((fieldNum << 3) | wireType)
200
+ }
201
+
202
+ /** Encode a length-delimited (string/bytes) field: tag + length + payload. */
203
+ function encodeLengthDelimited(fieldNum, payload) {
204
+ const buf = Buffer.isBuffer(payload) ? payload : Buffer.from(payload, 'utf8')
205
+ return Buffer.concat([encodeTag(fieldNum, 2), encodeVarint(buf.length), buf])
206
+ }
207
+
208
+ function encodeFile(file) {
209
+ return Buffer.concat([
210
+ encodeLengthDelimited(1, file.name), // name = 1
211
+ encodeLengthDelimited(15, file.content), // content = 15
212
+ ])
213
+ }
214
+
215
+ /**
216
+ * Encode a CodeGeneratorResponse.
217
+ * @param {{error?: string|null, supportedFeatures?: number, files?: Array<{name:string,content:string}>}} response
218
+ */
219
+ function encodeResponse(response) {
220
+ const parts = []
221
+ if (response.error != null) {
222
+ parts.push(encodeLengthDelimited(1, response.error)) // error = 1
223
+ }
224
+ if (response.supportedFeatures != null) {
225
+ parts.push(encodeTag(2, 0)) // supported_features = 2 (varint)
226
+ parts.push(encodeVarint(response.supportedFeatures))
227
+ }
228
+ for (const file of response.files || []) {
229
+ parts.push(encodeLengthDelimited(15, encodeFile(file))) // file = 15
230
+ }
231
+ return Buffer.concat(parts)
232
+ }
233
+
234
+ module.exports = {
235
+ readVarint,
236
+ skipField,
237
+ decodeRequest,
238
+ encodeResponse,
239
+ }
@@ -0,0 +1,5 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.realm;
4
+
5
+ import public "decentraland/realm/about.proto";
@@ -0,0 +1,5 @@
1
+ syntax = "proto3";
2
+
3
+ import public "decentraland/kernel/comms/v3/archipelago.proto";
4
+ import public "decentraland/kernel/comms/rfc4/comms.proto";
5
+ import public "decentraland/kernel/comms/rfc5/ws_comms.proto";
@@ -0,0 +1,5 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.quests;
4
+
5
+ import public "decentraland/quests/definitions.proto";
@@ -0,0 +1,25 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.sdk;
4
+ // This file only imports all the modules exposed to the scenes to help the compiler
5
+ // resolve all files without conflicts
6
+
7
+
8
+ import public "decentraland/kernel/apis/communications_controller.proto";
9
+ import public "decentraland/kernel/apis/dev_tools.proto";
10
+ import public "decentraland/kernel/apis/engine_api.proto";
11
+ import public "decentraland/kernel/apis/environment_api.proto";
12
+ import public "decentraland/kernel/apis/ethereum_controller.proto";
13
+ import public "decentraland/kernel/apis/parcel_identity.proto";
14
+ import public "decentraland/kernel/apis/permissions.proto";
15
+ import public "decentraland/kernel/apis/players.proto";
16
+ import public "decentraland/kernel/apis/portable_experiences.proto";
17
+ import public "decentraland/kernel/apis/restricted_actions.proto";
18
+ import public "decentraland/kernel/apis/runtime.proto";
19
+ import public "decentraland/kernel/apis/testing.proto";
20
+ import public "decentraland/kernel/apis/signed_fetch.proto";
21
+ import public "decentraland/kernel/apis/social_controller.proto";
22
+ import public "decentraland/kernel/apis/user_action_module.proto";
23
+ import public "decentraland/kernel/apis/user_identity.proto";
24
+ import public "decentraland/kernel/apis/scene.proto";
25
+ import public "decentraland/kernel/apis/comms_api.proto";
@@ -0,0 +1,45 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.sdk.components;
4
+ import public "decentraland/sdk/components/animator.proto";
5
+ import public "decentraland/sdk/components/audio_source.proto";
6
+ import public "decentraland/sdk/components/audio_stream.proto";
7
+ import public "decentraland/sdk/components/avatar_attach.proto";
8
+ import public "decentraland/sdk/components/avatar_base.proto";
9
+ import public "decentraland/sdk/components/avatar_emote_command.proto";
10
+ import public "decentraland/sdk/components/avatar_equipped_data.proto";
11
+ import public "decentraland/sdk/components/avatar_modifier_area.proto";
12
+ import public "decentraland/sdk/components/avatar_shape.proto";
13
+ import public "decentraland/sdk/components/billboard.proto";
14
+ import public "decentraland/sdk/components/camera_mode_area.proto";
15
+ import public "decentraland/sdk/components/camera_mode.proto";
16
+ import public "decentraland/sdk/components/engine_info.proto";
17
+ import public "decentraland/sdk/components/gltf_container.proto";
18
+ import public "decentraland/sdk/components/gltf_node_modifiers.proto";
19
+ import public "decentraland/sdk/components/gltf_container_loading_state.proto";
20
+ import public "decentraland/sdk/components/material.proto";
21
+ import public "decentraland/sdk/components/mesh_collider.proto";
22
+ import public "decentraland/sdk/components/mesh_renderer.proto";
23
+ import public "decentraland/sdk/components/nft_shape.proto";
24
+ import public "decentraland/sdk/components/player_identity_data.proto";
25
+ import public "decentraland/sdk/components/pointer_events_result.proto";
26
+ import public "decentraland/sdk/components/pointer_events.proto";
27
+ import public "decentraland/sdk/components/pointer_lock.proto";
28
+ import public "decentraland/sdk/components/raycast_result.proto";
29
+ import public "decentraland/sdk/components/raycast.proto";
30
+ import public "decentraland/sdk/components/realm_info.proto";
31
+ import public "decentraland/sdk/components/text_shape.proto";
32
+ import public "decentraland/sdk/components/touch_screen_controls.proto";
33
+ import public "decentraland/sdk/components/tween.proto";
34
+ import public "decentraland/sdk/components/tween_state.proto";
35
+ import public "decentraland/sdk/components/tween_sequence.proto";
36
+ import public "decentraland/sdk/components/ui_background.proto";
37
+ import public "decentraland/sdk/components/ui_dropdown_result.proto";
38
+ import public "decentraland/sdk/components/ui_dropdown.proto";
39
+ import public "decentraland/sdk/components/ui_input_result.proto";
40
+ import public "decentraland/sdk/components/ui_input.proto";
41
+ import public "decentraland/sdk/components/ui_input_binding.proto";
42
+ import public "decentraland/sdk/components/ui_text.proto";
43
+ import public "decentraland/sdk/components/ui_transform.proto";
44
+ import public "decentraland/sdk/components/video_player.proto";
45
+ import public "decentraland/sdk/components/visibility_component.proto";
@@ -0,0 +1,5 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.sdk.development;
4
+
5
+ import public "decentraland/sdk/development/local_development.proto";
@@ -0,0 +1,6 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.social;
4
+
5
+ import public "decentraland/social_service/v1/social_service_v1.proto";
6
+ import public "decentraland/social_service/v2/social_service_v2.proto";
@@ -1,25 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package decentraland.bff;
4
-
5
- message GetChallengeRequest {
6
- string address = 1;
7
- }
8
-
9
- message GetChallengeResponse {
10
- string challenge_to_sign = 1;
11
- bool already_connected = 2;
12
- }
13
-
14
- message SignedChallenge {
15
- string auth_chain_json = 1;
16
- }
17
-
18
- message WelcomePeerInformation {
19
- string peer_id = 1;
20
- }
21
-
22
- service BffAuthenticationService {
23
- rpc GetChallenge(GetChallengeRequest) returns (GetChallengeResponse) {}
24
- rpc Authenticate(SignedChallenge) returns (WelcomePeerInformation) {}
25
- }
@@ -1,49 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package decentraland.bff;
4
-
5
- message Subscription {
6
- uint32 subscription_id = 1;
7
- }
8
-
9
- message SubscriptionRequest {
10
- string topic = 1;
11
- }
12
-
13
- message PeerTopicSubscriptionResultElem {
14
- bytes payload = 1;
15
- string topic = 2;
16
- string sender = 3;
17
- }
18
-
19
- message SystemTopicSubscriptionResultElem {
20
- bytes payload = 1;
21
- string topic = 2;
22
- }
23
-
24
- message PublishToTopicRequest {
25
- string topic = 1;
26
- bytes payload = 2;
27
- }
28
-
29
- message PublishToTopicResult {
30
- bool ok = 1;
31
- }
32
-
33
- message UnsubscriptionResult {
34
- bool ok = 1;
35
- }
36
-
37
- service CommsService {
38
- rpc SubscribeToPeerMessages(SubscriptionRequest) returns (Subscription) {}
39
- rpc GetPeerMessages(Subscription) returns (stream PeerTopicSubscriptionResultElem) {}
40
- rpc UnsubscribeToPeerMessages(Subscription) returns (UnsubscriptionResult) {}
41
-
42
- rpc SubscribeToSystemMessages(SubscriptionRequest) returns (Subscription) {}
43
- rpc GetSystemMessages(Subscription) returns (stream SystemTopicSubscriptionResultElem) {}
44
- rpc UnsubscribeToSystemMessages(Subscription) returns (UnsubscriptionResult) {}
45
-
46
-
47
- // send a peer message to a topic
48
- rpc PublishToTopic(PublishToTopicRequest) returns (PublishToTopicResult) {}
49
- }
@@ -1,66 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "google/protobuf/empty.proto";
4
- import "google/api/annotations.proto";
5
-
6
- package decentraland.bff;
7
-
8
- message AboutResponse {
9
- bool healthy = 1;
10
- AboutConfiguration configurations = 2;
11
- ContentInfo content = 3;
12
- CommsInfo comms = 4;
13
- LambdasInfo lambdas = 5;
14
- BffInfo bff = 6;
15
-
16
- message BaseService {
17
- bool healthy = 1;
18
- optional string version = 2;
19
- optional string commit_hash = 3;
20
- optional string public_url = 4;
21
- }
22
-
23
- message AboutConfiguration {
24
- optional string realm_name = 1;
25
- }
26
- message ContentInfo {
27
- // common properties
28
- bool healthy = 1;
29
- optional string version = 2;
30
- optional string commit_hash = 3;
31
- optional string public_url = 4;
32
- }
33
- message LambdasInfo {
34
- // common properties
35
- bool healthy = 1;
36
- optional string version = 2;
37
- optional string commit_hash = 3;
38
- optional string public_url = 4;
39
- }
40
- message CommsInfo {
41
- // common properties
42
- bool healthy = 1;
43
- optional string version = 2;
44
- optional string commit_hash = 3;
45
- optional string public_url = 4;
46
- // specific properties
47
- string protocol = 50;
48
- optional int32 users_count = 51;
49
- }
50
- message BffInfo {
51
- // common properties
52
- bool healthy = 1;
53
- optional string version = 2;
54
- optional string commit_hash = 3;
55
- optional string public_url = 4;
56
- // specific properties
57
- optional int32 user_count = 51;
58
- }
59
- }
60
-
61
- service HttpEndpoints {
62
- // Returns the status and configuration of the bff microservice
63
- rpc About(google.protobuf.Empty) returns (AboutResponse) {
64
- option (google.api.http) = { get: "/about" };
65
- }
66
- }
@@ -1,18 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "common/id.proto";
4
- option (ecs_component_id) = 1042;
5
-
6
- message PBAnimator {
7
- repeated PBAnimationState states = 1;
8
- }
9
-
10
- message PBAnimationState {
11
- string name = 1;
12
- string clip = 2;
13
- optional bool playing = 3;
14
- optional float weight = 4; // default=1.0s
15
- optional float speed = 5; // default=1.0
16
- optional bool loop = 6; // default=true
17
- optional bool should_reset = 7;
18
- }
@@ -1,12 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "common/id.proto";
4
- option (ecs_component_id) = 1020;
5
-
6
- message PBAudioSource {
7
- optional bool playing = 1;
8
- optional float volume = 2; // default=1.0f
9
- optional bool loop = 3;
10
- optional float pitch = 4; // default=1.0f
11
- string audio_clip_url = 5;
12
- }
@@ -1,10 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "common/id.proto";
4
- option (ecs_component_id) = 1021;
5
-
6
- message PBAudioStream {
7
- optional bool playing = 1;
8
- optional float volume = 2; // default=1.0f
9
- string url = 3;
10
- }
@@ -1,16 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "common/id.proto";
4
- option (ecs_component_id) = 1073;
5
-
6
- enum AvatarAnchorPoint {
7
- POSITION = 0;
8
- NAME_TAG = 1;
9
- LEFT_HAND = 2;
10
- RIGHT_HAND = 3;
11
- }
12
-
13
- message PBAvatarAttach {
14
- string avatar_id = 1;
15
- AvatarAnchorPoint anchor_point_id = 2;
16
- }
@@ -1,16 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "common/id.proto";
4
- option (ecs_component_id) = 1070;
5
- import "common/Vector3.proto";
6
-
7
- enum AvatarModifier {
8
- HIDE_AVATARS = 0;
9
- DISABLE_PASSPORTS = 1;
10
- }
11
-
12
- message PBAvatarModifierArea {
13
- Vector3 area = 1;
14
- repeated string exclude_ids = 2;
15
- repeated AvatarModifier modifiers = 3;
16
- }
@@ -1,31 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "common/id.proto";
4
- option (ecs_component_id) = 1080;
5
- import "common/Color3.proto";
6
-
7
- message PBAvatarShape {
8
- string id = 1;
9
- optional string name = 2; // default = NPC
10
- optional string body_shape = 3; // default = urn:decentraland:off-chain:base-avatars:BaseFemale
11
- optional Color3 skin_color = 4; // default = Color3(R = 0.6f, G = 0.462f, B = 0.356f)
12
- optional Color3 hair_color = 5; // default = Color3(R = 0.283f, G = 0.142f, B = 0f)
13
- optional Color3 eye_color = 6; // default = Color3(R = 0.6f, G = 0.462f, B = 0.356f)
14
- optional string expression_trigger_id = 7;
15
- optional int64 expression_trigger_timestamp = 8; // default = timestamp
16
- optional bool talking = 9;
17
- /**
18
- * default = ["urn:decentraland:off-chain:base-avatars:f_eyes_00",
19
- * "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
20
- * "urn:decentraland:off-chain:base-avatars:f_mouth_00"
21
- * "urn:decentraland:off-chain:base-avatars:standard_hair",
22
- * "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
23
- * "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
24
- * "urn:decentraland:off-chain:base-avatars:bun_shoes"]
25
- */
26
- repeated string wearables = 10;
27
- /**
28
- * default = []
29
- */
30
- repeated string emotes = 11;
31
- }
@@ -1,10 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "common/id.proto";
4
- option (ecs_component_id) = 1090;
5
-
6
- message PBBillboard {
7
- optional bool x = 1; // default=true
8
- optional bool y = 2; // default=true
9
- optional bool z = 3; // default=true
10
- }
@@ -1,14 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "common/id.proto";
4
- option (ecs_component_id) = 1013;
5
-
6
- message PBBoxShape {
7
- // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
8
- optional bool with_collisions = 1; // default=true
9
- // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
10
- optional bool is_pointer_blocker = 2; // default=true
11
- // @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
12
- optional bool visible = 3; // default=true
13
- repeated float uvs = 4;
14
- }
@@ -1,9 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "common/id.proto";
4
- option (ecs_component_id) = 1072;
5
- import "common/CameraModeValue.proto";
6
-
7
- message PBCameraMode {
8
- CameraModeValue mode = 1;
9
- }
@@ -1,11 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "common/id.proto";
4
- option (ecs_component_id) = 1071;
5
- import "common/Vector3.proto";
6
- import "common/CameraModeValue.proto";
7
-
8
- message PBCameraModeArea {
9
- Vector3 area = 1;
10
- CameraModeValue mode = 2;
11
- }
@@ -1,15 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "common/id.proto";
4
- option (ecs_component_id) = 1016;
5
-
6
- message PBCylinderShape {
7
- // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
8
- optional bool with_collisions = 1; // default=true
9
- // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
10
- optional bool is_pointer_blocker = 2; // default=true
11
- // @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
12
- optional bool visible = 3; // default=true
13
- optional float radius_top = 4; // default=1.0
14
- optional float radius_bottom = 5; // default=1.0
15
- }