@dcl/protocol 1.0.0-4949759723.commit-9a568b1 → 1.0.0-4959770633.commit-e249449
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 +3 -3
- package/out-js/decentraland/bff/authentication_service.gen.d.ts +46 -184
- package/out-js/decentraland/bff/authentication_service.gen.js +115 -80
- package/out-js/decentraland/bff/authentication_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/comms_director_service.gen.d.ts +28 -228
- package/out-js/decentraland/bff/comms_director_service.gen.js +76 -54
- package/out-js/decentraland/bff/comms_director_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/comms_service.gen.d.ts +30 -272
- package/out-js/decentraland/bff/comms_service.gen.js +52 -38
- package/out-js/decentraland/bff/comms_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/http_endpoints.gen.d.ts +67 -828
- package/out-js/decentraland/bff/http_endpoints.gen.js +237 -161
- package/out-js/decentraland/bff/http_endpoints.gen.js.map +1 -1
- package/out-js/decentraland/bff/topics_service.gen.d.ts +46 -208
- package/out-js/decentraland/bff/topics_service.gen.js +116 -81
- package/out-js/decentraland/bff/topics_service.gen.js.map +1 -1
- package/out-js/decentraland/common/border_rect.gen.d.ts +16 -56
- package/out-js/decentraland/common/border_rect.gen.js +44 -30
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -1
- package/out-js/decentraland/common/colors.gen.d.ts +16 -52
- package/out-js/decentraland/common/colors.gen.js +44 -30
- package/out-js/decentraland/common/colors.gen.js.map +1 -1
- package/out-js/decentraland/common/content_mapping.gen.d.ts +8 -20
- package/out-js/decentraland/common/content_mapping.gen.js +22 -15
- package/out-js/decentraland/common/content_mapping.gen.js.map +1 -1
- package/out-js/decentraland/common/sdk/user_data.gen.d.ts +24 -176
- package/out-js/decentraland/common/sdk/user_data.gen.js +76 -55
- package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -1
- package/out-js/decentraland/common/texture.gen.d.ts +32 -250
- package/out-js/decentraland/common/texture.gen.js +103 -75
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/common/vectors.gen.d.ts +38 -68
- package/out-js/decentraland/common/vectors.gen.js +161 -46
- package/out-js/decentraland/common/vectors.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +18 -48
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +46 -32
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +18 -56
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js +46 -32
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +157 -4088
- package/out-js/decentraland/kernel/apis/engine_api.gen.js +483 -1650
- package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +150 -690
- package/out-js/decentraland/kernel/apis/environment_api.gen.js +400 -281
- package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +106 -440
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +278 -194
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +70 -518
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +192 -136
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +36 -128
- package/out-js/decentraland/kernel/apis/permissions.gen.js +92 -64
- package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/players.gen.d.ts +54 -476
- package/out-js/decentraland/kernel/apis/players.gen.js +143 -101
- package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +80 -308
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +211 -148
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +102 -568
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +256 -179
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +80 -404
- package/out-js/decentraland/kernel/apis/runtime.gen.js +211 -148
- package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/scene.gen.d.ts +18 -132
- package/out-js/decentraland/kernel/apis/scene.gen.js +46 -32
- package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +42 -284
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +121 -86
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +26 -128
- package/out-js/decentraland/kernel/apis/social_controller.gen.js +73 -52
- package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/testing.gen.d.ts +78 -408
- package/out-js/decentraland/kernel/apis/testing.gen.js +219 -156
- package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +18 -48
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js +46 -32
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +36 -352
- package/out-js/decentraland/kernel/apis/user_identity.gen.js +92 -64
- package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +64 -550
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +220 -161
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +80 -560
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +280 -204
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +112 -1002
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +372 -270
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
- package/out-js/decentraland/realm/about.gen.d.ts +64 -534
- package/out-js/decentraland/realm/about.gen.js +214 -157
- package/out-js/decentraland/realm/about.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/animator.gen.d.ts +16 -136
- package/out-js/decentraland/sdk/components/animator.gen.js +49 -35
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +8 -32
- package/out-js/decentraland/sdk/components/audio_source.gen.js +22 -15
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +8 -24
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +22 -15
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +8 -20
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +22 -15
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +8 -48
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +22 -15
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +8 -128
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +22 -15
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/billboard.gen.js +22 -15
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +22 -15
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +8 -44
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +22 -15
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +8 -136
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +22 -15
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +8 -24
- package/out-js/decentraland/sdk/components/engine_info.gen.js +22 -15
- package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +8 -24
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +22 -15
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +22 -15
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.d.ts +24 -3368
- package/out-js/decentraland/sdk/components/material.gen.js +80 -58
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +40 -176
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +130 -95
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +40 -220
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +130 -95
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +8 -48
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +22 -15
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +24 -184
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +76 -55
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +8 -212
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +22 -15
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +22 -15
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +8 -248
- package/out-js/decentraland/sdk/components/raycast.gen.js +30 -21
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +8 -352
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +22 -15
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +8 -174
- package/out-js/decentraland/sdk/components/text_shape.gen.js +22 -15
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +8 -314
- package/out-js/decentraland/sdk/components/ui_background.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +8 -78
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +8 -104
- package/out-js/decentraland/sdk/components/ui_input.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +8 -62
- package/out-js/decentraland/sdk/components/ui_text.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +8 -216
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/video_player.gen.d.ts +8 -36
- package/out-js/decentraland/sdk/components/video_player.gen.js +22 -15
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +22 -15
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1004 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7829 -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 +232 -7630
- package/out-js/decentraland/social/friendships/friendships.gen.js +891 -686
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -1
- package/out-js/google/protobuf/descriptor.gen.d.ts +200 -87148
- package/out-js/google/protobuf/descriptor.gen.js +720 -545
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -1
- package/out-js/google/protobuf/empty.gen.d.ts +8 -8
- package/out-js/google/protobuf/empty.gen.js +22 -15
- package/out-js/google/protobuf/empty.gen.js.map +1 -1
- package/out-ts/decentraland/bff/authentication_service.gen.ts +72 -70
- package/out-ts/decentraland/bff/comms_director_service.gen.ts +46 -45
- package/out-ts/decentraland/bff/comms_service.gen.ts +28 -28
- package/out-ts/decentraland/bff/http_endpoints.gen.ts +159 -117
- package/out-ts/decentraland/bff/topics_service.gen.ts +80 -70
- package/out-ts/decentraland/common/border_rect.gen.ts +28 -28
- package/out-ts/decentraland/common/colors.gen.ts +28 -28
- package/out-ts/decentraland/common/content_mapping.gen.ts +14 -14
- package/out-ts/decentraland/common/sdk/user_data.gen.ts +42 -42
- package/out-ts/decentraland/common/texture.gen.ts +56 -56
- package/out-ts/decentraland/common/vectors.gen.ts +146 -42
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +28 -28
- package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +28 -28
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +291 -1786
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +271 -238
- package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +189 -168
- package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +112 -112
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +64 -56
- package/out-ts/decentraland/kernel/apis/players.gen.ts +96 -84
- package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +129 -126
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +156 -154
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +134 -126
- package/out-ts/decentraland/kernel/apis/scene.gen.ts +28 -28
- package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +79 -70
- package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +44 -42
- package/out-ts/decentraland/kernel/apis/testing.gen.ts +139 -126
- package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +30 -28
- package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +60 -56
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +126 -121
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +166 -158
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +225 -208
- package/out-ts/decentraland/realm/about.gen.ts +137 -115
- package/out-ts/decentraland/sdk/components/animator.gen.ts +28 -28
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/engine_info.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +18 -14
- package/out-ts/decentraland/sdk/components/material.gen.ts +52 -45
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +82 -70
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +84 -70
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +44 -42
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +16 -14
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +22 -20
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +16 -14
- package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8942 -0
- package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2884 -0
- package/out-ts/decentraland/social/friendships/friendships.gen.ts +447 -419
- package/out-ts/google/protobuf/descriptor.gen.ts +375 -350
- package/out-ts/google/protobuf/empty.gen.ts +14 -14
- package/package.json +3 -3
- package/proto/decentraland/bff/http_endpoints.proto +1 -0
- package/proto/decentraland/common/vectors.proto +7 -0
- package/proto/decentraland/kernel/apis/engine_api.proto +2 -110
- package/proto/decentraland/sdk/ecs6/components_ecs6.proto +677 -0
- package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
|
@@ -37,35 +37,37 @@ exports.voice_VoiceCodecToJSON = voice_VoiceCodecToJSON;
|
|
|
37
37
|
function createBasePacket() {
|
|
38
38
|
return { message: undefined };
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
var Packet;
|
|
41
|
+
(function (Packet) {
|
|
42
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
42
43
|
var _a;
|
|
43
44
|
switch ((_a = message.message) === null || _a === void 0 ? void 0 : _a.$case) {
|
|
44
45
|
case "position":
|
|
45
|
-
|
|
46
|
+
Position.encode(message.message.position, writer.uint32(10).fork()).ldelim();
|
|
46
47
|
break;
|
|
47
48
|
case "profileVersion":
|
|
48
|
-
|
|
49
|
+
AnnounceProfileVersion.encode(message.message.profileVersion, writer.uint32(18).fork()).ldelim();
|
|
49
50
|
break;
|
|
50
51
|
case "profileRequest":
|
|
51
|
-
|
|
52
|
+
ProfileRequest.encode(message.message.profileRequest, writer.uint32(26).fork()).ldelim();
|
|
52
53
|
break;
|
|
53
54
|
case "profileResponse":
|
|
54
|
-
|
|
55
|
+
ProfileResponse.encode(message.message.profileResponse, writer.uint32(34).fork()).ldelim();
|
|
55
56
|
break;
|
|
56
57
|
case "chat":
|
|
57
|
-
|
|
58
|
+
Chat.encode(message.message.chat, writer.uint32(42).fork()).ldelim();
|
|
58
59
|
break;
|
|
59
60
|
case "scene":
|
|
60
|
-
|
|
61
|
+
Scene.encode(message.message.scene, writer.uint32(50).fork()).ldelim();
|
|
61
62
|
break;
|
|
62
63
|
case "voice":
|
|
63
|
-
|
|
64
|
+
Voice.encode(message.message.voice, writer.uint32(58).fork()).ldelim();
|
|
64
65
|
break;
|
|
65
66
|
}
|
|
66
67
|
return writer;
|
|
67
|
-
}
|
|
68
|
-
|
|
68
|
+
}
|
|
69
|
+
Packet.encode = encode;
|
|
70
|
+
function decode(input, length) {
|
|
69
71
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
70
72
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
73
|
const message = createBasePacket();
|
|
@@ -76,7 +78,7 @@ exports.Packet = {
|
|
|
76
78
|
if (tag !== 10) {
|
|
77
79
|
break;
|
|
78
80
|
}
|
|
79
|
-
message.message = { $case: "position", position:
|
|
81
|
+
message.message = { $case: "position", position: Position.decode(reader, reader.uint32()) };
|
|
80
82
|
continue;
|
|
81
83
|
case 2:
|
|
82
84
|
if (tag !== 18) {
|
|
@@ -84,14 +86,14 @@ exports.Packet = {
|
|
|
84
86
|
}
|
|
85
87
|
message.message = {
|
|
86
88
|
$case: "profileVersion",
|
|
87
|
-
profileVersion:
|
|
89
|
+
profileVersion: AnnounceProfileVersion.decode(reader, reader.uint32()),
|
|
88
90
|
};
|
|
89
91
|
continue;
|
|
90
92
|
case 3:
|
|
91
93
|
if (tag !== 26) {
|
|
92
94
|
break;
|
|
93
95
|
}
|
|
94
|
-
message.message = { $case: "profileRequest", profileRequest:
|
|
96
|
+
message.message = { $case: "profileRequest", profileRequest: ProfileRequest.decode(reader, reader.uint32()) };
|
|
95
97
|
continue;
|
|
96
98
|
case 4:
|
|
97
99
|
if (tag !== 34) {
|
|
@@ -99,26 +101,26 @@ exports.Packet = {
|
|
|
99
101
|
}
|
|
100
102
|
message.message = {
|
|
101
103
|
$case: "profileResponse",
|
|
102
|
-
profileResponse:
|
|
104
|
+
profileResponse: ProfileResponse.decode(reader, reader.uint32()),
|
|
103
105
|
};
|
|
104
106
|
continue;
|
|
105
107
|
case 5:
|
|
106
108
|
if (tag !== 42) {
|
|
107
109
|
break;
|
|
108
110
|
}
|
|
109
|
-
message.message = { $case: "chat", chat:
|
|
111
|
+
message.message = { $case: "chat", chat: Chat.decode(reader, reader.uint32()) };
|
|
110
112
|
continue;
|
|
111
113
|
case 6:
|
|
112
114
|
if (tag !== 50) {
|
|
113
115
|
break;
|
|
114
116
|
}
|
|
115
|
-
message.message = { $case: "scene", scene:
|
|
117
|
+
message.message = { $case: "scene", scene: Scene.decode(reader, reader.uint32()) };
|
|
116
118
|
continue;
|
|
117
119
|
case 7:
|
|
118
120
|
if (tag !== 58) {
|
|
119
121
|
break;
|
|
120
122
|
}
|
|
121
|
-
message.message = { $case: "voice", voice:
|
|
123
|
+
message.message = { $case: "voice", voice: Voice.decode(reader, reader.uint32()) };
|
|
122
124
|
continue;
|
|
123
125
|
}
|
|
124
126
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -127,65 +129,72 @@ exports.Packet = {
|
|
|
127
129
|
reader.skipType(tag & 7);
|
|
128
130
|
}
|
|
129
131
|
return message;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
+
}
|
|
133
|
+
Packet.decode = decode;
|
|
134
|
+
function fromJSON(object) {
|
|
132
135
|
return {
|
|
133
136
|
message: isSet(object.position)
|
|
134
|
-
? { $case: "position", position:
|
|
137
|
+
? { $case: "position", position: Position.fromJSON(object.position) }
|
|
135
138
|
: isSet(object.profileVersion)
|
|
136
|
-
? { $case: "profileVersion", profileVersion:
|
|
139
|
+
? { $case: "profileVersion", profileVersion: AnnounceProfileVersion.fromJSON(object.profileVersion) }
|
|
137
140
|
: isSet(object.profileRequest)
|
|
138
|
-
? { $case: "profileRequest", profileRequest:
|
|
141
|
+
? { $case: "profileRequest", profileRequest: ProfileRequest.fromJSON(object.profileRequest) }
|
|
139
142
|
: isSet(object.profileResponse)
|
|
140
|
-
? { $case: "profileResponse", profileResponse:
|
|
143
|
+
? { $case: "profileResponse", profileResponse: ProfileResponse.fromJSON(object.profileResponse) }
|
|
141
144
|
: isSet(object.chat)
|
|
142
|
-
? { $case: "chat", chat:
|
|
145
|
+
? { $case: "chat", chat: Chat.fromJSON(object.chat) }
|
|
143
146
|
: isSet(object.scene)
|
|
144
|
-
? { $case: "scene", scene:
|
|
147
|
+
? { $case: "scene", scene: Scene.fromJSON(object.scene) }
|
|
145
148
|
: isSet(object.voice)
|
|
146
|
-
? { $case: "voice", voice:
|
|
149
|
+
? { $case: "voice", voice: Voice.fromJSON(object.voice) }
|
|
147
150
|
: undefined,
|
|
148
151
|
};
|
|
149
|
-
}
|
|
150
|
-
|
|
152
|
+
}
|
|
153
|
+
Packet.fromJSON = fromJSON;
|
|
154
|
+
function toJSON(message) {
|
|
151
155
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
152
156
|
const obj = {};
|
|
153
157
|
((_a = message.message) === null || _a === void 0 ? void 0 : _a.$case) === "position" &&
|
|
154
|
-
(obj.position = ((_b = message.message) === null || _b === void 0 ? void 0 : _b.position) ?
|
|
155
|
-
((_d = message.message) === null || _d === void 0 ? void 0 : _d.$case) === "profileVersion" &&
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
158
|
+
(obj.position = ((_b = message.message) === null || _b === void 0 ? void 0 : _b.position) ? Position.toJSON((_c = message.message) === null || _c === void 0 ? void 0 : _c.position) : undefined);
|
|
159
|
+
((_d = message.message) === null || _d === void 0 ? void 0 : _d.$case) === "profileVersion" &&
|
|
160
|
+
(obj.profileVersion = ((_e = message.message) === null || _e === void 0 ? void 0 : _e.profileVersion)
|
|
161
|
+
? AnnounceProfileVersion.toJSON((_f = message.message) === null || _f === void 0 ? void 0 : _f.profileVersion)
|
|
162
|
+
: undefined);
|
|
163
|
+
((_g = message.message) === null || _g === void 0 ? void 0 : _g.$case) === "profileRequest" &&
|
|
164
|
+
(obj.profileRequest = ((_h = message.message) === null || _h === void 0 ? void 0 : _h.profileRequest)
|
|
165
|
+
? ProfileRequest.toJSON((_j = message.message) === null || _j === void 0 ? void 0 : _j.profileRequest)
|
|
166
|
+
: undefined);
|
|
167
|
+
((_k = message.message) === null || _k === void 0 ? void 0 : _k.$case) === "profileResponse" &&
|
|
168
|
+
(obj.profileResponse = ((_l = message.message) === null || _l === void 0 ? void 0 : _l.profileResponse)
|
|
169
|
+
? ProfileResponse.toJSON((_m = message.message) === null || _m === void 0 ? void 0 : _m.profileResponse)
|
|
170
|
+
: undefined);
|
|
164
171
|
((_o = message.message) === null || _o === void 0 ? void 0 : _o.$case) === "chat" &&
|
|
165
|
-
(obj.chat = ((_p = message.message) === null || _p === void 0 ? void 0 : _p.chat) ?
|
|
172
|
+
(obj.chat = ((_p = message.message) === null || _p === void 0 ? void 0 : _p.chat) ? Chat.toJSON((_q = message.message) === null || _q === void 0 ? void 0 : _q.chat) : undefined);
|
|
166
173
|
((_r = message.message) === null || _r === void 0 ? void 0 : _r.$case) === "scene" &&
|
|
167
|
-
(obj.scene = ((_s = message.message) === null || _s === void 0 ? void 0 : _s.scene) ?
|
|
174
|
+
(obj.scene = ((_s = message.message) === null || _s === void 0 ? void 0 : _s.scene) ? Scene.toJSON((_t = message.message) === null || _t === void 0 ? void 0 : _t.scene) : undefined);
|
|
168
175
|
((_u = message.message) === null || _u === void 0 ? void 0 : _u.$case) === "voice" &&
|
|
169
|
-
(obj.voice = ((_v = message.message) === null || _v === void 0 ? void 0 : _v.voice) ?
|
|
176
|
+
(obj.voice = ((_v = message.message) === null || _v === void 0 ? void 0 : _v.voice) ? Voice.toJSON((_w = message.message) === null || _w === void 0 ? void 0 : _w.voice) : undefined);
|
|
170
177
|
return obj;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
178
|
+
}
|
|
179
|
+
Packet.toJSON = toJSON;
|
|
180
|
+
function create(base) {
|
|
181
|
+
return Packet.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
182
|
+
}
|
|
183
|
+
Packet.create = create;
|
|
184
|
+
function fromPartial(object) {
|
|
176
185
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
177
186
|
const message = createBasePacket();
|
|
178
187
|
if (((_a = object.message) === null || _a === void 0 ? void 0 : _a.$case) === "position" &&
|
|
179
188
|
((_b = object.message) === null || _b === void 0 ? void 0 : _b.position) !== undefined &&
|
|
180
189
|
((_c = object.message) === null || _c === void 0 ? void 0 : _c.position) !== null) {
|
|
181
|
-
message.message = { $case: "position", position:
|
|
190
|
+
message.message = { $case: "position", position: Position.fromPartial(object.message.position) };
|
|
182
191
|
}
|
|
183
192
|
if (((_d = object.message) === null || _d === void 0 ? void 0 : _d.$case) === "profileVersion" &&
|
|
184
193
|
((_e = object.message) === null || _e === void 0 ? void 0 : _e.profileVersion) !== undefined &&
|
|
185
194
|
((_f = object.message) === null || _f === void 0 ? void 0 : _f.profileVersion) !== null) {
|
|
186
195
|
message.message = {
|
|
187
196
|
$case: "profileVersion",
|
|
188
|
-
profileVersion:
|
|
197
|
+
profileVersion: AnnounceProfileVersion.fromPartial(object.message.profileVersion),
|
|
189
198
|
};
|
|
190
199
|
}
|
|
191
200
|
if (((_g = object.message) === null || _g === void 0 ? void 0 : _g.$case) === "profileRequest" &&
|
|
@@ -193,7 +202,7 @@ exports.Packet = {
|
|
|
193
202
|
((_j = object.message) === null || _j === void 0 ? void 0 : _j.profileRequest) !== null) {
|
|
194
203
|
message.message = {
|
|
195
204
|
$case: "profileRequest",
|
|
196
|
-
profileRequest:
|
|
205
|
+
profileRequest: ProfileRequest.fromPartial(object.message.profileRequest),
|
|
197
206
|
};
|
|
198
207
|
}
|
|
199
208
|
if (((_k = object.message) === null || _k === void 0 ? void 0 : _k.$case) === "profileResponse" &&
|
|
@@ -201,26 +210,28 @@ exports.Packet = {
|
|
|
201
210
|
((_m = object.message) === null || _m === void 0 ? void 0 : _m.profileResponse) !== null) {
|
|
202
211
|
message.message = {
|
|
203
212
|
$case: "profileResponse",
|
|
204
|
-
profileResponse:
|
|
213
|
+
profileResponse: ProfileResponse.fromPartial(object.message.profileResponse),
|
|
205
214
|
};
|
|
206
215
|
}
|
|
207
216
|
if (((_o = object.message) === null || _o === void 0 ? void 0 : _o.$case) === "chat" && ((_p = object.message) === null || _p === void 0 ? void 0 : _p.chat) !== undefined && ((_q = object.message) === null || _q === void 0 ? void 0 : _q.chat) !== null) {
|
|
208
|
-
message.message = { $case: "chat", chat:
|
|
217
|
+
message.message = { $case: "chat", chat: Chat.fromPartial(object.message.chat) };
|
|
209
218
|
}
|
|
210
219
|
if (((_r = object.message) === null || _r === void 0 ? void 0 : _r.$case) === "scene" && ((_s = object.message) === null || _s === void 0 ? void 0 : _s.scene) !== undefined && ((_t = object.message) === null || _t === void 0 ? void 0 : _t.scene) !== null) {
|
|
211
|
-
message.message = { $case: "scene", scene:
|
|
220
|
+
message.message = { $case: "scene", scene: Scene.fromPartial(object.message.scene) };
|
|
212
221
|
}
|
|
213
222
|
if (((_u = object.message) === null || _u === void 0 ? void 0 : _u.$case) === "voice" && ((_v = object.message) === null || _v === void 0 ? void 0 : _v.voice) !== undefined && ((_w = object.message) === null || _w === void 0 ? void 0 : _w.voice) !== null) {
|
|
214
|
-
message.message = { $case: "voice", voice:
|
|
223
|
+
message.message = { $case: "voice", voice: Voice.fromPartial(object.message.voice) };
|
|
215
224
|
}
|
|
216
225
|
return message;
|
|
217
|
-
}
|
|
218
|
-
|
|
226
|
+
}
|
|
227
|
+
Packet.fromPartial = fromPartial;
|
|
228
|
+
})(Packet = exports.Packet || (exports.Packet = {}));
|
|
219
229
|
function createBasePosition() {
|
|
220
230
|
return { index: 0, positionX: 0, positionY: 0, positionZ: 0, rotationX: 0, rotationY: 0, rotationZ: 0, rotationW: 0 };
|
|
221
231
|
}
|
|
222
|
-
|
|
223
|
-
|
|
232
|
+
var Position;
|
|
233
|
+
(function (Position) {
|
|
234
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
224
235
|
if (message.index !== 0) {
|
|
225
236
|
writer.uint32(8).uint32(message.index);
|
|
226
237
|
}
|
|
@@ -246,8 +257,9 @@ exports.Position = {
|
|
|
246
257
|
writer.uint32(77).float(message.rotationW);
|
|
247
258
|
}
|
|
248
259
|
return writer;
|
|
249
|
-
}
|
|
250
|
-
|
|
260
|
+
}
|
|
261
|
+
Position.encode = encode;
|
|
262
|
+
function decode(input, length) {
|
|
251
263
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
252
264
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
253
265
|
const message = createBasePosition();
|
|
@@ -309,8 +321,9 @@ exports.Position = {
|
|
|
309
321
|
reader.skipType(tag & 7);
|
|
310
322
|
}
|
|
311
323
|
return message;
|
|
312
|
-
}
|
|
313
|
-
|
|
324
|
+
}
|
|
325
|
+
Position.decode = decode;
|
|
326
|
+
function fromJSON(object) {
|
|
314
327
|
return {
|
|
315
328
|
index: isSet(object.index) ? Number(object.index) : 0,
|
|
316
329
|
positionX: isSet(object.positionX) ? Number(object.positionX) : 0,
|
|
@@ -321,8 +334,9 @@ exports.Position = {
|
|
|
321
334
|
rotationZ: isSet(object.rotationZ) ? Number(object.rotationZ) : 0,
|
|
322
335
|
rotationW: isSet(object.rotationW) ? Number(object.rotationW) : 0,
|
|
323
336
|
};
|
|
324
|
-
}
|
|
325
|
-
|
|
337
|
+
}
|
|
338
|
+
Position.fromJSON = fromJSON;
|
|
339
|
+
function toJSON(message) {
|
|
326
340
|
const obj = {};
|
|
327
341
|
message.index !== undefined && (obj.index = Math.round(message.index));
|
|
328
342
|
message.positionX !== undefined && (obj.positionX = message.positionX);
|
|
@@ -333,11 +347,13 @@ exports.Position = {
|
|
|
333
347
|
message.rotationZ !== undefined && (obj.rotationZ = message.rotationZ);
|
|
334
348
|
message.rotationW !== undefined && (obj.rotationW = message.rotationW);
|
|
335
349
|
return obj;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
350
|
+
}
|
|
351
|
+
Position.toJSON = toJSON;
|
|
352
|
+
function create(base) {
|
|
353
|
+
return Position.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
354
|
+
}
|
|
355
|
+
Position.create = create;
|
|
356
|
+
function fromPartial(object) {
|
|
341
357
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
342
358
|
const message = createBasePosition();
|
|
343
359
|
message.index = (_a = object.index) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -349,19 +365,22 @@ exports.Position = {
|
|
|
349
365
|
message.rotationZ = (_g = object.rotationZ) !== null && _g !== void 0 ? _g : 0;
|
|
350
366
|
message.rotationW = (_h = object.rotationW) !== null && _h !== void 0 ? _h : 0;
|
|
351
367
|
return message;
|
|
352
|
-
}
|
|
353
|
-
|
|
368
|
+
}
|
|
369
|
+
Position.fromPartial = fromPartial;
|
|
370
|
+
})(Position = exports.Position || (exports.Position = {}));
|
|
354
371
|
function createBaseAnnounceProfileVersion() {
|
|
355
372
|
return { profileVersion: 0 };
|
|
356
373
|
}
|
|
357
|
-
|
|
358
|
-
|
|
374
|
+
var AnnounceProfileVersion;
|
|
375
|
+
(function (AnnounceProfileVersion) {
|
|
376
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
359
377
|
if (message.profileVersion !== 0) {
|
|
360
378
|
writer.uint32(8).uint32(message.profileVersion);
|
|
361
379
|
}
|
|
362
380
|
return writer;
|
|
363
|
-
}
|
|
364
|
-
|
|
381
|
+
}
|
|
382
|
+
AnnounceProfileVersion.encode = encode;
|
|
383
|
+
function decode(input, length) {
|
|
365
384
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
366
385
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
367
386
|
const message = createBaseAnnounceProfileVersion();
|
|
@@ -381,30 +400,36 @@ exports.AnnounceProfileVersion = {
|
|
|
381
400
|
reader.skipType(tag & 7);
|
|
382
401
|
}
|
|
383
402
|
return message;
|
|
384
|
-
}
|
|
385
|
-
|
|
403
|
+
}
|
|
404
|
+
AnnounceProfileVersion.decode = decode;
|
|
405
|
+
function fromJSON(object) {
|
|
386
406
|
return { profileVersion: isSet(object.profileVersion) ? Number(object.profileVersion) : 0 };
|
|
387
|
-
}
|
|
388
|
-
|
|
407
|
+
}
|
|
408
|
+
AnnounceProfileVersion.fromJSON = fromJSON;
|
|
409
|
+
function toJSON(message) {
|
|
389
410
|
const obj = {};
|
|
390
411
|
message.profileVersion !== undefined && (obj.profileVersion = Math.round(message.profileVersion));
|
|
391
412
|
return obj;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
413
|
+
}
|
|
414
|
+
AnnounceProfileVersion.toJSON = toJSON;
|
|
415
|
+
function create(base) {
|
|
416
|
+
return AnnounceProfileVersion.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
417
|
+
}
|
|
418
|
+
AnnounceProfileVersion.create = create;
|
|
419
|
+
function fromPartial(object) {
|
|
397
420
|
var _a;
|
|
398
421
|
const message = createBaseAnnounceProfileVersion();
|
|
399
422
|
message.profileVersion = (_a = object.profileVersion) !== null && _a !== void 0 ? _a : 0;
|
|
400
423
|
return message;
|
|
401
|
-
}
|
|
402
|
-
|
|
424
|
+
}
|
|
425
|
+
AnnounceProfileVersion.fromPartial = fromPartial;
|
|
426
|
+
})(AnnounceProfileVersion = exports.AnnounceProfileVersion || (exports.AnnounceProfileVersion = {}));
|
|
403
427
|
function createBaseProfileRequest() {
|
|
404
428
|
return { address: "", profileVersion: 0 };
|
|
405
429
|
}
|
|
406
|
-
|
|
407
|
-
|
|
430
|
+
var ProfileRequest;
|
|
431
|
+
(function (ProfileRequest) {
|
|
432
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
408
433
|
if (message.address !== "") {
|
|
409
434
|
writer.uint32(34).string(message.address);
|
|
410
435
|
}
|
|
@@ -412,8 +437,9 @@ exports.ProfileRequest = {
|
|
|
412
437
|
writer.uint32(24).uint32(message.profileVersion);
|
|
413
438
|
}
|
|
414
439
|
return writer;
|
|
415
|
-
}
|
|
416
|
-
|
|
440
|
+
}
|
|
441
|
+
ProfileRequest.encode = encode;
|
|
442
|
+
function decode(input, length) {
|
|
417
443
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
418
444
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
419
445
|
const message = createBaseProfileRequest();
|
|
@@ -439,35 +465,41 @@ exports.ProfileRequest = {
|
|
|
439
465
|
reader.skipType(tag & 7);
|
|
440
466
|
}
|
|
441
467
|
return message;
|
|
442
|
-
}
|
|
443
|
-
|
|
468
|
+
}
|
|
469
|
+
ProfileRequest.decode = decode;
|
|
470
|
+
function fromJSON(object) {
|
|
444
471
|
return {
|
|
445
472
|
address: isSet(object.address) ? String(object.address) : "",
|
|
446
473
|
profileVersion: isSet(object.profileVersion) ? Number(object.profileVersion) : 0,
|
|
447
474
|
};
|
|
448
|
-
}
|
|
449
|
-
|
|
475
|
+
}
|
|
476
|
+
ProfileRequest.fromJSON = fromJSON;
|
|
477
|
+
function toJSON(message) {
|
|
450
478
|
const obj = {};
|
|
451
479
|
message.address !== undefined && (obj.address = message.address);
|
|
452
480
|
message.profileVersion !== undefined && (obj.profileVersion = Math.round(message.profileVersion));
|
|
453
481
|
return obj;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
482
|
+
}
|
|
483
|
+
ProfileRequest.toJSON = toJSON;
|
|
484
|
+
function create(base) {
|
|
485
|
+
return ProfileRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
486
|
+
}
|
|
487
|
+
ProfileRequest.create = create;
|
|
488
|
+
function fromPartial(object) {
|
|
459
489
|
var _a, _b;
|
|
460
490
|
const message = createBaseProfileRequest();
|
|
461
491
|
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
462
492
|
message.profileVersion = (_b = object.profileVersion) !== null && _b !== void 0 ? _b : 0;
|
|
463
493
|
return message;
|
|
464
|
-
}
|
|
465
|
-
|
|
494
|
+
}
|
|
495
|
+
ProfileRequest.fromPartial = fromPartial;
|
|
496
|
+
})(ProfileRequest = exports.ProfileRequest || (exports.ProfileRequest = {}));
|
|
466
497
|
function createBaseProfileResponse() {
|
|
467
498
|
return { serializedProfile: "", baseUrl: "" };
|
|
468
499
|
}
|
|
469
|
-
|
|
470
|
-
|
|
500
|
+
var ProfileResponse;
|
|
501
|
+
(function (ProfileResponse) {
|
|
502
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
471
503
|
if (message.serializedProfile !== "") {
|
|
472
504
|
writer.uint32(10).string(message.serializedProfile);
|
|
473
505
|
}
|
|
@@ -475,8 +507,9 @@ exports.ProfileResponse = {
|
|
|
475
507
|
writer.uint32(18).string(message.baseUrl);
|
|
476
508
|
}
|
|
477
509
|
return writer;
|
|
478
|
-
}
|
|
479
|
-
|
|
510
|
+
}
|
|
511
|
+
ProfileResponse.encode = encode;
|
|
512
|
+
function decode(input, length) {
|
|
480
513
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
481
514
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
482
515
|
const message = createBaseProfileResponse();
|
|
@@ -502,35 +535,41 @@ exports.ProfileResponse = {
|
|
|
502
535
|
reader.skipType(tag & 7);
|
|
503
536
|
}
|
|
504
537
|
return message;
|
|
505
|
-
}
|
|
506
|
-
|
|
538
|
+
}
|
|
539
|
+
ProfileResponse.decode = decode;
|
|
540
|
+
function fromJSON(object) {
|
|
507
541
|
return {
|
|
508
542
|
serializedProfile: isSet(object.serializedProfile) ? String(object.serializedProfile) : "",
|
|
509
543
|
baseUrl: isSet(object.baseUrl) ? String(object.baseUrl) : "",
|
|
510
544
|
};
|
|
511
|
-
}
|
|
512
|
-
|
|
545
|
+
}
|
|
546
|
+
ProfileResponse.fromJSON = fromJSON;
|
|
547
|
+
function toJSON(message) {
|
|
513
548
|
const obj = {};
|
|
514
549
|
message.serializedProfile !== undefined && (obj.serializedProfile = message.serializedProfile);
|
|
515
550
|
message.baseUrl !== undefined && (obj.baseUrl = message.baseUrl);
|
|
516
551
|
return obj;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
552
|
+
}
|
|
553
|
+
ProfileResponse.toJSON = toJSON;
|
|
554
|
+
function create(base) {
|
|
555
|
+
return ProfileResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
556
|
+
}
|
|
557
|
+
ProfileResponse.create = create;
|
|
558
|
+
function fromPartial(object) {
|
|
522
559
|
var _a, _b;
|
|
523
560
|
const message = createBaseProfileResponse();
|
|
524
561
|
message.serializedProfile = (_a = object.serializedProfile) !== null && _a !== void 0 ? _a : "";
|
|
525
562
|
message.baseUrl = (_b = object.baseUrl) !== null && _b !== void 0 ? _b : "";
|
|
526
563
|
return message;
|
|
527
|
-
}
|
|
528
|
-
|
|
564
|
+
}
|
|
565
|
+
ProfileResponse.fromPartial = fromPartial;
|
|
566
|
+
})(ProfileResponse = exports.ProfileResponse || (exports.ProfileResponse = {}));
|
|
529
567
|
function createBaseChat() {
|
|
530
568
|
return { message: "", timestamp: 0 };
|
|
531
569
|
}
|
|
532
|
-
|
|
533
|
-
|
|
570
|
+
var Chat;
|
|
571
|
+
(function (Chat) {
|
|
572
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
534
573
|
if (message.message !== "") {
|
|
535
574
|
writer.uint32(10).string(message.message);
|
|
536
575
|
}
|
|
@@ -538,8 +577,9 @@ exports.Chat = {
|
|
|
538
577
|
writer.uint32(17).double(message.timestamp);
|
|
539
578
|
}
|
|
540
579
|
return writer;
|
|
541
|
-
}
|
|
542
|
-
|
|
580
|
+
}
|
|
581
|
+
Chat.encode = encode;
|
|
582
|
+
function decode(input, length) {
|
|
543
583
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
544
584
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
545
585
|
const message = createBaseChat();
|
|
@@ -565,35 +605,41 @@ exports.Chat = {
|
|
|
565
605
|
reader.skipType(tag & 7);
|
|
566
606
|
}
|
|
567
607
|
return message;
|
|
568
|
-
}
|
|
569
|
-
|
|
608
|
+
}
|
|
609
|
+
Chat.decode = decode;
|
|
610
|
+
function fromJSON(object) {
|
|
570
611
|
return {
|
|
571
612
|
message: isSet(object.message) ? String(object.message) : "",
|
|
572
613
|
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
573
614
|
};
|
|
574
|
-
}
|
|
575
|
-
|
|
615
|
+
}
|
|
616
|
+
Chat.fromJSON = fromJSON;
|
|
617
|
+
function toJSON(message) {
|
|
576
618
|
const obj = {};
|
|
577
619
|
message.message !== undefined && (obj.message = message.message);
|
|
578
620
|
message.timestamp !== undefined && (obj.timestamp = message.timestamp);
|
|
579
621
|
return obj;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
622
|
+
}
|
|
623
|
+
Chat.toJSON = toJSON;
|
|
624
|
+
function create(base) {
|
|
625
|
+
return Chat.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
626
|
+
}
|
|
627
|
+
Chat.create = create;
|
|
628
|
+
function fromPartial(object) {
|
|
585
629
|
var _a, _b;
|
|
586
630
|
const message = createBaseChat();
|
|
587
631
|
message.message = (_a = object.message) !== null && _a !== void 0 ? _a : "";
|
|
588
632
|
message.timestamp = (_b = object.timestamp) !== null && _b !== void 0 ? _b : 0;
|
|
589
633
|
return message;
|
|
590
|
-
}
|
|
591
|
-
|
|
634
|
+
}
|
|
635
|
+
Chat.fromPartial = fromPartial;
|
|
636
|
+
})(Chat = exports.Chat || (exports.Chat = {}));
|
|
592
637
|
function createBaseScene() {
|
|
593
638
|
return { sceneId: "", data: new Uint8Array() };
|
|
594
639
|
}
|
|
595
|
-
|
|
596
|
-
|
|
640
|
+
var Scene;
|
|
641
|
+
(function (Scene) {
|
|
642
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
597
643
|
if (message.sceneId !== "") {
|
|
598
644
|
writer.uint32(10).string(message.sceneId);
|
|
599
645
|
}
|
|
@@ -601,8 +647,9 @@ exports.Scene = {
|
|
|
601
647
|
writer.uint32(18).bytes(message.data);
|
|
602
648
|
}
|
|
603
649
|
return writer;
|
|
604
|
-
}
|
|
605
|
-
|
|
650
|
+
}
|
|
651
|
+
Scene.encode = encode;
|
|
652
|
+
function decode(input, length) {
|
|
606
653
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
607
654
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
608
655
|
const message = createBaseScene();
|
|
@@ -628,36 +675,42 @@ exports.Scene = {
|
|
|
628
675
|
reader.skipType(tag & 7);
|
|
629
676
|
}
|
|
630
677
|
return message;
|
|
631
|
-
}
|
|
632
|
-
|
|
678
|
+
}
|
|
679
|
+
Scene.decode = decode;
|
|
680
|
+
function fromJSON(object) {
|
|
633
681
|
return {
|
|
634
682
|
sceneId: isSet(object.sceneId) ? String(object.sceneId) : "",
|
|
635
683
|
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
|
|
636
684
|
};
|
|
637
|
-
}
|
|
638
|
-
|
|
685
|
+
}
|
|
686
|
+
Scene.fromJSON = fromJSON;
|
|
687
|
+
function toJSON(message) {
|
|
639
688
|
const obj = {};
|
|
640
689
|
message.sceneId !== undefined && (obj.sceneId = message.sceneId);
|
|
641
690
|
message.data !== undefined &&
|
|
642
691
|
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
|
643
692
|
return obj;
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
693
|
+
}
|
|
694
|
+
Scene.toJSON = toJSON;
|
|
695
|
+
function create(base) {
|
|
696
|
+
return Scene.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
697
|
+
}
|
|
698
|
+
Scene.create = create;
|
|
699
|
+
function fromPartial(object) {
|
|
649
700
|
var _a, _b;
|
|
650
701
|
const message = createBaseScene();
|
|
651
702
|
message.sceneId = (_a = object.sceneId) !== null && _a !== void 0 ? _a : "";
|
|
652
703
|
message.data = (_b = object.data) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
653
704
|
return message;
|
|
654
|
-
}
|
|
655
|
-
|
|
705
|
+
}
|
|
706
|
+
Scene.fromPartial = fromPartial;
|
|
707
|
+
})(Scene = exports.Scene || (exports.Scene = {}));
|
|
656
708
|
function createBaseVoice() {
|
|
657
709
|
return { encodedSamples: new Uint8Array(), index: 0, codec: 0 };
|
|
658
710
|
}
|
|
659
|
-
|
|
660
|
-
|
|
711
|
+
var Voice;
|
|
712
|
+
(function (Voice) {
|
|
713
|
+
function encode(message, writer = minimal_1.default.Writer.create()) {
|
|
661
714
|
if (message.encodedSamples.length !== 0) {
|
|
662
715
|
writer.uint32(10).bytes(message.encodedSamples);
|
|
663
716
|
}
|
|
@@ -668,8 +721,9 @@ exports.Voice = {
|
|
|
668
721
|
writer.uint32(24).int32(message.codec);
|
|
669
722
|
}
|
|
670
723
|
return writer;
|
|
671
|
-
}
|
|
672
|
-
|
|
724
|
+
}
|
|
725
|
+
Voice.encode = encode;
|
|
726
|
+
function decode(input, length) {
|
|
673
727
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
674
728
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
675
729
|
const message = createBaseVoice();
|
|
@@ -701,34 +755,39 @@ exports.Voice = {
|
|
|
701
755
|
reader.skipType(tag & 7);
|
|
702
756
|
}
|
|
703
757
|
return message;
|
|
704
|
-
}
|
|
705
|
-
|
|
758
|
+
}
|
|
759
|
+
Voice.decode = decode;
|
|
760
|
+
function fromJSON(object) {
|
|
706
761
|
return {
|
|
707
762
|
encodedSamples: isSet(object.encodedSamples) ? bytesFromBase64(object.encodedSamples) : new Uint8Array(),
|
|
708
763
|
index: isSet(object.index) ? Number(object.index) : 0,
|
|
709
764
|
codec: isSet(object.codec) ? voice_VoiceCodecFromJSON(object.codec) : 0,
|
|
710
765
|
};
|
|
711
|
-
}
|
|
712
|
-
|
|
766
|
+
}
|
|
767
|
+
Voice.fromJSON = fromJSON;
|
|
768
|
+
function toJSON(message) {
|
|
713
769
|
const obj = {};
|
|
714
770
|
message.encodedSamples !== undefined &&
|
|
715
771
|
(obj.encodedSamples = base64FromBytes(message.encodedSamples !== undefined ? message.encodedSamples : new Uint8Array()));
|
|
716
772
|
message.index !== undefined && (obj.index = Math.round(message.index));
|
|
717
773
|
message.codec !== undefined && (obj.codec = voice_VoiceCodecToJSON(message.codec));
|
|
718
774
|
return obj;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
775
|
+
}
|
|
776
|
+
Voice.toJSON = toJSON;
|
|
777
|
+
function create(base) {
|
|
778
|
+
return Voice.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
779
|
+
}
|
|
780
|
+
Voice.create = create;
|
|
781
|
+
function fromPartial(object) {
|
|
724
782
|
var _a, _b, _c;
|
|
725
783
|
const message = createBaseVoice();
|
|
726
784
|
message.encodedSamples = (_a = object.encodedSamples) !== null && _a !== void 0 ? _a : new Uint8Array();
|
|
727
785
|
message.index = (_b = object.index) !== null && _b !== void 0 ? _b : 0;
|
|
728
786
|
message.codec = (_c = object.codec) !== null && _c !== void 0 ? _c : 0;
|
|
729
787
|
return message;
|
|
730
|
-
}
|
|
731
|
-
|
|
788
|
+
}
|
|
789
|
+
Voice.fromPartial = fromPartial;
|
|
790
|
+
})(Voice = exports.Voice || (exports.Voice = {}));
|
|
732
791
|
var tsProtoGlobalThis = (() => {
|
|
733
792
|
if (typeof globalThis !== "undefined") {
|
|
734
793
|
return globalThis;
|