@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,136 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Timestamp = void 0;
4
+ const runtime_1 = require("@protobuf-ts/runtime");
5
+ const runtime_2 = require("@protobuf-ts/runtime");
6
+ const runtime_3 = require("@protobuf-ts/runtime");
7
+ const runtime_4 = require("@protobuf-ts/runtime");
8
+ const runtime_5 = require("@protobuf-ts/runtime");
9
+ const runtime_6 = require("@protobuf-ts/runtime");
10
+ // @generated message type with reflection information, may provide speed optimized methods
11
+ class Timestamp$Type extends runtime_6.MessageType {
12
+ constructor() {
13
+ super("google.protobuf.Timestamp", [
14
+ { no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
15
+ { no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
16
+ ]);
17
+ }
18
+ /**
19
+ * Creates a new `Timestamp` for the current time.
20
+ */
21
+ now() {
22
+ const msg = this.create();
23
+ const ms = Date.now();
24
+ msg.seconds = runtime_5.PbLong.from(Math.floor(ms / 1000)).toNumber();
25
+ msg.nanos = (ms % 1000) * 1000000;
26
+ return msg;
27
+ }
28
+ /**
29
+ * Converts a `Timestamp` to a JavaScript Date.
30
+ */
31
+ toDate(message) {
32
+ return new Date(runtime_5.PbLong.from(message.seconds).toNumber() * 1000 + Math.ceil(message.nanos / 1000000));
33
+ }
34
+ /**
35
+ * Converts a JavaScript Date to a `Timestamp`.
36
+ */
37
+ fromDate(date) {
38
+ const msg = this.create();
39
+ const ms = date.getTime();
40
+ msg.seconds = runtime_5.PbLong.from(Math.floor(ms / 1000)).toNumber();
41
+ msg.nanos = (ms % 1000) * 1000000;
42
+ return msg;
43
+ }
44
+ /**
45
+ * In JSON format, the `Timestamp` type is encoded as a string
46
+ * in the RFC 3339 format.
47
+ */
48
+ internalJsonWrite(message, options) {
49
+ let ms = runtime_5.PbLong.from(message.seconds).toNumber() * 1000;
50
+ if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
51
+ throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
52
+ if (message.nanos < 0)
53
+ throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");
54
+ let z = "Z";
55
+ if (message.nanos > 0) {
56
+ let nanosStr = (message.nanos + 1000000000).toString().substring(1);
57
+ if (nanosStr.substring(3) === "000000")
58
+ z = "." + nanosStr.substring(0, 3) + "Z";
59
+ else if (nanosStr.substring(6) === "000")
60
+ z = "." + nanosStr.substring(0, 6) + "Z";
61
+ else
62
+ z = "." + nanosStr + "Z";
63
+ }
64
+ return new Date(ms).toISOString().replace(".000Z", z);
65
+ }
66
+ /**
67
+ * In JSON format, the `Timestamp` type is encoded as a string
68
+ * in the RFC 3339 format.
69
+ */
70
+ internalJsonRead(json, options, target) {
71
+ if (typeof json !== "string")
72
+ throw new Error("Unable to parse Timestamp from JSON " + (0, runtime_4.typeofJsonValue)(json) + ".");
73
+ let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
74
+ if (!matches)
75
+ throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
76
+ let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z"));
77
+ if (Number.isNaN(ms))
78
+ throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
79
+ if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
80
+ throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
81
+ if (!target)
82
+ target = this.create();
83
+ target.seconds = runtime_5.PbLong.from(ms / 1000).toNumber();
84
+ target.nanos = 0;
85
+ if (matches[7])
86
+ target.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000);
87
+ return target;
88
+ }
89
+ create(value) {
90
+ const message = globalThis.Object.create((this.messagePrototype));
91
+ message.seconds = 0;
92
+ message.nanos = 0;
93
+ if (value !== undefined)
94
+ (0, runtime_3.reflectionMergePartial)(this, message, value);
95
+ return message;
96
+ }
97
+ internalBinaryRead(reader, length, options, target) {
98
+ let message = target ?? this.create(), end = reader.pos + length;
99
+ while (reader.pos < end) {
100
+ let [fieldNo, wireType] = reader.tag();
101
+ switch (fieldNo) {
102
+ case /* int64 seconds */ 1:
103
+ message.seconds = reader.int64().toNumber();
104
+ break;
105
+ case /* int32 nanos */ 2:
106
+ message.nanos = reader.int32();
107
+ break;
108
+ default:
109
+ let u = options.readUnknownField;
110
+ if (u === "throw")
111
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
112
+ let d = reader.skip(wireType);
113
+ if (u !== false)
114
+ (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
115
+ }
116
+ }
117
+ return message;
118
+ }
119
+ internalBinaryWrite(message, writer, options) {
120
+ /* int64 seconds = 1; */
121
+ if (message.seconds !== 0)
122
+ writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds);
123
+ /* int32 nanos = 2; */
124
+ if (message.nanos !== 0)
125
+ writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos);
126
+ let u = options.writeUnknownFields;
127
+ if (u !== false)
128
+ (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
129
+ return writer;
130
+ }
131
+ }
132
+ /**
133
+ * @generated MessageType for protobuf message google.protobuf.Timestamp
134
+ */
135
+ exports.Timestamp = new Timestamp$Type();
136
+ //# sourceMappingURL=timestamp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../generated/google/protobuf/timestamp.ts"],"names":[],"mappings":";;;AAoCA,kDAAgD;AAGhD,kDAA2D;AAE3D,kDAA8D;AAC9D,kDAAuD;AAIvD,kDAA8C;AAC9C,kDAAmD;AAkHnD,2FAA2F;AAC3F,MAAM,cAAe,SAAQ,qBAAsB;IAC/C;QACI,KAAK,CAAC,2BAA2B,EAAE;YAC/B,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,oBAAoB,EAAE,CAAC,EAAE,CAAC,CAAC,mBAAmB,EAAE;YAC/F,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,oBAAoB,EAAE;SACtE,CAAC,CAAC;IACP,CAAC;IACD;;OAEG;IACH,GAAG;QACC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAC1B,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACtB,GAAG,CAAC,OAAO,GAAG,gBAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC5D,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,GAAG,IAAI,CA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AAC,OAAO,KAAK,CAAC;YACrB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,kBAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC1D,sBAAsB;QACtB,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC;YACnB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,kBAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACxD,IAAI,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,6BAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACU,QAAA,SAAS,GAAG,IAAI,cAAc,EAAE,CAAC"}
@@ -0,0 +1,361 @@
1
+ import type { ExternalStoreDataResponse } from "./DhtRpc";
2
+ import type { ExternalStoreDataRequest } from "./DhtRpc";
3
+ import type { ExternalFetchDataResponse } from "./DhtRpc";
4
+ import type { ExternalFetchDataRequest } from "./DhtRpc";
5
+ import type { SetPrivateRequest } from "./DhtRpc";
6
+ import type { DisconnectNotice } from "./DhtRpc";
7
+ import type { UnlockRequest } from "./DhtRpc";
8
+ import type { LockResponse } from "./DhtRpc";
9
+ import type { LockRequest } from "./DhtRpc";
10
+ import type { IceCandidate } from "./DhtRpc";
11
+ import type { RtcAnswer } from "./DhtRpc";
12
+ import type { RtcOffer } from "./DhtRpc";
13
+ import type { WebrtcConnectionRequest } from "./DhtRpc";
14
+ import type { WebsocketConnectionRequest } from "./DhtRpc";
15
+ import type { RecursiveOperationResponse } from "./DhtRpc";
16
+ import type { ReplicateDataRequest } from "./DhtRpc";
17
+ import type { StoreDataResponse } from "./DhtRpc";
18
+ import type { StoreDataRequest } from "./DhtRpc";
19
+ import type { RouteMessageAck } from "./DhtRpc";
20
+ import type { RouteMessageWrapper } from "./DhtRpc";
21
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
22
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
23
+ import type { Empty } from "../../../google/protobuf/empty";
24
+ import type { LeaveNotice } from "./DhtRpc";
25
+ import type { PingResponse } from "./DhtRpc";
26
+ import type { PingRequest } from "./DhtRpc";
27
+ import type { ClosestRingPeersResponse } from "./DhtRpc";
28
+ import type { ClosestRingPeersRequest } from "./DhtRpc";
29
+ import type { ClosestPeersResponse } from "./DhtRpc";
30
+ import type { ClosestPeersRequest } from "./DhtRpc";
31
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
32
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
33
+ /**
34
+ * @generated from protobuf service dht.DhtNodeRpc
35
+ */
36
+ export interface IDhtNodeRpcClient {
37
+ /**
38
+ * TODO rename to getClosestNeighbors (breaking change)
39
+ *
40
+ * @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
41
+ */
42
+ getClosestPeers(input: ClosestPeersRequest, options?: RpcOptions): UnaryCall<ClosestPeersRequest, ClosestPeersResponse>;
43
+ /**
44
+ * TODO rename to getClosestRingContacts (breaking change)
45
+ *
46
+ * @generated from protobuf rpc: getClosestRingPeers(dht.ClosestRingPeersRequest) returns (dht.ClosestRingPeersResponse);
47
+ */
48
+ getClosestRingPeers(input: ClosestRingPeersRequest, options?: RpcOptions): UnaryCall<ClosestRingPeersRequest, ClosestRingPeersResponse>;
49
+ /**
50
+ * @generated from protobuf rpc: ping(dht.PingRequest) returns (dht.PingResponse);
51
+ */
52
+ ping(input: PingRequest, options?: RpcOptions): UnaryCall<PingRequest, PingResponse>;
53
+ /**
54
+ * @generated from protobuf rpc: leaveNotice(dht.LeaveNotice) returns (google.protobuf.Empty);
55
+ */
56
+ leaveNotice(input: LeaveNotice, options?: RpcOptions): UnaryCall<LeaveNotice, Empty>;
57
+ }
58
+ /**
59
+ * @generated from protobuf service dht.DhtNodeRpc
60
+ */
61
+ export declare class DhtNodeRpcClient implements IDhtNodeRpcClient, ServiceInfo {
62
+ private readonly _transport;
63
+ typeName: string;
64
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
65
+ options: {
66
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
67
+ };
68
+ constructor(_transport: RpcTransport);
69
+ /**
70
+ * TODO rename to getClosestNeighbors (breaking change)
71
+ *
72
+ * @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
73
+ */
74
+ getClosestPeers(input: ClosestPeersRequest, options?: RpcOptions): UnaryCall<ClosestPeersRequest, ClosestPeersResponse>;
75
+ /**
76
+ * TODO rename to getClosestRingContacts (breaking change)
77
+ *
78
+ * @generated from protobuf rpc: getClosestRingPeers(dht.ClosestRingPeersRequest) returns (dht.ClosestRingPeersResponse);
79
+ */
80
+ getClosestRingPeers(input: ClosestRingPeersRequest, options?: RpcOptions): UnaryCall<ClosestRingPeersRequest, ClosestRingPeersResponse>;
81
+ /**
82
+ * @generated from protobuf rpc: ping(dht.PingRequest) returns (dht.PingResponse);
83
+ */
84
+ ping(input: PingRequest, options?: RpcOptions): UnaryCall<PingRequest, PingResponse>;
85
+ /**
86
+ * @generated from protobuf rpc: leaveNotice(dht.LeaveNotice) returns (google.protobuf.Empty);
87
+ */
88
+ leaveNotice(input: LeaveNotice, options?: RpcOptions): UnaryCall<LeaveNotice, Empty>;
89
+ }
90
+ /**
91
+ * @generated from protobuf service dht.RouterRpc
92
+ */
93
+ export interface IRouterRpcClient {
94
+ /**
95
+ * @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
96
+ */
97
+ routeMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
98
+ /**
99
+ * @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
100
+ */
101
+ forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
102
+ }
103
+ /**
104
+ * @generated from protobuf service dht.RouterRpc
105
+ */
106
+ export declare class RouterRpcClient implements IRouterRpcClient, ServiceInfo {
107
+ private readonly _transport;
108
+ typeName: string;
109
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
110
+ options: {
111
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
112
+ };
113
+ constructor(_transport: RpcTransport);
114
+ /**
115
+ * @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
116
+ */
117
+ routeMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
118
+ /**
119
+ * @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
120
+ */
121
+ forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
122
+ }
123
+ /**
124
+ * @generated from protobuf service dht.RecursiveOperationRpc
125
+ */
126
+ export interface IRecursiveOperationRpcClient {
127
+ /**
128
+ * @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
129
+ */
130
+ routeRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
131
+ }
132
+ /**
133
+ * @generated from protobuf service dht.RecursiveOperationRpc
134
+ */
135
+ export declare class RecursiveOperationRpcClient implements IRecursiveOperationRpcClient, ServiceInfo {
136
+ private readonly _transport;
137
+ typeName: string;
138
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
139
+ options: {
140
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
141
+ };
142
+ constructor(_transport: RpcTransport);
143
+ /**
144
+ * @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
145
+ */
146
+ routeRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
147
+ }
148
+ /**
149
+ * @generated from protobuf service dht.StoreRpc
150
+ */
151
+ export interface IStoreRpcClient {
152
+ /**
153
+ * @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
154
+ */
155
+ storeData(input: StoreDataRequest, options?: RpcOptions): UnaryCall<StoreDataRequest, StoreDataResponse>;
156
+ /**
157
+ * @generated from protobuf rpc: replicateData(dht.ReplicateDataRequest) returns (google.protobuf.Empty);
158
+ */
159
+ replicateData(input: ReplicateDataRequest, options?: RpcOptions): UnaryCall<ReplicateDataRequest, Empty>;
160
+ }
161
+ /**
162
+ * @generated from protobuf service dht.StoreRpc
163
+ */
164
+ export declare class StoreRpcClient implements IStoreRpcClient, ServiceInfo {
165
+ private readonly _transport;
166
+ typeName: string;
167
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
168
+ options: {
169
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
170
+ };
171
+ constructor(_transport: RpcTransport);
172
+ /**
173
+ * @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
174
+ */
175
+ storeData(input: StoreDataRequest, options?: RpcOptions): UnaryCall<StoreDataRequest, StoreDataResponse>;
176
+ /**
177
+ * @generated from protobuf rpc: replicateData(dht.ReplicateDataRequest) returns (google.protobuf.Empty);
178
+ */
179
+ replicateData(input: ReplicateDataRequest, options?: RpcOptions): UnaryCall<ReplicateDataRequest, Empty>;
180
+ }
181
+ /**
182
+ * @generated from protobuf service dht.RecursiveOperationSessionRpc
183
+ */
184
+ export interface IRecursiveOperationSessionRpcClient {
185
+ /**
186
+ * @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
187
+ */
188
+ sendResponse(input: RecursiveOperationResponse, options?: RpcOptions): UnaryCall<RecursiveOperationResponse, Empty>;
189
+ }
190
+ /**
191
+ * @generated from protobuf service dht.RecursiveOperationSessionRpc
192
+ */
193
+ export declare class RecursiveOperationSessionRpcClient implements IRecursiveOperationSessionRpcClient, ServiceInfo {
194
+ private readonly _transport;
195
+ typeName: string;
196
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
197
+ options: {
198
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
199
+ };
200
+ constructor(_transport: RpcTransport);
201
+ /**
202
+ * @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
203
+ */
204
+ sendResponse(input: RecursiveOperationResponse, options?: RpcOptions): UnaryCall<RecursiveOperationResponse, Empty>;
205
+ }
206
+ /**
207
+ * @generated from protobuf service dht.WebsocketClientConnectorRpc
208
+ */
209
+ export interface IWebsocketClientConnectorRpcClient {
210
+ /**
211
+ * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
212
+ */
213
+ requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, Empty>;
214
+ }
215
+ /**
216
+ * @generated from protobuf service dht.WebsocketClientConnectorRpc
217
+ */
218
+ export declare class WebsocketClientConnectorRpcClient implements IWebsocketClientConnectorRpcClient, ServiceInfo {
219
+ private readonly _transport;
220
+ typeName: string;
221
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
222
+ options: {
223
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
224
+ };
225
+ constructor(_transport: RpcTransport);
226
+ /**
227
+ * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
228
+ */
229
+ requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, Empty>;
230
+ }
231
+ /**
232
+ * @generated from protobuf service dht.WebrtcConnectorRpc
233
+ */
234
+ export interface IWebrtcConnectorRpcClient {
235
+ /**
236
+ * @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
237
+ */
238
+ requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty>;
239
+ /**
240
+ * @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
241
+ */
242
+ rtcOffer(input: RtcOffer, options?: RpcOptions): UnaryCall<RtcOffer, Empty>;
243
+ /**
244
+ * @generated from protobuf rpc: rtcAnswer(dht.RtcAnswer) returns (google.protobuf.Empty);
245
+ */
246
+ rtcAnswer(input: RtcAnswer, options?: RpcOptions): UnaryCall<RtcAnswer, Empty>;
247
+ /**
248
+ * @generated from protobuf rpc: iceCandidate(dht.IceCandidate) returns (google.protobuf.Empty);
249
+ */
250
+ iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
251
+ }
252
+ /**
253
+ * @generated from protobuf service dht.WebrtcConnectorRpc
254
+ */
255
+ export declare class WebrtcConnectorRpcClient implements IWebrtcConnectorRpcClient, ServiceInfo {
256
+ private readonly _transport;
257
+ typeName: string;
258
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
259
+ options: {
260
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
261
+ };
262
+ constructor(_transport: RpcTransport);
263
+ /**
264
+ * @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
265
+ */
266
+ requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty>;
267
+ /**
268
+ * @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
269
+ */
270
+ rtcOffer(input: RtcOffer, options?: RpcOptions): UnaryCall<RtcOffer, Empty>;
271
+ /**
272
+ * @generated from protobuf rpc: rtcAnswer(dht.RtcAnswer) returns (google.protobuf.Empty);
273
+ */
274
+ rtcAnswer(input: RtcAnswer, options?: RpcOptions): UnaryCall<RtcAnswer, Empty>;
275
+ /**
276
+ * @generated from protobuf rpc: iceCandidate(dht.IceCandidate) returns (google.protobuf.Empty);
277
+ */
278
+ iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
279
+ }
280
+ /**
281
+ * @generated from protobuf service dht.ConnectionLockRpc
282
+ */
283
+ export interface IConnectionLockRpcClient {
284
+ /**
285
+ * @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
286
+ */
287
+ lockRequest(input: LockRequest, options?: RpcOptions): UnaryCall<LockRequest, LockResponse>;
288
+ /**
289
+ * @generated from protobuf rpc: unlockRequest(dht.UnlockRequest) returns (google.protobuf.Empty);
290
+ */
291
+ unlockRequest(input: UnlockRequest, options?: RpcOptions): UnaryCall<UnlockRequest, Empty>;
292
+ /**
293
+ * @generated from protobuf rpc: gracefulDisconnect(dht.DisconnectNotice) returns (google.protobuf.Empty);
294
+ */
295
+ gracefulDisconnect(input: DisconnectNotice, options?: RpcOptions): UnaryCall<DisconnectNotice, Empty>;
296
+ /**
297
+ * @generated from protobuf rpc: setPrivate(dht.SetPrivateRequest) returns (google.protobuf.Empty);
298
+ */
299
+ setPrivate(input: SetPrivateRequest, options?: RpcOptions): UnaryCall<SetPrivateRequest, Empty>;
300
+ }
301
+ /**
302
+ * @generated from protobuf service dht.ConnectionLockRpc
303
+ */
304
+ export declare class ConnectionLockRpcClient implements IConnectionLockRpcClient, ServiceInfo {
305
+ private readonly _transport;
306
+ typeName: string;
307
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
308
+ options: {
309
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
310
+ };
311
+ constructor(_transport: RpcTransport);
312
+ /**
313
+ * @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
314
+ */
315
+ lockRequest(input: LockRequest, options?: RpcOptions): UnaryCall<LockRequest, LockResponse>;
316
+ /**
317
+ * @generated from protobuf rpc: unlockRequest(dht.UnlockRequest) returns (google.protobuf.Empty);
318
+ */
319
+ unlockRequest(input: UnlockRequest, options?: RpcOptions): UnaryCall<UnlockRequest, Empty>;
320
+ /**
321
+ * @generated from protobuf rpc: gracefulDisconnect(dht.DisconnectNotice) returns (google.protobuf.Empty);
322
+ */
323
+ gracefulDisconnect(input: DisconnectNotice, options?: RpcOptions): UnaryCall<DisconnectNotice, Empty>;
324
+ /**
325
+ * @generated from protobuf rpc: setPrivate(dht.SetPrivateRequest) returns (google.protobuf.Empty);
326
+ */
327
+ setPrivate(input: SetPrivateRequest, options?: RpcOptions): UnaryCall<SetPrivateRequest, Empty>;
328
+ }
329
+ /**
330
+ * @generated from protobuf service dht.ExternalApiRpc
331
+ */
332
+ export interface IExternalApiRpcClient {
333
+ /**
334
+ * @generated from protobuf rpc: externalFetchData(dht.ExternalFetchDataRequest) returns (dht.ExternalFetchDataResponse);
335
+ */
336
+ externalFetchData(input: ExternalFetchDataRequest, options?: RpcOptions): UnaryCall<ExternalFetchDataRequest, ExternalFetchDataResponse>;
337
+ /**
338
+ * @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
339
+ */
340
+ externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse>;
341
+ }
342
+ /**
343
+ * @generated from protobuf service dht.ExternalApiRpc
344
+ */
345
+ export declare class ExternalApiRpcClient implements IExternalApiRpcClient, ServiceInfo {
346
+ private readonly _transport;
347
+ typeName: string;
348
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
349
+ options: {
350
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
351
+ };
352
+ constructor(_transport: RpcTransport);
353
+ /**
354
+ * @generated from protobuf rpc: externalFetchData(dht.ExternalFetchDataRequest) returns (dht.ExternalFetchDataResponse);
355
+ */
356
+ externalFetchData(input: ExternalFetchDataRequest, options?: RpcOptions): UnaryCall<ExternalFetchDataRequest, ExternalFetchDataResponse>;
357
+ /**
358
+ * @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
359
+ */
360
+ externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse>;
361
+ }