@streamr/dht 103.0.0-rc.17 → 103.0.0-rc.19

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 (34) hide show
  1. package/dist/generated/google/protobuf/any.d.ts +2 -2
  2. package/dist/generated/google/protobuf/timestamp.d.ts +2 -2
  3. package/dist/generated/packages/dht/protos/DhtRpc.client.d.ts +44 -44
  4. package/dist/generated/packages/dht/protos/DhtRpc.client.js +23 -23
  5. package/dist/generated/packages/dht/protos/DhtRpc.d.ts +100 -100
  6. package/dist/generated/packages/dht/protos/DhtRpc.js +1 -1
  7. package/dist/generated/packages/dht/protos/DhtRpc.server.d.ts +22 -22
  8. package/dist/generated/packages/proto-rpc/protos/ProtoRpc.d.ts +8 -8
  9. package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js +1 -1
  10. package/dist/package.json +8 -8
  11. package/dist/src/connection/ConnectionManager.js +2 -3
  12. package/dist/src/connection/ConnectionManager.js.map +1 -1
  13. package/dist/src/connection/IConnection.d.ts +0 -9
  14. package/dist/src/connection/IConnection.js.map +1 -1
  15. package/dist/src/connection/ManagedConnection.d.ts +1 -2
  16. package/dist/src/connection/ManagedConnection.js +0 -1
  17. package/dist/src/connection/ManagedConnection.js.map +1 -1
  18. package/dist/src/connection/connectivityChecker.js +3 -3
  19. package/dist/src/connection/connectivityChecker.js.map +1 -1
  20. package/dist/src/connection/webrtc/BrowserWebrtcConnection.d.ts +2 -9
  21. package/dist/src/connection/webrtc/BrowserWebrtcConnection.js +15 -82
  22. package/dist/src/connection/webrtc/BrowserWebrtcConnection.js.map +1 -1
  23. package/dist/src/connection/websocket/AutoCertifierClientFacade.d.ts +1 -0
  24. package/dist/src/connection/websocket/AutoCertifierClientFacade.js +1 -1
  25. package/dist/src/connection/websocket/AutoCertifierClientFacade.js.map +1 -1
  26. package/dist/src/dht/recursive-operation/RecursiveOperationManager.js +3 -3
  27. package/dist/src/dht/recursive-operation/RecursiveOperationManager.js.map +1 -1
  28. package/dist/src/dht/routing/Router.js +6 -9
  29. package/dist/src/dht/routing/Router.js.map +1 -1
  30. package/dist/src/exports.d.ts +0 -1
  31. package/dist/src/exports.js.map +1 -1
  32. package/dist/src/transport/ITransport.d.ts +0 -5
  33. package/dist/src/transport/ITransport.js.map +1 -1
  34. package/package.json +8 -8
@@ -130,13 +130,13 @@ export interface Any {
130
130
  * used with implementation specific semantics.
131
131
  *
132
132
  *
133
- * @generated from protobuf field: string type_url = 1;
133
+ * @generated from protobuf field: string type_url = 1
134
134
  */
135
135
  typeUrl: string;
136
136
  /**
137
137
  * Must be a valid serialized protocol buffer of the above specified type.
138
138
  *
139
- * @generated from protobuf field: bytes value = 2;
139
+ * @generated from protobuf field: bytes value = 2
140
140
  */
141
141
  value: Uint8Array;
142
142
  }
@@ -107,7 +107,7 @@ export interface Timestamp {
107
107
  * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
108
108
  * 9999-12-31T23:59:59Z inclusive.
109
109
  *
110
- * @generated from protobuf field: int64 seconds = 1;
110
+ * @generated from protobuf field: int64 seconds = 1
111
111
  */
112
112
  seconds: number;
113
113
  /**
@@ -116,7 +116,7 @@ export interface Timestamp {
116
116
  * that count forward in time. Must be from 0 to 999,999,999
117
117
  * inclusive.
118
118
  *
119
- * @generated from protobuf field: int32 nanos = 2;
119
+ * @generated from protobuf field: int32 nanos = 2
120
120
  */
121
121
  nanos: number;
122
122
  }
@@ -39,21 +39,21 @@ export interface IDhtNodeRpcClient {
39
39
  /**
40
40
  * TODO rename to getClosestNeighbors (breaking change)
41
41
  *
42
- * @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
42
+ * @generated from protobuf rpc: getClosestPeers
43
43
  */
44
44
  getClosestPeers(input: ClosestPeersRequest, options?: RpcOptions): UnaryCall<ClosestPeersRequest, ClosestPeersResponse>;
45
45
  /**
46
46
  * TODO rename to getClosestRingContacts (breaking change)
47
47
  *
48
- * @generated from protobuf rpc: getClosestRingPeers(dht.ClosestRingPeersRequest) returns (dht.ClosestRingPeersResponse);
48
+ * @generated from protobuf rpc: getClosestRingPeers
49
49
  */
50
50
  getClosestRingPeers(input: ClosestRingPeersRequest, options?: RpcOptions): UnaryCall<ClosestRingPeersRequest, ClosestRingPeersResponse>;
51
51
  /**
52
- * @generated from protobuf rpc: ping(dht.PingRequest) returns (dht.PingResponse);
52
+ * @generated from protobuf rpc: ping
53
53
  */
54
54
  ping(input: PingRequest, options?: RpcOptions): UnaryCall<PingRequest, PingResponse>;
55
55
  /**
56
- * @generated from protobuf rpc: leaveNotice(dht.LeaveNotice) returns (google.protobuf.Empty);
56
+ * @generated from protobuf rpc: leaveNotice
57
57
  */
58
58
  leaveNotice(input: LeaveNotice, options?: RpcOptions): UnaryCall<LeaveNotice, Empty>;
59
59
  }
@@ -71,21 +71,21 @@ export declare class DhtNodeRpcClient implements IDhtNodeRpcClient, ServiceInfo
71
71
  /**
72
72
  * TODO rename to getClosestNeighbors (breaking change)
73
73
  *
74
- * @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
74
+ * @generated from protobuf rpc: getClosestPeers
75
75
  */
76
76
  getClosestPeers(input: ClosestPeersRequest, options?: RpcOptions): UnaryCall<ClosestPeersRequest, ClosestPeersResponse>;
77
77
  /**
78
78
  * TODO rename to getClosestRingContacts (breaking change)
79
79
  *
80
- * @generated from protobuf rpc: getClosestRingPeers(dht.ClosestRingPeersRequest) returns (dht.ClosestRingPeersResponse);
80
+ * @generated from protobuf rpc: getClosestRingPeers
81
81
  */
82
82
  getClosestRingPeers(input: ClosestRingPeersRequest, options?: RpcOptions): UnaryCall<ClosestRingPeersRequest, ClosestRingPeersResponse>;
83
83
  /**
84
- * @generated from protobuf rpc: ping(dht.PingRequest) returns (dht.PingResponse);
84
+ * @generated from protobuf rpc: ping
85
85
  */
86
86
  ping(input: PingRequest, options?: RpcOptions): UnaryCall<PingRequest, PingResponse>;
87
87
  /**
88
- * @generated from protobuf rpc: leaveNotice(dht.LeaveNotice) returns (google.protobuf.Empty);
88
+ * @generated from protobuf rpc: leaveNotice
89
89
  */
90
90
  leaveNotice(input: LeaveNotice, options?: RpcOptions): UnaryCall<LeaveNotice, Empty>;
91
91
  }
@@ -94,11 +94,11 @@ export declare class DhtNodeRpcClient implements IDhtNodeRpcClient, ServiceInfo
94
94
  */
95
95
  export interface IRouterRpcClient {
96
96
  /**
97
- * @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
97
+ * @generated from protobuf rpc: routeMessage
98
98
  */
99
99
  routeMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
100
100
  /**
101
- * @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
101
+ * @generated from protobuf rpc: forwardMessage
102
102
  */
103
103
  forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
104
104
  }
@@ -114,11 +114,11 @@ export declare class RouterRpcClient implements IRouterRpcClient, ServiceInfo {
114
114
  };
115
115
  constructor(_transport: RpcTransport);
116
116
  /**
117
- * @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
117
+ * @generated from protobuf rpc: routeMessage
118
118
  */
119
119
  routeMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
120
120
  /**
121
- * @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
121
+ * @generated from protobuf rpc: forwardMessage
122
122
  */
123
123
  forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
124
124
  }
@@ -127,7 +127,7 @@ export declare class RouterRpcClient implements IRouterRpcClient, ServiceInfo {
127
127
  */
128
128
  export interface IRecursiveOperationRpcClient {
129
129
  /**
130
- * @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
130
+ * @generated from protobuf rpc: routeRequest
131
131
  */
132
132
  routeRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
133
133
  }
@@ -143,7 +143,7 @@ export declare class RecursiveOperationRpcClient implements IRecursiveOperationR
143
143
  };
144
144
  constructor(_transport: RpcTransport);
145
145
  /**
146
- * @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
146
+ * @generated from protobuf rpc: routeRequest
147
147
  */
148
148
  routeRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
149
149
  }
@@ -152,11 +152,11 @@ export declare class RecursiveOperationRpcClient implements IRecursiveOperationR
152
152
  */
153
153
  export interface IStoreRpcClient {
154
154
  /**
155
- * @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
155
+ * @generated from protobuf rpc: storeData
156
156
  */
157
157
  storeData(input: StoreDataRequest, options?: RpcOptions): UnaryCall<StoreDataRequest, StoreDataResponse>;
158
158
  /**
159
- * @generated from protobuf rpc: replicateData(dht.ReplicateDataRequest) returns (google.protobuf.Empty);
159
+ * @generated from protobuf rpc: replicateData
160
160
  */
161
161
  replicateData(input: ReplicateDataRequest, options?: RpcOptions): UnaryCall<ReplicateDataRequest, Empty>;
162
162
  }
@@ -172,11 +172,11 @@ export declare class StoreRpcClient implements IStoreRpcClient, ServiceInfo {
172
172
  };
173
173
  constructor(_transport: RpcTransport);
174
174
  /**
175
- * @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
175
+ * @generated from protobuf rpc: storeData
176
176
  */
177
177
  storeData(input: StoreDataRequest, options?: RpcOptions): UnaryCall<StoreDataRequest, StoreDataResponse>;
178
178
  /**
179
- * @generated from protobuf rpc: replicateData(dht.ReplicateDataRequest) returns (google.protobuf.Empty);
179
+ * @generated from protobuf rpc: replicateData
180
180
  */
181
181
  replicateData(input: ReplicateDataRequest, options?: RpcOptions): UnaryCall<ReplicateDataRequest, Empty>;
182
182
  }
@@ -185,7 +185,7 @@ export declare class StoreRpcClient implements IStoreRpcClient, ServiceInfo {
185
185
  */
186
186
  export interface IRecursiveOperationSessionRpcClient {
187
187
  /**
188
- * @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
188
+ * @generated from protobuf rpc: sendResponse
189
189
  */
190
190
  sendResponse(input: RecursiveOperationResponse, options?: RpcOptions): UnaryCall<RecursiveOperationResponse, Empty>;
191
191
  }
@@ -201,7 +201,7 @@ export declare class RecursiveOperationSessionRpcClient implements IRecursiveOpe
201
201
  };
202
202
  constructor(_transport: RpcTransport);
203
203
  /**
204
- * @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
204
+ * @generated from protobuf rpc: sendResponse
205
205
  */
206
206
  sendResponse(input: RecursiveOperationResponse, options?: RpcOptions): UnaryCall<RecursiveOperationResponse, Empty>;
207
207
  }
@@ -210,7 +210,7 @@ export declare class RecursiveOperationSessionRpcClient implements IRecursiveOpe
210
210
  */
211
211
  export interface IWebsocketClientConnectorRpcClient {
212
212
  /**
213
- * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
213
+ * @generated from protobuf rpc: requestConnection
214
214
  */
215
215
  requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, Empty>;
216
216
  }
@@ -226,7 +226,7 @@ export declare class WebsocketClientConnectorRpcClient implements IWebsocketClie
226
226
  };
227
227
  constructor(_transport: RpcTransport);
228
228
  /**
229
- * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
229
+ * @generated from protobuf rpc: requestConnection
230
230
  */
231
231
  requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, Empty>;
232
232
  }
@@ -235,19 +235,19 @@ export declare class WebsocketClientConnectorRpcClient implements IWebsocketClie
235
235
  */
236
236
  export interface IWebrtcConnectorRpcClient {
237
237
  /**
238
- * @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
238
+ * @generated from protobuf rpc: requestConnection
239
239
  */
240
240
  requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty>;
241
241
  /**
242
- * @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
242
+ * @generated from protobuf rpc: rtcOffer
243
243
  */
244
244
  rtcOffer(input: RtcOffer, options?: RpcOptions): UnaryCall<RtcOffer, Empty>;
245
245
  /**
246
- * @generated from protobuf rpc: rtcAnswer(dht.RtcAnswer) returns (google.protobuf.Empty);
246
+ * @generated from protobuf rpc: rtcAnswer
247
247
  */
248
248
  rtcAnswer(input: RtcAnswer, options?: RpcOptions): UnaryCall<RtcAnswer, Empty>;
249
249
  /**
250
- * @generated from protobuf rpc: iceCandidate(dht.IceCandidate) returns (google.protobuf.Empty);
250
+ * @generated from protobuf rpc: iceCandidate
251
251
  */
252
252
  iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
253
253
  }
@@ -263,19 +263,19 @@ export declare class WebrtcConnectorRpcClient implements IWebrtcConnectorRpcClie
263
263
  };
264
264
  constructor(_transport: RpcTransport);
265
265
  /**
266
- * @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
266
+ * @generated from protobuf rpc: requestConnection
267
267
  */
268
268
  requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty>;
269
269
  /**
270
- * @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
270
+ * @generated from protobuf rpc: rtcOffer
271
271
  */
272
272
  rtcOffer(input: RtcOffer, options?: RpcOptions): UnaryCall<RtcOffer, Empty>;
273
273
  /**
274
- * @generated from protobuf rpc: rtcAnswer(dht.RtcAnswer) returns (google.protobuf.Empty);
274
+ * @generated from protobuf rpc: rtcAnswer
275
275
  */
276
276
  rtcAnswer(input: RtcAnswer, options?: RpcOptions): UnaryCall<RtcAnswer, Empty>;
277
277
  /**
278
- * @generated from protobuf rpc: iceCandidate(dht.IceCandidate) returns (google.protobuf.Empty);
278
+ * @generated from protobuf rpc: iceCandidate
279
279
  */
280
280
  iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
281
281
  }
@@ -284,19 +284,19 @@ export declare class WebrtcConnectorRpcClient implements IWebrtcConnectorRpcClie
284
284
  */
285
285
  export interface IConnectionLockRpcClient {
286
286
  /**
287
- * @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
287
+ * @generated from protobuf rpc: lockRequest
288
288
  */
289
289
  lockRequest(input: LockRequest, options?: RpcOptions): UnaryCall<LockRequest, LockResponse>;
290
290
  /**
291
- * @generated from protobuf rpc: unlockRequest(dht.UnlockRequest) returns (google.protobuf.Empty);
291
+ * @generated from protobuf rpc: unlockRequest
292
292
  */
293
293
  unlockRequest(input: UnlockRequest, options?: RpcOptions): UnaryCall<UnlockRequest, Empty>;
294
294
  /**
295
- * @generated from protobuf rpc: gracefulDisconnect(dht.DisconnectNotice) returns (google.protobuf.Empty);
295
+ * @generated from protobuf rpc: gracefulDisconnect
296
296
  */
297
297
  gracefulDisconnect(input: DisconnectNotice, options?: RpcOptions): UnaryCall<DisconnectNotice, Empty>;
298
298
  /**
299
- * @generated from protobuf rpc: setPrivate(dht.SetPrivateRequest) returns (google.protobuf.Empty);
299
+ * @generated from protobuf rpc: setPrivate
300
300
  */
301
301
  setPrivate(input: SetPrivateRequest, options?: RpcOptions): UnaryCall<SetPrivateRequest, Empty>;
302
302
  }
@@ -312,19 +312,19 @@ export declare class ConnectionLockRpcClient implements IConnectionLockRpcClient
312
312
  };
313
313
  constructor(_transport: RpcTransport);
314
314
  /**
315
- * @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
315
+ * @generated from protobuf rpc: lockRequest
316
316
  */
317
317
  lockRequest(input: LockRequest, options?: RpcOptions): UnaryCall<LockRequest, LockResponse>;
318
318
  /**
319
- * @generated from protobuf rpc: unlockRequest(dht.UnlockRequest) returns (google.protobuf.Empty);
319
+ * @generated from protobuf rpc: unlockRequest
320
320
  */
321
321
  unlockRequest(input: UnlockRequest, options?: RpcOptions): UnaryCall<UnlockRequest, Empty>;
322
322
  /**
323
- * @generated from protobuf rpc: gracefulDisconnect(dht.DisconnectNotice) returns (google.protobuf.Empty);
323
+ * @generated from protobuf rpc: gracefulDisconnect
324
324
  */
325
325
  gracefulDisconnect(input: DisconnectNotice, options?: RpcOptions): UnaryCall<DisconnectNotice, Empty>;
326
326
  /**
327
- * @generated from protobuf rpc: setPrivate(dht.SetPrivateRequest) returns (google.protobuf.Empty);
327
+ * @generated from protobuf rpc: setPrivate
328
328
  */
329
329
  setPrivate(input: SetPrivateRequest, options?: RpcOptions): UnaryCall<SetPrivateRequest, Empty>;
330
330
  }
@@ -333,15 +333,15 @@ export declare class ConnectionLockRpcClient implements IConnectionLockRpcClient
333
333
  */
334
334
  export interface IExternalApiRpcClient {
335
335
  /**
336
- * @generated from protobuf rpc: externalFetchData(dht.ExternalFetchDataRequest) returns (dht.ExternalFetchDataResponse);
336
+ * @generated from protobuf rpc: externalFetchData
337
337
  */
338
338
  externalFetchData(input: ExternalFetchDataRequest, options?: RpcOptions): UnaryCall<ExternalFetchDataRequest, ExternalFetchDataResponse>;
339
339
  /**
340
- * @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
340
+ * @generated from protobuf rpc: externalStoreData
341
341
  */
342
342
  externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse>;
343
343
  /**
344
- * @generated from protobuf rpc: externalFindClosestNodes(dht.ExternalFindClosestNodesRequest) returns (dht.ExternalFindClosestNodesResponse);
344
+ * @generated from protobuf rpc: externalFindClosestNodes
345
345
  */
346
346
  externalFindClosestNodes(input: ExternalFindClosestNodesRequest, options?: RpcOptions): UnaryCall<ExternalFindClosestNodesRequest, ExternalFindClosestNodesResponse>;
347
347
  }
@@ -357,15 +357,15 @@ export declare class ExternalApiRpcClient implements IExternalApiRpcClient, Serv
357
357
  };
358
358
  constructor(_transport: RpcTransport);
359
359
  /**
360
- * @generated from protobuf rpc: externalFetchData(dht.ExternalFetchDataRequest) returns (dht.ExternalFetchDataResponse);
360
+ * @generated from protobuf rpc: externalFetchData
361
361
  */
362
362
  externalFetchData(input: ExternalFetchDataRequest, options?: RpcOptions): UnaryCall<ExternalFetchDataRequest, ExternalFetchDataResponse>;
363
363
  /**
364
- * @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
364
+ * @generated from protobuf rpc: externalStoreData
365
365
  */
366
366
  externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse>;
367
367
  /**
368
- * @generated from protobuf rpc: externalFindClosestNodes(dht.ExternalFindClosestNodesRequest) returns (dht.ExternalFindClosestNodesResponse);
368
+ * @generated from protobuf rpc: externalFindClosestNodes
369
369
  */
370
370
  externalFindClosestNodes(input: ExternalFindClosestNodesRequest, options?: RpcOptions): UnaryCall<ExternalFindClosestNodesRequest, ExternalFindClosestNodesResponse>;
371
371
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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.10.0 with parameter server_generic,generate_dependencies,long_type_number
4
+ // @generated by protobuf-ts 2.11.0 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
7
7
  const DhtRpc_1 = require("./DhtRpc");
@@ -28,7 +28,7 @@ class DhtNodeRpcClient {
28
28
  /**
29
29
  * TODO rename to getClosestNeighbors (breaking change)
30
30
  *
31
- * @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
31
+ * @generated from protobuf rpc: getClosestPeers
32
32
  */
33
33
  getClosestPeers(input, options) {
34
34
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
@@ -37,21 +37,21 @@ class DhtNodeRpcClient {
37
37
  /**
38
38
  * TODO rename to getClosestRingContacts (breaking change)
39
39
  *
40
- * @generated from protobuf rpc: getClosestRingPeers(dht.ClosestRingPeersRequest) returns (dht.ClosestRingPeersResponse);
40
+ * @generated from protobuf rpc: getClosestRingPeers
41
41
  */
42
42
  getClosestRingPeers(input, options) {
43
43
  const method = this.methods[1], opt = this._transport.mergeOptions(options);
44
44
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
45
45
  }
46
46
  /**
47
- * @generated from protobuf rpc: ping(dht.PingRequest) returns (dht.PingResponse);
47
+ * @generated from protobuf rpc: ping
48
48
  */
49
49
  ping(input, options) {
50
50
  const method = this.methods[2], opt = this._transport.mergeOptions(options);
51
51
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
52
52
  }
53
53
  /**
54
- * @generated from protobuf rpc: leaveNotice(dht.LeaveNotice) returns (google.protobuf.Empty);
54
+ * @generated from protobuf rpc: leaveNotice
55
55
  */
56
56
  leaveNotice(input, options) {
57
57
  const method = this.methods[3], opt = this._transport.mergeOptions(options);
@@ -71,14 +71,14 @@ class RouterRpcClient {
71
71
  this._transport = _transport;
72
72
  }
73
73
  /**
74
- * @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
74
+ * @generated from protobuf rpc: routeMessage
75
75
  */
76
76
  routeMessage(input, options) {
77
77
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
78
78
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
79
79
  }
80
80
  /**
81
- * @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
81
+ * @generated from protobuf rpc: forwardMessage
82
82
  */
83
83
  forwardMessage(input, options) {
84
84
  const method = this.methods[1], opt = this._transport.mergeOptions(options);
@@ -98,7 +98,7 @@ class RecursiveOperationRpcClient {
98
98
  this._transport = _transport;
99
99
  }
100
100
  /**
101
- * @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
101
+ * @generated from protobuf rpc: routeRequest
102
102
  */
103
103
  routeRequest(input, options) {
104
104
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
@@ -118,14 +118,14 @@ class StoreRpcClient {
118
118
  this._transport = _transport;
119
119
  }
120
120
  /**
121
- * @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
121
+ * @generated from protobuf rpc: storeData
122
122
  */
123
123
  storeData(input, options) {
124
124
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
125
125
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
126
126
  }
127
127
  /**
128
- * @generated from protobuf rpc: replicateData(dht.ReplicateDataRequest) returns (google.protobuf.Empty);
128
+ * @generated from protobuf rpc: replicateData
129
129
  */
130
130
  replicateData(input, options) {
131
131
  const method = this.methods[1], opt = this._transport.mergeOptions(options);
@@ -145,7 +145,7 @@ class RecursiveOperationSessionRpcClient {
145
145
  this._transport = _transport;
146
146
  }
147
147
  /**
148
- * @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
148
+ * @generated from protobuf rpc: sendResponse
149
149
  */
150
150
  sendResponse(input, options) {
151
151
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
@@ -165,7 +165,7 @@ class WebsocketClientConnectorRpcClient {
165
165
  this._transport = _transport;
166
166
  }
167
167
  /**
168
- * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
168
+ * @generated from protobuf rpc: requestConnection
169
169
  */
170
170
  requestConnection(input, options) {
171
171
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
@@ -185,28 +185,28 @@ class WebrtcConnectorRpcClient {
185
185
  this._transport = _transport;
186
186
  }
187
187
  /**
188
- * @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
188
+ * @generated from protobuf rpc: requestConnection
189
189
  */
190
190
  requestConnection(input, options) {
191
191
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
192
192
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
193
193
  }
194
194
  /**
195
- * @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
195
+ * @generated from protobuf rpc: rtcOffer
196
196
  */
197
197
  rtcOffer(input, options) {
198
198
  const method = this.methods[1], opt = this._transport.mergeOptions(options);
199
199
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
200
200
  }
201
201
  /**
202
- * @generated from protobuf rpc: rtcAnswer(dht.RtcAnswer) returns (google.protobuf.Empty);
202
+ * @generated from protobuf rpc: rtcAnswer
203
203
  */
204
204
  rtcAnswer(input, options) {
205
205
  const method = this.methods[2], opt = this._transport.mergeOptions(options);
206
206
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
207
207
  }
208
208
  /**
209
- * @generated from protobuf rpc: iceCandidate(dht.IceCandidate) returns (google.protobuf.Empty);
209
+ * @generated from protobuf rpc: iceCandidate
210
210
  */
211
211
  iceCandidate(input, options) {
212
212
  const method = this.methods[3], opt = this._transport.mergeOptions(options);
@@ -226,28 +226,28 @@ class ConnectionLockRpcClient {
226
226
  this._transport = _transport;
227
227
  }
228
228
  /**
229
- * @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
229
+ * @generated from protobuf rpc: lockRequest
230
230
  */
231
231
  lockRequest(input, options) {
232
232
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
233
233
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
234
234
  }
235
235
  /**
236
- * @generated from protobuf rpc: unlockRequest(dht.UnlockRequest) returns (google.protobuf.Empty);
236
+ * @generated from protobuf rpc: unlockRequest
237
237
  */
238
238
  unlockRequest(input, options) {
239
239
  const method = this.methods[1], opt = this._transport.mergeOptions(options);
240
240
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
241
241
  }
242
242
  /**
243
- * @generated from protobuf rpc: gracefulDisconnect(dht.DisconnectNotice) returns (google.protobuf.Empty);
243
+ * @generated from protobuf rpc: gracefulDisconnect
244
244
  */
245
245
  gracefulDisconnect(input, options) {
246
246
  const method = this.methods[2], opt = this._transport.mergeOptions(options);
247
247
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
248
248
  }
249
249
  /**
250
- * @generated from protobuf rpc: setPrivate(dht.SetPrivateRequest) returns (google.protobuf.Empty);
250
+ * @generated from protobuf rpc: setPrivate
251
251
  */
252
252
  setPrivate(input, options) {
253
253
  const method = this.methods[3], opt = this._transport.mergeOptions(options);
@@ -267,21 +267,21 @@ class ExternalApiRpcClient {
267
267
  this._transport = _transport;
268
268
  }
269
269
  /**
270
- * @generated from protobuf rpc: externalFetchData(dht.ExternalFetchDataRequest) returns (dht.ExternalFetchDataResponse);
270
+ * @generated from protobuf rpc: externalFetchData
271
271
  */
272
272
  externalFetchData(input, options) {
273
273
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
274
274
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
275
275
  }
276
276
  /**
277
- * @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
277
+ * @generated from protobuf rpc: externalStoreData
278
278
  */
279
279
  externalStoreData(input, options) {
280
280
  const method = this.methods[1], opt = this._transport.mergeOptions(options);
281
281
  return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
282
282
  }
283
283
  /**
284
- * @generated from protobuf rpc: externalFindClosestNodes(dht.ExternalFindClosestNodesRequest) returns (dht.ExternalFindClosestNodesResponse);
284
+ * @generated from protobuf rpc: externalFindClosestNodes
285
285
  */
286
286
  externalFindClosestNodes(input, options) {
287
287
  const method = this.methods[2], opt = this._transport.mergeOptions(options);