@streamr/dht 102.0.0-beta.1 → 102.0.0-beta.3

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 (211) hide show
  1. package/dist/generated/google/protobuf/any.d.ts +180 -0
  2. package/dist/generated/google/protobuf/any.js +155 -0
  3. package/dist/generated/google/protobuf/any.js.map +1 -0
  4. package/dist/generated/google/protobuf/empty.d.ts +31 -0
  5. package/dist/generated/google/protobuf/empty.js +32 -0
  6. package/dist/generated/google/protobuf/empty.js.map +1 -0
  7. package/dist/generated/google/protobuf/timestamp.d.ts +155 -0
  8. package/dist/generated/google/protobuf/timestamp.js +136 -0
  9. package/dist/generated/google/protobuf/timestamp.js.map +1 -0
  10. package/dist/generated/packages/dht/protos/DhtRpc.client.d.ts +361 -0
  11. package/dist/generated/packages/dht/protos/DhtRpc.client.js +285 -0
  12. package/dist/generated/packages/dht/protos/DhtRpc.client.js.map +1 -0
  13. package/dist/generated/packages/dht/protos/DhtRpc.d.ts +999 -0
  14. package/dist/generated/packages/dht/protos/DhtRpc.js +677 -0
  15. package/dist/generated/packages/dht/protos/DhtRpc.js.map +1 -0
  16. package/dist/generated/packages/dht/protos/DhtRpc.server.d.ts +162 -0
  17. package/dist/generated/packages/dht/protos/DhtRpc.server.js +3 -0
  18. package/dist/generated/packages/dht/protos/DhtRpc.server.js.map +1 -0
  19. package/dist/generated/packages/proto-rpc/protos/ProtoRpc.d.ts +87 -0
  20. package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js +66 -0
  21. package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js.map +1 -0
  22. package/dist/package.json +7 -7
  23. package/package.json +7 -7
  24. package/eslint.config.mjs +0 -12
  25. package/src/connection/Connection.ts +0 -28
  26. package/src/connection/ConnectionLockRpcLocal.ts +0 -78
  27. package/src/connection/ConnectionLockRpcRemote.ts +0 -64
  28. package/src/connection/ConnectionLockStates.ts +0 -131
  29. package/src/connection/ConnectionManager.ts +0 -661
  30. package/src/connection/ConnectionsView.ts +0 -8
  31. package/src/connection/ConnectorFacade.ts +0 -217
  32. package/src/connection/Handshaker.ts +0 -209
  33. package/src/connection/IConnection.ts +0 -40
  34. package/src/connection/ManagedConnection.ts +0 -113
  35. package/src/connection/OutputBuffer.ts +0 -28
  36. package/src/connection/PendingConnection.ts +0 -68
  37. package/src/connection/connectivityChecker.ts +0 -108
  38. package/src/connection/connectivityRequestHandler.ts +0 -116
  39. package/src/connection/simulator/Simulator.ts +0 -369
  40. package/src/connection/simulator/SimulatorConnection.ts +0 -137
  41. package/src/connection/simulator/SimulatorConnector.ts +0 -98
  42. package/src/connection/simulator/SimulatorTransport.ts +0 -15
  43. package/src/connection/simulator/pings.ts +0 -42
  44. package/src/connection/webrtc/BrowserWebrtcConnection.ts +0 -242
  45. package/src/connection/webrtc/IWebrtcConnection.ts +0 -24
  46. package/src/connection/webrtc/NodeWebrtcConnection.ts +0 -245
  47. package/src/connection/webrtc/WebrtcConnector.ts +0 -234
  48. package/src/connection/webrtc/WebrtcConnectorRpcLocal.ts +0 -108
  49. package/src/connection/webrtc/WebrtcConnectorRpcRemote.ts +0 -60
  50. package/src/connection/webrtc/iceServerAsString.ts +0 -15
  51. package/src/connection/websocket/AbstractWebsocketClientConnection.ts +0 -122
  52. package/src/connection/websocket/AutoCertifierClientFacade.ts +0 -89
  53. package/src/connection/websocket/BrowserWebsocketClientConnection.ts +0 -44
  54. package/src/connection/websocket/NodeWebsocketClientConnection.ts +0 -39
  55. package/src/connection/websocket/WebsocketClientConnector.ts +0 -119
  56. package/src/connection/websocket/WebsocketClientConnectorRpcLocal.ts +0 -38
  57. package/src/connection/websocket/WebsocketClientConnectorRpcRemote.ts +0 -19
  58. package/src/connection/websocket/WebsocketServer.ts +0 -164
  59. package/src/connection/websocket/WebsocketServerConnection.ts +0 -109
  60. package/src/connection/websocket/WebsocketServerConnector.ts +0 -290
  61. package/src/dht/DhtNode.ts +0 -683
  62. package/src/dht/DhtNodeRpcLocal.ts +0 -84
  63. package/src/dht/DhtNodeRpcRemote.ts +0 -107
  64. package/src/dht/ExternalApiRpcLocal.ts +0 -58
  65. package/src/dht/ExternalApiRpcRemote.ts +0 -41
  66. package/src/dht/PeerManager.ts +0 -305
  67. package/src/dht/contact/Contact.ts +0 -19
  68. package/src/dht/contact/ContactList.ts +0 -43
  69. package/src/dht/contact/RandomContactList.ts +0 -56
  70. package/src/dht/contact/RingContactList.ts +0 -143
  71. package/src/dht/contact/RpcRemote.ts +0 -72
  72. package/src/dht/contact/SortedContactList.ts +0 -173
  73. package/src/dht/contact/getClosestNodes.ts +0 -24
  74. package/src/dht/contact/ringIdentifiers.ts +0 -62
  75. package/src/dht/discovery/DiscoverySession.ts +0 -129
  76. package/src/dht/discovery/PeerDiscovery.ts +0 -244
  77. package/src/dht/discovery/RingDiscoverySession.ts +0 -148
  78. package/src/dht/recursive-operation/RecursiveOperationManager.ts +0 -251
  79. package/src/dht/recursive-operation/RecursiveOperationRpcLocal.ts +0 -34
  80. package/src/dht/recursive-operation/RecursiveOperationRpcRemote.ts +0 -43
  81. package/src/dht/recursive-operation/RecursiveOperationSession.ts +0 -231
  82. package/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.ts +0 -35
  83. package/src/dht/recursive-operation/RecursiveOperationSessionRpcRemote.ts +0 -30
  84. package/src/dht/routing/DuplicateDetector.ts +0 -34
  85. package/src/dht/routing/Router.ts +0 -246
  86. package/src/dht/routing/RouterRpcLocal.ts +0 -78
  87. package/src/dht/routing/RouterRpcRemote.ts +0 -80
  88. package/src/dht/routing/RoutingSession.ts +0 -243
  89. package/src/dht/routing/RoutingTablesCache.ts +0 -60
  90. package/src/dht/routing/getPreviousPeer.ts +0 -6
  91. package/src/dht/store/LocalDataStore.ts +0 -84
  92. package/src/dht/store/StoreManager.ts +0 -170
  93. package/src/dht/store/StoreRpcLocal.ts +0 -89
  94. package/src/dht/store/StoreRpcRemote.ts +0 -32
  95. package/src/exports.ts +0 -33
  96. package/src/helpers/AddressTools.ts +0 -28
  97. package/src/helpers/Connectivity.ts +0 -19
  98. package/src/helpers/browser/isBrowserEnvironment.ts +0 -1
  99. package/src/helpers/browser/isBrowserEnvironment_override.ts +0 -3
  100. package/src/helpers/createPeerDescriptor.ts +0 -57
  101. package/src/helpers/createPeerDescriptorSignaturePayload.ts +0 -28
  102. package/src/helpers/debugHelpers.ts +0 -9
  103. package/src/helpers/errors.ts +0 -49
  104. package/src/helpers/offering.ts +0 -15
  105. package/src/helpers/protoClasses.ts +0 -57
  106. package/src/helpers/protoToString.ts +0 -21
  107. package/src/helpers/version.ts +0 -32
  108. package/src/identifiers.ts +0 -29
  109. package/src/rpc-protocol/DhtCallContext.ts +0 -14
  110. package/src/rpc-protocol/DhtRpcOptions.ts +0 -10
  111. package/src/transport/ITransport.ts +0 -37
  112. package/src/transport/ListeningRpcCommunicator.ts +0 -32
  113. package/src/transport/RoutingRpcCommunicator.ts +0 -66
  114. package/src/types/ServiceID.ts +0 -1
  115. package/src/types/textencoding.d.ts +0 -6
  116. package/test/benchmark/Find.test.ts +0 -72
  117. package/test/benchmark/KademliaCorrectness.test.ts +0 -114
  118. package/test/benchmark/RingCorrectness.test.ts +0 -157
  119. package/test/benchmark/SortedContactListBenchmark.test.ts +0 -108
  120. package/test/benchmark/WebsocketServerMemoryLeak.test.ts +0 -41
  121. package/test/benchmark/hybrid-network-simulation/RingContactList.test.ts +0 -71
  122. package/test/end-to-end/GeoIpLayer0.test.ts +0 -55
  123. package/test/end-to-end/Layer0-Layer1.test.ts +0 -93
  124. package/test/end-to-end/Layer0.test.ts +0 -76
  125. package/test/end-to-end/Layer0MixedConnectionTypes.test.ts +0 -110
  126. package/test/end-to-end/Layer0Webrtc-Layer1.test.ts +0 -137
  127. package/test/end-to-end/Layer0Webrtc.test.ts +0 -85
  128. package/test/end-to-end/Layer1-Scale-WebSocket.test.ts +0 -82
  129. package/test/end-to-end/Layer1-Scale-Webrtc.test.ts +0 -76
  130. package/test/end-to-end/RecoveryFromFailedAutoCertification.test.ts +0 -52
  131. package/test/end-to-end/WebsocketConnectionRequest.test.ts +0 -69
  132. package/test/end-to-end/memory-leak.test.ts +0 -80
  133. package/test/integration/ConnectionLocking.test.ts +0 -192
  134. package/test/integration/ConnectionManager.test.ts +0 -528
  135. package/test/integration/ConnectivityChecking.test.ts +0 -53
  136. package/test/integration/DhtJoinPeerDiscovery.test.ts +0 -49
  137. package/test/integration/DhtNode.test.ts +0 -66
  138. package/test/integration/DhtNodeExternalAPI.test.ts +0 -48
  139. package/test/integration/DhtNodeRpcRemote.test.ts +0 -66
  140. package/test/integration/DhtRpc.test.ts +0 -121
  141. package/test/integration/Find.test.ts +0 -45
  142. package/test/integration/GeoIpConnectivityChecking.test.ts +0 -72
  143. package/test/integration/Layer1-scale.test.ts +0 -189
  144. package/test/integration/Mock-Layer1-Layer0.test.ts +0 -85
  145. package/test/integration/MultipleEntryPointJoining.test.ts +0 -105
  146. package/test/integration/ReplicateData.test.ts +0 -104
  147. package/test/integration/RouteMessage.test.ts +0 -230
  148. package/test/integration/RouterRpcRemote.test.ts +0 -77
  149. package/test/integration/SimultaneousConnections.test.ts +0 -316
  150. package/test/integration/Store.test.ts +0 -85
  151. package/test/integration/StoreAndDelete.test.ts +0 -77
  152. package/test/integration/StoreOnDhtWithThreeNodes.test.ts +0 -59
  153. package/test/integration/StoreOnDhtWithTwoNodes.test.ts +0 -51
  154. package/test/integration/StoreRpcRemote.test.ts +0 -54
  155. package/test/integration/WebrtcConnectionManagement.test.ts +0 -191
  156. package/test/integration/WebrtcConnectorRpc.test.ts +0 -125
  157. package/test/integration/Websocket.test.ts +0 -65
  158. package/test/integration/WebsocketClientConnectorRpc.test.ts +0 -69
  159. package/test/integration/WebsocketConnectionManagement.test.ts +0 -191
  160. package/test/integration/rpc-connections-over-webrtc.test.ts +0 -123
  161. package/test/kademlia-simulation/data/nodeids.json +0 -13002
  162. package/test/kademlia-simulation/data/orderedneighbors.json +0 -1001
  163. package/test/types/global.d.ts +0 -1
  164. package/test/unit/AddressTools.test.ts +0 -44
  165. package/test/unit/AutoCertifierClientFacade.test.ts +0 -58
  166. package/test/unit/ConnectionManager.test.ts +0 -65
  167. package/test/unit/ConnectivityHelpers.test.ts +0 -61
  168. package/test/unit/DiscoverySession.test.ts +0 -87
  169. package/test/unit/DuplicateDetector.test.ts +0 -31
  170. package/test/unit/Handshaker.test.ts +0 -169
  171. package/test/unit/ListeningRpcCommunicator.test.ts +0 -52
  172. package/test/unit/LocalDataStore.test.ts +0 -108
  173. package/test/unit/ManagedConnection.test.ts +0 -58
  174. package/test/unit/PeerManager.test.ts +0 -93
  175. package/test/unit/PendingConnection.test.ts +0 -57
  176. package/test/unit/ProtobufMessage.test.ts +0 -21
  177. package/test/unit/RandomContactList.test.ts +0 -58
  178. package/test/unit/RecursiveOperationManager.test.ts +0 -161
  179. package/test/unit/RecursiveOperationSession.test.ts +0 -68
  180. package/test/unit/Router.test.ts +0 -137
  181. package/test/unit/RoutingSession.test.ts +0 -86
  182. package/test/unit/SortedContactList.test.ts +0 -115
  183. package/test/unit/StoreManager.test.ts +0 -146
  184. package/test/unit/StoreRpcLocal.test.ts +0 -167
  185. package/test/unit/WebrtcConnection.test.ts +0 -29
  186. package/test/unit/WebrtcConnector.test.ts +0 -56
  187. package/test/unit/WebsocketClientConnector.test.ts +0 -101
  188. package/test/unit/WebsocketServer.test.ts +0 -66
  189. package/test/unit/WebsocketServerConnector.test.ts +0 -102
  190. package/test/unit/connectivityRequestHandler.test.ts +0 -104
  191. package/test/unit/createPeerDescriptor.test.ts +0 -69
  192. package/test/unit/customMatchers.test.ts +0 -34
  193. package/test/unit/getClosestNodes.test.ts +0 -30
  194. package/test/unit/version.test.ts +0 -18
  195. package/test/unit/webrtcReplaceInternalIpWithExternalIp.test.ts +0 -18
  196. package/test/utils/FakeConnectorFacade.ts +0 -41
  197. package/test/utils/FakeRpcCommunicator.ts +0 -23
  198. package/test/utils/FakeTransport.ts +0 -79
  199. package/test/utils/customMatchers.ts +0 -71
  200. package/test/utils/mock/MockConnection.ts +0 -26
  201. package/test/utils/mock/MockConnectionsView.ts +0 -18
  202. package/test/utils/mock/MockRouter.ts +0 -62
  203. package/test/utils/mock/MockRpcCommunicator.ts +0 -7
  204. package/test/utils/mock/MockTransport.ts +0 -26
  205. package/test/utils/mock/mockDataEntry.ts +0 -38
  206. package/test/utils/topology.ts +0 -79
  207. package/test/utils/utils.ts +0 -268
  208. package/tsconfig.browser.json +0 -17
  209. package/tsconfig.jest.json +0 -25
  210. package/tsconfig.json +0 -3
  211. package/tsconfig.node.json +0 -24
@@ -0,0 +1,285 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalApiRpcClient = exports.ConnectionLockRpcClient = exports.WebrtcConnectorRpcClient = exports.WebsocketClientConnectorRpcClient = exports.RecursiveOperationSessionRpcClient = exports.StoreRpcClient = exports.RecursiveOperationRpcClient = exports.RouterRpcClient = exports.DhtNodeRpcClient = void 0;
4
+ // @generated by protobuf-ts 2.9.4 with parameter server_generic,generate_dependencies,long_type_number
5
+ // @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
6
+ // tslint:disable
7
+ const DhtRpc_1 = require("./DhtRpc");
8
+ const DhtRpc_2 = require("./DhtRpc");
9
+ const DhtRpc_3 = require("./DhtRpc");
10
+ const DhtRpc_4 = require("./DhtRpc");
11
+ const DhtRpc_5 = require("./DhtRpc");
12
+ const DhtRpc_6 = require("./DhtRpc");
13
+ const DhtRpc_7 = require("./DhtRpc");
14
+ const DhtRpc_8 = require("./DhtRpc");
15
+ const DhtRpc_9 = require("./DhtRpc");
16
+ const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
17
+ /**
18
+ * @generated from protobuf service dht.DhtNodeRpc
19
+ */
20
+ class DhtNodeRpcClient {
21
+ _transport;
22
+ typeName = DhtRpc_9.DhtNodeRpc.typeName;
23
+ methods = DhtRpc_9.DhtNodeRpc.methods;
24
+ options = DhtRpc_9.DhtNodeRpc.options;
25
+ constructor(_transport) {
26
+ this._transport = _transport;
27
+ }
28
+ /**
29
+ * TODO rename to getClosestNeighbors (breaking change)
30
+ *
31
+ * @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
32
+ */
33
+ getClosestPeers(input, options) {
34
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
35
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
36
+ }
37
+ /**
38
+ * TODO rename to getClosestRingContacts (breaking change)
39
+ *
40
+ * @generated from protobuf rpc: getClosestRingPeers(dht.ClosestRingPeersRequest) returns (dht.ClosestRingPeersResponse);
41
+ */
42
+ getClosestRingPeers(input, options) {
43
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
44
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
45
+ }
46
+ /**
47
+ * @generated from protobuf rpc: ping(dht.PingRequest) returns (dht.PingResponse);
48
+ */
49
+ ping(input, options) {
50
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
51
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
52
+ }
53
+ /**
54
+ * @generated from protobuf rpc: leaveNotice(dht.LeaveNotice) returns (google.protobuf.Empty);
55
+ */
56
+ leaveNotice(input, options) {
57
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
58
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
59
+ }
60
+ }
61
+ exports.DhtNodeRpcClient = DhtNodeRpcClient;
62
+ /**
63
+ * @generated from protobuf service dht.RouterRpc
64
+ */
65
+ class RouterRpcClient {
66
+ _transport;
67
+ typeName = DhtRpc_8.RouterRpc.typeName;
68
+ methods = DhtRpc_8.RouterRpc.methods;
69
+ options = DhtRpc_8.RouterRpc.options;
70
+ constructor(_transport) {
71
+ this._transport = _transport;
72
+ }
73
+ /**
74
+ * @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
75
+ */
76
+ routeMessage(input, options) {
77
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
78
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
79
+ }
80
+ /**
81
+ * @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
82
+ */
83
+ forwardMessage(input, options) {
84
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
85
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
86
+ }
87
+ }
88
+ exports.RouterRpcClient = RouterRpcClient;
89
+ /**
90
+ * @generated from protobuf service dht.RecursiveOperationRpc
91
+ */
92
+ class RecursiveOperationRpcClient {
93
+ _transport;
94
+ typeName = DhtRpc_7.RecursiveOperationRpc.typeName;
95
+ methods = DhtRpc_7.RecursiveOperationRpc.methods;
96
+ options = DhtRpc_7.RecursiveOperationRpc.options;
97
+ constructor(_transport) {
98
+ this._transport = _transport;
99
+ }
100
+ /**
101
+ * @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
102
+ */
103
+ routeRequest(input, options) {
104
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
105
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
106
+ }
107
+ }
108
+ exports.RecursiveOperationRpcClient = RecursiveOperationRpcClient;
109
+ /**
110
+ * @generated from protobuf service dht.StoreRpc
111
+ */
112
+ class StoreRpcClient {
113
+ _transport;
114
+ typeName = DhtRpc_6.StoreRpc.typeName;
115
+ methods = DhtRpc_6.StoreRpc.methods;
116
+ options = DhtRpc_6.StoreRpc.options;
117
+ constructor(_transport) {
118
+ this._transport = _transport;
119
+ }
120
+ /**
121
+ * @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
122
+ */
123
+ storeData(input, options) {
124
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
125
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
126
+ }
127
+ /**
128
+ * @generated from protobuf rpc: replicateData(dht.ReplicateDataRequest) returns (google.protobuf.Empty);
129
+ */
130
+ replicateData(input, options) {
131
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
132
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
133
+ }
134
+ }
135
+ exports.StoreRpcClient = StoreRpcClient;
136
+ /**
137
+ * @generated from protobuf service dht.RecursiveOperationSessionRpc
138
+ */
139
+ class RecursiveOperationSessionRpcClient {
140
+ _transport;
141
+ typeName = DhtRpc_5.RecursiveOperationSessionRpc.typeName;
142
+ methods = DhtRpc_5.RecursiveOperationSessionRpc.methods;
143
+ options = DhtRpc_5.RecursiveOperationSessionRpc.options;
144
+ constructor(_transport) {
145
+ this._transport = _transport;
146
+ }
147
+ /**
148
+ * @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
149
+ */
150
+ sendResponse(input, options) {
151
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
152
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
153
+ }
154
+ }
155
+ exports.RecursiveOperationSessionRpcClient = RecursiveOperationSessionRpcClient;
156
+ /**
157
+ * @generated from protobuf service dht.WebsocketClientConnectorRpc
158
+ */
159
+ class WebsocketClientConnectorRpcClient {
160
+ _transport;
161
+ typeName = DhtRpc_4.WebsocketClientConnectorRpc.typeName;
162
+ methods = DhtRpc_4.WebsocketClientConnectorRpc.methods;
163
+ options = DhtRpc_4.WebsocketClientConnectorRpc.options;
164
+ constructor(_transport) {
165
+ this._transport = _transport;
166
+ }
167
+ /**
168
+ * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
169
+ */
170
+ requestConnection(input, options) {
171
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
172
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
173
+ }
174
+ }
175
+ exports.WebsocketClientConnectorRpcClient = WebsocketClientConnectorRpcClient;
176
+ /**
177
+ * @generated from protobuf service dht.WebrtcConnectorRpc
178
+ */
179
+ class WebrtcConnectorRpcClient {
180
+ _transport;
181
+ typeName = DhtRpc_3.WebrtcConnectorRpc.typeName;
182
+ methods = DhtRpc_3.WebrtcConnectorRpc.methods;
183
+ options = DhtRpc_3.WebrtcConnectorRpc.options;
184
+ constructor(_transport) {
185
+ this._transport = _transport;
186
+ }
187
+ /**
188
+ * @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
189
+ */
190
+ requestConnection(input, options) {
191
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
192
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
193
+ }
194
+ /**
195
+ * @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
196
+ */
197
+ rtcOffer(input, options) {
198
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
199
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
200
+ }
201
+ /**
202
+ * @generated from protobuf rpc: rtcAnswer(dht.RtcAnswer) returns (google.protobuf.Empty);
203
+ */
204
+ rtcAnswer(input, options) {
205
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
206
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
207
+ }
208
+ /**
209
+ * @generated from protobuf rpc: iceCandidate(dht.IceCandidate) returns (google.protobuf.Empty);
210
+ */
211
+ iceCandidate(input, options) {
212
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
213
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
214
+ }
215
+ }
216
+ exports.WebrtcConnectorRpcClient = WebrtcConnectorRpcClient;
217
+ /**
218
+ * @generated from protobuf service dht.ConnectionLockRpc
219
+ */
220
+ class ConnectionLockRpcClient {
221
+ _transport;
222
+ typeName = DhtRpc_2.ConnectionLockRpc.typeName;
223
+ methods = DhtRpc_2.ConnectionLockRpc.methods;
224
+ options = DhtRpc_2.ConnectionLockRpc.options;
225
+ constructor(_transport) {
226
+ this._transport = _transport;
227
+ }
228
+ /**
229
+ * @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
230
+ */
231
+ lockRequest(input, options) {
232
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
233
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
234
+ }
235
+ /**
236
+ * @generated from protobuf rpc: unlockRequest(dht.UnlockRequest) returns (google.protobuf.Empty);
237
+ */
238
+ unlockRequest(input, options) {
239
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
240
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
241
+ }
242
+ /**
243
+ * @generated from protobuf rpc: gracefulDisconnect(dht.DisconnectNotice) returns (google.protobuf.Empty);
244
+ */
245
+ gracefulDisconnect(input, options) {
246
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
247
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
248
+ }
249
+ /**
250
+ * @generated from protobuf rpc: setPrivate(dht.SetPrivateRequest) returns (google.protobuf.Empty);
251
+ */
252
+ setPrivate(input, options) {
253
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
254
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
255
+ }
256
+ }
257
+ exports.ConnectionLockRpcClient = ConnectionLockRpcClient;
258
+ /**
259
+ * @generated from protobuf service dht.ExternalApiRpc
260
+ */
261
+ class ExternalApiRpcClient {
262
+ _transport;
263
+ typeName = DhtRpc_1.ExternalApiRpc.typeName;
264
+ methods = DhtRpc_1.ExternalApiRpc.methods;
265
+ options = DhtRpc_1.ExternalApiRpc.options;
266
+ constructor(_transport) {
267
+ this._transport = _transport;
268
+ }
269
+ /**
270
+ * @generated from protobuf rpc: externalFetchData(dht.ExternalFetchDataRequest) returns (dht.ExternalFetchDataResponse);
271
+ */
272
+ externalFetchData(input, options) {
273
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
274
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
275
+ }
276
+ /**
277
+ * @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
278
+ */
279
+ externalStoreData(input, options) {
280
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
281
+ return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
282
+ }
283
+ }
284
+ exports.ExternalApiRpcClient = ExternalApiRpcClient;
285
+ //# sourceMappingURL=DhtRpc.client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DhtRpc.client.js","sourceRoot":"","sources":["../../../../../generated/packages/dht/protos/DhtRpc.client.ts"],"names":[],"mappings":";;;AAAA,uGAAuG;AACvG,kGAAkG;AAClG,iBAAiB;AACjB,qCAA0C;AAK1C,qCAA6C;AAM7C,qCAA8C;AAK9C,qCAAuD;AAEvD,qCAAwD;AAExD,qCAAoC;AAIpC,qCAAiD;AACjD,qCAAqC;AAKrC,qCAAsC;AAOtC,0DAA0D;AA8B1D;;GAEG;AACH,MAAa,gBAAgB;IAII;IAH7B,QAAQ,GAAG,mBAAU,CAAC,QAAQ,CAAC;IAC/B,OAAO,GAAG,mBAAU,CAAC,OAAO,CAAC;IAC7B,OAAO,GAAG,mBAAU,CAAC,OAAO,CAAC;IAC7B,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IACrD,CAAC;IACD;;;;OAIG;IACH,eAAe,CAAC,KAA0B,EAAE,OAAoB;QAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,IAAA,4BAAc,EAA4C,OAAO,EAAE,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