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