@streamr/dht 0.0.1-tatum.6 → 0.0.1-tatum.8

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.
Files changed (255) hide show
  1. package/dist/src/connection/ConnectionLockHandler.d.ts +1 -1
  2. package/dist/src/connection/ConnectionLockHandler.js.map +1 -1
  3. package/dist/src/connection/ConnectionLockRpcRemote.d.ts +10 -0
  4. package/dist/src/connection/{RemoteConnectionLocker.js → ConnectionLockRpcRemote.js} +21 -35
  5. package/dist/src/connection/ConnectionLockRpcRemote.js.map +1 -0
  6. package/dist/src/connection/ConnectionManager.d.ts +17 -41
  7. package/dist/src/connection/ConnectionManager.js +148 -212
  8. package/dist/src/connection/ConnectionManager.js.map +1 -1
  9. package/dist/src/connection/ConnectivityChecker.js +16 -13
  10. package/dist/src/connection/ConnectivityChecker.js.map +1 -1
  11. package/dist/src/connection/ConnectorFacade.d.ts +49 -0
  12. package/dist/src/connection/ConnectorFacade.js +83 -0
  13. package/dist/src/connection/ConnectorFacade.js.map +1 -0
  14. package/dist/src/connection/Handshaker.d.ts +1 -2
  15. package/dist/src/connection/Handshaker.js +1 -4
  16. package/dist/src/connection/Handshaker.js.map +1 -1
  17. package/dist/src/connection/ManagedConnection.d.ts +2 -6
  18. package/dist/src/connection/ManagedConnection.js +27 -36
  19. package/dist/src/connection/ManagedConnection.js.map +1 -1
  20. package/dist/src/connection/ManagedWebRtcConnection.d.ts +1 -1
  21. package/dist/src/connection/ManagedWebRtcConnection.js +2 -2
  22. package/dist/src/connection/ManagedWebRtcConnection.js.map +1 -1
  23. package/dist/src/connection/Simulator/Simulator.d.ts +0 -2
  24. package/dist/src/connection/Simulator/Simulator.js +0 -5
  25. package/dist/src/connection/Simulator/Simulator.js.map +1 -1
  26. package/dist/src/connection/Simulator/SimulatorConnection.js +16 -13
  27. package/dist/src/connection/Simulator/SimulatorConnection.js.map +1 -1
  28. package/dist/src/connection/Simulator/SimulatorConnector.d.ts +2 -3
  29. package/dist/src/connection/Simulator/SimulatorConnector.js +12 -14
  30. package/dist/src/connection/Simulator/SimulatorConnector.js.map +1 -1
  31. package/dist/src/connection/Simulator/SimulatorTransport.js +6 -1
  32. package/dist/src/connection/Simulator/SimulatorTransport.js.map +1 -1
  33. package/dist/src/connection/WebRTC/NodeWebRtcConnection.d.ts +3 -1
  34. package/dist/src/connection/WebRTC/NodeWebRtcConnection.js +12 -12
  35. package/dist/src/connection/WebRTC/NodeWebRtcConnection.js.map +1 -1
  36. package/dist/src/connection/WebRTC/{WebRtcConnector.d.ts → WebRtcConnectorRpcLocal.d.ts} +13 -13
  37. package/dist/src/connection/WebRTC/{WebRtcConnector.js → WebRtcConnectorRpcLocal.js} +46 -38
  38. package/dist/src/connection/WebRTC/WebRtcConnectorRpcLocal.js.map +1 -0
  39. package/dist/src/connection/WebRTC/WebRtcConnectorRpcRemote.d.ts +11 -0
  40. package/dist/src/connection/WebRTC/WebRtcConnectorRpcRemote.js +55 -0
  41. package/dist/src/connection/WebRTC/WebRtcConnectorRpcRemote.js.map +1 -0
  42. package/dist/src/connection/WebRTC/iceServerAsString.d.ts +1 -1
  43. package/dist/src/connection/WebSocket/{WebSocketConnector.d.ts → WebSocketConnectorRpcLocal.d.ts} +21 -11
  44. package/dist/src/connection/WebSocket/{WebSocketConnector.js → WebSocketConnectorRpcLocal.js} +80 -59
  45. package/dist/src/connection/WebSocket/WebSocketConnectorRpcLocal.js.map +1 -0
  46. package/dist/src/connection/WebSocket/WebSocketConnectorRpcRemote.d.ts +8 -0
  47. package/dist/src/connection/WebSocket/{RemoteWebSocketConnector.js → WebSocketConnectorRpcRemote.js} +12 -16
  48. package/dist/src/connection/WebSocket/WebSocketConnectorRpcRemote.js.map +1 -0
  49. package/dist/src/connection/WebSocket/WebSocketServer.d.ts +11 -1
  50. package/dist/src/connection/WebSocket/WebSocketServer.js +15 -10
  51. package/dist/src/connection/WebSocket/WebSocketServer.js.map +1 -1
  52. package/dist/src/dht/DhtNode.d.ts +18 -55
  53. package/dist/src/dht/DhtNode.js +122 -145
  54. package/dist/src/dht/DhtNode.js.map +1 -1
  55. package/dist/src/dht/{RemoteExternalApi.d.ts → ExternalApiRpcRemote.d.ts} +2 -2
  56. package/dist/src/dht/{RemoteExternalApi.js → ExternalApiRpcRemote.js} +5 -6
  57. package/dist/src/dht/ExternalApiRpcRemote.js.map +1 -0
  58. package/dist/src/dht/{DhtPeer.d.ts → RemoteDhtNode.d.ts} +2 -3
  59. package/dist/src/dht/{DhtPeer.js → RemoteDhtNode.js} +21 -19
  60. package/dist/src/dht/RemoteDhtNode.js.map +1 -0
  61. package/dist/src/dht/contact/ContactList.d.ts +0 -1
  62. package/dist/src/dht/contact/ContactList.js +0 -3
  63. package/dist/src/dht/contact/ContactList.js.map +1 -1
  64. package/dist/src/dht/contact/RandomContactList.d.ts +0 -1
  65. package/dist/src/dht/contact/RandomContactList.js +0 -3
  66. package/dist/src/dht/contact/RandomContactList.js.map +1 -1
  67. package/dist/src/dht/contact/SortedContactList.d.ts +0 -3
  68. package/dist/src/dht/contact/SortedContactList.js +0 -9
  69. package/dist/src/dht/contact/SortedContactList.js.map +1 -1
  70. package/dist/src/dht/discovery/DiscoverySession.d.ts +5 -7
  71. package/dist/src/dht/discovery/DiscoverySession.js +9 -10
  72. package/dist/src/dht/discovery/DiscoverySession.js.map +1 -1
  73. package/dist/src/dht/discovery/PeerDiscovery.d.ts +12 -11
  74. package/dist/src/dht/discovery/PeerDiscovery.js +33 -37
  75. package/dist/src/dht/discovery/PeerDiscovery.js.map +1 -1
  76. package/dist/src/dht/find/RecursiveFindSession.d.ts +9 -10
  77. package/dist/src/dht/find/RecursiveFindSession.js +13 -13
  78. package/dist/src/dht/find/RecursiveFindSession.js.map +1 -1
  79. package/dist/src/dht/find/RecursiveFinder.d.ts +9 -11
  80. package/dist/src/dht/find/RecursiveFinder.js +35 -36
  81. package/dist/src/dht/find/RecursiveFinder.js.map +1 -1
  82. package/dist/src/dht/find/RemoteRecursiveFindSession.d.ts +1 -1
  83. package/dist/src/dht/find/RemoteRecursiveFindSession.js +4 -4
  84. package/dist/src/dht/find/RemoteRecursiveFindSession.js.map +1 -1
  85. package/dist/src/dht/registerExternalApiRpcMethods.d.ts +1 -1
  86. package/dist/src/dht/registerExternalApiRpcMethods.js +4 -3
  87. package/dist/src/dht/registerExternalApiRpcMethods.js.map +1 -1
  88. package/dist/src/dht/routing/DuplicateDetector.d.ts +1 -2
  89. package/dist/src/dht/routing/DuplicateDetector.js +2 -7
  90. package/dist/src/dht/routing/DuplicateDetector.js.map +1 -1
  91. package/dist/src/dht/routing/Router.d.ts +12 -15
  92. package/dist/src/dht/routing/Router.js +30 -33
  93. package/dist/src/dht/routing/Router.js.map +1 -1
  94. package/dist/src/dht/routing/{RemoteRouter.d.ts → RouterRpcRemote.d.ts} +2 -2
  95. package/dist/src/dht/routing/{RemoteRouter.js → RouterRpcRemote.js} +5 -5
  96. package/dist/src/dht/routing/RouterRpcRemote.js.map +1 -0
  97. package/dist/src/dht/routing/RoutingSession.d.ts +3 -4
  98. package/dist/src/dht/routing/RoutingSession.js +6 -5
  99. package/dist/src/dht/routing/RoutingSession.js.map +1 -1
  100. package/dist/src/dht/store/{DataStore.d.ts → StoreRpcLocal.d.ts} +6 -6
  101. package/dist/src/dht/store/{DataStore.js → StoreRpcLocal.js} +34 -34
  102. package/dist/src/dht/store/StoreRpcLocal.js.map +1 -0
  103. package/dist/src/dht/store/{RemoteStore.d.ts → StoreRpcRemote.d.ts} +2 -2
  104. package/dist/src/dht/store/{RemoteStore.js → StoreRpcRemote.js} +4 -4
  105. package/dist/src/dht/store/StoreRpcRemote.js.map +1 -0
  106. package/dist/src/exports.d.ts +2 -8
  107. package/dist/src/exports.js +2 -14
  108. package/dist/src/exports.js.map +1 -1
  109. package/dist/src/helpers/PeerID.d.ts +0 -1
  110. package/dist/src/helpers/PeerID.js +0 -6
  111. package/dist/src/helpers/PeerID.js.map +1 -1
  112. package/dist/src/helpers/browser/isBrowserEnvironment.d.ts +1 -0
  113. package/dist/src/helpers/browser/isBrowserEnvironment.js +6 -0
  114. package/dist/src/helpers/browser/isBrowserEnvironment.js.map +1 -0
  115. package/dist/src/helpers/browser/isBrowserEnvironment_override.d.ts +1 -0
  116. package/dist/src/helpers/browser/isBrowserEnvironment_override.js +7 -0
  117. package/dist/src/helpers/browser/isBrowserEnvironment_override.js.map +1 -0
  118. package/dist/src/helpers/kademliaId.d.ts +1 -0
  119. package/dist/src/helpers/kademliaId.js +14 -0
  120. package/dist/src/helpers/kademliaId.js.map +1 -0
  121. package/dist/src/helpers/peerIdFromPeerDescriptor.d.ts +1 -1
  122. package/dist/src/helpers/peerIdFromPeerDescriptor.js +3 -3
  123. package/dist/src/helpers/peerIdFromPeerDescriptor.js.map +1 -1
  124. package/dist/src/helpers/protoClasses.js +2 -2
  125. package/dist/src/helpers/protoClasses.js.map +1 -1
  126. package/dist/src/proto/packages/dht/protos/DhtRpc.client.d.ts +29 -29
  127. package/dist/src/proto/packages/dht/protos/DhtRpc.client.js +39 -39
  128. package/dist/src/proto/packages/dht/protos/DhtRpc.client.js.map +1 -1
  129. package/dist/src/proto/packages/dht/protos/DhtRpc.d.ts +49 -162
  130. package/dist/src/proto/packages/dht/protos/DhtRpc.js +47 -88
  131. package/dist/src/proto/packages/dht/protos/DhtRpc.js.map +1 -1
  132. package/dist/src/proto/packages/dht/protos/DhtRpc.server.d.ts +15 -15
  133. package/dist/src/transport/RoutingRpcCommunicator.js +1 -0
  134. package/dist/src/transport/RoutingRpcCommunicator.js.map +1 -1
  135. package/package.json +10 -9
  136. package/protos/DhtRpc.proto +30 -60
  137. package/src/connection/ConnectionLockHandler.ts +1 -1
  138. package/src/connection/ConnectionLockRpcRemote.ts +62 -0
  139. package/src/connection/ConnectionManager.ts +178 -274
  140. package/src/connection/ConnectivityChecker.ts +15 -12
  141. package/src/connection/ConnectorFacade.ts +140 -0
  142. package/src/connection/Handshaker.ts +0 -5
  143. package/src/connection/ManagedConnection.ts +26 -40
  144. package/src/connection/ManagedWebRtcConnection.ts +0 -2
  145. package/src/connection/Simulator/Simulator.ts +0 -7
  146. package/src/connection/Simulator/SimulatorConnection.ts +16 -13
  147. package/src/connection/Simulator/SimulatorConnector.ts +13 -19
  148. package/src/connection/Simulator/SimulatorTransport.ts +6 -1
  149. package/src/connection/WebRTC/NodeWebRtcConnection.ts +15 -14
  150. package/src/connection/WebRTC/{WebRtcConnector.ts → WebRtcConnectorRpcLocal.ts} +68 -56
  151. package/src/connection/WebRTC/WebRtcConnectorRpcRemote.ts +71 -0
  152. package/src/connection/WebRTC/iceServerAsString.ts +1 -1
  153. package/src/connection/WebSocket/{WebSocketConnector.ts → WebSocketConnectorRpcLocal.ts} +102 -79
  154. package/src/connection/WebSocket/WebSocketConnectorRpcRemote.ts +45 -0
  155. package/src/connection/WebSocket/WebSocketServer.ts +26 -8
  156. package/src/dht/DhtNode.ts +176 -203
  157. package/src/dht/{RemoteExternalApi.ts → ExternalApiRpcRemote.ts} +3 -4
  158. package/src/dht/{DhtPeer.ts → RemoteDhtNode.ts} +11 -9
  159. package/src/dht/contact/ContactList.ts +0 -4
  160. package/src/dht/contact/RandomContactList.ts +0 -4
  161. package/src/dht/contact/SortedContactList.ts +0 -12
  162. package/src/dht/discovery/DiscoverySession.ts +20 -23
  163. package/src/dht/discovery/PeerDiscovery.ts +47 -45
  164. package/src/dht/find/RecursiveFindSession.ts +21 -22
  165. package/src/dht/find/RecursiveFinder.ts +45 -49
  166. package/src/dht/find/RemoteRecursiveFindSession.ts +6 -6
  167. package/src/dht/registerExternalApiRpcMethods.ts +8 -5
  168. package/src/dht/routing/DuplicateDetector.ts +3 -10
  169. package/src/dht/routing/Router.ts +39 -45
  170. package/src/dht/routing/{RemoteRouter.ts → RouterRpcRemote.ts} +4 -4
  171. package/src/dht/routing/RoutingSession.ts +15 -15
  172. package/src/dht/store/{DataStore.ts → StoreRpcLocal.ts} +42 -42
  173. package/src/dht/store/{RemoteStore.ts → StoreRpcRemote.ts} +2 -2
  174. package/src/exports.ts +2 -8
  175. package/src/helpers/PeerID.ts +0 -7
  176. package/src/helpers/browser/isBrowserEnvironment.ts +1 -0
  177. package/src/helpers/browser/isBrowserEnvironment_override.ts +3 -0
  178. package/src/helpers/kademliaId.ts +8 -0
  179. package/src/helpers/peerIdFromPeerDescriptor.ts +1 -1
  180. package/src/helpers/protoClasses.ts +4 -4
  181. package/src/proto/packages/dht/protos/DhtRpc.client.ts +54 -54
  182. package/src/proto/packages/dht/protos/DhtRpc.server.ts +15 -15
  183. package/src/proto/packages/dht/protos/DhtRpc.ts +77 -216
  184. package/src/transport/RoutingRpcCommunicator.ts +1 -0
  185. package/test/benchmark/KademliaCorrectness.test.ts +4 -2
  186. package/test/benchmark/RecursiveFind.test.ts +6 -6
  187. package/test/end-to-end/Layer0-Layer1.test.ts +9 -9
  188. package/test/end-to-end/Layer0WebRTC-Layer1.test.ts +5 -5
  189. package/test/end-to-end/Layer0WebRTC.test.ts +5 -6
  190. package/test/end-to-end/Layer1-Scale-WebRTC.test.ts +13 -8
  191. package/test/end-to-end/Layer1-Scale-WebSocket.test.ts +15 -10
  192. package/test/end-to-end/WebSocketConnectionRequest.test.ts +5 -5
  193. package/test/integration/ConnectionLocking.test.ts +32 -26
  194. package/test/integration/ConnectionManager.test.ts +90 -93
  195. package/test/integration/DhtJoinPeerDiscovery.test.ts +53 -0
  196. package/test/integration/DhtRpc.test.ts +4 -6
  197. package/test/integration/Layer1-scale.test.ts +8 -8
  198. package/test/integration/MigrateData.test.ts +9 -9
  199. package/test/integration/Mock-Layer1-Layer0.test.ts +1 -2
  200. package/test/integration/RecursiveFind.test.ts +5 -5
  201. package/test/integration/{DhtPeer.test.ts → RemoteDhtNode.test.ts} +11 -12
  202. package/test/integration/RouteMessage.test.ts +7 -9
  203. package/test/integration/{RemoteRouter.test.ts → RouterRpcRemote.test.ts} +13 -14
  204. package/test/integration/RpcErrors.test.ts +25 -10
  205. package/test/integration/ScaleDownDht.test.ts +8 -8
  206. package/test/integration/SimultaneousConnections.test.ts +35 -36
  207. package/test/integration/Store.test.ts +8 -9
  208. package/test/integration/StoreAndDelete.test.ts +11 -11
  209. package/test/integration/StoreOnDhtWithTwoNodes.test.ts +7 -7
  210. package/test/integration/{RemoteStore.test.ts → StoreRpcRemote.test.ts} +17 -18
  211. package/test/integration/WebRtcConnectionManagement.test.ts +26 -19
  212. package/test/integration/WebRtcConnectorRpc.test.ts +17 -32
  213. package/test/integration/WebSocket.test.ts +4 -2
  214. package/test/integration/WebSocketConnectionManagement.test.ts +30 -17
  215. package/test/integration/WebSocketConnectorRpc.test.ts +10 -15
  216. package/test/unit/DuplicateDetector.test.ts +3 -4
  217. package/test/unit/LocalDataStore.test.ts +6 -8
  218. package/test/unit/RandomContactList.test.ts +1 -1
  219. package/test/unit/RecursiveFinder.test.ts +13 -18
  220. package/test/unit/Router.test.ts +18 -21
  221. package/test/unit/WebSocketConnectorRpcLocal.test.ts +64 -0
  222. package/test/unit/WebSocketServer.test.ts +24 -12
  223. package/test/unit/{webrtcReplaceInternalIpWithExternalIp.ts → webrtcReplaceInternalIpWithExternalIp.test.ts} +1 -1
  224. package/test/utils/mock/RecursiveFinder.ts +2 -2
  225. package/test/utils/mock/Router.ts +9 -11
  226. package/test/utils/mock/Transport.ts +2 -2
  227. package/test/utils/utils.ts +55 -74
  228. package/dist/src/connection/RemoteConnectionLocker.d.ts +0 -13
  229. package/dist/src/connection/RemoteConnectionLocker.js.map +0 -1
  230. package/dist/src/connection/WebRTC/RemoteWebrtcConnector.d.ts +0 -12
  231. package/dist/src/connection/WebRTC/RemoteWebrtcConnector.js +0 -74
  232. package/dist/src/connection/WebRTC/RemoteWebrtcConnector.js.map +0 -1
  233. package/dist/src/connection/WebRTC/WebRtcConnector.js.map +0 -1
  234. package/dist/src/connection/WebSocket/RemoteWebSocketConnector.d.ts +0 -9
  235. package/dist/src/connection/WebSocket/RemoteWebSocketConnector.js.map +0 -1
  236. package/dist/src/connection/WebSocket/WebSocketConnector.js.map +0 -1
  237. package/dist/src/dht/DhtPeer.js.map +0 -1
  238. package/dist/src/dht/RemoteExternalApi.js.map +0 -1
  239. package/dist/src/dht/routing/RemoteRouter.js.map +0 -1
  240. package/dist/src/dht/store/DataStore.js.map +0 -1
  241. package/dist/src/dht/store/RemoteStore.js.map +0 -1
  242. package/dist/src/helpers/browser/isBrowser.d.ts +0 -1
  243. package/dist/src/helpers/browser/isBrowser.js +0 -6
  244. package/dist/src/helpers/browser/isBrowser.js.map +0 -1
  245. package/dist/src/helpers/browser/isNodeJS.d.ts +0 -1
  246. package/dist/src/helpers/browser/isNodeJS.js +0 -6
  247. package/dist/src/helpers/browser/isNodeJS.js.map +0 -1
  248. package/src/connection/RemoteConnectionLocker.ts +0 -84
  249. package/src/connection/WebRTC/RemoteWebrtcConnector.ts +0 -93
  250. package/src/connection/WebSocket/RemoteWebSocketConnector.ts +0 -49
  251. package/src/helpers/browser/isBrowser.ts +0 -1
  252. package/src/helpers/browser/isNodeJS.ts +0 -1
  253. package/test/integration/DhtWithMockConnectionLatencies.test.ts +0 -46
  254. package/test/integration/DhtWithMockConnections.test.ts +0 -46
  255. package/test/integration/DhtWithRealConnectionLatencies.test.ts +0 -47
@@ -1,35 +1,35 @@
1
1
  // @generated by protobuf-ts 2.9.1 with parameter server_generic,generate_dependencies,long_type_number
2
2
  // @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
3
3
  // tslint:disable
4
- import { ExternalApiService } from "./DhtRpc";
4
+ import { ExternalApiRpc } from "./DhtRpc";
5
5
  import type { ExternalStoreDataResponse } from "./DhtRpc";
6
6
  import type { ExternalStoreDataRequest } from "./DhtRpc";
7
7
  import type { FindDataResponse } from "./DhtRpc";
8
8
  import type { FindDataRequest } from "./DhtRpc";
9
- import { ConnectionLocker } from "./DhtRpc";
9
+ import { ConnectionLockRpc } from "./DhtRpc";
10
10
  import type { DisconnectNoticeResponse } from "./DhtRpc";
11
11
  import type { DisconnectNotice } from "./DhtRpc";
12
12
  import type { UnlockRequest } from "./DhtRpc";
13
13
  import type { LockResponse } from "./DhtRpc";
14
14
  import type { LockRequest } from "./DhtRpc";
15
- import { WebRtcConnectorService } from "./DhtRpc";
15
+ import { WebRtcConnectorRpc } from "./DhtRpc";
16
16
  import type { IceCandidate } from "./DhtRpc";
17
17
  import type { RtcAnswer } from "./DhtRpc";
18
18
  import type { RtcOffer } from "./DhtRpc";
19
19
  import type { WebRtcConnectionRequest } from "./DhtRpc";
20
- import { WebSocketConnectorService } from "./DhtRpc";
20
+ import { WebSocketConnectorRpc } from "./DhtRpc";
21
21
  import type { WebSocketConnectionResponse } from "./DhtRpc";
22
22
  import type { WebSocketConnectionRequest } from "./DhtRpc";
23
23
  import { RecursiveFindSessionService } from "./DhtRpc";
24
- import type { RecursiveFindReport } from "./DhtRpc";
25
- import { StoreService } from "./DhtRpc";
24
+ import type { FindResponse } from "./DhtRpc";
25
+ import { StoreRpc } from "./DhtRpc";
26
26
  import type { DeleteDataResponse } from "./DhtRpc";
27
27
  import type { DeleteDataRequest } from "./DhtRpc";
28
28
  import type { MigrateDataResponse } from "./DhtRpc";
29
29
  import type { MigrateDataRequest } from "./DhtRpc";
30
30
  import type { StoreDataResponse } from "./DhtRpc";
31
31
  import type { StoreDataRequest } from "./DhtRpc";
32
- import { RoutingService } from "./DhtRpc";
32
+ import { RouterRpc } from "./DhtRpc";
33
33
  import type { RouteMessageAck } from "./DhtRpc";
34
34
  import type { RouteMessageWrapper } from "./DhtRpc";
35
35
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
@@ -93,9 +93,9 @@ export class DhtRpcServiceClient implements IDhtRpcServiceClient, ServiceInfo {
93
93
  }
94
94
  }
95
95
  /**
96
- * @generated from protobuf service dht.RoutingService
96
+ * @generated from protobuf service dht.RouterRpc
97
97
  */
98
- export interface IRoutingServiceClient {
98
+ export interface IRouterRpcClient {
99
99
  /**
100
100
  * @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
101
101
  */
@@ -110,12 +110,12 @@ export interface IRoutingServiceClient {
110
110
  findRecursively(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
111
111
  }
112
112
  /**
113
- * @generated from protobuf service dht.RoutingService
113
+ * @generated from protobuf service dht.RouterRpc
114
114
  */
115
- export class RoutingServiceClient implements IRoutingServiceClient, ServiceInfo {
116
- typeName = RoutingService.typeName;
117
- methods = RoutingService.methods;
118
- options = RoutingService.options;
115
+ export class RouterRpcClient implements IRouterRpcClient, ServiceInfo {
116
+ typeName = RouterRpc.typeName;
117
+ methods = RouterRpc.methods;
118
+ options = RouterRpc.options;
119
119
  constructor(private readonly _transport: RpcTransport) {
120
120
  }
121
121
  /**
@@ -141,9 +141,9 @@ export class RoutingServiceClient implements IRoutingServiceClient, ServiceInfo
141
141
  }
142
142
  }
143
143
  /**
144
- * @generated from protobuf service dht.StoreService
144
+ * @generated from protobuf service dht.StoreRpc
145
145
  */
146
- export interface IStoreServiceClient {
146
+ export interface IStoreRpcClient {
147
147
  /**
148
148
  * @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
149
149
  */
@@ -158,12 +158,12 @@ export interface IStoreServiceClient {
158
158
  deleteData(input: DeleteDataRequest, options?: RpcOptions): UnaryCall<DeleteDataRequest, DeleteDataResponse>;
159
159
  }
160
160
  /**
161
- * @generated from protobuf service dht.StoreService
161
+ * @generated from protobuf service dht.StoreRpc
162
162
  */
163
- export class StoreServiceClient implements IStoreServiceClient, ServiceInfo {
164
- typeName = StoreService.typeName;
165
- methods = StoreService.methods;
166
- options = StoreService.options;
163
+ export class StoreRpcClient implements IStoreRpcClient, ServiceInfo {
164
+ typeName = StoreRpc.typeName;
165
+ methods = StoreRpc.methods;
166
+ options = StoreRpc.options;
167
167
  constructor(private readonly _transport: RpcTransport) {
168
168
  }
169
169
  /**
@@ -193,9 +193,9 @@ export class StoreServiceClient implements IStoreServiceClient, ServiceInfo {
193
193
  */
194
194
  export interface IRecursiveFindSessionServiceClient {
195
195
  /**
196
- * @generated from protobuf rpc: reportRecursiveFindResult(dht.RecursiveFindReport) returns (google.protobuf.Empty);
196
+ * @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
197
197
  */
198
- reportRecursiveFindResult(input: RecursiveFindReport, options?: RpcOptions): UnaryCall<RecursiveFindReport, Empty>;
198
+ sendFindResponse(input: FindResponse, options?: RpcOptions): UnaryCall<FindResponse, Empty>;
199
199
  }
200
200
  /**
201
201
  * @generated from protobuf service dht.RecursiveFindSessionService
@@ -207,29 +207,29 @@ export class RecursiveFindSessionServiceClient implements IRecursiveFindSessionS
207
207
  constructor(private readonly _transport: RpcTransport) {
208
208
  }
209
209
  /**
210
- * @generated from protobuf rpc: reportRecursiveFindResult(dht.RecursiveFindReport) returns (google.protobuf.Empty);
210
+ * @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
211
211
  */
212
- reportRecursiveFindResult(input: RecursiveFindReport, options?: RpcOptions): UnaryCall<RecursiveFindReport, Empty> {
212
+ sendFindResponse(input: FindResponse, options?: RpcOptions): UnaryCall<FindResponse, Empty> {
213
213
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
214
- return stackIntercept<RecursiveFindReport, Empty>("unary", this._transport, method, opt, input);
214
+ return stackIntercept<FindResponse, Empty>("unary", this._transport, method, opt, input);
215
215
  }
216
216
  }
217
217
  /**
218
- * @generated from protobuf service dht.WebSocketConnectorService
218
+ * @generated from protobuf service dht.WebSocketConnectorRpc
219
219
  */
220
- export interface IWebSocketConnectorServiceClient {
220
+ export interface IWebSocketConnectorRpcClient {
221
221
  /**
222
222
  * @generated from protobuf rpc: requestConnection(dht.WebSocketConnectionRequest) returns (dht.WebSocketConnectionResponse);
223
223
  */
224
224
  requestConnection(input: WebSocketConnectionRequest, options?: RpcOptions): UnaryCall<WebSocketConnectionRequest, WebSocketConnectionResponse>;
225
225
  }
226
226
  /**
227
- * @generated from protobuf service dht.WebSocketConnectorService
227
+ * @generated from protobuf service dht.WebSocketConnectorRpc
228
228
  */
229
- export class WebSocketConnectorServiceClient implements IWebSocketConnectorServiceClient, ServiceInfo {
230
- typeName = WebSocketConnectorService.typeName;
231
- methods = WebSocketConnectorService.methods;
232
- options = WebSocketConnectorService.options;
229
+ export class WebSocketConnectorRpcClient implements IWebSocketConnectorRpcClient, ServiceInfo {
230
+ typeName = WebSocketConnectorRpc.typeName;
231
+ methods = WebSocketConnectorRpc.methods;
232
+ options = WebSocketConnectorRpc.options;
233
233
  constructor(private readonly _transport: RpcTransport) {
234
234
  }
235
235
  /**
@@ -241,9 +241,9 @@ export class WebSocketConnectorServiceClient implements IWebSocketConnectorServi
241
241
  }
242
242
  }
243
243
  /**
244
- * @generated from protobuf service dht.WebRtcConnectorService
244
+ * @generated from protobuf service dht.WebRtcConnectorRpc
245
245
  */
246
- export interface IWebRtcConnectorServiceClient {
246
+ export interface IWebRtcConnectorRpcClient {
247
247
  /**
248
248
  * @generated from protobuf rpc: requestConnection(dht.WebRtcConnectionRequest) returns (google.protobuf.Empty);
249
249
  */
@@ -262,12 +262,12 @@ export interface IWebRtcConnectorServiceClient {
262
262
  iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
263
263
  }
264
264
  /**
265
- * @generated from protobuf service dht.WebRtcConnectorService
265
+ * @generated from protobuf service dht.WebRtcConnectorRpc
266
266
  */
267
- export class WebRtcConnectorServiceClient implements IWebRtcConnectorServiceClient, ServiceInfo {
268
- typeName = WebRtcConnectorService.typeName;
269
- methods = WebRtcConnectorService.methods;
270
- options = WebRtcConnectorService.options;
267
+ export class WebRtcConnectorRpcClient implements IWebRtcConnectorRpcClient, ServiceInfo {
268
+ typeName = WebRtcConnectorRpc.typeName;
269
+ methods = WebRtcConnectorRpc.methods;
270
+ options = WebRtcConnectorRpc.options;
271
271
  constructor(private readonly _transport: RpcTransport) {
272
272
  }
273
273
  /**
@@ -300,9 +300,9 @@ export class WebRtcConnectorServiceClient implements IWebRtcConnectorServiceClie
300
300
  }
301
301
  }
302
302
  /**
303
- * @generated from protobuf service dht.ConnectionLocker
303
+ * @generated from protobuf service dht.ConnectionLockRpc
304
304
  */
305
- export interface IConnectionLockerClient {
305
+ export interface IConnectionLockRpcClient {
306
306
  /**
307
307
  * @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
308
308
  */
@@ -317,12 +317,12 @@ export interface IConnectionLockerClient {
317
317
  gracefulDisconnect(input: DisconnectNotice, options?: RpcOptions): UnaryCall<DisconnectNotice, DisconnectNoticeResponse>;
318
318
  }
319
319
  /**
320
- * @generated from protobuf service dht.ConnectionLocker
320
+ * @generated from protobuf service dht.ConnectionLockRpc
321
321
  */
322
- export class ConnectionLockerClient implements IConnectionLockerClient, ServiceInfo {
323
- typeName = ConnectionLocker.typeName;
324
- methods = ConnectionLocker.methods;
325
- options = ConnectionLocker.options;
322
+ export class ConnectionLockRpcClient implements IConnectionLockRpcClient, ServiceInfo {
323
+ typeName = ConnectionLockRpc.typeName;
324
+ methods = ConnectionLockRpc.methods;
325
+ options = ConnectionLockRpc.options;
326
326
  constructor(private readonly _transport: RpcTransport) {
327
327
  }
328
328
  /**
@@ -348,9 +348,9 @@ export class ConnectionLockerClient implements IConnectionLockerClient, ServiceI
348
348
  }
349
349
  }
350
350
  /**
351
- * @generated from protobuf service dht.ExternalApiService
351
+ * @generated from protobuf service dht.ExternalApiRpc
352
352
  */
353
- export interface IExternalApiServiceClient {
353
+ export interface IExternalApiRpcClient {
354
354
  /**
355
355
  * @generated from protobuf rpc: findData(dht.FindDataRequest) returns (dht.FindDataResponse);
356
356
  */
@@ -361,12 +361,12 @@ export interface IExternalApiServiceClient {
361
361
  externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse>;
362
362
  }
363
363
  /**
364
- * @generated from protobuf service dht.ExternalApiService
364
+ * @generated from protobuf service dht.ExternalApiRpc
365
365
  */
366
- export class ExternalApiServiceClient implements IExternalApiServiceClient, ServiceInfo {
367
- typeName = ExternalApiService.typeName;
368
- methods = ExternalApiService.methods;
369
- options = ExternalApiService.options;
366
+ export class ExternalApiRpcClient implements IExternalApiRpcClient, ServiceInfo {
367
+ typeName = ExternalApiRpc.typeName;
368
+ methods = ExternalApiRpc.methods;
369
+ options = ExternalApiRpc.options;
370
370
  constructor(private readonly _transport: RpcTransport) {
371
371
  }
372
372
  /**
@@ -16,7 +16,7 @@ import { RtcOffer } from "./DhtRpc";
16
16
  import { WebRtcConnectionRequest } from "./DhtRpc";
17
17
  import { WebSocketConnectionResponse } from "./DhtRpc";
18
18
  import { WebSocketConnectionRequest } from "./DhtRpc";
19
- import { RecursiveFindReport } from "./DhtRpc";
19
+ import { FindResponse } from "./DhtRpc";
20
20
  import { DeleteDataResponse } from "./DhtRpc";
21
21
  import { DeleteDataRequest } from "./DhtRpc";
22
22
  import { MigrateDataResponse } from "./DhtRpc";
@@ -50,9 +50,9 @@ export interface IDhtRpcService<T = ServerCallContext> {
50
50
  leaveNotice(request: LeaveNotice, context: T): Promise<Empty>;
51
51
  }
52
52
  /**
53
- * @generated from protobuf service dht.RoutingService
53
+ * @generated from protobuf service dht.RouterRpc
54
54
  */
55
- export interface IRoutingService<T = ServerCallContext> {
55
+ export interface IRouterRpc<T = ServerCallContext> {
56
56
  /**
57
57
  * @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
58
58
  */
@@ -67,9 +67,9 @@ export interface IRoutingService<T = ServerCallContext> {
67
67
  findRecursively(request: RouteMessageWrapper, context: T): Promise<RouteMessageAck>;
68
68
  }
69
69
  /**
70
- * @generated from protobuf service dht.StoreService
70
+ * @generated from protobuf service dht.StoreRpc
71
71
  */
72
- export interface IStoreService<T = ServerCallContext> {
72
+ export interface IStoreRpc<T = ServerCallContext> {
73
73
  /**
74
74
  * @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
75
75
  */
@@ -88,23 +88,23 @@ export interface IStoreService<T = ServerCallContext> {
88
88
  */
89
89
  export interface IRecursiveFindSessionService<T = ServerCallContext> {
90
90
  /**
91
- * @generated from protobuf rpc: reportRecursiveFindResult(dht.RecursiveFindReport) returns (google.protobuf.Empty);
91
+ * @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
92
92
  */
93
- reportRecursiveFindResult(request: RecursiveFindReport, context: T): Promise<Empty>;
93
+ sendFindResponse(request: FindResponse, context: T): Promise<Empty>;
94
94
  }
95
95
  /**
96
- * @generated from protobuf service dht.WebSocketConnectorService
96
+ * @generated from protobuf service dht.WebSocketConnectorRpc
97
97
  */
98
- export interface IWebSocketConnectorService<T = ServerCallContext> {
98
+ export interface IWebSocketConnectorRpc<T = ServerCallContext> {
99
99
  /**
100
100
  * @generated from protobuf rpc: requestConnection(dht.WebSocketConnectionRequest) returns (dht.WebSocketConnectionResponse);
101
101
  */
102
102
  requestConnection(request: WebSocketConnectionRequest, context: T): Promise<WebSocketConnectionResponse>;
103
103
  }
104
104
  /**
105
- * @generated from protobuf service dht.WebRtcConnectorService
105
+ * @generated from protobuf service dht.WebRtcConnectorRpc
106
106
  */
107
- export interface IWebRtcConnectorService<T = ServerCallContext> {
107
+ export interface IWebRtcConnectorRpc<T = ServerCallContext> {
108
108
  /**
109
109
  * @generated from protobuf rpc: requestConnection(dht.WebRtcConnectionRequest) returns (google.protobuf.Empty);
110
110
  */
@@ -123,9 +123,9 @@ export interface IWebRtcConnectorService<T = ServerCallContext> {
123
123
  iceCandidate(request: IceCandidate, context: T): Promise<Empty>;
124
124
  }
125
125
  /**
126
- * @generated from protobuf service dht.ConnectionLocker
126
+ * @generated from protobuf service dht.ConnectionLockRpc
127
127
  */
128
- export interface IConnectionLocker<T = ServerCallContext> {
128
+ export interface IConnectionLockRpc<T = ServerCallContext> {
129
129
  /**
130
130
  * @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
131
131
  */
@@ -140,9 +140,9 @@ export interface IConnectionLocker<T = ServerCallContext> {
140
140
  gracefulDisconnect(request: DisconnectNotice, context: T): Promise<DisconnectNoticeResponse>;
141
141
  }
142
142
  /**
143
- * @generated from protobuf service dht.ExternalApiService
143
+ * @generated from protobuf service dht.ExternalApiRpc
144
144
  */
145
- export interface IExternalApiService<T = ServerCallContext> {
145
+ export interface IExternalApiRpc<T = ServerCallContext> {
146
146
  /**
147
147
  * @generated from protobuf rpc: findData(dht.FindDataRequest) returns (dht.FindDataResponse);
148
148
  */