@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.
- package/LICENSE +201 -0
- package/README.md +69 -0
- package/out-js/about.gen.d.ts +1 -0
- package/out-js/about.gen.js +6 -0
- package/out-js/about.gen.js.map +1 -0
- package/out-js/comms.gen.d.ts +1 -0
- package/out-js/comms.gen.js +6 -0
- package/out-js/comms.gen.js.map +1 -0
- package/out-js/decentraland/common/border_rect.gen.d.ts +49 -0
- package/out-js/decentraland/common/border_rect.gen.js +201 -0
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
- package/out-js/decentraland/common/colors.gen.d.ts +46 -0
- package/out-js/decentraland/common/colors.gen.js +189 -0
- package/out-js/decentraland/common/colors.gen.js.map +1 -0
- package/out-js/decentraland/common/content_mapping.gen.d.ts +31 -0
- package/out-js/decentraland/common/content_mapping.gen.js +80 -0
- package/out-js/decentraland/common/content_mapping.gen.js.map +1 -0
- package/out-js/decentraland/common/sdk/user_data.gen.d.ts +63 -0
- package/out-js/decentraland/common/sdk/user_data.gen.js +330 -0
- package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -0
- package/out-js/decentraland/common/texture.gen.d.ts +100 -0
- package/out-js/decentraland/common/texture.gen.js +446 -0
- package/out-js/decentraland/common/texture.gen.js.map +1 -0
- package/out-js/decentraland/common/vectors.gen.d.ts +71 -0
- package/out-js/decentraland/common/vectors.gen.js +338 -0
- package/out-js/decentraland/common/vectors.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +76 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js +257 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +89 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +301 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +58 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js +142 -0
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +338 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.js +1452 -0
- package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +283 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.js +1122 -0
- package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +225 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +878 -0
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +146 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +557 -0
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +100 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.js +360 -0
- package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/players.gen.d.ts +127 -0
- package/out-js/decentraland/kernel/apis/players.gen.js +372 -0
- package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +178 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +607 -0
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +244 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +824 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +217 -0
- package/out-js/decentraland/kernel/apis/runtime.gen.js +801 -0
- package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/scene.gen.d.ts +59 -0
- package/out-js/decentraland/kernel/apis/scene.gen.js +171 -0
- package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +139 -0
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +615 -0
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +72 -0
- package/out-js/decentraland/kernel/apis/social_controller.gen.js +207 -0
- package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/testing.gen.d.ts +249 -0
- package/out-js/decentraland/kernel/apis/testing.gen.js +1073 -0
- package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +56 -0
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js +128 -0
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +86 -0
- package/out-js/decentraland/kernel/apis/user_identity.gen.js +236 -0
- package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +213 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1282 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -0
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +183 -0
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +906 -0
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +224 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1204 -0
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -0
- package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
- package/out-js/decentraland/quests/definitions.gen.js +2728 -0
- package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
- package/out-js/decentraland/realm/about.gen.d.ts +150 -0
- package/out-js/decentraland/realm/about.gen.js +914 -0
- package/out-js/decentraland/realm/about.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/animator.gen.d.ts +62 -0
- package/out-js/decentraland/sdk/components/animator.gen.js +192 -0
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +61 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js +151 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +40 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +95 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +76 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +262 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js +129 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +37 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +95 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +90 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +60 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +153 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +72 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +251 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +54 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js +128 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +70 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +48 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +85 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +10 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js +46 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +157 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +163 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js +95 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +101 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +70 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +106 -0
- package/out-js/decentraland/sdk/components/material.gen.js +515 -0
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +128 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +469 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +104 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +382 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +74 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +259 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +79 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +247 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +42 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +133 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +69 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +79 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +274 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +48 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +132 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js +131 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +81 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js +345 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween.gen.d.ts +125 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +598 -0
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +63 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js +197 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +187 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +69 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +44 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +172 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +32 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +83 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +50 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +177 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +204 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +1210 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/video_player.gen.d.ts +41 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js +138 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +31 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +69 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
- package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7842 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/social/friendships/friendships.gen.d.ts +500 -0
- package/out-js/decentraland/social/friendships/friendships.gen.js +2517 -0
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.d.ts +357 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.js +1554 -0
- package/out-js/decentraland/social_service_v2/social_service.gen.js.map +1 -0
- package/out-js/google/protobuf/descriptor.gen.d.ts +436 -0
- package/out-js/google/protobuf/descriptor.gen.js +3173 -0
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
- package/out-js/google/protobuf/empty.gen.d.ts +38 -0
- package/out-js/google/protobuf/empty.gen.js +54 -0
- package/out-js/google/protobuf/empty.gen.js.map +1 -0
- package/out-js/quests.gen.d.ts +1 -0
- package/out-js/quests.gen.js +6 -0
- package/out-js/quests.gen.js.map +1 -0
- package/out-js/sdk-apis.gen.d.ts +1 -0
- package/out-js/sdk-apis.gen.js +6 -0
- package/out-js/sdk-apis.gen.js.map +1 -0
- package/out-js/sdk-components.gen.d.ts +1 -0
- package/out-js/sdk-components.gen.js +6 -0
- package/out-js/sdk-components.gen.js.map +1 -0
- package/out-js/sdk-development.gen.d.ts +1 -0
- package/out-js/sdk-development.gen.js +6 -0
- package/out-js/sdk-development.gen.js.map +1 -0
- package/out-js/social.gen.d.ts +1 -0
- package/out-js/social.gen.js +6 -0
- package/out-js/social.gen.js.map +1 -0
- package/out-js/social_service_v2.gen.d.ts +1 -0
- package/out-js/social_service_v2.gen.js +6 -0
- package/out-js/social_service_v2.gen.js.map +1 -0
- package/out-ts/about.gen.ts +3 -0
- package/out-ts/comms.gen.ts +3 -0
- package/out-ts/decentraland/common/border_rect.gen.ts +230 -0
- package/out-ts/decentraland/common/colors.gen.ts +214 -0
- package/out-ts/decentraland/common/content_mapping.gen.ts +93 -0
- package/out-ts/decentraland/common/sdk/user_data.gen.ts +370 -0
- package/out-ts/decentraland/common/texture.gen.ts +500 -0
- package/out-ts/decentraland/common/vectors.gen.ts +377 -0
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +295 -0
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +327 -0
- package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +161 -0
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +1587 -0
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +1264 -0
- package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +982 -0
- package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +608 -0
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +397 -0
- package/out-ts/decentraland/kernel/apis/players.gen.ts +415 -0
- package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +668 -0
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +895 -0
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +911 -0
- package/out-ts/decentraland/kernel/apis/scene.gen.ts +192 -0
- package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +691 -0
- package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +230 -0
- package/out-ts/decentraland/kernel/apis/testing.gen.ts +1270 -0
- package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +146 -0
- package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +264 -0
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +1440 -0
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +1029 -0
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1338 -0
- package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
- package/out-ts/decentraland/realm/about.gen.ts +1062 -0
- package/out-ts/decentraland/sdk/components/animator.gen.ts +240 -0
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +209 -0
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +122 -0
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +289 -0
- package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +149 -0
- package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +115 -0
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +105 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +188 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +333 -0
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +148 -0
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +86 -0
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +115 -0
- package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +43 -0
- package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +154 -0
- package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
- package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +204 -0
- package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
- package/out-ts/decentraland/sdk/components/engine_info.gen.ts +119 -0
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +127 -0
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +89 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +629 -0
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +534 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +454 -0
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +288 -0
- package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +310 -0
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +170 -0
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +85 -0
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +333 -0
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +168 -0
- package/out-ts/decentraland/sdk/components/realm_info.gen.ts +152 -0
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +470 -0
- package/out-ts/decentraland/sdk/components/tween.gen.ts +648 -0
- package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
- package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +223 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +231 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +80 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +215 -0
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +97 -0
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +219 -0
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1361 -0
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +173 -0
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +83 -0
- package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
- package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
- package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
- package/out-ts/decentraland/social/friendships/friendships.gen.ts +2798 -0
- package/out-ts/decentraland/social_service_v2/social_service.gen.ts +1709 -0
- package/out-ts/google/protobuf/descriptor.gen.ts +3470 -0
- package/out-ts/google/protobuf/empty.gen.ts +72 -0
- package/out-ts/quests.gen.ts +3 -0
- package/out-ts/sdk-apis.gen.ts +3 -0
- package/out-ts/sdk-components.gen.ts +3 -0
- package/out-ts/sdk-development.gen.ts +3 -0
- package/out-ts/social.gen.ts +3 -0
- package/out-ts/social_service_v2.gen.ts +3 -0
- package/package.json +33 -0
- package/proto/buf.yaml +47 -0
- package/proto/decentraland/common/border_rect.proto +18 -0
- package/proto/decentraland/common/colors.proto +15 -0
- package/proto/decentraland/common/content_mapping.proto +7 -0
- package/proto/decentraland/common/entity.proto +13 -0
- package/proto/decentraland/common/sdk/user_data.proto +25 -0
- package/proto/decentraland/common/texture.proto +40 -0
- package/proto/decentraland/common/vectors.proto +26 -0
- package/proto/decentraland/kernel/apis/comms_api.proto +25 -0
- package/proto/decentraland/kernel/apis/communications_controller.proto +23 -0
- package/proto/decentraland/kernel/apis/dev_tools.proto +15 -0
- package/proto/decentraland/kernel/apis/engine_api.proto +118 -0
- package/proto/decentraland/kernel/apis/environment_api.proto +76 -0
- package/proto/decentraland/kernel/apis/ethereum_controller.proto +64 -0
- package/proto/decentraland/kernel/apis/parcel_identity.proto +43 -0
- package/proto/decentraland/kernel/apis/permissions.proto +36 -0
- package/proto/decentraland/kernel/apis/players.proto +35 -0
- package/proto/decentraland/kernel/apis/portable_experiences.proto +55 -0
- package/proto/decentraland/kernel/apis/restricted_actions.proto +78 -0
- package/proto/decentraland/kernel/apis/runtime.proto +71 -0
- package/proto/decentraland/kernel/apis/scene.proto +16 -0
- package/proto/decentraland/kernel/apis/signed_fetch.proto +33 -0
- package/proto/decentraland/kernel/apis/social_controller.proto +19 -0
- package/proto/decentraland/kernel/apis/testing.proto +100 -0
- package/proto/decentraland/kernel/apis/user_action_module.proto +13 -0
- package/proto/decentraland/kernel/apis/user_identity.proto +22 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +110 -0
- package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +104 -0
- package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
- package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
- package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
- package/proto/decentraland/kernel/comms/v3/archipelago.proto +86 -0
- package/proto/decentraland/kernel/comms/v3/comms.proto +64 -0
- package/proto/decentraland/quests/definitions.proto +185 -0
- package/proto/decentraland/realm/about.proto +73 -0
- package/proto/decentraland/sdk/components/README.md +32 -0
- package/proto/decentraland/sdk/components/Transform.md +25 -0
- package/proto/decentraland/sdk/components/animator.proto +31 -0
- package/proto/decentraland/sdk/components/audio_event.proto +12 -0
- package/proto/decentraland/sdk/components/audio_source.proto +31 -0
- package/proto/decentraland/sdk/components/audio_stream.proto +14 -0
- package/proto/decentraland/sdk/components/avatar_attach.proto +51 -0
- package/proto/decentraland/sdk/components/avatar_base.proto +15 -0
- package/proto/decentraland/sdk/components/avatar_emote_command.proto +13 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +13 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +32 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +42 -0
- package/proto/decentraland/sdk/components/billboard.proto +29 -0
- package/proto/decentraland/sdk/components/camera_mode.proto +12 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +25 -0
- package/proto/decentraland/sdk/components/common/camera_type.proto +9 -0
- package/proto/decentraland/sdk/components/common/id.md +2 -0
- package/proto/decentraland/sdk/components/common/id.proto +8 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +28 -0
- package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
- package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
- package/proto/decentraland/sdk/components/common/raycast_hit.proto +16 -0
- package/proto/decentraland/sdk/components/common/texts.proto +21 -0
- package/proto/decentraland/sdk/components/engine_info.proto +15 -0
- package/proto/decentraland/sdk/components/gltf_container.proto +19 -0
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +13 -0
- package/proto/decentraland/sdk/components/material.proto +57 -0
- package/proto/decentraland/sdk/components/mesh_collider.proto +62 -0
- package/proto/decentraland/sdk/components/mesh_renderer.proto +43 -0
- package/proto/decentraland/sdk/components/nft_shape.proto +48 -0
- package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
- package/proto/decentraland/sdk/components/pointer_events.proto +37 -0
- package/proto/decentraland/sdk/components/pointer_events_result.proto +19 -0
- package/proto/decentraland/sdk/components/pointer_lock.proto +11 -0
- package/proto/decentraland/sdk/components/raycast.proto +58 -0
- package/proto/decentraland/sdk/components/raycast_result.proto +21 -0
- package/proto/decentraland/sdk/components/realm_info.proto +14 -0
- package/proto/decentraland/sdk/components/text_shape.proto +45 -0
- package/proto/decentraland/sdk/components/tween.proto +74 -0
- package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
- package/proto/decentraland/sdk/components/tween_state.proto +18 -0
- package/proto/decentraland/sdk/components/ui_background.proto +34 -0
- package/proto/decentraland/sdk/components/ui_canvas_information.proto +24 -0
- package/proto/decentraland/sdk/components/ui_dropdown.proto +22 -0
- package/proto/decentraland/sdk/components/ui_dropdown_result.proto +11 -0
- package/proto/decentraland/sdk/components/ui_input.proto +20 -0
- package/proto/decentraland/sdk/components/ui_input_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_text.proto +26 -0
- package/proto/decentraland/sdk/components/ui_transform.proto +148 -0
- package/proto/decentraland/sdk/components/video_event.proto +25 -0
- package/proto/decentraland/sdk/components/video_player.proto +16 -0
- package/proto/decentraland/sdk/components/visibility_component.proto +9 -0
- package/proto/decentraland/sdk/development/local_development.proto +29 -0
- package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
- package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
- package/proto/decentraland/social/friendships/friendships.proto +162 -0
- package/proto/decentraland/social_service_v2/social_service.proto +111 -0
- package/proto/google/LICENSE +27 -0
- package/proto/google/README.md +1 -0
- package/proto/google/api/annotations.json +83 -0
- package/proto/google/api/annotations.proto +11 -0
- package/proto/google/api/http.json +86 -0
- package/proto/google/api/http.proto +31 -0
- package/proto/google/protobuf/api.json +118 -0
- package/proto/google/protobuf/api.proto +34 -0
- package/proto/google/protobuf/descriptor.json +739 -0
- package/proto/google/protobuf/descriptor.proto +286 -0
- package/proto/google/protobuf/source_context.json +20 -0
- package/proto/google/protobuf/source_context.proto +7 -0
- package/proto/google/protobuf/type.json +202 -0
- package/proto/google/protobuf/type.proto +89 -0
- package/public/about.proto +5 -0
- package/public/comms.proto +5 -0
- package/public/quests.proto +5 -0
- package/public/sdk-apis.proto +25 -0
- package/public/sdk-components.proto +42 -0
- package/public/sdk-development.proto +5 -0
- package/public/social.proto +4 -0
- package/public/social_service_v2.proto +4 -0
|
@@ -0,0 +1,372 @@
|
|
|
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.PlayersServiceDefinition = exports.GetConnectedPlayersRequest = exports.GetPlayersInSceneRequest = exports.GetPlayerDataRequest = exports.PlayerListResponse = exports.PlayersGetUserDataResponse = exports.Player = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const user_data_gen_1 = require("../../common/sdk/user_data.gen");
|
|
10
|
+
exports.protobufPackage = "decentraland.kernel.apis";
|
|
11
|
+
function createBasePlayer() {
|
|
12
|
+
return { userId: "" };
|
|
13
|
+
}
|
|
14
|
+
var Player;
|
|
15
|
+
(function (Player) {
|
|
16
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
17
|
+
if (message.userId !== "") {
|
|
18
|
+
writer.uint32(10).string(message.userId);
|
|
19
|
+
}
|
|
20
|
+
return writer;
|
|
21
|
+
}
|
|
22
|
+
Player.encode = encode;
|
|
23
|
+
function decode(input, length) {
|
|
24
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
25
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26
|
+
const message = createBasePlayer();
|
|
27
|
+
while (reader.pos < end) {
|
|
28
|
+
const tag = reader.uint32();
|
|
29
|
+
switch (tag >>> 3) {
|
|
30
|
+
case 1:
|
|
31
|
+
if (tag !== 10) {
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
message.userId = reader.string();
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
reader.skipType(tag & 7);
|
|
41
|
+
}
|
|
42
|
+
return message;
|
|
43
|
+
}
|
|
44
|
+
Player.decode = decode;
|
|
45
|
+
function fromJSON(object) {
|
|
46
|
+
return { userId: isSet(object.userId) ? String(object.userId) : "" };
|
|
47
|
+
}
|
|
48
|
+
Player.fromJSON = fromJSON;
|
|
49
|
+
function toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
message.userId !== undefined && (obj.userId = message.userId);
|
|
52
|
+
return obj;
|
|
53
|
+
}
|
|
54
|
+
Player.toJSON = toJSON;
|
|
55
|
+
function create(base) {
|
|
56
|
+
return Player.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
57
|
+
}
|
|
58
|
+
Player.create = create;
|
|
59
|
+
function fromPartial(object) {
|
|
60
|
+
var _a;
|
|
61
|
+
const message = createBasePlayer();
|
|
62
|
+
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
63
|
+
return message;
|
|
64
|
+
}
|
|
65
|
+
Player.fromPartial = fromPartial;
|
|
66
|
+
})(Player || (exports.Player = Player = {}));
|
|
67
|
+
function createBasePlayersGetUserDataResponse() {
|
|
68
|
+
return { data: undefined };
|
|
69
|
+
}
|
|
70
|
+
var PlayersGetUserDataResponse;
|
|
71
|
+
(function (PlayersGetUserDataResponse) {
|
|
72
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
73
|
+
if (message.data !== undefined) {
|
|
74
|
+
user_data_gen_1.UserData.encode(message.data, writer.uint32(10).fork()).ldelim();
|
|
75
|
+
}
|
|
76
|
+
return writer;
|
|
77
|
+
}
|
|
78
|
+
PlayersGetUserDataResponse.encode = encode;
|
|
79
|
+
function decode(input, length) {
|
|
80
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
81
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
82
|
+
const message = createBasePlayersGetUserDataResponse();
|
|
83
|
+
while (reader.pos < end) {
|
|
84
|
+
const tag = reader.uint32();
|
|
85
|
+
switch (tag >>> 3) {
|
|
86
|
+
case 1:
|
|
87
|
+
if (tag !== 10) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.data = user_data_gen_1.UserData.decode(reader, reader.uint32());
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
reader.skipType(tag & 7);
|
|
97
|
+
}
|
|
98
|
+
return message;
|
|
99
|
+
}
|
|
100
|
+
PlayersGetUserDataResponse.decode = decode;
|
|
101
|
+
function fromJSON(object) {
|
|
102
|
+
return { data: isSet(object.data) ? user_data_gen_1.UserData.fromJSON(object.data) : undefined };
|
|
103
|
+
}
|
|
104
|
+
PlayersGetUserDataResponse.fromJSON = fromJSON;
|
|
105
|
+
function toJSON(message) {
|
|
106
|
+
const obj = {};
|
|
107
|
+
message.data !== undefined && (obj.data = message.data ? user_data_gen_1.UserData.toJSON(message.data) : undefined);
|
|
108
|
+
return obj;
|
|
109
|
+
}
|
|
110
|
+
PlayersGetUserDataResponse.toJSON = toJSON;
|
|
111
|
+
function create(base) {
|
|
112
|
+
return PlayersGetUserDataResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
113
|
+
}
|
|
114
|
+
PlayersGetUserDataResponse.create = create;
|
|
115
|
+
function fromPartial(object) {
|
|
116
|
+
const message = createBasePlayersGetUserDataResponse();
|
|
117
|
+
message.data = (object.data !== undefined && object.data !== null) ? user_data_gen_1.UserData.fromPartial(object.data) : undefined;
|
|
118
|
+
return message;
|
|
119
|
+
}
|
|
120
|
+
PlayersGetUserDataResponse.fromPartial = fromPartial;
|
|
121
|
+
})(PlayersGetUserDataResponse || (exports.PlayersGetUserDataResponse = PlayersGetUserDataResponse = {}));
|
|
122
|
+
function createBasePlayerListResponse() {
|
|
123
|
+
return { players: [] };
|
|
124
|
+
}
|
|
125
|
+
var PlayerListResponse;
|
|
126
|
+
(function (PlayerListResponse) {
|
|
127
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
128
|
+
for (const v of message.players) {
|
|
129
|
+
Player.encode(v, writer.uint32(10).fork()).ldelim();
|
|
130
|
+
}
|
|
131
|
+
return writer;
|
|
132
|
+
}
|
|
133
|
+
PlayerListResponse.encode = encode;
|
|
134
|
+
function decode(input, length) {
|
|
135
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
136
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
137
|
+
const message = createBasePlayerListResponse();
|
|
138
|
+
while (reader.pos < end) {
|
|
139
|
+
const tag = reader.uint32();
|
|
140
|
+
switch (tag >>> 3) {
|
|
141
|
+
case 1:
|
|
142
|
+
if (tag !== 10) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
message.players.push(Player.decode(reader, reader.uint32()));
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
reader.skipType(tag & 7);
|
|
152
|
+
}
|
|
153
|
+
return message;
|
|
154
|
+
}
|
|
155
|
+
PlayerListResponse.decode = decode;
|
|
156
|
+
function fromJSON(object) {
|
|
157
|
+
return { players: Array.isArray(object === null || object === void 0 ? void 0 : object.players) ? object.players.map((e) => Player.fromJSON(e)) : [] };
|
|
158
|
+
}
|
|
159
|
+
PlayerListResponse.fromJSON = fromJSON;
|
|
160
|
+
function toJSON(message) {
|
|
161
|
+
const obj = {};
|
|
162
|
+
if (message.players) {
|
|
163
|
+
obj.players = message.players.map((e) => e ? Player.toJSON(e) : undefined);
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
obj.players = [];
|
|
167
|
+
}
|
|
168
|
+
return obj;
|
|
169
|
+
}
|
|
170
|
+
PlayerListResponse.toJSON = toJSON;
|
|
171
|
+
function create(base) {
|
|
172
|
+
return PlayerListResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
173
|
+
}
|
|
174
|
+
PlayerListResponse.create = create;
|
|
175
|
+
function fromPartial(object) {
|
|
176
|
+
var _a;
|
|
177
|
+
const message = createBasePlayerListResponse();
|
|
178
|
+
message.players = ((_a = object.players) === null || _a === void 0 ? void 0 : _a.map((e) => Player.fromPartial(e))) || [];
|
|
179
|
+
return message;
|
|
180
|
+
}
|
|
181
|
+
PlayerListResponse.fromPartial = fromPartial;
|
|
182
|
+
})(PlayerListResponse || (exports.PlayerListResponse = PlayerListResponse = {}));
|
|
183
|
+
function createBaseGetPlayerDataRequest() {
|
|
184
|
+
return { userId: "" };
|
|
185
|
+
}
|
|
186
|
+
var GetPlayerDataRequest;
|
|
187
|
+
(function (GetPlayerDataRequest) {
|
|
188
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
189
|
+
if (message.userId !== "") {
|
|
190
|
+
writer.uint32(10).string(message.userId);
|
|
191
|
+
}
|
|
192
|
+
return writer;
|
|
193
|
+
}
|
|
194
|
+
GetPlayerDataRequest.encode = encode;
|
|
195
|
+
function decode(input, length) {
|
|
196
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
197
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
198
|
+
const message = createBaseGetPlayerDataRequest();
|
|
199
|
+
while (reader.pos < end) {
|
|
200
|
+
const tag = reader.uint32();
|
|
201
|
+
switch (tag >>> 3) {
|
|
202
|
+
case 1:
|
|
203
|
+
if (tag !== 10) {
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
message.userId = reader.string();
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
reader.skipType(tag & 7);
|
|
213
|
+
}
|
|
214
|
+
return message;
|
|
215
|
+
}
|
|
216
|
+
GetPlayerDataRequest.decode = decode;
|
|
217
|
+
function fromJSON(object) {
|
|
218
|
+
return { userId: isSet(object.userId) ? String(object.userId) : "" };
|
|
219
|
+
}
|
|
220
|
+
GetPlayerDataRequest.fromJSON = fromJSON;
|
|
221
|
+
function toJSON(message) {
|
|
222
|
+
const obj = {};
|
|
223
|
+
message.userId !== undefined && (obj.userId = message.userId);
|
|
224
|
+
return obj;
|
|
225
|
+
}
|
|
226
|
+
GetPlayerDataRequest.toJSON = toJSON;
|
|
227
|
+
function create(base) {
|
|
228
|
+
return GetPlayerDataRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
229
|
+
}
|
|
230
|
+
GetPlayerDataRequest.create = create;
|
|
231
|
+
function fromPartial(object) {
|
|
232
|
+
var _a;
|
|
233
|
+
const message = createBaseGetPlayerDataRequest();
|
|
234
|
+
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
235
|
+
return message;
|
|
236
|
+
}
|
|
237
|
+
GetPlayerDataRequest.fromPartial = fromPartial;
|
|
238
|
+
})(GetPlayerDataRequest || (exports.GetPlayerDataRequest = GetPlayerDataRequest = {}));
|
|
239
|
+
function createBaseGetPlayersInSceneRequest() {
|
|
240
|
+
return {};
|
|
241
|
+
}
|
|
242
|
+
var GetPlayersInSceneRequest;
|
|
243
|
+
(function (GetPlayersInSceneRequest) {
|
|
244
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
245
|
+
return writer;
|
|
246
|
+
}
|
|
247
|
+
GetPlayersInSceneRequest.encode = encode;
|
|
248
|
+
function decode(input, length) {
|
|
249
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
250
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
251
|
+
const message = createBaseGetPlayersInSceneRequest();
|
|
252
|
+
while (reader.pos < end) {
|
|
253
|
+
const tag = reader.uint32();
|
|
254
|
+
switch (tag >>> 3) {
|
|
255
|
+
}
|
|
256
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
reader.skipType(tag & 7);
|
|
260
|
+
}
|
|
261
|
+
return message;
|
|
262
|
+
}
|
|
263
|
+
GetPlayersInSceneRequest.decode = decode;
|
|
264
|
+
function fromJSON(_) {
|
|
265
|
+
return {};
|
|
266
|
+
}
|
|
267
|
+
GetPlayersInSceneRequest.fromJSON = fromJSON;
|
|
268
|
+
function toJSON(_) {
|
|
269
|
+
const obj = {};
|
|
270
|
+
return obj;
|
|
271
|
+
}
|
|
272
|
+
GetPlayersInSceneRequest.toJSON = toJSON;
|
|
273
|
+
function create(base) {
|
|
274
|
+
return GetPlayersInSceneRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
275
|
+
}
|
|
276
|
+
GetPlayersInSceneRequest.create = create;
|
|
277
|
+
function fromPartial(_) {
|
|
278
|
+
const message = createBaseGetPlayersInSceneRequest();
|
|
279
|
+
return message;
|
|
280
|
+
}
|
|
281
|
+
GetPlayersInSceneRequest.fromPartial = fromPartial;
|
|
282
|
+
})(GetPlayersInSceneRequest || (exports.GetPlayersInSceneRequest = GetPlayersInSceneRequest = {}));
|
|
283
|
+
function createBaseGetConnectedPlayersRequest() {
|
|
284
|
+
return {};
|
|
285
|
+
}
|
|
286
|
+
var GetConnectedPlayersRequest;
|
|
287
|
+
(function (GetConnectedPlayersRequest) {
|
|
288
|
+
function encode(_, writer = minimal_1.default.Writer.create()) {
|
|
289
|
+
return writer;
|
|
290
|
+
}
|
|
291
|
+
GetConnectedPlayersRequest.encode = encode;
|
|
292
|
+
function decode(input, length) {
|
|
293
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
294
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
295
|
+
const message = createBaseGetConnectedPlayersRequest();
|
|
296
|
+
while (reader.pos < end) {
|
|
297
|
+
const tag = reader.uint32();
|
|
298
|
+
switch (tag >>> 3) {
|
|
299
|
+
}
|
|
300
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
reader.skipType(tag & 7);
|
|
304
|
+
}
|
|
305
|
+
return message;
|
|
306
|
+
}
|
|
307
|
+
GetConnectedPlayersRequest.decode = decode;
|
|
308
|
+
function fromJSON(_) {
|
|
309
|
+
return {};
|
|
310
|
+
}
|
|
311
|
+
GetConnectedPlayersRequest.fromJSON = fromJSON;
|
|
312
|
+
function toJSON(_) {
|
|
313
|
+
const obj = {};
|
|
314
|
+
return obj;
|
|
315
|
+
}
|
|
316
|
+
GetConnectedPlayersRequest.toJSON = toJSON;
|
|
317
|
+
function create(base) {
|
|
318
|
+
return GetConnectedPlayersRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
319
|
+
}
|
|
320
|
+
GetConnectedPlayersRequest.create = create;
|
|
321
|
+
function fromPartial(_) {
|
|
322
|
+
const message = createBaseGetConnectedPlayersRequest();
|
|
323
|
+
return message;
|
|
324
|
+
}
|
|
325
|
+
GetConnectedPlayersRequest.fromPartial = fromPartial;
|
|
326
|
+
})(GetConnectedPlayersRequest || (exports.GetConnectedPlayersRequest = GetConnectedPlayersRequest = {}));
|
|
327
|
+
exports.PlayersServiceDefinition = {
|
|
328
|
+
name: "PlayersService",
|
|
329
|
+
fullName: "decentraland.kernel.apis.PlayersService",
|
|
330
|
+
methods: {
|
|
331
|
+
/**
|
|
332
|
+
* Returns data about a specific player, by id
|
|
333
|
+
* NOTE: To be deprecated after implementing foreign-entities and once the avatar scene uses SDK7
|
|
334
|
+
*/
|
|
335
|
+
getPlayerData: {
|
|
336
|
+
name: "GetPlayerData",
|
|
337
|
+
requestType: GetPlayerDataRequest,
|
|
338
|
+
requestStream: false,
|
|
339
|
+
responseType: PlayersGetUserDataResponse,
|
|
340
|
+
responseStream: false,
|
|
341
|
+
options: {},
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
* Returns a list of all the ids of players who are currently standing within the parcels of the scene
|
|
345
|
+
* NOTE: To be deprecated after implementing foreign-entities and once the avatar scene uses SDK7
|
|
346
|
+
*/
|
|
347
|
+
getPlayersInScene: {
|
|
348
|
+
name: "GetPlayersInScene",
|
|
349
|
+
requestType: GetPlayersInSceneRequest,
|
|
350
|
+
requestStream: false,
|
|
351
|
+
responseType: PlayerListResponse,
|
|
352
|
+
responseStream: false,
|
|
353
|
+
options: {},
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* Returns a list of all the ids of players who are currently connected to the same server and grouped together
|
|
357
|
+
* NOTE: To be deprecated after implementing foreign-entities and once the avatar scene uses SDK7
|
|
358
|
+
*/
|
|
359
|
+
getConnectedPlayers: {
|
|
360
|
+
name: "GetConnectedPlayers",
|
|
361
|
+
requestType: GetConnectedPlayersRequest,
|
|
362
|
+
requestStream: false,
|
|
363
|
+
responseType: PlayerListResponse,
|
|
364
|
+
responseStream: false,
|
|
365
|
+
options: {},
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
};
|
|
369
|
+
function isSet(value) {
|
|
370
|
+
return value !== null && value !== undefined;
|
|
371
|
+
}
|
|
372
|
+
//# sourceMappingURL=players.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"players.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/kernel/apis/players.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AACrC,kEAA0D;AAE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W,EAAE,wBAAwB;YACrC,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,kBAAkB;YAChC,cAAc,EAAE,KAAK;YACrB,OAAO,EAAE,EAAE;SACZ;QACD;;;WAGG;QACH,mBAAmB,EAAE;YACnB,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,0BAA0B;YACvC,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,kBAAkB;YAChC,cAAc,EAAE,KAAK;YACrB,OAAO,EAAE,EAAE;SACZ;KACF;CACO,CAAC;AAcX,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "decentraland.kernel.apis";
|
|
3
|
+
export interface KillRequest {
|
|
4
|
+
pid: string;
|
|
5
|
+
}
|
|
6
|
+
export interface KillResponse {
|
|
7
|
+
status: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface SpawnRequest {
|
|
10
|
+
pid?: string | undefined;
|
|
11
|
+
ens?: string | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface SpawnResponse {
|
|
14
|
+
pid: string;
|
|
15
|
+
parentCid: string;
|
|
16
|
+
name: string;
|
|
17
|
+
ens?: string | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface PxRequest {
|
|
20
|
+
pid: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GetPortableExperiencesLoadedRequest {
|
|
23
|
+
}
|
|
24
|
+
export interface GetPortableExperiencesLoadedResponse {
|
|
25
|
+
loaded: SpawnResponse[];
|
|
26
|
+
}
|
|
27
|
+
export interface ExitRequest {
|
|
28
|
+
}
|
|
29
|
+
export interface ExitResponse {
|
|
30
|
+
status: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace KillRequest {
|
|
33
|
+
function encode(message: KillRequest, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): KillRequest;
|
|
35
|
+
function fromJSON(object: any): KillRequest;
|
|
36
|
+
function toJSON(message: KillRequest): unknown;
|
|
37
|
+
function create<I extends Exact<DeepPartial<KillRequest>, I>>(base?: I): KillRequest;
|
|
38
|
+
function fromPartial<I extends Exact<DeepPartial<KillRequest>, I>>(object: I): KillRequest;
|
|
39
|
+
}
|
|
40
|
+
export declare namespace KillResponse {
|
|
41
|
+
function encode(message: KillResponse, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): KillResponse;
|
|
43
|
+
function fromJSON(object: any): KillResponse;
|
|
44
|
+
function toJSON(message: KillResponse): unknown;
|
|
45
|
+
function create<I extends Exact<DeepPartial<KillResponse>, I>>(base?: I): KillResponse;
|
|
46
|
+
function fromPartial<I extends Exact<DeepPartial<KillResponse>, I>>(object: I): KillResponse;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace SpawnRequest {
|
|
49
|
+
function encode(message: SpawnRequest, writer?: _m0.Writer): _m0.Writer;
|
|
50
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): SpawnRequest;
|
|
51
|
+
function fromJSON(object: any): SpawnRequest;
|
|
52
|
+
function toJSON(message: SpawnRequest): unknown;
|
|
53
|
+
function create<I extends Exact<DeepPartial<SpawnRequest>, I>>(base?: I): SpawnRequest;
|
|
54
|
+
function fromPartial<I extends Exact<DeepPartial<SpawnRequest>, I>>(object: I): SpawnRequest;
|
|
55
|
+
}
|
|
56
|
+
export declare namespace SpawnResponse {
|
|
57
|
+
function encode(message: SpawnResponse, writer?: _m0.Writer): _m0.Writer;
|
|
58
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): SpawnResponse;
|
|
59
|
+
function fromJSON(object: any): SpawnResponse;
|
|
60
|
+
function toJSON(message: SpawnResponse): unknown;
|
|
61
|
+
function create<I extends Exact<DeepPartial<SpawnResponse>, I>>(base?: I): SpawnResponse;
|
|
62
|
+
function fromPartial<I extends Exact<DeepPartial<SpawnResponse>, I>>(object: I): SpawnResponse;
|
|
63
|
+
}
|
|
64
|
+
export declare namespace PxRequest {
|
|
65
|
+
function encode(message: PxRequest, writer?: _m0.Writer): _m0.Writer;
|
|
66
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PxRequest;
|
|
67
|
+
function fromJSON(object: any): PxRequest;
|
|
68
|
+
function toJSON(message: PxRequest): unknown;
|
|
69
|
+
function create<I extends Exact<DeepPartial<PxRequest>, I>>(base?: I): PxRequest;
|
|
70
|
+
function fromPartial<I extends Exact<DeepPartial<PxRequest>, I>>(object: I): PxRequest;
|
|
71
|
+
}
|
|
72
|
+
export declare namespace GetPortableExperiencesLoadedRequest {
|
|
73
|
+
function encode(_: GetPortableExperiencesLoadedRequest, writer?: _m0.Writer): _m0.Writer;
|
|
74
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetPortableExperiencesLoadedRequest;
|
|
75
|
+
function fromJSON(_: any): GetPortableExperiencesLoadedRequest;
|
|
76
|
+
function toJSON(_: GetPortableExperiencesLoadedRequest): unknown;
|
|
77
|
+
function create<I extends Exact<DeepPartial<GetPortableExperiencesLoadedRequest>, I>>(base?: I): GetPortableExperiencesLoadedRequest;
|
|
78
|
+
function fromPartial<I extends Exact<DeepPartial<GetPortableExperiencesLoadedRequest>, I>>(_: I): GetPortableExperiencesLoadedRequest;
|
|
79
|
+
}
|
|
80
|
+
export declare namespace GetPortableExperiencesLoadedResponse {
|
|
81
|
+
function encode(message: GetPortableExperiencesLoadedResponse, writer?: _m0.Writer): _m0.Writer;
|
|
82
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): GetPortableExperiencesLoadedResponse;
|
|
83
|
+
function fromJSON(object: any): GetPortableExperiencesLoadedResponse;
|
|
84
|
+
function toJSON(message: GetPortableExperiencesLoadedResponse): unknown;
|
|
85
|
+
function create<I extends Exact<DeepPartial<GetPortableExperiencesLoadedResponse>, I>>(base?: I): GetPortableExperiencesLoadedResponse;
|
|
86
|
+
function fromPartial<I extends Exact<DeepPartial<GetPortableExperiencesLoadedResponse>, I>>(object: I): GetPortableExperiencesLoadedResponse;
|
|
87
|
+
}
|
|
88
|
+
export declare namespace ExitRequest {
|
|
89
|
+
function encode(_: ExitRequest, writer?: _m0.Writer): _m0.Writer;
|
|
90
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): ExitRequest;
|
|
91
|
+
function fromJSON(_: any): ExitRequest;
|
|
92
|
+
function toJSON(_: ExitRequest): unknown;
|
|
93
|
+
function create<I extends Exact<DeepPartial<ExitRequest>, I>>(base?: I): ExitRequest;
|
|
94
|
+
function fromPartial<I extends Exact<DeepPartial<ExitRequest>, I>>(_: I): ExitRequest;
|
|
95
|
+
}
|
|
96
|
+
export declare namespace ExitResponse {
|
|
97
|
+
function encode(message: ExitResponse, writer?: _m0.Writer): _m0.Writer;
|
|
98
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): ExitResponse;
|
|
99
|
+
function fromJSON(object: any): ExitResponse;
|
|
100
|
+
function toJSON(message: ExitResponse): unknown;
|
|
101
|
+
function create<I extends Exact<DeepPartial<ExitResponse>, I>>(base?: I): ExitResponse;
|
|
102
|
+
function fromPartial<I extends Exact<DeepPartial<ExitResponse>, I>>(object: I): ExitResponse;
|
|
103
|
+
}
|
|
104
|
+
export type PortableExperiencesServiceDefinition = typeof PortableExperiencesServiceDefinition;
|
|
105
|
+
export declare const PortableExperiencesServiceDefinition: {
|
|
106
|
+
readonly name: "PortableExperiencesService";
|
|
107
|
+
readonly fullName: "decentraland.kernel.apis.PortableExperiencesService";
|
|
108
|
+
readonly methods: {
|
|
109
|
+
/**
|
|
110
|
+
* Spawns a new portable experience that is detached from the current scene.
|
|
111
|
+
* Spawned portable experiences can only be controlled by 1) the user (from the UI)
|
|
112
|
+
* and 2) from the parent scene. If the parent scene gets unloaded i.e. by distance,
|
|
113
|
+
* once the player re-loads the parent it will inherit the children portable experiences
|
|
114
|
+
* to gain control over them.
|
|
115
|
+
*/
|
|
116
|
+
readonly spawn: {
|
|
117
|
+
readonly name: "Spawn";
|
|
118
|
+
readonly requestType: typeof SpawnRequest;
|
|
119
|
+
readonly requestStream: false;
|
|
120
|
+
readonly responseType: typeof SpawnResponse;
|
|
121
|
+
readonly responseStream: false;
|
|
122
|
+
readonly options: {};
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Kill a child portable experience, this method only works if the child was
|
|
126
|
+
* spawned by the same process trying to kill it.
|
|
127
|
+
*/
|
|
128
|
+
readonly kill: {
|
|
129
|
+
readonly name: "Kill";
|
|
130
|
+
readonly requestType: typeof KillRequest;
|
|
131
|
+
readonly requestStream: false;
|
|
132
|
+
readonly responseType: typeof KillResponse;
|
|
133
|
+
readonly responseStream: false;
|
|
134
|
+
readonly options: {};
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Kill the current scene if the current scene is a portable experience. Other
|
|
138
|
+
* kind of scenes are not allowed to finish their programs like portable experiences.
|
|
139
|
+
*/
|
|
140
|
+
readonly exit: {
|
|
141
|
+
readonly name: "Exit";
|
|
142
|
+
readonly requestType: typeof ExitRequest;
|
|
143
|
+
readonly requestStream: false;
|
|
144
|
+
readonly responseType: typeof ExitResponse;
|
|
145
|
+
readonly responseStream: false;
|
|
146
|
+
readonly options: {};
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Gets a list of running portable experiences for the current user. Be mindful
|
|
150
|
+
* about the performance penalty of calling this function all frames.
|
|
151
|
+
*/
|
|
152
|
+
readonly getPortableExperiencesLoaded: {
|
|
153
|
+
readonly name: "GetPortableExperiencesLoaded";
|
|
154
|
+
readonly requestType: typeof GetPortableExperiencesLoadedRequest;
|
|
155
|
+
readonly requestStream: false;
|
|
156
|
+
readonly responseType: typeof GetPortableExperiencesLoadedResponse;
|
|
157
|
+
readonly responseStream: false;
|
|
158
|
+
readonly options: {};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
163
|
+
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 {
|
|
164
|
+
$case: string;
|
|
165
|
+
} ? {
|
|
166
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
167
|
+
} & {
|
|
168
|
+
$case: T["$case"];
|
|
169
|
+
} : T extends {} ? {
|
|
170
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
171
|
+
} : Partial<T>;
|
|
172
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
173
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
174
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
175
|
+
} & {
|
|
176
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
177
|
+
};
|
|
178
|
+
export {};
|