@streamr/dht 100.0.0-testnet-one.4 → 100.0.0-testnet-two.1

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 (321) hide show
  1. package/dist/package.json +66 -0
  2. package/dist/src/connection/ConnectionLockHandler.d.ts +11 -11
  3. package/dist/src/connection/ConnectionLockHandler.js.map +1 -1
  4. package/dist/src/connection/ConnectionLockRpcLocal.d.ts +3 -3
  5. package/dist/src/connection/ConnectionLockRpcLocal.js +4 -4
  6. package/dist/src/connection/ConnectionLockRpcLocal.js.map +1 -1
  7. package/dist/src/connection/ConnectionLockRpcRemote.d.ts +3 -5
  8. package/dist/src/connection/ConnectionLockRpcRemote.js +4 -7
  9. package/dist/src/connection/ConnectionLockRpcRemote.js.map +1 -1
  10. package/dist/src/connection/ConnectionManager.d.ts +4 -6
  11. package/dist/src/connection/ConnectionManager.js +48 -46
  12. package/dist/src/connection/ConnectionManager.js.map +1 -1
  13. package/dist/src/connection/ConnectorFacade.d.ts +2 -2
  14. package/dist/src/connection/ConnectorFacade.js +2 -1
  15. package/dist/src/connection/ConnectorFacade.js.map +1 -1
  16. package/dist/src/connection/Handshaker.d.ts +1 -1
  17. package/dist/src/connection/Handshaker.js +14 -5
  18. package/dist/src/connection/Handshaker.js.map +1 -1
  19. package/dist/src/connection/ManagedConnection.d.ts +4 -7
  20. package/dist/src/connection/ManagedConnection.js +9 -13
  21. package/dist/src/connection/ManagedConnection.js.map +1 -1
  22. package/dist/src/connection/connectivityChecker.js +1 -0
  23. package/dist/src/connection/connectivityChecker.js.map +1 -1
  24. package/dist/src/connection/simulator/Simulator.d.ts +0 -3
  25. package/dist/src/connection/simulator/Simulator.js +3 -51
  26. package/dist/src/connection/simulator/Simulator.js.map +1 -1
  27. package/dist/src/connection/simulator/SimulatorConnector.js +5 -5
  28. package/dist/src/connection/simulator/SimulatorConnector.js.map +1 -1
  29. package/dist/src/connection/webrtc/NodeWebrtcConnection.js +2 -2
  30. package/dist/src/connection/webrtc/NodeWebrtcConnection.js.map +1 -1
  31. package/dist/src/connection/webrtc/WebrtcConnector.d.ts +0 -1
  32. package/dist/src/connection/webrtc/WebrtcConnector.js +7 -9
  33. package/dist/src/connection/webrtc/WebrtcConnector.js.map +1 -1
  34. package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.d.ts +2 -2
  35. package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.js +21 -14
  36. package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.js.map +1 -1
  37. package/dist/src/connection/webrtc/WebrtcConnectorRpcRemote.d.ts +2 -5
  38. package/dist/src/connection/webrtc/WebrtcConnectorRpcRemote.js +1 -4
  39. package/dist/src/connection/webrtc/WebrtcConnectorRpcRemote.js.map +1 -1
  40. package/dist/src/connection/websocket/AutoCertifierClientFacade.d.ts +1 -2
  41. package/dist/src/connection/websocket/AutoCertifierClientFacade.js +3 -4
  42. package/dist/src/connection/websocket/AutoCertifierClientFacade.js.map +1 -1
  43. package/dist/src/connection/websocket/ClientWebsocket.js.map +1 -1
  44. package/dist/src/connection/websocket/WebsocketConnector.d.ts +2 -7
  45. package/dist/src/connection/websocket/WebsocketConnector.js +48 -44
  46. package/dist/src/connection/websocket/WebsocketConnector.js.map +1 -1
  47. package/dist/src/connection/websocket/WebsocketConnectorRpcLocal.d.ts +3 -2
  48. package/dist/src/connection/websocket/WebsocketConnectorRpcLocal.js +8 -10
  49. package/dist/src/connection/websocket/WebsocketConnectorRpcLocal.js.map +1 -1
  50. package/dist/src/connection/websocket/WebsocketConnectorRpcRemote.d.ts +3 -6
  51. package/dist/src/connection/websocket/WebsocketConnectorRpcRemote.js +0 -3
  52. package/dist/src/connection/websocket/WebsocketConnectorRpcRemote.js.map +1 -1
  53. package/dist/src/connection/websocket/WebsocketServer.d.ts +1 -4
  54. package/dist/src/connection/websocket/WebsocketServer.js +11 -12
  55. package/dist/src/connection/websocket/WebsocketServer.js.map +1 -1
  56. package/dist/src/dht/DhtNode.d.ts +10 -13
  57. package/dist/src/dht/DhtNode.js +41 -54
  58. package/dist/src/dht/DhtNode.js.map +1 -1
  59. package/dist/src/dht/DhtNodeRpcLocal.d.ts +2 -3
  60. package/dist/src/dht/DhtNodeRpcLocal.js +1 -1
  61. package/dist/src/dht/DhtNodeRpcLocal.js.map +1 -1
  62. package/dist/src/dht/DhtNodeRpcRemote.d.ts +7 -7
  63. package/dist/src/dht/DhtNodeRpcRemote.js +9 -11
  64. package/dist/src/dht/DhtNodeRpcRemote.js.map +1 -1
  65. package/dist/src/dht/ExternalApiRpcLocal.d.ts +5 -4
  66. package/dist/src/dht/ExternalApiRpcLocal.js +3 -2
  67. package/dist/src/dht/ExternalApiRpcLocal.js.map +1 -1
  68. package/dist/src/dht/ExternalApiRpcRemote.d.ts +2 -2
  69. package/dist/src/dht/ExternalApiRpcRemote.js +2 -0
  70. package/dist/src/dht/ExternalApiRpcRemote.js.map +1 -1
  71. package/dist/src/dht/PeerManager.d.ts +13 -14
  72. package/dist/src/dht/PeerManager.js +45 -60
  73. package/dist/src/dht/PeerManager.js.map +1 -1
  74. package/dist/src/dht/contact/Contact.d.ts +2 -2
  75. package/dist/src/dht/contact/Contact.js +2 -2
  76. package/dist/src/dht/contact/Contact.js.map +1 -1
  77. package/dist/src/dht/contact/ContactList.d.ts +7 -7
  78. package/dist/src/dht/contact/ContactList.js +3 -3
  79. package/dist/src/dht/contact/ContactList.js.map +1 -1
  80. package/dist/src/dht/contact/RandomContactList.d.ts +4 -4
  81. package/dist/src/dht/contact/RandomContactList.js +12 -11
  82. package/dist/src/dht/contact/RandomContactList.js.map +1 -1
  83. package/dist/src/dht/contact/RpcRemote.d.ts +7 -4
  84. package/dist/src/dht/contact/RpcRemote.js +5 -2
  85. package/dist/src/dht/contact/RpcRemote.js.map +1 -1
  86. package/dist/src/dht/contact/SortedContactList.d.ts +13 -13
  87. package/dist/src/dht/contact/SortedContactList.js +33 -29
  88. package/dist/src/dht/contact/SortedContactList.js.map +1 -1
  89. package/dist/src/dht/discovery/DiscoverySession.d.ts +2 -4
  90. package/dist/src/dht/discovery/DiscoverySession.js +19 -23
  91. package/dist/src/dht/discovery/DiscoverySession.js.map +1 -1
  92. package/dist/src/dht/discovery/PeerDiscovery.d.ts +2 -5
  93. package/dist/src/dht/discovery/PeerDiscovery.js +12 -20
  94. package/dist/src/dht/discovery/PeerDiscovery.js.map +1 -1
  95. package/dist/src/dht/recursive-operation/RecursiveOperationManager.d.ts +36 -0
  96. package/dist/src/dht/recursive-operation/RecursiveOperationManager.js +165 -0
  97. package/dist/src/dht/recursive-operation/RecursiveOperationManager.js.map +1 -0
  98. package/dist/src/dht/recursive-operation/RecursiveOperationRpcLocal.d.ts +14 -0
  99. package/dist/src/dht/{find/FindRpcLocal.js → recursive-operation/RecursiveOperationRpcLocal.js} +7 -7
  100. package/dist/src/dht/recursive-operation/RecursiveOperationRpcLocal.js.map +1 -0
  101. package/dist/src/dht/recursive-operation/RecursiveOperationRpcRemote.d.ts +6 -0
  102. package/dist/src/dht/{routing/FindRpcRemote.js → recursive-operation/RecursiveOperationRpcRemote.js} +11 -11
  103. package/dist/src/dht/recursive-operation/RecursiveOperationRpcRemote.js.map +1 -0
  104. package/dist/src/dht/recursive-operation/RecursiveOperationSession.d.ts +42 -0
  105. package/dist/src/dht/recursive-operation/RecursiveOperationSession.js +182 -0
  106. package/dist/src/dht/recursive-operation/RecursiveOperationSession.js.map +1 -0
  107. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.d.ts +12 -0
  108. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.js +17 -0
  109. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.js.map +1 -0
  110. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcRemote.d.ts +6 -0
  111. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcRemote.js +21 -0
  112. package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcRemote.js.map +1 -0
  113. package/dist/src/dht/routing/Router.d.ts +4 -19
  114. package/dist/src/dht/routing/Router.js +41 -33
  115. package/dist/src/dht/routing/Router.js.map +1 -1
  116. package/dist/src/dht/routing/RouterRpcLocal.js +6 -5
  117. package/dist/src/dht/routing/RouterRpcLocal.js.map +1 -1
  118. package/dist/src/dht/routing/RouterRpcRemote.d.ts +2 -2
  119. package/dist/src/dht/routing/RouterRpcRemote.js +7 -7
  120. package/dist/src/dht/routing/RouterRpcRemote.js.map +1 -1
  121. package/dist/src/dht/routing/RoutingSession.d.ts +20 -16
  122. package/dist/src/dht/routing/RoutingSession.js +37 -45
  123. package/dist/src/dht/routing/RoutingSession.js.map +1 -1
  124. package/dist/src/dht/store/LocalDataStore.d.ts +11 -13
  125. package/dist/src/dht/store/LocalDataStore.js +36 -56
  126. package/dist/src/dht/store/LocalDataStore.js.map +1 -1
  127. package/dist/src/dht/store/StoreManager.d.ts +33 -0
  128. package/dist/src/dht/store/StoreManager.js +186 -0
  129. package/dist/src/dht/store/StoreManager.js.map +1 -0
  130. package/dist/src/dht/store/StoreRpcLocal.d.ts +8 -40
  131. package/dist/src/dht/store/StoreRpcLocal.js +13 -229
  132. package/dist/src/dht/store/StoreRpcLocal.js.map +1 -1
  133. package/dist/src/dht/store/StoreRpcRemote.d.ts +5 -5
  134. package/dist/src/dht/store/StoreRpcRemote.js +4 -5
  135. package/dist/src/dht/store/StoreRpcRemote.js.map +1 -1
  136. package/dist/src/exports.d.ts +2 -0
  137. package/dist/src/exports.js.map +1 -1
  138. package/dist/src/helpers/MapWithTtl.d.ts +14 -0
  139. package/dist/src/helpers/MapWithTtl.js +59 -0
  140. package/dist/src/helpers/MapWithTtl.js.map +1 -0
  141. package/dist/src/helpers/PeerID.d.ts +2 -0
  142. package/dist/src/helpers/PeerID.js +4 -0
  143. package/dist/src/helpers/PeerID.js.map +1 -1
  144. package/dist/src/helpers/nodeId.d.ts +5 -0
  145. package/dist/src/helpers/nodeId.js +18 -1
  146. package/dist/src/helpers/nodeId.js.map +1 -1
  147. package/dist/src/helpers/peerIdFromPeerDescriptor.d.ts +2 -1
  148. package/dist/src/helpers/peerIdFromPeerDescriptor.js +2 -1
  149. package/dist/src/helpers/peerIdFromPeerDescriptor.js.map +1 -1
  150. package/dist/src/helpers/protoClasses.js +2 -3
  151. package/dist/src/helpers/protoClasses.js.map +1 -1
  152. package/dist/src/helpers/versionCompatibility.d.ts +2 -0
  153. package/dist/src/helpers/versionCompatibility.js +18 -0
  154. package/dist/src/helpers/versionCompatibility.js.map +1 -0
  155. package/dist/src/proto/packages/dht/protos/DhtRpc.client.d.ts +21 -22
  156. package/dist/src/proto/packages/dht/protos/DhtRpc.client.js +18 -18
  157. package/dist/src/proto/packages/dht/protos/DhtRpc.client.js.map +1 -1
  158. package/dist/src/proto/packages/dht/protos/DhtRpc.d.ts +49 -65
  159. package/dist/src/proto/packages/dht/protos/DhtRpc.js +43 -58
  160. package/dist/src/proto/packages/dht/protos/DhtRpc.js.map +1 -1
  161. package/dist/src/proto/packages/dht/protos/DhtRpc.server.d.ts +11 -12
  162. package/dist/src/rpc-protocol/DhtCallContext.d.ts +2 -1
  163. package/dist/src/rpc-protocol/DhtCallContext.js.map +1 -1
  164. package/dist/src/rpc-protocol/DhtRpcOptions.d.ts +2 -1
  165. package/dist/src/transport/ITransport.d.ts +9 -1
  166. package/dist/src/transport/ITransport.js +5 -0
  167. package/dist/src/transport/ITransport.js.map +1 -1
  168. package/dist/src/transport/ListeningRpcCommunicator.js +1 -1
  169. package/dist/src/transport/ListeningRpcCommunicator.js.map +1 -1
  170. package/dist/src/transport/RoutingRpcCommunicator.d.ts +2 -1
  171. package/dist/src/transport/RoutingRpcCommunicator.js +16 -11
  172. package/dist/src/transport/RoutingRpcCommunicator.js.map +1 -1
  173. package/jest.config.js +4 -1
  174. package/karma-setup.js +2 -0
  175. package/karma.config.js +11 -7
  176. package/package.json +6 -7
  177. package/protos/DhtRpc.proto +20 -24
  178. package/src/connection/ConnectionLockHandler.ts +15 -15
  179. package/src/connection/ConnectionLockRpcLocal.ts +8 -9
  180. package/src/connection/ConnectionLockRpcRemote.ts +7 -16
  181. package/src/connection/ConnectionManager.ts +58 -55
  182. package/src/connection/ConnectorFacade.ts +3 -0
  183. package/src/connection/Handshaker.ts +21 -6
  184. package/src/connection/ManagedConnection.ts +20 -34
  185. package/src/connection/connectivityChecker.ts +1 -0
  186. package/src/connection/simulator/Simulator.ts +5 -36
  187. package/src/connection/simulator/SimulatorConnector.ts +8 -8
  188. package/src/connection/webrtc/BrowserWebrtcConnection.ts +0 -3
  189. package/src/connection/webrtc/NodeWebrtcConnection.ts +3 -4
  190. package/src/connection/webrtc/WebrtcConnector.ts +11 -13
  191. package/src/connection/webrtc/WebrtcConnectorRpcLocal.ts +25 -18
  192. package/src/connection/webrtc/WebrtcConnectorRpcRemote.ts +3 -13
  193. package/src/connection/websocket/AutoCertifierClientFacade.ts +4 -6
  194. package/src/connection/websocket/ClientWebsocket.ts +1 -0
  195. package/src/connection/websocket/WebsocketConnector.ts +57 -61
  196. package/src/connection/websocket/WebsocketConnectorRpcLocal.ts +11 -13
  197. package/src/connection/websocket/WebsocketConnectorRpcRemote.ts +4 -15
  198. package/src/connection/websocket/WebsocketServer.ts +14 -17
  199. package/src/dht/DhtNode.ts +69 -71
  200. package/src/dht/DhtNodeRpcLocal.ts +1 -3
  201. package/src/dht/DhtNodeRpcRemote.ts +14 -18
  202. package/src/dht/ExternalApiRpcLocal.ts +16 -6
  203. package/src/dht/ExternalApiRpcRemote.ts +5 -3
  204. package/src/dht/PeerManager.ts +73 -90
  205. package/src/dht/contact/Contact.ts +5 -4
  206. package/src/dht/contact/ContactList.ts +9 -9
  207. package/src/dht/contact/RandomContactList.ts +14 -14
  208. package/src/dht/contact/RpcRemote.ts +10 -7
  209. package/src/dht/contact/SortedContactList.ts +48 -45
  210. package/src/dht/discovery/DiscoverySession.ts +25 -27
  211. package/src/dht/discovery/PeerDiscovery.ts +16 -37
  212. package/src/dht/recursive-operation/RecursiveOperationManager.ts +240 -0
  213. package/src/dht/{find/FindRpcLocal.ts → recursive-operation/RecursiveOperationRpcLocal.ts} +9 -9
  214. package/src/dht/{routing/FindRpcRemote.ts → recursive-operation/RecursiveOperationRpcRemote.ts} +10 -10
  215. package/src/dht/recursive-operation/RecursiveOperationSession.ts +224 -0
  216. package/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.ts +25 -0
  217. package/src/dht/{find/FindSessionRpcRemote.ts → recursive-operation/RecursiveOperationSessionRpcRemote.ts} +8 -8
  218. package/src/dht/routing/Router.ts +45 -64
  219. package/src/dht/routing/RouterRpcLocal.ts +7 -6
  220. package/src/dht/routing/RouterRpcRemote.ts +9 -10
  221. package/src/dht/routing/RoutingSession.ts +59 -68
  222. package/src/dht/store/LocalDataStore.ts +47 -66
  223. package/src/dht/store/StoreManager.ts +217 -0
  224. package/src/dht/store/StoreRpcLocal.ts +26 -302
  225. package/src/dht/store/StoreRpcRemote.ts +9 -11
  226. package/src/exports.ts +2 -0
  227. package/src/helpers/MapWithTtl.ts +71 -0
  228. package/src/helpers/PeerID.ts +5 -0
  229. package/src/helpers/nodeId.ts +20 -0
  230. package/src/helpers/peerIdFromPeerDescriptor.ts +5 -3
  231. package/src/helpers/protoClasses.ts +4 -6
  232. package/src/helpers/versionCompatibility.ts +13 -0
  233. package/src/proto/packages/dht/protos/DhtRpc.client.ts +31 -32
  234. package/src/proto/packages/dht/protos/DhtRpc.server.ts +11 -12
  235. package/src/proto/packages/dht/protos/DhtRpc.ts +67 -90
  236. package/src/rpc-protocol/DhtCallContext.ts +2 -1
  237. package/src/rpc-protocol/DhtRpcOptions.ts +2 -1
  238. package/src/transport/ITransport.ts +10 -1
  239. package/src/transport/ListeningRpcCommunicator.ts +1 -1
  240. package/src/transport/RoutingRpcCommunicator.ts +18 -12
  241. package/test/benchmark/Find.test.ts +8 -21
  242. package/test/benchmark/KademliaCorrectness.test.ts +11 -20
  243. package/test/benchmark/SortedContactListBenchmark.test.ts +9 -9
  244. package/test/benchmark/kademlia-simulation/Contact.ts +9 -8
  245. package/test/benchmark/kademlia-simulation/KademliaSimulation.ts +2 -2
  246. package/test/benchmark/kademlia-simulation/SimulationNode.ts +17 -17
  247. package/test/end-to-end/Layer0-Layer1.test.ts +10 -14
  248. package/test/end-to-end/Layer0.test.ts +15 -18
  249. package/test/end-to-end/Layer0MixedConnectionTypes.test.ts +7 -9
  250. package/test/end-to-end/Layer0Webrtc-Layer1.test.ts +4 -10
  251. package/test/end-to-end/Layer0Webrtc.test.ts +5 -6
  252. package/test/end-to-end/Layer1-Scale-WebSocket.test.ts +8 -16
  253. package/test/end-to-end/Layer1-Scale-Webrtc.test.ts +6 -13
  254. package/test/end-to-end/WebsocketConnectionRequest.test.ts +5 -6
  255. package/test/end-to-end/memory-leak.test.ts +6 -8
  256. package/test/integration/ConnectionLocking.test.ts +6 -13
  257. package/test/integration/ConnectionManager.test.ts +26 -43
  258. package/test/integration/DhtJoinPeerDiscovery.test.ts +5 -10
  259. package/test/integration/DhtNodeExternalAPI.test.ts +16 -22
  260. package/test/integration/DhtNodeRpcRemote.test.ts +13 -22
  261. package/test/integration/DhtRpc.test.ts +13 -18
  262. package/test/integration/Find.test.ts +10 -10
  263. package/test/integration/Layer1-scale.test.ts +17 -28
  264. package/test/integration/Mock-Layer1-Layer0.test.ts +25 -43
  265. package/test/integration/MultipleEntryPointJoining.test.ts +7 -7
  266. package/test/integration/ReplicateData.test.ts +28 -30
  267. package/test/integration/RouteMessage.test.ts +30 -27
  268. package/test/integration/RouterRpcRemote.test.ts +12 -18
  269. package/test/integration/RpcErrors.test.ts +8 -21
  270. package/test/integration/ScaleDownDht.test.ts +11 -10
  271. package/test/integration/SimultaneousConnections.test.ts +43 -67
  272. package/test/integration/Store.test.ts +23 -36
  273. package/test/integration/StoreAndDelete.test.ts +30 -50
  274. package/test/integration/StoreOnDhtWithTwoNodes.test.ts +16 -37
  275. package/test/integration/StoreRpcRemote.test.ts +20 -30
  276. package/test/integration/WebrtcConnectionManagement.test.ts +3 -13
  277. package/test/integration/WebrtcConnectorRpc.test.ts +3 -9
  278. package/test/integration/WebsocketConnectionManagement.test.ts +7 -10
  279. package/test/integration/WebsocketConnectorRpc.test.ts +8 -17
  280. package/test/unit/ConnectivityHelpers.test.ts +9 -17
  281. package/test/unit/DuplicateDetector.test.ts +7 -4
  282. package/test/unit/LocalDataStore.test.ts +66 -77
  283. package/test/unit/PeerManager.test.ts +31 -0
  284. package/test/unit/RandomContactList.test.ts +13 -8
  285. package/test/unit/{Finder.test.ts → RecursiveOperationManager.test.ts} +38 -43
  286. package/test/unit/RecursiveOperationSession.test.ts +68 -0
  287. package/test/unit/Router.test.ts +15 -22
  288. package/test/unit/RoutingSession.test.ts +23 -25
  289. package/test/unit/SortedContactList.test.ts +41 -26
  290. package/test/unit/StoreManager.test.ts +132 -0
  291. package/test/unit/WebsocketConnector.test.ts +27 -35
  292. package/test/unit/customMatchers.test.ts +16 -0
  293. package/test/unit/versionCompatibility.test.ts +16 -0
  294. package/test/utils/FakeTransport.ts +44 -0
  295. package/test/utils/customMatchers.ts +70 -0
  296. package/test/utils/mock/MockRpcCommunicator.ts +7 -0
  297. package/test/utils/mock/Router.ts +3 -2
  298. package/test/utils/mock/mockDataEntry.ts +36 -0
  299. package/test/utils/utils.ts +49 -87
  300. package/tsconfig.browser.json +2 -1
  301. package/tsconfig.jest.json +2 -1
  302. package/tsconfig.node.json +2 -1
  303. package/dist/src/dht/find/FindRpcLocal.d.ts +0 -14
  304. package/dist/src/dht/find/FindRpcLocal.js.map +0 -1
  305. package/dist/src/dht/find/FindSession.d.ts +0 -44
  306. package/dist/src/dht/find/FindSession.js +0 -150
  307. package/dist/src/dht/find/FindSession.js.map +0 -1
  308. package/dist/src/dht/find/FindSessionRpcLocal.d.ts +0 -12
  309. package/dist/src/dht/find/FindSessionRpcLocal.js +0 -17
  310. package/dist/src/dht/find/FindSessionRpcLocal.js.map +0 -1
  311. package/dist/src/dht/find/FindSessionRpcRemote.d.ts +0 -6
  312. package/dist/src/dht/find/FindSessionRpcRemote.js +0 -21
  313. package/dist/src/dht/find/FindSessionRpcRemote.js.map +0 -1
  314. package/dist/src/dht/find/Finder.d.ts +0 -49
  315. package/dist/src/dht/find/Finder.js +0 -197
  316. package/dist/src/dht/find/Finder.js.map +0 -1
  317. package/dist/src/dht/routing/FindRpcRemote.d.ts +0 -6
  318. package/dist/src/dht/routing/FindRpcRemote.js.map +0 -1
  319. package/src/dht/find/FindSession.ts +0 -183
  320. package/src/dht/find/FindSessionRpcLocal.ts +0 -25
  321. package/src/dht/find/Finder.ts +0 -295
@@ -7,7 +7,8 @@ const peerIdFromPeerDescriptor = (peerDescriptor) => {
7
7
  return PeerID_1.PeerID.fromValue(peerDescriptor.nodeId);
8
8
  };
9
9
  exports.peerIdFromPeerDescriptor = peerIdFromPeerDescriptor;
10
- // TODO could move getNodeIdFromPeerDescriptor (and NodeID) from trackerless-network
10
+ // TODO could use this in trackerless-network (instead of copy-pasted same implementation)
11
+ // and move this to nodeId.ts
11
12
  const getNodeIdFromPeerDescriptor = (peerDescriptor) => {
12
13
  return (0, utils_1.binaryToHex)(peerDescriptor.nodeId);
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"peerIdFromPeerDescriptor.js","sourceRoot":"","sources":["../../../src/helpers/peerIdFromPeerDescriptor.ts"],"names":[],"mappings":";;;AAAA,0CAA8D;AAE9D,qCAA6D;AAEtD,MAAM,wBAAwB,GAAG,CAAC,cAA8B,EAAU,EAAE;IAC/E,OAAO,eAAM,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;AAClD,CAAC,CAAA;AAFY,QAAA,wBAAwB,4BAEpC;AAED,oFAAoF;AAC7E,MAAM,2BAA2B,GAAG,CAAC,cAA8B,EAAU,EAAE;IAClF,OAAO,IAAA,mBAAW,EAAC,cAAc,CAAC,MAAM,CAAC,CAAA;AAC7C,CAAC,CAAA;AAFY,QAAA,2BAA2B,+BAEvC;AAEM,MAAM,qBAAq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("../proto/packages/dht/protos/DhtRpc");
5
5
  exports.protoClasses = [
6
6
  DhtRpc_1.ClosestPeersRequest,
7
7
  DhtRpc_1.ClosestPeersResponse,
8
- DhtRpc_1.FindRequest,
9
- DhtRpc_1.FindResponse,
8
+ DhtRpc_1.RecursiveOperationRequest,
9
+ DhtRpc_1.RecursiveOperationResponse,
10
10
  DhtRpc_1.PingRequest,
11
11
  DhtRpc_1.PingResponse,
12
12
  DhtRpc_1.LeaveNotice,
@@ -21,7 +21,6 @@ exports.protoClasses = [
21
21
  DhtRpc_1.HandshakeResponse,
22
22
  DhtRpc_1.Message,
23
23
  DhtRpc_1.WebsocketConnectionRequest,
24
- DhtRpc_1.WebsocketConnectionResponse,
25
24
  DhtRpc_1.WebrtcConnectionRequest,
26
25
  DhtRpc_1.RtcOffer,
27
26
  DhtRpc_1.RtcAnswer,
@@ -1 +1 @@
1
- {"version":3,"file":"protoClasses.js","sourceRoot":"","sources":["../../../src/helpers/protoClasses.ts"],"names":[],"mappings":";;;AACA,gEA4B4C;AAE/B,QAAA,YAAY,GAA6B;IAClD,4BAAmB;IACnB,6BAAoB;IACpB,oBAAW;IACX,qBAAY;IACZ,oBAAW;IACX,qBAAY;IACZ,oBAAW;IACX,uBAAc;IACd,2BAAkB;IAClB,yBAAgB;IAChB,4BAAmB;IACnB,wBAAe;IACf,4BAAmB;IACnB,6BAAoB;IACpB,yBAAgB;IAChB,0BAAiB;IACjB,gBAAO;IACP,mCAA0B;IAC1B,oCAA2B;IAC3B,gCAAuB;IACvB,iBAAQ;IACR,kBAAS;IACT,qBAAY;IACZ,oBAAW;IACX,sBAAa;IACb,qBAAY;CACf,CAAA"}
1
+ {"version":3,"file":"protoClasses.js","sourceRoot":"","sources":["../../../src/helpers/protoClasses.ts"],"names":[],"mappings":";;;AACA,gEA2B4C;AAE/B,QAAA,YAAY,GAA6B;IAClD,4BAAmB;IACnB,6BAAoB;IACpB,kCAAyB;IACzB,mCAA0B;IAC1B,oBAAW;IACX,qBAAY;IACZ,oBAAW;IACX,uBAAc;IACd,2BAAkB;IAClB,yBAAgB;IAChB,4BAAmB;IACnB,wBAAe;IACf,4BAAmB;IACnB,6BAAoB;IACpB,yBAAgB;IAChB,0BAAiB;IACjB,gBAAO;IACP,mCAA0B;IAC1B,gCAAuB;IACvB,iBAAQ;IACR,kBAAS;IACT,qBAAY;IACZ,oBAAW;IACX,sBAAa;IACb,qBAAY;CACf,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const isCompatibleVersion: (version1: string, version2: string) => boolean;
2
+ export declare const excludePatchVersion: (version: string) => string;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.excludePatchVersion = exports.isCompatibleVersion = void 0;
4
+ // Is able to compare versions such as 1.2.3 and 1.2.4
5
+ // can also compare versions such as 100.0.0-pretestnet.0 and 100.0.0-pretestnet.40
6
+ const isCompatibleVersion = (version1, version2) => {
7
+ const minorVersion1 = (0, exports.excludePatchVersion)(version1);
8
+ const minorVersion2 = (0, exports.excludePatchVersion)(version2);
9
+ return minorVersion1 === minorVersion2;
10
+ };
11
+ exports.isCompatibleVersion = isCompatibleVersion;
12
+ const excludePatchVersion = (version) => {
13
+ const versionParts = version.split('.');
14
+ versionParts.pop();
15
+ return versionParts.join('.');
16
+ };
17
+ exports.excludePatchVersion = excludePatchVersion;
18
+ //# sourceMappingURL=versionCompatibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versionCompatibility.js","sourceRoot":"","sources":["../../../src/helpers/versionCompatibility.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,mFAAmF;AAC5E,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAE,QAAgB,EAAW,EAAE;IAC/E,MAAM,aAAa,GAAG,IAAA,2BAAmB,EAAC,QAAQ,CAAC,CAAA;IACnD,MAAM,aAAa,GAAG,IAAA,2BAAmB,EAAC,QAAQ,CAAC,CAAA;IACnD,OAAO,aAAa,KAAK,aAAa,CAAA;AAC1C,CAAC,CAAA;AAJY,QAAA,mBAAmB,uBAI/B;AAEM,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAU,EAAE;IAC3D,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACvC,YAAY,CAAC,GAAG,EAAE,CAAA;IAClB,OAAO,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACjC,CAAC,CAAA;AAJY,QAAA,mBAAmB,uBAI/B"}
@@ -11,9 +11,8 @@ import type { IceCandidate } from "./DhtRpc";
11
11
  import type { RtcAnswer } from "./DhtRpc";
12
12
  import type { RtcOffer } from "./DhtRpc";
13
13
  import type { WebrtcConnectionRequest } from "./DhtRpc";
14
- import type { WebsocketConnectionResponse } from "./DhtRpc";
15
14
  import type { WebsocketConnectionRequest } from "./DhtRpc";
16
- import type { FindResponse } from "./DhtRpc";
15
+ import type { RecursiveOperationResponse } from "./DhtRpc";
17
16
  import type { ReplicateDataRequest } from "./DhtRpc";
18
17
  import type { StoreDataResponse } from "./DhtRpc";
19
18
  import type { StoreDataRequest } from "./DhtRpc";
@@ -104,18 +103,18 @@ export declare class RouterRpcClient implements IRouterRpcClient, ServiceInfo {
104
103
  forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
105
104
  }
106
105
  /**
107
- * @generated from protobuf service dht.FindRpc
106
+ * @generated from protobuf service dht.RecursiveOperationRpc
108
107
  */
109
- export interface IFindRpcClient {
108
+ export interface IRecursiveOperationRpcClient {
110
109
  /**
111
- * @generated from protobuf rpc: routeFindRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
110
+ * @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
112
111
  */
113
- routeFindRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
112
+ routeRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
114
113
  }
115
114
  /**
116
- * @generated from protobuf service dht.FindRpc
115
+ * @generated from protobuf service dht.RecursiveOperationRpc
117
116
  */
118
- export declare class FindRpcClient implements IFindRpcClient, ServiceInfo {
117
+ export declare class RecursiveOperationRpcClient implements IRecursiveOperationRpcClient, ServiceInfo {
119
118
  private readonly _transport;
120
119
  typeName: string;
121
120
  methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
@@ -124,9 +123,9 @@ export declare class FindRpcClient implements IFindRpcClient, ServiceInfo {
124
123
  };
125
124
  constructor(_transport: RpcTransport);
126
125
  /**
127
- * @generated from protobuf rpc: routeFindRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
126
+ * @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
128
127
  */
129
- routeFindRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
128
+ routeRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
130
129
  }
131
130
  /**
132
131
  * @generated from protobuf service dht.StoreRpc
@@ -162,18 +161,18 @@ export declare class StoreRpcClient implements IStoreRpcClient, ServiceInfo {
162
161
  replicateData(input: ReplicateDataRequest, options?: RpcOptions): UnaryCall<ReplicateDataRequest, Empty>;
163
162
  }
164
163
  /**
165
- * @generated from protobuf service dht.FindSessionRpc
164
+ * @generated from protobuf service dht.RecursiveOperationSessionRpc
166
165
  */
167
- export interface IFindSessionRpcClient {
166
+ export interface IRecursiveOperationSessionRpcClient {
168
167
  /**
169
- * @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
168
+ * @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
170
169
  */
171
- sendFindResponse(input: FindResponse, options?: RpcOptions): UnaryCall<FindResponse, Empty>;
170
+ sendResponse(input: RecursiveOperationResponse, options?: RpcOptions): UnaryCall<RecursiveOperationResponse, Empty>;
172
171
  }
173
172
  /**
174
- * @generated from protobuf service dht.FindSessionRpc
173
+ * @generated from protobuf service dht.RecursiveOperationSessionRpc
175
174
  */
176
- export declare class FindSessionRpcClient implements IFindSessionRpcClient, ServiceInfo {
175
+ export declare class RecursiveOperationSessionRpcClient implements IRecursiveOperationSessionRpcClient, ServiceInfo {
177
176
  private readonly _transport;
178
177
  typeName: string;
179
178
  methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
@@ -182,18 +181,18 @@ export declare class FindSessionRpcClient implements IFindSessionRpcClient, Serv
182
181
  };
183
182
  constructor(_transport: RpcTransport);
184
183
  /**
185
- * @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
184
+ * @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
186
185
  */
187
- sendFindResponse(input: FindResponse, options?: RpcOptions): UnaryCall<FindResponse, Empty>;
186
+ sendResponse(input: RecursiveOperationResponse, options?: RpcOptions): UnaryCall<RecursiveOperationResponse, Empty>;
188
187
  }
189
188
  /**
190
189
  * @generated from protobuf service dht.WebsocketConnectorRpc
191
190
  */
192
191
  export interface IWebsocketConnectorRpcClient {
193
192
  /**
194
- * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (dht.WebsocketConnectionResponse);
193
+ * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
195
194
  */
196
- requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, WebsocketConnectionResponse>;
195
+ requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, Empty>;
197
196
  }
198
197
  /**
199
198
  * @generated from protobuf service dht.WebsocketConnectorRpc
@@ -207,9 +206,9 @@ export declare class WebsocketConnectorRpcClient implements IWebsocketConnectorR
207
206
  };
208
207
  constructor(_transport: RpcTransport);
209
208
  /**
210
- * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (dht.WebsocketConnectionResponse);
209
+ * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
211
210
  */
212
- requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, WebsocketConnectionResponse>;
211
+ requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, Empty>;
213
212
  }
214
213
  /**
215
214
  * @generated from protobuf service dht.WebrtcConnectorRpc
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExternalApiRpcClient = exports.ConnectionLockRpcClient = exports.WebrtcConnectorRpcClient = exports.WebsocketConnectorRpcClient = exports.FindSessionRpcClient = exports.StoreRpcClient = exports.FindRpcClient = exports.RouterRpcClient = exports.DhtNodeRpcClient = void 0;
3
+ exports.ExternalApiRpcClient = exports.ConnectionLockRpcClient = exports.WebrtcConnectorRpcClient = exports.WebsocketConnectorRpcClient = exports.RecursiveOperationSessionRpcClient = exports.StoreRpcClient = exports.RecursiveOperationRpcClient = exports.RouterRpcClient = exports.DhtNodeRpcClient = void 0;
4
4
  // @generated by protobuf-ts 2.9.1 with parameter server_generic,generate_dependencies,long_type_number
5
5
  // @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
6
6
  // tslint:disable
@@ -74,24 +74,24 @@ class RouterRpcClient {
74
74
  }
75
75
  exports.RouterRpcClient = RouterRpcClient;
76
76
  /**
77
- * @generated from protobuf service dht.FindRpc
77
+ * @generated from protobuf service dht.RecursiveOperationRpc
78
78
  */
79
- class FindRpcClient {
79
+ class RecursiveOperationRpcClient {
80
80
  constructor(_transport) {
81
81
  this._transport = _transport;
82
- this.typeName = DhtRpc_7.FindRpc.typeName;
83
- this.methods = DhtRpc_7.FindRpc.methods;
84
- this.options = DhtRpc_7.FindRpc.options;
82
+ this.typeName = DhtRpc_7.RecursiveOperationRpc.typeName;
83
+ this.methods = DhtRpc_7.RecursiveOperationRpc.methods;
84
+ this.options = DhtRpc_7.RecursiveOperationRpc.options;
85
85
  }
86
86
  /**
87
- * @generated from protobuf rpc: routeFindRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
87
+ * @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
88
88
  */
89
- routeFindRequest(input, options) {
89
+ routeRequest(input, options) {
90
90
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
91
91
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
92
92
  }
93
93
  }
94
- exports.FindRpcClient = FindRpcClient;
94
+ exports.RecursiveOperationRpcClient = RecursiveOperationRpcClient;
95
95
  /**
96
96
  * @generated from protobuf service dht.StoreRpc
97
97
  */
@@ -119,24 +119,24 @@ class StoreRpcClient {
119
119
  }
120
120
  exports.StoreRpcClient = StoreRpcClient;
121
121
  /**
122
- * @generated from protobuf service dht.FindSessionRpc
122
+ * @generated from protobuf service dht.RecursiveOperationSessionRpc
123
123
  */
124
- class FindSessionRpcClient {
124
+ class RecursiveOperationSessionRpcClient {
125
125
  constructor(_transport) {
126
126
  this._transport = _transport;
127
- this.typeName = DhtRpc_5.FindSessionRpc.typeName;
128
- this.methods = DhtRpc_5.FindSessionRpc.methods;
129
- this.options = DhtRpc_5.FindSessionRpc.options;
127
+ this.typeName = DhtRpc_5.RecursiveOperationSessionRpc.typeName;
128
+ this.methods = DhtRpc_5.RecursiveOperationSessionRpc.methods;
129
+ this.options = DhtRpc_5.RecursiveOperationSessionRpc.options;
130
130
  }
131
131
  /**
132
- * @generated from protobuf rpc: sendFindResponse(dht.FindResponse) returns (google.protobuf.Empty);
132
+ * @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
133
133
  */
134
- sendFindResponse(input, options) {
134
+ sendResponse(input, options) {
135
135
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
136
136
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
137
137
  }
138
138
  }
139
- exports.FindSessionRpcClient = FindSessionRpcClient;
139
+ exports.RecursiveOperationSessionRpcClient = RecursiveOperationSessionRpcClient;
140
140
  /**
141
141
  * @generated from protobuf service dht.WebsocketConnectorRpc
142
142
  */
@@ -148,7 +148,7 @@ class WebsocketConnectorRpcClient {
148
148
  this.options = DhtRpc_4.WebsocketConnectorRpc.options;
149
149
  }
150
150
  /**
151
- * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (dht.WebsocketConnectionResponse);
151
+ * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
152
152
  */
153
153
  requestConnection(input, options) {
154
154
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
@@ -1 +1 @@
1
- {"version":3,"file":"DhtRpc.client.js","sourceRoot":"","sources":["../../../../../../src/proto/packages/dht/protos/DhtRpc.client.ts"],"names":[],"mappings":";;;AAAA,uGAAuG;AACvG,kGAAkG;AAClG,iBAAiB;AACjB,qCAA0C;AAK1C,qCAA6C;AAM7C,qCAA8C;AAK9C,qCAAiD;AAGjD,qCAA0C;AAE1C,qCAAoC;AAIpC,qCAAmC;AACnC,qCAAqC;AAKrC,qCAAsC;AAKtC,0DAA0D;AAsB1D;;GAEG;AACH,MAAa,gBAAgB;IAIzB,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;QAHrD,aAAQ,GAAG,mBAAU,CAAC,QAAQ,CAAC;QAC/B,YAAO,GAAG,mBAAU,CAAC,OAAO,CAAC;QAC7B,YAAO,GAAG,mBAAU,CAAC,OAAO,CAAC;IAE7B,CAAC;IACD;;OAEG;IACH,eAAe,CAAC,KAA0B,EAAE,OAAoB;QAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,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AAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,IAAA,4BAAc,EAAsD,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC7H,CAAC;CACJ;AApBD,oDAoBC"}
@@ -16,9 +16,9 @@ export interface StoreDataRequest {
16
16
  */
17
17
  data?: Any;
18
18
  /**
19
- * @generated from protobuf field: dht.PeerDescriptor creator = 3;
19
+ * @generated from protobuf field: bytes creator = 3;
20
20
  */
21
- creator?: PeerDescriptor;
21
+ creator: Uint8Array;
22
22
  /**
23
23
  * @generated from protobuf field: google.protobuf.Timestamp createdAt = 4;
24
24
  */
@@ -32,10 +32,6 @@ export interface StoreDataRequest {
32
32
  * @generated from protobuf message dht.StoreDataResponse
33
33
  */
34
34
  export interface StoreDataResponse {
35
- /**
36
- * @generated from protobuf field: string error = 1;
37
- */
38
- error: string;
39
35
  }
40
36
  /**
41
37
  * @generated from protobuf message dht.ExternalStoreDataRequest
@@ -81,9 +77,9 @@ export interface DataEntry {
81
77
  */
82
78
  data?: Any;
83
79
  /**
84
- * @generated from protobuf field: dht.PeerDescriptor creator = 3;
80
+ * @generated from protobuf field: bytes creator = 3;
85
81
  */
86
- creator?: PeerDescriptor;
82
+ creator: Uint8Array;
87
83
  /**
88
84
  * @generated from protobuf field: google.protobuf.Timestamp createdAt = 4;
89
85
  */
@@ -132,22 +128,22 @@ export interface ClosestPeersResponse {
132
128
  requestId: string;
133
129
  }
134
130
  /**
135
- * @generated from protobuf message dht.FindRequest
131
+ * @generated from protobuf message dht.RecursiveOperationRequest
136
132
  */
137
- export interface FindRequest {
133
+ export interface RecursiveOperationRequest {
138
134
  /**
139
135
  * @generated from protobuf field: string sessionId = 1;
140
136
  */
141
137
  sessionId: string;
142
138
  /**
143
- * @generated from protobuf field: dht.FindAction action = 2;
139
+ * @generated from protobuf field: dht.RecursiveOperation operation = 2;
144
140
  */
145
- action: FindAction;
141
+ operation: RecursiveOperation;
146
142
  }
147
143
  /**
148
- * @generated from protobuf message dht.FindResponse
144
+ * @generated from protobuf message dht.RecursiveOperationResponse
149
145
  */
150
- export interface FindResponse {
146
+ export interface RecursiveOperationResponse {
151
147
  /**
152
148
  * @generated from protobuf field: repeated dht.PeerDescriptor closestConnectedPeers = 1;
153
149
  */
@@ -187,10 +183,6 @@ export interface PingResponse {
187
183
  * @generated from protobuf message dht.LeaveNotice
188
184
  */
189
185
  export interface LeaveNotice {
190
- /**
191
- * @generated from protobuf field: string serviceId = 1;
192
- */
193
- serviceId: string;
194
186
  }
195
187
  /**
196
188
  * @generated from protobuf message dht.PeerDescriptor
@@ -243,17 +235,17 @@ export interface ConnectivityMethod {
243
235
  */
244
236
  export interface RouteMessageWrapper {
245
237
  /**
246
- * @generated from protobuf field: dht.PeerDescriptor sourcePeer = 1;
238
+ * @generated from protobuf field: string requestId = 1;
247
239
  */
248
- sourcePeer?: PeerDescriptor;
240
+ requestId: string;
249
241
  /**
250
- * @generated from protobuf field: string requestId = 2;
242
+ * @generated from protobuf field: dht.PeerDescriptor sourcePeer = 2;
251
243
  */
252
- requestId: string;
244
+ sourcePeer?: PeerDescriptor;
253
245
  /**
254
- * @generated from protobuf field: dht.PeerDescriptor destinationPeer = 3;
246
+ * @generated from protobuf field: bytes target = 3;
255
247
  */
256
- destinationPeer?: PeerDescriptor;
248
+ target: Uint8Array;
257
249
  /**
258
250
  * @generated from protobuf field: dht.Message message = 4;
259
251
  */
@@ -330,6 +322,10 @@ export interface HandshakeRequest {
330
322
  * @generated from protobuf field: optional dht.PeerDescriptor targetPeerDescriptor = 2;
331
323
  */
332
324
  targetPeerDescriptor?: PeerDescriptor;
325
+ /**
326
+ * @generated from protobuf field: string version = 3;
327
+ */
328
+ version: string;
333
329
  }
334
330
  /**
335
331
  * @generated from protobuf message dht.HandshakeResponse
@@ -343,6 +339,10 @@ export interface HandshakeResponse {
343
339
  * @generated from protobuf field: optional dht.HandshakeError error = 2;
344
340
  */
345
341
  error?: HandshakeError;
342
+ /**
343
+ * @generated from protobuf field: string version = 3;
344
+ */
345
+ version: string;
346
346
  }
347
347
  /**
348
348
  * @generated from protobuf message dht.Message
@@ -402,11 +402,11 @@ export interface Message {
402
402
  */
403
403
  rpcMessage: RpcMessage;
404
404
  } | {
405
- oneofKind: "findRequest";
405
+ oneofKind: "recursiveOperationRequest";
406
406
  /**
407
- * @generated from protobuf field: dht.FindRequest findRequest = 11;
407
+ * @generated from protobuf field: dht.RecursiveOperationRequest recursiveOperationRequest = 11;
408
408
  */
409
- findRequest: FindRequest;
409
+ recursiveOperationRequest: RecursiveOperationRequest;
410
410
  } | {
411
411
  oneofKind: undefined;
412
412
  };
@@ -418,15 +418,6 @@ export interface Message {
418
418
  */
419
419
  export interface WebsocketConnectionRequest {
420
420
  }
421
- /**
422
- * @generated from protobuf message dht.WebsocketConnectionResponse
423
- */
424
- export interface WebsocketConnectionResponse {
425
- /**
426
- * @generated from protobuf field: bool accepted = 1;
427
- */
428
- accepted: boolean;
429
- }
430
421
  /**
431
422
  * WebRTC
432
423
  *
@@ -537,13 +528,13 @@ export interface ExternalFindDataResponse {
537
528
  entries: DataEntry[];
538
529
  }
539
530
  /**
540
- * @generated from protobuf enum dht.FindAction
531
+ * @generated from protobuf enum dht.RecursiveOperation
541
532
  */
542
- export declare enum FindAction {
533
+ export declare enum RecursiveOperation {
543
534
  /**
544
- * @generated from protobuf enum value: NODE = 0;
535
+ * @generated from protobuf enum value: FIND_NODE = 0;
545
536
  */
546
- NODE = 0,
537
+ FIND_NODE = 0,
547
538
  /**
548
539
  * @generated from protobuf enum value: FETCH_DATA = 1;
549
540
  */
@@ -564,11 +555,7 @@ export declare enum NodeType {
564
555
  /**
565
556
  * @generated from protobuf enum value: BROWSER = 1;
566
557
  */
567
- BROWSER = 1,
568
- /**
569
- * @generated from protobuf enum value: VIRTUAL = 3;
570
- */
571
- VIRTUAL = 3
558
+ BROWSER = 1
572
559
  }
573
560
  /**
574
561
  * @generated from protobuf enum dht.RpcResponseError
@@ -622,7 +609,11 @@ export declare enum HandshakeError {
622
609
  /**
623
610
  * @generated from protobuf enum value: INVALID_TARGET_PEER_DESCRIPTOR = 1;
624
611
  */
625
- INVALID_TARGET_PEER_DESCRIPTOR = 1
612
+ INVALID_TARGET_PEER_DESCRIPTOR = 1,
613
+ /**
614
+ * @generated from protobuf enum value: UNSUPPORTED_VERSION = 2;
615
+ */
616
+ UNSUPPORTED_VERSION = 2
626
617
  }
627
618
  /**
628
619
  * @generated from protobuf enum dht.MessageType
@@ -649,9 +640,9 @@ export declare enum MessageType {
649
640
  */
650
641
  HANDSHAKE_RESPONSE = 4,
651
642
  /**
652
- * @generated from protobuf enum value: FIND_REQUEST = 5;
643
+ * @generated from protobuf enum value: RECURSIVE_OPERATION_REQUEST = 5;
653
644
  */
654
- FIND_REQUEST = 5
645
+ RECURSIVE_OPERATION_REQUEST = 5
655
646
  }
656
647
  /**
657
648
  * @generated from protobuf enum dht.DisconnectMode
@@ -722,20 +713,20 @@ declare class ClosestPeersResponse$Type extends MessageType$<ClosestPeersRespons
722
713
  * @generated MessageType for protobuf message dht.ClosestPeersResponse
723
714
  */
724
715
  export declare const ClosestPeersResponse: ClosestPeersResponse$Type;
725
- declare class FindRequest$Type extends MessageType$<FindRequest> {
716
+ declare class RecursiveOperationRequest$Type extends MessageType$<RecursiveOperationRequest> {
726
717
  constructor();
727
718
  }
728
719
  /**
729
- * @generated MessageType for protobuf message dht.FindRequest
720
+ * @generated MessageType for protobuf message dht.RecursiveOperationRequest
730
721
  */
731
- export declare const FindRequest: FindRequest$Type;
732
- declare class FindResponse$Type extends MessageType$<FindResponse> {
722
+ export declare const RecursiveOperationRequest: RecursiveOperationRequest$Type;
723
+ declare class RecursiveOperationResponse$Type extends MessageType$<RecursiveOperationResponse> {
733
724
  constructor();
734
725
  }
735
726
  /**
736
- * @generated MessageType for protobuf message dht.FindResponse
727
+ * @generated MessageType for protobuf message dht.RecursiveOperationResponse
737
728
  */
738
- export declare const FindResponse: FindResponse$Type;
729
+ export declare const RecursiveOperationResponse: RecursiveOperationResponse$Type;
739
730
  declare class PingRequest$Type extends MessageType$<PingRequest> {
740
731
  constructor();
741
732
  }
@@ -827,13 +818,6 @@ declare class WebsocketConnectionRequest$Type extends MessageType$<WebsocketConn
827
818
  * @generated MessageType for protobuf message dht.WebsocketConnectionRequest
828
819
  */
829
820
  export declare const WebsocketConnectionRequest: WebsocketConnectionRequest$Type;
830
- declare class WebsocketConnectionResponse$Type extends MessageType$<WebsocketConnectionResponse> {
831
- constructor();
832
- }
833
- /**
834
- * @generated MessageType for protobuf message dht.WebsocketConnectionResponse
835
- */
836
- export declare const WebsocketConnectionResponse: WebsocketConnectionResponse$Type;
837
821
  declare class WebrtcConnectionRequest$Type extends MessageType$<WebrtcConnectionRequest> {
838
822
  constructor();
839
823
  }
@@ -920,17 +904,17 @@ export declare const DhtNodeRpc: ServiceType;
920
904
  */
921
905
  export declare const RouterRpc: ServiceType;
922
906
  /**
923
- * @generated ServiceType for protobuf service dht.FindRpc
907
+ * @generated ServiceType for protobuf service dht.RecursiveOperationRpc
924
908
  */
925
- export declare const FindRpc: ServiceType;
909
+ export declare const RecursiveOperationRpc: ServiceType;
926
910
  /**
927
911
  * @generated ServiceType for protobuf service dht.StoreRpc
928
912
  */
929
913
  export declare const StoreRpc: ServiceType;
930
914
  /**
931
- * @generated ServiceType for protobuf service dht.FindSessionRpc
915
+ * @generated ServiceType for protobuf service dht.RecursiveOperationSessionRpc
932
916
  */
933
- export declare const FindSessionRpc: ServiceType;
917
+ export declare const RecursiveOperationSessionRpc: ServiceType;
934
918
  /**
935
919
  * @generated ServiceType for protobuf service dht.WebsocketConnectorRpc
936
920
  */