@streamr/trackerless-network 101.1.2 → 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/{src/proto → generated}/google/protobuf/any.d.ts +11 -4
- package/dist/generated/google/protobuf/any.js.map +1 -0
- package/dist/{src/proto → generated}/google/protobuf/empty.d.ts +0 -1
- package/dist/generated/google/protobuf/empty.js.map +1 -0
- package/dist/{src/proto → generated}/google/protobuf/timestamp.d.ts +9 -3
- package/dist/generated/google/protobuf/timestamp.js.map +1 -0
- package/dist/{src/proto → generated}/packages/dht/protos/DhtRpc.client.d.ts +9 -0
- package/dist/{src/proto → generated}/packages/dht/protos/DhtRpc.client.js +7 -0
- package/dist/generated/packages/dht/protos/DhtRpc.client.js.map +1 -0
- package/dist/{src/proto → generated}/packages/dht/protos/DhtRpc.d.ts +32 -8
- package/dist/{src/proto → generated}/packages/dht/protos/DhtRpc.js +23 -7
- package/dist/generated/packages/dht/protos/DhtRpc.js.map +1 -0
- package/dist/{src/proto → generated}/packages/dht/protos/DhtRpc.server.d.ts +5 -0
- package/dist/generated/packages/dht/protos/DhtRpc.server.js.map +1 -0
- package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js.map +1 -0
- package/dist/generated/packages/trackerless-network/protos/NetworkRpc.client.js.map +1 -0
- package/dist/{src/proto → generated}/packages/trackerless-network/protos/NetworkRpc.d.ts +29 -5
- package/dist/{src/proto → generated}/packages/trackerless-network/protos/NetworkRpc.js +17 -3
- package/dist/generated/packages/trackerless-network/protos/NetworkRpc.js.map +1 -0
- package/dist/generated/packages/trackerless-network/protos/NetworkRpc.server.js.map +1 -0
- package/dist/package.json +10 -11
- package/dist/src/NetworkNode.d.ts +8 -7
- package/dist/src/NetworkNode.js +5 -3
- package/dist/src/NetworkNode.js.map +1 -1
- package/dist/src/NetworkStack.d.ts +2 -2
- package/dist/src/NetworkStack.js +7 -6
- package/dist/src/NetworkStack.js.map +1 -1
- package/dist/src/exports.d.ts +3 -2
- package/dist/src/exports.js +3 -2
- package/dist/src/exports.js.map +1 -1
- package/dist/src/logic/ContentDeliveryLayerNode.d.ts +5 -1
- package/dist/src/logic/ContentDeliveryLayerNode.js +30 -10
- package/dist/src/logic/ContentDeliveryLayerNode.js.map +1 -1
- package/dist/src/logic/ContentDeliveryManager.d.ts +8 -3
- package/dist/src/logic/ContentDeliveryManager.js +28 -7
- package/dist/src/logic/ContentDeliveryManager.js.map +1 -1
- package/dist/src/logic/ContentDeliveryRpcLocal.d.ts +3 -3
- package/dist/src/logic/ContentDeliveryRpcLocal.js +3 -3
- package/dist/src/logic/ContentDeliveryRpcLocal.js.map +1 -1
- package/dist/src/logic/ContentDeliveryRpcRemote.d.ts +5 -2
- package/dist/src/logic/ContentDeliveryRpcRemote.js +7 -0
- package/dist/src/logic/ContentDeliveryRpcRemote.js.map +1 -1
- package/dist/src/logic/ControlLayerNode.d.ts +1 -1
- package/dist/src/logic/DiscoveryLayerNode.d.ts +3 -3
- package/dist/src/logic/DuplicateMessageDetector.js +3 -3
- package/dist/src/logic/DuplicateMessageDetector.js.map +1 -1
- package/dist/src/logic/ExternalNetworkRpc.js.map +1 -1
- package/dist/src/logic/NodeList.js +2 -2
- package/dist/src/logic/NodeList.js.map +1 -1
- package/dist/src/logic/PeerDescriptorStoreManager.d.ts +1 -1
- package/dist/src/logic/PeerDescriptorStoreManager.js +1 -2
- package/dist/src/logic/PeerDescriptorStoreManager.js.map +1 -1
- package/dist/src/logic/StreamPartNetworkSplitAvoidance.js +4 -3
- package/dist/src/logic/StreamPartNetworkSplitAvoidance.js.map +1 -1
- package/dist/src/logic/createContentDeliveryLayerNode.js +1 -1
- package/dist/src/logic/createContentDeliveryLayerNode.js.map +1 -1
- package/dist/src/logic/inspect/InspectSession.d.ts +2 -2
- package/dist/src/logic/inspect/InspectSession.js +2 -2
- package/dist/src/logic/inspect/InspectSession.js.map +1 -1
- package/dist/src/logic/inspect/Inspector.d.ts +1 -1
- package/dist/src/logic/inspect/Inspector.js +4 -4
- package/dist/src/logic/inspect/Inspector.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/HandshakeRpcLocal.d.ts +2 -2
- package/dist/src/logic/neighbor-discovery/HandshakeRpcLocal.js +9 -9
- package/dist/src/logic/neighbor-discovery/HandshakeRpcLocal.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/HandshakeRpcRemote.d.ts +2 -2
- package/dist/src/logic/neighbor-discovery/HandshakeRpcRemote.js +5 -5
- package/dist/src/logic/neighbor-discovery/HandshakeRpcRemote.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/Handshaker.js +14 -14
- package/dist/src/logic/neighbor-discovery/Handshaker.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborFinder.js +5 -0
- package/dist/src/logic/neighbor-discovery/NeighborFinder.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateManager.js +5 -3
- package/dist/src/logic/neighbor-discovery/NeighborUpdateManager.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcLocal.d.ts +2 -2
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcLocal.js +4 -4
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcLocal.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcRemote.d.ts +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcRemote.js +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcRemote.js.map +1 -1
- package/dist/src/logic/node-info/NodeInfoClient.d.ts +1 -1
- package/dist/src/logic/node-info/NodeInfoClient.js +1 -1
- package/dist/src/logic/node-info/NodeInfoClient.js.map +1 -1
- package/dist/src/logic/node-info/NodeInfoRpcLocal.d.ts +2 -2
- package/dist/src/logic/node-info/NodeInfoRpcLocal.js +1 -1
- package/dist/src/logic/node-info/NodeInfoRpcLocal.js.map +1 -1
- package/dist/src/logic/node-info/NodeInfoRpcRemote.d.ts +2 -2
- package/dist/src/logic/propagation/Propagation.d.ts +1 -1
- package/dist/src/logic/propagation/Propagation.js +0 -1
- package/dist/src/logic/propagation/Propagation.js.map +1 -1
- package/dist/src/logic/propagation/PropagationTaskStore.d.ts +1 -1
- package/dist/src/logic/proxy/ProxyClient.d.ts +4 -4
- package/dist/src/logic/proxy/ProxyClient.js +11 -7
- package/dist/src/logic/proxy/ProxyClient.js.map +1 -1
- package/dist/src/logic/proxy/ProxyConnectionRpcLocal.d.ts +4 -4
- package/dist/src/logic/proxy/ProxyConnectionRpcLocal.js +5 -5
- package/dist/src/logic/proxy/ProxyConnectionRpcLocal.js.map +1 -1
- package/dist/src/logic/proxy/ProxyConnectionRpcRemote.d.ts +4 -4
- package/dist/src/logic/proxy/ProxyConnectionRpcRemote.js +1 -1
- package/dist/src/logic/proxy/ProxyConnectionRpcRemote.js.map +1 -1
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcLocal.d.ts +4 -4
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcLocal.js +4 -4
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcLocal.js.map +1 -1
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcRemote.d.ts +1 -1
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcRemote.js +2 -2
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcRemote.js.map +1 -1
- package/dist/src/logic/utils.d.ts +1 -1
- package/dist/src/logic/utils.js +2 -2
- package/dist/src/logic/utils.js.map +1 -1
- package/dist/src/types.d.ts +6 -0
- package/dist/src/types.js +3 -0
- package/dist/src/types.js.map +1 -0
- package/dist/test/benchmark/first-message.js +3 -4
- package/dist/test/benchmark/first-message.js.map +1 -1
- package/dist/test/utils/utils.d.ts +4 -4
- package/dist/test/utils/utils.js +6 -5
- package/dist/test/utils/utils.js.map +1 -1
- package/jest.config.ts +13 -0
- package/karma-setup.js +7 -0
- package/karma.config.js +1 -1
- package/package.json +10 -11
- package/proto.sh +2 -2
- package/protos/NetworkRpc.proto +9 -4
- package/src/NetworkNode.ts +12 -9
- package/src/NetworkStack.ts +10 -10
- package/src/exports.ts +5 -3
- package/src/logic/ContentDeliveryLayerNode.ts +35 -11
- package/src/logic/ContentDeliveryManager.ts +41 -13
- package/src/logic/ContentDeliveryRpcLocal.ts +6 -6
- package/src/logic/ContentDeliveryRpcRemote.ts +12 -2
- package/src/logic/ControlLayerNode.ts +1 -1
- package/src/logic/DiscoveryLayerNode.ts +3 -3
- package/src/logic/DuplicateMessageDetector.ts +4 -4
- package/src/logic/ExternalNetworkRpc.ts +0 -1
- package/src/logic/NodeList.ts +4 -3
- package/src/logic/PeerDescriptorStoreManager.ts +1 -2
- package/src/logic/StreamPartNetworkSplitAvoidance.ts +5 -4
- package/src/logic/createContentDeliveryLayerNode.ts +3 -3
- package/src/logic/inspect/InspectSession.ts +5 -4
- package/src/logic/inspect/Inspector.ts +6 -6
- package/src/logic/neighbor-discovery/HandshakeRpcLocal.ts +13 -13
- package/src/logic/neighbor-discovery/HandshakeRpcRemote.ts +8 -8
- package/src/logic/neighbor-discovery/Handshaker.ts +15 -15
- package/src/logic/neighbor-discovery/NeighborFinder.ts +6 -1
- package/src/logic/neighbor-discovery/NeighborUpdateManager.ts +6 -4
- package/src/logic/neighbor-discovery/NeighborUpdateRpcLocal.ts +7 -7
- package/src/logic/neighbor-discovery/NeighborUpdateRpcRemote.ts +4 -4
- package/src/logic/node-info/NodeInfoClient.ts +2 -2
- package/src/logic/node-info/NodeInfoRpcLocal.ts +2 -2
- package/src/logic/node-info/NodeInfoRpcRemote.ts +2 -2
- package/src/logic/propagation/Propagation.ts +1 -2
- package/src/logic/propagation/PropagationTaskStore.ts +1 -1
- package/src/logic/proxy/ProxyClient.ts +17 -12
- package/src/logic/proxy/ProxyConnectionRpcLocal.ts +10 -10
- package/src/logic/proxy/ProxyConnectionRpcRemote.ts +5 -5
- package/src/logic/temporary-connection/TemporaryConnectionRpcLocal.ts +9 -9
- package/src/logic/temporary-connection/TemporaryConnectionRpcRemote.ts +4 -4
- package/src/logic/utils.ts +4 -4
- package/src/types.ts +13 -0
- package/test/benchmark/first-message.ts +6 -5
- package/test/end-to-end/content-delivery-layer-node-with-real-connections.test.ts +11 -6
- package/test/end-to-end/external-network-rpc.test.ts +2 -2
- package/test/end-to-end/inspect.test.ts +5 -5
- package/test/end-to-end/proxy-and-full-node.test.ts +6 -6
- package/test/end-to-end/proxy-connections.test.ts +12 -14
- package/test/end-to-end/proxy-key-exchange.test.ts +11 -9
- package/test/end-to-end/webrtc-full-node-network.test.ts +7 -9
- package/test/end-to-end/websocket-full-node-network.test.ts +8 -10
- package/test/integration/ContentDeliveryLayerNode-Layer1Node-Latencies.test.ts +11 -11
- package/test/integration/ContentDeliveryLayerNode-Layer1Node.test.ts +10 -10
- package/test/integration/ContentDeliveryManager.test.ts +49 -25
- package/test/integration/ContentDeliveryRpcRemote.test.ts +8 -8
- package/test/integration/HandshakeRpcRemote.test.ts +2 -2
- package/test/integration/Handshakes.test.ts +21 -56
- package/test/integration/Inspect.test.ts +2 -2
- package/test/integration/NeighborUpdateRpcRemote.test.ts +2 -2
- package/test/integration/NetworkNode.test.ts +5 -4
- package/test/integration/NetworkRpc.test.ts +10 -10
- package/test/integration/NetworkStack.test.ts +4 -4
- package/test/integration/NodeInfoRpc.test.ts +9 -5
- package/test/integration/Propagation.test.ts +6 -6
- package/test/integration/joining-streams-on-offline-peers.test.ts +5 -5
- package/test/integration/stream-without-default-entrypoints.test.ts +8 -7
- package/test/integration/streamEntryPointReplacing.test.ts +5 -5
- package/test/types/global.d.ts +1 -0
- package/test/unit/ContentDeliveryLayerNode.test.ts +26 -14
- package/test/unit/ContentDeliveryManager.test.ts +10 -9
- package/test/unit/ContentDeliveryRpcLocal.test.ts +3 -3
- package/test/unit/DuplicateMessageDetector.test.ts +10 -10
- package/test/unit/ExternalNetworkRpc.test.ts +3 -3
- package/test/unit/HandshakeRpcLocal.test.ts +8 -21
- package/test/unit/Handshaker.test.ts +2 -2
- package/test/unit/InspectSession.test.ts +7 -4
- package/test/unit/Inspector.test.ts +5 -5
- package/test/unit/NeighborFinder.test.ts +5 -5
- package/test/unit/NeighborUpdateRpcLocal.test.ts +6 -6
- package/test/unit/NetworkNode.test.ts +5 -5
- package/test/unit/NodeList.test.ts +23 -23
- package/test/unit/PeerDescriptorStoreManager.test.ts +4 -4
- package/test/unit/Propagation.test.ts +8 -7
- package/test/unit/ProxyConnectionRpcRemote.test.ts +5 -5
- package/test/unit/StreamPartReconnect.test.ts +2 -2
- package/test/unit/TemporaryConnectionRpcLocal.test.ts +3 -3
- package/test/utils/mock/MockControlLayerNode.ts +5 -0
- package/test/utils/mock/MockNeighborUpdateManager.ts +1 -1
- package/test/utils/mock/MockTransport.ts +11 -0
- package/test/utils/utils.ts +10 -9
- package/tsconfig.browser.json +1 -0
- package/tsconfig.jest.json +2 -1
- package/tsconfig.json +3 -0
- package/tsconfig.node.json +1 -0
- package/.eslintignore +0 -7
- package/.eslintrc +0 -3
- package/dist/src/proto/google/protobuf/any.js.map +0 -1
- package/dist/src/proto/google/protobuf/empty.js.map +0 -1
- package/dist/src/proto/google/protobuf/timestamp.js.map +0 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.js.map +0 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.js.map +0 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.server.js.map +0 -1
- package/dist/src/proto/packages/proto-rpc/protos/ProtoRpc.js.map +0 -1
- package/dist/src/proto/packages/trackerless-network/protos/NetworkRpc.client.js.map +0 -1
- package/dist/src/proto/packages/trackerless-network/protos/NetworkRpc.js.map +0 -1
- package/dist/src/proto/packages/trackerless-network/protos/NetworkRpc.server.js.map +0 -1
- package/jest.config.js +0 -5
- package/src/proto/google/protobuf/any.ts +0 -319
- package/src/proto/google/protobuf/empty.ts +0 -82
- package/src/proto/google/protobuf/timestamp.ts +0 -281
- package/src/proto/packages/dht/protos/DhtRpc.client.ts +0 -407
- package/src/proto/packages/dht/protos/DhtRpc.server.ts +0 -160
- package/src/proto/packages/dht/protos/DhtRpc.ts +0 -1244
- package/src/proto/packages/proto-rpc/protos/ProtoRpc.ts +0 -108
- package/src/proto/packages/trackerless-network/protos/NetworkRpc.client.ts +0 -218
- package/src/proto/packages/trackerless-network/protos/NetworkRpc.server.ts +0 -85
- package/src/proto/packages/trackerless-network/protos/NetworkRpc.ts +0 -752
- /package/dist/{src/proto → generated}/google/protobuf/any.js +0 -0
- /package/dist/{src/proto → generated}/google/protobuf/empty.js +0 -0
- /package/dist/{src/proto → generated}/google/protobuf/timestamp.js +0 -0
- /package/dist/{src/proto → generated}/packages/dht/protos/DhtRpc.server.js +0 -0
- /package/dist/{src/proto → generated}/packages/proto-rpc/protos/ProtoRpc.d.ts +0 -0
- /package/dist/{src/proto → generated}/packages/proto-rpc/protos/ProtoRpc.js +0 -0
- /package/dist/{src/proto → generated}/packages/trackerless-network/protos/NetworkRpc.client.d.ts +0 -0
- /package/dist/{src/proto → generated}/packages/trackerless-network/protos/NetworkRpc.client.js +0 -0
- /package/dist/{src/proto → generated}/packages/trackerless-network/protos/NetworkRpc.server.d.ts +0 -0
- /package/dist/{src/proto → generated}/packages/trackerless-network/protos/NetworkRpc.server.js +0 -0
|
@@ -1,1244 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.9.4 with parameter server_generic,generate_dependencies,long_type_number
|
|
2
|
-
// @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { Empty } from "../../../google/protobuf/empty";
|
|
5
|
-
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
-
import { RpcMessage } from "../../proto-rpc/protos/ProtoRpc";
|
|
8
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
9
|
-
import { Any } from "../../../google/protobuf/any";
|
|
10
|
-
// Used inside RpcMessage
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @generated from protobuf message dht.StoreDataRequest
|
|
14
|
-
*/
|
|
15
|
-
export interface StoreDataRequest {
|
|
16
|
-
/**
|
|
17
|
-
* @generated from protobuf field: bytes key = 1;
|
|
18
|
-
*/
|
|
19
|
-
key: Uint8Array;
|
|
20
|
-
/**
|
|
21
|
-
* @generated from protobuf field: google.protobuf.Any data = 2;
|
|
22
|
-
*/
|
|
23
|
-
data?: Any;
|
|
24
|
-
/**
|
|
25
|
-
* @generated from protobuf field: bytes creator = 3;
|
|
26
|
-
*/
|
|
27
|
-
creator: Uint8Array;
|
|
28
|
-
/**
|
|
29
|
-
* @generated from protobuf field: google.protobuf.Timestamp createdAt = 4;
|
|
30
|
-
*/
|
|
31
|
-
createdAt?: Timestamp;
|
|
32
|
-
/**
|
|
33
|
-
* @generated from protobuf field: uint32 ttl = 5;
|
|
34
|
-
*/
|
|
35
|
-
ttl: number;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @generated from protobuf message dht.StoreDataResponse
|
|
39
|
-
*/
|
|
40
|
-
export interface StoreDataResponse {
|
|
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
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* @generated from protobuf message dht.ReplicateDataRequest
|
|
66
|
-
*/
|
|
67
|
-
export interface ReplicateDataRequest {
|
|
68
|
-
/**
|
|
69
|
-
* @generated from protobuf field: dht.DataEntry entry = 1;
|
|
70
|
-
*/
|
|
71
|
-
entry?: DataEntry;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* @generated from protobuf message dht.DataEntry
|
|
75
|
-
*/
|
|
76
|
-
export interface DataEntry {
|
|
77
|
-
/**
|
|
78
|
-
* @generated from protobuf field: bytes key = 1;
|
|
79
|
-
*/
|
|
80
|
-
key: Uint8Array;
|
|
81
|
-
/**
|
|
82
|
-
* @generated from protobuf field: google.protobuf.Any data = 2;
|
|
83
|
-
*/
|
|
84
|
-
data?: Any;
|
|
85
|
-
/**
|
|
86
|
-
* @generated from protobuf field: bytes creator = 3;
|
|
87
|
-
*/
|
|
88
|
-
creator: Uint8Array;
|
|
89
|
-
/**
|
|
90
|
-
* @generated from protobuf field: google.protobuf.Timestamp createdAt = 4;
|
|
91
|
-
*/
|
|
92
|
-
createdAt?: Timestamp;
|
|
93
|
-
/**
|
|
94
|
-
* @generated from protobuf field: google.protobuf.Timestamp storedAt = 5;
|
|
95
|
-
*/
|
|
96
|
-
storedAt?: Timestamp;
|
|
97
|
-
/**
|
|
98
|
-
* @generated from protobuf field: uint32 ttl = 6;
|
|
99
|
-
*/
|
|
100
|
-
ttl: number; // milliseconds
|
|
101
|
-
/**
|
|
102
|
-
* @generated from protobuf field: bool stale = 7;
|
|
103
|
-
*/
|
|
104
|
-
stale: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* @generated from protobuf field: bool deleted = 8;
|
|
107
|
-
*/
|
|
108
|
-
deleted: boolean;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* TODO rename to ClosestNeighborsRequest
|
|
112
|
-
*
|
|
113
|
-
* @generated from protobuf message dht.ClosestPeersRequest
|
|
114
|
-
*/
|
|
115
|
-
export interface ClosestPeersRequest {
|
|
116
|
-
/**
|
|
117
|
-
* @generated from protobuf field: bytes nodeId = 1;
|
|
118
|
-
*/
|
|
119
|
-
nodeId: Uint8Array;
|
|
120
|
-
/**
|
|
121
|
-
* @generated from protobuf field: string requestId = 2;
|
|
122
|
-
*/
|
|
123
|
-
requestId: string;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* TODO rename to ClosestNeighborsResponse
|
|
127
|
-
*
|
|
128
|
-
* @generated from protobuf message dht.ClosestPeersResponse
|
|
129
|
-
*/
|
|
130
|
-
export interface ClosestPeersResponse {
|
|
131
|
-
/**
|
|
132
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor peers = 1;
|
|
133
|
-
*/
|
|
134
|
-
peers: PeerDescriptor[];
|
|
135
|
-
/**
|
|
136
|
-
* @generated from protobuf field: string requestId = 2;
|
|
137
|
-
*/
|
|
138
|
-
requestId: string;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* TODO rename to ClosestRingContactsRequest
|
|
142
|
-
*
|
|
143
|
-
* @generated from protobuf message dht.ClosestRingPeersRequest
|
|
144
|
-
*/
|
|
145
|
-
export interface ClosestRingPeersRequest {
|
|
146
|
-
/**
|
|
147
|
-
* @generated from protobuf field: bytes ringId = 1;
|
|
148
|
-
*/
|
|
149
|
-
ringId: Uint8Array;
|
|
150
|
-
/**
|
|
151
|
-
* @generated from protobuf field: string requestId = 2;
|
|
152
|
-
*/
|
|
153
|
-
requestId: string;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* TODO rename to ClosestRingContactsResponse
|
|
157
|
-
*
|
|
158
|
-
* @generated from protobuf message dht.ClosestRingPeersResponse
|
|
159
|
-
*/
|
|
160
|
-
export interface ClosestRingPeersResponse {
|
|
161
|
-
/**
|
|
162
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor leftPeers = 1;
|
|
163
|
-
*/
|
|
164
|
-
leftPeers: PeerDescriptor[];
|
|
165
|
-
/**
|
|
166
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor rightPeers = 2;
|
|
167
|
-
*/
|
|
168
|
-
rightPeers: PeerDescriptor[];
|
|
169
|
-
/**
|
|
170
|
-
* @generated from protobuf field: string requestId = 3;
|
|
171
|
-
*/
|
|
172
|
-
requestId: string;
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* @generated from protobuf message dht.RecursiveOperationRequest
|
|
176
|
-
*/
|
|
177
|
-
export interface RecursiveOperationRequest {
|
|
178
|
-
/**
|
|
179
|
-
* @generated from protobuf field: string sessionId = 1;
|
|
180
|
-
*/
|
|
181
|
-
sessionId: string;
|
|
182
|
-
/**
|
|
183
|
-
* @generated from protobuf field: dht.RecursiveOperation operation = 2;
|
|
184
|
-
*/
|
|
185
|
-
operation: RecursiveOperation;
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* @generated from protobuf message dht.RecursiveOperationResponse
|
|
189
|
-
*/
|
|
190
|
-
export interface RecursiveOperationResponse {
|
|
191
|
-
/**
|
|
192
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor closestConnectedNodes = 1;
|
|
193
|
-
*/
|
|
194
|
-
closestConnectedNodes: PeerDescriptor[];
|
|
195
|
-
/**
|
|
196
|
-
* @generated from protobuf field: repeated dht.DataEntry dataEntries = 2;
|
|
197
|
-
*/
|
|
198
|
-
dataEntries: DataEntry[];
|
|
199
|
-
/**
|
|
200
|
-
* @generated from protobuf field: bool noCloserNodesFound = 3;
|
|
201
|
-
*/
|
|
202
|
-
noCloserNodesFound: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor routingPath = 4;
|
|
205
|
-
*/
|
|
206
|
-
routingPath: PeerDescriptor[];
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* @generated from protobuf message dht.PingRequest
|
|
210
|
-
*/
|
|
211
|
-
export interface PingRequest {
|
|
212
|
-
/**
|
|
213
|
-
* @generated from protobuf field: string requestId = 1;
|
|
214
|
-
*/
|
|
215
|
-
requestId: string;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* @generated from protobuf message dht.PingResponse
|
|
219
|
-
*/
|
|
220
|
-
export interface PingResponse {
|
|
221
|
-
/**
|
|
222
|
-
* @generated from protobuf field: string requestId = 1;
|
|
223
|
-
*/
|
|
224
|
-
requestId: string;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* @generated from protobuf message dht.LeaveNotice
|
|
228
|
-
*/
|
|
229
|
-
export interface LeaveNotice {
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* @generated from protobuf message dht.PeerDescriptor
|
|
233
|
-
*/
|
|
234
|
-
export interface PeerDescriptor {
|
|
235
|
-
/**
|
|
236
|
-
* @generated from protobuf field: bytes nodeId = 1;
|
|
237
|
-
*/
|
|
238
|
-
nodeId: Uint8Array;
|
|
239
|
-
/**
|
|
240
|
-
* @generated from protobuf field: dht.NodeType type = 2;
|
|
241
|
-
*/
|
|
242
|
-
type: NodeType;
|
|
243
|
-
/**
|
|
244
|
-
* @generated from protobuf field: dht.ConnectivityMethod udp = 3;
|
|
245
|
-
*/
|
|
246
|
-
udp?: ConnectivityMethod;
|
|
247
|
-
/**
|
|
248
|
-
* @generated from protobuf field: dht.ConnectivityMethod tcp = 4;
|
|
249
|
-
*/
|
|
250
|
-
tcp?: ConnectivityMethod;
|
|
251
|
-
/**
|
|
252
|
-
* @generated from protobuf field: dht.ConnectivityMethod websocket = 5;
|
|
253
|
-
*/
|
|
254
|
-
websocket?: ConnectivityMethod;
|
|
255
|
-
/**
|
|
256
|
-
* @generated from protobuf field: optional uint32 region = 6;
|
|
257
|
-
*/
|
|
258
|
-
region?: number;
|
|
259
|
-
/**
|
|
260
|
-
* @generated from protobuf field: optional uint32 ipAddress = 7;
|
|
261
|
-
*/
|
|
262
|
-
ipAddress?: number;
|
|
263
|
-
/**
|
|
264
|
-
* @generated from protobuf field: optional bytes publicKey = 8;
|
|
265
|
-
*/
|
|
266
|
-
publicKey?: Uint8Array;
|
|
267
|
-
/**
|
|
268
|
-
* signature of fields 2-8
|
|
269
|
-
*
|
|
270
|
-
* @generated from protobuf field: optional bytes signature = 9;
|
|
271
|
-
*/
|
|
272
|
-
signature?: Uint8Array;
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* @generated from protobuf message dht.ConnectivityMethod
|
|
276
|
-
*/
|
|
277
|
-
export interface ConnectivityMethod {
|
|
278
|
-
/**
|
|
279
|
-
* @generated from protobuf field: uint32 port = 1;
|
|
280
|
-
*/
|
|
281
|
-
port: number;
|
|
282
|
-
/**
|
|
283
|
-
* @generated from protobuf field: string host = 2;
|
|
284
|
-
*/
|
|
285
|
-
host: string;
|
|
286
|
-
/**
|
|
287
|
-
* @generated from protobuf field: bool tls = 3;
|
|
288
|
-
*/
|
|
289
|
-
tls: boolean;
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* @generated from protobuf message dht.RouteMessageWrapper
|
|
293
|
-
*/
|
|
294
|
-
export interface RouteMessageWrapper {
|
|
295
|
-
/**
|
|
296
|
-
* @generated from protobuf field: string requestId = 1;
|
|
297
|
-
*/
|
|
298
|
-
requestId: string;
|
|
299
|
-
/**
|
|
300
|
-
* @generated from protobuf field: dht.PeerDescriptor sourcePeer = 2;
|
|
301
|
-
*/
|
|
302
|
-
sourcePeer?: PeerDescriptor;
|
|
303
|
-
/**
|
|
304
|
-
* @generated from protobuf field: bytes target = 3;
|
|
305
|
-
*/
|
|
306
|
-
target: Uint8Array;
|
|
307
|
-
/**
|
|
308
|
-
* @generated from protobuf field: dht.Message message = 4;
|
|
309
|
-
*/
|
|
310
|
-
message?: Message;
|
|
311
|
-
/**
|
|
312
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor reachableThrough = 5;
|
|
313
|
-
*/
|
|
314
|
-
reachableThrough: PeerDescriptor[];
|
|
315
|
-
/**
|
|
316
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor routingPath = 6;
|
|
317
|
-
*/
|
|
318
|
-
routingPath: PeerDescriptor[];
|
|
319
|
-
/**
|
|
320
|
-
* @generated from protobuf field: repeated string parallelRootNodeIds = 7;
|
|
321
|
-
*/
|
|
322
|
-
parallelRootNodeIds: string[];
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* @generated from protobuf message dht.RouteMessageAck
|
|
326
|
-
*/
|
|
327
|
-
export interface RouteMessageAck {
|
|
328
|
-
/**
|
|
329
|
-
* @generated from protobuf field: string requestId = 1;
|
|
330
|
-
*/
|
|
331
|
-
requestId: string;
|
|
332
|
-
/**
|
|
333
|
-
* @generated from protobuf field: optional dht.RouteMessageError error = 2;
|
|
334
|
-
*/
|
|
335
|
-
error?: RouteMessageError;
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* @generated from protobuf message dht.ConnectivityRequest
|
|
339
|
-
*/
|
|
340
|
-
export interface ConnectivityRequest {
|
|
341
|
-
/**
|
|
342
|
-
* @generated from protobuf field: uint32 port = 1;
|
|
343
|
-
*/
|
|
344
|
-
port: number;
|
|
345
|
-
/**
|
|
346
|
-
* @generated from protobuf field: bool tls = 2;
|
|
347
|
-
*/
|
|
348
|
-
tls: boolean;
|
|
349
|
-
/**
|
|
350
|
-
* @generated from protobuf field: optional string host = 3;
|
|
351
|
-
*/
|
|
352
|
-
host?: string;
|
|
353
|
-
/**
|
|
354
|
-
* @generated from protobuf field: bool allowSelfSignedCertificate = 4;
|
|
355
|
-
*/
|
|
356
|
-
allowSelfSignedCertificate: boolean;
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* @generated from protobuf message dht.ConnectivityResponse
|
|
360
|
-
*/
|
|
361
|
-
export interface ConnectivityResponse {
|
|
362
|
-
/**
|
|
363
|
-
* @generated from protobuf field: string host = 1;
|
|
364
|
-
*/
|
|
365
|
-
host: string;
|
|
366
|
-
/**
|
|
367
|
-
* @generated from protobuf field: string natType = 2;
|
|
368
|
-
*/
|
|
369
|
-
natType: string;
|
|
370
|
-
/**
|
|
371
|
-
* @generated from protobuf field: dht.ConnectivityMethod websocket = 3;
|
|
372
|
-
*/
|
|
373
|
-
websocket?: ConnectivityMethod;
|
|
374
|
-
/**
|
|
375
|
-
* @generated from protobuf field: uint32 ipAddress = 4;
|
|
376
|
-
*/
|
|
377
|
-
ipAddress: number;
|
|
378
|
-
/**
|
|
379
|
-
* @generated from protobuf field: string version = 5;
|
|
380
|
-
*/
|
|
381
|
-
version: string;
|
|
382
|
-
/**
|
|
383
|
-
* @generated from protobuf field: optional double latitude = 6;
|
|
384
|
-
*/
|
|
385
|
-
latitude?: number;
|
|
386
|
-
/**
|
|
387
|
-
* @generated from protobuf field: optional double longitude = 7;
|
|
388
|
-
*/
|
|
389
|
-
longitude?: number;
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* @generated from protobuf message dht.HandshakeRequest
|
|
393
|
-
*/
|
|
394
|
-
export interface HandshakeRequest {
|
|
395
|
-
/**
|
|
396
|
-
* @generated from protobuf field: dht.PeerDescriptor sourcePeerDescriptor = 1;
|
|
397
|
-
*/
|
|
398
|
-
sourcePeerDescriptor?: PeerDescriptor;
|
|
399
|
-
/**
|
|
400
|
-
* @generated from protobuf field: optional dht.PeerDescriptor targetPeerDescriptor = 2;
|
|
401
|
-
*/
|
|
402
|
-
targetPeerDescriptor?: PeerDescriptor;
|
|
403
|
-
/**
|
|
404
|
-
* @generated from protobuf field: string version = 3;
|
|
405
|
-
*/
|
|
406
|
-
version: string;
|
|
407
|
-
}
|
|
408
|
-
/**
|
|
409
|
-
* @generated from protobuf message dht.HandshakeResponse
|
|
410
|
-
*/
|
|
411
|
-
export interface HandshakeResponse {
|
|
412
|
-
/**
|
|
413
|
-
* @generated from protobuf field: dht.PeerDescriptor sourcePeerDescriptor = 1;
|
|
414
|
-
*/
|
|
415
|
-
sourcePeerDescriptor?: PeerDescriptor;
|
|
416
|
-
/**
|
|
417
|
-
* @generated from protobuf field: optional dht.HandshakeError error = 2;
|
|
418
|
-
*/
|
|
419
|
-
error?: HandshakeError;
|
|
420
|
-
/**
|
|
421
|
-
* @generated from protobuf field: string version = 3;
|
|
422
|
-
*/
|
|
423
|
-
version: string;
|
|
424
|
-
}
|
|
425
|
-
// Wraps all messages
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* @generated from protobuf message dht.Message
|
|
429
|
-
*/
|
|
430
|
-
export interface Message {
|
|
431
|
-
/**
|
|
432
|
-
* @generated from protobuf field: string messageId = 1;
|
|
433
|
-
*/
|
|
434
|
-
messageId: string;
|
|
435
|
-
/**
|
|
436
|
-
* @generated from protobuf field: dht.PeerDescriptor sourceDescriptor = 2;
|
|
437
|
-
*/
|
|
438
|
-
sourceDescriptor?: PeerDescriptor;
|
|
439
|
-
/**
|
|
440
|
-
* @generated from protobuf field: dht.PeerDescriptor targetDescriptor = 3;
|
|
441
|
-
*/
|
|
442
|
-
targetDescriptor?: PeerDescriptor;
|
|
443
|
-
/**
|
|
444
|
-
* @generated from protobuf field: string serviceId = 4;
|
|
445
|
-
*/
|
|
446
|
-
serviceId: string; // id of the RPC service
|
|
447
|
-
/**
|
|
448
|
-
* @generated from protobuf oneof: body
|
|
449
|
-
*/
|
|
450
|
-
body: {
|
|
451
|
-
oneofKind: "rpcMessage";
|
|
452
|
-
/**
|
|
453
|
-
* @generated from protobuf field: protorpc.RpcMessage rpcMessage = 5;
|
|
454
|
-
*/
|
|
455
|
-
rpcMessage: RpcMessage;
|
|
456
|
-
} | {
|
|
457
|
-
oneofKind: "connectivityRequest";
|
|
458
|
-
/**
|
|
459
|
-
* @generated from protobuf field: dht.ConnectivityRequest connectivityRequest = 6;
|
|
460
|
-
*/
|
|
461
|
-
connectivityRequest: ConnectivityRequest;
|
|
462
|
-
} | {
|
|
463
|
-
oneofKind: "connectivityResponse";
|
|
464
|
-
/**
|
|
465
|
-
* @generated from protobuf field: dht.ConnectivityResponse connectivityResponse = 7;
|
|
466
|
-
*/
|
|
467
|
-
connectivityResponse: ConnectivityResponse;
|
|
468
|
-
} | {
|
|
469
|
-
oneofKind: "handshakeRequest";
|
|
470
|
-
/**
|
|
471
|
-
* @generated from protobuf field: dht.HandshakeRequest handshakeRequest = 8;
|
|
472
|
-
*/
|
|
473
|
-
handshakeRequest: HandshakeRequest;
|
|
474
|
-
} | {
|
|
475
|
-
oneofKind: "handshakeResponse";
|
|
476
|
-
/**
|
|
477
|
-
* @generated from protobuf field: dht.HandshakeResponse handshakeResponse = 9;
|
|
478
|
-
*/
|
|
479
|
-
handshakeResponse: HandshakeResponse;
|
|
480
|
-
} | {
|
|
481
|
-
oneofKind: "recursiveOperationRequest";
|
|
482
|
-
/**
|
|
483
|
-
* @generated from protobuf field: dht.RecursiveOperationRequest recursiveOperationRequest = 10;
|
|
484
|
-
*/
|
|
485
|
-
recursiveOperationRequest: RecursiveOperationRequest;
|
|
486
|
-
} | {
|
|
487
|
-
oneofKind: undefined;
|
|
488
|
-
};
|
|
489
|
-
}
|
|
490
|
-
// Connector Messages
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* WebSocket
|
|
494
|
-
*
|
|
495
|
-
* @generated from protobuf message dht.WebsocketConnectionRequest
|
|
496
|
-
*/
|
|
497
|
-
export interface WebsocketConnectionRequest {
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* WebRTC
|
|
501
|
-
*
|
|
502
|
-
* @generated from protobuf message dht.WebrtcConnectionRequest
|
|
503
|
-
*/
|
|
504
|
-
export interface WebrtcConnectionRequest {
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
* @generated from protobuf message dht.RtcOffer
|
|
508
|
-
*/
|
|
509
|
-
export interface RtcOffer {
|
|
510
|
-
/**
|
|
511
|
-
* @generated from protobuf field: string description = 1;
|
|
512
|
-
*/
|
|
513
|
-
description: string;
|
|
514
|
-
/**
|
|
515
|
-
* @generated from protobuf field: string connectionId = 2;
|
|
516
|
-
*/
|
|
517
|
-
connectionId: string;
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* @generated from protobuf message dht.RtcAnswer
|
|
521
|
-
*/
|
|
522
|
-
export interface RtcAnswer {
|
|
523
|
-
/**
|
|
524
|
-
* @generated from protobuf field: string description = 1;
|
|
525
|
-
*/
|
|
526
|
-
description: string;
|
|
527
|
-
/**
|
|
528
|
-
* @generated from protobuf field: string connectionId = 2;
|
|
529
|
-
*/
|
|
530
|
-
connectionId: string;
|
|
531
|
-
}
|
|
532
|
-
/**
|
|
533
|
-
* @generated from protobuf message dht.IceCandidate
|
|
534
|
-
*/
|
|
535
|
-
export interface IceCandidate {
|
|
536
|
-
/**
|
|
537
|
-
* @generated from protobuf field: string candidate = 1;
|
|
538
|
-
*/
|
|
539
|
-
candidate: string;
|
|
540
|
-
/**
|
|
541
|
-
* @generated from protobuf field: string mid = 2;
|
|
542
|
-
*/
|
|
543
|
-
mid: string;
|
|
544
|
-
/**
|
|
545
|
-
* @generated from protobuf field: string connectionId = 3;
|
|
546
|
-
*/
|
|
547
|
-
connectionId: string;
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
* @generated from protobuf message dht.LockRequest
|
|
551
|
-
*/
|
|
552
|
-
export interface LockRequest {
|
|
553
|
-
/**
|
|
554
|
-
* @generated from protobuf field: string lockId = 1;
|
|
555
|
-
*/
|
|
556
|
-
lockId: string;
|
|
557
|
-
}
|
|
558
|
-
/**
|
|
559
|
-
* @generated from protobuf message dht.UnlockRequest
|
|
560
|
-
*/
|
|
561
|
-
export interface UnlockRequest {
|
|
562
|
-
/**
|
|
563
|
-
* @generated from protobuf field: string lockId = 1;
|
|
564
|
-
*/
|
|
565
|
-
lockId: string;
|
|
566
|
-
}
|
|
567
|
-
/**
|
|
568
|
-
* @generated from protobuf message dht.LockResponse
|
|
569
|
-
*/
|
|
570
|
-
export interface LockResponse {
|
|
571
|
-
/**
|
|
572
|
-
* @generated from protobuf field: bool accepted = 1;
|
|
573
|
-
*/
|
|
574
|
-
accepted: boolean;
|
|
575
|
-
}
|
|
576
|
-
/**
|
|
577
|
-
* @generated from protobuf message dht.DisconnectNotice
|
|
578
|
-
*/
|
|
579
|
-
export interface DisconnectNotice {
|
|
580
|
-
/**
|
|
581
|
-
* @generated from protobuf field: dht.DisconnectMode disconnectMode = 1;
|
|
582
|
-
*/
|
|
583
|
-
disconnectMode: DisconnectMode;
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* @generated from protobuf message dht.ExternalFetchDataRequest
|
|
587
|
-
*/
|
|
588
|
-
export interface ExternalFetchDataRequest {
|
|
589
|
-
/**
|
|
590
|
-
* @generated from protobuf field: bytes key = 1;
|
|
591
|
-
*/
|
|
592
|
-
key: Uint8Array;
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
* @generated from protobuf message dht.ExternalFetchDataResponse
|
|
596
|
-
*/
|
|
597
|
-
export interface ExternalFetchDataResponse {
|
|
598
|
-
/**
|
|
599
|
-
* @generated from protobuf field: repeated dht.DataEntry entries = 1;
|
|
600
|
-
*/
|
|
601
|
-
entries: DataEntry[];
|
|
602
|
-
}
|
|
603
|
-
/**
|
|
604
|
-
* @generated from protobuf enum dht.RecursiveOperation
|
|
605
|
-
*/
|
|
606
|
-
export enum RecursiveOperation {
|
|
607
|
-
/**
|
|
608
|
-
* @generated from protobuf enum value: FIND_CLOSEST_NODES = 0;
|
|
609
|
-
*/
|
|
610
|
-
FIND_CLOSEST_NODES = 0,
|
|
611
|
-
/**
|
|
612
|
-
* @generated from protobuf enum value: FETCH_DATA = 1;
|
|
613
|
-
*/
|
|
614
|
-
FETCH_DATA = 1,
|
|
615
|
-
/**
|
|
616
|
-
* @generated from protobuf enum value: DELETE_DATA = 2;
|
|
617
|
-
*/
|
|
618
|
-
DELETE_DATA = 2
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
* @generated from protobuf enum dht.NodeType
|
|
622
|
-
*/
|
|
623
|
-
export enum NodeType {
|
|
624
|
-
/**
|
|
625
|
-
* @generated from protobuf enum value: NODEJS = 0;
|
|
626
|
-
*/
|
|
627
|
-
NODEJS = 0,
|
|
628
|
-
/**
|
|
629
|
-
* @generated from protobuf enum value: BROWSER = 1;
|
|
630
|
-
*/
|
|
631
|
-
BROWSER = 1
|
|
632
|
-
}
|
|
633
|
-
/**
|
|
634
|
-
* @generated from protobuf enum dht.RpcResponseError
|
|
635
|
-
*/
|
|
636
|
-
export enum RpcResponseError {
|
|
637
|
-
/**
|
|
638
|
-
* @generated from protobuf enum value: SERVER_TIMOUT = 0;
|
|
639
|
-
*/
|
|
640
|
-
SERVER_TIMOUT = 0,
|
|
641
|
-
/**
|
|
642
|
-
* @generated from protobuf enum value: CLIENT_TIMEOUT = 1;
|
|
643
|
-
*/
|
|
644
|
-
CLIENT_TIMEOUT = 1,
|
|
645
|
-
/**
|
|
646
|
-
* @generated from protobuf enum value: SERVER_ERROR = 2;
|
|
647
|
-
*/
|
|
648
|
-
SERVER_ERROR = 2,
|
|
649
|
-
/**
|
|
650
|
-
* @generated from protobuf enum value: UNKNOWN_RPC_METHOD = 3;
|
|
651
|
-
*/
|
|
652
|
-
UNKNOWN_RPC_METHOD = 3
|
|
653
|
-
}
|
|
654
|
-
/**
|
|
655
|
-
* @generated from protobuf enum dht.RouteMessageError
|
|
656
|
-
*/
|
|
657
|
-
export enum RouteMessageError {
|
|
658
|
-
/**
|
|
659
|
-
* @generated from protobuf enum value: NO_TARGETS = 0;
|
|
660
|
-
*/
|
|
661
|
-
NO_TARGETS = 0,
|
|
662
|
-
/**
|
|
663
|
-
* @generated from protobuf enum value: DUPLICATE = 1;
|
|
664
|
-
*/
|
|
665
|
-
DUPLICATE = 1,
|
|
666
|
-
/**
|
|
667
|
-
* TODO: can this be removed? If DhtNode is already stopped the server side requests
|
|
668
|
-
* should not be processed
|
|
669
|
-
*
|
|
670
|
-
* @generated from protobuf enum value: STOPPED = 2;
|
|
671
|
-
*/
|
|
672
|
-
STOPPED = 2
|
|
673
|
-
}
|
|
674
|
-
/**
|
|
675
|
-
* @generated from protobuf enum dht.HandshakeError
|
|
676
|
-
*/
|
|
677
|
-
export enum HandshakeError {
|
|
678
|
-
/**
|
|
679
|
-
* @generated from protobuf enum value: DUPLICATE_CONNECTION = 0;
|
|
680
|
-
*/
|
|
681
|
-
DUPLICATE_CONNECTION = 0,
|
|
682
|
-
/**
|
|
683
|
-
* @generated from protobuf enum value: INVALID_TARGET_PEER_DESCRIPTOR = 1;
|
|
684
|
-
*/
|
|
685
|
-
INVALID_TARGET_PEER_DESCRIPTOR = 1,
|
|
686
|
-
/**
|
|
687
|
-
* @generated from protobuf enum value: UNSUPPORTED_VERSION = 2;
|
|
688
|
-
*/
|
|
689
|
-
UNSUPPORTED_VERSION = 2
|
|
690
|
-
}
|
|
691
|
-
/**
|
|
692
|
-
* @generated from protobuf enum dht.DisconnectMode
|
|
693
|
-
*/
|
|
694
|
-
export enum DisconnectMode {
|
|
695
|
-
/**
|
|
696
|
-
* @generated from protobuf enum value: NORMAL = 0;
|
|
697
|
-
*/
|
|
698
|
-
NORMAL = 0,
|
|
699
|
-
/**
|
|
700
|
-
* @generated from protobuf enum value: LEAVING = 1;
|
|
701
|
-
*/
|
|
702
|
-
LEAVING = 1
|
|
703
|
-
}
|
|
704
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
705
|
-
class StoreDataRequest$Type extends MessageType<StoreDataRequest> {
|
|
706
|
-
constructor() {
|
|
707
|
-
super("dht.StoreDataRequest", [
|
|
708
|
-
{ no: 1, name: "key", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
709
|
-
{ no: 2, name: "data", kind: "message", T: () => Any },
|
|
710
|
-
{ no: 3, name: "creator", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
711
|
-
{ no: 4, name: "createdAt", kind: "message", T: () => Timestamp },
|
|
712
|
-
{ no: 5, name: "ttl", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
713
|
-
]);
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
/**
|
|
717
|
-
* @generated MessageType for protobuf message dht.StoreDataRequest
|
|
718
|
-
*/
|
|
719
|
-
export const StoreDataRequest = new StoreDataRequest$Type();
|
|
720
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
721
|
-
class StoreDataResponse$Type extends MessageType<StoreDataResponse> {
|
|
722
|
-
constructor() {
|
|
723
|
-
super("dht.StoreDataResponse", []);
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
/**
|
|
727
|
-
* @generated MessageType for protobuf message dht.StoreDataResponse
|
|
728
|
-
*/
|
|
729
|
-
export const StoreDataResponse = new StoreDataResponse$Type();
|
|
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
|
|
756
|
-
class ReplicateDataRequest$Type extends MessageType<ReplicateDataRequest> {
|
|
757
|
-
constructor() {
|
|
758
|
-
super("dht.ReplicateDataRequest", [
|
|
759
|
-
{ no: 1, name: "entry", kind: "message", T: () => DataEntry }
|
|
760
|
-
]);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
/**
|
|
764
|
-
* @generated MessageType for protobuf message dht.ReplicateDataRequest
|
|
765
|
-
*/
|
|
766
|
-
export const ReplicateDataRequest = new ReplicateDataRequest$Type();
|
|
767
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
768
|
-
class DataEntry$Type extends MessageType<DataEntry> {
|
|
769
|
-
constructor() {
|
|
770
|
-
super("dht.DataEntry", [
|
|
771
|
-
{ no: 1, name: "key", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
772
|
-
{ no: 2, name: "data", kind: "message", T: () => Any },
|
|
773
|
-
{ no: 3, name: "creator", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
774
|
-
{ no: 4, name: "createdAt", kind: "message", T: () => Timestamp },
|
|
775
|
-
{ no: 5, name: "storedAt", kind: "message", T: () => Timestamp },
|
|
776
|
-
{ no: 6, name: "ttl", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
777
|
-
{ no: 7, name: "stale", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
778
|
-
{ no: 8, name: "deleted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
779
|
-
]);
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
/**
|
|
783
|
-
* @generated MessageType for protobuf message dht.DataEntry
|
|
784
|
-
*/
|
|
785
|
-
export const DataEntry = new DataEntry$Type();
|
|
786
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
787
|
-
class ClosestPeersRequest$Type extends MessageType<ClosestPeersRequest> {
|
|
788
|
-
constructor() {
|
|
789
|
-
super("dht.ClosestPeersRequest", [
|
|
790
|
-
{ no: 1, name: "nodeId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
791
|
-
{ no: 2, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
792
|
-
]);
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
/**
|
|
796
|
-
* @generated MessageType for protobuf message dht.ClosestPeersRequest
|
|
797
|
-
*/
|
|
798
|
-
export const ClosestPeersRequest = new ClosestPeersRequest$Type();
|
|
799
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
800
|
-
class ClosestPeersResponse$Type extends MessageType<ClosestPeersResponse> {
|
|
801
|
-
constructor() {
|
|
802
|
-
super("dht.ClosestPeersResponse", [
|
|
803
|
-
{ no: 1, name: "peers", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor },
|
|
804
|
-
{ no: 2, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
805
|
-
]);
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
/**
|
|
809
|
-
* @generated MessageType for protobuf message dht.ClosestPeersResponse
|
|
810
|
-
*/
|
|
811
|
-
export const ClosestPeersResponse = new ClosestPeersResponse$Type();
|
|
812
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
813
|
-
class ClosestRingPeersRequest$Type extends MessageType<ClosestRingPeersRequest> {
|
|
814
|
-
constructor() {
|
|
815
|
-
super("dht.ClosestRingPeersRequest", [
|
|
816
|
-
{ no: 1, name: "ringId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
817
|
-
{ no: 2, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
818
|
-
]);
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
/**
|
|
822
|
-
* @generated MessageType for protobuf message dht.ClosestRingPeersRequest
|
|
823
|
-
*/
|
|
824
|
-
export const ClosestRingPeersRequest = new ClosestRingPeersRequest$Type();
|
|
825
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
826
|
-
class ClosestRingPeersResponse$Type extends MessageType<ClosestRingPeersResponse> {
|
|
827
|
-
constructor() {
|
|
828
|
-
super("dht.ClosestRingPeersResponse", [
|
|
829
|
-
{ no: 1, name: "leftPeers", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor },
|
|
830
|
-
{ no: 2, name: "rightPeers", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor },
|
|
831
|
-
{ no: 3, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
832
|
-
]);
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
* @generated MessageType for protobuf message dht.ClosestRingPeersResponse
|
|
837
|
-
*/
|
|
838
|
-
export const ClosestRingPeersResponse = new ClosestRingPeersResponse$Type();
|
|
839
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
840
|
-
class RecursiveOperationRequest$Type extends MessageType<RecursiveOperationRequest> {
|
|
841
|
-
constructor() {
|
|
842
|
-
super("dht.RecursiveOperationRequest", [
|
|
843
|
-
{ no: 1, name: "sessionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
844
|
-
{ no: 2, name: "operation", kind: "enum", T: () => ["dht.RecursiveOperation", RecursiveOperation] }
|
|
845
|
-
]);
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
/**
|
|
849
|
-
* @generated MessageType for protobuf message dht.RecursiveOperationRequest
|
|
850
|
-
*/
|
|
851
|
-
export const RecursiveOperationRequest = new RecursiveOperationRequest$Type();
|
|
852
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
853
|
-
class RecursiveOperationResponse$Type extends MessageType<RecursiveOperationResponse> {
|
|
854
|
-
constructor() {
|
|
855
|
-
super("dht.RecursiveOperationResponse", [
|
|
856
|
-
{ no: 1, name: "closestConnectedNodes", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor },
|
|
857
|
-
{ no: 2, name: "dataEntries", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DataEntry },
|
|
858
|
-
{ no: 3, name: "noCloserNodesFound", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
859
|
-
{ no: 4, name: "routingPath", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor }
|
|
860
|
-
]);
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
/**
|
|
864
|
-
* @generated MessageType for protobuf message dht.RecursiveOperationResponse
|
|
865
|
-
*/
|
|
866
|
-
export const RecursiveOperationResponse = new RecursiveOperationResponse$Type();
|
|
867
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
868
|
-
class PingRequest$Type extends MessageType<PingRequest> {
|
|
869
|
-
constructor() {
|
|
870
|
-
super("dht.PingRequest", [
|
|
871
|
-
{ no: 1, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
872
|
-
]);
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
/**
|
|
876
|
-
* @generated MessageType for protobuf message dht.PingRequest
|
|
877
|
-
*/
|
|
878
|
-
export const PingRequest = new PingRequest$Type();
|
|
879
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
880
|
-
class PingResponse$Type extends MessageType<PingResponse> {
|
|
881
|
-
constructor() {
|
|
882
|
-
super("dht.PingResponse", [
|
|
883
|
-
{ no: 1, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
884
|
-
]);
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
/**
|
|
888
|
-
* @generated MessageType for protobuf message dht.PingResponse
|
|
889
|
-
*/
|
|
890
|
-
export const PingResponse = new PingResponse$Type();
|
|
891
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
892
|
-
class LeaveNotice$Type extends MessageType<LeaveNotice> {
|
|
893
|
-
constructor() {
|
|
894
|
-
super("dht.LeaveNotice", []);
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
/**
|
|
898
|
-
* @generated MessageType for protobuf message dht.LeaveNotice
|
|
899
|
-
*/
|
|
900
|
-
export const LeaveNotice = new LeaveNotice$Type();
|
|
901
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
902
|
-
class PeerDescriptor$Type extends MessageType<PeerDescriptor> {
|
|
903
|
-
constructor() {
|
|
904
|
-
super("dht.PeerDescriptor", [
|
|
905
|
-
{ no: 1, name: "nodeId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
906
|
-
{ no: 2, name: "type", kind: "enum", T: () => ["dht.NodeType", NodeType] },
|
|
907
|
-
{ no: 3, name: "udp", kind: "message", T: () => ConnectivityMethod },
|
|
908
|
-
{ no: 4, name: "tcp", kind: "message", T: () => ConnectivityMethod },
|
|
909
|
-
{ no: 5, name: "websocket", kind: "message", T: () => ConnectivityMethod },
|
|
910
|
-
{ no: 6, name: "region", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
911
|
-
{ no: 7, name: "ipAddress", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
912
|
-
{ no: 8, name: "publicKey", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
913
|
-
{ no: 9, name: "signature", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ }
|
|
914
|
-
]);
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
/**
|
|
918
|
-
* @generated MessageType for protobuf message dht.PeerDescriptor
|
|
919
|
-
*/
|
|
920
|
-
export const PeerDescriptor = new PeerDescriptor$Type();
|
|
921
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
922
|
-
class ConnectivityMethod$Type extends MessageType<ConnectivityMethod> {
|
|
923
|
-
constructor() {
|
|
924
|
-
super("dht.ConnectivityMethod", [
|
|
925
|
-
{ no: 1, name: "port", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
926
|
-
{ no: 2, name: "host", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
927
|
-
{ no: 3, name: "tls", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
928
|
-
]);
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
/**
|
|
932
|
-
* @generated MessageType for protobuf message dht.ConnectivityMethod
|
|
933
|
-
*/
|
|
934
|
-
export const ConnectivityMethod = new ConnectivityMethod$Type();
|
|
935
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
936
|
-
class RouteMessageWrapper$Type extends MessageType<RouteMessageWrapper> {
|
|
937
|
-
constructor() {
|
|
938
|
-
super("dht.RouteMessageWrapper", [
|
|
939
|
-
{ no: 1, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
940
|
-
{ no: 2, name: "sourcePeer", kind: "message", T: () => PeerDescriptor },
|
|
941
|
-
{ no: 3, name: "target", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
942
|
-
{ no: 4, name: "message", kind: "message", T: () => Message },
|
|
943
|
-
{ no: 5, name: "reachableThrough", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor },
|
|
944
|
-
{ no: 6, name: "routingPath", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor },
|
|
945
|
-
{ no: 7, name: "parallelRootNodeIds", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
946
|
-
]);
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
/**
|
|
950
|
-
* @generated MessageType for protobuf message dht.RouteMessageWrapper
|
|
951
|
-
*/
|
|
952
|
-
export const RouteMessageWrapper = new RouteMessageWrapper$Type();
|
|
953
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
954
|
-
class RouteMessageAck$Type extends MessageType<RouteMessageAck> {
|
|
955
|
-
constructor() {
|
|
956
|
-
super("dht.RouteMessageAck", [
|
|
957
|
-
{ no: 1, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
958
|
-
{ no: 2, name: "error", kind: "enum", opt: true, T: () => ["dht.RouteMessageError", RouteMessageError] }
|
|
959
|
-
]);
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
/**
|
|
963
|
-
* @generated MessageType for protobuf message dht.RouteMessageAck
|
|
964
|
-
*/
|
|
965
|
-
export const RouteMessageAck = new RouteMessageAck$Type();
|
|
966
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
967
|
-
class ConnectivityRequest$Type extends MessageType<ConnectivityRequest> {
|
|
968
|
-
constructor() {
|
|
969
|
-
super("dht.ConnectivityRequest", [
|
|
970
|
-
{ no: 1, name: "port", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
971
|
-
{ no: 2, name: "tls", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
972
|
-
{ no: 3, name: "host", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
973
|
-
{ no: 4, name: "allowSelfSignedCertificate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
974
|
-
]);
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
/**
|
|
978
|
-
* @generated MessageType for protobuf message dht.ConnectivityRequest
|
|
979
|
-
*/
|
|
980
|
-
export const ConnectivityRequest = new ConnectivityRequest$Type();
|
|
981
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
982
|
-
class ConnectivityResponse$Type extends MessageType<ConnectivityResponse> {
|
|
983
|
-
constructor() {
|
|
984
|
-
super("dht.ConnectivityResponse", [
|
|
985
|
-
{ no: 1, name: "host", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
986
|
-
{ no: 2, name: "natType", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
987
|
-
{ no: 3, name: "websocket", kind: "message", T: () => ConnectivityMethod },
|
|
988
|
-
{ no: 4, name: "ipAddress", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
989
|
-
{ no: 5, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
990
|
-
{ no: 6, name: "latitude", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
|
|
991
|
-
{ no: 7, name: "longitude", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ }
|
|
992
|
-
]);
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
/**
|
|
996
|
-
* @generated MessageType for protobuf message dht.ConnectivityResponse
|
|
997
|
-
*/
|
|
998
|
-
export const ConnectivityResponse = new ConnectivityResponse$Type();
|
|
999
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1000
|
-
class HandshakeRequest$Type extends MessageType<HandshakeRequest> {
|
|
1001
|
-
constructor() {
|
|
1002
|
-
super("dht.HandshakeRequest", [
|
|
1003
|
-
{ no: 1, name: "sourcePeerDescriptor", kind: "message", T: () => PeerDescriptor },
|
|
1004
|
-
{ no: 2, name: "targetPeerDescriptor", kind: "message", T: () => PeerDescriptor },
|
|
1005
|
-
{ no: 3, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1006
|
-
]);
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
/**
|
|
1010
|
-
* @generated MessageType for protobuf message dht.HandshakeRequest
|
|
1011
|
-
*/
|
|
1012
|
-
export const HandshakeRequest = new HandshakeRequest$Type();
|
|
1013
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1014
|
-
class HandshakeResponse$Type extends MessageType<HandshakeResponse> {
|
|
1015
|
-
constructor() {
|
|
1016
|
-
super("dht.HandshakeResponse", [
|
|
1017
|
-
{ no: 1, name: "sourcePeerDescriptor", kind: "message", T: () => PeerDescriptor },
|
|
1018
|
-
{ no: 2, name: "error", kind: "enum", opt: true, T: () => ["dht.HandshakeError", HandshakeError] },
|
|
1019
|
-
{ no: 3, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1020
|
-
]);
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
/**
|
|
1024
|
-
* @generated MessageType for protobuf message dht.HandshakeResponse
|
|
1025
|
-
*/
|
|
1026
|
-
export const HandshakeResponse = new HandshakeResponse$Type();
|
|
1027
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1028
|
-
class Message$Type extends MessageType<Message> {
|
|
1029
|
-
constructor() {
|
|
1030
|
-
super("dht.Message", [
|
|
1031
|
-
{ no: 1, name: "messageId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1032
|
-
{ no: 2, name: "sourceDescriptor", kind: "message", T: () => PeerDescriptor },
|
|
1033
|
-
{ no: 3, name: "targetDescriptor", kind: "message", T: () => PeerDescriptor },
|
|
1034
|
-
{ no: 4, name: "serviceId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1035
|
-
{ no: 5, name: "rpcMessage", kind: "message", oneof: "body", T: () => RpcMessage },
|
|
1036
|
-
{ no: 6, name: "connectivityRequest", kind: "message", oneof: "body", T: () => ConnectivityRequest },
|
|
1037
|
-
{ no: 7, name: "connectivityResponse", kind: "message", oneof: "body", T: () => ConnectivityResponse },
|
|
1038
|
-
{ no: 8, name: "handshakeRequest", kind: "message", oneof: "body", T: () => HandshakeRequest },
|
|
1039
|
-
{ no: 9, name: "handshakeResponse", kind: "message", oneof: "body", T: () => HandshakeResponse },
|
|
1040
|
-
{ no: 10, name: "recursiveOperationRequest", kind: "message", oneof: "body", T: () => RecursiveOperationRequest }
|
|
1041
|
-
]);
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
/**
|
|
1045
|
-
* @generated MessageType for protobuf message dht.Message
|
|
1046
|
-
*/
|
|
1047
|
-
export const Message = new Message$Type();
|
|
1048
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1049
|
-
class WebsocketConnectionRequest$Type extends MessageType<WebsocketConnectionRequest> {
|
|
1050
|
-
constructor() {
|
|
1051
|
-
super("dht.WebsocketConnectionRequest", []);
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
/**
|
|
1055
|
-
* @generated MessageType for protobuf message dht.WebsocketConnectionRequest
|
|
1056
|
-
*/
|
|
1057
|
-
export const WebsocketConnectionRequest = new WebsocketConnectionRequest$Type();
|
|
1058
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1059
|
-
class WebrtcConnectionRequest$Type extends MessageType<WebrtcConnectionRequest> {
|
|
1060
|
-
constructor() {
|
|
1061
|
-
super("dht.WebrtcConnectionRequest", []);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
/**
|
|
1065
|
-
* @generated MessageType for protobuf message dht.WebrtcConnectionRequest
|
|
1066
|
-
*/
|
|
1067
|
-
export const WebrtcConnectionRequest = new WebrtcConnectionRequest$Type();
|
|
1068
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1069
|
-
class RtcOffer$Type extends MessageType<RtcOffer> {
|
|
1070
|
-
constructor() {
|
|
1071
|
-
super("dht.RtcOffer", [
|
|
1072
|
-
{ no: 1, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1073
|
-
{ no: 2, name: "connectionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1074
|
-
]);
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
/**
|
|
1078
|
-
* @generated MessageType for protobuf message dht.RtcOffer
|
|
1079
|
-
*/
|
|
1080
|
-
export const RtcOffer = new RtcOffer$Type();
|
|
1081
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1082
|
-
class RtcAnswer$Type extends MessageType<RtcAnswer> {
|
|
1083
|
-
constructor() {
|
|
1084
|
-
super("dht.RtcAnswer", [
|
|
1085
|
-
{ no: 1, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1086
|
-
{ no: 2, name: "connectionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1087
|
-
]);
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
/**
|
|
1091
|
-
* @generated MessageType for protobuf message dht.RtcAnswer
|
|
1092
|
-
*/
|
|
1093
|
-
export const RtcAnswer = new RtcAnswer$Type();
|
|
1094
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1095
|
-
class IceCandidate$Type extends MessageType<IceCandidate> {
|
|
1096
|
-
constructor() {
|
|
1097
|
-
super("dht.IceCandidate", [
|
|
1098
|
-
{ no: 1, name: "candidate", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1099
|
-
{ no: 2, name: "mid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1100
|
-
{ no: 3, name: "connectionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1101
|
-
]);
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
/**
|
|
1105
|
-
* @generated MessageType for protobuf message dht.IceCandidate
|
|
1106
|
-
*/
|
|
1107
|
-
export const IceCandidate = new IceCandidate$Type();
|
|
1108
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1109
|
-
class LockRequest$Type extends MessageType<LockRequest> {
|
|
1110
|
-
constructor() {
|
|
1111
|
-
super("dht.LockRequest", [
|
|
1112
|
-
{ no: 1, name: "lockId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1113
|
-
]);
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
/**
|
|
1117
|
-
* @generated MessageType for protobuf message dht.LockRequest
|
|
1118
|
-
*/
|
|
1119
|
-
export const LockRequest = new LockRequest$Type();
|
|
1120
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1121
|
-
class UnlockRequest$Type extends MessageType<UnlockRequest> {
|
|
1122
|
-
constructor() {
|
|
1123
|
-
super("dht.UnlockRequest", [
|
|
1124
|
-
{ no: 1, name: "lockId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1125
|
-
]);
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
/**
|
|
1129
|
-
* @generated MessageType for protobuf message dht.UnlockRequest
|
|
1130
|
-
*/
|
|
1131
|
-
export const UnlockRequest = new UnlockRequest$Type();
|
|
1132
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1133
|
-
class LockResponse$Type extends MessageType<LockResponse> {
|
|
1134
|
-
constructor() {
|
|
1135
|
-
super("dht.LockResponse", [
|
|
1136
|
-
{ no: 1, name: "accepted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1137
|
-
]);
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
/**
|
|
1141
|
-
* @generated MessageType for protobuf message dht.LockResponse
|
|
1142
|
-
*/
|
|
1143
|
-
export const LockResponse = new LockResponse$Type();
|
|
1144
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1145
|
-
class DisconnectNotice$Type extends MessageType<DisconnectNotice> {
|
|
1146
|
-
constructor() {
|
|
1147
|
-
super("dht.DisconnectNotice", [
|
|
1148
|
-
{ no: 1, name: "disconnectMode", kind: "enum", T: () => ["dht.DisconnectMode", DisconnectMode] }
|
|
1149
|
-
]);
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
/**
|
|
1153
|
-
* @generated MessageType for protobuf message dht.DisconnectNotice
|
|
1154
|
-
*/
|
|
1155
|
-
export const DisconnectNotice = new DisconnectNotice$Type();
|
|
1156
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1157
|
-
class ExternalFetchDataRequest$Type extends MessageType<ExternalFetchDataRequest> {
|
|
1158
|
-
constructor() {
|
|
1159
|
-
super("dht.ExternalFetchDataRequest", [
|
|
1160
|
-
{ no: 1, name: "key", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
1161
|
-
]);
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
/**
|
|
1165
|
-
* @generated MessageType for protobuf message dht.ExternalFetchDataRequest
|
|
1166
|
-
*/
|
|
1167
|
-
export const ExternalFetchDataRequest = new ExternalFetchDataRequest$Type();
|
|
1168
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1169
|
-
class ExternalFetchDataResponse$Type extends MessageType<ExternalFetchDataResponse> {
|
|
1170
|
-
constructor() {
|
|
1171
|
-
super("dht.ExternalFetchDataResponse", [
|
|
1172
|
-
{ no: 1, name: "entries", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DataEntry }
|
|
1173
|
-
]);
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
/**
|
|
1177
|
-
* @generated MessageType for protobuf message dht.ExternalFetchDataResponse
|
|
1178
|
-
*/
|
|
1179
|
-
export const ExternalFetchDataResponse = new ExternalFetchDataResponse$Type();
|
|
1180
|
-
/**
|
|
1181
|
-
* @generated ServiceType for protobuf service dht.DhtNodeRpc
|
|
1182
|
-
*/
|
|
1183
|
-
export const DhtNodeRpc = new ServiceType("dht.DhtNodeRpc", [
|
|
1184
|
-
{ name: "getClosestPeers", options: {}, I: ClosestPeersRequest, O: ClosestPeersResponse },
|
|
1185
|
-
{ name: "getClosestRingPeers", options: {}, I: ClosestRingPeersRequest, O: ClosestRingPeersResponse },
|
|
1186
|
-
{ name: "ping", options: {}, I: PingRequest, O: PingResponse },
|
|
1187
|
-
{ name: "leaveNotice", options: {}, I: LeaveNotice, O: Empty }
|
|
1188
|
-
]);
|
|
1189
|
-
/**
|
|
1190
|
-
* @generated ServiceType for protobuf service dht.RouterRpc
|
|
1191
|
-
*/
|
|
1192
|
-
export const RouterRpc = new ServiceType("dht.RouterRpc", [
|
|
1193
|
-
{ name: "routeMessage", options: {}, I: RouteMessageWrapper, O: RouteMessageAck },
|
|
1194
|
-
{ name: "forwardMessage", options: {}, I: RouteMessageWrapper, O: RouteMessageAck }
|
|
1195
|
-
]);
|
|
1196
|
-
/**
|
|
1197
|
-
* @generated ServiceType for protobuf service dht.RecursiveOperationRpc
|
|
1198
|
-
*/
|
|
1199
|
-
export const RecursiveOperationRpc = new ServiceType("dht.RecursiveOperationRpc", [
|
|
1200
|
-
{ name: "routeRequest", options: {}, I: RouteMessageWrapper, O: RouteMessageAck }
|
|
1201
|
-
]);
|
|
1202
|
-
/**
|
|
1203
|
-
* @generated ServiceType for protobuf service dht.StoreRpc
|
|
1204
|
-
*/
|
|
1205
|
-
export const StoreRpc = new ServiceType("dht.StoreRpc", [
|
|
1206
|
-
{ name: "storeData", options: {}, I: StoreDataRequest, O: StoreDataResponse },
|
|
1207
|
-
{ name: "replicateData", options: {}, I: ReplicateDataRequest, O: Empty }
|
|
1208
|
-
]);
|
|
1209
|
-
/**
|
|
1210
|
-
* @generated ServiceType for protobuf service dht.RecursiveOperationSessionRpc
|
|
1211
|
-
*/
|
|
1212
|
-
export const RecursiveOperationSessionRpc = new ServiceType("dht.RecursiveOperationSessionRpc", [
|
|
1213
|
-
{ name: "sendResponse", options: {}, I: RecursiveOperationResponse, O: Empty }
|
|
1214
|
-
]);
|
|
1215
|
-
/**
|
|
1216
|
-
* @generated ServiceType for protobuf service dht.WebsocketClientConnectorRpc
|
|
1217
|
-
*/
|
|
1218
|
-
export const WebsocketClientConnectorRpc = new ServiceType("dht.WebsocketClientConnectorRpc", [
|
|
1219
|
-
{ name: "requestConnection", options: {}, I: WebsocketConnectionRequest, O: Empty }
|
|
1220
|
-
]);
|
|
1221
|
-
/**
|
|
1222
|
-
* @generated ServiceType for protobuf service dht.WebrtcConnectorRpc
|
|
1223
|
-
*/
|
|
1224
|
-
export const WebrtcConnectorRpc = new ServiceType("dht.WebrtcConnectorRpc", [
|
|
1225
|
-
{ name: "requestConnection", options: {}, I: WebrtcConnectionRequest, O: Empty },
|
|
1226
|
-
{ name: "rtcOffer", options: {}, I: RtcOffer, O: Empty },
|
|
1227
|
-
{ name: "rtcAnswer", options: {}, I: RtcAnswer, O: Empty },
|
|
1228
|
-
{ name: "iceCandidate", options: {}, I: IceCandidate, O: Empty }
|
|
1229
|
-
]);
|
|
1230
|
-
/**
|
|
1231
|
-
* @generated ServiceType for protobuf service dht.ConnectionLockRpc
|
|
1232
|
-
*/
|
|
1233
|
-
export const ConnectionLockRpc = new ServiceType("dht.ConnectionLockRpc", [
|
|
1234
|
-
{ name: "lockRequest", options: {}, I: LockRequest, O: LockResponse },
|
|
1235
|
-
{ name: "unlockRequest", options: {}, I: UnlockRequest, O: Empty },
|
|
1236
|
-
{ name: "gracefulDisconnect", options: {}, I: DisconnectNotice, O: Empty }
|
|
1237
|
-
]);
|
|
1238
|
-
/**
|
|
1239
|
-
* @generated ServiceType for protobuf service dht.ExternalApiRpc
|
|
1240
|
-
*/
|
|
1241
|
-
export const ExternalApiRpc = new ServiceType("dht.ExternalApiRpc", [
|
|
1242
|
-
{ name: "externalFetchData", options: {}, I: ExternalFetchDataRequest, O: ExternalFetchDataResponse },
|
|
1243
|
-
{ name: "externalStoreData", options: {}, I: ExternalStoreDataRequest, O: ExternalStoreDataResponse }
|
|
1244
|
-
]);
|