@streamr/dht 102.0.0-beta.0 → 102.0.0-beta.2
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/dist/generated/packages/dht/protos/DhtRpc.d.ts +16 -8
- package/dist/generated/packages/dht/protos/DhtRpc.js +7 -5
- package/dist/generated/packages/dht/protos/DhtRpc.js.map +1 -1
- package/dist/package.json +15 -16
- package/dist/src/connection/ConnectionManager.js +18 -8
- package/dist/src/connection/ConnectionManager.js.map +1 -1
- package/dist/src/connection/Handshaker.d.ts +1 -1
- package/dist/src/connection/Handshaker.js +9 -5
- package/dist/src/connection/Handshaker.js.map +1 -1
- package/dist/src/connection/ManagedConnection.js +17 -7
- package/dist/src/connection/ManagedConnection.js.map +1 -1
- package/dist/src/connection/connectivityChecker.js +20 -10
- package/dist/src/connection/connectivityChecker.js.map +1 -1
- package/dist/src/connection/connectivityRequestHandler.js +3 -3
- package/dist/src/connection/connectivityRequestHandler.js.map +1 -1
- package/dist/src/connection/simulator/Simulator.js +3 -2
- package/dist/src/connection/simulator/Simulator.js.map +1 -1
- package/dist/src/connection/simulator/pings.d.ts +1 -1
- package/dist/src/connection/simulator/pings.js +3 -3
- package/dist/src/connection/simulator/pings.js.map +1 -1
- package/dist/src/connection/webrtc/NodeWebrtcConnection.js +0 -2
- package/dist/src/connection/webrtc/NodeWebrtcConnection.js.map +1 -1
- package/dist/src/connection/webrtc/WebrtcConnector.js +19 -9
- package/dist/src/connection/webrtc/WebrtcConnector.js.map +1 -1
- package/dist/src/connection/webrtc/iceServerAsString.js +1 -2
- package/dist/src/connection/webrtc/iceServerAsString.js.map +1 -1
- package/dist/src/connection/websocket/AbstractWebsocketClientConnection.d.ts +0 -2
- package/dist/src/connection/websocket/WebsocketClientConnectorRpcLocal.d.ts +0 -1
- package/dist/src/connection/websocket/WebsocketServerConnection.d.ts +0 -1
- package/dist/src/connection/websocket/WebsocketServerConnector.js +28 -18
- package/dist/src/connection/websocket/WebsocketServerConnector.js.map +1 -1
- package/dist/src/dht/DhtNode.d.ts +1 -0
- package/dist/src/dht/DhtNode.js +3 -2
- package/dist/src/dht/DhtNode.js.map +1 -1
- package/dist/src/dht/DhtNodeRpcLocal.d.ts +1 -1
- package/dist/src/dht/PeerManager.d.ts +2 -1
- package/dist/src/dht/PeerManager.js +2 -1
- package/dist/src/dht/PeerManager.js.map +1 -1
- package/dist/src/dht/contact/SortedContactList.js +1 -1
- package/dist/src/dht/contact/SortedContactList.js.map +1 -1
- package/dist/src/dht/discovery/DiscoverySession.d.ts +0 -1
- package/dist/src/dht/discovery/PeerDiscovery.d.ts +0 -1
- package/dist/src/dht/discovery/RingDiscoverySession.d.ts +0 -1
- package/dist/src/dht/recursive-operation/RecursiveOperationManager.d.ts +2 -2
- package/dist/src/dht/routing/DuplicateDetector.js.map +1 -1
- package/dist/src/dht/routing/RoutingSession.js +2 -2
- package/dist/src/dht/routing/RoutingSession.js.map +1 -1
- package/dist/src/dht/routing/RoutingTablesCache.d.ts +1 -1
- package/dist/src/dht/store/LocalDataStore.js +1 -1
- package/dist/src/dht/store/LocalDataStore.js.map +1 -1
- package/dist/src/dht/store/StoreManager.d.ts +1 -1
- package/dist/src/dht/store/StoreRpcLocal.d.ts +1 -1
- package/dist/src/helpers/AddressTools.js +2 -3
- package/dist/src/helpers/AddressTools.js.map +1 -1
- package/dist/src/helpers/debugHelpers.js +2 -2
- package/dist/src/helpers/debugHelpers.js.map +1 -1
- package/dist/src/helpers/protoClasses.d.ts +1 -1
- package/dist/src/helpers/protoClasses.js.map +1 -1
- package/dist/src/helpers/protoToString.js +1 -2
- package/dist/src/helpers/protoToString.js.map +1 -1
- package/dist/src/helpers/version.d.ts +1 -1
- package/dist/src/helpers/version.js +4 -4
- package/dist/src/helpers/version.js.map +1 -1
- package/eslint.config.mjs +12 -0
- package/jest.config.ts +12 -0
- package/package.json +15 -16
- package/protos/DhtRpc.proto +6 -4
- package/.eslintignore +0 -5
- package/.eslintrc +0 -3
- package/generated/google/protobuf/any.ts +0 -326
- package/generated/google/protobuf/empty.ts +0 -81
- package/generated/google/protobuf/timestamp.ts +0 -287
- package/generated/packages/dht/protos/DhtRpc.client.ts +0 -419
- package/generated/packages/dht/protos/DhtRpc.server.ts +0 -165
- package/generated/packages/dht/protos/DhtRpc.ts +0 -1266
- package/generated/packages/proto-rpc/protos/ProtoRpc.ts +0 -108
- package/jest.config.js +0 -5
- package/src/connection/Connection.ts +0 -28
- package/src/connection/ConnectionLockRpcLocal.ts +0 -78
- package/src/connection/ConnectionLockRpcRemote.ts +0 -64
- package/src/connection/ConnectionLockStates.ts +0 -131
- package/src/connection/ConnectionManager.ts +0 -661
- package/src/connection/ConnectionsView.ts +0 -8
- package/src/connection/ConnectorFacade.ts +0 -217
- package/src/connection/Handshaker.ts +0 -205
- package/src/connection/IConnection.ts +0 -40
- package/src/connection/ManagedConnection.ts +0 -113
- package/src/connection/OutputBuffer.ts +0 -28
- package/src/connection/PendingConnection.ts +0 -68
- package/src/connection/connectivityChecker.ts +0 -108
- package/src/connection/connectivityRequestHandler.ts +0 -116
- package/src/connection/simulator/Simulator.ts +0 -368
- package/src/connection/simulator/SimulatorConnection.ts +0 -137
- package/src/connection/simulator/SimulatorConnector.ts +0 -98
- package/src/connection/simulator/SimulatorTransport.ts +0 -15
- package/src/connection/simulator/pings.ts +0 -42
- package/src/connection/webrtc/BrowserWebrtcConnection.ts +0 -242
- package/src/connection/webrtc/IWebrtcConnection.ts +0 -24
- package/src/connection/webrtc/NodeWebrtcConnection.ts +0 -247
- package/src/connection/webrtc/WebrtcConnector.ts +0 -234
- package/src/connection/webrtc/WebrtcConnectorRpcLocal.ts +0 -108
- package/src/connection/webrtc/WebrtcConnectorRpcRemote.ts +0 -60
- package/src/connection/webrtc/iceServerAsString.ts +0 -15
- package/src/connection/websocket/AbstractWebsocketClientConnection.ts +0 -122
- package/src/connection/websocket/AutoCertifierClientFacade.ts +0 -89
- package/src/connection/websocket/BrowserWebsocketClientConnection.ts +0 -44
- package/src/connection/websocket/NodeWebsocketClientConnection.ts +0 -39
- package/src/connection/websocket/WebsocketClientConnector.ts +0 -119
- package/src/connection/websocket/WebsocketClientConnectorRpcLocal.ts +0 -38
- package/src/connection/websocket/WebsocketClientConnectorRpcRemote.ts +0 -19
- package/src/connection/websocket/WebsocketServer.ts +0 -164
- package/src/connection/websocket/WebsocketServerConnection.ts +0 -109
- package/src/connection/websocket/WebsocketServerConnector.ts +0 -286
- package/src/dht/DhtNode.ts +0 -678
- package/src/dht/DhtNodeRpcLocal.ts +0 -84
- package/src/dht/DhtNodeRpcRemote.ts +0 -107
- package/src/dht/ExternalApiRpcLocal.ts +0 -58
- package/src/dht/ExternalApiRpcRemote.ts +0 -41
- package/src/dht/PeerManager.ts +0 -303
- package/src/dht/contact/Contact.ts +0 -19
- package/src/dht/contact/ContactList.ts +0 -43
- package/src/dht/contact/RandomContactList.ts +0 -56
- package/src/dht/contact/RingContactList.ts +0 -143
- package/src/dht/contact/RpcRemote.ts +0 -72
- package/src/dht/contact/SortedContactList.ts +0 -173
- package/src/dht/contact/getClosestNodes.ts +0 -24
- package/src/dht/contact/ringIdentifiers.ts +0 -62
- package/src/dht/discovery/DiscoverySession.ts +0 -129
- package/src/dht/discovery/PeerDiscovery.ts +0 -244
- package/src/dht/discovery/RingDiscoverySession.ts +0 -148
- package/src/dht/recursive-operation/RecursiveOperationManager.ts +0 -251
- package/src/dht/recursive-operation/RecursiveOperationRpcLocal.ts +0 -34
- package/src/dht/recursive-operation/RecursiveOperationRpcRemote.ts +0 -43
- package/src/dht/recursive-operation/RecursiveOperationSession.ts +0 -231
- package/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.ts +0 -35
- package/src/dht/recursive-operation/RecursiveOperationSessionRpcRemote.ts +0 -30
- package/src/dht/routing/DuplicateDetector.ts +0 -34
- package/src/dht/routing/Router.ts +0 -246
- package/src/dht/routing/RouterRpcLocal.ts +0 -78
- package/src/dht/routing/RouterRpcRemote.ts +0 -80
- package/src/dht/routing/RoutingSession.ts +0 -243
- package/src/dht/routing/RoutingTablesCache.ts +0 -60
- package/src/dht/routing/getPreviousPeer.ts +0 -6
- package/src/dht/store/LocalDataStore.ts +0 -84
- package/src/dht/store/StoreManager.ts +0 -170
- package/src/dht/store/StoreRpcLocal.ts +0 -89
- package/src/dht/store/StoreRpcRemote.ts +0 -32
- package/src/exports.ts +0 -33
- package/src/helpers/AddressTools.ts +0 -28
- package/src/helpers/Connectivity.ts +0 -19
- package/src/helpers/browser/isBrowserEnvironment.ts +0 -1
- package/src/helpers/browser/isBrowserEnvironment_override.ts +0 -3
- package/src/helpers/createPeerDescriptor.ts +0 -57
- package/src/helpers/createPeerDescriptorSignaturePayload.ts +0 -28
- package/src/helpers/debugHelpers.ts +0 -9
- package/src/helpers/errors.ts +0 -49
- package/src/helpers/offering.ts +0 -15
- package/src/helpers/protoClasses.ts +0 -57
- package/src/helpers/protoToString.ts +0 -21
- package/src/helpers/version.ts +0 -32
- package/src/identifiers.ts +0 -29
- package/src/rpc-protocol/DhtCallContext.ts +0 -14
- package/src/rpc-protocol/DhtRpcOptions.ts +0 -10
- package/src/transport/ITransport.ts +0 -37
- package/src/transport/ListeningRpcCommunicator.ts +0 -32
- package/src/transport/RoutingRpcCommunicator.ts +0 -66
- package/src/types/ServiceID.ts +0 -1
- package/src/types/textencoding.d.ts +0 -6
- package/test/benchmark/Find.test.ts +0 -72
- package/test/benchmark/KademliaCorrectness.test.ts +0 -114
- package/test/benchmark/RingCorrectness.test.ts +0 -157
- package/test/benchmark/SortedContactListBenchmark.test.ts +0 -108
- package/test/benchmark/WebsocketServerMemoryLeak.test.ts +0 -41
- package/test/benchmark/hybrid-network-simulation/RingContactList.test.ts +0 -71
- package/test/end-to-end/GeoIpLayer0.test.ts +0 -55
- package/test/end-to-end/Layer0-Layer1.test.ts +0 -93
- package/test/end-to-end/Layer0.test.ts +0 -76
- package/test/end-to-end/Layer0MixedConnectionTypes.test.ts +0 -110
- package/test/end-to-end/Layer0Webrtc-Layer1.test.ts +0 -137
- package/test/end-to-end/Layer0Webrtc.test.ts +0 -85
- package/test/end-to-end/Layer1-Scale-WebSocket.test.ts +0 -82
- package/test/end-to-end/Layer1-Scale-Webrtc.test.ts +0 -76
- package/test/end-to-end/RecoveryFromFailedAutoCertification.test.ts +0 -52
- package/test/end-to-end/WebsocketConnectionRequest.test.ts +0 -69
- package/test/end-to-end/memory-leak.test.ts +0 -80
- package/test/integration/ConnectionLocking.test.ts +0 -182
- package/test/integration/ConnectionManager.test.ts +0 -528
- package/test/integration/ConnectivityChecking.test.ts +0 -53
- package/test/integration/DhtJoinPeerDiscovery.test.ts +0 -49
- package/test/integration/DhtNode.test.ts +0 -66
- package/test/integration/DhtNodeExternalAPI.test.ts +0 -48
- package/test/integration/DhtNodeRpcRemote.test.ts +0 -66
- package/test/integration/DhtRpc.test.ts +0 -121
- package/test/integration/Find.test.ts +0 -45
- package/test/integration/GeoIpConnectivityChecking.test.ts +0 -72
- package/test/integration/Layer1-scale.test.ts +0 -189
- package/test/integration/Mock-Layer1-Layer0.test.ts +0 -85
- package/test/integration/MultipleEntryPointJoining.test.ts +0 -105
- package/test/integration/ReplicateData.test.ts +0 -104
- package/test/integration/RouteMessage.test.ts +0 -230
- package/test/integration/RouterRpcRemote.test.ts +0 -77
- package/test/integration/SimultaneousConnections.test.ts +0 -316
- package/test/integration/Store.test.ts +0 -85
- package/test/integration/StoreAndDelete.test.ts +0 -77
- package/test/integration/StoreOnDhtWithThreeNodes.test.ts +0 -59
- package/test/integration/StoreOnDhtWithTwoNodes.test.ts +0 -51
- package/test/integration/StoreRpcRemote.test.ts +0 -54
- package/test/integration/WebrtcConnectionManagement.test.ts +0 -219
- package/test/integration/WebrtcConnectorRpc.test.ts +0 -125
- package/test/integration/Websocket.test.ts +0 -65
- package/test/integration/WebsocketClientConnectorRpc.test.ts +0 -69
- package/test/integration/WebsocketConnectionManagement.test.ts +0 -191
- package/test/integration/rpc-connections-over-webrtc.test.ts +0 -158
- package/test/kademlia-simulation/data/nodeids.json +0 -13002
- package/test/kademlia-simulation/data/orderedneighbors.json +0 -1001
- package/test/types/global.d.ts +0 -1
- package/test/unit/AddressTools.test.ts +0 -44
- package/test/unit/AutoCertifierClientFacade.test.ts +0 -58
- package/test/unit/ConnectionManager.test.ts +0 -65
- package/test/unit/ConnectivityHelpers.test.ts +0 -61
- package/test/unit/DiscoverySession.test.ts +0 -87
- package/test/unit/DuplicateDetector.test.ts +0 -31
- package/test/unit/Handshaker.test.ts +0 -169
- package/test/unit/ListeningRpcCommunicator.test.ts +0 -52
- package/test/unit/LocalDataStore.test.ts +0 -108
- package/test/unit/ManagedConnection.test.ts +0 -58
- package/test/unit/PeerManager.test.ts +0 -93
- package/test/unit/PendingConnection.test.ts +0 -57
- package/test/unit/ProtobufMessage.test.ts +0 -21
- package/test/unit/RandomContactList.test.ts +0 -58
- package/test/unit/RecursiveOperationManager.test.ts +0 -161
- package/test/unit/RecursiveOperationSession.test.ts +0 -68
- package/test/unit/Router.test.ts +0 -137
- package/test/unit/RoutingSession.test.ts +0 -79
- package/test/unit/SortedContactList.test.ts +0 -115
- package/test/unit/StoreManager.test.ts +0 -146
- package/test/unit/StoreRpcLocal.test.ts +0 -167
- package/test/unit/WebrtcConnection.test.ts +0 -29
- package/test/unit/WebrtcConnector.test.ts +0 -56
- package/test/unit/WebsocketClientConnector.test.ts +0 -101
- package/test/unit/WebsocketServer.test.ts +0 -66
- package/test/unit/WebsocketServerConnector.test.ts +0 -102
- package/test/unit/connectivityRequestHandler.test.ts +0 -104
- package/test/unit/createPeerDescriptor.test.ts +0 -69
- package/test/unit/customMatchers.test.ts +0 -16
- package/test/unit/getClosestNodes.test.ts +0 -30
- package/test/unit/version.test.ts +0 -18
- package/test/unit/webrtcReplaceInternalIpWithExternalIp.test.ts +0 -18
- package/test/utils/FakeConnectorFacade.ts +0 -41
- package/test/utils/FakeRpcCommunicator.ts +0 -23
- package/test/utils/FakeTransport.ts +0 -79
- package/test/utils/customMatchers.ts +0 -71
- package/test/utils/mock/MockConnection.ts +0 -26
- package/test/utils/mock/MockConnectionsView.ts +0 -18
- package/test/utils/mock/MockRouter.ts +0 -62
- package/test/utils/mock/MockRpcCommunicator.ts +0 -7
- package/test/utils/mock/MockTransport.ts +0 -26
- package/test/utils/mock/mockDataEntry.ts +0 -38
- package/test/utils/topology.ts +0 -80
- package/test/utils/utils.ts +0 -268
- package/tsconfig.browser.json +0 -17
- package/tsconfig.jest.json +0 -25
- package/tsconfig.json +0 -3
- package/tsconfig.node.json +0 -24
|
@@ -1,419 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.4 with parameter server_generic,generate_dependencies,long_type_number
|
|
2
|
-
// @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { ExternalApiRpc } from "./DhtRpc";
|
|
5
|
-
import type { ExternalStoreDataResponse } from "./DhtRpc";
|
|
6
|
-
import type { ExternalStoreDataRequest } from "./DhtRpc";
|
|
7
|
-
import type { ExternalFetchDataResponse } from "./DhtRpc";
|
|
8
|
-
import type { ExternalFetchDataRequest } from "./DhtRpc";
|
|
9
|
-
import { ConnectionLockRpc } from "./DhtRpc";
|
|
10
|
-
import type { SetPrivateRequest } from "./DhtRpc";
|
|
11
|
-
import type { DisconnectNotice } from "./DhtRpc";
|
|
12
|
-
import type { UnlockRequest } from "./DhtRpc";
|
|
13
|
-
import type { LockResponse } from "./DhtRpc";
|
|
14
|
-
import type { LockRequest } from "./DhtRpc";
|
|
15
|
-
import { WebrtcConnectorRpc } from "./DhtRpc";
|
|
16
|
-
import type { IceCandidate } from "./DhtRpc";
|
|
17
|
-
import type { RtcAnswer } from "./DhtRpc";
|
|
18
|
-
import type { RtcOffer } from "./DhtRpc";
|
|
19
|
-
import type { WebrtcConnectionRequest } from "./DhtRpc";
|
|
20
|
-
import { WebsocketClientConnectorRpc } from "./DhtRpc";
|
|
21
|
-
import type { WebsocketConnectionRequest } from "./DhtRpc";
|
|
22
|
-
import { RecursiveOperationSessionRpc } from "./DhtRpc";
|
|
23
|
-
import type { RecursiveOperationResponse } from "./DhtRpc";
|
|
24
|
-
import { StoreRpc } from "./DhtRpc";
|
|
25
|
-
import type { ReplicateDataRequest } from "./DhtRpc";
|
|
26
|
-
import type { StoreDataResponse } from "./DhtRpc";
|
|
27
|
-
import type { StoreDataRequest } from "./DhtRpc";
|
|
28
|
-
import { RecursiveOperationRpc } from "./DhtRpc";
|
|
29
|
-
import { RouterRpc } from "./DhtRpc";
|
|
30
|
-
import type { RouteMessageAck } from "./DhtRpc";
|
|
31
|
-
import type { RouteMessageWrapper } from "./DhtRpc";
|
|
32
|
-
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
33
|
-
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
34
|
-
import { DhtNodeRpc } from "./DhtRpc";
|
|
35
|
-
import type { Empty } from "../../../google/protobuf/empty";
|
|
36
|
-
import type { LeaveNotice } from "./DhtRpc";
|
|
37
|
-
import type { PingResponse } from "./DhtRpc";
|
|
38
|
-
import type { PingRequest } from "./DhtRpc";
|
|
39
|
-
import type { ClosestRingPeersResponse } from "./DhtRpc";
|
|
40
|
-
import type { ClosestRingPeersRequest } from "./DhtRpc";
|
|
41
|
-
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
42
|
-
import type { ClosestPeersResponse } from "./DhtRpc";
|
|
43
|
-
import type { ClosestPeersRequest } from "./DhtRpc";
|
|
44
|
-
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
45
|
-
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
46
|
-
/**
|
|
47
|
-
* @generated from protobuf service dht.DhtNodeRpc
|
|
48
|
-
*/
|
|
49
|
-
export interface IDhtNodeRpcClient {
|
|
50
|
-
/**
|
|
51
|
-
* TODO rename to getClosestNeighbors (breaking change)
|
|
52
|
-
*
|
|
53
|
-
* @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
|
|
54
|
-
*/
|
|
55
|
-
getClosestPeers(input: ClosestPeersRequest, options?: RpcOptions): UnaryCall<ClosestPeersRequest, ClosestPeersResponse>;
|
|
56
|
-
/**
|
|
57
|
-
* TODO rename to getClosestRingContacts (breaking change)
|
|
58
|
-
*
|
|
59
|
-
* @generated from protobuf rpc: getClosestRingPeers(dht.ClosestRingPeersRequest) returns (dht.ClosestRingPeersResponse);
|
|
60
|
-
*/
|
|
61
|
-
getClosestRingPeers(input: ClosestRingPeersRequest, options?: RpcOptions): UnaryCall<ClosestRingPeersRequest, ClosestRingPeersResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* @generated from protobuf rpc: ping(dht.PingRequest) returns (dht.PingResponse);
|
|
64
|
-
*/
|
|
65
|
-
ping(input: PingRequest, options?: RpcOptions): UnaryCall<PingRequest, PingResponse>;
|
|
66
|
-
/**
|
|
67
|
-
* @generated from protobuf rpc: leaveNotice(dht.LeaveNotice) returns (google.protobuf.Empty);
|
|
68
|
-
*/
|
|
69
|
-
leaveNotice(input: LeaveNotice, options?: RpcOptions): UnaryCall<LeaveNotice, Empty>;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* @generated from protobuf service dht.DhtNodeRpc
|
|
73
|
-
*/
|
|
74
|
-
export class DhtNodeRpcClient implements IDhtNodeRpcClient, ServiceInfo {
|
|
75
|
-
typeName = DhtNodeRpc.typeName;
|
|
76
|
-
methods = DhtNodeRpc.methods;
|
|
77
|
-
options = DhtNodeRpc.options;
|
|
78
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* TODO rename to getClosestNeighbors (breaking change)
|
|
82
|
-
*
|
|
83
|
-
* @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
|
|
84
|
-
*/
|
|
85
|
-
getClosestPeers(input: ClosestPeersRequest, options?: RpcOptions): UnaryCall<ClosestPeersRequest, ClosestPeersResponse> {
|
|
86
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
87
|
-
return stackIntercept<ClosestPeersRequest, ClosestPeersResponse>("unary", this._transport, method, opt, input);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* TODO rename to getClosestRingContacts (breaking change)
|
|
91
|
-
*
|
|
92
|
-
* @generated from protobuf rpc: getClosestRingPeers(dht.ClosestRingPeersRequest) returns (dht.ClosestRingPeersResponse);
|
|
93
|
-
*/
|
|
94
|
-
getClosestRingPeers(input: ClosestRingPeersRequest, options?: RpcOptions): UnaryCall<ClosestRingPeersRequest, ClosestRingPeersResponse> {
|
|
95
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
96
|
-
return stackIntercept<ClosestRingPeersRequest, ClosestRingPeersResponse>("unary", this._transport, method, opt, input);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* @generated from protobuf rpc: ping(dht.PingRequest) returns (dht.PingResponse);
|
|
100
|
-
*/
|
|
101
|
-
ping(input: PingRequest, options?: RpcOptions): UnaryCall<PingRequest, PingResponse> {
|
|
102
|
-
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
103
|
-
return stackIntercept<PingRequest, PingResponse>("unary", this._transport, method, opt, input);
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* @generated from protobuf rpc: leaveNotice(dht.LeaveNotice) returns (google.protobuf.Empty);
|
|
107
|
-
*/
|
|
108
|
-
leaveNotice(input: LeaveNotice, options?: RpcOptions): UnaryCall<LeaveNotice, Empty> {
|
|
109
|
-
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
110
|
-
return stackIntercept<LeaveNotice, Empty>("unary", this._transport, method, opt, input);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* @generated from protobuf service dht.RouterRpc
|
|
115
|
-
*/
|
|
116
|
-
export interface IRouterRpcClient {
|
|
117
|
-
/**
|
|
118
|
-
* @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
119
|
-
*/
|
|
120
|
-
routeMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
121
|
-
/**
|
|
122
|
-
* @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
123
|
-
*/
|
|
124
|
-
forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* @generated from protobuf service dht.RouterRpc
|
|
128
|
-
*/
|
|
129
|
-
export class RouterRpcClient implements IRouterRpcClient, ServiceInfo {
|
|
130
|
-
typeName = RouterRpc.typeName;
|
|
131
|
-
methods = RouterRpc.methods;
|
|
132
|
-
options = RouterRpc.options;
|
|
133
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
137
|
-
*/
|
|
138
|
-
routeMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck> {
|
|
139
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
140
|
-
return stackIntercept<RouteMessageWrapper, RouteMessageAck>("unary", this._transport, method, opt, input);
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
144
|
-
*/
|
|
145
|
-
forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck> {
|
|
146
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
147
|
-
return stackIntercept<RouteMessageWrapper, RouteMessageAck>("unary", this._transport, method, opt, input);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* @generated from protobuf service dht.RecursiveOperationRpc
|
|
152
|
-
*/
|
|
153
|
-
export interface IRecursiveOperationRpcClient {
|
|
154
|
-
/**
|
|
155
|
-
* @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
156
|
-
*/
|
|
157
|
-
routeRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* @generated from protobuf service dht.RecursiveOperationRpc
|
|
161
|
-
*/
|
|
162
|
-
export class RecursiveOperationRpcClient implements IRecursiveOperationRpcClient, ServiceInfo {
|
|
163
|
-
typeName = RecursiveOperationRpc.typeName;
|
|
164
|
-
methods = RecursiveOperationRpc.methods;
|
|
165
|
-
options = RecursiveOperationRpc.options;
|
|
166
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
170
|
-
*/
|
|
171
|
-
routeRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck> {
|
|
172
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
173
|
-
return stackIntercept<RouteMessageWrapper, RouteMessageAck>("unary", this._transport, method, opt, input);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* @generated from protobuf service dht.StoreRpc
|
|
178
|
-
*/
|
|
179
|
-
export interface IStoreRpcClient {
|
|
180
|
-
/**
|
|
181
|
-
* @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
|
|
182
|
-
*/
|
|
183
|
-
storeData(input: StoreDataRequest, options?: RpcOptions): UnaryCall<StoreDataRequest, StoreDataResponse>;
|
|
184
|
-
/**
|
|
185
|
-
* @generated from protobuf rpc: replicateData(dht.ReplicateDataRequest) returns (google.protobuf.Empty);
|
|
186
|
-
*/
|
|
187
|
-
replicateData(input: ReplicateDataRequest, options?: RpcOptions): UnaryCall<ReplicateDataRequest, Empty>;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* @generated from protobuf service dht.StoreRpc
|
|
191
|
-
*/
|
|
192
|
-
export class StoreRpcClient implements IStoreRpcClient, ServiceInfo {
|
|
193
|
-
typeName = StoreRpc.typeName;
|
|
194
|
-
methods = StoreRpc.methods;
|
|
195
|
-
options = StoreRpc.options;
|
|
196
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
|
|
200
|
-
*/
|
|
201
|
-
storeData(input: StoreDataRequest, options?: RpcOptions): UnaryCall<StoreDataRequest, StoreDataResponse> {
|
|
202
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
203
|
-
return stackIntercept<StoreDataRequest, StoreDataResponse>("unary", this._transport, method, opt, input);
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* @generated from protobuf rpc: replicateData(dht.ReplicateDataRequest) returns (google.protobuf.Empty);
|
|
207
|
-
*/
|
|
208
|
-
replicateData(input: ReplicateDataRequest, options?: RpcOptions): UnaryCall<ReplicateDataRequest, Empty> {
|
|
209
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
210
|
-
return stackIntercept<ReplicateDataRequest, Empty>("unary", this._transport, method, opt, input);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* @generated from protobuf service dht.RecursiveOperationSessionRpc
|
|
215
|
-
*/
|
|
216
|
-
export interface IRecursiveOperationSessionRpcClient {
|
|
217
|
-
/**
|
|
218
|
-
* @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
|
|
219
|
-
*/
|
|
220
|
-
sendResponse(input: RecursiveOperationResponse, options?: RpcOptions): UnaryCall<RecursiveOperationResponse, Empty>;
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* @generated from protobuf service dht.RecursiveOperationSessionRpc
|
|
224
|
-
*/
|
|
225
|
-
export class RecursiveOperationSessionRpcClient implements IRecursiveOperationSessionRpcClient, ServiceInfo {
|
|
226
|
-
typeName = RecursiveOperationSessionRpc.typeName;
|
|
227
|
-
methods = RecursiveOperationSessionRpc.methods;
|
|
228
|
-
options = RecursiveOperationSessionRpc.options;
|
|
229
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
|
|
233
|
-
*/
|
|
234
|
-
sendResponse(input: RecursiveOperationResponse, options?: RpcOptions): UnaryCall<RecursiveOperationResponse, Empty> {
|
|
235
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
236
|
-
return stackIntercept<RecursiveOperationResponse, Empty>("unary", this._transport, method, opt, input);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* @generated from protobuf service dht.WebsocketClientConnectorRpc
|
|
241
|
-
*/
|
|
242
|
-
export interface IWebsocketClientConnectorRpcClient {
|
|
243
|
-
/**
|
|
244
|
-
* @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
|
|
245
|
-
*/
|
|
246
|
-
requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, Empty>;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* @generated from protobuf service dht.WebsocketClientConnectorRpc
|
|
250
|
-
*/
|
|
251
|
-
export class WebsocketClientConnectorRpcClient implements IWebsocketClientConnectorRpcClient, ServiceInfo {
|
|
252
|
-
typeName = WebsocketClientConnectorRpc.typeName;
|
|
253
|
-
methods = WebsocketClientConnectorRpc.methods;
|
|
254
|
-
options = WebsocketClientConnectorRpc.options;
|
|
255
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
|
|
259
|
-
*/
|
|
260
|
-
requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, Empty> {
|
|
261
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
262
|
-
return stackIntercept<WebsocketConnectionRequest, Empty>("unary", this._transport, method, opt, input);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* @generated from protobuf service dht.WebrtcConnectorRpc
|
|
267
|
-
*/
|
|
268
|
-
export interface IWebrtcConnectorRpcClient {
|
|
269
|
-
/**
|
|
270
|
-
* @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
|
|
271
|
-
*/
|
|
272
|
-
requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty>;
|
|
273
|
-
/**
|
|
274
|
-
* @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
|
|
275
|
-
*/
|
|
276
|
-
rtcOffer(input: RtcOffer, options?: RpcOptions): UnaryCall<RtcOffer, Empty>;
|
|
277
|
-
/**
|
|
278
|
-
* @generated from protobuf rpc: rtcAnswer(dht.RtcAnswer) returns (google.protobuf.Empty);
|
|
279
|
-
*/
|
|
280
|
-
rtcAnswer(input: RtcAnswer, options?: RpcOptions): UnaryCall<RtcAnswer, Empty>;
|
|
281
|
-
/**
|
|
282
|
-
* @generated from protobuf rpc: iceCandidate(dht.IceCandidate) returns (google.protobuf.Empty);
|
|
283
|
-
*/
|
|
284
|
-
iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* @generated from protobuf service dht.WebrtcConnectorRpc
|
|
288
|
-
*/
|
|
289
|
-
export class WebrtcConnectorRpcClient implements IWebrtcConnectorRpcClient, ServiceInfo {
|
|
290
|
-
typeName = WebrtcConnectorRpc.typeName;
|
|
291
|
-
methods = WebrtcConnectorRpc.methods;
|
|
292
|
-
options = WebrtcConnectorRpc.options;
|
|
293
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
|
|
297
|
-
*/
|
|
298
|
-
requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty> {
|
|
299
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
300
|
-
return stackIntercept<WebrtcConnectionRequest, Empty>("unary", this._transport, method, opt, input);
|
|
301
|
-
}
|
|
302
|
-
/**
|
|
303
|
-
* @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
|
|
304
|
-
*/
|
|
305
|
-
rtcOffer(input: RtcOffer, options?: RpcOptions): UnaryCall<RtcOffer, Empty> {
|
|
306
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
307
|
-
return stackIntercept<RtcOffer, Empty>("unary", this._transport, method, opt, input);
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* @generated from protobuf rpc: rtcAnswer(dht.RtcAnswer) returns (google.protobuf.Empty);
|
|
311
|
-
*/
|
|
312
|
-
rtcAnswer(input: RtcAnswer, options?: RpcOptions): UnaryCall<RtcAnswer, Empty> {
|
|
313
|
-
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
314
|
-
return stackIntercept<RtcAnswer, Empty>("unary", this._transport, method, opt, input);
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* @generated from protobuf rpc: iceCandidate(dht.IceCandidate) returns (google.protobuf.Empty);
|
|
318
|
-
*/
|
|
319
|
-
iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty> {
|
|
320
|
-
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
321
|
-
return stackIntercept<IceCandidate, Empty>("unary", this._transport, method, opt, input);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* @generated from protobuf service dht.ConnectionLockRpc
|
|
326
|
-
*/
|
|
327
|
-
export interface IConnectionLockRpcClient {
|
|
328
|
-
/**
|
|
329
|
-
* @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
|
|
330
|
-
*/
|
|
331
|
-
lockRequest(input: LockRequest, options?: RpcOptions): UnaryCall<LockRequest, LockResponse>;
|
|
332
|
-
/**
|
|
333
|
-
* @generated from protobuf rpc: unlockRequest(dht.UnlockRequest) returns (google.protobuf.Empty);
|
|
334
|
-
*/
|
|
335
|
-
unlockRequest(input: UnlockRequest, options?: RpcOptions): UnaryCall<UnlockRequest, Empty>;
|
|
336
|
-
/**
|
|
337
|
-
* @generated from protobuf rpc: gracefulDisconnect(dht.DisconnectNotice) returns (google.protobuf.Empty);
|
|
338
|
-
*/
|
|
339
|
-
gracefulDisconnect(input: DisconnectNotice, options?: RpcOptions): UnaryCall<DisconnectNotice, Empty>;
|
|
340
|
-
/**
|
|
341
|
-
* @generated from protobuf rpc: setPrivate(dht.SetPrivateRequest) returns (google.protobuf.Empty);
|
|
342
|
-
*/
|
|
343
|
-
setPrivate(input: SetPrivateRequest, options?: RpcOptions): UnaryCall<SetPrivateRequest, Empty>;
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* @generated from protobuf service dht.ConnectionLockRpc
|
|
347
|
-
*/
|
|
348
|
-
export class ConnectionLockRpcClient implements IConnectionLockRpcClient, ServiceInfo {
|
|
349
|
-
typeName = ConnectionLockRpc.typeName;
|
|
350
|
-
methods = ConnectionLockRpc.methods;
|
|
351
|
-
options = ConnectionLockRpc.options;
|
|
352
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
|
|
356
|
-
*/
|
|
357
|
-
lockRequest(input: LockRequest, options?: RpcOptions): UnaryCall<LockRequest, LockResponse> {
|
|
358
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
359
|
-
return stackIntercept<LockRequest, LockResponse>("unary", this._transport, method, opt, input);
|
|
360
|
-
}
|
|
361
|
-
/**
|
|
362
|
-
* @generated from protobuf rpc: unlockRequest(dht.UnlockRequest) returns (google.protobuf.Empty);
|
|
363
|
-
*/
|
|
364
|
-
unlockRequest(input: UnlockRequest, options?: RpcOptions): UnaryCall<UnlockRequest, Empty> {
|
|
365
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
366
|
-
return stackIntercept<UnlockRequest, Empty>("unary", this._transport, method, opt, input);
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* @generated from protobuf rpc: gracefulDisconnect(dht.DisconnectNotice) returns (google.protobuf.Empty);
|
|
370
|
-
*/
|
|
371
|
-
gracefulDisconnect(input: DisconnectNotice, options?: RpcOptions): UnaryCall<DisconnectNotice, Empty> {
|
|
372
|
-
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
373
|
-
return stackIntercept<DisconnectNotice, Empty>("unary", this._transport, method, opt, input);
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* @generated from protobuf rpc: setPrivate(dht.SetPrivateRequest) returns (google.protobuf.Empty);
|
|
377
|
-
*/
|
|
378
|
-
setPrivate(input: SetPrivateRequest, options?: RpcOptions): UnaryCall<SetPrivateRequest, Empty> {
|
|
379
|
-
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
380
|
-
return stackIntercept<SetPrivateRequest, Empty>("unary", this._transport, method, opt, input);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* @generated from protobuf service dht.ExternalApiRpc
|
|
385
|
-
*/
|
|
386
|
-
export interface IExternalApiRpcClient {
|
|
387
|
-
/**
|
|
388
|
-
* @generated from protobuf rpc: externalFetchData(dht.ExternalFetchDataRequest) returns (dht.ExternalFetchDataResponse);
|
|
389
|
-
*/
|
|
390
|
-
externalFetchData(input: ExternalFetchDataRequest, options?: RpcOptions): UnaryCall<ExternalFetchDataRequest, ExternalFetchDataResponse>;
|
|
391
|
-
/**
|
|
392
|
-
* @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
|
|
393
|
-
*/
|
|
394
|
-
externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse>;
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
* @generated from protobuf service dht.ExternalApiRpc
|
|
398
|
-
*/
|
|
399
|
-
export class ExternalApiRpcClient implements IExternalApiRpcClient, ServiceInfo {
|
|
400
|
-
typeName = ExternalApiRpc.typeName;
|
|
401
|
-
methods = ExternalApiRpc.methods;
|
|
402
|
-
options = ExternalApiRpc.options;
|
|
403
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* @generated from protobuf rpc: externalFetchData(dht.ExternalFetchDataRequest) returns (dht.ExternalFetchDataResponse);
|
|
407
|
-
*/
|
|
408
|
-
externalFetchData(input: ExternalFetchDataRequest, options?: RpcOptions): UnaryCall<ExternalFetchDataRequest, ExternalFetchDataResponse> {
|
|
409
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
410
|
-
return stackIntercept<ExternalFetchDataRequest, ExternalFetchDataResponse>("unary", this._transport, method, opt, input);
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
|
|
414
|
-
*/
|
|
415
|
-
externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse> {
|
|
416
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
417
|
-
return stackIntercept<ExternalStoreDataRequest, ExternalStoreDataResponse>("unary", this._transport, method, opt, input);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.4 with parameter server_generic,generate_dependencies,long_type_number
|
|
2
|
-
// @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { ExternalStoreDataResponse } from "./DhtRpc";
|
|
5
|
-
import { ExternalStoreDataRequest } from "./DhtRpc";
|
|
6
|
-
import { ExternalFetchDataResponse } from "./DhtRpc";
|
|
7
|
-
import { ExternalFetchDataRequest } from "./DhtRpc";
|
|
8
|
-
import { SetPrivateRequest } from "./DhtRpc";
|
|
9
|
-
import { DisconnectNotice } from "./DhtRpc";
|
|
10
|
-
import { UnlockRequest } from "./DhtRpc";
|
|
11
|
-
import { LockResponse } from "./DhtRpc";
|
|
12
|
-
import { LockRequest } from "./DhtRpc";
|
|
13
|
-
import { IceCandidate } from "./DhtRpc";
|
|
14
|
-
import { RtcAnswer } from "./DhtRpc";
|
|
15
|
-
import { RtcOffer } from "./DhtRpc";
|
|
16
|
-
import { WebrtcConnectionRequest } from "./DhtRpc";
|
|
17
|
-
import { WebsocketConnectionRequest } from "./DhtRpc";
|
|
18
|
-
import { RecursiveOperationResponse } from "./DhtRpc";
|
|
19
|
-
import { ReplicateDataRequest } from "./DhtRpc";
|
|
20
|
-
import { StoreDataResponse } from "./DhtRpc";
|
|
21
|
-
import { StoreDataRequest } from "./DhtRpc";
|
|
22
|
-
import { RouteMessageAck } from "./DhtRpc";
|
|
23
|
-
import { RouteMessageWrapper } from "./DhtRpc";
|
|
24
|
-
import { Empty } from "../../../google/protobuf/empty";
|
|
25
|
-
import { LeaveNotice } from "./DhtRpc";
|
|
26
|
-
import { PingResponse } from "./DhtRpc";
|
|
27
|
-
import { PingRequest } from "./DhtRpc";
|
|
28
|
-
import { ClosestRingPeersResponse } from "./DhtRpc";
|
|
29
|
-
import { ClosestRingPeersRequest } from "./DhtRpc";
|
|
30
|
-
import { ClosestPeersResponse } from "./DhtRpc";
|
|
31
|
-
import { ClosestPeersRequest } from "./DhtRpc";
|
|
32
|
-
import { ServerCallContext } from "@protobuf-ts/runtime-rpc";
|
|
33
|
-
/**
|
|
34
|
-
* @generated from protobuf service dht.DhtNodeRpc
|
|
35
|
-
*/
|
|
36
|
-
export interface IDhtNodeRpc<T = ServerCallContext> {
|
|
37
|
-
/**
|
|
38
|
-
* TODO rename to getClosestNeighbors (breaking change)
|
|
39
|
-
*
|
|
40
|
-
* @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
|
|
41
|
-
*/
|
|
42
|
-
getClosestPeers(request: ClosestPeersRequest, context: T): Promise<ClosestPeersResponse>;
|
|
43
|
-
/**
|
|
44
|
-
* TODO rename to getClosestRingContacts (breaking change)
|
|
45
|
-
*
|
|
46
|
-
* @generated from protobuf rpc: getClosestRingPeers(dht.ClosestRingPeersRequest) returns (dht.ClosestRingPeersResponse);
|
|
47
|
-
*/
|
|
48
|
-
getClosestRingPeers(request: ClosestRingPeersRequest, context: T): Promise<ClosestRingPeersResponse>;
|
|
49
|
-
/**
|
|
50
|
-
* @generated from protobuf rpc: ping(dht.PingRequest) returns (dht.PingResponse);
|
|
51
|
-
*/
|
|
52
|
-
ping(request: PingRequest, context: T): Promise<PingResponse>;
|
|
53
|
-
/**
|
|
54
|
-
* @generated from protobuf rpc: leaveNotice(dht.LeaveNotice) returns (google.protobuf.Empty);
|
|
55
|
-
*/
|
|
56
|
-
leaveNotice(request: LeaveNotice, context: T): Promise<Empty>;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @generated from protobuf service dht.RouterRpc
|
|
60
|
-
*/
|
|
61
|
-
export interface IRouterRpc<T = ServerCallContext> {
|
|
62
|
-
/**
|
|
63
|
-
* @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
64
|
-
*/
|
|
65
|
-
routeMessage(request: RouteMessageWrapper, context: T): Promise<RouteMessageAck>;
|
|
66
|
-
/**
|
|
67
|
-
* @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
68
|
-
*/
|
|
69
|
-
forwardMessage(request: RouteMessageWrapper, context: T): Promise<RouteMessageAck>;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* @generated from protobuf service dht.RecursiveOperationRpc
|
|
73
|
-
*/
|
|
74
|
-
export interface IRecursiveOperationRpc<T = ServerCallContext> {
|
|
75
|
-
/**
|
|
76
|
-
* @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
|
|
77
|
-
*/
|
|
78
|
-
routeRequest(request: RouteMessageWrapper, context: T): Promise<RouteMessageAck>;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* @generated from protobuf service dht.StoreRpc
|
|
82
|
-
*/
|
|
83
|
-
export interface IStoreRpc<T = ServerCallContext> {
|
|
84
|
-
/**
|
|
85
|
-
* @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
|
|
86
|
-
*/
|
|
87
|
-
storeData(request: StoreDataRequest, context: T): Promise<StoreDataResponse>;
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf rpc: replicateData(dht.ReplicateDataRequest) returns (google.protobuf.Empty);
|
|
90
|
-
*/
|
|
91
|
-
replicateData(request: ReplicateDataRequest, context: T): Promise<Empty>;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @generated from protobuf service dht.RecursiveOperationSessionRpc
|
|
95
|
-
*/
|
|
96
|
-
export interface IRecursiveOperationSessionRpc<T = ServerCallContext> {
|
|
97
|
-
/**
|
|
98
|
-
* @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
|
|
99
|
-
*/
|
|
100
|
-
sendResponse(request: RecursiveOperationResponse, context: T): Promise<Empty>;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* @generated from protobuf service dht.WebsocketClientConnectorRpc
|
|
104
|
-
*/
|
|
105
|
-
export interface IWebsocketClientConnectorRpc<T = ServerCallContext> {
|
|
106
|
-
/**
|
|
107
|
-
* @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
|
|
108
|
-
*/
|
|
109
|
-
requestConnection(request: WebsocketConnectionRequest, context: T): Promise<Empty>;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* @generated from protobuf service dht.WebrtcConnectorRpc
|
|
113
|
-
*/
|
|
114
|
-
export interface IWebrtcConnectorRpc<T = ServerCallContext> {
|
|
115
|
-
/**
|
|
116
|
-
* @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
|
|
117
|
-
*/
|
|
118
|
-
requestConnection(request: WebrtcConnectionRequest, context: T): Promise<Empty>;
|
|
119
|
-
/**
|
|
120
|
-
* @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
|
|
121
|
-
*/
|
|
122
|
-
rtcOffer(request: RtcOffer, context: T): Promise<Empty>;
|
|
123
|
-
/**
|
|
124
|
-
* @generated from protobuf rpc: rtcAnswer(dht.RtcAnswer) returns (google.protobuf.Empty);
|
|
125
|
-
*/
|
|
126
|
-
rtcAnswer(request: RtcAnswer, context: T): Promise<Empty>;
|
|
127
|
-
/**
|
|
128
|
-
* @generated from protobuf rpc: iceCandidate(dht.IceCandidate) returns (google.protobuf.Empty);
|
|
129
|
-
*/
|
|
130
|
-
iceCandidate(request: IceCandidate, context: T): Promise<Empty>;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* @generated from protobuf service dht.ConnectionLockRpc
|
|
134
|
-
*/
|
|
135
|
-
export interface IConnectionLockRpc<T = ServerCallContext> {
|
|
136
|
-
/**
|
|
137
|
-
* @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
|
|
138
|
-
*/
|
|
139
|
-
lockRequest(request: LockRequest, context: T): Promise<LockResponse>;
|
|
140
|
-
/**
|
|
141
|
-
* @generated from protobuf rpc: unlockRequest(dht.UnlockRequest) returns (google.protobuf.Empty);
|
|
142
|
-
*/
|
|
143
|
-
unlockRequest(request: UnlockRequest, context: T): Promise<Empty>;
|
|
144
|
-
/**
|
|
145
|
-
* @generated from protobuf rpc: gracefulDisconnect(dht.DisconnectNotice) returns (google.protobuf.Empty);
|
|
146
|
-
*/
|
|
147
|
-
gracefulDisconnect(request: DisconnectNotice, context: T): Promise<Empty>;
|
|
148
|
-
/**
|
|
149
|
-
* @generated from protobuf rpc: setPrivate(dht.SetPrivateRequest) returns (google.protobuf.Empty);
|
|
150
|
-
*/
|
|
151
|
-
setPrivate(request: SetPrivateRequest, context: T): Promise<Empty>;
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* @generated from protobuf service dht.ExternalApiRpc
|
|
155
|
-
*/
|
|
156
|
-
export interface IExternalApiRpc<T = ServerCallContext> {
|
|
157
|
-
/**
|
|
158
|
-
* @generated from protobuf rpc: externalFetchData(dht.ExternalFetchDataRequest) returns (dht.ExternalFetchDataResponse);
|
|
159
|
-
*/
|
|
160
|
-
externalFetchData(request: ExternalFetchDataRequest, context: T): Promise<ExternalFetchDataResponse>;
|
|
161
|
-
/**
|
|
162
|
-
* @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
|
|
163
|
-
*/
|
|
164
|
-
externalStoreData(request: ExternalStoreDataRequest, context: T): Promise<ExternalStoreDataResponse>;
|
|
165
|
-
}
|