@streamr/dht 102.0.0-beta.0 → 102.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +15 -16
- package/dist/src/connection/ConnectionManager.js +18 -8
- package/dist/src/connection/ConnectionManager.js.map +1 -1
- package/dist/src/connection/Handshaker.d.ts +1 -1
- package/dist/src/connection/Handshaker.js +9 -5
- package/dist/src/connection/Handshaker.js.map +1 -1
- package/dist/src/connection/ManagedConnection.js +17 -7
- package/dist/src/connection/ManagedConnection.js.map +1 -1
- package/dist/src/connection/connectivityChecker.js +20 -10
- package/dist/src/connection/connectivityChecker.js.map +1 -1
- package/dist/src/connection/connectivityRequestHandler.js +3 -3
- package/dist/src/connection/connectivityRequestHandler.js.map +1 -1
- package/dist/src/connection/simulator/Simulator.js +3 -2
- package/dist/src/connection/simulator/Simulator.js.map +1 -1
- package/dist/src/connection/simulator/pings.d.ts +1 -1
- package/dist/src/connection/simulator/pings.js +3 -3
- package/dist/src/connection/simulator/pings.js.map +1 -1
- package/dist/src/connection/webrtc/NodeWebrtcConnection.js +0 -2
- package/dist/src/connection/webrtc/NodeWebrtcConnection.js.map +1 -1
- package/dist/src/connection/webrtc/WebrtcConnector.js +19 -9
- package/dist/src/connection/webrtc/WebrtcConnector.js.map +1 -1
- package/dist/src/connection/webrtc/iceServerAsString.js +1 -2
- package/dist/src/connection/webrtc/iceServerAsString.js.map +1 -1
- package/dist/src/connection/websocket/AbstractWebsocketClientConnection.d.ts +0 -2
- package/dist/src/connection/websocket/WebsocketClientConnectorRpcLocal.d.ts +0 -1
- package/dist/src/connection/websocket/WebsocketServerConnection.d.ts +0 -1
- package/dist/src/connection/websocket/WebsocketServerConnector.js +28 -18
- package/dist/src/connection/websocket/WebsocketServerConnector.js.map +1 -1
- package/dist/src/dht/DhtNode.d.ts +1 -0
- package/dist/src/dht/DhtNode.js +3 -2
- package/dist/src/dht/DhtNode.js.map +1 -1
- package/dist/src/dht/DhtNodeRpcLocal.d.ts +1 -1
- package/dist/src/dht/PeerManager.d.ts +2 -1
- package/dist/src/dht/PeerManager.js +2 -1
- package/dist/src/dht/PeerManager.js.map +1 -1
- package/dist/src/dht/contact/SortedContactList.js +1 -1
- package/dist/src/dht/contact/SortedContactList.js.map +1 -1
- package/dist/src/dht/discovery/DiscoverySession.d.ts +0 -1
- package/dist/src/dht/discovery/PeerDiscovery.d.ts +0 -1
- package/dist/src/dht/discovery/RingDiscoverySession.d.ts +0 -1
- package/dist/src/dht/recursive-operation/RecursiveOperationManager.d.ts +2 -2
- package/dist/src/dht/routing/DuplicateDetector.js.map +1 -1
- package/dist/src/dht/routing/RoutingSession.js +2 -2
- package/dist/src/dht/routing/RoutingSession.js.map +1 -1
- package/dist/src/dht/routing/RoutingTablesCache.d.ts +1 -1
- package/dist/src/dht/store/LocalDataStore.js +1 -1
- package/dist/src/dht/store/LocalDataStore.js.map +1 -1
- package/dist/src/dht/store/StoreManager.d.ts +1 -1
- package/dist/src/dht/store/StoreRpcLocal.d.ts +1 -1
- package/dist/src/helpers/AddressTools.js +2 -3
- package/dist/src/helpers/AddressTools.js.map +1 -1
- package/dist/src/helpers/debugHelpers.js +2 -2
- package/dist/src/helpers/debugHelpers.js.map +1 -1
- package/dist/src/helpers/protoClasses.d.ts +1 -1
- package/dist/src/helpers/protoClasses.js.map +1 -1
- package/dist/src/helpers/protoToString.js +1 -2
- package/dist/src/helpers/protoToString.js.map +1 -1
- package/dist/src/helpers/version.d.ts +1 -1
- package/dist/src/helpers/version.js +4 -4
- package/dist/src/helpers/version.js.map +1 -1
- package/eslint.config.mjs +12 -0
- package/jest.config.ts +12 -0
- package/package.json +15 -16
- package/protos/DhtRpc.proto +6 -4
- package/src/connection/ConnectionManager.ts +2 -2
- package/src/connection/Handshaker.ts +15 -11
- package/src/connection/connectivityChecker.ts +4 -4
- package/src/connection/connectivityRequestHandler.ts +3 -3
- package/src/connection/simulator/Simulator.ts +4 -3
- package/src/connection/simulator/pings.ts +1 -1
- package/src/connection/webrtc/NodeWebrtcConnection.ts +0 -2
- package/src/connection/webrtc/WebrtcConnector.ts +3 -3
- package/src/connection/websocket/WebsocketServerConnector.ts +17 -13
- package/src/dht/DhtNode.ts +8 -3
- package/src/dht/DhtNodeRpcLocal.ts +1 -1
- package/src/dht/PeerManager.ts +4 -2
- package/src/dht/contact/SortedContactList.ts +1 -1
- package/src/dht/recursive-operation/RecursiveOperationManager.ts +1 -1
- package/src/dht/routing/DuplicateDetector.ts +1 -1
- package/src/dht/routing/RoutingSession.ts +2 -2
- package/src/dht/routing/RoutingTablesCache.ts +1 -1
- package/src/dht/store/LocalDataStore.ts +1 -1
- package/src/dht/store/StoreManager.ts +1 -1
- package/src/dht/store/StoreRpcLocal.ts +1 -1
- package/src/helpers/protoClasses.ts +1 -1
- package/src/helpers/version.ts +2 -2
- package/test/benchmark/Find.test.ts +3 -3
- package/test/benchmark/KademliaCorrectness.test.ts +2 -2
- package/test/benchmark/RingCorrectness.test.ts +3 -3
- package/test/benchmark/hybrid-network-simulation/RingContactList.test.ts +2 -2
- package/test/end-to-end/WebsocketConnectionRequest.test.ts +2 -2
- package/test/end-to-end/memory-leak.test.ts +2 -2
- package/test/integration/ConnectionLocking.test.ts +32 -22
- package/test/integration/ConnectionManager.test.ts +3 -3
- package/test/integration/ConnectivityChecking.test.ts +1 -1
- package/test/integration/DhtNode.test.ts +2 -2
- package/test/integration/GeoIpConnectivityChecking.test.ts +6 -6
- package/test/integration/Layer1-scale.test.ts +1 -1
- package/test/integration/RouteMessage.test.ts +4 -4
- package/test/integration/SimultaneousConnections.test.ts +9 -9
- package/test/integration/StoreOnDhtWithThreeNodes.test.ts +1 -1
- package/test/integration/StoreOnDhtWithTwoNodes.test.ts +3 -3
- package/test/integration/StoreRpcRemote.test.ts +1 -1
- package/test/integration/WebrtcConnectionManagement.test.ts +0 -28
- package/test/integration/WebrtcConnectorRpc.test.ts +5 -5
- package/test/integration/WebsocketConnectionManagement.test.ts +3 -3
- package/test/integration/rpc-connections-over-webrtc.test.ts +8 -43
- package/test/unit/AutoCertifierClientFacade.test.ts +6 -6
- package/test/unit/Handshaker.test.ts +1 -1
- package/test/unit/ListeningRpcCommunicator.test.ts +3 -3
- package/test/unit/PeerManager.test.ts +2 -2
- package/test/unit/RecursiveOperationSession.test.ts +2 -2
- package/test/unit/RoutingSession.test.ts +7 -0
- package/test/unit/SortedContactList.test.ts +3 -3
- package/test/unit/StoreManager.test.ts +2 -2
- package/test/unit/connectivityRequestHandler.test.ts +5 -5
- package/test/unit/customMatchers.test.ts +18 -0
- package/test/unit/getClosestNodes.test.ts +1 -1
- package/test/unit/version.test.ts +9 -9
- package/test/utils/customMatchers.ts +6 -6
- package/test/utils/topology.ts +0 -1
- package/test/utils/utils.ts +2 -2
- package/.eslintignore +0 -5
- package/.eslintrc +0 -3
- package/dist/generated/google/protobuf/any.d.ts +0 -180
- package/dist/generated/google/protobuf/any.js +0 -155
- package/dist/generated/google/protobuf/any.js.map +0 -1
- package/dist/generated/google/protobuf/empty.d.ts +0 -31
- package/dist/generated/google/protobuf/empty.js +0 -32
- package/dist/generated/google/protobuf/empty.js.map +0 -1
- package/dist/generated/google/protobuf/timestamp.d.ts +0 -155
- package/dist/generated/google/protobuf/timestamp.js +0 -136
- package/dist/generated/google/protobuf/timestamp.js.map +0 -1
- package/dist/generated/packages/dht/protos/DhtRpc.client.d.ts +0 -361
- package/dist/generated/packages/dht/protos/DhtRpc.client.js +0 -285
- package/dist/generated/packages/dht/protos/DhtRpc.client.js.map +0 -1
- package/dist/generated/packages/dht/protos/DhtRpc.d.ts +0 -991
- package/dist/generated/packages/dht/protos/DhtRpc.js +0 -675
- package/dist/generated/packages/dht/protos/DhtRpc.js.map +0 -1
- package/dist/generated/packages/dht/protos/DhtRpc.server.d.ts +0 -162
- package/dist/generated/packages/dht/protos/DhtRpc.server.js +0 -3
- package/dist/generated/packages/dht/protos/DhtRpc.server.js.map +0 -1
- package/dist/generated/packages/proto-rpc/protos/ProtoRpc.d.ts +0 -87
- package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js +0 -66
- package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js.map +0 -1
- package/generated/google/protobuf/any.ts +0 -326
- package/generated/google/protobuf/empty.ts +0 -81
- package/generated/google/protobuf/timestamp.ts +0 -287
- package/generated/packages/dht/protos/DhtRpc.client.ts +0 -419
- package/generated/packages/dht/protos/DhtRpc.server.ts +0 -165
- package/generated/packages/dht/protos/DhtRpc.ts +0 -1266
- package/generated/packages/proto-rpc/protos/ProtoRpc.ts +0 -108
- package/jest.config.js +0 -5
|
@@ -1,136 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CAAC,GAAG,OAAO,CAAC;QAClC,OAAO,GAAG,CAAC;IACf,CAAC;IACD;;OAEG;IACH,MAAM,CAAC,OAAkB;QACrB,OAAO,IAAI,IAAI,CAAC,gBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,GAAG,IAAI,GAAG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,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"}
|
|
@@ -1,361 +0,0 @@
|
|
|
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
|
-
}
|