@dcl/protocol 1.0.0-4671230683.commit-a8d74c3 → 1.0.0-47167692990.commit-12a6a30
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 +296 -13
- package/out-js/about.gen.d.ts +1 -0
- package/out-js/{bff-services.gen.js → about.gen.js} +2 -2
- package/out-js/about.gen.js.map +1 -0
- package/out-js/decentraland/common/border_rect.gen.d.ts +23 -28
- package/out-js/decentraland/common/border_rect.gen.js +126 -25
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -1
- package/out-js/decentraland/common/colors.gen.d.ts +29 -52
- package/out-js/decentraland/common/colors.gen.js +132 -47
- 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 +27 -20
- package/out-js/decentraland/common/content_mapping.gen.js.map +1 -1
- package/out-js/decentraland/common/gradient.gen.d.ts +50 -0
- package/out-js/decentraland/common/gradient.gen.js +148 -0
- package/out-js/decentraland/common/gradient.gen.js.map +1 -0
- package/out-js/decentraland/common/sdk/user_data.gen.d.ts +24 -176
- package/out-js/decentraland/common/sdk/user_data.gen.js +111 -88
- package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -1
- package/out-js/decentraland/common/texture.gen.d.ts +56 -252
- package/out-js/decentraland/common/texture.gen.js +262 -111
- 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 +180 -65
- package/out-js/decentraland/common/vectors.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/comms_api.gen.d.ts +206 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js +794 -0
- package/out-js/decentraland/kernel/apis/comms_api.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +64 -48
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +323 -37
- 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 +52 -38
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +186 -4088
- package/out-js/decentraland/kernel/apis/engine_api.gen.js +680 -1733
- 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 +458 -336
- 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 +329 -243
- 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 +227 -169
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +37 -128
- package/out-js/decentraland/kernel/apis/permissions.gen.js +117 -81
- 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 +157 -114
- package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +84 -309
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +279 -177
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +391 -577
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +1429 -322
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +130 -412
- package/out-js/decentraland/kernel/apis/runtime.gen.js +492 -269
- 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 +63 -47
- package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/scene_credits.gen.d.ts +186 -0
- package/out-js/decentraland/kernel/apis/scene_credits.gen.js +388 -0
- package/out-js/decentraland/kernel/apis/scene_credits.gen.js.map +1 -0
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +75 -284
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +305 -116
- 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 +83 -61
- package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/testing.gen.d.ts +165 -408
- package/out-js/decentraland/kernel/apis/testing.gen.js +668 -195
- 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 +50 -36
- 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 +98 -70
- package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +350 -551
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +1905 -264
- 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 +86 -561
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +354 -258
- 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 +288 -748
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +1494 -555
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
- package/out-js/decentraland/pulse/pulse_clusters.gen.d.ts +153 -0
- package/out-js/decentraland/pulse/pulse_clusters.gen.js +678 -0
- package/out-js/decentraland/pulse/pulse_clusters.gen.js.map +1 -0
- package/out-js/decentraland/quests/definitions.gen.d.ts +541 -0
- package/out-js/decentraland/quests/definitions.gen.js +2739 -0
- package/out-js/decentraland/quests/definitions.gen.js.map +1 -0
- package/out-js/decentraland/realm/about.gen.d.ts +229 -0
- package/out-js/decentraland/realm/about.gen.js +1189 -0
- package/out-js/decentraland/realm/about.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/animator.gen.d.ts +19 -141
- package/out-js/decentraland/sdk/components/animator.gen.js +69 -74
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +19 -32
- package/out-js/decentraland/sdk/components/audio_source.gen.js +63 -24
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +18 -24
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +72 -22
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +31 -20
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +163 -23
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_base.gen.d.ts +38 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js +148 -0
- package/out-js/decentraland/sdk/components/avatar_base.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.d.ts +64 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js +171 -0
- package/out-js/decentraland/sdk/components/avatar_emote_command.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.d.ts +57 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js +200 -0
- package/out-js/decentraland/sdk/components/avatar_equipped_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.d.ts +51 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js +177 -0
- package/out-js/decentraland/sdk/components/avatar_locomotion_settings.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +51 -48
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +281 -27
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_movement.gen.d.ts +71 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js +305 -0
- package/out-js/decentraland/sdk/components/avatar_movement.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.d.ts +82 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js +357 -0
- package/out-js/decentraland/sdk/components/avatar_movement_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.d.ts +58 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.js +117 -0
- package/out-js/decentraland/sdk/components/avatar_nametag.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +39 -140
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +80 -40
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +21 -19
- package/out-js/decentraland/sdk/components/billboard.gen.js +49 -25
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_layer.gen.d.ts +46 -0
- package/out-js/decentraland/sdk/components/camera_layer.gen.js +162 -0
- package/out-js/decentraland/sdk/components/camera_layer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.d.ts +30 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.js +81 -0
- package/out-js/decentraland/sdk/components/camera_layers.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +25 -18
- 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 +38 -45
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +172 -22
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/avatar_mask.gen.d.ts +8 -0
- package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js +34 -0
- package/out-js/decentraland/sdk/components/common/avatar_mask.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js +4 -4
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/explorer_ui.gen.d.ts +23 -0
- package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js +94 -0
- package/out-js/decentraland/sdk/components/common/explorer_ui.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +14 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +77 -7
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/loading_state.gen.d.ts +11 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js +57 -0
- package/out-js/decentraland/sdk/components/common/loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +8 -136
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +31 -24
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/texts.gen.js +7 -7
- package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js +119 -0
- package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/environment_fog.gen.d.ts +44 -0
- package/out-js/decentraland/sdk/components/environment_fog.gen.js +86 -0
- package/out-js/decentraland/sdk/components/environment_fog.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/explorer_configuration.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/explorer_configuration.gen.js +69 -0
- package/out-js/decentraland/sdk/components/explorer_configuration.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +78 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js +309 -0
- package/out-js/decentraland/sdk/components/explorer_item_purchase_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +73 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js +232 -0
- package/out-js/decentraland/sdk/components/explorer_ui_events_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/global_light.gen.d.ts +50 -0
- package/out-js/decentraland/sdk/components/global_light.gen.js +103 -0
- package/out-js/decentraland/sdk/components/global_light.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +12 -16
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +60 -21
- 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 +54 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +159 -0
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.d.ts +66 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js +69 -0
- package/out-js/decentraland/sdk/components/gltf_node.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.d.ts +57 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js +165 -0
- package/out-js/decentraland/sdk/components/gltf_node_modifiers.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/gltf_node_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js +233 -0
- package/out-js/decentraland/sdk/components/input_modifier.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +50 -3374
- package/out-js/decentraland/sdk/components/material.gen.js +219 -105
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +65 -181
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +255 -131
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +62 -226
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +239 -116
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +11 -51
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +37 -30
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/player_identity_data.gen.d.ts +37 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js +83 -0
- package/out-js/decentraland/sdk/components/player_identity_data.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +63 -187
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +165 -71
- 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 +11 -209
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +45 -26
- 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 +24 -17
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +23 -250
- package/out-js/decentraland/sdk/components/raycast.gen.js +124 -52
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +10 -348
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +46 -25
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/realm_info.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js +151 -0
- package/out-js/decentraland/sdk/components/realm_info.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/skybox.gen.d.ts +103 -0
- package/out-js/decentraland/sdk/components/skybox.gen.js +355 -0
- package/out-js/decentraland/sdk/components/skybox.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/sun.gen.d.ts +53 -0
- package/out-js/decentraland/sdk/components/sun.gen.js +114 -0
- package/out-js/decentraland/sdk/components/sun.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +10 -174
- package/out-js/decentraland/sdk/components/text_shape.gen.js +59 -39
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/texture_camera.gen.d.ts +86 -0
- package/out-js/decentraland/sdk/components/texture_camera.gen.js +297 -0
- package/out-js/decentraland/sdk/components/texture_camera.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.d.ts +77 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js +203 -0
- package/out-js/decentraland/sdk/components/touch_screen_controls.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween.gen.d.ts +220 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +1214 -0
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js +124 -0
- package/out-js/decentraland/sdk/components/tween_sequence.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.d.ts +40 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js +122 -0
- package/out-js/decentraland/sdk/components/tween_state.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +8 -314
- package/out-js/decentraland/sdk/components/ui_background.gen.js +40 -31
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_canvas.gen.d.ts +35 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js +98 -0
- package/out-js/decentraland/sdk/components/ui_canvas.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +10 -78
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +52 -30
- 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 +25 -18
- 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 +14 -104
- package/out-js/decentraland/sdk/components/ui_input.gen.js +72 -26
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.d.ts +52 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.js +82 -0
- package/out-js/decentraland/sdk/components/ui_input_binding.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +10 -16
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +42 -21
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.d.ts +31 -0
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js +71 -0
- package/out-js/decentraland/sdk/components/ui_scroll_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +28 -64
- package/out-js/decentraland/sdk/components/ui_text.gen.js +127 -25
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +84 -216
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +709 -143
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/video_player.gen.d.ts +18 -36
- package/out-js/decentraland/sdk/components/video_player.gen.js +70 -24
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +16 -16
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +41 -20
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
- package/out-js/decentraland/sdk/development/local_development.gen.d.ts +70 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js +283 -0
- package/out-js/decentraland/sdk/development/local_development.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1005 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7850 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/social_service/errors.gen.d.ts +96 -0
- package/out-js/decentraland/social_service/errors.gen.js +405 -0
- package/out-js/decentraland/social_service/errors.gen.js.map +1 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.d.ts +501 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js +2521 -0
- package/out-js/decentraland/social_service/v1/social_service_v1.gen.js.map +1 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +1892 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +9526 -0
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -0
- package/out-js/google/protobuf/descriptor.gen.d.ts +920 -87149
- package/out-js/google/protobuf/descriptor.gen.js +1719 -848
- 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 +23 -16
- package/out-js/google/protobuf/empty.gen.js.map +1 -1
- package/out-js/quests.gen.d.ts +1 -0
- package/out-js/quests.gen.js +6 -0
- package/out-js/quests.gen.js.map +1 -0
- package/out-js/sdk-development.gen.d.ts +1 -0
- package/out-js/sdk-development.gen.js +6 -0
- package/out-js/sdk-development.gen.js.map +1 -0
- package/out-ts/about.gen.ts +3 -0
- package/out-ts/decentraland/common/border_rect.gen.ts +128 -23
- package/out-ts/decentraland/common/colors.gen.ts +123 -44
- package/out-ts/decentraland/common/content_mapping.gen.ts +19 -19
- package/out-ts/decentraland/common/gradient.gen.ts +170 -0
- package/out-ts/decentraland/common/sdk/user_data.gen.ts +69 -69
- package/out-ts/decentraland/common/texture.gen.ts +235 -87
- package/out-ts/decentraland/common/vectors.gen.ts +165 -61
- package/out-ts/decentraland/kernel/apis/comms_api.gen.ts +884 -0
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +319 -32
- package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +34 -34
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +515 -1895
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +325 -292
- package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +238 -217
- package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +141 -141
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +85 -69
- package/out-ts/decentraland/kernel/apis/players.gen.ts +109 -97
- package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +201 -154
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +1418 -284
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +479 -267
- package/out-ts/decentraland/kernel/apis/scene.gen.ts +38 -38
- package/out-ts/decentraland/kernel/apis/scene_credits.gen.ts +459 -0
- package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +276 -99
- package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +53 -51
- package/out-ts/decentraland/kernel/apis/testing.gen.ts +686 -164
- package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +34 -32
- package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +66 -62
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2120 -238
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +244 -213
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +1517 -583
- package/out-ts/decentraland/pulse/pulse_clusters.gen.ts +797 -0
- package/out-ts/decentraland/quests/definitions.gen.ts +3020 -0
- package/out-ts/decentraland/{bff/http_endpoints.gen.ts → realm/about.gen.ts} +589 -232
- package/out-ts/decentraland/sdk/components/animator.gen.ts +43 -66
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +69 -22
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +80 -20
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +151 -18
- package/out-ts/decentraland/sdk/components/avatar_base.gen.ts +171 -0
- package/out-ts/decentraland/sdk/components/avatar_emote_command.gen.ts +202 -0
- package/out-ts/decentraland/sdk/components/avatar_equipped_data.gen.ts +237 -0
- package/out-ts/decentraland/sdk/components/avatar_locomotion_settings.gen.ts +237 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +321 -22
- package/out-ts/decentraland/sdk/components/avatar_movement.gen.ts +372 -0
- package/out-ts/decentraland/sdk/components/avatar_movement_info.gen.ts +435 -0
- package/out-ts/decentraland/sdk/components/avatar_nametag.gen.ts +162 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +98 -45
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +49 -22
- package/out-ts/decentraland/sdk/components/camera_layer.gen.ts +202 -0
- package/out-ts/decentraland/sdk/components/camera_layers.gen.ts +92 -0
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +17 -17
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +199 -20
- package/out-ts/decentraland/sdk/components/common/avatar_mask.gen.ts +31 -0
- package/out-ts/decentraland/sdk/components/common/explorer_ui.gen.ts +91 -0
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +70 -0
- package/out-ts/decentraland/sdk/components/common/loading_state.gen.ts +54 -0
- package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +23 -23
- package/out-ts/decentraland/sdk/components/engine_info.gen.ts +149 -0
- package/out-ts/decentraland/sdk/components/environment_fog.gen.ts +113 -0
- package/out-ts/decentraland/sdk/components/explorer_configuration.gen.ts +87 -0
- package/out-ts/decentraland/sdk/components/explorer_item_purchase_result.gen.ts +370 -0
- package/out-ts/decentraland/sdk/components/explorer_ui_events_result.gen.ts +281 -0
- package/out-ts/decentraland/sdk/components/global_light.gen.ts +138 -0
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +59 -19
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +195 -0
- package/out-ts/decentraland/sdk/components/gltf_node.gen.ts +116 -0
- package/out-ts/decentraland/sdk/components/gltf_node_modifiers.gen.ts +204 -0
- package/out-ts/decentraland/sdk/components/gltf_node_state.gen.ts +139 -0
- package/out-ts/decentraland/sdk/components/input_modifier.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +213 -94
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +215 -100
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +211 -96
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +28 -28
- package/out-ts/decentraland/sdk/components/player_identity_data.gen.ts +102 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +188 -60
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +45 -26
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +16 -16
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +111 -36
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +36 -21
- package/out-ts/decentraland/sdk/components/realm_info.gen.ts +183 -0
- package/out-ts/decentraland/sdk/components/skybox.gen.ts +440 -0
- package/out-ts/decentraland/sdk/components/sun.gen.ts +155 -0
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +56 -38
- package/out-ts/decentraland/sdk/components/texture_camera.gen.ts +362 -0
- package/out-ts/decentraland/sdk/components/touch_screen_controls.gen.ts +265 -0
- package/out-ts/decentraland/sdk/components/tween.gen.ts +1336 -0
- package/out-ts/decentraland/sdk/components/tween_sequence.gen.ts +134 -0
- package/out-ts/decentraland/sdk/components/tween_state.gen.ts +136 -0
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +24 -23
- package/out-ts/decentraland/sdk/components/ui_canvas.gen.ts +115 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +44 -26
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +17 -17
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +79 -25
- package/out-ts/decentraland/sdk/components/ui_input_binding.gen.ts +114 -0
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +36 -19
- package/out-ts/decentraland/sdk/components/ui_scroll_result.gen.ts +83 -0
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +143 -25
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +772 -113
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +81 -23
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +46 -19
- package/out-ts/decentraland/sdk/development/local_development.gen.ts +316 -0
- package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8957 -0
- package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2886 -0
- package/out-ts/decentraland/social_service/errors.gen.ts +442 -0
- package/out-ts/decentraland/social_service/v1/social_service_v1.gen.ts +2799 -0
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +10939 -0
- package/out-ts/google/protobuf/descriptor.gen.ts +1959 -618
- package/out-ts/google/protobuf/empty.gen.ts +15 -15
- package/out-ts/quests.gen.ts +3 -0
- package/out-ts/sdk-development.gen.ts +3 -0
- package/package.json +23 -11
- package/proto/decentraland/common/auth.proto +22 -0
- package/proto/decentraland/common/border_rect.proto +9 -1
- package/proto/decentraland/common/colors.proto +6 -0
- package/proto/decentraland/common/floats.proto +8 -0
- package/proto/decentraland/common/gradient.proto +16 -0
- package/proto/decentraland/common/options.proto +51 -0
- package/proto/decentraland/common/quantization_example.proto +164 -0
- package/proto/decentraland/common/texture.proto +21 -10
- package/proto/decentraland/common/vectors.proto +7 -0
- package/proto/decentraland/kernel/apis/comms_api.proto +61 -0
- package/proto/decentraland/kernel/apis/communications_controller.proto +19 -4
- package/proto/decentraland/kernel/apis/engine_api.proto +9 -110
- package/proto/decentraland/kernel/apis/permissions.proto +1 -0
- package/proto/decentraland/kernel/apis/portable_experiences.proto +4 -1
- package/proto/decentraland/kernel/apis/restricted_actions.proto +119 -9
- package/proto/decentraland/kernel/apis/runtime.proto +22 -9
- package/proto/decentraland/kernel/apis/scene_credits.proto +108 -0
- package/proto/decentraland/kernel/apis/signed_fetch.proto +6 -0
- package/proto/decentraland/kernel/apis/testing.proto +45 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +180 -0
- package/proto/decentraland/kernel/comms/rfc5/ws_comms.proto +3 -0
- package/proto/decentraland/kernel/comms/v3/archipelago.proto +120 -34
- package/proto/decentraland/pulse/pulse_client.proto +147 -0
- package/proto/decentraland/pulse/pulse_clusters.proto +94 -0
- package/proto/decentraland/pulse/pulse_server.proto +217 -0
- package/proto/decentraland/pulse/pulse_shared.proto +57 -0
- package/proto/decentraland/quests/definitions.proto +185 -0
- package/proto/decentraland/realm/about.proto +138 -0
- package/proto/decentraland/sdk/components/animator.proto +9 -4
- package/proto/decentraland/sdk/components/asset_load.proto +10 -0
- package/proto/decentraland/sdk/components/asset_load_loading_state.proto +16 -0
- package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
- package/proto/decentraland/sdk/components/audio_event.proto +12 -0
- package/proto/decentraland/sdk/components/audio_source.proto +10 -2
- package/proto/decentraland/sdk/components/audio_stream.proto +8 -0
- package/proto/decentraland/sdk/components/avatar_attach.proto +26 -3
- package/proto/decentraland/sdk/components/avatar_base.proto +16 -0
- package/proto/decentraland/sdk/components/avatar_emote_command.proto +32 -0
- package/proto/decentraland/sdk/components/avatar_equipped_data.proto +23 -0
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +22 -0
- package/proto/decentraland/sdk/components/avatar_movement.proto +63 -0
- package/proto/decentraland/sdk/components/avatar_movement_info.proto +38 -0
- package/proto/decentraland/sdk/components/avatar_nametag.proto +33 -0
- package/proto/decentraland/sdk/components/avatar_shape.proto +35 -17
- package/proto/decentraland/sdk/components/billboard.proto +11 -3
- package/proto/decentraland/sdk/components/camera_layer.proto +30 -0
- package/proto/decentraland/sdk/components/camera_layers.proto +11 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +18 -1
- package/proto/decentraland/sdk/components/common/avatar_mask.proto +7 -0
- package/proto/decentraland/sdk/components/common/camera_transition.proto +11 -0
- package/proto/decentraland/sdk/components/common/explorer_ui.proto +17 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +12 -0
- package/proto/decentraland/sdk/components/common/loading_state.proto +10 -0
- package/proto/decentraland/sdk/components/common/media_state.proto +13 -0
- package/proto/decentraland/sdk/components/engine_info.proto +17 -0
- package/proto/decentraland/sdk/components/environment_fog.proto +21 -0
- package/proto/decentraland/sdk/components/explorer_configuration.proto +11 -0
- package/proto/decentraland/sdk/components/explorer_item_purchase_result.proto +24 -0
- package/proto/decentraland/sdk/components/explorer_ui_events_result.proto +33 -0
- package/proto/decentraland/sdk/components/global_light.proto +22 -0
- package/proto/decentraland/sdk/components/gltf_container.proto +6 -0
- package/proto/decentraland/sdk/components/gltf_container_loading_state.proto +26 -0
- package/proto/decentraland/sdk/components/gltf_node.proto +42 -0
- package/proto/decentraland/sdk/components/gltf_node_modifiers.proto +25 -0
- package/proto/decentraland/sdk/components/gltf_node_state.proto +20 -0
- package/proto/decentraland/sdk/components/input_modifier.proto +22 -0
- package/proto/decentraland/sdk/components/light_source.proto +28 -0
- package/proto/decentraland/sdk/components/main_camera.proto +11 -0
- package/proto/decentraland/sdk/components/map_pin.proto +16 -0
- package/proto/decentraland/sdk/components/material.proto +16 -4
- package/proto/decentraland/sdk/components/mesh_collider.proto +13 -6
- package/proto/decentraland/sdk/components/mesh_renderer.proto +10 -5
- package/proto/decentraland/sdk/components/nft_shape.proto +3 -3
- package/proto/decentraland/sdk/components/particle_system.proto +133 -0
- package/proto/decentraland/sdk/components/physics_combined_force.proto +21 -0
- package/proto/decentraland/sdk/components/physics_combined_impulse.proto +23 -0
- package/proto/decentraland/sdk/components/player_identity_data.proto +13 -0
- package/proto/decentraland/sdk/components/pointer_events.proto +33 -2
- package/proto/decentraland/sdk/components/pointer_events_result.proto +2 -1
- package/proto/decentraland/sdk/components/primary_pointer_info.proto +44 -0
- package/proto/decentraland/sdk/components/raycast.proto +14 -1
- package/proto/decentraland/sdk/components/raycast_result.proto +1 -0
- package/proto/decentraland/sdk/components/realm_info.proto +15 -0
- package/proto/decentraland/sdk/components/skybox.proto +51 -0
- package/proto/decentraland/sdk/components/skybox_time.proto +20 -0
- package/proto/decentraland/sdk/components/sun.proto +26 -0
- package/proto/decentraland/sdk/components/text_shape.proto +1 -0
- package/proto/decentraland/sdk/components/texture_camera.proto +46 -0
- package/proto/decentraland/sdk/components/touch_screen_controls.proto +38 -0
- package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
- package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
- package/proto/decentraland/sdk/components/tween.proto +117 -0
- package/proto/decentraland/sdk/components/tween_sequence.proto +18 -0
- package/proto/decentraland/sdk/components/tween_state.proto +18 -0
- package/proto/decentraland/sdk/components/ui_background.proto +2 -2
- package/proto/decentraland/sdk/components/ui_canvas.proto +16 -0
- package/proto/decentraland/sdk/components/ui_canvas_information.proto +30 -0
- package/proto/decentraland/sdk/components/ui_dropdown.proto +1 -0
- package/proto/decentraland/sdk/components/ui_input.proto +3 -0
- package/proto/decentraland/sdk/components/ui_input_binding.proto +27 -0
- package/proto/decentraland/sdk/components/ui_input_result.proto +1 -0
- package/proto/decentraland/sdk/components/ui_layout_feedback.proto +28 -0
- package/proto/decentraland/sdk/components/ui_scroll_result.proto +12 -0
- package/proto/decentraland/sdk/components/ui_text.proto +15 -3
- package/proto/decentraland/sdk/components/ui_transform.proto +57 -0
- package/proto/decentraland/sdk/components/video_event.proto +25 -0
- package/proto/decentraland/sdk/components/video_player.proto +8 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +18 -0
- package/proto/decentraland/sdk/components/visibility_component.proto +7 -0
- package/proto/decentraland/sdk/development/local_development.proto +29 -0
- package/proto/decentraland/sdk/ecs6/components_ecs6.proto +678 -0
- package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
- package/proto/decentraland/social_service/errors.proto +30 -0
- package/proto/decentraland/{social/friendships/friendships.proto → social_service/v1/social_service_v1.proto} +73 -28
- package/proto/decentraland/social_service/v2/social_service_v2.proto +769 -0
- package/protoc-gen-bitwise/generator_csharp.js +248 -0
- package/protoc-gen-bitwise/options.js +139 -0
- package/protoc-gen-bitwise/plugin.js +87 -0
- package/protoc-gen-bitwise/runtime/cs/Quantize.cs +70 -0
- package/protoc-gen-bitwise/wire.js +239 -0
- package/public/about.proto +5 -0
- package/public/comms.proto +2 -1
- package/public/quests.proto +5 -0
- package/public/sdk-apis.proto +2 -0
- package/public/sdk-components.proto +48 -19
- package/public/sdk-development.proto +5 -0
- package/public/social.proto +3 -1
- package/out-js/bff-services.gen.d.ts +0 -1
- package/out-js/bff-services.gen.js.map +0 -1
- package/out-js/decentraland/bff/authentication_service.gen.d.ts +0 -253
- package/out-js/decentraland/bff/authentication_service.gen.js +0 -351
- package/out-js/decentraland/bff/authentication_service.gen.js.map +0 -1
- package/out-js/decentraland/bff/comms_director_service.gen.d.ts +0 -289
- package/out-js/decentraland/bff/comms_director_service.gen.js +0 -228
- package/out-js/decentraland/bff/comms_director_service.gen.js.map +0 -1
- package/out-js/decentraland/bff/comms_service.gen.d.ts +0 -348
- package/out-js/decentraland/bff/comms_service.gen.js +0 -175
- package/out-js/decentraland/bff/comms_service.gen.js.map +0 -1
- package/out-js/decentraland/bff/http_endpoints.gen.d.ts +0 -929
- package/out-js/decentraland/bff/http_endpoints.gen.js +0 -873
- package/out-js/decentraland/bff/http_endpoints.gen.js.map +0 -1
- package/out-js/decentraland/bff/topics_service.gen.d.ts +0 -272
- package/out-js/decentraland/bff/topics_service.gen.js +0 -386
- package/out-js/decentraland/bff/topics_service.gen.js.map +0 -1
- package/out-js/decentraland/social/friendships/friendships.gen.d.ts +0 -4893
- package/out-js/decentraland/social/friendships/friendships.gen.js +0 -1399
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +0 -1
- package/out-ts/bff-services.gen.ts +0 -3
- package/out-ts/decentraland/bff/authentication_service.gen.ts +0 -419
- package/out-ts/decentraland/bff/comms_director_service.gen.ts +0 -272
- package/out-ts/decentraland/bff/comms_service.gen.ts +0 -212
- package/out-ts/decentraland/bff/topics_service.gen.ts +0 -468
- package/out-ts/decentraland/social/friendships/friendships.gen.ts +0 -1680
- package/proto/buf.yaml +0 -47
- package/proto/decentraland/bff/authentication_service.proto +0 -39
- package/proto/decentraland/bff/comms_director_service.proto +0 -33
- package/proto/decentraland/bff/comms_service.proto +0 -25
- package/proto/decentraland/bff/http_endpoints.proto +0 -80
- package/proto/decentraland/bff/topics_service.proto +0 -34
- package/proto/google/LICENSE +0 -27
- package/proto/google/README.md +0 -1
- package/proto/google/api/annotations.json +0 -83
- package/proto/google/api/annotations.proto +0 -11
- package/proto/google/api/http.json +0 -86
- package/proto/google/api/http.proto +0 -31
- package/proto/google/protobuf/api.json +0 -118
- package/proto/google/protobuf/api.proto +0 -34
- package/proto/google/protobuf/descriptor.json +0 -739
- package/proto/google/protobuf/descriptor.proto +0 -286
- package/proto/google/protobuf/source_context.json +0 -20
- package/proto/google/protobuf/source_context.proto +0 -7
- package/proto/google/protobuf/type.json +0 -202
- package/proto/google/protobuf/type.proto +0 -89
- package/public/bff-services.proto +0 -16
|
@@ -1,57 +1,190 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
2
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Position } from "../../../common/vectors.gen";
|
|
3
5
|
|
|
4
6
|
export const protobufPackage = "decentraland.kernel.comms.v3";
|
|
5
7
|
|
|
6
|
-
export enum
|
|
7
|
-
|
|
8
|
-
TT_WS = 1,
|
|
8
|
+
export enum KickedReason {
|
|
9
|
+
KR_NEW_SESSION = 0,
|
|
9
10
|
UNRECOGNIZED = -1,
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
export function
|
|
13
|
+
export function kickedReasonFromJSON(object: any): KickedReason {
|
|
13
14
|
switch (object) {
|
|
14
15
|
case 0:
|
|
15
|
-
case "
|
|
16
|
-
return
|
|
16
|
+
case "KR_NEW_SESSION":
|
|
17
|
+
return KickedReason.KR_NEW_SESSION;
|
|
18
|
+
case -1:
|
|
19
|
+
case "UNRECOGNIZED":
|
|
20
|
+
default:
|
|
21
|
+
return KickedReason.UNRECOGNIZED;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function kickedReasonToJSON(object: KickedReason): string {
|
|
26
|
+
switch (object) {
|
|
27
|
+
case KickedReason.KR_NEW_SESSION:
|
|
28
|
+
return "KR_NEW_SESSION";
|
|
29
|
+
case KickedReason.UNRECOGNIZED:
|
|
30
|
+
default:
|
|
31
|
+
return "UNRECOGNIZED";
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export enum ControlErrorCode {
|
|
36
|
+
CONTROL_ERROR_CODE_UNSPECIFIED = 0,
|
|
37
|
+
CONTROL_ERROR_CODE_INVALID_FRAME = 1001,
|
|
38
|
+
CONTROL_ERROR_CODE_PROTOCOL_VIOLATION = 1002,
|
|
39
|
+
CONTROL_ERROR_CODE_AUTH_FAILED = 1003,
|
|
40
|
+
CONTROL_ERROR_CODE_STALE_EPOCH = 1004,
|
|
41
|
+
CONTROL_ERROR_CODE_AUTHORITY_UNAVAILABLE = 1005,
|
|
42
|
+
CONTROL_ERROR_CODE_AUTHORITY_CONFLICT = 1006,
|
|
43
|
+
CONTROL_ERROR_CODE_GAP_REQUIRES_SNAPSHOT = 1007,
|
|
44
|
+
CONTROL_ERROR_CODE_LIMIT_EXCEEDED = 1008,
|
|
45
|
+
CONTROL_ERROR_CODE_INVALID_LANE = 1009,
|
|
46
|
+
CONTROL_ERROR_CODE_STALE_REQUEST = 1010,
|
|
47
|
+
UNRECOGNIZED = -1,
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function controlErrorCodeFromJSON(object: any): ControlErrorCode {
|
|
51
|
+
switch (object) {
|
|
52
|
+
case 0:
|
|
53
|
+
case "CONTROL_ERROR_CODE_UNSPECIFIED":
|
|
54
|
+
return ControlErrorCode.CONTROL_ERROR_CODE_UNSPECIFIED;
|
|
55
|
+
case 1001:
|
|
56
|
+
case "CONTROL_ERROR_CODE_INVALID_FRAME":
|
|
57
|
+
return ControlErrorCode.CONTROL_ERROR_CODE_INVALID_FRAME;
|
|
58
|
+
case 1002:
|
|
59
|
+
case "CONTROL_ERROR_CODE_PROTOCOL_VIOLATION":
|
|
60
|
+
return ControlErrorCode.CONTROL_ERROR_CODE_PROTOCOL_VIOLATION;
|
|
61
|
+
case 1003:
|
|
62
|
+
case "CONTROL_ERROR_CODE_AUTH_FAILED":
|
|
63
|
+
return ControlErrorCode.CONTROL_ERROR_CODE_AUTH_FAILED;
|
|
64
|
+
case 1004:
|
|
65
|
+
case "CONTROL_ERROR_CODE_STALE_EPOCH":
|
|
66
|
+
return ControlErrorCode.CONTROL_ERROR_CODE_STALE_EPOCH;
|
|
67
|
+
case 1005:
|
|
68
|
+
case "CONTROL_ERROR_CODE_AUTHORITY_UNAVAILABLE":
|
|
69
|
+
return ControlErrorCode.CONTROL_ERROR_CODE_AUTHORITY_UNAVAILABLE;
|
|
70
|
+
case 1006:
|
|
71
|
+
case "CONTROL_ERROR_CODE_AUTHORITY_CONFLICT":
|
|
72
|
+
return ControlErrorCode.CONTROL_ERROR_CODE_AUTHORITY_CONFLICT;
|
|
73
|
+
case 1007:
|
|
74
|
+
case "CONTROL_ERROR_CODE_GAP_REQUIRES_SNAPSHOT":
|
|
75
|
+
return ControlErrorCode.CONTROL_ERROR_CODE_GAP_REQUIRES_SNAPSHOT;
|
|
76
|
+
case 1008:
|
|
77
|
+
case "CONTROL_ERROR_CODE_LIMIT_EXCEEDED":
|
|
78
|
+
return ControlErrorCode.CONTROL_ERROR_CODE_LIMIT_EXCEEDED;
|
|
79
|
+
case 1009:
|
|
80
|
+
case "CONTROL_ERROR_CODE_INVALID_LANE":
|
|
81
|
+
return ControlErrorCode.CONTROL_ERROR_CODE_INVALID_LANE;
|
|
82
|
+
case 1010:
|
|
83
|
+
case "CONTROL_ERROR_CODE_STALE_REQUEST":
|
|
84
|
+
return ControlErrorCode.CONTROL_ERROR_CODE_STALE_REQUEST;
|
|
85
|
+
case -1:
|
|
86
|
+
case "UNRECOGNIZED":
|
|
87
|
+
default:
|
|
88
|
+
return ControlErrorCode.UNRECOGNIZED;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function controlErrorCodeToJSON(object: ControlErrorCode): string {
|
|
93
|
+
switch (object) {
|
|
94
|
+
case ControlErrorCode.CONTROL_ERROR_CODE_UNSPECIFIED:
|
|
95
|
+
return "CONTROL_ERROR_CODE_UNSPECIFIED";
|
|
96
|
+
case ControlErrorCode.CONTROL_ERROR_CODE_INVALID_FRAME:
|
|
97
|
+
return "CONTROL_ERROR_CODE_INVALID_FRAME";
|
|
98
|
+
case ControlErrorCode.CONTROL_ERROR_CODE_PROTOCOL_VIOLATION:
|
|
99
|
+
return "CONTROL_ERROR_CODE_PROTOCOL_VIOLATION";
|
|
100
|
+
case ControlErrorCode.CONTROL_ERROR_CODE_AUTH_FAILED:
|
|
101
|
+
return "CONTROL_ERROR_CODE_AUTH_FAILED";
|
|
102
|
+
case ControlErrorCode.CONTROL_ERROR_CODE_STALE_EPOCH:
|
|
103
|
+
return "CONTROL_ERROR_CODE_STALE_EPOCH";
|
|
104
|
+
case ControlErrorCode.CONTROL_ERROR_CODE_AUTHORITY_UNAVAILABLE:
|
|
105
|
+
return "CONTROL_ERROR_CODE_AUTHORITY_UNAVAILABLE";
|
|
106
|
+
case ControlErrorCode.CONTROL_ERROR_CODE_AUTHORITY_CONFLICT:
|
|
107
|
+
return "CONTROL_ERROR_CODE_AUTHORITY_CONFLICT";
|
|
108
|
+
case ControlErrorCode.CONTROL_ERROR_CODE_GAP_REQUIRES_SNAPSHOT:
|
|
109
|
+
return "CONTROL_ERROR_CODE_GAP_REQUIRES_SNAPSHOT";
|
|
110
|
+
case ControlErrorCode.CONTROL_ERROR_CODE_LIMIT_EXCEEDED:
|
|
111
|
+
return "CONTROL_ERROR_CODE_LIMIT_EXCEEDED";
|
|
112
|
+
case ControlErrorCode.CONTROL_ERROR_CODE_INVALID_LANE:
|
|
113
|
+
return "CONTROL_ERROR_CODE_INVALID_LANE";
|
|
114
|
+
case ControlErrorCode.CONTROL_ERROR_CODE_STALE_REQUEST:
|
|
115
|
+
return "CONTROL_ERROR_CODE_STALE_REQUEST";
|
|
116
|
+
case ControlErrorCode.UNRECOGNIZED:
|
|
117
|
+
default:
|
|
118
|
+
return "UNRECOGNIZED";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export enum ControlRetryClass {
|
|
123
|
+
CONTROL_RETRY_CLASS_UNSPECIFIED = 0,
|
|
124
|
+
CONTROL_RETRY_CLASS_NEVER = 1,
|
|
125
|
+
CONTROL_RETRY_CLASS_AFTER_RECONNECT = 2,
|
|
126
|
+
CONTROL_RETRY_CLASS_LATER = 3,
|
|
127
|
+
UNRECOGNIZED = -1,
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function controlRetryClassFromJSON(object: any): ControlRetryClass {
|
|
131
|
+
switch (object) {
|
|
132
|
+
case 0:
|
|
133
|
+
case "CONTROL_RETRY_CLASS_UNSPECIFIED":
|
|
134
|
+
return ControlRetryClass.CONTROL_RETRY_CLASS_UNSPECIFIED;
|
|
17
135
|
case 1:
|
|
18
|
-
case "
|
|
19
|
-
return
|
|
136
|
+
case "CONTROL_RETRY_CLASS_NEVER":
|
|
137
|
+
return ControlRetryClass.CONTROL_RETRY_CLASS_NEVER;
|
|
138
|
+
case 2:
|
|
139
|
+
case "CONTROL_RETRY_CLASS_AFTER_RECONNECT":
|
|
140
|
+
return ControlRetryClass.CONTROL_RETRY_CLASS_AFTER_RECONNECT;
|
|
141
|
+
case 3:
|
|
142
|
+
case "CONTROL_RETRY_CLASS_LATER":
|
|
143
|
+
return ControlRetryClass.CONTROL_RETRY_CLASS_LATER;
|
|
20
144
|
case -1:
|
|
21
145
|
case "UNRECOGNIZED":
|
|
22
146
|
default:
|
|
23
|
-
return
|
|
147
|
+
return ControlRetryClass.UNRECOGNIZED;
|
|
24
148
|
}
|
|
25
149
|
}
|
|
26
150
|
|
|
27
|
-
export function
|
|
151
|
+
export function controlRetryClassToJSON(object: ControlRetryClass): string {
|
|
28
152
|
switch (object) {
|
|
29
|
-
case
|
|
30
|
-
return "
|
|
31
|
-
case
|
|
32
|
-
return "
|
|
33
|
-
case
|
|
153
|
+
case ControlRetryClass.CONTROL_RETRY_CLASS_UNSPECIFIED:
|
|
154
|
+
return "CONTROL_RETRY_CLASS_UNSPECIFIED";
|
|
155
|
+
case ControlRetryClass.CONTROL_RETRY_CLASS_NEVER:
|
|
156
|
+
return "CONTROL_RETRY_CLASS_NEVER";
|
|
157
|
+
case ControlRetryClass.CONTROL_RETRY_CLASS_AFTER_RECONNECT:
|
|
158
|
+
return "CONTROL_RETRY_CLASS_AFTER_RECONNECT";
|
|
159
|
+
case ControlRetryClass.CONTROL_RETRY_CLASS_LATER:
|
|
160
|
+
return "CONTROL_RETRY_CLASS_LATER";
|
|
161
|
+
case ControlRetryClass.UNRECOGNIZED:
|
|
34
162
|
default:
|
|
35
163
|
return "UNRECOGNIZED";
|
|
36
164
|
}
|
|
37
165
|
}
|
|
38
166
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
167
|
+
/** Server->Client messsages */
|
|
168
|
+
export interface ChallengeResponseMessage {
|
|
169
|
+
challengeToSign: string;
|
|
170
|
+
alreadyConnected: boolean;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface WelcomeMessage {
|
|
174
|
+
peerId: string;
|
|
43
175
|
}
|
|
44
176
|
|
|
45
177
|
export interface IslandChangedMessage {
|
|
46
178
|
islandId: string;
|
|
47
179
|
connStr: string;
|
|
48
180
|
fromIslandId?: string | undefined;
|
|
49
|
-
peers: { [key: string]:
|
|
181
|
+
peers: { [key: string]: Position };
|
|
182
|
+
assignmentContext: AssignmentContext | undefined;
|
|
50
183
|
}
|
|
51
184
|
|
|
52
185
|
export interface IslandChangedMessage_PeersEntry {
|
|
53
186
|
key: string;
|
|
54
|
-
value:
|
|
187
|
+
value: Position | undefined;
|
|
55
188
|
}
|
|
56
189
|
|
|
57
190
|
export interface LeftIslandMessage {
|
|
@@ -64,157 +197,255 @@ export interface JoinIslandMessage {
|
|
|
64
197
|
peerId: string;
|
|
65
198
|
}
|
|
66
199
|
|
|
67
|
-
export interface
|
|
68
|
-
|
|
69
|
-
peers: string[];
|
|
70
|
-
maxPeers: number;
|
|
71
|
-
center: Position3DMessage | undefined;
|
|
72
|
-
radius: number;
|
|
200
|
+
export interface KickedMessage {
|
|
201
|
+
reason: KickedReason;
|
|
73
202
|
}
|
|
74
203
|
|
|
75
|
-
export interface
|
|
76
|
-
|
|
204
|
+
export interface ServerPacket {
|
|
205
|
+
message?:
|
|
206
|
+
| { $case: "challengeResponse"; challengeResponse: ChallengeResponseMessage }
|
|
207
|
+
| { $case: "welcome"; welcome: WelcomeMessage }
|
|
208
|
+
| { $case: "islandChanged"; islandChanged: IslandChangedMessage }
|
|
209
|
+
| { $case: "leftIsland"; leftIsland: LeftIslandMessage }
|
|
210
|
+
| { $case: "joinIsland"; joinIsland: JoinIslandMessage }
|
|
211
|
+
| { $case: "kicked"; kicked: KickedMessage }
|
|
212
|
+
| { $case: "ack"; ack: Ack }
|
|
213
|
+
| { $case: "error"; error: ControlError }
|
|
214
|
+
| undefined;
|
|
215
|
+
requestSequence: number;
|
|
77
216
|
}
|
|
78
217
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
218
|
+
/** Client->Server messsages */
|
|
219
|
+
export interface ChallengeRequestMessage {
|
|
220
|
+
address: string;
|
|
82
221
|
}
|
|
83
222
|
|
|
84
|
-
export interface
|
|
85
|
-
|
|
86
|
-
usersCount: number;
|
|
223
|
+
export interface SignedChallengeMessage {
|
|
224
|
+
authChainJson: string;
|
|
87
225
|
}
|
|
88
226
|
|
|
89
|
-
export interface
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
227
|
+
export interface Heartbeat {
|
|
228
|
+
position: Position | undefined;
|
|
229
|
+
desiredRoom?: string | undefined;
|
|
230
|
+
sampleSequence?: number | undefined;
|
|
93
231
|
}
|
|
94
232
|
|
|
95
|
-
export interface
|
|
96
|
-
|
|
97
|
-
|
|
233
|
+
export interface ClientPacket {
|
|
234
|
+
message?:
|
|
235
|
+
| { $case: "challengeRequest"; challengeRequest: ChallengeRequestMessage }
|
|
236
|
+
| { $case: "signedChallenge"; signedChallenge: SignedChallengeMessage }
|
|
237
|
+
| { $case: "heartbeat"; heartbeat: Heartbeat }
|
|
238
|
+
| { $case: "ack"; ack: Ack }
|
|
239
|
+
| { $case: "requestSnapshot"; requestSnapshot: RequestSnapshot }
|
|
240
|
+
| undefined;
|
|
241
|
+
requestSequence: number;
|
|
98
242
|
}
|
|
99
243
|
|
|
100
|
-
export interface
|
|
101
|
-
|
|
102
|
-
|
|
244
|
+
export interface AssignmentContext {
|
|
245
|
+
laneHandle: number;
|
|
246
|
+
assignmentRevision: number;
|
|
247
|
+
realmRevision: number;
|
|
248
|
+
fencingToken: number;
|
|
249
|
+
leaseExpiresAtMs: number;
|
|
250
|
+
removed: boolean;
|
|
103
251
|
}
|
|
104
252
|
|
|
105
|
-
export interface
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
authRequest: TransportAuthorizationRequest;
|
|
109
|
-
} | { $case: "authResponse"; authResponse: TransportAuthorizationResponse };
|
|
253
|
+
export interface Ack {
|
|
254
|
+
laneHandle: number;
|
|
255
|
+
appliedRevision: number;
|
|
110
256
|
}
|
|
111
257
|
|
|
112
|
-
|
|
113
|
-
|
|
258
|
+
export interface RequestSnapshot {
|
|
259
|
+
laneHandle: number;
|
|
260
|
+
fromRevision?: number | undefined;
|
|
114
261
|
}
|
|
115
262
|
|
|
116
|
-
export
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
263
|
+
export interface ControlError {
|
|
264
|
+
code: ControlErrorCode;
|
|
265
|
+
retry: ControlRetryClass;
|
|
266
|
+
publicDetail?: string | undefined;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/** Others */
|
|
270
|
+
export interface IslandData {
|
|
271
|
+
id: string;
|
|
272
|
+
peers: string[];
|
|
273
|
+
maxPeers: number;
|
|
274
|
+
center: Position | undefined;
|
|
275
|
+
radius: number;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface IslandStatusMessage {
|
|
279
|
+
data: IslandData[];
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface ServiceStatus {
|
|
283
|
+
currentTime: number;
|
|
284
|
+
commitHash?: string | undefined;
|
|
285
|
+
userCount: number;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface ServiceDiscoveryMessage {
|
|
289
|
+
serverName: string;
|
|
290
|
+
status: ServiceStatus | undefined;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
function createBaseChallengeResponseMessage(): ChallengeResponseMessage {
|
|
294
|
+
return { challengeToSign: "", alreadyConnected: false };
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export namespace ChallengeResponseMessage {
|
|
298
|
+
export function encode(message: ChallengeResponseMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
299
|
+
if (message.challengeToSign !== undefined && message.challengeToSign !== "") {
|
|
300
|
+
writer.uint32(10).string(message.challengeToSign);
|
|
123
301
|
}
|
|
124
|
-
if (message.
|
|
125
|
-
writer.uint32(
|
|
302
|
+
if (message.alreadyConnected === true) {
|
|
303
|
+
writer.uint32(16).bool(message.alreadyConnected);
|
|
126
304
|
}
|
|
127
305
|
return writer;
|
|
128
|
-
}
|
|
306
|
+
}
|
|
129
307
|
|
|
130
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
308
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ChallengeResponseMessage {
|
|
131
309
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
132
310
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
133
|
-
const message =
|
|
311
|
+
const message = createBaseChallengeResponseMessage();
|
|
134
312
|
while (reader.pos < end) {
|
|
135
313
|
const tag = reader.uint32();
|
|
136
314
|
switch (tag >>> 3) {
|
|
137
315
|
case 1:
|
|
138
|
-
if (tag
|
|
316
|
+
if (tag !== 10) {
|
|
139
317
|
break;
|
|
140
318
|
}
|
|
141
319
|
|
|
142
|
-
message.
|
|
320
|
+
message.challengeToSign = reader.string();
|
|
143
321
|
continue;
|
|
144
322
|
case 2:
|
|
145
|
-
if (tag
|
|
323
|
+
if (tag !== 16) {
|
|
146
324
|
break;
|
|
147
325
|
}
|
|
148
326
|
|
|
149
|
-
message.
|
|
327
|
+
message.alreadyConnected = reader.bool();
|
|
150
328
|
continue;
|
|
151
|
-
|
|
152
|
-
|
|
329
|
+
}
|
|
330
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
reader.skipType(tag & 7);
|
|
334
|
+
}
|
|
335
|
+
return message;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export function fromJSON(object: any): ChallengeResponseMessage {
|
|
339
|
+
return {
|
|
340
|
+
challengeToSign: isSet(object.challengeToSign) ? String(object.challengeToSign) : "",
|
|
341
|
+
alreadyConnected: isSet(object.alreadyConnected) ? Boolean(object.alreadyConnected) : false,
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export function toJSON(message: ChallengeResponseMessage): unknown {
|
|
346
|
+
const obj: any = {};
|
|
347
|
+
message.challengeToSign !== undefined && (obj.challengeToSign = message.challengeToSign);
|
|
348
|
+
message.alreadyConnected !== undefined && (obj.alreadyConnected = message.alreadyConnected);
|
|
349
|
+
return obj;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export function create<I extends Exact<DeepPartial<ChallengeResponseMessage>, I>>(
|
|
353
|
+
base?: I,
|
|
354
|
+
): ChallengeResponseMessage {
|
|
355
|
+
return ChallengeResponseMessage.fromPartial(base ?? {});
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export function fromPartial<I extends Exact<DeepPartial<ChallengeResponseMessage>, I>>(
|
|
359
|
+
object: I,
|
|
360
|
+
): ChallengeResponseMessage {
|
|
361
|
+
const message = createBaseChallengeResponseMessage();
|
|
362
|
+
message.challengeToSign = object.challengeToSign ?? "";
|
|
363
|
+
message.alreadyConnected = object.alreadyConnected ?? false;
|
|
364
|
+
return message;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
function createBaseWelcomeMessage(): WelcomeMessage {
|
|
369
|
+
return { peerId: "" };
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export namespace WelcomeMessage {
|
|
373
|
+
export function encode(message: WelcomeMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
374
|
+
if (message.peerId !== undefined && message.peerId !== "") {
|
|
375
|
+
writer.uint32(10).string(message.peerId);
|
|
376
|
+
}
|
|
377
|
+
return writer;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WelcomeMessage {
|
|
381
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
382
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
383
|
+
const message = createBaseWelcomeMessage();
|
|
384
|
+
while (reader.pos < end) {
|
|
385
|
+
const tag = reader.uint32();
|
|
386
|
+
switch (tag >>> 3) {
|
|
387
|
+
case 1:
|
|
388
|
+
if (tag !== 10) {
|
|
153
389
|
break;
|
|
154
390
|
}
|
|
155
391
|
|
|
156
|
-
message.
|
|
392
|
+
message.peerId = reader.string();
|
|
157
393
|
continue;
|
|
158
394
|
}
|
|
159
|
-
if ((tag & 7)
|
|
395
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
160
396
|
break;
|
|
161
397
|
}
|
|
162
398
|
reader.skipType(tag & 7);
|
|
163
399
|
}
|
|
164
400
|
return message;
|
|
165
|
-
}
|
|
401
|
+
}
|
|
166
402
|
|
|
167
|
-
fromJSON(object: any):
|
|
168
|
-
return {
|
|
169
|
-
|
|
170
|
-
y: isSet(object.y) ? Number(object.y) : 0,
|
|
171
|
-
z: isSet(object.z) ? Number(object.z) : 0,
|
|
172
|
-
};
|
|
173
|
-
},
|
|
403
|
+
export function fromJSON(object: any): WelcomeMessage {
|
|
404
|
+
return { peerId: isSet(object.peerId) ? String(object.peerId) : "" };
|
|
405
|
+
}
|
|
174
406
|
|
|
175
|
-
toJSON(message:
|
|
407
|
+
export function toJSON(message: WelcomeMessage): unknown {
|
|
176
408
|
const obj: any = {};
|
|
177
|
-
message.
|
|
178
|
-
message.y !== undefined && (obj.y = message.y);
|
|
179
|
-
message.z !== undefined && (obj.z = message.z);
|
|
409
|
+
message.peerId !== undefined && (obj.peerId = message.peerId);
|
|
180
410
|
return obj;
|
|
181
|
-
}
|
|
411
|
+
}
|
|
182
412
|
|
|
183
|
-
create<I extends Exact<DeepPartial<
|
|
184
|
-
return
|
|
185
|
-
}
|
|
413
|
+
export function create<I extends Exact<DeepPartial<WelcomeMessage>, I>>(base?: I): WelcomeMessage {
|
|
414
|
+
return WelcomeMessage.fromPartial(base ?? {});
|
|
415
|
+
}
|
|
186
416
|
|
|
187
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
188
|
-
const message =
|
|
189
|
-
message.
|
|
190
|
-
message.y = object.y ?? 0;
|
|
191
|
-
message.z = object.z ?? 0;
|
|
417
|
+
export function fromPartial<I extends Exact<DeepPartial<WelcomeMessage>, I>>(object: I): WelcomeMessage {
|
|
418
|
+
const message = createBaseWelcomeMessage();
|
|
419
|
+
message.peerId = object.peerId ?? "";
|
|
192
420
|
return message;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
195
423
|
|
|
196
424
|
function createBaseIslandChangedMessage(): IslandChangedMessage {
|
|
197
|
-
return { islandId: "", connStr: "", fromIslandId: undefined, peers: {} };
|
|
425
|
+
return { islandId: "", connStr: "", fromIslandId: undefined, peers: {}, assignmentContext: undefined };
|
|
198
426
|
}
|
|
199
427
|
|
|
200
|
-
export
|
|
201
|
-
encode(message: IslandChangedMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
202
|
-
if (message.islandId !== "") {
|
|
428
|
+
export namespace IslandChangedMessage {
|
|
429
|
+
export function encode(message: IslandChangedMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
430
|
+
if (message.islandId !== undefined && message.islandId !== "") {
|
|
203
431
|
writer.uint32(10).string(message.islandId);
|
|
204
432
|
}
|
|
205
|
-
if (message.connStr !== "") {
|
|
433
|
+
if (message.connStr !== undefined && message.connStr !== "") {
|
|
206
434
|
writer.uint32(18).string(message.connStr);
|
|
207
435
|
}
|
|
208
436
|
if (message.fromIslandId !== undefined) {
|
|
209
437
|
writer.uint32(26).string(message.fromIslandId);
|
|
210
438
|
}
|
|
211
|
-
Object.entries(message.peers).forEach(([key, value]) => {
|
|
439
|
+
Object.entries(message.peers ?? {}).forEach(([key, value]) => {
|
|
212
440
|
IslandChangedMessage_PeersEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).ldelim();
|
|
213
441
|
});
|
|
442
|
+
if (message.assignmentContext !== undefined) {
|
|
443
|
+
AssignmentContext.encode(message.assignmentContext, writer.uint32(42).fork()).ldelim();
|
|
444
|
+
}
|
|
214
445
|
return writer;
|
|
215
|
-
}
|
|
446
|
+
}
|
|
216
447
|
|
|
217
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): IslandChangedMessage {
|
|
448
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): IslandChangedMessage {
|
|
218
449
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
219
450
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
220
451
|
const message = createBaseIslandChangedMessage();
|
|
@@ -222,28 +453,28 @@ export const IslandChangedMessage = {
|
|
|
222
453
|
const tag = reader.uint32();
|
|
223
454
|
switch (tag >>> 3) {
|
|
224
455
|
case 1:
|
|
225
|
-
if (tag
|
|
456
|
+
if (tag !== 10) {
|
|
226
457
|
break;
|
|
227
458
|
}
|
|
228
459
|
|
|
229
460
|
message.islandId = reader.string();
|
|
230
461
|
continue;
|
|
231
462
|
case 2:
|
|
232
|
-
if (tag
|
|
463
|
+
if (tag !== 18) {
|
|
233
464
|
break;
|
|
234
465
|
}
|
|
235
466
|
|
|
236
467
|
message.connStr = reader.string();
|
|
237
468
|
continue;
|
|
238
469
|
case 3:
|
|
239
|
-
if (tag
|
|
470
|
+
if (tag !== 26) {
|
|
240
471
|
break;
|
|
241
472
|
}
|
|
242
473
|
|
|
243
474
|
message.fromIslandId = reader.string();
|
|
244
475
|
continue;
|
|
245
476
|
case 4:
|
|
246
|
-
if (tag
|
|
477
|
+
if (tag !== 34) {
|
|
247
478
|
break;
|
|
248
479
|
}
|
|
249
480
|
|
|
@@ -252,30 +483,40 @@ export const IslandChangedMessage = {
|
|
|
252
483
|
message.peers[entry4.key] = entry4.value;
|
|
253
484
|
}
|
|
254
485
|
continue;
|
|
486
|
+
case 5:
|
|
487
|
+
if (tag !== 42) {
|
|
488
|
+
break;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
message.assignmentContext = AssignmentContext.decode(reader, reader.uint32());
|
|
492
|
+
continue;
|
|
255
493
|
}
|
|
256
|
-
if ((tag & 7)
|
|
494
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
257
495
|
break;
|
|
258
496
|
}
|
|
259
497
|
reader.skipType(tag & 7);
|
|
260
498
|
}
|
|
261
499
|
return message;
|
|
262
|
-
}
|
|
500
|
+
}
|
|
263
501
|
|
|
264
|
-
fromJSON(object: any): IslandChangedMessage {
|
|
502
|
+
export function fromJSON(object: any): IslandChangedMessage {
|
|
265
503
|
return {
|
|
266
504
|
islandId: isSet(object.islandId) ? String(object.islandId) : "",
|
|
267
505
|
connStr: isSet(object.connStr) ? String(object.connStr) : "",
|
|
268
506
|
fromIslandId: isSet(object.fromIslandId) ? String(object.fromIslandId) : undefined,
|
|
269
507
|
peers: isObject(object.peers)
|
|
270
|
-
? Object.entries(object.peers).reduce<{ [key: string]:
|
|
271
|
-
acc[key] =
|
|
508
|
+
? Object.entries(object.peers).reduce<{ [key: string]: Position }>((acc, [key, value]) => {
|
|
509
|
+
acc[key] = Position.fromJSON(value);
|
|
272
510
|
return acc;
|
|
273
511
|
}, {})
|
|
274
512
|
: {},
|
|
513
|
+
assignmentContext: isSet(object.assignmentContext)
|
|
514
|
+
? AssignmentContext.fromJSON(object.assignmentContext)
|
|
515
|
+
: undefined,
|
|
275
516
|
};
|
|
276
|
-
}
|
|
517
|
+
}
|
|
277
518
|
|
|
278
|
-
toJSON(message: IslandChangedMessage): unknown {
|
|
519
|
+
export function toJSON(message: IslandChangedMessage): unknown {
|
|
279
520
|
const obj: any = {};
|
|
280
521
|
message.islandId !== undefined && (obj.islandId = message.islandId);
|
|
281
522
|
message.connStr !== undefined && (obj.connStr = message.connStr);
|
|
@@ -283,50 +524,57 @@ export const IslandChangedMessage = {
|
|
|
283
524
|
obj.peers = {};
|
|
284
525
|
if (message.peers) {
|
|
285
526
|
Object.entries(message.peers).forEach(([k, v]) => {
|
|
286
|
-
obj.peers[k] =
|
|
527
|
+
obj.peers[k] = Position.toJSON(v);
|
|
287
528
|
});
|
|
288
529
|
}
|
|
530
|
+
message.assignmentContext !== undefined &&
|
|
531
|
+
(obj.assignmentContext = message.assignmentContext
|
|
532
|
+
? AssignmentContext.toJSON(message.assignmentContext)
|
|
533
|
+
: undefined);
|
|
289
534
|
return obj;
|
|
290
|
-
}
|
|
535
|
+
}
|
|
291
536
|
|
|
292
|
-
create<I extends Exact<DeepPartial<IslandChangedMessage>, I>>(base?: I): IslandChangedMessage {
|
|
537
|
+
export function create<I extends Exact<DeepPartial<IslandChangedMessage>, I>>(base?: I): IslandChangedMessage {
|
|
293
538
|
return IslandChangedMessage.fromPartial(base ?? {});
|
|
294
|
-
}
|
|
539
|
+
}
|
|
295
540
|
|
|
296
|
-
fromPartial<I extends Exact<DeepPartial<IslandChangedMessage>, I>>(object: I): IslandChangedMessage {
|
|
541
|
+
export function fromPartial<I extends Exact<DeepPartial<IslandChangedMessage>, I>>(object: I): IslandChangedMessage {
|
|
297
542
|
const message = createBaseIslandChangedMessage();
|
|
298
543
|
message.islandId = object.islandId ?? "";
|
|
299
544
|
message.connStr = object.connStr ?? "";
|
|
300
545
|
message.fromIslandId = object.fromIslandId ?? undefined;
|
|
301
|
-
message.peers = Object.entries(object.peers ?? {}).reduce<{ [key: string]:
|
|
302
|
-
(
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
546
|
+
message.peers = Object.entries(object.peers ?? {}).reduce<{ [key: string]: Position }>((acc, [key, value]) => {
|
|
547
|
+
if (value !== undefined) {
|
|
548
|
+
acc[key] = Position.fromPartial(value);
|
|
549
|
+
}
|
|
550
|
+
return acc;
|
|
551
|
+
}, {});
|
|
552
|
+
message.assignmentContext = (object.assignmentContext !== undefined && object.assignmentContext !== null)
|
|
553
|
+
? AssignmentContext.fromPartial(object.assignmentContext)
|
|
554
|
+
: undefined;
|
|
310
555
|
return message;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
556
|
+
}
|
|
557
|
+
}
|
|
313
558
|
|
|
314
559
|
function createBaseIslandChangedMessage_PeersEntry(): IslandChangedMessage_PeersEntry {
|
|
315
560
|
return { key: "", value: undefined };
|
|
316
561
|
}
|
|
317
562
|
|
|
318
|
-
export
|
|
319
|
-
|
|
320
|
-
|
|
563
|
+
export namespace IslandChangedMessage_PeersEntry {
|
|
564
|
+
export function encode(
|
|
565
|
+
message: IslandChangedMessage_PeersEntry,
|
|
566
|
+
writer: _m0.Writer = _m0.Writer.create(),
|
|
567
|
+
): _m0.Writer {
|
|
568
|
+
if (message.key !== undefined && message.key !== "") {
|
|
321
569
|
writer.uint32(10).string(message.key);
|
|
322
570
|
}
|
|
323
571
|
if (message.value !== undefined) {
|
|
324
|
-
|
|
572
|
+
Position.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
325
573
|
}
|
|
326
574
|
return writer;
|
|
327
|
-
}
|
|
575
|
+
}
|
|
328
576
|
|
|
329
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): IslandChangedMessage_PeersEntry {
|
|
577
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): IslandChangedMessage_PeersEntry {
|
|
330
578
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
331
579
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
332
580
|
const message = createBaseIslandChangedMessage_PeersEntry();
|
|
@@ -334,74 +582,76 @@ export const IslandChangedMessage_PeersEntry = {
|
|
|
334
582
|
const tag = reader.uint32();
|
|
335
583
|
switch (tag >>> 3) {
|
|
336
584
|
case 1:
|
|
337
|
-
if (tag
|
|
585
|
+
if (tag !== 10) {
|
|
338
586
|
break;
|
|
339
587
|
}
|
|
340
588
|
|
|
341
589
|
message.key = reader.string();
|
|
342
590
|
continue;
|
|
343
591
|
case 2:
|
|
344
|
-
if (tag
|
|
592
|
+
if (tag !== 18) {
|
|
345
593
|
break;
|
|
346
594
|
}
|
|
347
595
|
|
|
348
|
-
message.value =
|
|
596
|
+
message.value = Position.decode(reader, reader.uint32());
|
|
349
597
|
continue;
|
|
350
598
|
}
|
|
351
|
-
if ((tag & 7)
|
|
599
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
352
600
|
break;
|
|
353
601
|
}
|
|
354
602
|
reader.skipType(tag & 7);
|
|
355
603
|
}
|
|
356
604
|
return message;
|
|
357
|
-
}
|
|
605
|
+
}
|
|
358
606
|
|
|
359
|
-
fromJSON(object: any): IslandChangedMessage_PeersEntry {
|
|
607
|
+
export function fromJSON(object: any): IslandChangedMessage_PeersEntry {
|
|
360
608
|
return {
|
|
361
609
|
key: isSet(object.key) ? String(object.key) : "",
|
|
362
|
-
value: isSet(object.value) ?
|
|
610
|
+
value: isSet(object.value) ? Position.fromJSON(object.value) : undefined,
|
|
363
611
|
};
|
|
364
|
-
}
|
|
612
|
+
}
|
|
365
613
|
|
|
366
|
-
toJSON(message: IslandChangedMessage_PeersEntry): unknown {
|
|
614
|
+
export function toJSON(message: IslandChangedMessage_PeersEntry): unknown {
|
|
367
615
|
const obj: any = {};
|
|
368
616
|
message.key !== undefined && (obj.key = message.key);
|
|
369
|
-
message.value !== undefined && (obj.value = message.value ?
|
|
617
|
+
message.value !== undefined && (obj.value = message.value ? Position.toJSON(message.value) : undefined);
|
|
370
618
|
return obj;
|
|
371
|
-
}
|
|
619
|
+
}
|
|
372
620
|
|
|
373
|
-
create<I extends Exact<DeepPartial<IslandChangedMessage_PeersEntry>, I>>(
|
|
621
|
+
export function create<I extends Exact<DeepPartial<IslandChangedMessage_PeersEntry>, I>>(
|
|
622
|
+
base?: I,
|
|
623
|
+
): IslandChangedMessage_PeersEntry {
|
|
374
624
|
return IslandChangedMessage_PeersEntry.fromPartial(base ?? {});
|
|
375
|
-
}
|
|
625
|
+
}
|
|
376
626
|
|
|
377
|
-
fromPartial<I extends Exact<DeepPartial<IslandChangedMessage_PeersEntry>, I>>(
|
|
627
|
+
export function fromPartial<I extends Exact<DeepPartial<IslandChangedMessage_PeersEntry>, I>>(
|
|
378
628
|
object: I,
|
|
379
629
|
): IslandChangedMessage_PeersEntry {
|
|
380
630
|
const message = createBaseIslandChangedMessage_PeersEntry();
|
|
381
631
|
message.key = object.key ?? "";
|
|
382
632
|
message.value = (object.value !== undefined && object.value !== null)
|
|
383
|
-
?
|
|
633
|
+
? Position.fromPartial(object.value)
|
|
384
634
|
: undefined;
|
|
385
635
|
return message;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
388
638
|
|
|
389
639
|
function createBaseLeftIslandMessage(): LeftIslandMessage {
|
|
390
640
|
return { islandId: "", peerId: "" };
|
|
391
641
|
}
|
|
392
642
|
|
|
393
|
-
export
|
|
394
|
-
encode(message: LeftIslandMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
395
|
-
if (message.islandId !== "") {
|
|
643
|
+
export namespace LeftIslandMessage {
|
|
644
|
+
export function encode(message: LeftIslandMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
645
|
+
if (message.islandId !== undefined && message.islandId !== "") {
|
|
396
646
|
writer.uint32(10).string(message.islandId);
|
|
397
647
|
}
|
|
398
|
-
if (message.peerId !== "") {
|
|
648
|
+
if (message.peerId !== undefined && message.peerId !== "") {
|
|
399
649
|
writer.uint32(18).string(message.peerId);
|
|
400
650
|
}
|
|
401
651
|
return writer;
|
|
402
|
-
}
|
|
652
|
+
}
|
|
403
653
|
|
|
404
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): LeftIslandMessage {
|
|
654
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): LeftIslandMessage {
|
|
405
655
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
406
656
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
407
657
|
const message = createBaseLeftIslandMessage();
|
|
@@ -409,70 +659,70 @@ export const LeftIslandMessage = {
|
|
|
409
659
|
const tag = reader.uint32();
|
|
410
660
|
switch (tag >>> 3) {
|
|
411
661
|
case 1:
|
|
412
|
-
if (tag
|
|
662
|
+
if (tag !== 10) {
|
|
413
663
|
break;
|
|
414
664
|
}
|
|
415
665
|
|
|
416
666
|
message.islandId = reader.string();
|
|
417
667
|
continue;
|
|
418
668
|
case 2:
|
|
419
|
-
if (tag
|
|
669
|
+
if (tag !== 18) {
|
|
420
670
|
break;
|
|
421
671
|
}
|
|
422
672
|
|
|
423
673
|
message.peerId = reader.string();
|
|
424
674
|
continue;
|
|
425
675
|
}
|
|
426
|
-
if ((tag & 7)
|
|
676
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
427
677
|
break;
|
|
428
678
|
}
|
|
429
679
|
reader.skipType(tag & 7);
|
|
430
680
|
}
|
|
431
681
|
return message;
|
|
432
|
-
}
|
|
682
|
+
}
|
|
433
683
|
|
|
434
|
-
fromJSON(object: any): LeftIslandMessage {
|
|
684
|
+
export function fromJSON(object: any): LeftIslandMessage {
|
|
435
685
|
return {
|
|
436
686
|
islandId: isSet(object.islandId) ? String(object.islandId) : "",
|
|
437
687
|
peerId: isSet(object.peerId) ? String(object.peerId) : "",
|
|
438
688
|
};
|
|
439
|
-
}
|
|
689
|
+
}
|
|
440
690
|
|
|
441
|
-
toJSON(message: LeftIslandMessage): unknown {
|
|
691
|
+
export function toJSON(message: LeftIslandMessage): unknown {
|
|
442
692
|
const obj: any = {};
|
|
443
693
|
message.islandId !== undefined && (obj.islandId = message.islandId);
|
|
444
694
|
message.peerId !== undefined && (obj.peerId = message.peerId);
|
|
445
695
|
return obj;
|
|
446
|
-
}
|
|
696
|
+
}
|
|
447
697
|
|
|
448
|
-
create<I extends Exact<DeepPartial<LeftIslandMessage>, I>>(base?: I): LeftIslandMessage {
|
|
698
|
+
export function create<I extends Exact<DeepPartial<LeftIslandMessage>, I>>(base?: I): LeftIslandMessage {
|
|
449
699
|
return LeftIslandMessage.fromPartial(base ?? {});
|
|
450
|
-
}
|
|
700
|
+
}
|
|
451
701
|
|
|
452
|
-
fromPartial<I extends Exact<DeepPartial<LeftIslandMessage>, I>>(object: I): LeftIslandMessage {
|
|
702
|
+
export function fromPartial<I extends Exact<DeepPartial<LeftIslandMessage>, I>>(object: I): LeftIslandMessage {
|
|
453
703
|
const message = createBaseLeftIslandMessage();
|
|
454
704
|
message.islandId = object.islandId ?? "";
|
|
455
705
|
message.peerId = object.peerId ?? "";
|
|
456
706
|
return message;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
459
709
|
|
|
460
710
|
function createBaseJoinIslandMessage(): JoinIslandMessage {
|
|
461
711
|
return { islandId: "", peerId: "" };
|
|
462
712
|
}
|
|
463
713
|
|
|
464
|
-
export
|
|
465
|
-
encode(message: JoinIslandMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
466
|
-
if (message.islandId !== "") {
|
|
714
|
+
export namespace JoinIslandMessage {
|
|
715
|
+
export function encode(message: JoinIslandMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
716
|
+
if (message.islandId !== undefined && message.islandId !== "") {
|
|
467
717
|
writer.uint32(10).string(message.islandId);
|
|
468
718
|
}
|
|
469
|
-
if (message.peerId !== "") {
|
|
719
|
+
if (message.peerId !== undefined && message.peerId !== "") {
|
|
470
720
|
writer.uint32(18).string(message.peerId);
|
|
471
721
|
}
|
|
472
722
|
return writer;
|
|
473
|
-
}
|
|
723
|
+
}
|
|
474
724
|
|
|
475
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): JoinIslandMessage {
|
|
725
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): JoinIslandMessage {
|
|
476
726
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
477
727
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
478
728
|
const message = createBaseJoinIslandMessage();
|
|
@@ -480,768 +730,1440 @@ export const JoinIslandMessage = {
|
|
|
480
730
|
const tag = reader.uint32();
|
|
481
731
|
switch (tag >>> 3) {
|
|
482
732
|
case 1:
|
|
483
|
-
if (tag
|
|
733
|
+
if (tag !== 10) {
|
|
484
734
|
break;
|
|
485
735
|
}
|
|
486
736
|
|
|
487
737
|
message.islandId = reader.string();
|
|
488
738
|
continue;
|
|
489
739
|
case 2:
|
|
490
|
-
if (tag
|
|
740
|
+
if (tag !== 18) {
|
|
491
741
|
break;
|
|
492
742
|
}
|
|
493
743
|
|
|
494
744
|
message.peerId = reader.string();
|
|
495
745
|
continue;
|
|
496
746
|
}
|
|
497
|
-
if ((tag & 7)
|
|
747
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
498
748
|
break;
|
|
499
749
|
}
|
|
500
750
|
reader.skipType(tag & 7);
|
|
501
751
|
}
|
|
502
752
|
return message;
|
|
503
|
-
}
|
|
753
|
+
}
|
|
504
754
|
|
|
505
|
-
fromJSON(object: any): JoinIslandMessage {
|
|
755
|
+
export function fromJSON(object: any): JoinIslandMessage {
|
|
506
756
|
return {
|
|
507
757
|
islandId: isSet(object.islandId) ? String(object.islandId) : "",
|
|
508
758
|
peerId: isSet(object.peerId) ? String(object.peerId) : "",
|
|
509
759
|
};
|
|
510
|
-
}
|
|
760
|
+
}
|
|
511
761
|
|
|
512
|
-
toJSON(message: JoinIslandMessage): unknown {
|
|
762
|
+
export function toJSON(message: JoinIslandMessage): unknown {
|
|
513
763
|
const obj: any = {};
|
|
514
764
|
message.islandId !== undefined && (obj.islandId = message.islandId);
|
|
515
765
|
message.peerId !== undefined && (obj.peerId = message.peerId);
|
|
516
766
|
return obj;
|
|
517
|
-
}
|
|
767
|
+
}
|
|
518
768
|
|
|
519
|
-
create<I extends Exact<DeepPartial<JoinIslandMessage>, I>>(base?: I): JoinIslandMessage {
|
|
769
|
+
export function create<I extends Exact<DeepPartial<JoinIslandMessage>, I>>(base?: I): JoinIslandMessage {
|
|
520
770
|
return JoinIslandMessage.fromPartial(base ?? {});
|
|
521
|
-
}
|
|
771
|
+
}
|
|
522
772
|
|
|
523
|
-
fromPartial<I extends Exact<DeepPartial<JoinIslandMessage>, I>>(object: I): JoinIslandMessage {
|
|
773
|
+
export function fromPartial<I extends Exact<DeepPartial<JoinIslandMessage>, I>>(object: I): JoinIslandMessage {
|
|
524
774
|
const message = createBaseJoinIslandMessage();
|
|
525
775
|
message.islandId = object.islandId ?? "";
|
|
526
776
|
message.peerId = object.peerId ?? "";
|
|
527
777
|
return message;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
778
|
+
}
|
|
779
|
+
}
|
|
530
780
|
|
|
531
|
-
function
|
|
532
|
-
return {
|
|
781
|
+
function createBaseKickedMessage(): KickedMessage {
|
|
782
|
+
return { reason: 0 };
|
|
533
783
|
}
|
|
534
784
|
|
|
535
|
-
export
|
|
536
|
-
encode(message:
|
|
537
|
-
if (message.
|
|
538
|
-
writer.uint32(
|
|
539
|
-
}
|
|
540
|
-
for (const v of message.peers) {
|
|
541
|
-
writer.uint32(18).string(v!);
|
|
785
|
+
export namespace KickedMessage {
|
|
786
|
+
export function encode(message: KickedMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
787
|
+
if (message.reason !== undefined && message.reason !== 0) {
|
|
788
|
+
writer.uint32(8).int32(message.reason);
|
|
542
789
|
}
|
|
543
|
-
|
|
544
|
-
|
|
790
|
+
return writer;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): KickedMessage {
|
|
794
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
795
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
796
|
+
const message = createBaseKickedMessage();
|
|
797
|
+
while (reader.pos < end) {
|
|
798
|
+
const tag = reader.uint32();
|
|
799
|
+
switch (tag >>> 3) {
|
|
800
|
+
case 1:
|
|
801
|
+
if (tag !== 8) {
|
|
802
|
+
break;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
message.reason = reader.int32() as any;
|
|
806
|
+
continue;
|
|
807
|
+
}
|
|
808
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
809
|
+
break;
|
|
810
|
+
}
|
|
811
|
+
reader.skipType(tag & 7);
|
|
545
812
|
}
|
|
546
|
-
|
|
547
|
-
|
|
813
|
+
return message;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
export function fromJSON(object: any): KickedMessage {
|
|
817
|
+
return { reason: isSet(object.reason) ? kickedReasonFromJSON(object.reason) : 0 };
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export function toJSON(message: KickedMessage): unknown {
|
|
821
|
+
const obj: any = {};
|
|
822
|
+
message.reason !== undefined && (obj.reason = kickedReasonToJSON(message.reason));
|
|
823
|
+
return obj;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export function create<I extends Exact<DeepPartial<KickedMessage>, I>>(base?: I): KickedMessage {
|
|
827
|
+
return KickedMessage.fromPartial(base ?? {});
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
export function fromPartial<I extends Exact<DeepPartial<KickedMessage>, I>>(object: I): KickedMessage {
|
|
831
|
+
const message = createBaseKickedMessage();
|
|
832
|
+
message.reason = object.reason ?? 0;
|
|
833
|
+
return message;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
function createBaseServerPacket(): ServerPacket {
|
|
838
|
+
return { message: undefined, requestSequence: 0 };
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export namespace ServerPacket {
|
|
842
|
+
export function encode(message: ServerPacket, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
843
|
+
switch (message.message?.$case) {
|
|
844
|
+
case "challengeResponse":
|
|
845
|
+
ChallengeResponseMessage.encode(message.message.challengeResponse, writer.uint32(10).fork()).ldelim();
|
|
846
|
+
break;
|
|
847
|
+
case "welcome":
|
|
848
|
+
WelcomeMessage.encode(message.message.welcome, writer.uint32(18).fork()).ldelim();
|
|
849
|
+
break;
|
|
850
|
+
case "islandChanged":
|
|
851
|
+
IslandChangedMessage.encode(message.message.islandChanged, writer.uint32(26).fork()).ldelim();
|
|
852
|
+
break;
|
|
853
|
+
case "leftIsland":
|
|
854
|
+
LeftIslandMessage.encode(message.message.leftIsland, writer.uint32(34).fork()).ldelim();
|
|
855
|
+
break;
|
|
856
|
+
case "joinIsland":
|
|
857
|
+
JoinIslandMessage.encode(message.message.joinIsland, writer.uint32(42).fork()).ldelim();
|
|
858
|
+
break;
|
|
859
|
+
case "kicked":
|
|
860
|
+
KickedMessage.encode(message.message.kicked, writer.uint32(50).fork()).ldelim();
|
|
861
|
+
break;
|
|
862
|
+
case "ack":
|
|
863
|
+
Ack.encode(message.message.ack, writer.uint32(58).fork()).ldelim();
|
|
864
|
+
break;
|
|
865
|
+
case "error":
|
|
866
|
+
ControlError.encode(message.message.error, writer.uint32(66).fork()).ldelim();
|
|
867
|
+
break;
|
|
548
868
|
}
|
|
549
|
-
if (message.
|
|
550
|
-
writer.uint32(
|
|
869
|
+
if (message.requestSequence !== undefined && message.requestSequence !== 0) {
|
|
870
|
+
writer.uint32(120).uint64(message.requestSequence);
|
|
551
871
|
}
|
|
552
872
|
return writer;
|
|
553
|
-
}
|
|
873
|
+
}
|
|
554
874
|
|
|
555
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
875
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ServerPacket {
|
|
556
876
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
557
877
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
558
|
-
const message =
|
|
878
|
+
const message = createBaseServerPacket();
|
|
559
879
|
while (reader.pos < end) {
|
|
560
880
|
const tag = reader.uint32();
|
|
561
881
|
switch (tag >>> 3) {
|
|
562
882
|
case 1:
|
|
563
|
-
if (tag
|
|
883
|
+
if (tag !== 10) {
|
|
564
884
|
break;
|
|
565
885
|
}
|
|
566
886
|
|
|
567
|
-
message.
|
|
887
|
+
message.message = {
|
|
888
|
+
$case: "challengeResponse",
|
|
889
|
+
challengeResponse: ChallengeResponseMessage.decode(reader, reader.uint32()),
|
|
890
|
+
};
|
|
568
891
|
continue;
|
|
569
892
|
case 2:
|
|
570
|
-
if (tag
|
|
893
|
+
if (tag !== 18) {
|
|
571
894
|
break;
|
|
572
895
|
}
|
|
573
896
|
|
|
574
|
-
message.
|
|
897
|
+
message.message = { $case: "welcome", welcome: WelcomeMessage.decode(reader, reader.uint32()) };
|
|
575
898
|
continue;
|
|
576
899
|
case 3:
|
|
577
|
-
if (tag
|
|
900
|
+
if (tag !== 26) {
|
|
578
901
|
break;
|
|
579
902
|
}
|
|
580
903
|
|
|
581
|
-
message.
|
|
904
|
+
message.message = {
|
|
905
|
+
$case: "islandChanged",
|
|
906
|
+
islandChanged: IslandChangedMessage.decode(reader, reader.uint32()),
|
|
907
|
+
};
|
|
582
908
|
continue;
|
|
583
909
|
case 4:
|
|
584
|
-
if (tag
|
|
910
|
+
if (tag !== 34) {
|
|
585
911
|
break;
|
|
586
912
|
}
|
|
587
913
|
|
|
588
|
-
message.
|
|
914
|
+
message.message = { $case: "leftIsland", leftIsland: LeftIslandMessage.decode(reader, reader.uint32()) };
|
|
589
915
|
continue;
|
|
590
916
|
case 5:
|
|
591
|
-
if (tag
|
|
917
|
+
if (tag !== 42) {
|
|
592
918
|
break;
|
|
593
919
|
}
|
|
594
920
|
|
|
595
|
-
message.
|
|
921
|
+
message.message = { $case: "joinIsland", joinIsland: JoinIslandMessage.decode(reader, reader.uint32()) };
|
|
922
|
+
continue;
|
|
923
|
+
case 6:
|
|
924
|
+
if (tag !== 50) {
|
|
925
|
+
break;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
message.message = { $case: "kicked", kicked: KickedMessage.decode(reader, reader.uint32()) };
|
|
929
|
+
continue;
|
|
930
|
+
case 7:
|
|
931
|
+
if (tag !== 58) {
|
|
932
|
+
break;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
message.message = { $case: "ack", ack: Ack.decode(reader, reader.uint32()) };
|
|
936
|
+
continue;
|
|
937
|
+
case 8:
|
|
938
|
+
if (tag !== 66) {
|
|
939
|
+
break;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
message.message = { $case: "error", error: ControlError.decode(reader, reader.uint32()) };
|
|
943
|
+
continue;
|
|
944
|
+
case 15:
|
|
945
|
+
if (tag !== 120) {
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
message.requestSequence = longToNumber(reader.uint64() as Long);
|
|
596
950
|
continue;
|
|
597
951
|
}
|
|
598
|
-
if ((tag & 7)
|
|
952
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
599
953
|
break;
|
|
600
954
|
}
|
|
601
955
|
reader.skipType(tag & 7);
|
|
602
956
|
}
|
|
603
957
|
return message;
|
|
604
|
-
}
|
|
958
|
+
}
|
|
605
959
|
|
|
606
|
-
fromJSON(object: any):
|
|
960
|
+
export function fromJSON(object: any): ServerPacket {
|
|
607
961
|
return {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
962
|
+
message: isSet(object.challengeResponse)
|
|
963
|
+
? { $case: "challengeResponse", challengeResponse: ChallengeResponseMessage.fromJSON(object.challengeResponse) }
|
|
964
|
+
: isSet(object.welcome)
|
|
965
|
+
? { $case: "welcome", welcome: WelcomeMessage.fromJSON(object.welcome) }
|
|
966
|
+
: isSet(object.islandChanged)
|
|
967
|
+
? { $case: "islandChanged", islandChanged: IslandChangedMessage.fromJSON(object.islandChanged) }
|
|
968
|
+
: isSet(object.leftIsland)
|
|
969
|
+
? { $case: "leftIsland", leftIsland: LeftIslandMessage.fromJSON(object.leftIsland) }
|
|
970
|
+
: isSet(object.joinIsland)
|
|
971
|
+
? { $case: "joinIsland", joinIsland: JoinIslandMessage.fromJSON(object.joinIsland) }
|
|
972
|
+
: isSet(object.kicked)
|
|
973
|
+
? { $case: "kicked", kicked: KickedMessage.fromJSON(object.kicked) }
|
|
974
|
+
: isSet(object.ack)
|
|
975
|
+
? { $case: "ack", ack: Ack.fromJSON(object.ack) }
|
|
976
|
+
: isSet(object.error)
|
|
977
|
+
? { $case: "error", error: ControlError.fromJSON(object.error) }
|
|
978
|
+
: undefined,
|
|
979
|
+
requestSequence: isSet(object.requestSequence) ? Number(object.requestSequence) : 0,
|
|
613
980
|
};
|
|
614
|
-
}
|
|
981
|
+
}
|
|
615
982
|
|
|
616
|
-
toJSON(message:
|
|
983
|
+
export function toJSON(message: ServerPacket): unknown {
|
|
617
984
|
const obj: any = {};
|
|
618
|
-
message.
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
message.
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
985
|
+
message.message?.$case === "challengeResponse" &&
|
|
986
|
+
(obj.challengeResponse = message.message?.challengeResponse
|
|
987
|
+
? ChallengeResponseMessage.toJSON(message.message?.challengeResponse)
|
|
988
|
+
: undefined);
|
|
989
|
+
message.message?.$case === "welcome" &&
|
|
990
|
+
(obj.welcome = message.message?.welcome ? WelcomeMessage.toJSON(message.message?.welcome) : undefined);
|
|
991
|
+
message.message?.$case === "islandChanged" &&
|
|
992
|
+
(obj.islandChanged = message.message?.islandChanged
|
|
993
|
+
? IslandChangedMessage.toJSON(message.message?.islandChanged)
|
|
994
|
+
: undefined);
|
|
995
|
+
message.message?.$case === "leftIsland" &&
|
|
996
|
+
(obj.leftIsland = message.message?.leftIsland
|
|
997
|
+
? LeftIslandMessage.toJSON(message.message?.leftIsland)
|
|
998
|
+
: undefined);
|
|
999
|
+
message.message?.$case === "joinIsland" &&
|
|
1000
|
+
(obj.joinIsland = message.message?.joinIsland
|
|
1001
|
+
? JoinIslandMessage.toJSON(message.message?.joinIsland)
|
|
1002
|
+
: undefined);
|
|
1003
|
+
message.message?.$case === "kicked" &&
|
|
1004
|
+
(obj.kicked = message.message?.kicked ? KickedMessage.toJSON(message.message?.kicked) : undefined);
|
|
1005
|
+
message.message?.$case === "ack" && (obj.ack = message.message?.ack ? Ack.toJSON(message.message?.ack) : undefined);
|
|
1006
|
+
message.message?.$case === "error" &&
|
|
1007
|
+
(obj.error = message.message?.error ? ControlError.toJSON(message.message?.error) : undefined);
|
|
1008
|
+
message.requestSequence !== undefined && (obj.requestSequence = Math.round(message.requestSequence));
|
|
628
1009
|
return obj;
|
|
629
|
-
}
|
|
1010
|
+
}
|
|
630
1011
|
|
|
631
|
-
create<I extends Exact<DeepPartial<
|
|
632
|
-
return
|
|
633
|
-
}
|
|
1012
|
+
export function create<I extends Exact<DeepPartial<ServerPacket>, I>>(base?: I): ServerPacket {
|
|
1013
|
+
return ServerPacket.fromPartial(base ?? {});
|
|
1014
|
+
}
|
|
634
1015
|
|
|
635
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
636
|
-
const message =
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
1016
|
+
export function fromPartial<I extends Exact<DeepPartial<ServerPacket>, I>>(object: I): ServerPacket {
|
|
1017
|
+
const message = createBaseServerPacket();
|
|
1018
|
+
if (
|
|
1019
|
+
object.message?.$case === "challengeResponse" &&
|
|
1020
|
+
object.message?.challengeResponse !== undefined &&
|
|
1021
|
+
object.message?.challengeResponse !== null
|
|
1022
|
+
) {
|
|
1023
|
+
message.message = {
|
|
1024
|
+
$case: "challengeResponse",
|
|
1025
|
+
challengeResponse: ChallengeResponseMessage.fromPartial(object.message.challengeResponse),
|
|
1026
|
+
};
|
|
1027
|
+
}
|
|
1028
|
+
if (
|
|
1029
|
+
object.message?.$case === "welcome" && object.message?.welcome !== undefined && object.message?.welcome !== null
|
|
1030
|
+
) {
|
|
1031
|
+
message.message = { $case: "welcome", welcome: WelcomeMessage.fromPartial(object.message.welcome) };
|
|
1032
|
+
}
|
|
1033
|
+
if (
|
|
1034
|
+
object.message?.$case === "islandChanged" &&
|
|
1035
|
+
object.message?.islandChanged !== undefined &&
|
|
1036
|
+
object.message?.islandChanged !== null
|
|
1037
|
+
) {
|
|
1038
|
+
message.message = {
|
|
1039
|
+
$case: "islandChanged",
|
|
1040
|
+
islandChanged: IslandChangedMessage.fromPartial(object.message.islandChanged),
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
if (
|
|
1044
|
+
object.message?.$case === "leftIsland" &&
|
|
1045
|
+
object.message?.leftIsland !== undefined &&
|
|
1046
|
+
object.message?.leftIsland !== null
|
|
1047
|
+
) {
|
|
1048
|
+
message.message = { $case: "leftIsland", leftIsland: LeftIslandMessage.fromPartial(object.message.leftIsland) };
|
|
1049
|
+
}
|
|
1050
|
+
if (
|
|
1051
|
+
object.message?.$case === "joinIsland" &&
|
|
1052
|
+
object.message?.joinIsland !== undefined &&
|
|
1053
|
+
object.message?.joinIsland !== null
|
|
1054
|
+
) {
|
|
1055
|
+
message.message = { $case: "joinIsland", joinIsland: JoinIslandMessage.fromPartial(object.message.joinIsland) };
|
|
1056
|
+
}
|
|
1057
|
+
if (object.message?.$case === "kicked" && object.message?.kicked !== undefined && object.message?.kicked !== null) {
|
|
1058
|
+
message.message = { $case: "kicked", kicked: KickedMessage.fromPartial(object.message.kicked) };
|
|
1059
|
+
}
|
|
1060
|
+
if (object.message?.$case === "ack" && object.message?.ack !== undefined && object.message?.ack !== null) {
|
|
1061
|
+
message.message = { $case: "ack", ack: Ack.fromPartial(object.message.ack) };
|
|
1062
|
+
}
|
|
1063
|
+
if (object.message?.$case === "error" && object.message?.error !== undefined && object.message?.error !== null) {
|
|
1064
|
+
message.message = { $case: "error", error: ControlError.fromPartial(object.message.error) };
|
|
1065
|
+
}
|
|
1066
|
+
message.requestSequence = object.requestSequence ?? 0;
|
|
644
1067
|
return message;
|
|
645
|
-
}
|
|
646
|
-
}
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
647
1070
|
|
|
648
|
-
function
|
|
649
|
-
return {
|
|
1071
|
+
function createBaseChallengeRequestMessage(): ChallengeRequestMessage {
|
|
1072
|
+
return { address: "" };
|
|
650
1073
|
}
|
|
651
1074
|
|
|
652
|
-
export
|
|
653
|
-
encode(message:
|
|
654
|
-
|
|
655
|
-
|
|
1075
|
+
export namespace ChallengeRequestMessage {
|
|
1076
|
+
export function encode(message: ChallengeRequestMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1077
|
+
if (message.address !== undefined && message.address !== "") {
|
|
1078
|
+
writer.uint32(10).string(message.address);
|
|
656
1079
|
}
|
|
657
1080
|
return writer;
|
|
658
|
-
}
|
|
1081
|
+
}
|
|
659
1082
|
|
|
660
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
1083
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ChallengeRequestMessage {
|
|
661
1084
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
662
1085
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
663
|
-
const message =
|
|
1086
|
+
const message = createBaseChallengeRequestMessage();
|
|
664
1087
|
while (reader.pos < end) {
|
|
665
1088
|
const tag = reader.uint32();
|
|
666
1089
|
switch (tag >>> 3) {
|
|
667
1090
|
case 1:
|
|
668
|
-
if (tag
|
|
1091
|
+
if (tag !== 10) {
|
|
669
1092
|
break;
|
|
670
1093
|
}
|
|
671
1094
|
|
|
672
|
-
message.
|
|
1095
|
+
message.address = reader.string();
|
|
673
1096
|
continue;
|
|
674
1097
|
}
|
|
675
|
-
if ((tag & 7)
|
|
1098
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
676
1099
|
break;
|
|
677
1100
|
}
|
|
678
1101
|
reader.skipType(tag & 7);
|
|
679
1102
|
}
|
|
680
1103
|
return message;
|
|
681
|
-
}
|
|
1104
|
+
}
|
|
682
1105
|
|
|
683
|
-
fromJSON(object: any):
|
|
684
|
-
return {
|
|
685
|
-
}
|
|
1106
|
+
export function fromJSON(object: any): ChallengeRequestMessage {
|
|
1107
|
+
return { address: isSet(object.address) ? String(object.address) : "" };
|
|
1108
|
+
}
|
|
686
1109
|
|
|
687
|
-
toJSON(message:
|
|
1110
|
+
export function toJSON(message: ChallengeRequestMessage): unknown {
|
|
688
1111
|
const obj: any = {};
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
1112
|
+
message.address !== undefined && (obj.address = message.address);
|
|
1113
|
+
return obj;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
export function create<I extends Exact<DeepPartial<ChallengeRequestMessage>, I>>(base?: I): ChallengeRequestMessage {
|
|
1117
|
+
return ChallengeRequestMessage.fromPartial(base ?? {});
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
export function fromPartial<I extends Exact<DeepPartial<ChallengeRequestMessage>, I>>(
|
|
1121
|
+
object: I,
|
|
1122
|
+
): ChallengeRequestMessage {
|
|
1123
|
+
const message = createBaseChallengeRequestMessage();
|
|
1124
|
+
message.address = object.address ?? "";
|
|
1125
|
+
return message;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
function createBaseSignedChallengeMessage(): SignedChallengeMessage {
|
|
1130
|
+
return { authChainJson: "" };
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
export namespace SignedChallengeMessage {
|
|
1134
|
+
export function encode(message: SignedChallengeMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1135
|
+
if (message.authChainJson !== undefined && message.authChainJson !== "") {
|
|
1136
|
+
writer.uint32(10).string(message.authChainJson);
|
|
693
1137
|
}
|
|
1138
|
+
return writer;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): SignedChallengeMessage {
|
|
1142
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1143
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1144
|
+
const message = createBaseSignedChallengeMessage();
|
|
1145
|
+
while (reader.pos < end) {
|
|
1146
|
+
const tag = reader.uint32();
|
|
1147
|
+
switch (tag >>> 3) {
|
|
1148
|
+
case 1:
|
|
1149
|
+
if (tag !== 10) {
|
|
1150
|
+
break;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
message.authChainJson = reader.string();
|
|
1154
|
+
continue;
|
|
1155
|
+
}
|
|
1156
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1157
|
+
break;
|
|
1158
|
+
}
|
|
1159
|
+
reader.skipType(tag & 7);
|
|
1160
|
+
}
|
|
1161
|
+
return message;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
export function fromJSON(object: any): SignedChallengeMessage {
|
|
1165
|
+
return { authChainJson: isSet(object.authChainJson) ? String(object.authChainJson) : "" };
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
export function toJSON(message: SignedChallengeMessage): unknown {
|
|
1169
|
+
const obj: any = {};
|
|
1170
|
+
message.authChainJson !== undefined && (obj.authChainJson = message.authChainJson);
|
|
694
1171
|
return obj;
|
|
695
|
-
}
|
|
1172
|
+
}
|
|
696
1173
|
|
|
697
|
-
create<I extends Exact<DeepPartial<
|
|
698
|
-
return
|
|
699
|
-
}
|
|
1174
|
+
export function create<I extends Exact<DeepPartial<SignedChallengeMessage>, I>>(base?: I): SignedChallengeMessage {
|
|
1175
|
+
return SignedChallengeMessage.fromPartial(base ?? {});
|
|
1176
|
+
}
|
|
700
1177
|
|
|
701
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
702
|
-
|
|
703
|
-
|
|
1178
|
+
export function fromPartial<I extends Exact<DeepPartial<SignedChallengeMessage>, I>>(
|
|
1179
|
+
object: I,
|
|
1180
|
+
): SignedChallengeMessage {
|
|
1181
|
+
const message = createBaseSignedChallengeMessage();
|
|
1182
|
+
message.authChainJson = object.authChainJson ?? "";
|
|
704
1183
|
return message;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
707
1186
|
|
|
708
|
-
function
|
|
709
|
-
return {
|
|
1187
|
+
function createBaseHeartbeat(): Heartbeat {
|
|
1188
|
+
return { position: undefined, desiredRoom: undefined, sampleSequence: undefined };
|
|
710
1189
|
}
|
|
711
1190
|
|
|
712
|
-
export
|
|
713
|
-
encode(message:
|
|
714
|
-
if (message.
|
|
715
|
-
writer.uint32(
|
|
1191
|
+
export namespace Heartbeat {
|
|
1192
|
+
export function encode(message: Heartbeat, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1193
|
+
if (message.position !== undefined) {
|
|
1194
|
+
Position.encode(message.position, writer.uint32(10).fork()).ldelim();
|
|
716
1195
|
}
|
|
717
|
-
if (message.
|
|
718
|
-
writer.uint32(
|
|
1196
|
+
if (message.desiredRoom !== undefined) {
|
|
1197
|
+
writer.uint32(18).string(message.desiredRoom);
|
|
1198
|
+
}
|
|
1199
|
+
if (message.sampleSequence !== undefined) {
|
|
1200
|
+
writer.uint32(24).uint64(message.sampleSequence);
|
|
719
1201
|
}
|
|
720
1202
|
return writer;
|
|
721
|
-
}
|
|
1203
|
+
}
|
|
722
1204
|
|
|
723
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
1205
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Heartbeat {
|
|
724
1206
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
725
1207
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
726
|
-
const message =
|
|
1208
|
+
const message = createBaseHeartbeat();
|
|
727
1209
|
while (reader.pos < end) {
|
|
728
1210
|
const tag = reader.uint32();
|
|
729
1211
|
switch (tag >>> 3) {
|
|
730
1212
|
case 1:
|
|
731
|
-
if (tag
|
|
1213
|
+
if (tag !== 10) {
|
|
732
1214
|
break;
|
|
733
1215
|
}
|
|
734
1216
|
|
|
735
|
-
message.
|
|
1217
|
+
message.position = Position.decode(reader, reader.uint32());
|
|
736
1218
|
continue;
|
|
737
1219
|
case 2:
|
|
738
|
-
if (tag
|
|
1220
|
+
if (tag !== 18) {
|
|
739
1221
|
break;
|
|
740
1222
|
}
|
|
741
1223
|
|
|
742
|
-
message.
|
|
1224
|
+
message.desiredRoom = reader.string();
|
|
1225
|
+
continue;
|
|
1226
|
+
case 3:
|
|
1227
|
+
if (tag !== 24) {
|
|
1228
|
+
break;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
message.sampleSequence = longToNumber(reader.uint64() as Long);
|
|
743
1232
|
continue;
|
|
744
1233
|
}
|
|
745
|
-
if ((tag & 7)
|
|
1234
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
746
1235
|
break;
|
|
747
1236
|
}
|
|
748
1237
|
reader.skipType(tag & 7);
|
|
749
1238
|
}
|
|
750
1239
|
return message;
|
|
751
|
-
}
|
|
1240
|
+
}
|
|
752
1241
|
|
|
753
|
-
fromJSON(object: any):
|
|
1242
|
+
export function fromJSON(object: any): Heartbeat {
|
|
754
1243
|
return {
|
|
755
|
-
|
|
756
|
-
|
|
1244
|
+
position: isSet(object.position) ? Position.fromJSON(object.position) : undefined,
|
|
1245
|
+
desiredRoom: isSet(object.desiredRoom) ? String(object.desiredRoom) : undefined,
|
|
1246
|
+
sampleSequence: isSet(object.sampleSequence) ? Number(object.sampleSequence) : undefined,
|
|
757
1247
|
};
|
|
758
|
-
}
|
|
1248
|
+
}
|
|
759
1249
|
|
|
760
|
-
toJSON(message:
|
|
1250
|
+
export function toJSON(message: Heartbeat): unknown {
|
|
761
1251
|
const obj: any = {};
|
|
762
|
-
message.
|
|
763
|
-
message.
|
|
1252
|
+
message.position !== undefined && (obj.position = message.position ? Position.toJSON(message.position) : undefined);
|
|
1253
|
+
message.desiredRoom !== undefined && (obj.desiredRoom = message.desiredRoom);
|
|
1254
|
+
message.sampleSequence !== undefined && (obj.sampleSequence = Math.round(message.sampleSequence));
|
|
764
1255
|
return obj;
|
|
765
|
-
}
|
|
1256
|
+
}
|
|
766
1257
|
|
|
767
|
-
create<I extends Exact<DeepPartial<
|
|
768
|
-
return
|
|
769
|
-
}
|
|
1258
|
+
export function create<I extends Exact<DeepPartial<Heartbeat>, I>>(base?: I): Heartbeat {
|
|
1259
|
+
return Heartbeat.fromPartial(base ?? {});
|
|
1260
|
+
}
|
|
770
1261
|
|
|
771
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
772
|
-
const message =
|
|
773
|
-
message.
|
|
774
|
-
|
|
1262
|
+
export function fromPartial<I extends Exact<DeepPartial<Heartbeat>, I>>(object: I): Heartbeat {
|
|
1263
|
+
const message = createBaseHeartbeat();
|
|
1264
|
+
message.position = (object.position !== undefined && object.position !== null)
|
|
1265
|
+
? Position.fromPartial(object.position)
|
|
1266
|
+
: undefined;
|
|
1267
|
+
message.desiredRoom = object.desiredRoom ?? undefined;
|
|
1268
|
+
message.sampleSequence = object.sampleSequence ?? undefined;
|
|
775
1269
|
return message;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
778
1272
|
|
|
779
|
-
function
|
|
780
|
-
return {
|
|
1273
|
+
function createBaseClientPacket(): ClientPacket {
|
|
1274
|
+
return { message: undefined, requestSequence: 0 };
|
|
781
1275
|
}
|
|
782
1276
|
|
|
783
|
-
export
|
|
784
|
-
encode(message:
|
|
785
|
-
|
|
786
|
-
|
|
1277
|
+
export namespace ClientPacket {
|
|
1278
|
+
export function encode(message: ClientPacket, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1279
|
+
switch (message.message?.$case) {
|
|
1280
|
+
case "challengeRequest":
|
|
1281
|
+
ChallengeRequestMessage.encode(message.message.challengeRequest, writer.uint32(10).fork()).ldelim();
|
|
1282
|
+
break;
|
|
1283
|
+
case "signedChallenge":
|
|
1284
|
+
SignedChallengeMessage.encode(message.message.signedChallenge, writer.uint32(18).fork()).ldelim();
|
|
1285
|
+
break;
|
|
1286
|
+
case "heartbeat":
|
|
1287
|
+
Heartbeat.encode(message.message.heartbeat, writer.uint32(26).fork()).ldelim();
|
|
1288
|
+
break;
|
|
1289
|
+
case "ack":
|
|
1290
|
+
Ack.encode(message.message.ack, writer.uint32(34).fork()).ldelim();
|
|
1291
|
+
break;
|
|
1292
|
+
case "requestSnapshot":
|
|
1293
|
+
RequestSnapshot.encode(message.message.requestSnapshot, writer.uint32(42).fork()).ldelim();
|
|
1294
|
+
break;
|
|
787
1295
|
}
|
|
788
|
-
if (message.
|
|
789
|
-
writer.uint32(
|
|
1296
|
+
if (message.requestSequence !== undefined && message.requestSequence !== 0) {
|
|
1297
|
+
writer.uint32(120).uint64(message.requestSequence);
|
|
790
1298
|
}
|
|
791
1299
|
return writer;
|
|
792
|
-
}
|
|
1300
|
+
}
|
|
793
1301
|
|
|
794
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
1302
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ClientPacket {
|
|
795
1303
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
796
1304
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
797
|
-
const message =
|
|
1305
|
+
const message = createBaseClientPacket();
|
|
798
1306
|
while (reader.pos < end) {
|
|
799
1307
|
const tag = reader.uint32();
|
|
800
1308
|
switch (tag >>> 3) {
|
|
801
1309
|
case 1:
|
|
802
|
-
if (tag
|
|
1310
|
+
if (tag !== 10) {
|
|
803
1311
|
break;
|
|
804
1312
|
}
|
|
805
1313
|
|
|
806
|
-
message.
|
|
1314
|
+
message.message = {
|
|
1315
|
+
$case: "challengeRequest",
|
|
1316
|
+
challengeRequest: ChallengeRequestMessage.decode(reader, reader.uint32()),
|
|
1317
|
+
};
|
|
807
1318
|
continue;
|
|
808
1319
|
case 2:
|
|
809
|
-
if (tag
|
|
1320
|
+
if (tag !== 18) {
|
|
810
1321
|
break;
|
|
811
1322
|
}
|
|
812
1323
|
|
|
813
|
-
message.
|
|
1324
|
+
message.message = {
|
|
1325
|
+
$case: "signedChallenge",
|
|
1326
|
+
signedChallenge: SignedChallengeMessage.decode(reader, reader.uint32()),
|
|
1327
|
+
};
|
|
1328
|
+
continue;
|
|
1329
|
+
case 3:
|
|
1330
|
+
if (tag !== 26) {
|
|
1331
|
+
break;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
message.message = { $case: "heartbeat", heartbeat: Heartbeat.decode(reader, reader.uint32()) };
|
|
1335
|
+
continue;
|
|
1336
|
+
case 4:
|
|
1337
|
+
if (tag !== 34) {
|
|
1338
|
+
break;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
message.message = { $case: "ack", ack: Ack.decode(reader, reader.uint32()) };
|
|
1342
|
+
continue;
|
|
1343
|
+
case 5:
|
|
1344
|
+
if (tag !== 42) {
|
|
1345
|
+
break;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
message.message = {
|
|
1349
|
+
$case: "requestSnapshot",
|
|
1350
|
+
requestSnapshot: RequestSnapshot.decode(reader, reader.uint32()),
|
|
1351
|
+
};
|
|
1352
|
+
continue;
|
|
1353
|
+
case 15:
|
|
1354
|
+
if (tag !== 120) {
|
|
1355
|
+
break;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
message.requestSequence = longToNumber(reader.uint64() as Long);
|
|
814
1359
|
continue;
|
|
815
1360
|
}
|
|
816
|
-
if ((tag & 7)
|
|
1361
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
817
1362
|
break;
|
|
818
1363
|
}
|
|
819
1364
|
reader.skipType(tag & 7);
|
|
820
1365
|
}
|
|
821
1366
|
return message;
|
|
822
|
-
}
|
|
1367
|
+
}
|
|
823
1368
|
|
|
824
|
-
fromJSON(object: any):
|
|
1369
|
+
export function fromJSON(object: any): ClientPacket {
|
|
825
1370
|
return {
|
|
826
|
-
|
|
827
|
-
|
|
1371
|
+
message: isSet(object.challengeRequest)
|
|
1372
|
+
? { $case: "challengeRequest", challengeRequest: ChallengeRequestMessage.fromJSON(object.challengeRequest) }
|
|
1373
|
+
: isSet(object.signedChallenge)
|
|
1374
|
+
? { $case: "signedChallenge", signedChallenge: SignedChallengeMessage.fromJSON(object.signedChallenge) }
|
|
1375
|
+
: isSet(object.heartbeat)
|
|
1376
|
+
? { $case: "heartbeat", heartbeat: Heartbeat.fromJSON(object.heartbeat) }
|
|
1377
|
+
: isSet(object.ack)
|
|
1378
|
+
? { $case: "ack", ack: Ack.fromJSON(object.ack) }
|
|
1379
|
+
: isSet(object.requestSnapshot)
|
|
1380
|
+
? { $case: "requestSnapshot", requestSnapshot: RequestSnapshot.fromJSON(object.requestSnapshot) }
|
|
1381
|
+
: undefined,
|
|
1382
|
+
requestSequence: isSet(object.requestSequence) ? Number(object.requestSequence) : 0,
|
|
828
1383
|
};
|
|
829
|
-
}
|
|
1384
|
+
}
|
|
830
1385
|
|
|
831
|
-
toJSON(message:
|
|
1386
|
+
export function toJSON(message: ClientPacket): unknown {
|
|
832
1387
|
const obj: any = {};
|
|
833
|
-
message.
|
|
834
|
-
|
|
1388
|
+
message.message?.$case === "challengeRequest" &&
|
|
1389
|
+
(obj.challengeRequest = message.message?.challengeRequest
|
|
1390
|
+
? ChallengeRequestMessage.toJSON(message.message?.challengeRequest)
|
|
1391
|
+
: undefined);
|
|
1392
|
+
message.message?.$case === "signedChallenge" &&
|
|
1393
|
+
(obj.signedChallenge = message.message?.signedChallenge
|
|
1394
|
+
? SignedChallengeMessage.toJSON(message.message?.signedChallenge)
|
|
1395
|
+
: undefined);
|
|
1396
|
+
message.message?.$case === "heartbeat" &&
|
|
1397
|
+
(obj.heartbeat = message.message?.heartbeat ? Heartbeat.toJSON(message.message?.heartbeat) : undefined);
|
|
1398
|
+
message.message?.$case === "ack" && (obj.ack = message.message?.ack ? Ack.toJSON(message.message?.ack) : undefined);
|
|
1399
|
+
message.message?.$case === "requestSnapshot" &&
|
|
1400
|
+
(obj.requestSnapshot = message.message?.requestSnapshot
|
|
1401
|
+
? RequestSnapshot.toJSON(message.message?.requestSnapshot)
|
|
1402
|
+
: undefined);
|
|
1403
|
+
message.requestSequence !== undefined && (obj.requestSequence = Math.round(message.requestSequence));
|
|
835
1404
|
return obj;
|
|
836
|
-
}
|
|
1405
|
+
}
|
|
837
1406
|
|
|
838
|
-
create<I extends Exact<DeepPartial<
|
|
839
|
-
return
|
|
840
|
-
}
|
|
1407
|
+
export function create<I extends Exact<DeepPartial<ClientPacket>, I>>(base?: I): ClientPacket {
|
|
1408
|
+
return ClientPacket.fromPartial(base ?? {});
|
|
1409
|
+
}
|
|
841
1410
|
|
|
842
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
843
|
-
const message =
|
|
844
|
-
|
|
845
|
-
|
|
1411
|
+
export function fromPartial<I extends Exact<DeepPartial<ClientPacket>, I>>(object: I): ClientPacket {
|
|
1412
|
+
const message = createBaseClientPacket();
|
|
1413
|
+
if (
|
|
1414
|
+
object.message?.$case === "challengeRequest" &&
|
|
1415
|
+
object.message?.challengeRequest !== undefined &&
|
|
1416
|
+
object.message?.challengeRequest !== null
|
|
1417
|
+
) {
|
|
1418
|
+
message.message = {
|
|
1419
|
+
$case: "challengeRequest",
|
|
1420
|
+
challengeRequest: ChallengeRequestMessage.fromPartial(object.message.challengeRequest),
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
if (
|
|
1424
|
+
object.message?.$case === "signedChallenge" &&
|
|
1425
|
+
object.message?.signedChallenge !== undefined &&
|
|
1426
|
+
object.message?.signedChallenge !== null
|
|
1427
|
+
) {
|
|
1428
|
+
message.message = {
|
|
1429
|
+
$case: "signedChallenge",
|
|
1430
|
+
signedChallenge: SignedChallengeMessage.fromPartial(object.message.signedChallenge),
|
|
1431
|
+
};
|
|
1432
|
+
}
|
|
1433
|
+
if (
|
|
1434
|
+
object.message?.$case === "heartbeat" &&
|
|
1435
|
+
object.message?.heartbeat !== undefined &&
|
|
1436
|
+
object.message?.heartbeat !== null
|
|
1437
|
+
) {
|
|
1438
|
+
message.message = { $case: "heartbeat", heartbeat: Heartbeat.fromPartial(object.message.heartbeat) };
|
|
1439
|
+
}
|
|
1440
|
+
if (object.message?.$case === "ack" && object.message?.ack !== undefined && object.message?.ack !== null) {
|
|
1441
|
+
message.message = { $case: "ack", ack: Ack.fromPartial(object.message.ack) };
|
|
1442
|
+
}
|
|
1443
|
+
if (
|
|
1444
|
+
object.message?.$case === "requestSnapshot" &&
|
|
1445
|
+
object.message?.requestSnapshot !== undefined &&
|
|
1446
|
+
object.message?.requestSnapshot !== null
|
|
1447
|
+
) {
|
|
1448
|
+
message.message = {
|
|
1449
|
+
$case: "requestSnapshot",
|
|
1450
|
+
requestSnapshot: RequestSnapshot.fromPartial(object.message.requestSnapshot),
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
message.requestSequence = object.requestSequence ?? 0;
|
|
846
1454
|
return message;
|
|
847
|
-
}
|
|
848
|
-
}
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
849
1457
|
|
|
850
|
-
function
|
|
851
|
-
return {
|
|
1458
|
+
function createBaseAssignmentContext(): AssignmentContext {
|
|
1459
|
+
return {
|
|
1460
|
+
laneHandle: 0,
|
|
1461
|
+
assignmentRevision: 0,
|
|
1462
|
+
realmRevision: 0,
|
|
1463
|
+
fencingToken: 0,
|
|
1464
|
+
leaseExpiresAtMs: 0,
|
|
1465
|
+
removed: false,
|
|
1466
|
+
};
|
|
852
1467
|
}
|
|
853
1468
|
|
|
854
|
-
export
|
|
855
|
-
encode(message:
|
|
856
|
-
if (message.
|
|
857
|
-
writer.uint32(
|
|
1469
|
+
export namespace AssignmentContext {
|
|
1470
|
+
export function encode(message: AssignmentContext, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1471
|
+
if (message.laneHandle !== undefined && message.laneHandle !== 0) {
|
|
1472
|
+
writer.uint32(8).uint32(message.laneHandle);
|
|
1473
|
+
}
|
|
1474
|
+
if (message.assignmentRevision !== undefined && message.assignmentRevision !== 0) {
|
|
1475
|
+
writer.uint32(16).uint64(message.assignmentRevision);
|
|
1476
|
+
}
|
|
1477
|
+
if (message.realmRevision !== undefined && message.realmRevision !== 0) {
|
|
1478
|
+
writer.uint32(24).uint64(message.realmRevision);
|
|
1479
|
+
}
|
|
1480
|
+
if (message.fencingToken !== undefined && message.fencingToken !== 0) {
|
|
1481
|
+
writer.uint32(32).uint64(message.fencingToken);
|
|
858
1482
|
}
|
|
859
|
-
if (message.
|
|
860
|
-
writer.uint32(
|
|
1483
|
+
if (message.leaseExpiresAtMs !== undefined && message.leaseExpiresAtMs !== 0) {
|
|
1484
|
+
writer.uint32(40).uint64(message.leaseExpiresAtMs);
|
|
861
1485
|
}
|
|
862
|
-
|
|
863
|
-
writer.uint32(
|
|
1486
|
+
if (message.removed === true) {
|
|
1487
|
+
writer.uint32(48).bool(message.removed);
|
|
864
1488
|
}
|
|
865
1489
|
return writer;
|
|
866
|
-
}
|
|
1490
|
+
}
|
|
867
1491
|
|
|
868
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
1492
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): AssignmentContext {
|
|
869
1493
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
870
1494
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
871
|
-
const message =
|
|
1495
|
+
const message = createBaseAssignmentContext();
|
|
872
1496
|
while (reader.pos < end) {
|
|
873
1497
|
const tag = reader.uint32();
|
|
874
1498
|
switch (tag >>> 3) {
|
|
875
1499
|
case 1:
|
|
876
|
-
if (tag
|
|
1500
|
+
if (tag !== 8) {
|
|
877
1501
|
break;
|
|
878
1502
|
}
|
|
879
1503
|
|
|
880
|
-
message.
|
|
1504
|
+
message.laneHandle = reader.uint32();
|
|
881
1505
|
continue;
|
|
882
1506
|
case 2:
|
|
883
|
-
if (tag
|
|
1507
|
+
if (tag !== 16) {
|
|
884
1508
|
break;
|
|
885
1509
|
}
|
|
886
1510
|
|
|
887
|
-
message.
|
|
1511
|
+
message.assignmentRevision = longToNumber(reader.uint64() as Long);
|
|
888
1512
|
continue;
|
|
889
1513
|
case 3:
|
|
890
|
-
if (tag
|
|
1514
|
+
if (tag !== 24) {
|
|
1515
|
+
break;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
message.realmRevision = longToNumber(reader.uint64() as Long);
|
|
1519
|
+
continue;
|
|
1520
|
+
case 4:
|
|
1521
|
+
if (tag !== 32) {
|
|
891
1522
|
break;
|
|
892
1523
|
}
|
|
893
1524
|
|
|
894
|
-
message.
|
|
1525
|
+
message.fencingToken = longToNumber(reader.uint64() as Long);
|
|
1526
|
+
continue;
|
|
1527
|
+
case 5:
|
|
1528
|
+
if (tag !== 40) {
|
|
1529
|
+
break;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
message.leaseExpiresAtMs = longToNumber(reader.uint64() as Long);
|
|
1533
|
+
continue;
|
|
1534
|
+
case 6:
|
|
1535
|
+
if (tag !== 48) {
|
|
1536
|
+
break;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
message.removed = reader.bool();
|
|
895
1540
|
continue;
|
|
896
1541
|
}
|
|
897
|
-
if ((tag & 7)
|
|
1542
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
898
1543
|
break;
|
|
899
1544
|
}
|
|
900
1545
|
reader.skipType(tag & 7);
|
|
901
1546
|
}
|
|
902
1547
|
return message;
|
|
903
|
-
}
|
|
1548
|
+
}
|
|
904
1549
|
|
|
905
|
-
fromJSON(object: any):
|
|
1550
|
+
export function fromJSON(object: any): AssignmentContext {
|
|
906
1551
|
return {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
1552
|
+
laneHandle: isSet(object.laneHandle) ? Number(object.laneHandle) : 0,
|
|
1553
|
+
assignmentRevision: isSet(object.assignmentRevision) ? Number(object.assignmentRevision) : 0,
|
|
1554
|
+
realmRevision: isSet(object.realmRevision) ? Number(object.realmRevision) : 0,
|
|
1555
|
+
fencingToken: isSet(object.fencingToken) ? Number(object.fencingToken) : 0,
|
|
1556
|
+
leaseExpiresAtMs: isSet(object.leaseExpiresAtMs) ? Number(object.leaseExpiresAtMs) : 0,
|
|
1557
|
+
removed: isSet(object.removed) ? Boolean(object.removed) : false,
|
|
910
1558
|
};
|
|
911
|
-
}
|
|
1559
|
+
}
|
|
912
1560
|
|
|
913
|
-
toJSON(message:
|
|
1561
|
+
export function toJSON(message: AssignmentContext): unknown {
|
|
914
1562
|
const obj: any = {};
|
|
915
|
-
message.
|
|
916
|
-
message.
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
}
|
|
1563
|
+
message.laneHandle !== undefined && (obj.laneHandle = Math.round(message.laneHandle));
|
|
1564
|
+
message.assignmentRevision !== undefined && (obj.assignmentRevision = Math.round(message.assignmentRevision));
|
|
1565
|
+
message.realmRevision !== undefined && (obj.realmRevision = Math.round(message.realmRevision));
|
|
1566
|
+
message.fencingToken !== undefined && (obj.fencingToken = Math.round(message.fencingToken));
|
|
1567
|
+
message.leaseExpiresAtMs !== undefined && (obj.leaseExpiresAtMs = Math.round(message.leaseExpiresAtMs));
|
|
1568
|
+
message.removed !== undefined && (obj.removed = message.removed);
|
|
922
1569
|
return obj;
|
|
923
|
-
}
|
|
1570
|
+
}
|
|
924
1571
|
|
|
925
|
-
create<I extends Exact<DeepPartial<
|
|
926
|
-
return
|
|
927
|
-
}
|
|
1572
|
+
export function create<I extends Exact<DeepPartial<AssignmentContext>, I>>(base?: I): AssignmentContext {
|
|
1573
|
+
return AssignmentContext.fromPartial(base ?? {});
|
|
1574
|
+
}
|
|
928
1575
|
|
|
929
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
message.
|
|
934
|
-
message.
|
|
935
|
-
message.
|
|
1576
|
+
export function fromPartial<I extends Exact<DeepPartial<AssignmentContext>, I>>(object: I): AssignmentContext {
|
|
1577
|
+
const message = createBaseAssignmentContext();
|
|
1578
|
+
message.laneHandle = object.laneHandle ?? 0;
|
|
1579
|
+
message.assignmentRevision = object.assignmentRevision ?? 0;
|
|
1580
|
+
message.realmRevision = object.realmRevision ?? 0;
|
|
1581
|
+
message.fencingToken = object.fencingToken ?? 0;
|
|
1582
|
+
message.leaseExpiresAtMs = object.leaseExpiresAtMs ?? 0;
|
|
1583
|
+
message.removed = object.removed ?? false;
|
|
936
1584
|
return message;
|
|
937
|
-
}
|
|
938
|
-
}
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
939
1587
|
|
|
940
|
-
function
|
|
941
|
-
return {
|
|
1588
|
+
function createBaseAck(): Ack {
|
|
1589
|
+
return { laneHandle: 0, appliedRevision: 0 };
|
|
942
1590
|
}
|
|
943
1591
|
|
|
944
|
-
export
|
|
945
|
-
encode(message:
|
|
946
|
-
if (message.
|
|
947
|
-
writer.uint32(
|
|
1592
|
+
export namespace Ack {
|
|
1593
|
+
export function encode(message: Ack, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1594
|
+
if (message.laneHandle !== undefined && message.laneHandle !== 0) {
|
|
1595
|
+
writer.uint32(8).uint32(message.laneHandle);
|
|
1596
|
+
}
|
|
1597
|
+
if (message.appliedRevision !== undefined && message.appliedRevision !== 0) {
|
|
1598
|
+
writer.uint32(16).uint64(message.appliedRevision);
|
|
948
1599
|
}
|
|
949
|
-
Object.entries(message.connStrs).forEach(([key, value]) => {
|
|
950
|
-
TransportAuthorizationResponse_ConnStrsEntry.encode({ key: key as any, value }, writer.uint32(18).fork())
|
|
951
|
-
.ldelim();
|
|
952
|
-
});
|
|
953
1600
|
return writer;
|
|
954
|
-
}
|
|
1601
|
+
}
|
|
955
1602
|
|
|
956
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
1603
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): Ack {
|
|
957
1604
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
958
1605
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
959
|
-
const message =
|
|
1606
|
+
const message = createBaseAck();
|
|
960
1607
|
while (reader.pos < end) {
|
|
961
1608
|
const tag = reader.uint32();
|
|
962
1609
|
switch (tag >>> 3) {
|
|
963
1610
|
case 1:
|
|
964
|
-
if (tag
|
|
1611
|
+
if (tag !== 8) {
|
|
965
1612
|
break;
|
|
966
1613
|
}
|
|
967
1614
|
|
|
968
|
-
message.
|
|
1615
|
+
message.laneHandle = reader.uint32();
|
|
969
1616
|
continue;
|
|
970
1617
|
case 2:
|
|
971
|
-
if (tag
|
|
1618
|
+
if (tag !== 16) {
|
|
972
1619
|
break;
|
|
973
1620
|
}
|
|
974
1621
|
|
|
975
|
-
|
|
976
|
-
if (entry2.value !== undefined) {
|
|
977
|
-
message.connStrs[entry2.key] = entry2.value;
|
|
978
|
-
}
|
|
1622
|
+
message.appliedRevision = longToNumber(reader.uint64() as Long);
|
|
979
1623
|
continue;
|
|
980
1624
|
}
|
|
981
|
-
if ((tag & 7)
|
|
1625
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
982
1626
|
break;
|
|
983
1627
|
}
|
|
984
1628
|
reader.skipType(tag & 7);
|
|
985
1629
|
}
|
|
986
1630
|
return message;
|
|
987
|
-
}
|
|
1631
|
+
}
|
|
988
1632
|
|
|
989
|
-
fromJSON(object: any):
|
|
1633
|
+
export function fromJSON(object: any): Ack {
|
|
990
1634
|
return {
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
? Object.entries(object.connStrs).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
994
|
-
acc[key] = String(value);
|
|
995
|
-
return acc;
|
|
996
|
-
}, {})
|
|
997
|
-
: {},
|
|
1635
|
+
laneHandle: isSet(object.laneHandle) ? Number(object.laneHandle) : 0,
|
|
1636
|
+
appliedRevision: isSet(object.appliedRevision) ? Number(object.appliedRevision) : 0,
|
|
998
1637
|
};
|
|
999
|
-
}
|
|
1638
|
+
}
|
|
1000
1639
|
|
|
1001
|
-
toJSON(message:
|
|
1640
|
+
export function toJSON(message: Ack): unknown {
|
|
1002
1641
|
const obj: any = {};
|
|
1003
|
-
message.
|
|
1004
|
-
obj.
|
|
1005
|
-
if (message.connStrs) {
|
|
1006
|
-
Object.entries(message.connStrs).forEach(([k, v]) => {
|
|
1007
|
-
obj.connStrs[k] = v;
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1642
|
+
message.laneHandle !== undefined && (obj.laneHandle = Math.round(message.laneHandle));
|
|
1643
|
+
message.appliedRevision !== undefined && (obj.appliedRevision = Math.round(message.appliedRevision));
|
|
1010
1644
|
return obj;
|
|
1011
|
-
}
|
|
1645
|
+
}
|
|
1012
1646
|
|
|
1013
|
-
create<I extends Exact<DeepPartial<
|
|
1014
|
-
return
|
|
1015
|
-
}
|
|
1647
|
+
export function create<I extends Exact<DeepPartial<Ack>, I>>(base?: I): Ack {
|
|
1648
|
+
return Ack.fromPartial(base ?? {});
|
|
1649
|
+
}
|
|
1016
1650
|
|
|
1017
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
message.requestId = object.requestId ?? "";
|
|
1022
|
-
message.connStrs = Object.entries(object.connStrs ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
1023
|
-
if (value !== undefined) {
|
|
1024
|
-
acc[key] = String(value);
|
|
1025
|
-
}
|
|
1026
|
-
return acc;
|
|
1027
|
-
}, {});
|
|
1651
|
+
export function fromPartial<I extends Exact<DeepPartial<Ack>, I>>(object: I): Ack {
|
|
1652
|
+
const message = createBaseAck();
|
|
1653
|
+
message.laneHandle = object.laneHandle ?? 0;
|
|
1654
|
+
message.appliedRevision = object.appliedRevision ?? 0;
|
|
1028
1655
|
return message;
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1031
1658
|
|
|
1032
|
-
function
|
|
1033
|
-
return {
|
|
1659
|
+
function createBaseRequestSnapshot(): RequestSnapshot {
|
|
1660
|
+
return { laneHandle: 0, fromRevision: undefined };
|
|
1034
1661
|
}
|
|
1035
1662
|
|
|
1036
|
-
export
|
|
1037
|
-
encode(message:
|
|
1038
|
-
if (message.
|
|
1039
|
-
writer.uint32(
|
|
1663
|
+
export namespace RequestSnapshot {
|
|
1664
|
+
export function encode(message: RequestSnapshot, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1665
|
+
if (message.laneHandle !== undefined && message.laneHandle !== 0) {
|
|
1666
|
+
writer.uint32(8).uint32(message.laneHandle);
|
|
1040
1667
|
}
|
|
1041
|
-
if (message.
|
|
1042
|
-
writer.uint32(
|
|
1668
|
+
if (message.fromRevision !== undefined) {
|
|
1669
|
+
writer.uint32(16).uint64(message.fromRevision);
|
|
1043
1670
|
}
|
|
1044
1671
|
return writer;
|
|
1045
|
-
}
|
|
1672
|
+
}
|
|
1046
1673
|
|
|
1047
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
1674
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): RequestSnapshot {
|
|
1048
1675
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1049
1676
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1050
|
-
const message =
|
|
1677
|
+
const message = createBaseRequestSnapshot();
|
|
1051
1678
|
while (reader.pos < end) {
|
|
1052
1679
|
const tag = reader.uint32();
|
|
1053
1680
|
switch (tag >>> 3) {
|
|
1054
1681
|
case 1:
|
|
1055
|
-
if (tag
|
|
1682
|
+
if (tag !== 8) {
|
|
1056
1683
|
break;
|
|
1057
1684
|
}
|
|
1058
1685
|
|
|
1059
|
-
message.
|
|
1686
|
+
message.laneHandle = reader.uint32();
|
|
1060
1687
|
continue;
|
|
1061
1688
|
case 2:
|
|
1062
|
-
if (tag
|
|
1689
|
+
if (tag !== 16) {
|
|
1063
1690
|
break;
|
|
1064
1691
|
}
|
|
1065
1692
|
|
|
1066
|
-
message.
|
|
1693
|
+
message.fromRevision = longToNumber(reader.uint64() as Long);
|
|
1067
1694
|
continue;
|
|
1068
1695
|
}
|
|
1069
|
-
if ((tag & 7)
|
|
1696
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1070
1697
|
break;
|
|
1071
1698
|
}
|
|
1072
1699
|
reader.skipType(tag & 7);
|
|
1073
1700
|
}
|
|
1074
1701
|
return message;
|
|
1075
|
-
}
|
|
1702
|
+
}
|
|
1076
1703
|
|
|
1077
|
-
fromJSON(object: any):
|
|
1078
|
-
return {
|
|
1079
|
-
|
|
1704
|
+
export function fromJSON(object: any): RequestSnapshot {
|
|
1705
|
+
return {
|
|
1706
|
+
laneHandle: isSet(object.laneHandle) ? Number(object.laneHandle) : 0,
|
|
1707
|
+
fromRevision: isSet(object.fromRevision) ? Number(object.fromRevision) : undefined,
|
|
1708
|
+
};
|
|
1709
|
+
}
|
|
1080
1710
|
|
|
1081
|
-
toJSON(message:
|
|
1711
|
+
export function toJSON(message: RequestSnapshot): unknown {
|
|
1082
1712
|
const obj: any = {};
|
|
1083
|
-
message.
|
|
1084
|
-
message.
|
|
1713
|
+
message.laneHandle !== undefined && (obj.laneHandle = Math.round(message.laneHandle));
|
|
1714
|
+
message.fromRevision !== undefined && (obj.fromRevision = Math.round(message.fromRevision));
|
|
1085
1715
|
return obj;
|
|
1086
|
-
}
|
|
1716
|
+
}
|
|
1087
1717
|
|
|
1088
|
-
create<I extends Exact<DeepPartial<
|
|
1089
|
-
base
|
|
1090
|
-
|
|
1091
|
-
return TransportAuthorizationResponse_ConnStrsEntry.fromPartial(base ?? {});
|
|
1092
|
-
},
|
|
1718
|
+
export function create<I extends Exact<DeepPartial<RequestSnapshot>, I>>(base?: I): RequestSnapshot {
|
|
1719
|
+
return RequestSnapshot.fromPartial(base ?? {});
|
|
1720
|
+
}
|
|
1093
1721
|
|
|
1094
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
message.key = object.key ?? "";
|
|
1099
|
-
message.value = object.value ?? "";
|
|
1722
|
+
export function fromPartial<I extends Exact<DeepPartial<RequestSnapshot>, I>>(object: I): RequestSnapshot {
|
|
1723
|
+
const message = createBaseRequestSnapshot();
|
|
1724
|
+
message.laneHandle = object.laneHandle ?? 0;
|
|
1725
|
+
message.fromRevision = object.fromRevision ?? undefined;
|
|
1100
1726
|
return message;
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1103
1729
|
|
|
1104
|
-
function
|
|
1105
|
-
return {
|
|
1730
|
+
function createBaseControlError(): ControlError {
|
|
1731
|
+
return { code: 0, retry: 0, publicDetail: undefined };
|
|
1106
1732
|
}
|
|
1107
1733
|
|
|
1108
|
-
export
|
|
1109
|
-
encode(message:
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1734
|
+
export namespace ControlError {
|
|
1735
|
+
export function encode(message: ControlError, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1736
|
+
if (message.code !== undefined && message.code !== 0) {
|
|
1737
|
+
writer.uint32(8).int32(message.code);
|
|
1738
|
+
}
|
|
1739
|
+
if (message.retry !== undefined && message.retry !== 0) {
|
|
1740
|
+
writer.uint32(16).int32(message.retry);
|
|
1741
|
+
}
|
|
1742
|
+
if (message.publicDetail !== undefined) {
|
|
1743
|
+
writer.uint32(26).string(message.publicDetail);
|
|
1744
|
+
}
|
|
1745
|
+
return writer;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ControlError {
|
|
1749
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1750
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1751
|
+
const message = createBaseControlError();
|
|
1752
|
+
while (reader.pos < end) {
|
|
1753
|
+
const tag = reader.uint32();
|
|
1754
|
+
switch (tag >>> 3) {
|
|
1755
|
+
case 1:
|
|
1756
|
+
if (tag !== 8) {
|
|
1757
|
+
break;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
message.code = reader.int32() as any;
|
|
1761
|
+
continue;
|
|
1762
|
+
case 2:
|
|
1763
|
+
if (tag !== 16) {
|
|
1764
|
+
break;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
message.retry = reader.int32() as any;
|
|
1768
|
+
continue;
|
|
1769
|
+
case 3:
|
|
1770
|
+
if (tag !== 26) {
|
|
1771
|
+
break;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
message.publicDetail = reader.string();
|
|
1775
|
+
continue;
|
|
1776
|
+
}
|
|
1777
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1122
1778
|
break;
|
|
1779
|
+
}
|
|
1780
|
+
reader.skipType(tag & 7);
|
|
1781
|
+
}
|
|
1782
|
+
return message;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
export function fromJSON(object: any): ControlError {
|
|
1786
|
+
return {
|
|
1787
|
+
code: isSet(object.code) ? controlErrorCodeFromJSON(object.code) : 0,
|
|
1788
|
+
retry: isSet(object.retry) ? controlRetryClassFromJSON(object.retry) : 0,
|
|
1789
|
+
publicDetail: isSet(object.publicDetail) ? String(object.publicDetail) : undefined,
|
|
1790
|
+
};
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
export function toJSON(message: ControlError): unknown {
|
|
1794
|
+
const obj: any = {};
|
|
1795
|
+
message.code !== undefined && (obj.code = controlErrorCodeToJSON(message.code));
|
|
1796
|
+
message.retry !== undefined && (obj.retry = controlRetryClassToJSON(message.retry));
|
|
1797
|
+
message.publicDetail !== undefined && (obj.publicDetail = message.publicDetail);
|
|
1798
|
+
return obj;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
export function create<I extends Exact<DeepPartial<ControlError>, I>>(base?: I): ControlError {
|
|
1802
|
+
return ControlError.fromPartial(base ?? {});
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
export function fromPartial<I extends Exact<DeepPartial<ControlError>, I>>(object: I): ControlError {
|
|
1806
|
+
const message = createBaseControlError();
|
|
1807
|
+
message.code = object.code ?? 0;
|
|
1808
|
+
message.retry = object.retry ?? 0;
|
|
1809
|
+
message.publicDetail = object.publicDetail ?? undefined;
|
|
1810
|
+
return message;
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
function createBaseIslandData(): IslandData {
|
|
1815
|
+
return { id: "", peers: [], maxPeers: 0, center: undefined, radius: 0 };
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
export namespace IslandData {
|
|
1819
|
+
export function encode(message: IslandData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1820
|
+
if (message.id !== undefined && message.id !== "") {
|
|
1821
|
+
writer.uint32(10).string(message.id);
|
|
1822
|
+
}
|
|
1823
|
+
for (const v of message.peers ?? []) {
|
|
1824
|
+
writer.uint32(18).string(v!);
|
|
1825
|
+
}
|
|
1826
|
+
if (message.maxPeers !== undefined && message.maxPeers !== 0) {
|
|
1827
|
+
writer.uint32(24).uint32(message.maxPeers);
|
|
1828
|
+
}
|
|
1829
|
+
if (message.center !== undefined) {
|
|
1830
|
+
Position.encode(message.center, writer.uint32(34).fork()).ldelim();
|
|
1831
|
+
}
|
|
1832
|
+
if (message.radius !== undefined && message.radius !== 0) {
|
|
1833
|
+
writer.uint32(41).double(message.radius);
|
|
1123
1834
|
}
|
|
1124
1835
|
return writer;
|
|
1125
|
-
}
|
|
1836
|
+
}
|
|
1126
1837
|
|
|
1127
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
1838
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): IslandData {
|
|
1128
1839
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1129
1840
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1130
|
-
const message =
|
|
1841
|
+
const message = createBaseIslandData();
|
|
1131
1842
|
while (reader.pos < end) {
|
|
1132
1843
|
const tag = reader.uint32();
|
|
1133
1844
|
switch (tag >>> 3) {
|
|
1134
1845
|
case 1:
|
|
1135
|
-
if (tag
|
|
1846
|
+
if (tag !== 10) {
|
|
1136
1847
|
break;
|
|
1137
1848
|
}
|
|
1138
1849
|
|
|
1139
|
-
message.
|
|
1850
|
+
message.id = reader.string();
|
|
1140
1851
|
continue;
|
|
1141
1852
|
case 2:
|
|
1142
|
-
if (tag
|
|
1853
|
+
if (tag !== 18) {
|
|
1143
1854
|
break;
|
|
1144
1855
|
}
|
|
1145
1856
|
|
|
1146
|
-
message.
|
|
1857
|
+
message.peers.push(reader.string());
|
|
1147
1858
|
continue;
|
|
1148
1859
|
case 3:
|
|
1149
|
-
if (tag
|
|
1860
|
+
if (tag !== 24) {
|
|
1150
1861
|
break;
|
|
1151
1862
|
}
|
|
1152
1863
|
|
|
1153
|
-
message.
|
|
1154
|
-
$case: "authRequest",
|
|
1155
|
-
authRequest: TransportAuthorizationRequest.decode(reader, reader.uint32()),
|
|
1156
|
-
};
|
|
1864
|
+
message.maxPeers = reader.uint32();
|
|
1157
1865
|
continue;
|
|
1158
1866
|
case 4:
|
|
1159
|
-
if (tag
|
|
1867
|
+
if (tag !== 34) {
|
|
1160
1868
|
break;
|
|
1161
1869
|
}
|
|
1162
1870
|
|
|
1163
|
-
message.
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1871
|
+
message.center = Position.decode(reader, reader.uint32());
|
|
1872
|
+
continue;
|
|
1873
|
+
case 5:
|
|
1874
|
+
if (tag !== 41) {
|
|
1875
|
+
break;
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
message.radius = reader.double();
|
|
1167
1879
|
continue;
|
|
1168
1880
|
}
|
|
1169
|
-
if ((tag & 7)
|
|
1881
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1170
1882
|
break;
|
|
1171
1883
|
}
|
|
1172
1884
|
reader.skipType(tag & 7);
|
|
1173
1885
|
}
|
|
1174
1886
|
return message;
|
|
1175
|
-
}
|
|
1887
|
+
}
|
|
1176
1888
|
|
|
1177
|
-
fromJSON(object: any):
|
|
1889
|
+
export function fromJSON(object: any): IslandData {
|
|
1178
1890
|
return {
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
? { $case: "authRequest", authRequest: TransportAuthorizationRequest.fromJSON(object.authRequest) }
|
|
1185
|
-
: isSet(object.authResponse)
|
|
1186
|
-
? { $case: "authResponse", authResponse: TransportAuthorizationResponse.fromJSON(object.authResponse) }
|
|
1187
|
-
: undefined,
|
|
1891
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
1892
|
+
peers: Array.isArray(object?.peers) ? object.peers.map((e: any) => String(e)) : [],
|
|
1893
|
+
maxPeers: isSet(object.maxPeers) ? Number(object.maxPeers) : 0,
|
|
1894
|
+
center: isSet(object.center) ? Position.fromJSON(object.center) : undefined,
|
|
1895
|
+
radius: isSet(object.radius) ? Number(object.radius) : 0,
|
|
1188
1896
|
};
|
|
1189
|
-
}
|
|
1897
|
+
}
|
|
1190
1898
|
|
|
1191
|
-
toJSON(message:
|
|
1899
|
+
export function toJSON(message: IslandData): unknown {
|
|
1192
1900
|
const obj: any = {};
|
|
1193
|
-
message.
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
message.
|
|
1201
|
-
|
|
1202
|
-
: undefined);
|
|
1901
|
+
message.id !== undefined && (obj.id = message.id);
|
|
1902
|
+
if (message.peers) {
|
|
1903
|
+
obj.peers = message.peers.map((e) => e);
|
|
1904
|
+
} else {
|
|
1905
|
+
obj.peers = [];
|
|
1906
|
+
}
|
|
1907
|
+
message.maxPeers !== undefined && (obj.maxPeers = Math.round(message.maxPeers));
|
|
1908
|
+
message.center !== undefined && (obj.center = message.center ? Position.toJSON(message.center) : undefined);
|
|
1909
|
+
message.radius !== undefined && (obj.radius = message.radius);
|
|
1203
1910
|
return obj;
|
|
1204
|
-
}
|
|
1911
|
+
}
|
|
1205
1912
|
|
|
1206
|
-
create<I extends Exact<DeepPartial<
|
|
1207
|
-
return
|
|
1208
|
-
}
|
|
1913
|
+
export function create<I extends Exact<DeepPartial<IslandData>, I>>(base?: I): IslandData {
|
|
1914
|
+
return IslandData.fromPartial(base ?? {});
|
|
1915
|
+
}
|
|
1209
1916
|
|
|
1210
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
1211
|
-
const message =
|
|
1212
|
-
|
|
1213
|
-
|
|
1917
|
+
export function fromPartial<I extends Exact<DeepPartial<IslandData>, I>>(object: I): IslandData {
|
|
1918
|
+
const message = createBaseIslandData();
|
|
1919
|
+
message.id = object.id ?? "";
|
|
1920
|
+
message.peers = object.peers?.map((e) => e) || [];
|
|
1921
|
+
message.maxPeers = object.maxPeers ?? 0;
|
|
1922
|
+
message.center = (object.center !== undefined && object.center !== null)
|
|
1923
|
+
? Position.fromPartial(object.center)
|
|
1924
|
+
: undefined;
|
|
1925
|
+
message.radius = object.radius ?? 0;
|
|
1926
|
+
return message;
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
function createBaseIslandStatusMessage(): IslandStatusMessage {
|
|
1931
|
+
return { data: [] };
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
export namespace IslandStatusMessage {
|
|
1935
|
+
export function encode(message: IslandStatusMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1936
|
+
for (const v of message.data ?? []) {
|
|
1937
|
+
IslandData.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1214
1938
|
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
)
|
|
1220
|
-
|
|
1939
|
+
return writer;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): IslandStatusMessage {
|
|
1943
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1944
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1945
|
+
const message = createBaseIslandStatusMessage();
|
|
1946
|
+
while (reader.pos < end) {
|
|
1947
|
+
const tag = reader.uint32();
|
|
1948
|
+
switch (tag >>> 3) {
|
|
1949
|
+
case 1:
|
|
1950
|
+
if (tag !== 10) {
|
|
1951
|
+
break;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
message.data.push(IslandData.decode(reader, reader.uint32()));
|
|
1955
|
+
continue;
|
|
1956
|
+
}
|
|
1957
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1958
|
+
break;
|
|
1959
|
+
}
|
|
1960
|
+
reader.skipType(tag & 7);
|
|
1221
1961
|
}
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
)
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1962
|
+
return message;
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
export function fromJSON(object: any): IslandStatusMessage {
|
|
1966
|
+
return { data: Array.isArray(object?.data) ? object.data.map((e: any) => IslandData.fromJSON(e)) : [] };
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
export function toJSON(message: IslandStatusMessage): unknown {
|
|
1970
|
+
const obj: any = {};
|
|
1971
|
+
if (message.data) {
|
|
1972
|
+
obj.data = message.data.map((e) => e ? IslandData.toJSON(e) : undefined);
|
|
1973
|
+
} else {
|
|
1974
|
+
obj.data = [];
|
|
1231
1975
|
}
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1976
|
+
return obj;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
export function create<I extends Exact<DeepPartial<IslandStatusMessage>, I>>(base?: I): IslandStatusMessage {
|
|
1980
|
+
return IslandStatusMessage.fromPartial(base ?? {});
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
export function fromPartial<I extends Exact<DeepPartial<IslandStatusMessage>, I>>(object: I): IslandStatusMessage {
|
|
1984
|
+
const message = createBaseIslandStatusMessage();
|
|
1985
|
+
message.data = object.data?.map((e) => IslandData.fromPartial(e)) || [];
|
|
1986
|
+
return message;
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
function createBaseServiceStatus(): ServiceStatus {
|
|
1991
|
+
return { currentTime: 0, commitHash: undefined, userCount: 0 };
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
export namespace ServiceStatus {
|
|
1995
|
+
export function encode(message: ServiceStatus, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1996
|
+
if (message.currentTime !== undefined && message.currentTime !== 0) {
|
|
1997
|
+
writer.uint32(8).uint64(message.currentTime);
|
|
1998
|
+
}
|
|
1999
|
+
if (message.commitHash !== undefined) {
|
|
2000
|
+
writer.uint32(18).string(message.commitHash);
|
|
2001
|
+
}
|
|
2002
|
+
if (message.userCount !== undefined && message.userCount !== 0) {
|
|
2003
|
+
writer.uint32(24).uint32(message.userCount);
|
|
2004
|
+
}
|
|
2005
|
+
return writer;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ServiceStatus {
|
|
2009
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2010
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2011
|
+
const message = createBaseServiceStatus();
|
|
2012
|
+
while (reader.pos < end) {
|
|
2013
|
+
const tag = reader.uint32();
|
|
2014
|
+
switch (tag >>> 3) {
|
|
2015
|
+
case 1:
|
|
2016
|
+
if (tag !== 8) {
|
|
2017
|
+
break;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
message.currentTime = longToNumber(reader.uint64() as Long);
|
|
2021
|
+
continue;
|
|
2022
|
+
case 2:
|
|
2023
|
+
if (tag !== 18) {
|
|
2024
|
+
break;
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
message.commitHash = reader.string();
|
|
2028
|
+
continue;
|
|
2029
|
+
case 3:
|
|
2030
|
+
if (tag !== 24) {
|
|
2031
|
+
break;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
message.userCount = reader.uint32();
|
|
2035
|
+
continue;
|
|
2036
|
+
}
|
|
2037
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2038
|
+
break;
|
|
2039
|
+
}
|
|
2040
|
+
reader.skipType(tag & 7);
|
|
2041
|
+
}
|
|
2042
|
+
return message;
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
export function fromJSON(object: any): ServiceStatus {
|
|
2046
|
+
return {
|
|
2047
|
+
currentTime: isSet(object.currentTime) ? Number(object.currentTime) : 0,
|
|
2048
|
+
commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
|
|
2049
|
+
userCount: isSet(object.userCount) ? Number(object.userCount) : 0,
|
|
2050
|
+
};
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
export function toJSON(message: ServiceStatus): unknown {
|
|
2054
|
+
const obj: any = {};
|
|
2055
|
+
message.currentTime !== undefined && (obj.currentTime = Math.round(message.currentTime));
|
|
2056
|
+
message.commitHash !== undefined && (obj.commitHash = message.commitHash);
|
|
2057
|
+
message.userCount !== undefined && (obj.userCount = Math.round(message.userCount));
|
|
2058
|
+
return obj;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
export function create<I extends Exact<DeepPartial<ServiceStatus>, I>>(base?: I): ServiceStatus {
|
|
2062
|
+
return ServiceStatus.fromPartial(base ?? {});
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
export function fromPartial<I extends Exact<DeepPartial<ServiceStatus>, I>>(object: I): ServiceStatus {
|
|
2066
|
+
const message = createBaseServiceStatus();
|
|
2067
|
+
message.currentTime = object.currentTime ?? 0;
|
|
2068
|
+
message.commitHash = object.commitHash ?? undefined;
|
|
2069
|
+
message.userCount = object.userCount ?? 0;
|
|
2070
|
+
return message;
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
function createBaseServiceDiscoveryMessage(): ServiceDiscoveryMessage {
|
|
2075
|
+
return { serverName: "", status: undefined };
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
export namespace ServiceDiscoveryMessage {
|
|
2079
|
+
export function encode(message: ServiceDiscoveryMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2080
|
+
if (message.serverName !== undefined && message.serverName !== "") {
|
|
2081
|
+
writer.uint32(10).string(message.serverName);
|
|
2082
|
+
}
|
|
2083
|
+
if (message.status !== undefined) {
|
|
2084
|
+
ServiceStatus.encode(message.status, writer.uint32(18).fork()).ldelim();
|
|
2085
|
+
}
|
|
2086
|
+
return writer;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDiscoveryMessage {
|
|
2090
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2091
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2092
|
+
const message = createBaseServiceDiscoveryMessage();
|
|
2093
|
+
while (reader.pos < end) {
|
|
2094
|
+
const tag = reader.uint32();
|
|
2095
|
+
switch (tag >>> 3) {
|
|
2096
|
+
case 1:
|
|
2097
|
+
if (tag !== 10) {
|
|
2098
|
+
break;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
message.serverName = reader.string();
|
|
2102
|
+
continue;
|
|
2103
|
+
case 2:
|
|
2104
|
+
if (tag !== 18) {
|
|
2105
|
+
break;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
message.status = ServiceStatus.decode(reader, reader.uint32());
|
|
2109
|
+
continue;
|
|
2110
|
+
}
|
|
2111
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2112
|
+
break;
|
|
2113
|
+
}
|
|
2114
|
+
reader.skipType(tag & 7);
|
|
1241
2115
|
}
|
|
1242
2116
|
return message;
|
|
1243
|
-
}
|
|
1244
|
-
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
export function fromJSON(object: any): ServiceDiscoveryMessage {
|
|
2120
|
+
return {
|
|
2121
|
+
serverName: isSet(object.serverName) ? String(object.serverName) : "",
|
|
2122
|
+
status: isSet(object.status) ? ServiceStatus.fromJSON(object.status) : undefined,
|
|
2123
|
+
};
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
export function toJSON(message: ServiceDiscoveryMessage): unknown {
|
|
2127
|
+
const obj: any = {};
|
|
2128
|
+
message.serverName !== undefined && (obj.serverName = message.serverName);
|
|
2129
|
+
message.status !== undefined && (obj.status = message.status ? ServiceStatus.toJSON(message.status) : undefined);
|
|
2130
|
+
return obj;
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
export function create<I extends Exact<DeepPartial<ServiceDiscoveryMessage>, I>>(base?: I): ServiceDiscoveryMessage {
|
|
2134
|
+
return ServiceDiscoveryMessage.fromPartial(base ?? {});
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
export function fromPartial<I extends Exact<DeepPartial<ServiceDiscoveryMessage>, I>>(
|
|
2138
|
+
object: I,
|
|
2139
|
+
): ServiceDiscoveryMessage {
|
|
2140
|
+
const message = createBaseServiceDiscoveryMessage();
|
|
2141
|
+
message.serverName = object.serverName ?? "";
|
|
2142
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
2143
|
+
? ServiceStatus.fromPartial(object.status)
|
|
2144
|
+
: undefined;
|
|
2145
|
+
return message;
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
declare const self: any | undefined;
|
|
2150
|
+
declare const window: any | undefined;
|
|
2151
|
+
declare const global: any | undefined;
|
|
2152
|
+
const tsProtoGlobalThis: any = (() => {
|
|
2153
|
+
if (typeof globalThis !== "undefined") {
|
|
2154
|
+
return globalThis;
|
|
2155
|
+
}
|
|
2156
|
+
if (typeof self !== "undefined") {
|
|
2157
|
+
return self;
|
|
2158
|
+
}
|
|
2159
|
+
if (typeof window !== "undefined") {
|
|
2160
|
+
return window;
|
|
2161
|
+
}
|
|
2162
|
+
if (typeof global !== "undefined") {
|
|
2163
|
+
return global;
|
|
2164
|
+
}
|
|
2165
|
+
throw "Unable to locate global object";
|
|
2166
|
+
})();
|
|
1245
2167
|
|
|
1246
2168
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1247
2169
|
|
|
@@ -1255,6 +2177,18 @@ type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
|
1255
2177
|
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
1256
2178
|
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
1257
2179
|
|
|
2180
|
+
function longToNumber(long: Long): number {
|
|
2181
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
2182
|
+
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2183
|
+
}
|
|
2184
|
+
return long.toNumber();
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
if (_m0.util.Long !== Long) {
|
|
2188
|
+
_m0.util.Long = Long as any;
|
|
2189
|
+
_m0.configure();
|
|
2190
|
+
}
|
|
2191
|
+
|
|
1258
2192
|
function isObject(value: any): boolean {
|
|
1259
2193
|
return typeof value === "object" && value !== null;
|
|
1260
2194
|
}
|