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