@dcl/protocol 1.0.0-4958447726.commit-3016853 → 1.0.0-4959770633.commit-e249449
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/out-js/decentraland/bff/authentication_service.gen.d.ts +46 -184
- package/out-js/decentraland/bff/authentication_service.gen.js +115 -80
- package/out-js/decentraland/bff/authentication_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/comms_director_service.gen.d.ts +28 -228
- package/out-js/decentraland/bff/comms_director_service.gen.js +76 -54
- package/out-js/decentraland/bff/comms_director_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/comms_service.gen.d.ts +30 -272
- package/out-js/decentraland/bff/comms_service.gen.js +52 -38
- package/out-js/decentraland/bff/comms_service.gen.js.map +1 -1
- package/out-js/decentraland/bff/http_endpoints.gen.d.ts +66 -854
- package/out-js/decentraland/bff/http_endpoints.gen.js +215 -158
- package/out-js/decentraland/bff/http_endpoints.gen.js.map +1 -1
- package/out-js/decentraland/bff/topics_service.gen.d.ts +46 -208
- package/out-js/decentraland/bff/topics_service.gen.js +116 -81
- package/out-js/decentraland/bff/topics_service.gen.js.map +1 -1
- package/out-js/decentraland/common/border_rect.gen.d.ts +16 -56
- package/out-js/decentraland/common/border_rect.gen.js +44 -30
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -1
- package/out-js/decentraland/common/colors.gen.d.ts +16 -52
- package/out-js/decentraland/common/colors.gen.js +44 -30
- package/out-js/decentraland/common/colors.gen.js.map +1 -1
- package/out-js/decentraland/common/content_mapping.gen.d.ts +8 -20
- package/out-js/decentraland/common/content_mapping.gen.js +22 -15
- package/out-js/decentraland/common/content_mapping.gen.js.map +1 -1
- package/out-js/decentraland/common/sdk/user_data.gen.d.ts +24 -176
- package/out-js/decentraland/common/sdk/user_data.gen.js +76 -55
- package/out-js/decentraland/common/sdk/user_data.gen.js.map +1 -1
- package/out-js/decentraland/common/texture.gen.d.ts +32 -250
- package/out-js/decentraland/common/texture.gen.js +103 -75
- package/out-js/decentraland/common/texture.gen.js.map +1 -1
- package/out-js/decentraland/common/vectors.gen.d.ts +38 -68
- package/out-js/decentraland/common/vectors.gen.js +161 -46
- package/out-js/decentraland/common/vectors.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/communications_controller.gen.d.ts +18 -48
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js +46 -32
- package/out-js/decentraland/kernel/apis/communications_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/dev_tools.gen.d.ts +18 -56
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js +46 -32
- package/out-js/decentraland/kernel/apis/dev_tools.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/engine_api.gen.d.ts +157 -4088
- package/out-js/decentraland/kernel/apis/engine_api.gen.js +483 -1650
- package/out-js/decentraland/kernel/apis/engine_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/environment_api.gen.d.ts +150 -690
- package/out-js/decentraland/kernel/apis/environment_api.gen.js +400 -281
- package/out-js/decentraland/kernel/apis/environment_api.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.d.ts +106 -440
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js +278 -194
- package/out-js/decentraland/kernel/apis/ethereum_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.d.ts +70 -518
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js +192 -136
- package/out-js/decentraland/kernel/apis/parcel_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/permissions.gen.d.ts +36 -128
- package/out-js/decentraland/kernel/apis/permissions.gen.js +92 -64
- package/out-js/decentraland/kernel/apis/permissions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/players.gen.d.ts +54 -476
- package/out-js/decentraland/kernel/apis/players.gen.js +143 -101
- package/out-js/decentraland/kernel/apis/players.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.d.ts +80 -308
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js +211 -148
- package/out-js/decentraland/kernel/apis/portable_experiences.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.d.ts +102 -568
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js +256 -179
- package/out-js/decentraland/kernel/apis/restricted_actions.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/runtime.gen.d.ts +80 -404
- package/out-js/decentraland/kernel/apis/runtime.gen.js +211 -148
- package/out-js/decentraland/kernel/apis/runtime.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/scene.gen.d.ts +18 -132
- package/out-js/decentraland/kernel/apis/scene.gen.js +46 -32
- package/out-js/decentraland/kernel/apis/scene.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.d.ts +42 -284
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js +121 -86
- package/out-js/decentraland/kernel/apis/signed_fetch.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/social_controller.gen.d.ts +26 -128
- package/out-js/decentraland/kernel/apis/social_controller.gen.js +73 -52
- package/out-js/decentraland/kernel/apis/social_controller.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/testing.gen.d.ts +78 -408
- package/out-js/decentraland/kernel/apis/testing.gen.js +219 -156
- package/out-js/decentraland/kernel/apis/testing.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/user_action_module.gen.d.ts +18 -48
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js +46 -32
- package/out-js/decentraland/kernel/apis/user_action_module.gen.js.map +1 -1
- package/out-js/decentraland/kernel/apis/user_identity.gen.d.ts +36 -352
- package/out-js/decentraland/kernel/apis/user_identity.gen.js +92 -64
- package/out-js/decentraland/kernel/apis/user_identity.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +64 -550
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +220 -161
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.d.ts +80 -560
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js +280 -204
- package/out-js/decentraland/kernel/comms/rfc5/ws_comms.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.d.ts +112 -1002
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js +372 -270
- package/out-js/decentraland/kernel/comms/v3/archipelago.gen.js.map +1 -1
- package/out-js/decentraland/realm/about.gen.d.ts +64 -534
- package/out-js/decentraland/realm/about.gen.js +214 -157
- package/out-js/decentraland/realm/about.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/animator.gen.d.ts +16 -136
- package/out-js/decentraland/sdk/components/animator.gen.js +49 -35
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +8 -32
- package/out-js/decentraland/sdk/components/audio_source.gen.js +22 -15
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +8 -24
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +22 -15
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +8 -20
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +22 -15
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +8 -48
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +22 -15
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +8 -128
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +22 -15
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/billboard.gen.js +22 -15
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +22 -15
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +8 -44
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +22 -15
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.d.ts +8 -136
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js +22 -15
- package/out-js/decentraland/sdk/components/common/raycast_hit.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/engine_info.gen.d.ts +8 -24
- package/out-js/decentraland/sdk/components/engine_info.gen.js +22 -15
- package/out-js/decentraland/sdk/components/engine_info.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +8 -24
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +22 -15
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js +22 -15
- package/out-js/decentraland/sdk/components/gltf_container_loading_state.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/material.gen.d.ts +24 -3368
- package/out-js/decentraland/sdk/components/material.gen.js +80 -58
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +40 -176
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +130 -95
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +40 -220
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +130 -95
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +8 -48
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +22 -15
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +24 -184
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +76 -55
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +8 -212
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +22 -15
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +22 -15
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +8 -248
- package/out-js/decentraland/sdk/components/raycast.gen.js +30 -21
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +8 -352
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +22 -15
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +8 -174
- package/out-js/decentraland/sdk/components/text_shape.gen.js +22 -15
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +8 -314
- package/out-js/decentraland/sdk/components/ui_background.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +8 -78
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +8 -104
- package/out-js/decentraland/sdk/components/ui_input.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +8 -62
- package/out-js/decentraland/sdk/components/ui_text.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +8 -216
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +22 -15
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/video_player.gen.d.ts +8 -36
- package/out-js/decentraland/sdk/components/video_player.gen.js +22 -15
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +8 -16
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +22 -15
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -1
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.d.ts +1004 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js +7829 -0
- package/out-js/decentraland/sdk/ecs6/components_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.d.ts +398 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js +2512 -0
- package/out-js/decentraland/sdk/ecs6/engine_interface_ecs6.gen.js.map +1 -0
- package/out-js/decentraland/social/friendships/friendships.gen.d.ts +232 -7630
- package/out-js/decentraland/social/friendships/friendships.gen.js +891 -686
- package/out-js/decentraland/social/friendships/friendships.gen.js.map +1 -1
- package/out-js/google/protobuf/descriptor.gen.d.ts +200 -87148
- package/out-js/google/protobuf/descriptor.gen.js +720 -545
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -1
- package/out-js/google/protobuf/empty.gen.d.ts +8 -8
- package/out-js/google/protobuf/empty.gen.js +22 -15
- package/out-js/google/protobuf/empty.gen.js.map +1 -1
- package/out-ts/decentraland/bff/authentication_service.gen.ts +72 -70
- package/out-ts/decentraland/bff/comms_director_service.gen.ts +46 -45
- package/out-ts/decentraland/bff/comms_service.gen.ts +28 -28
- package/out-ts/decentraland/bff/http_endpoints.gen.ts +137 -115
- package/out-ts/decentraland/bff/topics_service.gen.ts +80 -70
- package/out-ts/decentraland/common/border_rect.gen.ts +28 -28
- package/out-ts/decentraland/common/colors.gen.ts +28 -28
- package/out-ts/decentraland/common/content_mapping.gen.ts +14 -14
- package/out-ts/decentraland/common/sdk/user_data.gen.ts +42 -42
- package/out-ts/decentraland/common/texture.gen.ts +56 -56
- package/out-ts/decentraland/common/vectors.gen.ts +146 -42
- package/out-ts/decentraland/kernel/apis/communications_controller.gen.ts +28 -28
- package/out-ts/decentraland/kernel/apis/dev_tools.gen.ts +28 -28
- package/out-ts/decentraland/kernel/apis/engine_api.gen.ts +291 -1786
- package/out-ts/decentraland/kernel/apis/environment_api.gen.ts +271 -238
- package/out-ts/decentraland/kernel/apis/ethereum_controller.gen.ts +189 -168
- package/out-ts/decentraland/kernel/apis/parcel_identity.gen.ts +112 -112
- package/out-ts/decentraland/kernel/apis/permissions.gen.ts +64 -56
- package/out-ts/decentraland/kernel/apis/players.gen.ts +96 -84
- package/out-ts/decentraland/kernel/apis/portable_experiences.gen.ts +129 -126
- package/out-ts/decentraland/kernel/apis/restricted_actions.gen.ts +156 -154
- package/out-ts/decentraland/kernel/apis/runtime.gen.ts +134 -126
- package/out-ts/decentraland/kernel/apis/scene.gen.ts +28 -28
- package/out-ts/decentraland/kernel/apis/signed_fetch.gen.ts +79 -70
- package/out-ts/decentraland/kernel/apis/social_controller.gen.ts +44 -42
- package/out-ts/decentraland/kernel/apis/testing.gen.ts +139 -126
- package/out-ts/decentraland/kernel/apis/user_action_module.gen.ts +30 -28
- package/out-ts/decentraland/kernel/apis/user_identity.gen.ts +60 -56
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +126 -121
- package/out-ts/decentraland/kernel/comms/rfc5/ws_comms.gen.ts +166 -158
- package/out-ts/decentraland/kernel/comms/v3/archipelago.gen.ts +225 -208
- package/out-ts/decentraland/realm/about.gen.ts +137 -115
- package/out-ts/decentraland/sdk/components/animator.gen.ts +28 -28
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/common/raycast_hit.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/engine_info.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/gltf_container_loading_state.gen.ts +18 -14
- package/out-ts/decentraland/sdk/components/material.gen.ts +52 -45
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +82 -70
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +84 -70
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +44 -42
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +16 -14
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +22 -20
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +14 -14
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +16 -14
- package/out-ts/decentraland/sdk/ecs6/components_ecs6.gen.ts +8942 -0
- package/out-ts/decentraland/sdk/ecs6/engine_interface_ecs6.gen.ts +2884 -0
- package/out-ts/decentraland/social/friendships/friendships.gen.ts +447 -419
- package/out-ts/google/protobuf/descriptor.gen.ts +375 -350
- package/out-ts/google/protobuf/empty.gen.ts +14 -14
- package/package.json +3 -3
- package/proto/decentraland/common/vectors.proto +7 -0
- package/proto/decentraland/kernel/apis/engine_api.proto +2 -110
- package/proto/decentraland/sdk/ecs6/components_ecs6.proto +677 -0
- package/proto/decentraland/sdk/ecs6/engine_interface_ecs6.proto +151 -0
|
@@ -83,8 +83,8 @@ function createBaseWsWelcome(): WsWelcome {
|
|
|
83
83
|
return { alias: 0, peerIdentities: {} };
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export
|
|
87
|
-
encode(message: WsWelcome, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
86
|
+
export namespace WsWelcome {
|
|
87
|
+
export function encode(message: WsWelcome, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
88
88
|
if (message.alias !== 0) {
|
|
89
89
|
writer.uint32(8).uint32(message.alias);
|
|
90
90
|
}
|
|
@@ -92,9 +92,9 @@ export const WsWelcome = {
|
|
|
92
92
|
WsWelcome_PeerIdentitiesEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
|
|
93
93
|
});
|
|
94
94
|
return writer;
|
|
95
|
-
}
|
|
95
|
+
}
|
|
96
96
|
|
|
97
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): WsWelcome {
|
|
97
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WsWelcome {
|
|
98
98
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
99
99
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
100
100
|
const message = createBaseWsWelcome();
|
|
@@ -125,9 +125,9 @@ export const WsWelcome = {
|
|
|
125
125
|
reader.skipType(tag & 7);
|
|
126
126
|
}
|
|
127
127
|
return message;
|
|
128
|
-
}
|
|
128
|
+
}
|
|
129
129
|
|
|
130
|
-
fromJSON(object: any): WsWelcome {
|
|
130
|
+
export function fromJSON(object: any): WsWelcome {
|
|
131
131
|
return {
|
|
132
132
|
alias: isSet(object.alias) ? Number(object.alias) : 0,
|
|
133
133
|
peerIdentities: isObject(object.peerIdentities)
|
|
@@ -137,9 +137,9 @@ export const WsWelcome = {
|
|
|
137
137
|
}, {})
|
|
138
138
|
: {},
|
|
139
139
|
};
|
|
140
|
-
}
|
|
140
|
+
}
|
|
141
141
|
|
|
142
|
-
toJSON(message: WsWelcome): unknown {
|
|
142
|
+
export function toJSON(message: WsWelcome): unknown {
|
|
143
143
|
const obj: any = {};
|
|
144
144
|
message.alias !== undefined && (obj.alias = Math.round(message.alias));
|
|
145
145
|
obj.peerIdentities = {};
|
|
@@ -149,13 +149,13 @@ export const WsWelcome = {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
return obj;
|
|
152
|
-
}
|
|
152
|
+
}
|
|
153
153
|
|
|
154
|
-
create<I extends Exact<DeepPartial<WsWelcome>, I>>(base?: I): WsWelcome {
|
|
154
|
+
export function create<I extends Exact<DeepPartial<WsWelcome>, I>>(base?: I): WsWelcome {
|
|
155
155
|
return WsWelcome.fromPartial(base ?? {});
|
|
156
|
-
}
|
|
156
|
+
}
|
|
157
157
|
|
|
158
|
-
fromPartial<I extends Exact<DeepPartial<WsWelcome>, I>>(object: I): WsWelcome {
|
|
158
|
+
export function fromPartial<I extends Exact<DeepPartial<WsWelcome>, I>>(object: I): WsWelcome {
|
|
159
159
|
const message = createBaseWsWelcome();
|
|
160
160
|
message.alias = object.alias ?? 0;
|
|
161
161
|
message.peerIdentities = Object.entries(object.peerIdentities ?? {}).reduce<{ [key: number]: string }>(
|
|
@@ -168,15 +168,15 @@ export const WsWelcome = {
|
|
|
168
168
|
{},
|
|
169
169
|
);
|
|
170
170
|
return message;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
173
|
|
|
174
174
|
function createBaseWsWelcome_PeerIdentitiesEntry(): WsWelcome_PeerIdentitiesEntry {
|
|
175
175
|
return { key: 0, value: "" };
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
export
|
|
179
|
-
encode(message: WsWelcome_PeerIdentitiesEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
178
|
+
export namespace WsWelcome_PeerIdentitiesEntry {
|
|
179
|
+
export function encode(message: WsWelcome_PeerIdentitiesEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
180
180
|
if (message.key !== 0) {
|
|
181
181
|
writer.uint32(8).uint32(message.key);
|
|
182
182
|
}
|
|
@@ -184,9 +184,9 @@ export const WsWelcome_PeerIdentitiesEntry = {
|
|
|
184
184
|
writer.uint32(18).string(message.value);
|
|
185
185
|
}
|
|
186
186
|
return writer;
|
|
187
|
-
}
|
|
187
|
+
}
|
|
188
188
|
|
|
189
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): WsWelcome_PeerIdentitiesEntry {
|
|
189
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WsWelcome_PeerIdentitiesEntry {
|
|
190
190
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
191
191
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
192
192
|
const message = createBaseWsWelcome_PeerIdentitiesEntry();
|
|
@@ -214,39 +214,41 @@ export const WsWelcome_PeerIdentitiesEntry = {
|
|
|
214
214
|
reader.skipType(tag & 7);
|
|
215
215
|
}
|
|
216
216
|
return message;
|
|
217
|
-
}
|
|
217
|
+
}
|
|
218
218
|
|
|
219
|
-
fromJSON(object: any): WsWelcome_PeerIdentitiesEntry {
|
|
219
|
+
export function fromJSON(object: any): WsWelcome_PeerIdentitiesEntry {
|
|
220
220
|
return { key: isSet(object.key) ? Number(object.key) : 0, value: isSet(object.value) ? String(object.value) : "" };
|
|
221
|
-
}
|
|
221
|
+
}
|
|
222
222
|
|
|
223
|
-
toJSON(message: WsWelcome_PeerIdentitiesEntry): unknown {
|
|
223
|
+
export function toJSON(message: WsWelcome_PeerIdentitiesEntry): unknown {
|
|
224
224
|
const obj: any = {};
|
|
225
225
|
message.key !== undefined && (obj.key = Math.round(message.key));
|
|
226
226
|
message.value !== undefined && (obj.value = message.value);
|
|
227
227
|
return obj;
|
|
228
|
-
}
|
|
228
|
+
}
|
|
229
229
|
|
|
230
|
-
create<I extends Exact<DeepPartial<WsWelcome_PeerIdentitiesEntry>, I>>(
|
|
230
|
+
export function create<I extends Exact<DeepPartial<WsWelcome_PeerIdentitiesEntry>, I>>(
|
|
231
|
+
base?: I,
|
|
232
|
+
): WsWelcome_PeerIdentitiesEntry {
|
|
231
233
|
return WsWelcome_PeerIdentitiesEntry.fromPartial(base ?? {});
|
|
232
|
-
}
|
|
234
|
+
}
|
|
233
235
|
|
|
234
|
-
fromPartial<I extends Exact<DeepPartial<WsWelcome_PeerIdentitiesEntry>, I>>(
|
|
236
|
+
export function fromPartial<I extends Exact<DeepPartial<WsWelcome_PeerIdentitiesEntry>, I>>(
|
|
235
237
|
object: I,
|
|
236
238
|
): WsWelcome_PeerIdentitiesEntry {
|
|
237
239
|
const message = createBaseWsWelcome_PeerIdentitiesEntry();
|
|
238
240
|
message.key = object.key ?? 0;
|
|
239
241
|
message.value = object.value ?? "";
|
|
240
242
|
return message;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
243
245
|
|
|
244
246
|
function createBaseWsPeerJoin(): WsPeerJoin {
|
|
245
247
|
return { alias: 0, address: "" };
|
|
246
248
|
}
|
|
247
249
|
|
|
248
|
-
export
|
|
249
|
-
encode(message: WsPeerJoin, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
250
|
+
export namespace WsPeerJoin {
|
|
251
|
+
export function encode(message: WsPeerJoin, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
250
252
|
if (message.alias !== 0) {
|
|
251
253
|
writer.uint32(8).uint32(message.alias);
|
|
252
254
|
}
|
|
@@ -254,9 +256,9 @@ export const WsPeerJoin = {
|
|
|
254
256
|
writer.uint32(18).string(message.address);
|
|
255
257
|
}
|
|
256
258
|
return writer;
|
|
257
|
-
}
|
|
259
|
+
}
|
|
258
260
|
|
|
259
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): WsPeerJoin {
|
|
261
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WsPeerJoin {
|
|
260
262
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
261
263
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
262
264
|
const message = createBaseWsPeerJoin();
|
|
@@ -284,47 +286,47 @@ export const WsPeerJoin = {
|
|
|
284
286
|
reader.skipType(tag & 7);
|
|
285
287
|
}
|
|
286
288
|
return message;
|
|
287
|
-
}
|
|
289
|
+
}
|
|
288
290
|
|
|
289
|
-
fromJSON(object: any): WsPeerJoin {
|
|
291
|
+
export function fromJSON(object: any): WsPeerJoin {
|
|
290
292
|
return {
|
|
291
293
|
alias: isSet(object.alias) ? Number(object.alias) : 0,
|
|
292
294
|
address: isSet(object.address) ? String(object.address) : "",
|
|
293
295
|
};
|
|
294
|
-
}
|
|
296
|
+
}
|
|
295
297
|
|
|
296
|
-
toJSON(message: WsPeerJoin): unknown {
|
|
298
|
+
export function toJSON(message: WsPeerJoin): unknown {
|
|
297
299
|
const obj: any = {};
|
|
298
300
|
message.alias !== undefined && (obj.alias = Math.round(message.alias));
|
|
299
301
|
message.address !== undefined && (obj.address = message.address);
|
|
300
302
|
return obj;
|
|
301
|
-
}
|
|
303
|
+
}
|
|
302
304
|
|
|
303
|
-
create<I extends Exact<DeepPartial<WsPeerJoin>, I>>(base?: I): WsPeerJoin {
|
|
305
|
+
export function create<I extends Exact<DeepPartial<WsPeerJoin>, I>>(base?: I): WsPeerJoin {
|
|
304
306
|
return WsPeerJoin.fromPartial(base ?? {});
|
|
305
|
-
}
|
|
307
|
+
}
|
|
306
308
|
|
|
307
|
-
fromPartial<I extends Exact<DeepPartial<WsPeerJoin>, I>>(object: I): WsPeerJoin {
|
|
309
|
+
export function fromPartial<I extends Exact<DeepPartial<WsPeerJoin>, I>>(object: I): WsPeerJoin {
|
|
308
310
|
const message = createBaseWsPeerJoin();
|
|
309
311
|
message.alias = object.alias ?? 0;
|
|
310
312
|
message.address = object.address ?? "";
|
|
311
313
|
return message;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
314
316
|
|
|
315
317
|
function createBaseWsPeerLeave(): WsPeerLeave {
|
|
316
318
|
return { alias: 0 };
|
|
317
319
|
}
|
|
318
320
|
|
|
319
|
-
export
|
|
320
|
-
encode(message: WsPeerLeave, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
321
|
+
export namespace WsPeerLeave {
|
|
322
|
+
export function encode(message: WsPeerLeave, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
321
323
|
if (message.alias !== 0) {
|
|
322
324
|
writer.uint32(8).uint32(message.alias);
|
|
323
325
|
}
|
|
324
326
|
return writer;
|
|
325
|
-
}
|
|
327
|
+
}
|
|
326
328
|
|
|
327
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): WsPeerLeave {
|
|
329
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WsPeerLeave {
|
|
328
330
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
329
331
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
330
332
|
const message = createBaseWsPeerLeave();
|
|
@@ -345,35 +347,35 @@ export const WsPeerLeave = {
|
|
|
345
347
|
reader.skipType(tag & 7);
|
|
346
348
|
}
|
|
347
349
|
return message;
|
|
348
|
-
}
|
|
350
|
+
}
|
|
349
351
|
|
|
350
|
-
fromJSON(object: any): WsPeerLeave {
|
|
352
|
+
export function fromJSON(object: any): WsPeerLeave {
|
|
351
353
|
return { alias: isSet(object.alias) ? Number(object.alias) : 0 };
|
|
352
|
-
}
|
|
354
|
+
}
|
|
353
355
|
|
|
354
|
-
toJSON(message: WsPeerLeave): unknown {
|
|
356
|
+
export function toJSON(message: WsPeerLeave): unknown {
|
|
355
357
|
const obj: any = {};
|
|
356
358
|
message.alias !== undefined && (obj.alias = Math.round(message.alias));
|
|
357
359
|
return obj;
|
|
358
|
-
}
|
|
360
|
+
}
|
|
359
361
|
|
|
360
|
-
create<I extends Exact<DeepPartial<WsPeerLeave>, I>>(base?: I): WsPeerLeave {
|
|
362
|
+
export function create<I extends Exact<DeepPartial<WsPeerLeave>, I>>(base?: I): WsPeerLeave {
|
|
361
363
|
return WsPeerLeave.fromPartial(base ?? {});
|
|
362
|
-
}
|
|
364
|
+
}
|
|
363
365
|
|
|
364
|
-
fromPartial<I extends Exact<DeepPartial<WsPeerLeave>, I>>(object: I): WsPeerLeave {
|
|
366
|
+
export function fromPartial<I extends Exact<DeepPartial<WsPeerLeave>, I>>(object: I): WsPeerLeave {
|
|
365
367
|
const message = createBaseWsPeerLeave();
|
|
366
368
|
message.alias = object.alias ?? 0;
|
|
367
369
|
return message;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
370
372
|
|
|
371
373
|
function createBaseWsPeerUpdate(): WsPeerUpdate {
|
|
372
374
|
return { fromAlias: 0, body: new Uint8Array(), unreliable: false };
|
|
373
375
|
}
|
|
374
376
|
|
|
375
|
-
export
|
|
376
|
-
encode(message: WsPeerUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
377
|
+
export namespace WsPeerUpdate {
|
|
378
|
+
export function encode(message: WsPeerUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
377
379
|
if (message.fromAlias !== 0) {
|
|
378
380
|
writer.uint32(8).uint32(message.fromAlias);
|
|
379
381
|
}
|
|
@@ -384,9 +386,9 @@ export const WsPeerUpdate = {
|
|
|
384
386
|
writer.uint32(24).bool(message.unreliable);
|
|
385
387
|
}
|
|
386
388
|
return writer;
|
|
387
|
-
}
|
|
389
|
+
}
|
|
388
390
|
|
|
389
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): WsPeerUpdate {
|
|
391
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WsPeerUpdate {
|
|
390
392
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
391
393
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
392
394
|
const message = createBaseWsPeerUpdate();
|
|
@@ -421,44 +423,44 @@ export const WsPeerUpdate = {
|
|
|
421
423
|
reader.skipType(tag & 7);
|
|
422
424
|
}
|
|
423
425
|
return message;
|
|
424
|
-
}
|
|
426
|
+
}
|
|
425
427
|
|
|
426
|
-
fromJSON(object: any): WsPeerUpdate {
|
|
428
|
+
export function fromJSON(object: any): WsPeerUpdate {
|
|
427
429
|
return {
|
|
428
430
|
fromAlias: isSet(object.fromAlias) ? Number(object.fromAlias) : 0,
|
|
429
431
|
body: isSet(object.body) ? bytesFromBase64(object.body) : new Uint8Array(),
|
|
430
432
|
unreliable: isSet(object.unreliable) ? Boolean(object.unreliable) : false,
|
|
431
433
|
};
|
|
432
|
-
}
|
|
434
|
+
}
|
|
433
435
|
|
|
434
|
-
toJSON(message: WsPeerUpdate): unknown {
|
|
436
|
+
export function toJSON(message: WsPeerUpdate): unknown {
|
|
435
437
|
const obj: any = {};
|
|
436
438
|
message.fromAlias !== undefined && (obj.fromAlias = Math.round(message.fromAlias));
|
|
437
439
|
message.body !== undefined &&
|
|
438
440
|
(obj.body = base64FromBytes(message.body !== undefined ? message.body : new Uint8Array()));
|
|
439
441
|
message.unreliable !== undefined && (obj.unreliable = message.unreliable);
|
|
440
442
|
return obj;
|
|
441
|
-
}
|
|
443
|
+
}
|
|
442
444
|
|
|
443
|
-
create<I extends Exact<DeepPartial<WsPeerUpdate>, I>>(base?: I): WsPeerUpdate {
|
|
445
|
+
export function create<I extends Exact<DeepPartial<WsPeerUpdate>, I>>(base?: I): WsPeerUpdate {
|
|
444
446
|
return WsPeerUpdate.fromPartial(base ?? {});
|
|
445
|
-
}
|
|
447
|
+
}
|
|
446
448
|
|
|
447
|
-
fromPartial<I extends Exact<DeepPartial<WsPeerUpdate>, I>>(object: I): WsPeerUpdate {
|
|
449
|
+
export function fromPartial<I extends Exact<DeepPartial<WsPeerUpdate>, I>>(object: I): WsPeerUpdate {
|
|
448
450
|
const message = createBaseWsPeerUpdate();
|
|
449
451
|
message.fromAlias = object.fromAlias ?? 0;
|
|
450
452
|
message.body = object.body ?? new Uint8Array();
|
|
451
453
|
message.unreliable = object.unreliable ?? false;
|
|
452
454
|
return message;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
455
457
|
|
|
456
458
|
function createBaseWsChallengeRequired(): WsChallengeRequired {
|
|
457
459
|
return { challengeToSign: "", alreadyConnected: false };
|
|
458
460
|
}
|
|
459
461
|
|
|
460
|
-
export
|
|
461
|
-
encode(message: WsChallengeRequired, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
462
|
+
export namespace WsChallengeRequired {
|
|
463
|
+
export function encode(message: WsChallengeRequired, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
462
464
|
if (message.challengeToSign !== "") {
|
|
463
465
|
writer.uint32(10).string(message.challengeToSign);
|
|
464
466
|
}
|
|
@@ -466,9 +468,9 @@ export const WsChallengeRequired = {
|
|
|
466
468
|
writer.uint32(16).bool(message.alreadyConnected);
|
|
467
469
|
}
|
|
468
470
|
return writer;
|
|
469
|
-
}
|
|
471
|
+
}
|
|
470
472
|
|
|
471
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): WsChallengeRequired {
|
|
473
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WsChallengeRequired {
|
|
472
474
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
473
475
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
474
476
|
const message = createBaseWsChallengeRequired();
|
|
@@ -496,47 +498,47 @@ export const WsChallengeRequired = {
|
|
|
496
498
|
reader.skipType(tag & 7);
|
|
497
499
|
}
|
|
498
500
|
return message;
|
|
499
|
-
}
|
|
501
|
+
}
|
|
500
502
|
|
|
501
|
-
fromJSON(object: any): WsChallengeRequired {
|
|
503
|
+
export function fromJSON(object: any): WsChallengeRequired {
|
|
502
504
|
return {
|
|
503
505
|
challengeToSign: isSet(object.challengeToSign) ? String(object.challengeToSign) : "",
|
|
504
506
|
alreadyConnected: isSet(object.alreadyConnected) ? Boolean(object.alreadyConnected) : false,
|
|
505
507
|
};
|
|
506
|
-
}
|
|
508
|
+
}
|
|
507
509
|
|
|
508
|
-
toJSON(message: WsChallengeRequired): unknown {
|
|
510
|
+
export function toJSON(message: WsChallengeRequired): unknown {
|
|
509
511
|
const obj: any = {};
|
|
510
512
|
message.challengeToSign !== undefined && (obj.challengeToSign = message.challengeToSign);
|
|
511
513
|
message.alreadyConnected !== undefined && (obj.alreadyConnected = message.alreadyConnected);
|
|
512
514
|
return obj;
|
|
513
|
-
}
|
|
515
|
+
}
|
|
514
516
|
|
|
515
|
-
create<I extends Exact<DeepPartial<WsChallengeRequired>, I>>(base?: I): WsChallengeRequired {
|
|
517
|
+
export function create<I extends Exact<DeepPartial<WsChallengeRequired>, I>>(base?: I): WsChallengeRequired {
|
|
516
518
|
return WsChallengeRequired.fromPartial(base ?? {});
|
|
517
|
-
}
|
|
519
|
+
}
|
|
518
520
|
|
|
519
|
-
fromPartial<I extends Exact<DeepPartial<WsChallengeRequired>, I>>(object: I): WsChallengeRequired {
|
|
521
|
+
export function fromPartial<I extends Exact<DeepPartial<WsChallengeRequired>, I>>(object: I): WsChallengeRequired {
|
|
520
522
|
const message = createBaseWsChallengeRequired();
|
|
521
523
|
message.challengeToSign = object.challengeToSign ?? "";
|
|
522
524
|
message.alreadyConnected = object.alreadyConnected ?? false;
|
|
523
525
|
return message;
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
526
528
|
|
|
527
529
|
function createBaseWsSignedChallenge(): WsSignedChallenge {
|
|
528
530
|
return { authChainJson: "" };
|
|
529
531
|
}
|
|
530
532
|
|
|
531
|
-
export
|
|
532
|
-
encode(message: WsSignedChallenge, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
533
|
+
export namespace WsSignedChallenge {
|
|
534
|
+
export function encode(message: WsSignedChallenge, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
533
535
|
if (message.authChainJson !== "") {
|
|
534
536
|
writer.uint32(10).string(message.authChainJson);
|
|
535
537
|
}
|
|
536
538
|
return writer;
|
|
537
|
-
}
|
|
539
|
+
}
|
|
538
540
|
|
|
539
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): WsSignedChallenge {
|
|
541
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WsSignedChallenge {
|
|
540
542
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
541
543
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
542
544
|
const message = createBaseWsSignedChallenge();
|
|
@@ -557,42 +559,42 @@ export const WsSignedChallenge = {
|
|
|
557
559
|
reader.skipType(tag & 7);
|
|
558
560
|
}
|
|
559
561
|
return message;
|
|
560
|
-
}
|
|
562
|
+
}
|
|
561
563
|
|
|
562
|
-
fromJSON(object: any): WsSignedChallenge {
|
|
564
|
+
export function fromJSON(object: any): WsSignedChallenge {
|
|
563
565
|
return { authChainJson: isSet(object.authChainJson) ? String(object.authChainJson) : "" };
|
|
564
|
-
}
|
|
566
|
+
}
|
|
565
567
|
|
|
566
|
-
toJSON(message: WsSignedChallenge): unknown {
|
|
568
|
+
export function toJSON(message: WsSignedChallenge): unknown {
|
|
567
569
|
const obj: any = {};
|
|
568
570
|
message.authChainJson !== undefined && (obj.authChainJson = message.authChainJson);
|
|
569
571
|
return obj;
|
|
570
|
-
}
|
|
572
|
+
}
|
|
571
573
|
|
|
572
|
-
create<I extends Exact<DeepPartial<WsSignedChallenge>, I>>(base?: I): WsSignedChallenge {
|
|
574
|
+
export function create<I extends Exact<DeepPartial<WsSignedChallenge>, I>>(base?: I): WsSignedChallenge {
|
|
573
575
|
return WsSignedChallenge.fromPartial(base ?? {});
|
|
574
|
-
}
|
|
576
|
+
}
|
|
575
577
|
|
|
576
|
-
fromPartial<I extends Exact<DeepPartial<WsSignedChallenge>, I>>(object: I): WsSignedChallenge {
|
|
578
|
+
export function fromPartial<I extends Exact<DeepPartial<WsSignedChallenge>, I>>(object: I): WsSignedChallenge {
|
|
577
579
|
const message = createBaseWsSignedChallenge();
|
|
578
580
|
message.authChainJson = object.authChainJson ?? "";
|
|
579
581
|
return message;
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
582
584
|
|
|
583
585
|
function createBaseWsIdentification(): WsIdentification {
|
|
584
586
|
return { address: "" };
|
|
585
587
|
}
|
|
586
588
|
|
|
587
|
-
export
|
|
588
|
-
encode(message: WsIdentification, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
589
|
+
export namespace WsIdentification {
|
|
590
|
+
export function encode(message: WsIdentification, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
589
591
|
if (message.address !== "") {
|
|
590
592
|
writer.uint32(10).string(message.address);
|
|
591
593
|
}
|
|
592
594
|
return writer;
|
|
593
|
-
}
|
|
595
|
+
}
|
|
594
596
|
|
|
595
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): WsIdentification {
|
|
597
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WsIdentification {
|
|
596
598
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
597
599
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
598
600
|
const message = createBaseWsIdentification();
|
|
@@ -613,42 +615,42 @@ export const WsIdentification = {
|
|
|
613
615
|
reader.skipType(tag & 7);
|
|
614
616
|
}
|
|
615
617
|
return message;
|
|
616
|
-
}
|
|
618
|
+
}
|
|
617
619
|
|
|
618
|
-
fromJSON(object: any): WsIdentification {
|
|
620
|
+
export function fromJSON(object: any): WsIdentification {
|
|
619
621
|
return { address: isSet(object.address) ? String(object.address) : "" };
|
|
620
|
-
}
|
|
622
|
+
}
|
|
621
623
|
|
|
622
|
-
toJSON(message: WsIdentification): unknown {
|
|
624
|
+
export function toJSON(message: WsIdentification): unknown {
|
|
623
625
|
const obj: any = {};
|
|
624
626
|
message.address !== undefined && (obj.address = message.address);
|
|
625
627
|
return obj;
|
|
626
|
-
}
|
|
628
|
+
}
|
|
627
629
|
|
|
628
|
-
create<I extends Exact<DeepPartial<WsIdentification>, I>>(base?: I): WsIdentification {
|
|
630
|
+
export function create<I extends Exact<DeepPartial<WsIdentification>, I>>(base?: I): WsIdentification {
|
|
629
631
|
return WsIdentification.fromPartial(base ?? {});
|
|
630
|
-
}
|
|
632
|
+
}
|
|
631
633
|
|
|
632
|
-
fromPartial<I extends Exact<DeepPartial<WsIdentification>, I>>(object: I): WsIdentification {
|
|
634
|
+
export function fromPartial<I extends Exact<DeepPartial<WsIdentification>, I>>(object: I): WsIdentification {
|
|
633
635
|
const message = createBaseWsIdentification();
|
|
634
636
|
message.address = object.address ?? "";
|
|
635
637
|
return message;
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
638
640
|
|
|
639
641
|
function createBaseWsKicked(): WsKicked {
|
|
640
642
|
return { reason: "" };
|
|
641
643
|
}
|
|
642
644
|
|
|
643
|
-
export
|
|
644
|
-
encode(message: WsKicked, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
645
|
+
export namespace WsKicked {
|
|
646
|
+
export function encode(message: WsKicked, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
645
647
|
if (message.reason !== "") {
|
|
646
648
|
writer.uint32(10).string(message.reason);
|
|
647
649
|
}
|
|
648
650
|
return writer;
|
|
649
|
-
}
|
|
651
|
+
}
|
|
650
652
|
|
|
651
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): WsKicked {
|
|
653
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WsKicked {
|
|
652
654
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
653
655
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
654
656
|
const message = createBaseWsKicked();
|
|
@@ -669,35 +671,35 @@ export const WsKicked = {
|
|
|
669
671
|
reader.skipType(tag & 7);
|
|
670
672
|
}
|
|
671
673
|
return message;
|
|
672
|
-
}
|
|
674
|
+
}
|
|
673
675
|
|
|
674
|
-
fromJSON(object: any): WsKicked {
|
|
676
|
+
export function fromJSON(object: any): WsKicked {
|
|
675
677
|
return { reason: isSet(object.reason) ? String(object.reason) : "" };
|
|
676
|
-
}
|
|
678
|
+
}
|
|
677
679
|
|
|
678
|
-
toJSON(message: WsKicked): unknown {
|
|
680
|
+
export function toJSON(message: WsKicked): unknown {
|
|
679
681
|
const obj: any = {};
|
|
680
682
|
message.reason !== undefined && (obj.reason = message.reason);
|
|
681
683
|
return obj;
|
|
682
|
-
}
|
|
684
|
+
}
|
|
683
685
|
|
|
684
|
-
create<I extends Exact<DeepPartial<WsKicked>, I>>(base?: I): WsKicked {
|
|
686
|
+
export function create<I extends Exact<DeepPartial<WsKicked>, I>>(base?: I): WsKicked {
|
|
685
687
|
return WsKicked.fromPartial(base ?? {});
|
|
686
|
-
}
|
|
688
|
+
}
|
|
687
689
|
|
|
688
|
-
fromPartial<I extends Exact<DeepPartial<WsKicked>, I>>(object: I): WsKicked {
|
|
690
|
+
export function fromPartial<I extends Exact<DeepPartial<WsKicked>, I>>(object: I): WsKicked {
|
|
689
691
|
const message = createBaseWsKicked();
|
|
690
692
|
message.reason = object.reason ?? "";
|
|
691
693
|
return message;
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
694
696
|
|
|
695
697
|
function createBaseWsPacket(): WsPacket {
|
|
696
698
|
return { message: undefined };
|
|
697
699
|
}
|
|
698
700
|
|
|
699
|
-
export
|
|
700
|
-
encode(message: WsPacket, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
701
|
+
export namespace WsPacket {
|
|
702
|
+
export function encode(message: WsPacket, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
701
703
|
switch (message.message?.$case) {
|
|
702
704
|
case "welcomeMessage":
|
|
703
705
|
WsWelcome.encode(message.message.welcomeMessage, writer.uint32(10).fork()).ldelim();
|
|
@@ -725,9 +727,9 @@ export const WsPacket = {
|
|
|
725
727
|
break;
|
|
726
728
|
}
|
|
727
729
|
return writer;
|
|
728
|
-
}
|
|
730
|
+
}
|
|
729
731
|
|
|
730
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): WsPacket {
|
|
732
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): WsPacket {
|
|
731
733
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
732
734
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
733
735
|
const message = createBaseWsPacket();
|
|
@@ -812,9 +814,9 @@ export const WsPacket = {
|
|
|
812
814
|
reader.skipType(tag & 7);
|
|
813
815
|
}
|
|
814
816
|
return message;
|
|
815
|
-
}
|
|
817
|
+
}
|
|
816
818
|
|
|
817
|
-
fromJSON(object: any): WsPacket {
|
|
819
|
+
export function fromJSON(object: any): WsPacket {
|
|
818
820
|
return {
|
|
819
821
|
message: isSet(object.welcomeMessage)
|
|
820
822
|
? { $case: "welcomeMessage", welcomeMessage: WsWelcome.fromJSON(object.welcomeMessage) }
|
|
@@ -837,42 +839,48 @@ export const WsPacket = {
|
|
|
837
839
|
? { $case: "peerKicked", peerKicked: WsKicked.fromJSON(object.peerKicked) }
|
|
838
840
|
: undefined,
|
|
839
841
|
};
|
|
840
|
-
}
|
|
842
|
+
}
|
|
841
843
|
|
|
842
|
-
toJSON(message: WsPacket): unknown {
|
|
844
|
+
export function toJSON(message: WsPacket): unknown {
|
|
843
845
|
const obj: any = {};
|
|
844
|
-
message.message?.$case === "welcomeMessage" &&
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
846
|
+
message.message?.$case === "welcomeMessage" &&
|
|
847
|
+
(obj.welcomeMessage = message.message?.welcomeMessage
|
|
848
|
+
? WsWelcome.toJSON(message.message?.welcomeMessage)
|
|
849
|
+
: undefined);
|
|
850
|
+
message.message?.$case === "peerJoinMessage" &&
|
|
851
|
+
(obj.peerJoinMessage = message.message?.peerJoinMessage
|
|
852
|
+
? WsPeerJoin.toJSON(message.message?.peerJoinMessage)
|
|
853
|
+
: undefined);
|
|
854
|
+
message.message?.$case === "peerUpdateMessage" &&
|
|
855
|
+
(obj.peerUpdateMessage = message.message?.peerUpdateMessage
|
|
856
|
+
? WsPeerUpdate.toJSON(message.message?.peerUpdateMessage)
|
|
857
|
+
: undefined);
|
|
858
|
+
message.message?.$case === "challengeMessage" &&
|
|
859
|
+
(obj.challengeMessage = message.message?.challengeMessage
|
|
860
|
+
? WsChallengeRequired.toJSON(message.message?.challengeMessage)
|
|
861
|
+
: undefined);
|
|
856
862
|
message.message?.$case === "signedChallengeForServer" &&
|
|
857
863
|
(obj.signedChallengeForServer = message.message?.signedChallengeForServer
|
|
858
864
|
? WsSignedChallenge.toJSON(message.message?.signedChallengeForServer)
|
|
859
865
|
: undefined);
|
|
860
|
-
message.message?.$case === "peerLeaveMessage" &&
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
+
message.message?.$case === "peerLeaveMessage" &&
|
|
867
|
+
(obj.peerLeaveMessage = message.message?.peerLeaveMessage
|
|
868
|
+
? WsPeerLeave.toJSON(message.message?.peerLeaveMessage)
|
|
869
|
+
: undefined);
|
|
870
|
+
message.message?.$case === "peerIdentification" &&
|
|
871
|
+
(obj.peerIdentification = message.message?.peerIdentification
|
|
872
|
+
? WsIdentification.toJSON(message.message?.peerIdentification)
|
|
873
|
+
: undefined);
|
|
866
874
|
message.message?.$case === "peerKicked" &&
|
|
867
875
|
(obj.peerKicked = message.message?.peerKicked ? WsKicked.toJSON(message.message?.peerKicked) : undefined);
|
|
868
876
|
return obj;
|
|
869
|
-
}
|
|
877
|
+
}
|
|
870
878
|
|
|
871
|
-
create<I extends Exact<DeepPartial<WsPacket>, I>>(base?: I): WsPacket {
|
|
879
|
+
export function create<I extends Exact<DeepPartial<WsPacket>, I>>(base?: I): WsPacket {
|
|
872
880
|
return WsPacket.fromPartial(base ?? {});
|
|
873
|
-
}
|
|
881
|
+
}
|
|
874
882
|
|
|
875
|
-
fromPartial<I extends Exact<DeepPartial<WsPacket>, I>>(object: I): WsPacket {
|
|
883
|
+
export function fromPartial<I extends Exact<DeepPartial<WsPacket>, I>>(object: I): WsPacket {
|
|
876
884
|
const message = createBaseWsPacket();
|
|
877
885
|
if (
|
|
878
886
|
object.message?.$case === "welcomeMessage" &&
|
|
@@ -952,8 +960,8 @@ export const WsPacket = {
|
|
|
952
960
|
message.message = { $case: "peerKicked", peerKicked: WsKicked.fromPartial(object.message.peerKicked) };
|
|
953
961
|
}
|
|
954
962
|
return message;
|
|
955
|
-
}
|
|
956
|
-
}
|
|
963
|
+
}
|
|
964
|
+
}
|
|
957
965
|
|
|
958
966
|
declare var self: any | undefined;
|
|
959
967
|
declare var window: any | undefined;
|