@dcl/protocol 1.0.0-2861824890.commit-748eb8b → 1.0.0-28806326790.commit-6771b13
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/README.md +256 -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 +59 -0
- package/out-js/decentraland/common/colors.gen.js +260 -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 +105 -0
- package/out-js/decentraland/common/texture.gen.js +475 -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 +206 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js +792 -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 +105 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +400 -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 +303 -0
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1056 -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 +334 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +2093 -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 +229 -0
- package/out-js/decentraland/realm/about.gen.js +1185 -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 +50 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +138 -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 +62 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +160 -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 +82 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +298 -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 +41 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +209 -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/gltf_node_modifiers.gen.d.ts +57 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +164 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +108 -0
- package/out-js/decentraland/sdk/components/material.gen.js +536 -0
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +130 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +471 -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 +110 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +306 -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 +43 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js +151 -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 +220 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +1213 -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 +238 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +1547 -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 +51 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js +177 -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 +39 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +83 -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_service/errors.gen.d.ts +96 -0
- package/out-js/decentraland/social_service/errors.gen.js +405 -0
- package/out-js/decentraland/social_service/errors.gen.js.map +1 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.d.ts +501 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js +2517 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +1827 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +9308 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.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-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 +293 -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 +539 -0
- package/out-ts/decentraland/common/vectors.gen.ts +377 -0
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +884 -0
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +434 -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 +1150 -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 +2389 -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 +1415 -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 +182 -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 +195 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +383 -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 +206 -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/gltf_node_modifiers.gen.ts +204 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +655 -0
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +536 -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 +415 -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 +183 -0
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +470 -0
- package/out-ts/decentraland/sdk/components/tween.gen.ts +1336 -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 +1775 -0
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +231 -0
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +108 -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_service/errors.gen.ts +442 -0
- package/out-ts/decentraland/social_service/v1/social_service_v1.gen.ts +2799 -0
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +10674 -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/package.json +28 -9
- package/proto/decentraland/common/border_rect.proto +18 -0
- package/proto/decentraland/common/colors.proto +21 -0
- package/{kernel/apis/common/ContentMapping.proto → proto/decentraland/common/content_mapping.proto} +1 -0
- package/proto/decentraland/common/entity.proto +13 -0
- package/proto/decentraland/common/floats.proto +8 -0
- package/proto/decentraland/common/options.proto +51 -0
- package/proto/decentraland/common/quantization_example.proto +164 -0
- package/{kernel/apis/common/UserData.proto → proto/decentraland/common/sdk/user_data.proto} +1 -0
- package/proto/decentraland/common/texture.proto +45 -0
- package/proto/decentraland/common/vectors.proto +26 -0
- package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
- package/proto/decentraland/kernel/apis/communications_controller.proto +29 -0
- package/{kernel/apis/DevTools.proto → proto/decentraland/kernel/apis/dev_tools.proto} +3 -0
- package/proto/decentraland/kernel/apis/engine_api.proto +118 -0
- package/proto/decentraland/kernel/apis/environment_api.proto +76 -0
- package/{kernel/apis/EthereumController.proto → proto/decentraland/kernel/apis/ethereum_controller.proto} +12 -1
- package/{kernel/apis/ParcelIdentity.proto → proto/decentraland/kernel/apis/parcel_identity.proto} +6 -2
- 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 +100 -0
- package/proto/decentraland/kernel/apis/runtime.proto +71 -0
- package/proto/decentraland/kernel/apis/scene.proto +16 -0
- package/{kernel/apis/SignedFetch.proto → proto/decentraland/kernel/apis/signed_fetch.proto} +9 -0
- package/proto/decentraland/kernel/apis/social_controller.proto +19 -0
- package/proto/decentraland/kernel/apis/testing.proto +100 -0
- package/{kernel/apis/UserActionModule.proto → proto/decentraland/kernel/apis/user_action_module.proto} +2 -0
- package/{kernel/apis/UserIdentity.proto → proto/decentraland/kernel/apis/user_identity.proto} +4 -2
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +176 -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/{kernel → proto/decentraland/kernel}/comms/v3/comms.proto +3 -3
- package/proto/decentraland/pulse/pulse_client.proto +79 -0
- package/proto/decentraland/pulse/pulse_server.proto +142 -0
- package/proto/decentraland/pulse/pulse_shared.proto +57 -0
- package/proto/decentraland/quests/definitions.proto +185 -0
- package/proto/decentraland/realm/about.proto +138 -0
- package/{ecs → proto/decentraland/sdk}/components/README.md +3 -3
- package/proto/decentraland/sdk/components/animator.proto +31 -0
- package/proto/decentraland/sdk/components/asset_load.proto +10 -0
- package/proto/decentraland/sdk/components/asset_load_loading_state.proto +16 -0
- package/proto/decentraland/sdk/components/audio_analysis.proto +44 -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 +22 -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_locomotion_settings.proto +21 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +33 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +49 -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_transition.proto +11 -0
- package/proto/decentraland/sdk/components/common/camera_type.proto +9 -0
- package/{ecs → proto/decentraland/sdk}/components/common/id.proto +1 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +37 -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/gltf_node_modifiers.proto +25 -0
- package/proto/decentraland/sdk/components/input_modifier.proto +22 -0
- package/proto/decentraland/sdk/components/light_source.proto +28 -0
- package/proto/decentraland/sdk/components/main_camera.proto +11 -0
- package/proto/decentraland/sdk/components/map_pin.proto +16 -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/particle_system.proto +133 -0
- package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
- package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
- package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
- package/proto/decentraland/sdk/components/pointer_events.proto +64 -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/primary_pointer_info.proto +39 -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 +15 -0
- package/proto/decentraland/sdk/components/skybox_time.proto +20 -0
- package/proto/decentraland/sdk/components/text_shape.proto +45 -0
- package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
- package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
- package/proto/decentraland/sdk/components/tween.proto +117 -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 +30 -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 +178 -0
- package/proto/decentraland/sdk/components/video_event.proto +25 -0
- package/proto/decentraland/sdk/components/video_player.proto +24 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +18 -0
- package/proto/decentraland/sdk/components/visibility_component.proto +16 -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_service/errors.proto +30 -0
- package/proto/decentraland/social_service/v1/social_service_v1.proto +163 -0
- package/proto/decentraland/social_service/v2/social_service_v2.proto +721 -0
- package/protoc-gen-bitwise/generator_csharp.js +248 -0
- package/protoc-gen-bitwise/options.js +139 -0
- package/protoc-gen-bitwise/plugin.js +87 -0
- package/protoc-gen-bitwise/runtime/cs/BitReader.cs +112 -0
- package/protoc-gen-bitwise/runtime/cs/BitWriter.cs +117 -0
- package/protoc-gen-bitwise/runtime/cs/Quantize.cs +70 -0
- package/protoc-gen-bitwise/wire.js +239 -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 +43 -0
- package/public/sdk-development.proto +5 -0
- package/public/social.proto +6 -0
- package/ecs/components/Animator.proto +0 -18
- package/ecs/components/AudioSource.proto +0 -12
- package/ecs/components/AudioStream.proto +0 -10
- package/ecs/components/AvatarAttach.proto +0 -16
- package/ecs/components/AvatarModifierArea.proto +0 -16
- package/ecs/components/AvatarShape.proto +0 -20
- package/ecs/components/Billboard.proto +0 -10
- package/ecs/components/BoxShape.proto +0 -14
- package/ecs/components/CameraMode.proto +0 -9
- package/ecs/components/CameraModeArea.proto +0 -11
- package/ecs/components/CylinderShape.proto +0 -15
- package/ecs/components/GLTFShape.proto +0 -14
- package/ecs/components/NFTShape.proto +0 -19
- package/ecs/components/OnPointerDown.proto +0 -12
- package/ecs/components/OnPointerDownResult.proto +0 -17
- package/ecs/components/OnPointerUp.proto +0 -12
- package/ecs/components/OnPointerUpResult.proto +0 -17
- package/ecs/components/PlaneShape.proto +0 -14
- package/ecs/components/PointerLock.proto +0 -8
- package/ecs/components/SphereShape.proto +0 -13
- package/ecs/components/TextShape.proto +0 -34
- package/ecs/components/UiTransform.proto +0 -159
- package/ecs/components/common/ActionButton.proto +0 -18
- package/ecs/components/common/CameraModeValue.proto +0 -6
- package/ecs/components/common/Color3.proto +0 -8
- package/ecs/components/common/Vector3.proto +0 -7
- package/kernel/apis/CommunicationsController.proto +0 -11
- package/kernel/apis/EngineAPI.proto +0 -180
- package/kernel/apis/EnvironmentAPI.proto +0 -67
- package/kernel/apis/ExperimentalAPI.proto +0 -16
- package/kernel/apis/Permissions.proto +0 -30
- package/kernel/apis/Players.proto +0 -28
- package/kernel/apis/PortableExperiences.proto +0 -40
- package/kernel/apis/RestrictedActions.proto +0 -25
- package/kernel/apis/SceneStateStorageController.proto +0 -114
- package/kernel/apis/SocialController.proto +0 -15
- package/kernel/comms/v1/broker.proto +0 -114
- package/kernel/comms/v1/comms.proto +0 -68
- package/kernel/comms/v2/comms.proto +0 -59
- package/renderer-protocol/EngineInterface.proto +0 -714
- package/renderer-protocol/RendererProtocol.proto +0 -26
- /package/{ecs → proto/decentraland/sdk}/components/Transform.md +0 -0
- /package/{ecs → proto/decentraland/sdk}/components/common/id.md +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "google.protobuf";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A generic empty message that you can re-use to avoid defining duplicated
|
|
8
|
+
* empty messages in your APIs. A typical example is to use it as the request
|
|
9
|
+
* or the response type of an API method. For instance:
|
|
10
|
+
*
|
|
11
|
+
* service Foo {
|
|
12
|
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface Empty {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function createBaseEmpty(): Empty {
|
|
19
|
+
return {};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export namespace Empty {
|
|
23
|
+
export function encode(_: Empty, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
24
|
+
return writer;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Empty {
|
|
28
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
29
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30
|
+
const message = createBaseEmpty();
|
|
31
|
+
while (reader.pos < end) {
|
|
32
|
+
const tag = reader.uint32();
|
|
33
|
+
switch (tag >>> 3) {
|
|
34
|
+
}
|
|
35
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
reader.skipType(tag & 7);
|
|
39
|
+
}
|
|
40
|
+
return message;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function fromJSON(_: any): Empty {
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function toJSON(_: Empty): unknown {
|
|
48
|
+
const obj: any = {};
|
|
49
|
+
return obj;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function create<I extends Exact<DeepPartial<Empty>, I>>(base?: I): Empty {
|
|
53
|
+
return Empty.fromPartial(base ?? {});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function fromPartial<I extends Exact<DeepPartial<Empty>, I>>(_: I): Empty {
|
|
57
|
+
const message = createBaseEmpty();
|
|
58
|
+
return message;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
63
|
+
|
|
64
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
65
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
66
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
67
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
68
|
+
: Partial<T>;
|
|
69
|
+
|
|
70
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
71
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
72
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
package/package.json
CHANGED
|
@@ -1,21 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-28806326790.commit-6771b13",
|
|
4
4
|
"description": "",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/decentraland/protocol.git"
|
|
8
8
|
},
|
|
9
|
+
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
10
|
+
"bugs": "https://github.com/decentraland/protocol/issues",
|
|
9
11
|
"keywords": [],
|
|
10
12
|
"author": "",
|
|
11
13
|
"license": "Apache-2.0",
|
|
14
|
+
"main": "index.js",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "./scripts/check-proto-compabitility.sh",
|
|
17
|
+
"gen:test": "node protoc-gen-bitwise/test/generator.test.js"
|
|
18
|
+
},
|
|
12
19
|
"devDependencies": {
|
|
13
|
-
"
|
|
20
|
+
"@protobuf-ts/protoc": "^2.11.0",
|
|
21
|
+
"proto-compatibility-tool": "^1.1.2-20220925163655.commit-25bd040",
|
|
22
|
+
"typescript": "^5.0.4"
|
|
23
|
+
},
|
|
24
|
+
"config": {
|
|
25
|
+
"protocVersion": "22.2"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@dcl/ts-proto": "1.154.0",
|
|
29
|
+
"protobufjs": "7.2.4"
|
|
14
30
|
},
|
|
15
31
|
"files": [
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
32
|
+
"proto/decentraland",
|
|
33
|
+
"out-ts",
|
|
34
|
+
"out-js",
|
|
35
|
+
"public",
|
|
36
|
+
"protoc-gen-bitwise/*.js",
|
|
37
|
+
"protoc-gen-bitwise/runtime"
|
|
19
38
|
],
|
|
20
|
-
"commit": "
|
|
39
|
+
"commit": "6771b13b653788fc5dc5d0d69d6df22a1ca341ca"
|
|
21
40
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.common;
|
|
3
|
+
|
|
4
|
+
// Defines indents from respective edges
|
|
5
|
+
message BorderRect {
|
|
6
|
+
float top = 1;
|
|
7
|
+
float left = 2;
|
|
8
|
+
float right = 3;
|
|
9
|
+
float bottom = 4;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Defines a rect with x, y, width and height
|
|
13
|
+
message Rect {
|
|
14
|
+
float x = 1;
|
|
15
|
+
float y = 2;
|
|
16
|
+
float width = 3;
|
|
17
|
+
float height = 4;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.common;
|
|
3
|
+
|
|
4
|
+
message Color3 {
|
|
5
|
+
float r = 1;
|
|
6
|
+
float g = 2;
|
|
7
|
+
float b = 3;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message Color4 {
|
|
11
|
+
float r = 1;
|
|
12
|
+
float g = 2;
|
|
13
|
+
float b = 3;
|
|
14
|
+
float a = 4;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// A range of Color4 values. Randomized or lerped between start and end.
|
|
18
|
+
message ColorRange {
|
|
19
|
+
Color4 start = 1;
|
|
20
|
+
Color4 end = 2;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.common;
|
|
3
|
+
import "decentraland/common/content_mapping.proto";
|
|
4
|
+
|
|
5
|
+
// Entity schema compliant with https://rfc.decentraland.org/adr/ADR-80
|
|
6
|
+
|
|
7
|
+
message Entity {
|
|
8
|
+
string id = 1;
|
|
9
|
+
repeated string pointers = 2;
|
|
10
|
+
string metadata = 3;
|
|
11
|
+
uint32 timestamp = 4;
|
|
12
|
+
repeated ContentMapping content = 5;
|
|
13
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.common;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/descriptor.proto";
|
|
6
|
+
|
|
7
|
+
// Options for quantizing a float value stored as a uint32 field.
|
|
8
|
+
// The float is clamped to [min, max] and uniformly quantized to N bits;
|
|
9
|
+
// protobuf encodes the resulting uint32 as a varint on the wire.
|
|
10
|
+
// The generator emits a float {Name}Quantized accessor in the partial class.
|
|
11
|
+
message QuantizedFloatOptions {
|
|
12
|
+
float min = 1;
|
|
13
|
+
float max = 2;
|
|
14
|
+
uint32 bits = 3;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Options for quantizing a signed float with a power-law curve, stored as a uint32 field.
|
|
18
|
+
// The value is split into an (bits-1)-bit linear unorm magnitude `u in [0, 1]` plus a sign,
|
|
19
|
+
// and reconstructed as `value = sign * max * u^pow`. Because `u = 0` maps to exactly `0`, zero is
|
|
20
|
+
// representable (unlike the linear quantizer, whose codes straddle zero), and `pow > 1` concentrates
|
|
21
|
+
// resolution near zero — useful for fields like velocity that need fine detail at low magnitudes and
|
|
22
|
+
// only coarse detail near the extremes. The range is symmetric ([-max, max]); there is no `min`.
|
|
23
|
+
// The encoded layout puts the magnitude in the high bits and the sign in the LSB
|
|
24
|
+
// (`(magnitude << 1) | sign`), so the varint cost tracks magnitude, not direction: a small `|value|`
|
|
25
|
+
// of either sign stays in one varint byte. Zero canonicalizes to `0`, so proto3 omits a stopped field.
|
|
26
|
+
// The generator emits a float {Name}Quantized accessor, same as the linear option.
|
|
27
|
+
message QuantizedPowerFloatOptions {
|
|
28
|
+
float max = 1;
|
|
29
|
+
float pow = 2;
|
|
30
|
+
uint32 bits = 3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Options for bit-packing an integer field into fewer than 32 bits.
|
|
34
|
+
message BitPackedOptions {
|
|
35
|
+
uint32 bits = 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
extend google.protobuf.FieldOptions {
|
|
39
|
+
// Apply to uint32 fields to enable quantized float encoding.
|
|
40
|
+
// Example: uint32 dx = 1 [(decentraland.common.quantized) = { min: -100.0, max: 100.0, bits: 16 }];
|
|
41
|
+
QuantizedFloatOptions quantized = 50001;
|
|
42
|
+
|
|
43
|
+
// Apply to uint32 fields to pack into fewer bits.
|
|
44
|
+
// Example: uint32 entity_id = 4 [(decentraland.common.bit_packed) = { bits: 20 }];
|
|
45
|
+
BitPackedOptions bit_packed = 50002;
|
|
46
|
+
|
|
47
|
+
// Apply to uint32 fields to enable power-law quantized float encoding (sign + magnitude curve).
|
|
48
|
+
// A field carries either `quantized` or `quantized_power`, not both.
|
|
49
|
+
// Example: uint32 velocity_x = 9 [(decentraland.common.quantized_power) = { max: 50.0, pow: 2.0, bits: 8 }];
|
|
50
|
+
QuantizedPowerFloatOptions quantized_power = 50003;
|
|
51
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.common;
|
|
4
|
+
|
|
5
|
+
import "decentraland/common/options.proto";
|
|
6
|
+
|
|
7
|
+
// High-frequency player state messages sent on Channel 1 (unreliable sequenced).
|
|
8
|
+
//
|
|
9
|
+
// Every message below uses the protoc-gen-bitwise annotations to minimise
|
|
10
|
+
// wire size. Wire costs are listed per-message so the trade-offs are clear.
|
|
11
|
+
//
|
|
12
|
+
// Annotation cheat-sheet:
|
|
13
|
+
// [(decentraland.common.quantized) = { min: F, max: F, bits: N }]
|
|
14
|
+
// → stores a float as a uint32 quantized to N bits over [min, max].
|
|
15
|
+
// → protobuf encodes the uint32 as a varint: values ≤ 2^14-1 cost 2 bytes,
|
|
16
|
+
// values ≤ 2^21-1 cost 3 bytes; the generated partial class adds a
|
|
17
|
+
// float {Name}Quantized accessor that encodes/decodes transparently.
|
|
18
|
+
// [(decentraland.common.quantized_power) = { max: F, pow: F, bits: N }]
|
|
19
|
+
// → stores a signed float over [-max, max] as an (N-1)-bit linear unorm
|
|
20
|
+
// magnitude (high bits) plus a sign (LSB), reconstructed as sign·max·u^pow.
|
|
21
|
+
// Zero is exact, and pow>1 buys fine resolution near zero at the cost of
|
|
22
|
+
// coarse near ±max. Putting the sign in the LSB keeps a small |value| of
|
|
23
|
+
// either direction in one varint byte. Same generated float {Name}Quantized
|
|
24
|
+
// accessor as the linear option.
|
|
25
|
+
// [(decentraland.common.bit_packed) = { bits: N }]
|
|
26
|
+
// → documents that this uint32 uses at most N bits; protobuf encodes it
|
|
27
|
+
// as a varint (same savings, no generated accessor needed).
|
|
28
|
+
// (no annotation)
|
|
29
|
+
// → standard protobuf encoding (bool/double/etc. at natural width).
|
|
30
|
+
//
|
|
31
|
+
// Varint byte costs at worst-case (all bits set):
|
|
32
|
+
// ≤ 7 bits → 1 byte (max 127)
|
|
33
|
+
// ≤ 14 bits → 2 bytes (max 16 383)
|
|
34
|
+
// ≤ 21 bits → 3 bytes (max 2 097 151)
|
|
35
|
+
// Proto3 omits fields equal to their default value (0), so average cost is lower.
|
|
36
|
+
|
|
37
|
+
// ---------------------------------------------------------------------------
|
|
38
|
+
// PositionDelta — Δ position relative to last acknowledged full snapshot.
|
|
39
|
+
//
|
|
40
|
+
// Sent every client tick (~10 Hz) on Channel 1.
|
|
41
|
+
//
|
|
42
|
+
// Field | Type | Range | Q bits | Wire worst-case
|
|
43
|
+
// ------------|--------|----------------|--------|-----------------------
|
|
44
|
+
// dx | uint32 | [-100, 100] | 16 | tag 1B + varint 3B = 4B
|
|
45
|
+
// dy | uint32 | [-100, 100] | 16 | tag 1B + varint 3B = 4B
|
|
46
|
+
// dz | uint32 | [-100, 100] | 16 | tag 1B + varint 3B = 4B
|
|
47
|
+
// entity_id | uint32 | [0, 1 048 575] | 20 | tag 1B + varint 3B = 4B
|
|
48
|
+
// sequence | uint32 | [0, 4 095] | 12 | tag 1B + varint 2B = 3B
|
|
49
|
+
// ---------------------------------------------------------------------------
|
|
50
|
+
// Worst-case: 19 B (vs. 20 B raw: 3×float + 2×uint32)
|
|
51
|
+
// Step: dx/dy/dz ≈ 0.003 units
|
|
52
|
+
// ---------------------------------------------------------------------------
|
|
53
|
+
message PositionDelta {
|
|
54
|
+
uint32 dx = 1 [(decentraland.common.quantized) = { min: -100.0, max: 100.0, bits: 16 }];
|
|
55
|
+
uint32 dy = 2 [(decentraland.common.quantized) = { min: -100.0, max: 100.0, bits: 16 }];
|
|
56
|
+
uint32 dz = 3 [(decentraland.common.quantized) = { min: -100.0, max: 100.0, bits: 16 }];
|
|
57
|
+
uint32 entity_id = 4 [(decentraland.common.bit_packed) = { bits: 20 }];
|
|
58
|
+
uint32 sequence = 5 [(decentraland.common.bit_packed) = { bits: 12 }];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// ---------------------------------------------------------------------------
|
|
62
|
+
// PlayerInput — client input snapshot for server-side reconciliation.
|
|
63
|
+
//
|
|
64
|
+
// Sent every client frame (~30 Hz) on Channel 1.
|
|
65
|
+
//
|
|
66
|
+
// Field | Type | Range | Q bits | Wire worst-case
|
|
67
|
+
// ------------|--------|----------------|--------|-----------------------
|
|
68
|
+
// move_x | uint32 | [-1, 1] | 8 | tag 1B + varint 2B = 3B
|
|
69
|
+
// move_z | uint32 | [-1, 1] | 8 | tag 1B + varint 2B = 3B
|
|
70
|
+
// yaw | uint32 | [-180, 180] | 12 | tag 1B + varint 2B = 3B
|
|
71
|
+
// buttons | uint32 | bitmask | 8 | tag 1B + varint 2B = 3B
|
|
72
|
+
// sequence | uint32 | [0, 4 095] | 12 | tag 1B + varint 2B = 3B
|
|
73
|
+
// ---------------------------------------------------------------------------
|
|
74
|
+
// Worst-case: 15 B (vs. 20 B raw: 3×float + 2×uint32)
|
|
75
|
+
// Step: move_x/move_z ≈ 0.008; yaw ≈ 0.088°
|
|
76
|
+
// ---------------------------------------------------------------------------
|
|
77
|
+
message PlayerInput {
|
|
78
|
+
// Normalised joystick axes in [-1, 1].
|
|
79
|
+
uint32 move_x = 1 [(decentraland.common.quantized) = { min: -1.0, max: 1.0, bits: 8 }];
|
|
80
|
+
uint32 move_z = 2 [(decentraland.common.quantized) = { min: -1.0, max: 1.0, bits: 8 }];
|
|
81
|
+
|
|
82
|
+
// Horizontal look direction in degrees.
|
|
83
|
+
uint32 yaw = 3 [(decentraland.common.quantized) = { min: -180.0, max: 180.0, bits: 12 }];
|
|
84
|
+
|
|
85
|
+
// Bitmask of active buttons (see ButtonFlags below).
|
|
86
|
+
uint32 buttons = 4 [(decentraland.common.bit_packed) = { bits: 8 }];
|
|
87
|
+
|
|
88
|
+
// Rolling input sequence number used by the server for reconciliation.
|
|
89
|
+
uint32 sequence = 5 [(decentraland.common.bit_packed) = { bits: 12 }];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ---------------------------------------------------------------------------
|
|
93
|
+
// VelocityState — per-axis velocity, demonstrating the power-law quantizer.
|
|
94
|
+
//
|
|
95
|
+
// Velocity needs an exact zero (a stopped avatar must read 0, not a quantization
|
|
96
|
+
// residual, or it drifts) and fine resolution at locomotion speeds, but only
|
|
97
|
+
// coarse resolution near the ±50 m/s extremes. The linear quantizer can give
|
|
98
|
+
// none of these from 8 bits: its codes straddle zero (±0.196) and spend uniform
|
|
99
|
+
// resolution on speeds that never occur. quantized_power solves all three.
|
|
100
|
+
//
|
|
101
|
+
// Field | Type | Range | pow | bits | Wire worst-case
|
|
102
|
+
// -------|--------|------------|-----|------|-----------------------
|
|
103
|
+
// vx | uint32 | [-50, 50] | 2 | 8 | tag 1B + varint 1–2B = 2–3B
|
|
104
|
+
// vy | uint32 | [-50, 50] | 2 | 8 | tag 1B + varint 1–2B = 2–3B
|
|
105
|
+
// vz | uint32 | [-50, 50] | 2 | 8 | tag 1B + varint 1–2B = 2–3B
|
|
106
|
+
// ---------------------------------------------------------------------------
|
|
107
|
+
// Step: ≈ 0.003 m/s near zero, ≈ 0.78 m/s near ±50 (vs. 0.392 uniform linear)
|
|
108
|
+
// Wire: sign in the LSB, so |v| ≲ 12.5 m/s (magnitude code ≤ 63) costs a single
|
|
109
|
+
// varint byte regardless of direction; only faster axes spill to 2 bytes.
|
|
110
|
+
// ---------------------------------------------------------------------------
|
|
111
|
+
message VelocityState {
|
|
112
|
+
uint32 vx = 1 [(decentraland.common.quantized_power) = { max: 50.0, pow: 2.0, bits: 8 }];
|
|
113
|
+
uint32 vy = 2 [(decentraland.common.quantized_power) = { max: 50.0, pow: 2.0, bits: 8 }];
|
|
114
|
+
uint32 vz = 3 [(decentraland.common.quantized_power) = { max: 50.0, pow: 2.0, bits: 8 }];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Bitmask values for PlayerInput.buttons.
|
|
118
|
+
enum ButtonFlags {
|
|
119
|
+
BF_NONE = 0;
|
|
120
|
+
BF_JUMP = 1; // bit 0
|
|
121
|
+
BF_SPRINT = 2; // bit 1
|
|
122
|
+
BF_INTERACT = 4; // bit 2
|
|
123
|
+
BF_EMOTE = 8; // bit 3
|
|
124
|
+
BF_CROUCH = 16; // bit 4
|
|
125
|
+
// bits 5-7 reserved
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// ---------------------------------------------------------------------------
|
|
129
|
+
// AvatarStateSnapshot — full authoritative state, sent on Channel 0 (reliable)
|
|
130
|
+
// or on resync requests. Demonstrates wider ranges and mixed encodings.
|
|
131
|
+
//
|
|
132
|
+
// Field | Type | Range | Q bits | Wire worst-case
|
|
133
|
+
// -----------------|--------|------------------|--------|-----------------------
|
|
134
|
+
// x | uint32 | [-4096, 4096] | 16 | tag 1B + varint 3B = 4B
|
|
135
|
+
// y | uint32 | [-256, 256] | 14 | tag 1B + varint 2B = 3B
|
|
136
|
+
// z | uint32 | [-4096, 4096] | 16 | tag 1B + varint 3B = 4B
|
|
137
|
+
// pitch | uint32 | [-90, 90] | 10 | tag 1B + varint 2B = 3B
|
|
138
|
+
// yaw | uint32 | [-180, 180] | 12 | tag 1B + varint 2B = 3B
|
|
139
|
+
// entity_id | uint32 | [0, 1 048 575] | 20 | tag 1B + varint 3B = 4B
|
|
140
|
+
// animation_state | uint32 | [0, 63] | 6 | tag 1B + varint 1B = 2B
|
|
141
|
+
// is_grounded | bool | — | — | tag 1B + varint 1B = 2B
|
|
142
|
+
// timestamp | double | — | — | tag 1B + fixed64 8B = 9B
|
|
143
|
+
// ---------------------------------------------------------------------------
|
|
144
|
+
// Worst-case: 34 B (vs. 45 B raw: 5×float + 2×uint32 + bool + double)
|
|
145
|
+
// Step: x/z ≈ 0.125 units; y ≈ 0.031 units; pitch ≈ 0.176°; yaw ≈ 0.088°
|
|
146
|
+
// ---------------------------------------------------------------------------
|
|
147
|
+
message AvatarStateSnapshot {
|
|
148
|
+
// World-space position.
|
|
149
|
+
uint32 x = 1 [(decentraland.common.quantized) = { min: -4096.0, max: 4096.0, bits: 16 }];
|
|
150
|
+
uint32 y = 2 [(decentraland.common.quantized) = { min: -256.0, max: 256.0, bits: 14 }];
|
|
151
|
+
uint32 z = 3 [(decentraland.common.quantized) = { min: -4096.0, max: 4096.0, bits: 16 }];
|
|
152
|
+
|
|
153
|
+
// View angles.
|
|
154
|
+
uint32 pitch = 4 [(decentraland.common.quantized) = { min: -90.0, max: 90.0, bits: 10 }];
|
|
155
|
+
uint32 yaw = 5 [(decentraland.common.quantized) = { min: -180.0, max: 180.0, bits: 12 }];
|
|
156
|
+
|
|
157
|
+
// Identity and animation state.
|
|
158
|
+
uint32 entity_id = 6 [(decentraland.common.bit_packed) = { bits: 20 }];
|
|
159
|
+
uint32 animation_state = 7 [(decentraland.common.bit_packed) = { bits: 6 }];
|
|
160
|
+
|
|
161
|
+
// Un-annotated fields — encoded at their natural width.
|
|
162
|
+
bool is_grounded = 8;
|
|
163
|
+
double timestamp = 9; // server epoch milliseconds
|
|
164
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.common;
|
|
3
|
+
import "decentraland/common/vectors.proto";
|
|
4
|
+
|
|
5
|
+
enum TextureWrapMode {
|
|
6
|
+
TWM_REPEAT = 0;
|
|
7
|
+
TWM_CLAMP = 1;
|
|
8
|
+
TWM_MIRROR = 2;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
enum TextureFilterMode {
|
|
12
|
+
TFM_POINT = 0;
|
|
13
|
+
TFM_BILINEAR = 1;
|
|
14
|
+
TFM_TRILINEAR = 2;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message Texture {
|
|
18
|
+
string src = 1;
|
|
19
|
+
optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp
|
|
20
|
+
optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
|
|
21
|
+
|
|
22
|
+
// Final uv = offset + (input_uv * tiling)
|
|
23
|
+
optional Vector2 offset = 4; // default = Vector2.Zero; Offset for texture positioning, only works for the texture property in PbrMaterial or UnlitMaterial.
|
|
24
|
+
optional Vector2 tiling = 5; // default = Vector2.One; Tiling multiplier for texture repetition, only works for the texture property in PbrMaterial or UnlitMaterial.
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message AvatarTexture {
|
|
28
|
+
string user_id = 1;
|
|
29
|
+
optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp
|
|
30
|
+
optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message VideoTexture {
|
|
34
|
+
uint32 video_player_entity = 1;
|
|
35
|
+
optional TextureWrapMode wrap_mode = 2; // default = TextureWrapMode.Clamp
|
|
36
|
+
optional TextureFilterMode filter_mode = 3; // default = FilterMode.Bilinear
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message TextureUnion {
|
|
40
|
+
oneof tex {
|
|
41
|
+
Texture texture = 1; // default = null
|
|
42
|
+
AvatarTexture avatar_texture = 2; // default = null
|
|
43
|
+
VideoTexture video_texture = 3; // default = null
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.common;
|
|
3
|
+
|
|
4
|
+
message Position {
|
|
5
|
+
float x = 1;
|
|
6
|
+
float y = 2;
|
|
7
|
+
float z = 3;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message Vector3 {
|
|
11
|
+
float x = 1;
|
|
12
|
+
float y = 2;
|
|
13
|
+
float z = 3;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message Vector2 {
|
|
17
|
+
float x = 1;
|
|
18
|
+
float y = 2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message Quaternion {
|
|
22
|
+
float x = 1;
|
|
23
|
+
float y = 2;
|
|
24
|
+
float z = 3;
|
|
25
|
+
float w = 4;
|
|
26
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.kernel.apis;
|
|
3
|
+
|
|
4
|
+
enum VideoTrackSourceType {
|
|
5
|
+
VTST_UNKNOWN = 0;
|
|
6
|
+
VTST_CAMERA = 1;
|
|
7
|
+
VTST_SCREEN_SHARE = 2;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message VideoTracksActiveStreamsRequest {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message VideoTracksActiveStreamsResponse {
|
|
14
|
+
repeated VideoTracksActiveStreamsData streams = 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message VideoTracksActiveStreamsData {
|
|
18
|
+
string identity = 1;
|
|
19
|
+
string track_sid = 2;
|
|
20
|
+
VideoTrackSourceType source_type = 3;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message SubscribeToTopicRequest {
|
|
24
|
+
string topic = 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message SubscribeToTopicResponse {}
|
|
28
|
+
|
|
29
|
+
message UnsubscribeFromTopicRequest {
|
|
30
|
+
string topic = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message UnsubscribeFromTopicResponse {}
|
|
34
|
+
|
|
35
|
+
message PublishDataRequest {
|
|
36
|
+
string topic = 1;
|
|
37
|
+
string data = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message PublishDataResponse {}
|
|
41
|
+
|
|
42
|
+
message ConsumeMessagesRequest {
|
|
43
|
+
string topic = 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message ConsumeMessages {
|
|
47
|
+
string sender = 1;
|
|
48
|
+
string data = 2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message ConsumeMessagesResponse {
|
|
52
|
+
repeated ConsumeMessages messages = 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
service CommsApiService {
|
|
56
|
+
rpc GetActiveVideoStreams(VideoTracksActiveStreamsRequest) returns (VideoTracksActiveStreamsResponse) {}
|
|
57
|
+
rpc SubscribeToTopic(SubscribeToTopicRequest) returns (SubscribeToTopicResponse) {}
|
|
58
|
+
rpc UnsubscribeFromTopic(UnsubscribeFromTopicRequest) returns (UnsubscribeFromTopicResponse) {}
|
|
59
|
+
rpc PublishData(PublishDataRequest) returns (PublishDataResponse) {}
|
|
60
|
+
rpc ConsumeMessages(ConsumeMessagesRequest) returns (ConsumeMessagesResponse) {}
|
|
61
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.kernel.apis;
|
|
3
|
+
|
|
4
|
+
message RealSendRequest {
|
|
5
|
+
string message = 1;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
message RealSendResponse {}
|
|
9
|
+
|
|
10
|
+
message SendBinaryRequest {
|
|
11
|
+
repeated bytes data = 1; // @deprecated old broadcasted messages. Use peerData with an empty array for broadcasting.
|
|
12
|
+
repeated PeerMessageData peer_data = 2; // peer-to-peer messages
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message PeerMessageData {
|
|
16
|
+
repeated bytes data = 1;
|
|
17
|
+
repeated string address = 2; // if address is empty, its a broadcast message
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message SendBinaryResponse {
|
|
21
|
+
repeated bytes data = 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
service CommunicationsControllerService {
|
|
25
|
+
// @deprecated - This API should use a bidirectional binary stream in sdk7
|
|
26
|
+
// https://github.com/decentraland/sdk/issues/582
|
|
27
|
+
rpc Send(RealSendRequest) returns (RealSendResponse) {}
|
|
28
|
+
rpc SendBinary(SendBinaryRequest) returns (SendBinaryResponse) {}
|
|
29
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
|
+
package decentraland.kernel.apis;
|
|
2
3
|
|
|
3
4
|
message DevToolsBody {
|
|
4
5
|
string type = 1;
|
|
@@ -7,6 +8,8 @@ message DevToolsBody {
|
|
|
7
8
|
|
|
8
9
|
message EventResponse {}
|
|
9
10
|
|
|
11
|
+
// @deprecated
|
|
10
12
|
service DevToolsService {
|
|
13
|
+
// @deprecated
|
|
11
14
|
rpc Event(DevToolsBody) returns (EventResponse) {}
|
|
12
15
|
}
|