@streamr/trackerless-network 0.0.1-tatum.6 → 0.0.1-tatum.8
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 +10 -8
- package/dist/src/NetworkNode.js +2 -2
- package/dist/src/NetworkNode.js.map +1 -1
- package/dist/src/NetworkStack.d.ts +5 -6
- package/dist/src/NetworkStack.js +27 -56
- package/dist/src/NetworkStack.js.map +1 -1
- package/dist/src/identifiers.js +2 -2
- package/dist/src/identifiers.js.map +1 -1
- package/dist/src/logic/{StreamNodeServer.d.ts → DeliveryRpcLocal.d.ts} +6 -5
- package/dist/src/logic/{StreamNodeServer.js → DeliveryRpcLocal.js} +5 -5
- package/dist/src/logic/{StreamNodeServer.js.map → DeliveryRpcLocal.js.map} +1 -1
- package/dist/src/logic/{RemoteRandomGraphNode.d.ts → DeliveryRpcRemote.d.ts} +2 -2
- package/dist/src/logic/{RemoteRandomGraphNode.js → DeliveryRpcRemote.js} +5 -5
- package/dist/src/logic/DeliveryRpcRemote.js.map +1 -0
- package/dist/src/logic/{StreamPartEntryPointDiscovery.d.ts → EntryPointDiscovery.d.ts} +10 -12
- package/dist/src/logic/{StreamPartEntryPointDiscovery.js → EntryPointDiscovery.js} +18 -40
- package/dist/src/logic/EntryPointDiscovery.js.map +1 -0
- package/dist/src/logic/Layer0Node.d.ts +14 -0
- package/dist/src/logic/{ILayer1.js → Layer0Node.js} +1 -1
- package/dist/src/logic/Layer0Node.js.map +1 -0
- package/dist/src/logic/{ILayer1.d.ts → Layer1Node.d.ts} +5 -5
- package/dist/src/logic/{ILayer0.js → Layer1Node.js} +1 -1
- package/dist/src/logic/Layer1Node.js.map +1 -0
- package/dist/src/logic/NodeList.d.ts +10 -10
- package/dist/src/logic/NodeList.js.map +1 -1
- package/dist/src/logic/RandomGraphNode.d.ts +11 -15
- package/dist/src/logic/RandomGraphNode.js +46 -45
- package/dist/src/logic/RandomGraphNode.js.map +1 -1
- package/dist/src/logic/StreamrNode.d.ts +15 -18
- package/dist/src/logic/StreamrNode.js +78 -87
- package/dist/src/logic/StreamrNode.js.map +1 -1
- package/dist/src/logic/createRandomGraphNode.d.ts +6 -1
- package/dist/src/logic/createRandomGraphNode.js +17 -23
- package/dist/src/logic/createRandomGraphNode.js.map +1 -1
- package/dist/src/logic/formStreamPartDeliveryServiceId.d.ts +2 -0
- package/dist/src/logic/formStreamPartDeliveryServiceId.js +8 -0
- package/dist/src/logic/formStreamPartDeliveryServiceId.js.map +1 -0
- package/dist/src/logic/inspect/Inspector.d.ts +3 -2
- package/dist/src/logic/inspect/Inspector.js +5 -5
- package/dist/src/logic/inspect/Inspector.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/{HandshakerServer.d.ts → HandshakeRpcLocal.d.ts} +10 -10
- package/dist/src/logic/neighbor-discovery/{HandshakerServer.js → HandshakeRpcLocal.js} +13 -13
- package/dist/src/logic/neighbor-discovery/HandshakeRpcLocal.js.map +1 -0
- package/dist/src/logic/neighbor-discovery/{RemoteHandshaker.d.ts → HandshakeRpcRemote.d.ts} +1 -1
- package/dist/src/logic/neighbor-discovery/{RemoteHandshaker.js → HandshakeRpcRemote.js} +8 -7
- package/dist/src/logic/neighbor-discovery/HandshakeRpcRemote.js.map +1 -0
- package/dist/src/logic/neighbor-discovery/Handshaker.d.ts +8 -7
- package/dist/src/logic/neighbor-discovery/Handshaker.js +23 -24
- package/dist/src/logic/neighbor-discovery/Handshaker.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborFinder.d.ts +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborFinder.js +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborFinder.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateManager.d.ts +3 -2
- package/dist/src/logic/neighbor-discovery/NeighborUpdateManager.js +5 -5
- package/dist/src/logic/neighbor-discovery/NeighborUpdateManager.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/{NeighborUpdateManagerServer.d.ts → NeighborUpdateRpcLocal.d.ts} +6 -6
- package/dist/src/logic/neighbor-discovery/{NeighborUpdateManagerServer.js → NeighborUpdateRpcLocal.js} +9 -9
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcLocal.js.map +1 -0
- package/dist/src/logic/neighbor-discovery/{RemoteNeighborUpdateManager.d.ts → NeighborUpdateRpcRemote.d.ts} +1 -1
- package/dist/src/logic/neighbor-discovery/{RemoteNeighborUpdateManager.js → NeighborUpdateRpcRemote.js} +5 -5
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcRemote.js.map +1 -0
- package/dist/src/logic/propagation/Propagation.js +2 -2
- package/dist/src/logic/propagation/Propagation.js.map +1 -1
- package/dist/src/logic/proxy/{ProxyStreamConnectionClient.d.ts → ProxyClient.d.ts} +7 -10
- package/dist/src/logic/proxy/{ProxyStreamConnectionClient.js → ProxyClient.js} +24 -22
- package/dist/src/logic/proxy/ProxyClient.js.map +1 -0
- package/dist/src/logic/proxy/{ProxyStreamConnectionServer.d.ts → ProxyConnectionRpcLocal.d.ts} +5 -5
- package/dist/src/logic/proxy/{ProxyStreamConnectionServer.js → ProxyConnectionRpcLocal.js} +6 -6
- package/dist/src/logic/proxy/ProxyConnectionRpcLocal.js.map +1 -0
- package/dist/src/logic/proxy/{RemoteProxyServer.d.ts → ProxyConnectionRpcRemote.d.ts} +1 -1
- package/dist/src/logic/proxy/{RemoteProxyServer.js → ProxyConnectionRpcRemote.js} +4 -4
- package/dist/src/logic/proxy/ProxyConnectionRpcRemote.js.map +1 -0
- package/dist/src/logic/temporary-connection/{TemporaryConnectionRpcServer.d.ts → TemporaryConnectionRpcLocal.d.ts} +5 -4
- package/dist/src/logic/temporary-connection/{TemporaryConnectionRpcServer.js → TemporaryConnectionRpcLocal.js} +6 -6
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcLocal.js.map +1 -0
- package/dist/src/logic/temporary-connection/{RemoteTemporaryConnectionRpcServer.d.ts → TemporaryConnectionRpcRemote.d.ts} +1 -1
- package/dist/src/logic/temporary-connection/{RemoteTemporaryConnectionRpcServer.js → TemporaryConnectionRpcRemote.js} +4 -4
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcRemote.js.map +1 -0
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.d.ts +10 -0
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.js +7 -0
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.js.map +1 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.d.ts +54 -118
- package/dist/src/proto/packages/dht/protos/DhtRpc.js +50 -49
- package/dist/src/proto/packages/dht/protos/DhtRpc.js.map +1 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.server.d.ts +6 -0
- package/dist/src/proto/packages/trackerless-network/protos/NetworkRpc.client.d.ts +4 -4
- package/dist/src/proto/packages/trackerless-network/protos/NetworkRpc.client.js +7 -7
- package/dist/src/proto/packages/trackerless-network/protos/NetworkRpc.client.js.map +1 -1
- package/dist/src/proto/packages/trackerless-network/protos/NetworkRpc.d.ts +10 -10
- package/dist/src/proto/packages/trackerless-network/protos/NetworkRpc.js +7 -7
- package/dist/src/proto/packages/trackerless-network/protos/NetworkRpc.js.map +1 -1
- package/dist/src/proto/packages/trackerless-network/protos/NetworkRpc.server.d.ts +2 -2
- package/dist/test/benchmark/first-message.js +16 -17
- package/dist/test/benchmark/first-message.js.map +1 -1
- package/dist/test/utils/utils.d.ts +7 -6
- package/dist/test/utils/utils.js +18 -17
- package/dist/test/utils/utils.js.map +1 -1
- package/package.json +10 -8
- package/protos/NetworkRpc.proto +5 -5
- package/src/NetworkNode.ts +2 -2
- package/src/NetworkStack.ts +31 -72
- package/src/identifiers.ts +3 -3
- package/src/logic/{StreamNodeServer.ts → DeliveryRpcLocal.ts} +8 -7
- package/src/logic/{RemoteRandomGraphNode.ts → DeliveryRpcRemote.ts} +3 -3
- package/src/logic/{StreamPartEntryPointDiscovery.ts → EntryPointDiscovery.ts} +24 -48
- package/src/logic/Layer0Node.ts +15 -0
- package/src/logic/{ILayer1.ts → Layer1Node.ts} +5 -5
- package/src/logic/NodeList.ts +12 -12
- package/src/logic/RandomGraphNode.ts +73 -74
- package/src/logic/StreamrNode.ts +90 -103
- package/src/logic/createRandomGraphNode.ts +28 -26
- package/src/logic/formStreamPartDeliveryServiceId.ts +5 -0
- package/src/logic/inspect/Inspector.ts +8 -7
- package/src/logic/neighbor-discovery/{HandshakerServer.ts → HandshakeRpcLocal.ts} +20 -20
- package/src/logic/neighbor-discovery/{RemoteHandshaker.ts → HandshakeRpcRemote.ts} +6 -5
- package/src/logic/neighbor-discovery/Handshaker.ts +38 -38
- package/src/logic/neighbor-discovery/NeighborFinder.ts +2 -2
- package/src/logic/neighbor-discovery/NeighborUpdateManager.ts +13 -10
- package/src/logic/neighbor-discovery/{NeighborUpdateManagerServer.ts → NeighborUpdateRpcLocal.ts} +15 -15
- package/src/logic/neighbor-discovery/{RemoteNeighborUpdateManager.ts → NeighborUpdateRpcRemote.ts} +2 -2
- package/src/logic/propagation/Propagation.ts +2 -2
- package/src/logic/proxy/{ProxyStreamConnectionClient.ts → ProxyClient.ts} +29 -29
- package/src/logic/proxy/{ProxyStreamConnectionServer.ts → ProxyConnectionRpcLocal.ts} +10 -11
- package/src/logic/proxy/{RemoteProxyServer.ts → ProxyConnectionRpcRemote.ts} +1 -1
- package/src/logic/temporary-connection/{TemporaryConnectionRpcServer.ts → TemporaryConnectionRpcLocal.ts} +11 -10
- package/src/logic/temporary-connection/{RemoteTemporaryConnectionRpcServer.ts → TemporaryConnectionRpcRemote.ts} +1 -1
- package/src/proto/packages/dht/protos/DhtRpc.client.ts +13 -0
- package/src/proto/packages/dht/protos/DhtRpc.server.ts +6 -0
- package/src/proto/packages/dht/protos/DhtRpc.ts +88 -166
- package/src/proto/packages/trackerless-network/protos/NetworkRpc.client.ts +8 -8
- package/src/proto/packages/trackerless-network/protos/NetworkRpc.server.ts +2 -2
- package/src/proto/packages/trackerless-network/protos/NetworkRpc.ts +14 -14
- package/test/benchmark/first-message.ts +19 -20
- package/test/end-to-end/inspect.test.ts +12 -12
- package/test/end-to-end/proxy-and-full-node.test.ts +17 -18
- package/test/end-to-end/proxy-connections.test.ts +9 -11
- package/test/end-to-end/proxy-key-exchange.test.ts +12 -13
- package/test/end-to-end/random-graph-with-real-connections.test.ts +27 -22
- package/test/end-to-end/webrtc-full-node-network.test.ts +8 -8
- package/test/end-to-end/websocket-full-node-network.test.ts +8 -10
- package/test/integration/{RemoteRandomGraphNode.test.ts → DeliveryRpcRemote.test.ts} +17 -14
- package/test/integration/{RemoteHandshaker.test.ts → HandshakeRpcRemote.test.ts} +10 -9
- package/test/integration/Handshakes.test.ts +23 -20
- package/test/integration/Inspect.test.ts +4 -3
- package/test/integration/{RemoteNeighborUpdateManager.test.ts → NeighborUpdateRpcRemote.test.ts} +12 -10
- package/test/integration/NetworkNode.test.ts +9 -8
- package/test/integration/NetworkRpc.test.ts +5 -7
- package/test/integration/NetworkStack.test.ts +13 -15
- package/test/integration/Propagation.test.ts +14 -13
- package/test/integration/RandomGraphNode-Layer1Node-Latencies.test.ts +23 -20
- package/test/integration/RandomGraphNode-Layer1Node.test.ts +30 -29
- package/test/integration/StreamrNode.test.ts +16 -13
- package/test/integration/joining-streams-on-offline-peers.test.ts +16 -18
- package/test/integration/stream-without-default-entrypoints.test.ts +12 -14
- package/test/unit/{StreamNodeServer.test.ts → DeliveryRpcLocal.test.ts} +8 -8
- package/test/unit/{StreamPartEntrypointDiscovery.test.ts → EntrypointDiscovery.test.ts} +27 -44
- package/test/unit/{HandshakerServer.test.ts → HandshakeRpcLocal.test.ts} +26 -24
- package/test/unit/Handshaker.test.ts +10 -8
- package/test/unit/Inspector.test.ts +4 -3
- package/test/unit/NeighborFinder.test.ts +5 -5
- package/test/unit/NodeList.test.ts +22 -13
- package/test/unit/{RemoteProxyServer.test.ts → ProxyConnectionRpcRemote.test.ts} +4 -4
- package/test/unit/RandomGraphNode.test.ts +15 -13
- package/test/unit/StreamMessageTranslator.test.ts +10 -9
- package/test/unit/StreamrNode.test.ts +10 -10
- package/test/utils/mock/{MockLayer0.ts → MockLayer0Node.ts} +23 -26
- package/test/utils/mock/{MockLayer1.ts → MockLayer1Node.ts} +5 -10
- package/test/utils/mock/MockNeighborFinder.ts +1 -2
- package/test/utils/mock/MockNeighborUpdateManager.ts +1 -2
- package/test/utils/mock/Transport.ts +2 -2
- package/test/utils/utils.ts +18 -16
- package/dist/src/logic/ILayer0.d.ts +0 -13
- package/dist/src/logic/ILayer0.js.map +0 -1
- package/dist/src/logic/ILayer1.js.map +0 -1
- package/dist/src/logic/RemoteRandomGraphNode.js.map +0 -1
- package/dist/src/logic/StreamPartEntryPointDiscovery.js.map +0 -1
- package/dist/src/logic/neighbor-discovery/HandshakerServer.js.map +0 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateManagerServer.js.map +0 -1
- package/dist/src/logic/neighbor-discovery/RemoteHandshaker.js.map +0 -1
- package/dist/src/logic/neighbor-discovery/RemoteNeighborUpdateManager.js.map +0 -1
- package/dist/src/logic/proxy/ProxyStreamConnectionClient.js.map +0 -1
- package/dist/src/logic/proxy/ProxyStreamConnectionServer.js.map +0 -1
- package/dist/src/logic/proxy/RemoteProxyServer.js.map +0 -1
- package/dist/src/logic/temporary-connection/RemoteTemporaryConnectionRpcServer.js.map +0 -1
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcServer.js.map +0 -1
- package/src/logic/ILayer0.ts +0 -14
|
@@ -2,25 +2,26 @@ import { ServerCallContext } from '@protobuf-ts/runtime-rpc'
|
|
|
2
2
|
import { TemporaryConnectionRequest, TemporaryConnectionResponse } from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
3
3
|
import { ITemporaryConnectionRpc } from '../../proto/packages/trackerless-network/protos/NetworkRpc.server'
|
|
4
4
|
import { DhtCallContext, ListeningRpcCommunicator } from '@streamr/dht'
|
|
5
|
-
import {
|
|
5
|
+
import { DeliveryRpcClient } from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
6
6
|
import { NodeList } from '../NodeList'
|
|
7
7
|
import { toProtoRpcClient } from '@streamr/proto-rpc'
|
|
8
|
-
import {
|
|
8
|
+
import { DeliveryRpcRemote } from '../DeliveryRpcRemote'
|
|
9
9
|
import { PeerDescriptor } from '../../proto/packages/dht/protos/DhtRpc'
|
|
10
10
|
import { getNodeIdFromPeerDescriptor } from '../../identifiers'
|
|
11
|
+
import { StreamPartID } from '@streamr/protocol'
|
|
11
12
|
|
|
12
|
-
interface
|
|
13
|
-
|
|
13
|
+
interface TemporaryConnectionRpcLocalConfig {
|
|
14
|
+
streamPartId: StreamPartID
|
|
14
15
|
rpcCommunicator: ListeningRpcCommunicator
|
|
15
16
|
ownPeerDescriptor: PeerDescriptor
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
export class
|
|
19
|
+
export class TemporaryConnectionRpcLocal implements ITemporaryConnectionRpc {
|
|
19
20
|
|
|
20
|
-
private readonly config:
|
|
21
|
+
private readonly config: TemporaryConnectionRpcLocalConfig
|
|
21
22
|
private readonly temporaryNodes: NodeList
|
|
22
23
|
|
|
23
|
-
constructor(config:
|
|
24
|
+
constructor(config: TemporaryConnectionRpcLocalConfig) {
|
|
24
25
|
this.config = config
|
|
25
26
|
this.temporaryNodes = new NodeList(getNodeIdFromPeerDescriptor(config.ownPeerDescriptor), 10)
|
|
26
27
|
}
|
|
@@ -38,11 +39,11 @@ export class TemporaryConnectionRpcServer implements ITemporaryConnectionRpc {
|
|
|
38
39
|
context: ServerCallContext
|
|
39
40
|
): Promise<TemporaryConnectionResponse> {
|
|
40
41
|
const sender = (context as DhtCallContext).incomingSourceDescriptor!
|
|
41
|
-
const remote = new
|
|
42
|
+
const remote = new DeliveryRpcRemote(
|
|
42
43
|
this.config.ownPeerDescriptor,
|
|
43
44
|
sender,
|
|
44
|
-
this.config.
|
|
45
|
-
toProtoRpcClient(new
|
|
45
|
+
this.config.streamPartId,
|
|
46
|
+
toProtoRpcClient(new DeliveryRpcClient(this.config.rpcCommunicator.getRpcClientTransport()))
|
|
46
47
|
)
|
|
47
48
|
this.temporaryNodes.add(remote)
|
|
48
49
|
return {
|
|
@@ -5,7 +5,7 @@ import { ITemporaryConnectionRpcClient } from '../../proto/packages/trackerless-
|
|
|
5
5
|
|
|
6
6
|
const logger = new Logger(module)
|
|
7
7
|
|
|
8
|
-
export class
|
|
8
|
+
export class TemporaryConnectionRpcRemote extends Remote<ITemporaryConnectionRpcClient> {
|
|
9
9
|
|
|
10
10
|
async openConnection(): Promise<boolean> {
|
|
11
11
|
try {
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
4
|
import { ExternalApiService } from "./DhtRpc";
|
|
5
|
+
import type { ExternalStoreDataResponse } from "./DhtRpc";
|
|
6
|
+
import type { ExternalStoreDataRequest } from "./DhtRpc";
|
|
5
7
|
import type { FindDataResponse } from "./DhtRpc";
|
|
6
8
|
import type { FindDataRequest } from "./DhtRpc";
|
|
7
9
|
import { ConnectionLocker } from "./DhtRpc";
|
|
@@ -353,6 +355,10 @@ export interface IExternalApiServiceClient {
|
|
|
353
355
|
* @generated from protobuf rpc: findData(dht.FindDataRequest) returns (dht.FindDataResponse);
|
|
354
356
|
*/
|
|
355
357
|
findData(input: FindDataRequest, options?: RpcOptions): UnaryCall<FindDataRequest, FindDataResponse>;
|
|
358
|
+
/**
|
|
359
|
+
* @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
|
|
360
|
+
*/
|
|
361
|
+
externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse>;
|
|
356
362
|
}
|
|
357
363
|
/**
|
|
358
364
|
* @generated from protobuf service dht.ExternalApiService
|
|
@@ -370,4 +376,11 @@ export class ExternalApiServiceClient implements IExternalApiServiceClient, Serv
|
|
|
370
376
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
371
377
|
return stackIntercept<FindDataRequest, FindDataResponse>("unary", this._transport, method, opt, input);
|
|
372
378
|
}
|
|
379
|
+
/**
|
|
380
|
+
* @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
|
|
381
|
+
*/
|
|
382
|
+
externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse> {
|
|
383
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
384
|
+
return stackIntercept<ExternalStoreDataRequest, ExternalStoreDataResponse>("unary", this._transport, method, opt, input);
|
|
385
|
+
}
|
|
373
386
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// @generated by protobuf-ts 2.9.1 with parameter server_generic,generate_dependencies,long_type_number
|
|
2
2
|
// @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
|
|
3
3
|
// tslint:disable
|
|
4
|
+
import { ExternalStoreDataResponse } from "./DhtRpc";
|
|
5
|
+
import { ExternalStoreDataRequest } from "./DhtRpc";
|
|
4
6
|
import { FindDataResponse } from "./DhtRpc";
|
|
5
7
|
import { FindDataRequest } from "./DhtRpc";
|
|
6
8
|
import { DisconnectNoticeResponse } from "./DhtRpc";
|
|
@@ -145,4 +147,8 @@ export interface IExternalApiService<T = ServerCallContext> {
|
|
|
145
147
|
* @generated from protobuf rpc: findData(dht.FindDataRequest) returns (dht.FindDataResponse);
|
|
146
148
|
*/
|
|
147
149
|
findData(request: FindDataRequest, context: T): Promise<FindDataResponse>;
|
|
150
|
+
/**
|
|
151
|
+
* @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
|
|
152
|
+
*/
|
|
153
|
+
externalStoreData(request: ExternalStoreDataRequest, context: T): Promise<ExternalStoreDataResponse>;
|
|
148
154
|
}
|
|
@@ -39,6 +39,28 @@ export interface StoreDataResponse {
|
|
|
39
39
|
*/
|
|
40
40
|
error: string;
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf message dht.ExternalStoreDataRequest
|
|
44
|
+
*/
|
|
45
|
+
export interface ExternalStoreDataRequest {
|
|
46
|
+
/**
|
|
47
|
+
* @generated from protobuf field: bytes key = 1;
|
|
48
|
+
*/
|
|
49
|
+
key: Uint8Array;
|
|
50
|
+
/**
|
|
51
|
+
* @generated from protobuf field: google.protobuf.Any data = 2;
|
|
52
|
+
*/
|
|
53
|
+
data?: Any;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @generated from protobuf message dht.ExternalStoreDataResponse
|
|
57
|
+
*/
|
|
58
|
+
export interface ExternalStoreDataResponse {
|
|
59
|
+
/**
|
|
60
|
+
* @generated from protobuf field: repeated dht.PeerDescriptor storers = 1;
|
|
61
|
+
*/
|
|
62
|
+
storers: PeerDescriptor[];
|
|
63
|
+
}
|
|
42
64
|
/**
|
|
43
65
|
* @generated from protobuf message dht.MigrateDataRequest
|
|
44
66
|
*/
|
|
@@ -231,10 +253,6 @@ export interface PeerDescriptor {
|
|
|
231
253
|
* @generated from protobuf field: optional uint32 region = 7;
|
|
232
254
|
*/
|
|
233
255
|
region?: number;
|
|
234
|
-
/**
|
|
235
|
-
* @generated from protobuf field: optional string nodeName = 8;
|
|
236
|
-
*/
|
|
237
|
-
nodeName?: string;
|
|
238
256
|
}
|
|
239
257
|
/**
|
|
240
258
|
* @generated from protobuf message dht.ConnectivityMethod
|
|
@@ -291,19 +309,11 @@ export interface RouteMessageWrapper {
|
|
|
291
309
|
*/
|
|
292
310
|
export interface RouteMessageAck {
|
|
293
311
|
/**
|
|
294
|
-
* @generated from protobuf field:
|
|
295
|
-
*/
|
|
296
|
-
sourcePeer?: PeerDescriptor;
|
|
297
|
-
/**
|
|
298
|
-
* @generated from protobuf field: string requestId = 2;
|
|
312
|
+
* @generated from protobuf field: string requestId = 1;
|
|
299
313
|
*/
|
|
300
314
|
requestId: string;
|
|
301
315
|
/**
|
|
302
|
-
* @generated from protobuf field:
|
|
303
|
-
*/
|
|
304
|
-
destinationPeer?: PeerDescriptor;
|
|
305
|
-
/**
|
|
306
|
-
* @generated from protobuf field: string error = 4;
|
|
316
|
+
* @generated from protobuf field: string error = 2;
|
|
307
317
|
*/
|
|
308
318
|
error: string;
|
|
309
319
|
}
|
|
@@ -356,11 +366,7 @@ export interface HandshakeRequest {
|
|
|
356
366
|
*/
|
|
357
367
|
sourceId: Uint8Array;
|
|
358
368
|
/**
|
|
359
|
-
* @generated from protobuf field:
|
|
360
|
-
*/
|
|
361
|
-
protocolVersion: string;
|
|
362
|
-
/**
|
|
363
|
-
* @generated from protobuf field: dht.PeerDescriptor peerDescriptor = 3;
|
|
369
|
+
* @generated from protobuf field: dht.PeerDescriptor peerDescriptor = 2;
|
|
364
370
|
*/
|
|
365
371
|
peerDescriptor?: PeerDescriptor;
|
|
366
372
|
}
|
|
@@ -373,15 +379,11 @@ export interface HandshakeResponse {
|
|
|
373
379
|
*/
|
|
374
380
|
sourceId: Uint8Array;
|
|
375
381
|
/**
|
|
376
|
-
* @generated from protobuf field:
|
|
377
|
-
*/
|
|
378
|
-
protocolVersion: string;
|
|
379
|
-
/**
|
|
380
|
-
* @generated from protobuf field: dht.PeerDescriptor peerDescriptor = 3;
|
|
382
|
+
* @generated from protobuf field: dht.PeerDescriptor peerDescriptor = 2;
|
|
381
383
|
*/
|
|
382
384
|
peerDescriptor?: PeerDescriptor;
|
|
383
385
|
/**
|
|
384
|
-
* @generated from protobuf field: optional string responseError =
|
|
386
|
+
* @generated from protobuf field: optional string responseError = 3;
|
|
385
387
|
*/
|
|
386
388
|
responseError?: string;
|
|
387
389
|
}
|
|
@@ -461,19 +463,11 @@ export interface Message {
|
|
|
461
463
|
*/
|
|
462
464
|
export interface WebSocketConnectionRequest {
|
|
463
465
|
/**
|
|
464
|
-
* @generated from protobuf field:
|
|
465
|
-
*/
|
|
466
|
-
requester?: PeerDescriptor;
|
|
467
|
-
/**
|
|
468
|
-
* @generated from protobuf field: dht.PeerDescriptor target = 2;
|
|
469
|
-
*/
|
|
470
|
-
target?: PeerDescriptor;
|
|
471
|
-
/**
|
|
472
|
-
* @generated from protobuf field: string ip = 3;
|
|
466
|
+
* @generated from protobuf field: string ip = 1;
|
|
473
467
|
*/
|
|
474
468
|
ip: string;
|
|
475
469
|
/**
|
|
476
|
-
* @generated from protobuf field: uint32 port =
|
|
470
|
+
* @generated from protobuf field: uint32 port = 2;
|
|
477
471
|
*/
|
|
478
472
|
port: number;
|
|
479
473
|
}
|
|
@@ -482,19 +476,11 @@ export interface WebSocketConnectionRequest {
|
|
|
482
476
|
*/
|
|
483
477
|
export interface WebSocketConnectionResponse {
|
|
484
478
|
/**
|
|
485
|
-
* @generated from protobuf field:
|
|
486
|
-
*/
|
|
487
|
-
requester?: PeerDescriptor;
|
|
488
|
-
/**
|
|
489
|
-
* @generated from protobuf field: dht.PeerDescriptor target = 2;
|
|
490
|
-
*/
|
|
491
|
-
target?: PeerDescriptor;
|
|
492
|
-
/**
|
|
493
|
-
* @generated from protobuf field: bool accepted = 3;
|
|
479
|
+
* @generated from protobuf field: bool accepted = 1;
|
|
494
480
|
*/
|
|
495
481
|
accepted: boolean;
|
|
496
482
|
/**
|
|
497
|
-
* @generated from protobuf field: optional string reason =
|
|
483
|
+
* @generated from protobuf field: optional string reason = 2;
|
|
498
484
|
*/
|
|
499
485
|
reason?: string;
|
|
500
486
|
}
|
|
@@ -505,15 +491,7 @@ export interface WebSocketConnectionResponse {
|
|
|
505
491
|
*/
|
|
506
492
|
export interface WebRtcConnectionRequest {
|
|
507
493
|
/**
|
|
508
|
-
* @generated from protobuf field:
|
|
509
|
-
*/
|
|
510
|
-
requester?: PeerDescriptor;
|
|
511
|
-
/**
|
|
512
|
-
* @generated from protobuf field: dht.PeerDescriptor target = 2;
|
|
513
|
-
*/
|
|
514
|
-
target?: PeerDescriptor;
|
|
515
|
-
/**
|
|
516
|
-
* @generated from protobuf field: string connectionId = 3;
|
|
494
|
+
* @generated from protobuf field: string connectionId = 1;
|
|
517
495
|
*/
|
|
518
496
|
connectionId: string;
|
|
519
497
|
}
|
|
@@ -522,19 +500,11 @@ export interface WebRtcConnectionRequest {
|
|
|
522
500
|
*/
|
|
523
501
|
export interface RtcOffer {
|
|
524
502
|
/**
|
|
525
|
-
* @generated from protobuf field:
|
|
526
|
-
*/
|
|
527
|
-
requester?: PeerDescriptor;
|
|
528
|
-
/**
|
|
529
|
-
* @generated from protobuf field: dht.PeerDescriptor target = 2;
|
|
530
|
-
*/
|
|
531
|
-
target?: PeerDescriptor;
|
|
532
|
-
/**
|
|
533
|
-
* @generated from protobuf field: string description = 3;
|
|
503
|
+
* @generated from protobuf field: string description = 1;
|
|
534
504
|
*/
|
|
535
505
|
description: string;
|
|
536
506
|
/**
|
|
537
|
-
* @generated from protobuf field: string connectionId =
|
|
507
|
+
* @generated from protobuf field: string connectionId = 2;
|
|
538
508
|
*/
|
|
539
509
|
connectionId: string;
|
|
540
510
|
}
|
|
@@ -543,19 +513,11 @@ export interface RtcOffer {
|
|
|
543
513
|
*/
|
|
544
514
|
export interface RtcAnswer {
|
|
545
515
|
/**
|
|
546
|
-
* @generated from protobuf field:
|
|
547
|
-
*/
|
|
548
|
-
requester?: PeerDescriptor;
|
|
549
|
-
/**
|
|
550
|
-
* @generated from protobuf field: dht.PeerDescriptor target = 2;
|
|
551
|
-
*/
|
|
552
|
-
target?: PeerDescriptor;
|
|
553
|
-
/**
|
|
554
|
-
* @generated from protobuf field: string description = 3;
|
|
516
|
+
* @generated from protobuf field: string description = 1;
|
|
555
517
|
*/
|
|
556
518
|
description: string;
|
|
557
519
|
/**
|
|
558
|
-
* @generated from protobuf field: string connectionId =
|
|
520
|
+
* @generated from protobuf field: string connectionId = 2;
|
|
559
521
|
*/
|
|
560
522
|
connectionId: string;
|
|
561
523
|
}
|
|
@@ -575,29 +537,13 @@ export interface IceCandidate {
|
|
|
575
537
|
* @generated from protobuf field: string connectionId = 3;
|
|
576
538
|
*/
|
|
577
539
|
connectionId: string;
|
|
578
|
-
/**
|
|
579
|
-
* @generated from protobuf field: dht.PeerDescriptor requester = 4;
|
|
580
|
-
*/
|
|
581
|
-
requester?: PeerDescriptor;
|
|
582
|
-
/**
|
|
583
|
-
* @generated from protobuf field: dht.PeerDescriptor target = 5;
|
|
584
|
-
*/
|
|
585
|
-
target?: PeerDescriptor;
|
|
586
540
|
}
|
|
587
541
|
/**
|
|
588
542
|
* @generated from protobuf message dht.LockRequest
|
|
589
543
|
*/
|
|
590
544
|
export interface LockRequest {
|
|
591
545
|
/**
|
|
592
|
-
* @generated from protobuf field: string
|
|
593
|
-
*/
|
|
594
|
-
protocolVersion: string;
|
|
595
|
-
/**
|
|
596
|
-
* @generated from protobuf field: dht.PeerDescriptor peerDescriptor = 2;
|
|
597
|
-
*/
|
|
598
|
-
peerDescriptor?: PeerDescriptor;
|
|
599
|
-
/**
|
|
600
|
-
* @generated from protobuf field: string serviceId = 3;
|
|
546
|
+
* @generated from protobuf field: string serviceId = 1;
|
|
601
547
|
*/
|
|
602
548
|
serviceId: string;
|
|
603
549
|
}
|
|
@@ -606,15 +552,7 @@ export interface LockRequest {
|
|
|
606
552
|
*/
|
|
607
553
|
export interface UnlockRequest {
|
|
608
554
|
/**
|
|
609
|
-
* @generated from protobuf field: string
|
|
610
|
-
*/
|
|
611
|
-
protocolVersion: string;
|
|
612
|
-
/**
|
|
613
|
-
* @generated from protobuf field: dht.PeerDescriptor peerDescriptor = 2;
|
|
614
|
-
*/
|
|
615
|
-
peerDescriptor?: PeerDescriptor;
|
|
616
|
-
/**
|
|
617
|
-
* @generated from protobuf field: string serviceId = 3;
|
|
555
|
+
* @generated from protobuf field: string serviceId = 1;
|
|
618
556
|
*/
|
|
619
557
|
serviceId: string;
|
|
620
558
|
}
|
|
@@ -636,26 +574,14 @@ export interface LockResponse {
|
|
|
636
574
|
*/
|
|
637
575
|
export interface DisconnectNotice {
|
|
638
576
|
/**
|
|
639
|
-
* @generated from protobuf field:
|
|
640
|
-
*/
|
|
641
|
-
protocolVersion: string;
|
|
642
|
-
/**
|
|
643
|
-
* @generated from protobuf field: dht.PeerDescriptor peerDescriptor = 2;
|
|
644
|
-
*/
|
|
645
|
-
peerDescriptor?: PeerDescriptor;
|
|
646
|
-
/**
|
|
647
|
-
* @generated from protobuf field: dht.DisconnectMode disconnecMode = 3;
|
|
577
|
+
* @generated from protobuf field: dht.DisconnectMode disconnectMode = 1;
|
|
648
578
|
*/
|
|
649
|
-
|
|
579
|
+
disconnectMode: DisconnectMode;
|
|
650
580
|
}
|
|
651
581
|
/**
|
|
652
582
|
* @generated from protobuf message dht.DisconnectNoticeResponse
|
|
653
583
|
*/
|
|
654
584
|
export interface DisconnectNoticeResponse {
|
|
655
|
-
/**
|
|
656
|
-
* @generated from protobuf field: string protocolVersion = 1;
|
|
657
|
-
*/
|
|
658
|
-
protocolVersion: string;
|
|
659
585
|
}
|
|
660
586
|
/**
|
|
661
587
|
* @generated from protobuf message dht.FindDataRequest
|
|
@@ -665,10 +591,6 @@ export interface FindDataRequest {
|
|
|
665
591
|
* @generated from protobuf field: bytes kademliaId = 1;
|
|
666
592
|
*/
|
|
667
593
|
kademliaId: Uint8Array;
|
|
668
|
-
/**
|
|
669
|
-
* @generated from protobuf field: dht.PeerDescriptor requestor = 2;
|
|
670
|
-
*/
|
|
671
|
-
requestor?: PeerDescriptor;
|
|
672
594
|
}
|
|
673
595
|
/**
|
|
674
596
|
* @generated from protobuf message dht.FindDataResponse
|
|
@@ -806,6 +728,31 @@ class StoreDataResponse$Type extends MessageType$<StoreDataResponse> {
|
|
|
806
728
|
*/
|
|
807
729
|
export const StoreDataResponse = new StoreDataResponse$Type();
|
|
808
730
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
731
|
+
class ExternalStoreDataRequest$Type extends MessageType$<ExternalStoreDataRequest> {
|
|
732
|
+
constructor() {
|
|
733
|
+
super("dht.ExternalStoreDataRequest", [
|
|
734
|
+
{ no: 1, name: "key", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
735
|
+
{ no: 2, name: "data", kind: "message", T: () => Any }
|
|
736
|
+
]);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* @generated MessageType for protobuf message dht.ExternalStoreDataRequest
|
|
741
|
+
*/
|
|
742
|
+
export const ExternalStoreDataRequest = new ExternalStoreDataRequest$Type();
|
|
743
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
744
|
+
class ExternalStoreDataResponse$Type extends MessageType$<ExternalStoreDataResponse> {
|
|
745
|
+
constructor() {
|
|
746
|
+
super("dht.ExternalStoreDataResponse", [
|
|
747
|
+
{ no: 1, name: "storers", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor }
|
|
748
|
+
]);
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* @generated MessageType for protobuf message dht.ExternalStoreDataResponse
|
|
753
|
+
*/
|
|
754
|
+
export const ExternalStoreDataResponse = new ExternalStoreDataResponse$Type();
|
|
755
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
809
756
|
class MigrateDataRequest$Type extends MessageType$<MigrateDataRequest> {
|
|
810
757
|
constructor() {
|
|
811
758
|
super("dht.MigrateDataRequest", [
|
|
@@ -972,8 +919,7 @@ class PeerDescriptor$Type extends MessageType$<PeerDescriptor> {
|
|
|
972
919
|
{ no: 4, name: "tcp", kind: "message", T: () => ConnectivityMethod },
|
|
973
920
|
{ no: 5, name: "websocket", kind: "message", T: () => ConnectivityMethod },
|
|
974
921
|
{ no: 6, name: "openInternet", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
975
|
-
{ no: 7, name: "region", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }
|
|
976
|
-
{ no: 8, name: "nodeName", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
922
|
+
{ no: 7, name: "region", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ }
|
|
977
923
|
]);
|
|
978
924
|
}
|
|
979
925
|
}
|
|
@@ -1017,10 +963,8 @@ export const RouteMessageWrapper = new RouteMessageWrapper$Type();
|
|
|
1017
963
|
class RouteMessageAck$Type extends MessageType$<RouteMessageAck> {
|
|
1018
964
|
constructor() {
|
|
1019
965
|
super("dht.RouteMessageAck", [
|
|
1020
|
-
{ no: 1, name: "
|
|
1021
|
-
{ no: 2, name: "
|
|
1022
|
-
{ no: 3, name: "destinationPeer", kind: "message", T: () => PeerDescriptor },
|
|
1023
|
-
{ no: 4, name: "error", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
966
|
+
{ no: 1, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
967
|
+
{ no: 2, name: "error", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1024
968
|
]);
|
|
1025
969
|
}
|
|
1026
970
|
}
|
|
@@ -1062,8 +1006,7 @@ class HandshakeRequest$Type extends MessageType$<HandshakeRequest> {
|
|
|
1062
1006
|
constructor() {
|
|
1063
1007
|
super("dht.HandshakeRequest", [
|
|
1064
1008
|
{ no: 1, name: "sourceId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1065
|
-
{ no: 2, name: "
|
|
1066
|
-
{ no: 3, name: "peerDescriptor", kind: "message", T: () => PeerDescriptor }
|
|
1009
|
+
{ no: 2, name: "peerDescriptor", kind: "message", T: () => PeerDescriptor }
|
|
1067
1010
|
]);
|
|
1068
1011
|
}
|
|
1069
1012
|
}
|
|
@@ -1076,9 +1019,8 @@ class HandshakeResponse$Type extends MessageType$<HandshakeResponse> {
|
|
|
1076
1019
|
constructor() {
|
|
1077
1020
|
super("dht.HandshakeResponse", [
|
|
1078
1021
|
{ no: 1, name: "sourceId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1079
|
-
{ no: 2, name: "
|
|
1080
|
-
{ no: 3, name: "
|
|
1081
|
-
{ no: 4, name: "responseError", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1022
|
+
{ no: 2, name: "peerDescriptor", kind: "message", T: () => PeerDescriptor },
|
|
1023
|
+
{ no: 3, name: "responseError", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1082
1024
|
]);
|
|
1083
1025
|
}
|
|
1084
1026
|
}
|
|
@@ -1112,10 +1054,8 @@ export const Message = new Message$Type();
|
|
|
1112
1054
|
class WebSocketConnectionRequest$Type extends MessageType$<WebSocketConnectionRequest> {
|
|
1113
1055
|
constructor() {
|
|
1114
1056
|
super("dht.WebSocketConnectionRequest", [
|
|
1115
|
-
{ no: 1, name: "
|
|
1116
|
-
{ no: 2, name: "
|
|
1117
|
-
{ no: 3, name: "ip", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1118
|
-
{ no: 4, name: "port", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
1057
|
+
{ no: 1, name: "ip", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1058
|
+
{ no: 2, name: "port", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
1119
1059
|
]);
|
|
1120
1060
|
}
|
|
1121
1061
|
}
|
|
@@ -1127,10 +1067,8 @@ export const WebSocketConnectionRequest = new WebSocketConnectionRequest$Type();
|
|
|
1127
1067
|
class WebSocketConnectionResponse$Type extends MessageType$<WebSocketConnectionResponse> {
|
|
1128
1068
|
constructor() {
|
|
1129
1069
|
super("dht.WebSocketConnectionResponse", [
|
|
1130
|
-
{ no: 1, name: "
|
|
1131
|
-
{ no: 2, name: "
|
|
1132
|
-
{ no: 3, name: "accepted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1133
|
-
{ no: 4, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1070
|
+
{ no: 1, name: "accepted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1071
|
+
{ no: 2, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1134
1072
|
]);
|
|
1135
1073
|
}
|
|
1136
1074
|
}
|
|
@@ -1142,9 +1080,7 @@ export const WebSocketConnectionResponse = new WebSocketConnectionResponse$Type(
|
|
|
1142
1080
|
class WebRtcConnectionRequest$Type extends MessageType$<WebRtcConnectionRequest> {
|
|
1143
1081
|
constructor() {
|
|
1144
1082
|
super("dht.WebRtcConnectionRequest", [
|
|
1145
|
-
{ no: 1, name: "
|
|
1146
|
-
{ no: 2, name: "target", kind: "message", T: () => PeerDescriptor },
|
|
1147
|
-
{ no: 3, name: "connectionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1083
|
+
{ no: 1, name: "connectionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1148
1084
|
]);
|
|
1149
1085
|
}
|
|
1150
1086
|
}
|
|
@@ -1156,10 +1092,8 @@ export const WebRtcConnectionRequest = new WebRtcConnectionRequest$Type();
|
|
|
1156
1092
|
class RtcOffer$Type extends MessageType$<RtcOffer> {
|
|
1157
1093
|
constructor() {
|
|
1158
1094
|
super("dht.RtcOffer", [
|
|
1159
|
-
{ no: 1, name: "
|
|
1160
|
-
{ no: 2, name: "
|
|
1161
|
-
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1162
|
-
{ no: 4, name: "connectionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1095
|
+
{ no: 1, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1096
|
+
{ no: 2, name: "connectionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1163
1097
|
]);
|
|
1164
1098
|
}
|
|
1165
1099
|
}
|
|
@@ -1171,10 +1105,8 @@ export const RtcOffer = new RtcOffer$Type();
|
|
|
1171
1105
|
class RtcAnswer$Type extends MessageType$<RtcAnswer> {
|
|
1172
1106
|
constructor() {
|
|
1173
1107
|
super("dht.RtcAnswer", [
|
|
1174
|
-
{ no: 1, name: "
|
|
1175
|
-
{ no: 2, name: "
|
|
1176
|
-
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1177
|
-
{ no: 4, name: "connectionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1108
|
+
{ no: 1, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1109
|
+
{ no: 2, name: "connectionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1178
1110
|
]);
|
|
1179
1111
|
}
|
|
1180
1112
|
}
|
|
@@ -1188,9 +1120,7 @@ class IceCandidate$Type extends MessageType$<IceCandidate> {
|
|
|
1188
1120
|
super("dht.IceCandidate", [
|
|
1189
1121
|
{ no: 1, name: "candidate", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1190
1122
|
{ no: 2, name: "mid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1191
|
-
{ no: 3, name: "connectionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1192
|
-
{ no: 4, name: "requester", kind: "message", T: () => PeerDescriptor },
|
|
1193
|
-
{ no: 5, name: "target", kind: "message", T: () => PeerDescriptor }
|
|
1123
|
+
{ no: 3, name: "connectionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1194
1124
|
]);
|
|
1195
1125
|
}
|
|
1196
1126
|
}
|
|
@@ -1202,9 +1132,7 @@ export const IceCandidate = new IceCandidate$Type();
|
|
|
1202
1132
|
class LockRequest$Type extends MessageType$<LockRequest> {
|
|
1203
1133
|
constructor() {
|
|
1204
1134
|
super("dht.LockRequest", [
|
|
1205
|
-
{ no: 1, name: "
|
|
1206
|
-
{ no: 2, name: "peerDescriptor", kind: "message", T: () => PeerDescriptor },
|
|
1207
|
-
{ no: 3, name: "serviceId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1135
|
+
{ no: 1, name: "serviceId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1208
1136
|
]);
|
|
1209
1137
|
}
|
|
1210
1138
|
}
|
|
@@ -1216,9 +1144,7 @@ export const LockRequest = new LockRequest$Type();
|
|
|
1216
1144
|
class UnlockRequest$Type extends MessageType$<UnlockRequest> {
|
|
1217
1145
|
constructor() {
|
|
1218
1146
|
super("dht.UnlockRequest", [
|
|
1219
|
-
{ no: 1, name: "
|
|
1220
|
-
{ no: 2, name: "peerDescriptor", kind: "message", T: () => PeerDescriptor },
|
|
1221
|
-
{ no: 3, name: "serviceId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1147
|
+
{ no: 1, name: "serviceId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1222
1148
|
]);
|
|
1223
1149
|
}
|
|
1224
1150
|
}
|
|
@@ -1243,9 +1169,7 @@ export const LockResponse = new LockResponse$Type();
|
|
|
1243
1169
|
class DisconnectNotice$Type extends MessageType$<DisconnectNotice> {
|
|
1244
1170
|
constructor() {
|
|
1245
1171
|
super("dht.DisconnectNotice", [
|
|
1246
|
-
{ no: 1, name: "
|
|
1247
|
-
{ no: 2, name: "peerDescriptor", kind: "message", T: () => PeerDescriptor },
|
|
1248
|
-
{ no: 3, name: "disconnecMode", kind: "enum", T: () => ["dht.DisconnectMode", DisconnectMode] }
|
|
1172
|
+
{ no: 1, name: "disconnectMode", kind: "enum", T: () => ["dht.DisconnectMode", DisconnectMode] }
|
|
1249
1173
|
]);
|
|
1250
1174
|
}
|
|
1251
1175
|
}
|
|
@@ -1256,9 +1180,7 @@ export const DisconnectNotice = new DisconnectNotice$Type();
|
|
|
1256
1180
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1257
1181
|
class DisconnectNoticeResponse$Type extends MessageType$<DisconnectNoticeResponse> {
|
|
1258
1182
|
constructor() {
|
|
1259
|
-
super("dht.DisconnectNoticeResponse", [
|
|
1260
|
-
{ no: 1, name: "protocolVersion", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1261
|
-
]);
|
|
1183
|
+
super("dht.DisconnectNoticeResponse", []);
|
|
1262
1184
|
}
|
|
1263
1185
|
}
|
|
1264
1186
|
/**
|
|
@@ -1269,8 +1191,7 @@ export const DisconnectNoticeResponse = new DisconnectNoticeResponse$Type();
|
|
|
1269
1191
|
class FindDataRequest$Type extends MessageType$<FindDataRequest> {
|
|
1270
1192
|
constructor() {
|
|
1271
1193
|
super("dht.FindDataRequest", [
|
|
1272
|
-
{ no: 1, name: "kademliaId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1273
|
-
{ no: 2, name: "requestor", kind: "message", T: () => PeerDescriptor }
|
|
1194
|
+
{ no: 1, name: "kademliaId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1274
1195
|
]);
|
|
1275
1196
|
}
|
|
1276
1197
|
}
|
|
@@ -1348,5 +1269,6 @@ export const ConnectionLocker = new ServiceType("dht.ConnectionLocker", [
|
|
|
1348
1269
|
* @generated ServiceType for protobuf service dht.ExternalApiService
|
|
1349
1270
|
*/
|
|
1350
1271
|
export const ExternalApiService = new ServiceType("dht.ExternalApiService", [
|
|
1351
|
-
{ name: "findData", options: {}, I: FindDataRequest, O: FindDataResponse }
|
|
1272
|
+
{ name: "findData", options: {}, I: FindDataRequest, O: FindDataResponse },
|
|
1273
|
+
{ name: "externalStoreData", options: {}, I: ExternalStoreDataRequest, O: ExternalStoreDataResponse }
|
|
1352
1274
|
]);
|
|
@@ -15,7 +15,7 @@ import type { ProxyConnectionResponse } from "./NetworkRpc";
|
|
|
15
15
|
import type { ProxyConnectionRequest } from "./NetworkRpc";
|
|
16
16
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
17
17
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
18
|
-
import {
|
|
18
|
+
import { DeliveryRpc } from "./NetworkRpc";
|
|
19
19
|
import type { LeaveStreamPartNotice } from "./NetworkRpc";
|
|
20
20
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
21
21
|
import type { Empty } from "../../../google/protobuf/empty";
|
|
@@ -23,9 +23,9 @@ import type { StreamMessage } from "./NetworkRpc";
|
|
|
23
23
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
24
24
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
25
25
|
/**
|
|
26
|
-
* @generated from protobuf service
|
|
26
|
+
* @generated from protobuf service DeliveryRpc
|
|
27
27
|
*/
|
|
28
|
-
export interface
|
|
28
|
+
export interface IDeliveryRpcClient {
|
|
29
29
|
/**
|
|
30
30
|
* @generated from protobuf rpc: sendStreamMessage(StreamMessage) returns (google.protobuf.Empty);
|
|
31
31
|
*/
|
|
@@ -36,12 +36,12 @@ export interface INetworkRpcClient {
|
|
|
36
36
|
leaveStreamPartNotice(input: LeaveStreamPartNotice, options?: RpcOptions): UnaryCall<LeaveStreamPartNotice, Empty>;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
* @generated from protobuf service
|
|
39
|
+
* @generated from protobuf service DeliveryRpc
|
|
40
40
|
*/
|
|
41
|
-
export class
|
|
42
|
-
typeName =
|
|
43
|
-
methods =
|
|
44
|
-
options =
|
|
41
|
+
export class DeliveryRpcClient implements IDeliveryRpcClient, ServiceInfo {
|
|
42
|
+
typeName = DeliveryRpc.typeName;
|
|
43
|
+
methods = DeliveryRpc.methods;
|
|
44
|
+
options = DeliveryRpc.options;
|
|
45
45
|
constructor(private readonly _transport: RpcTransport) {
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
@@ -14,9 +14,9 @@ import { Empty } from "../../../google/protobuf/empty";
|
|
|
14
14
|
import { StreamMessage } from "./NetworkRpc";
|
|
15
15
|
import { ServerCallContext } from "@protobuf-ts/runtime-rpc";
|
|
16
16
|
/**
|
|
17
|
-
* @generated from protobuf service
|
|
17
|
+
* @generated from protobuf service DeliveryRpc
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface IDeliveryRpc<T = ServerCallContext> {
|
|
20
20
|
/**
|
|
21
21
|
* @generated from protobuf rpc: sendStreamMessage(StreamMessage) returns (google.protobuf.Empty);
|
|
22
22
|
*/
|