@dcl/protocol 1.0.0-4440731539.commit-a2174f5 → 1.0.0-4493564897.commit-c858f8a
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/out-js/decentraland/bff/authentication_service.gen.d.ts +6 -2
- package/out-js/decentraland/bff/authentication_service.gen.js +46 -24
- package/out-js/decentraland/bff/authentication_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/comms_director_service.gen.d.ts +6 -2
- package/out-js/decentraland/bff/comms_director_service.gen.js +33 -18
- package/out-js/decentraland/bff/comms_director_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/comms_service.gen.d.ts +21 -7
- package/out-js/decentraland/bff/comms_service.gen.js +25 -17
- package/out-js/decentraland/bff/comms_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/http_endpoints.gen.d.ts +3 -1
- package/out-js/decentraland/bff/http_endpoints.gen.js +197 -72
- package/out-js/decentraland/bff/http_endpoints.gen.js.map +1 -1
- package/out-js/decentraland/bff/topics_service.gen.d.ts +9 -3
- package/out-js/decentraland/bff/topics_service.gen.js +64 -32
- package/out-js/decentraland/bff/topics_service.gen.js.map +1 -1
- package/out-js/decentraland/common/border_rect.gen.js +21 -8
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -1
- package/out-js/decentraland/common/colors.gen.js +38 -15
- package/out-js/decentraland/common/colors.gen.js.map +1 -1
- package/out-js/decentraland/common/content_mapping.gen.js +13 -6
- package/out-js/decentraland/common/content_mapping.gen.js.map +1 -1
- package/out-js/decentraland/common/sdk/user_data.gen.js +71 -26
- package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -1
- package/out-js/decentraland/common/texture.gen.js +68 -28
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/common/vectors.gen.js +47 -20
- package/out-js/decentraland/common/vectors.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +3 -1
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +15 -10
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +3 -1
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js +19 -11
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +18 -6
- package/out-js/decentraland/kernel/apis/engine_api.gen.js +443 -206
- package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +21 -7
- package/out-js/decentraland/kernel/apis/environment_api.gen.js +176 -96
- package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +15 -5
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +141 -72
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +9 -3
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +91 -47
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +6 -2
- package/out-js/decentraland/kernel/apis/permissions.gen.js +42 -28
- package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/players.gen.d.ts +9 -3
- package/out-js/decentraland/kernel/apis/players.gen.js +49 -31
- package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +12 -4
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +81 -48
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +21 -7
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +123 -69
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +6 -2
- package/out-js/decentraland/kernel/apis/runtime.gen.js +55 -29
- package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/scene.gen.d.ts +3 -1
- package/out-js/decentraland/kernel/apis/scene.gen.js +27 -13
- package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +3 -1
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +82 -35
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +3 -1
- package/out-js/decentraland/kernel/apis/social_controller.gen.js +28 -16
- package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +3 -1
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js +15 -10
- 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 +6 -2
- package/out-js/decentraland/kernel/apis/user_identity.gen.js +30 -20
- package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +148 -59
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +142 -63
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +201 -86
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/animator.gen.js +42 -16
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_source.gen.js +25 -9
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +17 -7
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +13 -6
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +19 -10
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +49 -15
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/billboard.gen.js +9 -5
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +9 -5
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +13 -6
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +2 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js +7 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +10 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +47 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +173 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +156 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +9 -5
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.js +103 -34
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +16 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +139 -28
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +61 -34
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +17 -7
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +1 -11
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +46 -68
- 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 +10 -11
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +35 -20
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +9 -5
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +239 -38
- package/out-js/decentraland/sdk/components/raycast.gen.js +166 -28
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +26 -176
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +42 -172
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/text_shape.gen.js +89 -25
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_background.gen.js +27 -12
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +41 -13
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +9 -5
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.js +37 -12
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +9 -5
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.js +25 -9
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +209 -55
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/video_player.gen.js +29 -10
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +9 -5
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
- package/out-js/decentraland/social/friendships/friendships.gen.d.ts +12 -4
- package/out-js/decentraland/social/friendships/friendships.gen.js +231 -113
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -1
- package/out-js/google/protobuf/descriptor.gen.js +579 -226
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -1
- package/out-js/google/protobuf/empty.gen.js +5 -4
- package/out-js/google/protobuf/empty.gen.js.map +1 -1
- package/out-ts/decentraland/bff/authentication_service.gen.ts +52 -24
- package/out-ts/decentraland/bff/comms_director_service.gen.ts +37 -18
- package/out-ts/decentraland/bff/comms_service.gen.ts +27 -17
- package/out-ts/decentraland/bff/http_endpoints.gen.ts +236 -72
- package/out-ts/decentraland/bff/topics_service.gen.ts +73 -32
- package/out-ts/decentraland/common/border_rect.gen.ts +25 -8
- package/out-ts/decentraland/common/colors.gen.ts +45 -15
- package/out-ts/decentraland/common/content_mapping.gen.ts +15 -6
- package/out-ts/decentraland/common/sdk/user_data.gen.ts +85 -26
- package/out-ts/decentraland/common/texture.gen.ts +80 -28
- package/out-ts/decentraland/common/vectors.gen.ts +55 -20
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +16 -10
- package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +21 -11
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +511 -206
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +197 -96
- package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +160 -72
- package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +103 -47
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +50 -26
- package/out-ts/decentraland/kernel/apis/players.gen.ts +53 -31
- package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +89 -48
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +137 -69
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +62 -29
- package/out-ts/decentraland/kernel/apis/scene.gen.ts +31 -13
- package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +96 -35
- package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +31 -16
- package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +16 -10
- package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +32 -20
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +175 -59
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +165 -63
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +235 -86
- package/out-ts/decentraland/sdk/components/animator.gen.ts +50 -16
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +30 -9
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +20 -7
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +15 -6
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +24 -9
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +60 -15
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +10 -5
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +10 -5
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +15 -6
- package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +7 -0
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +46 -0
- package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +204 -0
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +10 -5
- package/out-ts/decentraland/sdk/components/material.gen.ts +125 -34
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +146 -28
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +73 -32
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +20 -7
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +58 -66
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +41 -14
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +10 -5
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +205 -34
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +49 -211
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +110 -25
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +34 -11
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +50 -13
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +10 -5
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +45 -12
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +10 -5
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +30 -9
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +260 -55
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +35 -10
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +10 -5
- package/out-ts/decentraland/social/friendships/friendships.gen.ts +264 -113
- package/out-ts/google/protobuf/descriptor.gen.ts +700 -221
- package/out-ts/google/protobuf/empty.gen.ts +5 -4
- package/package.json +2 -2
- package/proto/decentraland/sdk/components/common/camera_type.proto +1 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +8 -0
- package/proto/decentraland/sdk/components/common/raycast_hit.proto +16 -0
- package/proto/decentraland/sdk/components/mesh_collider.proto +17 -3
- package/proto/decentraland/sdk/components/pointer_events.proto +1 -9
- package/proto/decentraland/sdk/components/pointer_events_result.proto +5 -6
- package/proto/decentraland/sdk/components/raycast.proto +39 -4
- package/proto/decentraland/sdk/components/raycast_result.proto +9 -19
- package/out-js/decentraland/common/entity.gen.d.ts +0 -89
- package/out-js/decentraland/common/entity.gen.js +0 -107
- package/out-js/decentraland/common/entity.gen.js.map +0 -1
- package/out-js/decentraland/renderer/common/friend_request_common.gen.d.ts +0 -69
- package/out-js/decentraland/renderer/common/friend_request_common.gen.js +0 -179
- package/out-js/decentraland/renderer/common/friend_request_common.gen.js.map +0 -1
- package/out-js/decentraland/renderer/engine_interface.gen.d.ts +0 -18476
- package/out-js/decentraland/renderer/engine_interface.gen.js +0 -7796
- package/out-js/decentraland/renderer/engine_interface.gen.js.map +0 -1
- package/out-js/decentraland/renderer/kernel_services/analytics.gen.d.ts +0 -670
- package/out-js/decentraland/renderer/kernel_services/analytics.gen.js +0 -846
- package/out-js/decentraland/renderer/kernel_services/analytics.gen.js.map +0 -1
- package/out-js/decentraland/renderer/kernel_services/emotes_kernel.gen.d.ts +0 -96
- package/out-js/decentraland/renderer/kernel_services/emotes_kernel.gen.js +0 -120
- package/out-js/decentraland/renderer/kernel_services/emotes_kernel.gen.js.map +0 -1
- package/out-js/decentraland/renderer/kernel_services/friend_request_kernel.gen.d.ts +0 -2326
- package/out-js/decentraland/renderer/kernel_services/friend_request_kernel.gen.js +0 -968
- package/out-js/decentraland/renderer/kernel_services/friend_request_kernel.gen.js.map +0 -1
- package/out-js/decentraland/renderer/kernel_services/friends_kernel.gen.d.ts +0 -111
- package/out-js/decentraland/renderer/kernel_services/friends_kernel.gen.js +0 -162
- package/out-js/decentraland/renderer/kernel_services/friends_kernel.gen.js.map +0 -1
- package/out-js/decentraland/renderer/kernel_services/mutual_friends_kernel.gen.d.ts +0 -103
- package/out-js/decentraland/renderer/kernel_services/mutual_friends_kernel.gen.js +0 -122
- package/out-js/decentraland/renderer/kernel_services/mutual_friends_kernel.gen.js.map +0 -1
- package/out-js/decentraland/renderer/kernel_services/sign_request.gen.d.ts +0 -148
- package/out-js/decentraland/renderer/kernel_services/sign_request.gen.js +0 -239
- package/out-js/decentraland/renderer/kernel_services/sign_request.gen.js.map +0 -1
- package/out-js/decentraland/renderer/renderer_services/crdt.gen.d.ts +0 -182
- package/out-js/decentraland/renderer/renderer_services/crdt.gen.js +0 -235
- package/out-js/decentraland/renderer/renderer_services/crdt.gen.js.map +0 -1
- package/out-js/decentraland/renderer/renderer_services/emotes_renderer.gen.d.ts +0 -87
- package/out-js/decentraland/renderer/renderer_services/emotes_renderer.gen.js +0 -109
- package/out-js/decentraland/renderer/renderer_services/emotes_renderer.gen.js.map +0 -1
- package/out-js/decentraland/renderer/renderer_services/friend_request_renderer.gen.d.ts +0 -335
- package/out-js/decentraland/renderer/renderer_services/friend_request_renderer.gen.js +0 -380
- package/out-js/decentraland/renderer/renderer_services/friend_request_renderer.gen.js.map +0 -1
- package/out-js/decentraland/renderer/renderer_services/scene_controller.gen.d.ts +0 -494
- package/out-js/decentraland/renderer/renderer_services/scene_controller.gen.js +0 -473
- package/out-js/decentraland/renderer/renderer_services/scene_controller.gen.js.map +0 -1
- package/out-js/decentraland/renderer/renderer_services/transport.gen.d.ts +0 -88
- package/out-js/decentraland/renderer/renderer_services/transport.gen.js +0 -114
- package/out-js/decentraland/renderer/renderer_services/transport.gen.js.map +0 -1
- package/out-js/renderer-interface.gen.d.ts +0 -1
- package/out-js/renderer-interface.gen.js +0 -6
- package/out-js/renderer-interface.gen.js.map +0 -1
- package/out-ts/decentraland/common/entity.gen.ts +0 -126
- package/out-ts/decentraland/renderer/common/friend_request_common.gen.ts +0 -206
- package/out-ts/decentraland/renderer/engine_interface.gen.ts +0 -8939
- package/out-ts/decentraland/renderer/kernel_services/analytics.gen.ts +0 -1004
- package/out-ts/decentraland/renderer/kernel_services/emotes_kernel.gen.ts +0 -151
- package/out-ts/decentraland/renderer/kernel_services/friend_request_kernel.gen.ts +0 -1146
- package/out-ts/decentraland/renderer/kernel_services/friends_kernel.gen.ts +0 -191
- package/out-ts/decentraland/renderer/kernel_services/mutual_friends_kernel.gen.ts +0 -151
- package/out-ts/decentraland/renderer/kernel_services/sign_request.gen.ts +0 -277
- package/out-ts/decentraland/renderer/renderer_services/crdt.gen.ts +0 -284
- package/out-ts/decentraland/renderer/renderer_services/emotes_renderer.gen.ts +0 -147
- package/out-ts/decentraland/renderer/renderer_services/friend_request_renderer.gen.ts +0 -470
- package/out-ts/decentraland/renderer/renderer_services/scene_controller.gen.ts +0 -579
- package/out-ts/decentraland/renderer/renderer_services/transport.gen.ts +0 -141
- package/out-ts/renderer-interface.gen.ts +0 -3
- package/proto/decentraland/renderer/common/friend_request_common.proto +0 -20
- package/proto/decentraland/renderer/engine_interface.proto +0 -709
- package/proto/decentraland/renderer/kernel_services/analytics.proto +0 -69
- package/proto/decentraland/renderer/kernel_services/emotes_kernel.proto +0 -16
- package/proto/decentraland/renderer/kernel_services/friend_request_kernel.proto +0 -100
- package/proto/decentraland/renderer/kernel_services/friends_kernel.proto +0 -22
- package/proto/decentraland/renderer/kernel_services/mutual_friends_kernel.proto +0 -15
- package/proto/decentraland/renderer/kernel_services/sign_request.proto +0 -27
- package/proto/decentraland/renderer/renderer_services/crdt.proto +0 -29
- package/proto/decentraland/renderer/renderer_services/emotes_renderer.proto +0 -15
- package/proto/decentraland/renderer/renderer_services/friend_request_renderer.proto +0 -36
- package/proto/decentraland/renderer/renderer_services/scene_controller.proto +0 -54
- package/proto/decentraland/renderer/renderer_services/transport.proto +0 -14
- package/public/renderer-interface.proto +0 -14
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TransportServiceDefinition = exports.Payload = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
exports.protobufPackage = "decentraland.renderer.renderer_services";
|
|
10
|
-
function createBasePayload() {
|
|
11
|
-
return { payload: new Uint8Array() };
|
|
12
|
-
}
|
|
13
|
-
exports.Payload = {
|
|
14
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
15
|
-
if (message.payload.length !== 0) {
|
|
16
|
-
writer.uint32(10).bytes(message.payload);
|
|
17
|
-
}
|
|
18
|
-
return writer;
|
|
19
|
-
},
|
|
20
|
-
decode(input, length) {
|
|
21
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
22
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23
|
-
const message = createBasePayload();
|
|
24
|
-
while (reader.pos < end) {
|
|
25
|
-
const tag = reader.uint32();
|
|
26
|
-
switch (tag >>> 3) {
|
|
27
|
-
case 1:
|
|
28
|
-
message.payload = reader.bytes();
|
|
29
|
-
break;
|
|
30
|
-
default:
|
|
31
|
-
reader.skipType(tag & 7);
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return message;
|
|
36
|
-
},
|
|
37
|
-
fromJSON(object) {
|
|
38
|
-
return { payload: isSet(object.payload) ? bytesFromBase64(object.payload) : new Uint8Array() };
|
|
39
|
-
},
|
|
40
|
-
toJSON(message) {
|
|
41
|
-
const obj = {};
|
|
42
|
-
message.payload !== undefined &&
|
|
43
|
-
(obj.payload = base64FromBytes(message.payload !== undefined ? message.payload : new Uint8Array()));
|
|
44
|
-
return obj;
|
|
45
|
-
},
|
|
46
|
-
create(base) {
|
|
47
|
-
return exports.Payload.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
48
|
-
},
|
|
49
|
-
fromPartial(object) {
|
|
50
|
-
var _a;
|
|
51
|
-
const message = createBasePayload();
|
|
52
|
-
message.payload = (_a = object.payload) !== null && _a !== void 0 ? _a : new Uint8Array();
|
|
53
|
-
return message;
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
exports.TransportServiceDefinition = {
|
|
57
|
-
name: "TransportService",
|
|
58
|
-
fullName: "decentraland.renderer.renderer_services.TransportService",
|
|
59
|
-
methods: {
|
|
60
|
-
/** Bidirectional stream to exchange payloads */
|
|
61
|
-
openTransportStream: {
|
|
62
|
-
name: "OpenTransportStream",
|
|
63
|
-
requestType: exports.Payload,
|
|
64
|
-
requestStream: true,
|
|
65
|
-
responseType: exports.Payload,
|
|
66
|
-
responseStream: true,
|
|
67
|
-
options: {},
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
var tsProtoGlobalThis = (() => {
|
|
72
|
-
if (typeof globalThis !== "undefined") {
|
|
73
|
-
return globalThis;
|
|
74
|
-
}
|
|
75
|
-
if (typeof self !== "undefined") {
|
|
76
|
-
return self;
|
|
77
|
-
}
|
|
78
|
-
if (typeof window !== "undefined") {
|
|
79
|
-
return window;
|
|
80
|
-
}
|
|
81
|
-
if (typeof global !== "undefined") {
|
|
82
|
-
return global;
|
|
83
|
-
}
|
|
84
|
-
throw "Unable to locate global object";
|
|
85
|
-
})();
|
|
86
|
-
function bytesFromBase64(b64) {
|
|
87
|
-
if (tsProtoGlobalThis.Buffer) {
|
|
88
|
-
return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
const bin = tsProtoGlobalThis.atob(b64);
|
|
92
|
-
const arr = new Uint8Array(bin.length);
|
|
93
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
94
|
-
arr[i] = bin.charCodeAt(i);
|
|
95
|
-
}
|
|
96
|
-
return arr;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
function base64FromBytes(arr) {
|
|
100
|
-
if (tsProtoGlobalThis.Buffer) {
|
|
101
|
-
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
const bin = [];
|
|
105
|
-
arr.forEach((byte) => {
|
|
106
|
-
bin.push(String.fromCharCode(byte));
|
|
107
|
-
});
|
|
108
|
-
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function isSet(value) {
|
|
112
|
-
return value !== null && value !== undefined;
|
|
113
|
-
}
|
|
114
|
-
//# sourceMappingURL=transport.gen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transport.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/renderer/renderer_services/transport.gen.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const protobufPackage = "";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderer-interface.gen.js","sourceRoot":"","sources":["../out-ts/renderer-interface.gen.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAEP,QAAA,eAAe,GAAG,EAAE,CAAC"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { ContentMapping } from "./content_mapping.gen";
|
|
4
|
-
|
|
5
|
-
export const protobufPackage = "decentraland.common";
|
|
6
|
-
|
|
7
|
-
export interface Entity {
|
|
8
|
-
id: string;
|
|
9
|
-
pointers: string[];
|
|
10
|
-
metadata: string;
|
|
11
|
-
timestamp: number;
|
|
12
|
-
content: ContentMapping[];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function createBaseEntity(): Entity {
|
|
16
|
-
return { id: "", pointers: [], metadata: "", timestamp: 0, content: [] };
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const Entity = {
|
|
20
|
-
encode(message: Entity, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
21
|
-
if (message.id !== "") {
|
|
22
|
-
writer.uint32(10).string(message.id);
|
|
23
|
-
}
|
|
24
|
-
for (const v of message.pointers) {
|
|
25
|
-
writer.uint32(18).string(v!);
|
|
26
|
-
}
|
|
27
|
-
if (message.metadata !== "") {
|
|
28
|
-
writer.uint32(26).string(message.metadata);
|
|
29
|
-
}
|
|
30
|
-
if (message.timestamp !== 0) {
|
|
31
|
-
writer.uint32(32).uint32(message.timestamp);
|
|
32
|
-
}
|
|
33
|
-
for (const v of message.content) {
|
|
34
|
-
ContentMapping.encode(v!, writer.uint32(42).fork()).ldelim();
|
|
35
|
-
}
|
|
36
|
-
return writer;
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Entity {
|
|
40
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
41
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
42
|
-
const message = createBaseEntity();
|
|
43
|
-
while (reader.pos < end) {
|
|
44
|
-
const tag = reader.uint32();
|
|
45
|
-
switch (tag >>> 3) {
|
|
46
|
-
case 1:
|
|
47
|
-
message.id = reader.string();
|
|
48
|
-
break;
|
|
49
|
-
case 2:
|
|
50
|
-
message.pointers.push(reader.string());
|
|
51
|
-
break;
|
|
52
|
-
case 3:
|
|
53
|
-
message.metadata = reader.string();
|
|
54
|
-
break;
|
|
55
|
-
case 4:
|
|
56
|
-
message.timestamp = reader.uint32();
|
|
57
|
-
break;
|
|
58
|
-
case 5:
|
|
59
|
-
message.content.push(ContentMapping.decode(reader, reader.uint32()));
|
|
60
|
-
break;
|
|
61
|
-
default:
|
|
62
|
-
reader.skipType(tag & 7);
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return message;
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
fromJSON(object: any): Entity {
|
|
70
|
-
return {
|
|
71
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
72
|
-
pointers: Array.isArray(object?.pointers) ? object.pointers.map((e: any) => String(e)) : [],
|
|
73
|
-
metadata: isSet(object.metadata) ? String(object.metadata) : "",
|
|
74
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
75
|
-
content: Array.isArray(object?.content) ? object.content.map((e: any) => ContentMapping.fromJSON(e)) : [],
|
|
76
|
-
};
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
toJSON(message: Entity): unknown {
|
|
80
|
-
const obj: any = {};
|
|
81
|
-
message.id !== undefined && (obj.id = message.id);
|
|
82
|
-
if (message.pointers) {
|
|
83
|
-
obj.pointers = message.pointers.map((e) => e);
|
|
84
|
-
} else {
|
|
85
|
-
obj.pointers = [];
|
|
86
|
-
}
|
|
87
|
-
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
88
|
-
message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
|
|
89
|
-
if (message.content) {
|
|
90
|
-
obj.content = message.content.map((e) => e ? ContentMapping.toJSON(e) : undefined);
|
|
91
|
-
} else {
|
|
92
|
-
obj.content = [];
|
|
93
|
-
}
|
|
94
|
-
return obj;
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
create<I extends Exact<DeepPartial<Entity>, I>>(base?: I): Entity {
|
|
98
|
-
return Entity.fromPartial(base ?? {});
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
fromPartial<I extends Exact<DeepPartial<Entity>, I>>(object: I): Entity {
|
|
102
|
-
const message = createBaseEntity();
|
|
103
|
-
message.id = object.id ?? "";
|
|
104
|
-
message.pointers = object.pointers?.map((e) => e) || [];
|
|
105
|
-
message.metadata = object.metadata ?? "";
|
|
106
|
-
message.timestamp = object.timestamp ?? 0;
|
|
107
|
-
message.content = object.content?.map((e) => ContentMapping.fromPartial(e)) || [];
|
|
108
|
-
return message;
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
113
|
-
|
|
114
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
115
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
116
|
-
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
117
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
118
|
-
: Partial<T>;
|
|
119
|
-
|
|
120
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
121
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
122
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
123
|
-
|
|
124
|
-
function isSet(value: any): boolean {
|
|
125
|
-
return value !== null && value !== undefined;
|
|
126
|
-
}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import Long from "long";
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
4
|
-
|
|
5
|
-
export const protobufPackage = "decentraland.renderer.common";
|
|
6
|
-
|
|
7
|
-
export enum FriendshipErrorCode {
|
|
8
|
-
FEC_TOO_MANY_REQUESTS_SENT = 0,
|
|
9
|
-
FEC_NOT_ENOUGH_TIME_PASSED = 1,
|
|
10
|
-
FEC_BLOCKED_USER = 2,
|
|
11
|
-
FEC_NON_EXISTING_USER = 3,
|
|
12
|
-
FEC_INVALID_REQUEST = 4,
|
|
13
|
-
FEC_UNKNOWN = 5,
|
|
14
|
-
UNRECOGNIZED = -1,
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function friendshipErrorCodeFromJSON(object: any): FriendshipErrorCode {
|
|
18
|
-
switch (object) {
|
|
19
|
-
case 0:
|
|
20
|
-
case "FEC_TOO_MANY_REQUESTS_SENT":
|
|
21
|
-
return FriendshipErrorCode.FEC_TOO_MANY_REQUESTS_SENT;
|
|
22
|
-
case 1:
|
|
23
|
-
case "FEC_NOT_ENOUGH_TIME_PASSED":
|
|
24
|
-
return FriendshipErrorCode.FEC_NOT_ENOUGH_TIME_PASSED;
|
|
25
|
-
case 2:
|
|
26
|
-
case "FEC_BLOCKED_USER":
|
|
27
|
-
return FriendshipErrorCode.FEC_BLOCKED_USER;
|
|
28
|
-
case 3:
|
|
29
|
-
case "FEC_NON_EXISTING_USER":
|
|
30
|
-
return FriendshipErrorCode.FEC_NON_EXISTING_USER;
|
|
31
|
-
case 4:
|
|
32
|
-
case "FEC_INVALID_REQUEST":
|
|
33
|
-
return FriendshipErrorCode.FEC_INVALID_REQUEST;
|
|
34
|
-
case 5:
|
|
35
|
-
case "FEC_UNKNOWN":
|
|
36
|
-
return FriendshipErrorCode.FEC_UNKNOWN;
|
|
37
|
-
case -1:
|
|
38
|
-
case "UNRECOGNIZED":
|
|
39
|
-
default:
|
|
40
|
-
return FriendshipErrorCode.UNRECOGNIZED;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function friendshipErrorCodeToJSON(object: FriendshipErrorCode): string {
|
|
45
|
-
switch (object) {
|
|
46
|
-
case FriendshipErrorCode.FEC_TOO_MANY_REQUESTS_SENT:
|
|
47
|
-
return "FEC_TOO_MANY_REQUESTS_SENT";
|
|
48
|
-
case FriendshipErrorCode.FEC_NOT_ENOUGH_TIME_PASSED:
|
|
49
|
-
return "FEC_NOT_ENOUGH_TIME_PASSED";
|
|
50
|
-
case FriendshipErrorCode.FEC_BLOCKED_USER:
|
|
51
|
-
return "FEC_BLOCKED_USER";
|
|
52
|
-
case FriendshipErrorCode.FEC_NON_EXISTING_USER:
|
|
53
|
-
return "FEC_NON_EXISTING_USER";
|
|
54
|
-
case FriendshipErrorCode.FEC_INVALID_REQUEST:
|
|
55
|
-
return "FEC_INVALID_REQUEST";
|
|
56
|
-
case FriendshipErrorCode.FEC_UNKNOWN:
|
|
57
|
-
return "FEC_UNKNOWN";
|
|
58
|
-
case FriendshipErrorCode.UNRECOGNIZED:
|
|
59
|
-
default:
|
|
60
|
-
return "UNRECOGNIZED";
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface FriendRequestInfo {
|
|
65
|
-
friendRequestId: string;
|
|
66
|
-
timestamp: number;
|
|
67
|
-
from: string;
|
|
68
|
-
to: string;
|
|
69
|
-
messageBody?: string | undefined;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function createBaseFriendRequestInfo(): FriendRequestInfo {
|
|
73
|
-
return { friendRequestId: "", timestamp: 0, from: "", to: "", messageBody: undefined };
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export const FriendRequestInfo = {
|
|
77
|
-
encode(message: FriendRequestInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
78
|
-
if (message.friendRequestId !== "") {
|
|
79
|
-
writer.uint32(10).string(message.friendRequestId);
|
|
80
|
-
}
|
|
81
|
-
if (message.timestamp !== 0) {
|
|
82
|
-
writer.uint32(16).uint64(message.timestamp);
|
|
83
|
-
}
|
|
84
|
-
if (message.from !== "") {
|
|
85
|
-
writer.uint32(26).string(message.from);
|
|
86
|
-
}
|
|
87
|
-
if (message.to !== "") {
|
|
88
|
-
writer.uint32(34).string(message.to);
|
|
89
|
-
}
|
|
90
|
-
if (message.messageBody !== undefined) {
|
|
91
|
-
writer.uint32(42).string(message.messageBody);
|
|
92
|
-
}
|
|
93
|
-
return writer;
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): FriendRequestInfo {
|
|
97
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
98
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
99
|
-
const message = createBaseFriendRequestInfo();
|
|
100
|
-
while (reader.pos < end) {
|
|
101
|
-
const tag = reader.uint32();
|
|
102
|
-
switch (tag >>> 3) {
|
|
103
|
-
case 1:
|
|
104
|
-
message.friendRequestId = reader.string();
|
|
105
|
-
break;
|
|
106
|
-
case 2:
|
|
107
|
-
message.timestamp = longToNumber(reader.uint64() as Long);
|
|
108
|
-
break;
|
|
109
|
-
case 3:
|
|
110
|
-
message.from = reader.string();
|
|
111
|
-
break;
|
|
112
|
-
case 4:
|
|
113
|
-
message.to = reader.string();
|
|
114
|
-
break;
|
|
115
|
-
case 5:
|
|
116
|
-
message.messageBody = reader.string();
|
|
117
|
-
break;
|
|
118
|
-
default:
|
|
119
|
-
reader.skipType(tag & 7);
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return message;
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
fromJSON(object: any): FriendRequestInfo {
|
|
127
|
-
return {
|
|
128
|
-
friendRequestId: isSet(object.friendRequestId) ? String(object.friendRequestId) : "",
|
|
129
|
-
timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
|
|
130
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
131
|
-
to: isSet(object.to) ? String(object.to) : "",
|
|
132
|
-
messageBody: isSet(object.messageBody) ? String(object.messageBody) : undefined,
|
|
133
|
-
};
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
toJSON(message: FriendRequestInfo): unknown {
|
|
137
|
-
const obj: any = {};
|
|
138
|
-
message.friendRequestId !== undefined && (obj.friendRequestId = message.friendRequestId);
|
|
139
|
-
message.timestamp !== undefined && (obj.timestamp = Math.round(message.timestamp));
|
|
140
|
-
message.from !== undefined && (obj.from = message.from);
|
|
141
|
-
message.to !== undefined && (obj.to = message.to);
|
|
142
|
-
message.messageBody !== undefined && (obj.messageBody = message.messageBody);
|
|
143
|
-
return obj;
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
create<I extends Exact<DeepPartial<FriendRequestInfo>, I>>(base?: I): FriendRequestInfo {
|
|
147
|
-
return FriendRequestInfo.fromPartial(base ?? {});
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
fromPartial<I extends Exact<DeepPartial<FriendRequestInfo>, I>>(object: I): FriendRequestInfo {
|
|
151
|
-
const message = createBaseFriendRequestInfo();
|
|
152
|
-
message.friendRequestId = object.friendRequestId ?? "";
|
|
153
|
-
message.timestamp = object.timestamp ?? 0;
|
|
154
|
-
message.from = object.from ?? "";
|
|
155
|
-
message.to = object.to ?? "";
|
|
156
|
-
message.messageBody = object.messageBody ?? undefined;
|
|
157
|
-
return message;
|
|
158
|
-
},
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
declare var self: any | undefined;
|
|
162
|
-
declare var window: any | undefined;
|
|
163
|
-
declare var global: any | undefined;
|
|
164
|
-
var tsProtoGlobalThis: any = (() => {
|
|
165
|
-
if (typeof globalThis !== "undefined") {
|
|
166
|
-
return globalThis;
|
|
167
|
-
}
|
|
168
|
-
if (typeof self !== "undefined") {
|
|
169
|
-
return self;
|
|
170
|
-
}
|
|
171
|
-
if (typeof window !== "undefined") {
|
|
172
|
-
return window;
|
|
173
|
-
}
|
|
174
|
-
if (typeof global !== "undefined") {
|
|
175
|
-
return global;
|
|
176
|
-
}
|
|
177
|
-
throw "Unable to locate global object";
|
|
178
|
-
})();
|
|
179
|
-
|
|
180
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
181
|
-
|
|
182
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
183
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
184
|
-
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
185
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
186
|
-
: Partial<T>;
|
|
187
|
-
|
|
188
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
189
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
190
|
-
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
191
|
-
|
|
192
|
-
function longToNumber(long: Long): number {
|
|
193
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
194
|
-
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
195
|
-
}
|
|
196
|
-
return long.toNumber();
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
if (_m0.util.Long !== Long) {
|
|
200
|
-
_m0.util.Long = Long as any;
|
|
201
|
-
_m0.configure();
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
function isSet(value: any): boolean {
|
|
205
|
-
return value !== null && value !== undefined;
|
|
206
|
-
}
|