@streamr/trackerless-network 100.0.0-pretestnet.6 → 100.0.0-testnet-one.0
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 +7 -7
- package/dist/src/identifiers.js +1 -1
- package/dist/src/identifiers.js.map +1 -1
- package/dist/src/logic/DeliveryRpcRemote.d.ts +2 -2
- package/dist/src/logic/DeliveryRpcRemote.js +1 -1
- package/dist/src/logic/DeliveryRpcRemote.js.map +1 -1
- package/dist/src/logic/EntryPointDiscovery.js +2 -1
- package/dist/src/logic/EntryPointDiscovery.js.map +1 -1
- package/dist/src/logic/Layer0Node.d.ts +1 -1
- package/dist/src/logic/RandomGraphNode.js.map +1 -1
- package/dist/src/logic/StreamrNode.js +3 -6
- package/dist/src/logic/StreamrNode.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/HandshakeRpcRemote.d.ts +2 -2
- package/dist/src/logic/neighbor-discovery/HandshakeRpcRemote.js +1 -1
- package/dist/src/logic/neighbor-discovery/HandshakeRpcRemote.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/Handshaker.js +1 -0
- package/dist/src/logic/neighbor-discovery/Handshaker.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborFinder.js +2 -0
- package/dist/src/logic/neighbor-discovery/NeighborFinder.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcRemote.d.ts +2 -2
- 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/propagation/Propagation.js +1 -0
- package/dist/src/logic/propagation/Propagation.js.map +1 -1
- package/dist/src/logic/proxy/ProxyClient.js +5 -2
- package/dist/src/logic/proxy/ProxyClient.js.map +1 -1
- package/dist/src/logic/proxy/ProxyConnectionRpcRemote.d.ts +2 -2
- 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/TemporaryConnectionRpcRemote.d.ts +2 -2
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcRemote.js +1 -1
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcRemote.js.map +1 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.d.ts +5 -16
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.js +2 -9
- package/dist/src/proto/packages/dht/protos/DhtRpc.client.js.map +1 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.d.ts +80 -95
- package/dist/src/proto/packages/dht/protos/DhtRpc.js +67 -66
- package/dist/src/proto/packages/dht/protos/DhtRpc.js.map +1 -1
- package/dist/src/proto/packages/dht/protos/DhtRpc.server.d.ts +3 -10
- package/dist/test/utils/utils.d.ts +1 -1
- package/dist/test/utils/utils.js +1 -1
- package/dist/test/utils/utils.js.map +1 -1
- package/package.json +7 -7
- package/src/identifiers.ts +1 -1
- package/src/logic/DeliveryRpcRemote.ts +2 -2
- package/src/logic/EntryPointDiscovery.ts +4 -3
- package/src/logic/Layer0Node.ts +1 -1
- package/src/logic/RandomGraphNode.ts +1 -1
- package/src/logic/StreamrNode.ts +3 -6
- package/src/logic/neighbor-discovery/HandshakeRpcRemote.ts +2 -2
- package/src/logic/neighbor-discovery/Handshaker.ts +1 -0
- package/src/logic/neighbor-discovery/NeighborFinder.ts +2 -0
- package/src/logic/neighbor-discovery/NeighborUpdateRpcRemote.ts +2 -2
- package/src/logic/propagation/Propagation.ts +1 -0
- package/src/logic/proxy/ProxyClient.ts +4 -2
- package/src/logic/proxy/ProxyConnectionRpcRemote.ts +2 -2
- package/src/logic/temporary-connection/TemporaryConnectionRpcRemote.ts +2 -2
- package/src/proto/packages/dht/protos/DhtRpc.client.ts +6 -20
- package/src/proto/packages/dht/protos/DhtRpc.server.ts +3 -10
- package/src/proto/packages/dht/protos/DhtRpc.ts +103 -135
- package/test/end-to-end/random-graph-with-real-connections.test.ts +1 -1
- package/test/integration/DeliveryRpcRemote.test.ts +2 -2
- package/test/integration/HandshakeRpcRemote.test.ts +2 -2
- package/test/integration/Handshakes.test.ts +3 -3
- package/test/integration/NeighborUpdateRpcRemote.test.ts +3 -3
- package/test/integration/NetworkNode.test.ts +2 -2
- package/test/integration/StreamrNode.test.ts +2 -2
- package/test/integration/joining-streams-on-offline-peers.test.ts +5 -5
- package/test/integration/stream-without-default-entrypoints.test.ts +1 -1
- package/test/unit/EntrypointDiscovery.test.ts +4 -4
- package/test/unit/HandshakeRpcLocal.test.ts +2 -2
- package/test/unit/NodeList.test.ts +3 -3
- package/test/utils/utils.ts +2 -2
|
@@ -110,19 +110,12 @@ class StoreRpcClient {
|
|
|
110
110
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
* @generated from protobuf rpc:
|
|
113
|
+
* @generated from protobuf rpc: replicateData(dht.ReplicateDataRequest) returns (google.protobuf.Empty);
|
|
114
114
|
*/
|
|
115
|
-
|
|
115
|
+
replicateData(input, options) {
|
|
116
116
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
117
117
|
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
118
118
|
}
|
|
119
|
-
/**
|
|
120
|
-
* @generated from protobuf rpc: deleteData(dht.DeleteDataRequest) returns (dht.DeleteDataResponse);
|
|
121
|
-
*/
|
|
122
|
-
deleteData(input, options) {
|
|
123
|
-
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
124
|
-
return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
|
|
125
|
-
}
|
|
126
119
|
}
|
|
127
120
|
exports.StoreRpcClient = StoreRpcClient;
|
|
128
121
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DhtRpc.client.js","sourceRoot":"","sources":["../../../../../../src/proto/packages/dht/protos/DhtRpc.client.ts"],"names":[],"mappings":";;;AAAA,uGAAuG;AACvG,kGAAkG;AAClG,iBAAiB;AACjB,qCAA0C;AAK1C,qCAA6C;AAM7C,qCAA8C;AAK9C,qCAAiD;AAGjD,qCAA0C;AAE1C,qCAAoC;
|
|
1
|
+
{"version":3,"file":"DhtRpc.client.js","sourceRoot":"","sources":["../../../../../../src/proto/packages/dht/protos/DhtRpc.client.ts"],"names":[],"mappings":";;;AAAA,uGAAuG;AACvG,kGAAkG;AAClG,iBAAiB;AACjB,qCAA0C;AAK1C,qCAA6C;AAM7C,qCAA8C;AAK9C,qCAAiD;AAGjD,qCAA0C;AAE1C,qCAAoC;AAIpC,qCAAmC;AACnC,qCAAqC;AAKrC,qCAAsC;AAKtC,0DAA0D;AAsB1D;;GAEG;AACH,MAAa,gBAAgB;IAIzB,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;QAHrD,aAAQ,GAAG,mBAAU,CAAC,QAAQ,CAAC;QAC/B,YAAO,GAAG,mBAAU,CAAC,OAAO,CAAC;QAC7B,YAAO,GAAG,mBAAU,CAAC,OAAO,CAAC;IAE7B,CAAC;IACD;;OAEG;IACH,eAAe,CAAC,KAA0B,EAAE,OAAoB;QAC5D,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,IAAA,4BAAc,EAA4C,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACnH,CAAC;IACD;;OAEG;IACH,IAAI,CAAC,KAAkB,EAAE,OAAoB;QACzC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,IAAA,4BAAc,EAA4B,OAA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+8,25 @@ import { Any } from "../../../google/protobuf/any";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface StoreDataRequest {
|
|
10
10
|
/**
|
|
11
|
-
* @generated from protobuf field: bytes
|
|
11
|
+
* @generated from protobuf field: bytes key = 1;
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
key: Uint8Array;
|
|
14
14
|
/**
|
|
15
15
|
* @generated from protobuf field: google.protobuf.Any data = 2;
|
|
16
16
|
*/
|
|
17
17
|
data?: Any;
|
|
18
18
|
/**
|
|
19
|
-
* @generated from protobuf field:
|
|
19
|
+
* @generated from protobuf field: dht.PeerDescriptor creator = 3;
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
creator?: PeerDescriptor;
|
|
22
22
|
/**
|
|
23
|
-
* @generated from protobuf field: google.protobuf.Timestamp
|
|
23
|
+
* @generated from protobuf field: google.protobuf.Timestamp createdAt = 4;
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
createdAt?: Timestamp;
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: uint32 ttl = 5;
|
|
28
|
+
*/
|
|
29
|
+
ttl: number;
|
|
26
30
|
}
|
|
27
31
|
/**
|
|
28
32
|
* @generated from protobuf message dht.StoreDataResponse
|
|
@@ -56,86 +60,59 @@ export interface ExternalStoreDataResponse {
|
|
|
56
60
|
storers: PeerDescriptor[];
|
|
57
61
|
}
|
|
58
62
|
/**
|
|
59
|
-
* @generated from protobuf message dht.
|
|
60
|
-
*/
|
|
61
|
-
export interface MigrateDataRequest {
|
|
62
|
-
/**
|
|
63
|
-
* @generated from protobuf field: dht.DataEntry dataEntry = 1;
|
|
64
|
-
*/
|
|
65
|
-
dataEntry?: DataEntry;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* @generated from protobuf message dht.MigrateDataResponse
|
|
63
|
+
* @generated from protobuf message dht.ReplicateDataRequest
|
|
69
64
|
*/
|
|
70
|
-
export interface
|
|
65
|
+
export interface ReplicateDataRequest {
|
|
71
66
|
/**
|
|
72
|
-
* @generated from protobuf field:
|
|
67
|
+
* @generated from protobuf field: dht.DataEntry entry = 1;
|
|
73
68
|
*/
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* @generated from protobuf message dht.DeleteDataRequest
|
|
78
|
-
*/
|
|
79
|
-
export interface DeleteDataRequest {
|
|
80
|
-
/**
|
|
81
|
-
* @generated from protobuf field: bytes kademliaId = 1;
|
|
82
|
-
*/
|
|
83
|
-
kademliaId: Uint8Array;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* @generated from protobuf message dht.DeleteDataResponse
|
|
87
|
-
*/
|
|
88
|
-
export interface DeleteDataResponse {
|
|
89
|
-
/**
|
|
90
|
-
* @generated from protobuf field: bool deleted = 1;
|
|
91
|
-
*/
|
|
92
|
-
deleted: boolean;
|
|
69
|
+
entry?: DataEntry;
|
|
93
70
|
}
|
|
94
71
|
/**
|
|
95
72
|
* @generated from protobuf message dht.DataEntry
|
|
96
73
|
*/
|
|
97
74
|
export interface DataEntry {
|
|
98
75
|
/**
|
|
99
|
-
* @generated from protobuf field:
|
|
76
|
+
* @generated from protobuf field: bytes key = 1;
|
|
100
77
|
*/
|
|
101
|
-
|
|
78
|
+
key: Uint8Array;
|
|
102
79
|
/**
|
|
103
|
-
* @generated from protobuf field:
|
|
80
|
+
* @generated from protobuf field: google.protobuf.Any data = 2;
|
|
104
81
|
*/
|
|
105
|
-
|
|
82
|
+
data?: Any;
|
|
106
83
|
/**
|
|
107
|
-
* @generated from protobuf field:
|
|
84
|
+
* @generated from protobuf field: dht.PeerDescriptor creator = 3;
|
|
108
85
|
*/
|
|
109
|
-
|
|
86
|
+
creator?: PeerDescriptor;
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf field: google.protobuf.Timestamp createdAt = 4;
|
|
89
|
+
*/
|
|
90
|
+
createdAt?: Timestamp;
|
|
110
91
|
/**
|
|
111
|
-
* @generated from protobuf field: google.protobuf.Timestamp storedAt =
|
|
92
|
+
* @generated from protobuf field: google.protobuf.Timestamp storedAt = 5;
|
|
112
93
|
*/
|
|
113
94
|
storedAt?: Timestamp;
|
|
114
95
|
/**
|
|
115
|
-
* @generated from protobuf field: uint32 ttl =
|
|
96
|
+
* @generated from protobuf field: uint32 ttl = 6;
|
|
116
97
|
*/
|
|
117
98
|
ttl: number;
|
|
118
99
|
/**
|
|
119
|
-
* @generated from protobuf field: bool stale =
|
|
100
|
+
* @generated from protobuf field: bool stale = 7;
|
|
120
101
|
*/
|
|
121
102
|
stale: boolean;
|
|
122
103
|
/**
|
|
123
|
-
* @generated from protobuf field: bool deleted =
|
|
104
|
+
* @generated from protobuf field: bool deleted = 8;
|
|
124
105
|
*/
|
|
125
106
|
deleted: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* @generated from protobuf field: google.protobuf.Timestamp storerTime = 8;
|
|
128
|
-
*/
|
|
129
|
-
storerTime?: Timestamp;
|
|
130
107
|
}
|
|
131
108
|
/**
|
|
132
109
|
* @generated from protobuf message dht.ClosestPeersRequest
|
|
133
110
|
*/
|
|
134
111
|
export interface ClosestPeersRequest {
|
|
135
112
|
/**
|
|
136
|
-
* @generated from protobuf field: bytes
|
|
113
|
+
* @generated from protobuf field: bytes nodeId = 1;
|
|
137
114
|
*/
|
|
138
|
-
|
|
115
|
+
nodeId: Uint8Array;
|
|
139
116
|
/**
|
|
140
117
|
* @generated from protobuf field: string requestId = 2;
|
|
141
118
|
*/
|
|
@@ -163,9 +140,9 @@ export interface FindRequest {
|
|
|
163
140
|
*/
|
|
164
141
|
sessionId: string;
|
|
165
142
|
/**
|
|
166
|
-
* @generated from protobuf field:
|
|
143
|
+
* @generated from protobuf field: dht.FindAction action = 2;
|
|
167
144
|
*/
|
|
168
|
-
|
|
145
|
+
action: FindAction;
|
|
169
146
|
}
|
|
170
147
|
/**
|
|
171
148
|
* @generated from protobuf message dht.FindResponse
|
|
@@ -180,9 +157,9 @@ export interface FindResponse {
|
|
|
180
157
|
*/
|
|
181
158
|
dataEntries: DataEntry[];
|
|
182
159
|
/**
|
|
183
|
-
* @generated from protobuf field:
|
|
160
|
+
* @generated from protobuf field: bool noCloserNodesFound = 3;
|
|
184
161
|
*/
|
|
185
|
-
noCloserNodesFound
|
|
162
|
+
noCloserNodesFound: boolean;
|
|
186
163
|
/**
|
|
187
164
|
* @generated from protobuf field: repeated dht.PeerDescriptor routingPath = 4;
|
|
188
165
|
*/
|
|
@@ -220,9 +197,9 @@ export interface LeaveNotice {
|
|
|
220
197
|
*/
|
|
221
198
|
export interface PeerDescriptor {
|
|
222
199
|
/**
|
|
223
|
-
* @generated from protobuf field: bytes
|
|
200
|
+
* @generated from protobuf field: bytes nodeId = 1;
|
|
224
201
|
*/
|
|
225
|
-
|
|
202
|
+
nodeId: Uint8Array;
|
|
226
203
|
/**
|
|
227
204
|
* @generated from protobuf field: dht.NodeType type = 2;
|
|
228
205
|
*/
|
|
@@ -299,9 +276,9 @@ export interface RouteMessageAck {
|
|
|
299
276
|
*/
|
|
300
277
|
requestId: string;
|
|
301
278
|
/**
|
|
302
|
-
* @generated from protobuf field:
|
|
279
|
+
* @generated from protobuf field: optional dht.RouteMessageError error = 2;
|
|
303
280
|
*/
|
|
304
|
-
error
|
|
281
|
+
error?: RouteMessageError;
|
|
305
282
|
}
|
|
306
283
|
/**
|
|
307
284
|
* @generated from protobuf message dht.ConnectivityRequest
|
|
@@ -526,10 +503,6 @@ export interface LockResponse {
|
|
|
526
503
|
* @generated from protobuf field: bool accepted = 1;
|
|
527
504
|
*/
|
|
528
505
|
accepted: boolean;
|
|
529
|
-
/**
|
|
530
|
-
* @generated from protobuf field: optional bool reason = 2;
|
|
531
|
-
*/
|
|
532
|
-
reason?: boolean;
|
|
533
506
|
}
|
|
534
507
|
/**
|
|
535
508
|
* @generated from protobuf message dht.DisconnectNotice
|
|
@@ -550,22 +523,35 @@ export interface DisconnectNoticeResponse {
|
|
|
550
523
|
*/
|
|
551
524
|
export interface ExternalFindDataRequest {
|
|
552
525
|
/**
|
|
553
|
-
* @generated from protobuf field: bytes
|
|
526
|
+
* @generated from protobuf field: bytes key = 1;
|
|
554
527
|
*/
|
|
555
|
-
|
|
528
|
+
key: Uint8Array;
|
|
556
529
|
}
|
|
557
530
|
/**
|
|
558
531
|
* @generated from protobuf message dht.ExternalFindDataResponse
|
|
559
532
|
*/
|
|
560
533
|
export interface ExternalFindDataResponse {
|
|
561
534
|
/**
|
|
562
|
-
* @generated from protobuf field: repeated dht.DataEntry
|
|
535
|
+
* @generated from protobuf field: repeated dht.DataEntry entries = 1;
|
|
563
536
|
*/
|
|
564
|
-
|
|
537
|
+
entries: DataEntry[];
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* @generated from protobuf enum dht.FindAction
|
|
541
|
+
*/
|
|
542
|
+
export declare enum FindAction {
|
|
565
543
|
/**
|
|
566
|
-
* @generated from protobuf
|
|
544
|
+
* @generated from protobuf enum value: NODE = 0;
|
|
567
545
|
*/
|
|
568
|
-
|
|
546
|
+
NODE = 0,
|
|
547
|
+
/**
|
|
548
|
+
* @generated from protobuf enum value: FETCH_DATA = 1;
|
|
549
|
+
*/
|
|
550
|
+
FETCH_DATA = 1,
|
|
551
|
+
/**
|
|
552
|
+
* @generated from protobuf enum value: DELETE_DATA = 2;
|
|
553
|
+
*/
|
|
554
|
+
DELETE_DATA = 2
|
|
569
555
|
}
|
|
570
556
|
/**
|
|
571
557
|
* @generated from protobuf enum dht.NodeType
|
|
@@ -605,6 +591,26 @@ export declare enum RpcResponseError {
|
|
|
605
591
|
*/
|
|
606
592
|
UNKNOWN_RPC_METHOD = 3
|
|
607
593
|
}
|
|
594
|
+
/**
|
|
595
|
+
* @generated from protobuf enum dht.RouteMessageError
|
|
596
|
+
*/
|
|
597
|
+
export declare enum RouteMessageError {
|
|
598
|
+
/**
|
|
599
|
+
* @generated from protobuf enum value: NO_TARGETS = 0;
|
|
600
|
+
*/
|
|
601
|
+
NO_TARGETS = 0,
|
|
602
|
+
/**
|
|
603
|
+
* @generated from protobuf enum value: DUPLICATE = 1;
|
|
604
|
+
*/
|
|
605
|
+
DUPLICATE = 1,
|
|
606
|
+
/**
|
|
607
|
+
* TODO: can this be removed? If DhtNode is already stopped the server side requests
|
|
608
|
+
* should not be processed
|
|
609
|
+
*
|
|
610
|
+
* @generated from protobuf enum value: STOPPED = 2;
|
|
611
|
+
*/
|
|
612
|
+
STOPPED = 2
|
|
613
|
+
}
|
|
608
614
|
/**
|
|
609
615
|
* @generated from protobuf enum dht.HandshakeError
|
|
610
616
|
*/
|
|
@@ -688,34 +694,13 @@ declare class ExternalStoreDataResponse$Type extends MessageType$<ExternalStoreD
|
|
|
688
694
|
* @generated MessageType for protobuf message dht.ExternalStoreDataResponse
|
|
689
695
|
*/
|
|
690
696
|
export declare const ExternalStoreDataResponse: ExternalStoreDataResponse$Type;
|
|
691
|
-
declare class
|
|
692
|
-
constructor();
|
|
693
|
-
}
|
|
694
|
-
/**
|
|
695
|
-
* @generated MessageType for protobuf message dht.MigrateDataRequest
|
|
696
|
-
*/
|
|
697
|
-
export declare const MigrateDataRequest: MigrateDataRequest$Type;
|
|
698
|
-
declare class MigrateDataResponse$Type extends MessageType$<MigrateDataResponse> {
|
|
699
|
-
constructor();
|
|
700
|
-
}
|
|
701
|
-
/**
|
|
702
|
-
* @generated MessageType for protobuf message dht.MigrateDataResponse
|
|
703
|
-
*/
|
|
704
|
-
export declare const MigrateDataResponse: MigrateDataResponse$Type;
|
|
705
|
-
declare class DeleteDataRequest$Type extends MessageType$<DeleteDataRequest> {
|
|
706
|
-
constructor();
|
|
707
|
-
}
|
|
708
|
-
/**
|
|
709
|
-
* @generated MessageType for protobuf message dht.DeleteDataRequest
|
|
710
|
-
*/
|
|
711
|
-
export declare const DeleteDataRequest: DeleteDataRequest$Type;
|
|
712
|
-
declare class DeleteDataResponse$Type extends MessageType$<DeleteDataResponse> {
|
|
697
|
+
declare class ReplicateDataRequest$Type extends MessageType$<ReplicateDataRequest> {
|
|
713
698
|
constructor();
|
|
714
699
|
}
|
|
715
700
|
/**
|
|
716
|
-
* @generated MessageType for protobuf message dht.
|
|
701
|
+
* @generated MessageType for protobuf message dht.ReplicateDataRequest
|
|
717
702
|
*/
|
|
718
|
-
export declare const
|
|
703
|
+
export declare const ReplicateDataRequest: ReplicateDataRequest$Type;
|
|
719
704
|
declare class DataEntry$Type extends MessageType$<DataEntry> {
|
|
720
705
|
constructor();
|
|
721
706
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebrtcConnectorRpc = exports.WebsocketConnectorRpc = exports.FindSessionRpc = exports.StoreRpc = exports.FindRpc = exports.RouterRpc = exports.DhtNodeRpc = exports.ExternalFindDataResponse = exports.ExternalFindDataRequest = exports.DisconnectNoticeResponse = exports.DisconnectNotice = exports.LockResponse = exports.UnlockRequest = exports.LockRequest = exports.IceCandidate = exports.RtcAnswer = exports.RtcOffer = exports.WebrtcConnectionRequest = exports.WebsocketConnectionResponse = exports.WebsocketConnectionRequest = exports.Message = exports.HandshakeResponse = exports.HandshakeRequest = exports.ConnectivityResponse = exports.ConnectivityRequest = exports.RouteMessageAck = exports.RouteMessageWrapper = exports.ConnectivityMethod = exports.PeerDescriptor = exports.LeaveNotice = exports.PingResponse = exports.PingRequest = exports.FindResponse = exports.FindRequest = exports.ClosestPeersResponse = exports.ClosestPeersRequest = exports.DataEntry = exports.
|
|
4
|
-
exports.ExternalApiRpc =
|
|
3
|
+
exports.ConnectionLockRpc = exports.WebrtcConnectorRpc = exports.WebsocketConnectorRpc = exports.FindSessionRpc = exports.StoreRpc = exports.FindRpc = exports.RouterRpc = exports.DhtNodeRpc = exports.ExternalFindDataResponse = exports.ExternalFindDataRequest = exports.DisconnectNoticeResponse = exports.DisconnectNotice = exports.LockResponse = exports.UnlockRequest = exports.LockRequest = exports.IceCandidate = exports.RtcAnswer = exports.RtcOffer = exports.WebrtcConnectionRequest = exports.WebsocketConnectionResponse = exports.WebsocketConnectionRequest = exports.Message = exports.HandshakeResponse = exports.HandshakeRequest = exports.ConnectivityResponse = exports.ConnectivityRequest = exports.RouteMessageAck = exports.RouteMessageWrapper = exports.ConnectivityMethod = exports.PeerDescriptor = exports.LeaveNotice = exports.PingResponse = exports.PingRequest = exports.FindResponse = exports.FindRequest = exports.ClosestPeersResponse = exports.ClosestPeersRequest = exports.DataEntry = exports.ReplicateDataRequest = exports.ExternalStoreDataResponse = exports.ExternalStoreDataRequest = exports.StoreDataResponse = exports.StoreDataRequest = exports.DisconnectMode = exports.MessageType = exports.HandshakeError = exports.RouteMessageError = exports.RpcResponseError = exports.NodeType = exports.FindAction = void 0;
|
|
4
|
+
exports.ExternalApiRpc = void 0;
|
|
5
5
|
// @generated by protobuf-ts 2.9.1 with parameter server_generic,generate_dependencies,long_type_number
|
|
6
6
|
// @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
|
|
7
7
|
// tslint:disable
|
|
@@ -11,6 +11,24 @@ const runtime_1 = require("@protobuf-ts/runtime");
|
|
|
11
11
|
const ProtoRpc_1 = require("../../proto-rpc/protos/ProtoRpc");
|
|
12
12
|
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
13
13
|
const any_1 = require("../../../google/protobuf/any");
|
|
14
|
+
/**
|
|
15
|
+
* @generated from protobuf enum dht.FindAction
|
|
16
|
+
*/
|
|
17
|
+
var FindAction;
|
|
18
|
+
(function (FindAction) {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf enum value: NODE = 0;
|
|
21
|
+
*/
|
|
22
|
+
FindAction[FindAction["NODE"] = 0] = "NODE";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf enum value: FETCH_DATA = 1;
|
|
25
|
+
*/
|
|
26
|
+
FindAction[FindAction["FETCH_DATA"] = 1] = "FETCH_DATA";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf enum value: DELETE_DATA = 2;
|
|
29
|
+
*/
|
|
30
|
+
FindAction[FindAction["DELETE_DATA"] = 2] = "DELETE_DATA";
|
|
31
|
+
})(FindAction || (exports.FindAction = FindAction = {}));
|
|
14
32
|
/**
|
|
15
33
|
* @generated from protobuf enum dht.NodeType
|
|
16
34
|
*/
|
|
@@ -51,6 +69,27 @@ var RpcResponseError;
|
|
|
51
69
|
*/
|
|
52
70
|
RpcResponseError[RpcResponseError["UNKNOWN_RPC_METHOD"] = 3] = "UNKNOWN_RPC_METHOD";
|
|
53
71
|
})(RpcResponseError || (exports.RpcResponseError = RpcResponseError = {}));
|
|
72
|
+
/**
|
|
73
|
+
* @generated from protobuf enum dht.RouteMessageError
|
|
74
|
+
*/
|
|
75
|
+
var RouteMessageError;
|
|
76
|
+
(function (RouteMessageError) {
|
|
77
|
+
/**
|
|
78
|
+
* @generated from protobuf enum value: NO_TARGETS = 0;
|
|
79
|
+
*/
|
|
80
|
+
RouteMessageError[RouteMessageError["NO_TARGETS"] = 0] = "NO_TARGETS";
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf enum value: DUPLICATE = 1;
|
|
83
|
+
*/
|
|
84
|
+
RouteMessageError[RouteMessageError["DUPLICATE"] = 1] = "DUPLICATE";
|
|
85
|
+
/**
|
|
86
|
+
* TODO: can this be removed? If DhtNode is already stopped the server side requests
|
|
87
|
+
* should not be processed
|
|
88
|
+
*
|
|
89
|
+
* @generated from protobuf enum value: STOPPED = 2;
|
|
90
|
+
*/
|
|
91
|
+
RouteMessageError[RouteMessageError["STOPPED"] = 2] = "STOPPED";
|
|
92
|
+
})(RouteMessageError || (exports.RouteMessageError = RouteMessageError = {}));
|
|
54
93
|
/**
|
|
55
94
|
* @generated from protobuf enum dht.HandshakeError
|
|
56
95
|
*/
|
|
@@ -114,10 +153,11 @@ var DisconnectMode;
|
|
|
114
153
|
class StoreDataRequest$Type extends runtime_1.MessageType {
|
|
115
154
|
constructor() {
|
|
116
155
|
super("dht.StoreDataRequest", [
|
|
117
|
-
{ no: 1, name: "
|
|
156
|
+
{ no: 1, name: "key", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
118
157
|
{ no: 2, name: "data", kind: "message", T: () => any_1.Any },
|
|
119
|
-
{ no: 3, name: "
|
|
120
|
-
{ no: 4, name: "
|
|
158
|
+
{ no: 3, name: "creator", kind: "message", T: () => exports.PeerDescriptor },
|
|
159
|
+
{ no: 4, name: "createdAt", kind: "message", T: () => timestamp_1.Timestamp },
|
|
160
|
+
{ no: 5, name: "ttl", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
121
161
|
]);
|
|
122
162
|
}
|
|
123
163
|
}
|
|
@@ -163,65 +203,29 @@ class ExternalStoreDataResponse$Type extends runtime_1.MessageType {
|
|
|
163
203
|
*/
|
|
164
204
|
exports.ExternalStoreDataResponse = new ExternalStoreDataResponse$Type();
|
|
165
205
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
166
|
-
class
|
|
167
|
-
constructor() {
|
|
168
|
-
super("dht.MigrateDataRequest", [
|
|
169
|
-
{ no: 1, name: "dataEntry", kind: "message", T: () => exports.DataEntry }
|
|
170
|
-
]);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* @generated MessageType for protobuf message dht.MigrateDataRequest
|
|
175
|
-
*/
|
|
176
|
-
exports.MigrateDataRequest = new MigrateDataRequest$Type();
|
|
177
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
178
|
-
class MigrateDataResponse$Type extends runtime_1.MessageType {
|
|
179
|
-
constructor() {
|
|
180
|
-
super("dht.MigrateDataResponse", [
|
|
181
|
-
{ no: 1, name: "error", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
182
|
-
]);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* @generated MessageType for protobuf message dht.MigrateDataResponse
|
|
187
|
-
*/
|
|
188
|
-
exports.MigrateDataResponse = new MigrateDataResponse$Type();
|
|
189
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
190
|
-
class DeleteDataRequest$Type extends runtime_1.MessageType {
|
|
206
|
+
class ReplicateDataRequest$Type extends runtime_1.MessageType {
|
|
191
207
|
constructor() {
|
|
192
|
-
super("dht.
|
|
193
|
-
{ no: 1, name: "
|
|
208
|
+
super("dht.ReplicateDataRequest", [
|
|
209
|
+
{ no: 1, name: "entry", kind: "message", T: () => exports.DataEntry }
|
|
194
210
|
]);
|
|
195
211
|
}
|
|
196
212
|
}
|
|
197
213
|
/**
|
|
198
|
-
* @generated MessageType for protobuf message dht.
|
|
214
|
+
* @generated MessageType for protobuf message dht.ReplicateDataRequest
|
|
199
215
|
*/
|
|
200
|
-
exports.
|
|
201
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
202
|
-
class DeleteDataResponse$Type extends runtime_1.MessageType {
|
|
203
|
-
constructor() {
|
|
204
|
-
super("dht.DeleteDataResponse", [
|
|
205
|
-
{ no: 1, name: "deleted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
206
|
-
]);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* @generated MessageType for protobuf message dht.DeleteDataResponse
|
|
211
|
-
*/
|
|
212
|
-
exports.DeleteDataResponse = new DeleteDataResponse$Type();
|
|
216
|
+
exports.ReplicateDataRequest = new ReplicateDataRequest$Type();
|
|
213
217
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
214
218
|
class DataEntry$Type extends runtime_1.MessageType {
|
|
215
219
|
constructor() {
|
|
216
220
|
super("dht.DataEntry", [
|
|
217
|
-
{ no: 1, name: "
|
|
218
|
-
{ no: 2, name: "
|
|
219
|
-
{ no: 3, name: "
|
|
220
|
-
{ no: 4, name: "
|
|
221
|
-
{ no: 5, name: "
|
|
222
|
-
{ no: 6, name: "
|
|
223
|
-
{ no: 7, name: "
|
|
224
|
-
{ no: 8, name: "
|
|
221
|
+
{ no: 1, name: "key", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
222
|
+
{ no: 2, name: "data", kind: "message", T: () => any_1.Any },
|
|
223
|
+
{ no: 3, name: "creator", kind: "message", T: () => exports.PeerDescriptor },
|
|
224
|
+
{ no: 4, name: "createdAt", kind: "message", T: () => timestamp_1.Timestamp },
|
|
225
|
+
{ no: 5, name: "storedAt", kind: "message", T: () => timestamp_1.Timestamp },
|
|
226
|
+
{ no: 6, name: "ttl", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
227
|
+
{ no: 7, name: "stale", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
228
|
+
{ no: 8, name: "deleted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
225
229
|
]);
|
|
226
230
|
}
|
|
227
231
|
}
|
|
@@ -233,7 +237,7 @@ exports.DataEntry = new DataEntry$Type();
|
|
|
233
237
|
class ClosestPeersRequest$Type extends runtime_1.MessageType {
|
|
234
238
|
constructor() {
|
|
235
239
|
super("dht.ClosestPeersRequest", [
|
|
236
|
-
{ no: 1, name: "
|
|
240
|
+
{ no: 1, name: "nodeId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
237
241
|
{ no: 2, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
238
242
|
]);
|
|
239
243
|
}
|
|
@@ -260,7 +264,7 @@ class FindRequest$Type extends runtime_1.MessageType {
|
|
|
260
264
|
constructor() {
|
|
261
265
|
super("dht.FindRequest", [
|
|
262
266
|
{ no: 1, name: "sessionId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
263
|
-
{ no: 2, name: "
|
|
267
|
+
{ no: 2, name: "action", kind: "enum", T: () => ["dht.FindAction", FindAction] }
|
|
264
268
|
]);
|
|
265
269
|
}
|
|
266
270
|
}
|
|
@@ -274,7 +278,7 @@ class FindResponse$Type extends runtime_1.MessageType {
|
|
|
274
278
|
super("dht.FindResponse", [
|
|
275
279
|
{ no: 1, name: "closestConnectedPeers", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.PeerDescriptor },
|
|
276
280
|
{ no: 2, name: "dataEntries", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.DataEntry },
|
|
277
|
-
{ no: 3, name: "noCloserNodesFound", kind: "scalar",
|
|
281
|
+
{ no: 3, name: "noCloserNodesFound", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
278
282
|
{ no: 4, name: "routingPath", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.PeerDescriptor }
|
|
279
283
|
]);
|
|
280
284
|
}
|
|
@@ -323,7 +327,7 @@ exports.LeaveNotice = new LeaveNotice$Type();
|
|
|
323
327
|
class PeerDescriptor$Type extends runtime_1.MessageType {
|
|
324
328
|
constructor() {
|
|
325
329
|
super("dht.PeerDescriptor", [
|
|
326
|
-
{ no: 1, name: "
|
|
330
|
+
{ no: 1, name: "nodeId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
327
331
|
{ no: 2, name: "type", kind: "enum", T: () => ["dht.NodeType", NodeType] },
|
|
328
332
|
{ no: 3, name: "udp", kind: "message", T: () => exports.ConnectivityMethod },
|
|
329
333
|
{ no: 4, name: "tcp", kind: "message", T: () => exports.ConnectivityMethod },
|
|
@@ -372,7 +376,7 @@ class RouteMessageAck$Type extends runtime_1.MessageType {
|
|
|
372
376
|
constructor() {
|
|
373
377
|
super("dht.RouteMessageAck", [
|
|
374
378
|
{ no: 1, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
375
|
-
{ no: 2, name: "error", kind: "
|
|
379
|
+
{ no: 2, name: "error", kind: "enum", opt: true, T: () => ["dht.RouteMessageError", RouteMessageError] }
|
|
376
380
|
]);
|
|
377
381
|
}
|
|
378
382
|
}
|
|
@@ -557,8 +561,7 @@ exports.UnlockRequest = new UnlockRequest$Type();
|
|
|
557
561
|
class LockResponse$Type extends runtime_1.MessageType {
|
|
558
562
|
constructor() {
|
|
559
563
|
super("dht.LockResponse", [
|
|
560
|
-
{ no: 1, name: "accepted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
561
|
-
{ no: 2, name: "reason", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
564
|
+
{ no: 1, name: "accepted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
562
565
|
]);
|
|
563
566
|
}
|
|
564
567
|
}
|
|
@@ -592,7 +595,7 @@ exports.DisconnectNoticeResponse = new DisconnectNoticeResponse$Type();
|
|
|
592
595
|
class ExternalFindDataRequest$Type extends runtime_1.MessageType {
|
|
593
596
|
constructor() {
|
|
594
597
|
super("dht.ExternalFindDataRequest", [
|
|
595
|
-
{ no: 1, name: "
|
|
598
|
+
{ no: 1, name: "key", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
596
599
|
]);
|
|
597
600
|
}
|
|
598
601
|
}
|
|
@@ -604,8 +607,7 @@ exports.ExternalFindDataRequest = new ExternalFindDataRequest$Type();
|
|
|
604
607
|
class ExternalFindDataResponse$Type extends runtime_1.MessageType {
|
|
605
608
|
constructor() {
|
|
606
609
|
super("dht.ExternalFindDataResponse", [
|
|
607
|
-
{ no: 1, name: "
|
|
608
|
-
{ no: 2, name: "error", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
610
|
+
{ no: 1, name: "entries", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => exports.DataEntry }
|
|
609
611
|
]);
|
|
610
612
|
}
|
|
611
613
|
}
|
|
@@ -639,8 +641,7 @@ exports.FindRpc = new runtime_rpc_1.ServiceType("dht.FindRpc", [
|
|
|
639
641
|
*/
|
|
640
642
|
exports.StoreRpc = new runtime_rpc_1.ServiceType("dht.StoreRpc", [
|
|
641
643
|
{ name: "storeData", options: {}, I: exports.StoreDataRequest, O: exports.StoreDataResponse },
|
|
642
|
-
{ name: "
|
|
643
|
-
{ name: "deleteData", options: {}, I: exports.DeleteDataRequest, O: exports.DeleteDataResponse }
|
|
644
|
+
{ name: "replicateData", options: {}, I: exports.ReplicateDataRequest, O: empty_1.Empty }
|
|
644
645
|
]);
|
|
645
646
|
/**
|
|
646
647
|
* @generated ServiceType for protobuf service dht.FindSessionRpc
|