@streamr/trackerless-network 103.1.2 → 103.2.0-experiment.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.
Files changed (172) hide show
  1. package/dist/exports.cjs +4489 -0
  2. package/dist/exports.cjs.map +1 -0
  3. package/dist/exports.d.ts +1391 -0
  4. package/dist/exports.js +4477 -0
  5. package/dist/exports.js.map +1 -0
  6. package/package.json +25 -18
  7. package/dist/generated/google/protobuf/any.d.ts +0 -180
  8. package/dist/generated/google/protobuf/any.js +0 -155
  9. package/dist/generated/google/protobuf/any.js.map +0 -1
  10. package/dist/generated/google/protobuf/empty.d.ts +0 -31
  11. package/dist/generated/google/protobuf/empty.js +0 -45
  12. package/dist/generated/google/protobuf/empty.js.map +0 -1
  13. package/dist/generated/google/protobuf/timestamp.d.ts +0 -156
  14. package/dist/generated/google/protobuf/timestamp.js +0 -136
  15. package/dist/generated/google/protobuf/timestamp.js.map +0 -1
  16. package/dist/generated/packages/dht/protos/DhtRpc.client.d.ts +0 -371
  17. package/dist/generated/packages/dht/protos/DhtRpc.client.js +0 -292
  18. package/dist/generated/packages/dht/protos/DhtRpc.client.js.map +0 -1
  19. package/dist/generated/packages/dht/protos/DhtRpc.d.ts +0 -1031
  20. package/dist/generated/packages/dht/protos/DhtRpc.js +0 -702
  21. package/dist/generated/packages/dht/protos/DhtRpc.js.map +0 -1
  22. package/dist/generated/packages/dht/protos/DhtRpc.server.d.ts +0 -168
  23. package/dist/generated/packages/dht/protos/DhtRpc.server.js +0 -3
  24. package/dist/generated/packages/dht/protos/DhtRpc.server.js.map +0 -1
  25. package/dist/generated/packages/proto-rpc/protos/ProtoRpc.d.ts +0 -87
  26. package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js +0 -66
  27. package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js.map +0 -1
  28. package/dist/generated/packages/trackerless-network/protos/NetworkRpc.client.d.ts +0 -237
  29. package/dist/generated/packages/trackerless-network/protos/NetworkRpc.client.js +0 -190
  30. package/dist/generated/packages/trackerless-network/protos/NetworkRpc.client.js.map +0 -1
  31. package/dist/generated/packages/trackerless-network/protos/NetworkRpc.d.ts +0 -687
  32. package/dist/generated/packages/trackerless-network/protos/NetworkRpc.js +0 -479
  33. package/dist/generated/packages/trackerless-network/protos/NetworkRpc.js.map +0 -1
  34. package/dist/generated/packages/trackerless-network/protos/NetworkRpc.server.d.ts +0 -102
  35. package/dist/generated/packages/trackerless-network/protos/NetworkRpc.server.js +0 -3
  36. package/dist/generated/packages/trackerless-network/protos/NetworkRpc.server.js.map +0 -1
  37. package/dist/package.json +0 -56
  38. package/dist/src/ContentDeliveryManager.d.ts +0 -82
  39. package/dist/src/ContentDeliveryManager.js +0 -325
  40. package/dist/src/ContentDeliveryManager.js.map +0 -1
  41. package/dist/src/NetworkNode.d.ts +0 -44
  42. package/dist/src/NetworkNode.js +0 -98
  43. package/dist/src/NetworkNode.js.map +0 -1
  44. package/dist/src/NetworkStack.d.ts +0 -36
  45. package/dist/src/NetworkStack.js +0 -165
  46. package/dist/src/NetworkStack.js.map +0 -1
  47. package/dist/src/NodeInfoClient.d.ts +0 -9
  48. package/dist/src/NodeInfoClient.js +0 -21
  49. package/dist/src/NodeInfoClient.js.map +0 -1
  50. package/dist/src/NodeInfoRpcLocal.d.ts +0 -12
  51. package/dist/src/NodeInfoRpcLocal.js +0 -22
  52. package/dist/src/NodeInfoRpcLocal.js.map +0 -1
  53. package/dist/src/NodeInfoRpcRemote.d.ts +0 -6
  54. package/dist/src/NodeInfoRpcRemote.js +0 -11
  55. package/dist/src/NodeInfoRpcRemote.js.map +0 -1
  56. package/dist/src/StreamPartNetworkSplitAvoidance.d.ts +0 -18
  57. package/dist/src/StreamPartNetworkSplitAvoidance.js +0 -74
  58. package/dist/src/StreamPartNetworkSplitAvoidance.js.map +0 -1
  59. package/dist/src/StreamPartReconnect.d.ts +0 -11
  60. package/dist/src/StreamPartReconnect.js +0 -37
  61. package/dist/src/StreamPartReconnect.js.map +0 -1
  62. package/dist/src/content-delivery-layer/ContentDeliveryLayerNode.d.ts +0 -78
  63. package/dist/src/content-delivery-layer/ContentDeliveryLayerNode.js +0 -240
  64. package/dist/src/content-delivery-layer/ContentDeliveryLayerNode.js.map +0 -1
  65. package/dist/src/content-delivery-layer/ContentDeliveryRpcLocal.d.ts +0 -23
  66. package/dist/src/content-delivery-layer/ContentDeliveryRpcLocal.js +0 -40
  67. package/dist/src/content-delivery-layer/ContentDeliveryRpcLocal.js.map +0 -1
  68. package/dist/src/content-delivery-layer/ContentDeliveryRpcRemote.d.ts +0 -11
  69. package/dist/src/content-delivery-layer/ContentDeliveryRpcRemote.js +0 -38
  70. package/dist/src/content-delivery-layer/ContentDeliveryRpcRemote.js.map +0 -1
  71. package/dist/src/content-delivery-layer/DuplicateMessageDetector.d.ts +0 -55
  72. package/dist/src/content-delivery-layer/DuplicateMessageDetector.js +0 -159
  73. package/dist/src/content-delivery-layer/DuplicateMessageDetector.js.map +0 -1
  74. package/dist/src/content-delivery-layer/NodeList.d.ts +0 -26
  75. package/dist/src/content-delivery-layer/NodeList.js +0 -93
  76. package/dist/src/content-delivery-layer/NodeList.js.map +0 -1
  77. package/dist/src/content-delivery-layer/createContentDeliveryLayerNode.d.ts +0 -14
  78. package/dist/src/content-delivery-layer/createContentDeliveryLayerNode.js +0 -129
  79. package/dist/src/content-delivery-layer/createContentDeliveryLayerNode.js.map +0 -1
  80. package/dist/src/content-delivery-layer/formStreamPartDeliveryServiceId.d.ts +0 -3
  81. package/dist/src/content-delivery-layer/formStreamPartDeliveryServiceId.js +0 -9
  82. package/dist/src/content-delivery-layer/formStreamPartDeliveryServiceId.js.map +0 -1
  83. package/dist/src/content-delivery-layer/inspection/InspectSession.d.ts +0 -19
  84. package/dist/src/content-delivery-layer/inspection/InspectSession.js +0 -43
  85. package/dist/src/content-delivery-layer/inspection/InspectSession.js.map +0 -1
  86. package/dist/src/content-delivery-layer/inspection/Inspector.d.ts +0 -30
  87. package/dist/src/content-delivery-layer/inspection/Inspector.js +0 -75
  88. package/dist/src/content-delivery-layer/inspection/Inspector.js.map +0 -1
  89. package/dist/src/content-delivery-layer/neighbor-discovery/HandshakeRpcLocal.d.ts +0 -29
  90. package/dist/src/content-delivery-layer/neighbor-discovery/HandshakeRpcLocal.js +0 -106
  91. package/dist/src/content-delivery-layer/neighbor-discovery/HandshakeRpcLocal.js.map +0 -1
  92. package/dist/src/content-delivery-layer/neighbor-discovery/HandshakeRpcRemote.d.ts +0 -14
  93. package/dist/src/content-delivery-layer/neighbor-discovery/HandshakeRpcRemote.js +0 -55
  94. package/dist/src/content-delivery-layer/neighbor-discovery/HandshakeRpcRemote.js.map +0 -1
  95. package/dist/src/content-delivery-layer/neighbor-discovery/Handshaker.d.ts +0 -32
  96. package/dist/src/content-delivery-layer/neighbor-discovery/Handshaker.js +0 -149
  97. package/dist/src/content-delivery-layer/neighbor-discovery/Handshaker.js.map +0 -1
  98. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborFinder.d.ts +0 -22
  99. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborFinder.js +0 -64
  100. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborFinder.js.map +0 -1
  101. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborUpdateManager.d.ts +0 -27
  102. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborUpdateManager.js +0 -47
  103. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborUpdateManager.js.map +0 -1
  104. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborUpdateRpcLocal.d.ts +0 -25
  105. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborUpdateRpcLocal.js +0 -52
  106. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborUpdateRpcLocal.js.map +0 -1
  107. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborUpdateRpcRemote.d.ts +0 -11
  108. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborUpdateRpcRemote.js +0 -31
  109. package/dist/src/content-delivery-layer/neighbor-discovery/NeighborUpdateRpcRemote.js.map +0 -1
  110. package/dist/src/content-delivery-layer/plumtree/PausedNeighbors.d.ts +0 -12
  111. package/dist/src/content-delivery-layer/plumtree/PausedNeighbors.js +0 -50
  112. package/dist/src/content-delivery-layer/plumtree/PausedNeighbors.js.map +0 -1
  113. package/dist/src/content-delivery-layer/plumtree/PlumtreeManager.d.ts +0 -37
  114. package/dist/src/content-delivery-layer/plumtree/PlumtreeManager.js +0 -141
  115. package/dist/src/content-delivery-layer/plumtree/PlumtreeManager.js.map +0 -1
  116. package/dist/src/content-delivery-layer/plumtree/PlumtreeRpcLocal.d.ts +0 -20
  117. package/dist/src/content-delivery-layer/plumtree/PlumtreeRpcLocal.js +0 -37
  118. package/dist/src/content-delivery-layer/plumtree/PlumtreeRpcLocal.js.map +0 -1
  119. package/dist/src/content-delivery-layer/plumtree/PlumtreeRpcRemote.d.ts +0 -8
  120. package/dist/src/content-delivery-layer/plumtree/PlumtreeRpcRemote.js +0 -26
  121. package/dist/src/content-delivery-layer/plumtree/PlumtreeRpcRemote.js.map +0 -1
  122. package/dist/src/content-delivery-layer/propagation/FifoMapWithTTL.d.ts +0 -29
  123. package/dist/src/content-delivery-layer/propagation/FifoMapWithTTL.js +0 -93
  124. package/dist/src/content-delivery-layer/propagation/FifoMapWithTTL.js.map +0 -1
  125. package/dist/src/content-delivery-layer/propagation/Propagation.d.ts +0 -35
  126. package/dist/src/content-delivery-layer/propagation/Propagation.js +0 -68
  127. package/dist/src/content-delivery-layer/propagation/Propagation.js.map +0 -1
  128. package/dist/src/content-delivery-layer/propagation/PropagationTaskStore.d.ts +0 -22
  129. package/dist/src/content-delivery-layer/propagation/PropagationTaskStore.js +0 -33
  130. package/dist/src/content-delivery-layer/propagation/PropagationTaskStore.js.map +0 -1
  131. package/dist/src/content-delivery-layer/proxy/ProxyClient.d.ts +0 -46
  132. package/dist/src/content-delivery-layer/proxy/ProxyClient.js +0 -214
  133. package/dist/src/content-delivery-layer/proxy/ProxyClient.js.map +0 -1
  134. package/dist/src/content-delivery-layer/proxy/ProxyConnectionRpcLocal.d.ts +0 -34
  135. package/dist/src/content-delivery-layer/proxy/ProxyConnectionRpcLocal.js +0 -72
  136. package/dist/src/content-delivery-layer/proxy/ProxyConnectionRpcLocal.js.map +0 -1
  137. package/dist/src/content-delivery-layer/proxy/ProxyConnectionRpcRemote.d.ts +0 -7
  138. package/dist/src/content-delivery-layer/proxy/ProxyConnectionRpcRemote.js +0 -27
  139. package/dist/src/content-delivery-layer/proxy/ProxyConnectionRpcRemote.js.map +0 -1
  140. package/dist/src/content-delivery-layer/temporary-connection/TemporaryConnectionRpcLocal.d.ts +0 -26
  141. package/dist/src/content-delivery-layer/temporary-connection/TemporaryConnectionRpcLocal.js +0 -45
  142. package/dist/src/content-delivery-layer/temporary-connection/TemporaryConnectionRpcLocal.js.map +0 -1
  143. package/dist/src/content-delivery-layer/temporary-connection/TemporaryConnectionRpcRemote.d.ts +0 -6
  144. package/dist/src/content-delivery-layer/temporary-connection/TemporaryConnectionRpcRemote.js +0 -31
  145. package/dist/src/content-delivery-layer/temporary-connection/TemporaryConnectionRpcRemote.js.map +0 -1
  146. package/dist/src/control-layer/ControlLayerNode.d.ts +0 -16
  147. package/dist/src/control-layer/ControlLayerNode.js +0 -3
  148. package/dist/src/control-layer/ControlLayerNode.js.map +0 -1
  149. package/dist/src/control-layer/ExternalNetworkRpc.d.ts +0 -16
  150. package/dist/src/control-layer/ExternalNetworkRpc.js +0 -23
  151. package/dist/src/control-layer/ExternalNetworkRpc.js.map +0 -1
  152. package/dist/src/control-layer/PeerDescriptorStoreManager.d.ts +0 -28
  153. package/dist/src/control-layer/PeerDescriptorStoreManager.js +0 -78
  154. package/dist/src/control-layer/PeerDescriptorStoreManager.js.map +0 -1
  155. package/dist/src/discovery-layer/DiscoveryLayerNode.d.ts +0 -28
  156. package/dist/src/discovery-layer/DiscoveryLayerNode.js +0 -3
  157. package/dist/src/discovery-layer/DiscoveryLayerNode.js.map +0 -1
  158. package/dist/src/exports.d.ts +0 -6
  159. package/dist/src/exports.js +0 -24
  160. package/dist/src/exports.js.map +0 -1
  161. package/dist/src/types.d.ts +0 -6
  162. package/dist/src/types.js +0 -3
  163. package/dist/src/types.js.map +0 -1
  164. package/dist/src/utils.d.ts +0 -3
  165. package/dist/src/utils.js +0 -17
  166. package/dist/src/utils.js.map +0 -1
  167. package/dist/test/benchmark/first-message.d.ts +0 -1
  168. package/dist/test/benchmark/first-message.js +0 -139
  169. package/dist/test/benchmark/first-message.js.map +0 -1
  170. package/dist/test/utils/utils.d.ts +0 -15
  171. package/dist/test/utils/utils.js +0 -106
  172. package/dist/test/utils/utils.js.map +0 -1
@@ -1,136 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Timestamp = void 0;
4
- const runtime_1 = require("@protobuf-ts/runtime");
5
- const runtime_2 = require("@protobuf-ts/runtime");
6
- const runtime_3 = require("@protobuf-ts/runtime");
7
- const runtime_4 = require("@protobuf-ts/runtime");
8
- const runtime_5 = require("@protobuf-ts/runtime");
9
- const runtime_6 = require("@protobuf-ts/runtime");
10
- // @generated message type with reflection information, may provide speed optimized methods
11
- class Timestamp$Type extends runtime_6.MessageType {
12
- constructor() {
13
- super("google.protobuf.Timestamp", [
14
- { no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
15
- { no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
16
- ]);
17
- }
18
- /**
19
- * Creates a new `Timestamp` for the current time.
20
- */
21
- now() {
22
- const msg = this.create();
23
- const ms = Date.now();
24
- msg.seconds = runtime_5.PbLong.from(Math.floor(ms / 1000)).toNumber();
25
- msg.nanos = (ms % 1000) * 1000000;
26
- return msg;
27
- }
28
- /**
29
- * Converts a `Timestamp` to a JavaScript Date.
30
- */
31
- toDate(message) {
32
- return new Date(runtime_5.PbLong.from(message.seconds).toNumber() * 1000 + Math.ceil(message.nanos / 1000000));
33
- }
34
- /**
35
- * Converts a JavaScript Date to a `Timestamp`.
36
- */
37
- fromDate(date) {
38
- const msg = this.create();
39
- const ms = date.getTime();
40
- msg.seconds = runtime_5.PbLong.from(Math.floor(ms / 1000)).toNumber();
41
- msg.nanos = ((ms % 1000) + (ms < 0 && ms % 1000 !== 0 ? 1000 : 0)) * 1000000;
42
- return msg;
43
- }
44
- /**
45
- * In JSON format, the `Timestamp` type is encoded as a string
46
- * in the RFC 3339 format.
47
- */
48
- internalJsonWrite(message, options) {
49
- let ms = runtime_5.PbLong.from(message.seconds).toNumber() * 1000;
50
- if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
51
- throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
52
- if (message.nanos < 0)
53
- throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");
54
- let z = "Z";
55
- if (message.nanos > 0) {
56
- let nanosStr = (message.nanos + 1000000000).toString().substring(1);
57
- if (nanosStr.substring(3) === "000000")
58
- z = "." + nanosStr.substring(0, 3) + "Z";
59
- else if (nanosStr.substring(6) === "000")
60
- z = "." + nanosStr.substring(0, 6) + "Z";
61
- else
62
- z = "." + nanosStr + "Z";
63
- }
64
- return new Date(ms).toISOString().replace(".000Z", z);
65
- }
66
- /**
67
- * In JSON format, the `Timestamp` type is encoded as a string
68
- * in the RFC 3339 format.
69
- */
70
- internalJsonRead(json, options, target) {
71
- if (typeof json !== "string")
72
- throw new Error("Unable to parse Timestamp from JSON " + (0, runtime_4.typeofJsonValue)(json) + ".");
73
- let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
74
- if (!matches)
75
- throw new Error("Unable to parse Timestamp from JSON. Invalid format.");
76
- let ms = Date.parse(matches[1] + "-" + matches[2] + "-" + matches[3] + "T" + matches[4] + ":" + matches[5] + ":" + matches[6] + (matches[8] ? matches[8] : "Z"));
77
- if (Number.isNaN(ms))
78
- throw new Error("Unable to parse Timestamp from JSON. Invalid value.");
79
- if (ms < Date.parse("0001-01-01T00:00:00Z") || ms > Date.parse("9999-12-31T23:59:59Z"))
80
- throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");
81
- if (!target)
82
- target = this.create();
83
- target.seconds = runtime_5.PbLong.from(ms / 1000).toNumber();
84
- target.nanos = 0;
85
- if (matches[7])
86
- target.nanos = (parseInt("1" + matches[7] + "0".repeat(9 - matches[7].length)) - 1000000000);
87
- return target;
88
- }
89
- create(value) {
90
- const message = globalThis.Object.create((this.messagePrototype));
91
- message.seconds = 0;
92
- message.nanos = 0;
93
- if (value !== undefined)
94
- (0, runtime_3.reflectionMergePartial)(this, message, value);
95
- return message;
96
- }
97
- internalBinaryRead(reader, length, options, target) {
98
- let message = target ?? this.create(), end = reader.pos + length;
99
- while (reader.pos < end) {
100
- let [fieldNo, wireType] = reader.tag();
101
- switch (fieldNo) {
102
- case /* int64 seconds */ 1:
103
- message.seconds = reader.int64().toNumber();
104
- break;
105
- case /* int32 nanos */ 2:
106
- message.nanos = reader.int32();
107
- break;
108
- default:
109
- let u = options.readUnknownField;
110
- if (u === "throw")
111
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
112
- let d = reader.skip(wireType);
113
- if (u !== false)
114
- (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
115
- }
116
- }
117
- return message;
118
- }
119
- internalBinaryWrite(message, writer, options) {
120
- /* int64 seconds = 1; */
121
- if (message.seconds !== 0)
122
- writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds);
123
- /* int32 nanos = 2; */
124
- if (message.nanos !== 0)
125
- writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos);
126
- let u = options.writeUnknownFields;
127
- if (u !== false)
128
- (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
129
- return writer;
130
- }
131
- }
132
- /**
133
- * @generated MessageType for protobuf message google.protobuf.Timestamp
134
- */
135
- exports.Timestamp = new Timestamp$Type();
136
- //# sourceMappingURL=timestamp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../generated/google/protobuf/timestamp.ts"],"names":[],"mappings":";;;AAoCA,kDAAgD;AAGhD,kDAA2D;AAE3D,kDAA8D;AAC9D,kDAAuD;AAIvD,kDAA8C;AAC9C,kDAAmD;AAmHnD,2FAA2F;AAC3F,MAAM,cAAe,SAAQ,qBAAsB;IAC/C;QACI,KAAK,CAAC,2BAA2B,EAAE;YAC/B,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,oBAAoB,EAAE,CAAC,EAAE,CAAC,CAAC,mBAAmB,EAAE;YAC/F,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,oBAAoB,EAAE;SACtE,CAAC,CAAC;IACP,CAAC;IACD;;OAEG;IACH,GAAG;QACC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAC1B,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACtB,GAAG,CAAC,OAAO,GAAG,gBAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC5D,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC;QAClC,OAAO,GAAG,CAAC;I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IACD,mBAAmB,CAAC,OAAkB,EAAE,MAAqB,EAAE,OAA2B;QACtF,wBAAwB;QACxB,IAAI,OAAO,CAAC,OAAO,KAAK,CAAC;YACrB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,kBAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC1D,sBAAsB;QACtB,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC;YACnB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,kBAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACxD,IAAI,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,6BAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACU,QAAA,SAAS,GAAG,IAAI,cAAc,EAAE,CAAC"}
@@ -1,371 +0,0 @@
1
- import type { ExternalFindClosestNodesResponse } from "./DhtRpc";
2
- import type { ExternalFindClosestNodesRequest } from "./DhtRpc";
3
- import type { ExternalStoreDataResponse } from "./DhtRpc";
4
- import type { ExternalStoreDataRequest } from "./DhtRpc";
5
- import type { ExternalFetchDataResponse } from "./DhtRpc";
6
- import type { ExternalFetchDataRequest } from "./DhtRpc";
7
- import type { SetPrivateRequest } from "./DhtRpc";
8
- import type { DisconnectNotice } from "./DhtRpc";
9
- import type { UnlockRequest } from "./DhtRpc";
10
- import type { LockResponse } from "./DhtRpc";
11
- import type { LockRequest } from "./DhtRpc";
12
- import type { IceCandidate } from "./DhtRpc";
13
- import type { RtcAnswer } from "./DhtRpc";
14
- import type { RtcOffer } from "./DhtRpc";
15
- import type { WebrtcConnectionRequest } from "./DhtRpc";
16
- import type { WebsocketConnectionRequest } from "./DhtRpc";
17
- import type { RecursiveOperationResponse } from "./DhtRpc";
18
- import type { ReplicateDataRequest } from "./DhtRpc";
19
- import type { StoreDataResponse } from "./DhtRpc";
20
- import type { StoreDataRequest } from "./DhtRpc";
21
- import type { RouteMessageAck } from "./DhtRpc";
22
- import type { RouteMessageWrapper } from "./DhtRpc";
23
- import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
24
- import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
25
- import type { Empty } from "../../../google/protobuf/empty";
26
- import type { LeaveNotice } from "./DhtRpc";
27
- import type { PingResponse } from "./DhtRpc";
28
- import type { PingRequest } from "./DhtRpc";
29
- import type { ClosestRingPeersResponse } from "./DhtRpc";
30
- import type { ClosestRingPeersRequest } from "./DhtRpc";
31
- import type { ClosestPeersResponse } from "./DhtRpc";
32
- import type { ClosestPeersRequest } from "./DhtRpc";
33
- import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
34
- import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
35
- /**
36
- * @generated from protobuf service dht.DhtNodeRpc
37
- */
38
- export interface IDhtNodeRpcClient {
39
- /**
40
- * TODO rename to getClosestNeighbors (breaking change)
41
- *
42
- * @generated from protobuf rpc: getClosestPeers
43
- */
44
- getClosestPeers(input: ClosestPeersRequest, options?: RpcOptions): UnaryCall<ClosestPeersRequest, ClosestPeersResponse>;
45
- /**
46
- * TODO rename to getClosestRingContacts (breaking change)
47
- *
48
- * @generated from protobuf rpc: getClosestRingPeers
49
- */
50
- getClosestRingPeers(input: ClosestRingPeersRequest, options?: RpcOptions): UnaryCall<ClosestRingPeersRequest, ClosestRingPeersResponse>;
51
- /**
52
- * @generated from protobuf rpc: ping
53
- */
54
- ping(input: PingRequest, options?: RpcOptions): UnaryCall<PingRequest, PingResponse>;
55
- /**
56
- * @generated from protobuf rpc: leaveNotice
57
- */
58
- leaveNotice(input: LeaveNotice, options?: RpcOptions): UnaryCall<LeaveNotice, Empty>;
59
- }
60
- /**
61
- * @generated from protobuf service dht.DhtNodeRpc
62
- */
63
- export declare class DhtNodeRpcClient implements IDhtNodeRpcClient, ServiceInfo {
64
- private readonly _transport;
65
- typeName: string;
66
- methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
67
- options: {
68
- [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
69
- };
70
- constructor(_transport: RpcTransport);
71
- /**
72
- * TODO rename to getClosestNeighbors (breaking change)
73
- *
74
- * @generated from protobuf rpc: getClosestPeers
75
- */
76
- getClosestPeers(input: ClosestPeersRequest, options?: RpcOptions): UnaryCall<ClosestPeersRequest, ClosestPeersResponse>;
77
- /**
78
- * TODO rename to getClosestRingContacts (breaking change)
79
- *
80
- * @generated from protobuf rpc: getClosestRingPeers
81
- */
82
- getClosestRingPeers(input: ClosestRingPeersRequest, options?: RpcOptions): UnaryCall<ClosestRingPeersRequest, ClosestRingPeersResponse>;
83
- /**
84
- * @generated from protobuf rpc: ping
85
- */
86
- ping(input: PingRequest, options?: RpcOptions): UnaryCall<PingRequest, PingResponse>;
87
- /**
88
- * @generated from protobuf rpc: leaveNotice
89
- */
90
- leaveNotice(input: LeaveNotice, options?: RpcOptions): UnaryCall<LeaveNotice, Empty>;
91
- }
92
- /**
93
- * @generated from protobuf service dht.RouterRpc
94
- */
95
- export interface IRouterRpcClient {
96
- /**
97
- * @generated from protobuf rpc: routeMessage
98
- */
99
- routeMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
100
- /**
101
- * @generated from protobuf rpc: forwardMessage
102
- */
103
- forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
104
- }
105
- /**
106
- * @generated from protobuf service dht.RouterRpc
107
- */
108
- export declare class RouterRpcClient implements IRouterRpcClient, ServiceInfo {
109
- private readonly _transport;
110
- typeName: string;
111
- methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
112
- options: {
113
- [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
114
- };
115
- constructor(_transport: RpcTransport);
116
- /**
117
- * @generated from protobuf rpc: routeMessage
118
- */
119
- routeMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
120
- /**
121
- * @generated from protobuf rpc: forwardMessage
122
- */
123
- forwardMessage(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
124
- }
125
- /**
126
- * @generated from protobuf service dht.RecursiveOperationRpc
127
- */
128
- export interface IRecursiveOperationRpcClient {
129
- /**
130
- * @generated from protobuf rpc: routeRequest
131
- */
132
- routeRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
133
- }
134
- /**
135
- * @generated from protobuf service dht.RecursiveOperationRpc
136
- */
137
- export declare class RecursiveOperationRpcClient implements IRecursiveOperationRpcClient, ServiceInfo {
138
- private readonly _transport;
139
- typeName: string;
140
- methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
141
- options: {
142
- [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
143
- };
144
- constructor(_transport: RpcTransport);
145
- /**
146
- * @generated from protobuf rpc: routeRequest
147
- */
148
- routeRequest(input: RouteMessageWrapper, options?: RpcOptions): UnaryCall<RouteMessageWrapper, RouteMessageAck>;
149
- }
150
- /**
151
- * @generated from protobuf service dht.StoreRpc
152
- */
153
- export interface IStoreRpcClient {
154
- /**
155
- * @generated from protobuf rpc: storeData
156
- */
157
- storeData(input: StoreDataRequest, options?: RpcOptions): UnaryCall<StoreDataRequest, StoreDataResponse>;
158
- /**
159
- * @generated from protobuf rpc: replicateData
160
- */
161
- replicateData(input: ReplicateDataRequest, options?: RpcOptions): UnaryCall<ReplicateDataRequest, Empty>;
162
- }
163
- /**
164
- * @generated from protobuf service dht.StoreRpc
165
- */
166
- export declare class StoreRpcClient implements IStoreRpcClient, ServiceInfo {
167
- private readonly _transport;
168
- typeName: string;
169
- methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
170
- options: {
171
- [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
172
- };
173
- constructor(_transport: RpcTransport);
174
- /**
175
- * @generated from protobuf rpc: storeData
176
- */
177
- storeData(input: StoreDataRequest, options?: RpcOptions): UnaryCall<StoreDataRequest, StoreDataResponse>;
178
- /**
179
- * @generated from protobuf rpc: replicateData
180
- */
181
- replicateData(input: ReplicateDataRequest, options?: RpcOptions): UnaryCall<ReplicateDataRequest, Empty>;
182
- }
183
- /**
184
- * @generated from protobuf service dht.RecursiveOperationSessionRpc
185
- */
186
- export interface IRecursiveOperationSessionRpcClient {
187
- /**
188
- * @generated from protobuf rpc: sendResponse
189
- */
190
- sendResponse(input: RecursiveOperationResponse, options?: RpcOptions): UnaryCall<RecursiveOperationResponse, Empty>;
191
- }
192
- /**
193
- * @generated from protobuf service dht.RecursiveOperationSessionRpc
194
- */
195
- export declare class RecursiveOperationSessionRpcClient implements IRecursiveOperationSessionRpcClient, ServiceInfo {
196
- private readonly _transport;
197
- typeName: string;
198
- methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
199
- options: {
200
- [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
201
- };
202
- constructor(_transport: RpcTransport);
203
- /**
204
- * @generated from protobuf rpc: sendResponse
205
- */
206
- sendResponse(input: RecursiveOperationResponse, options?: RpcOptions): UnaryCall<RecursiveOperationResponse, Empty>;
207
- }
208
- /**
209
- * @generated from protobuf service dht.WebsocketClientConnectorRpc
210
- */
211
- export interface IWebsocketClientConnectorRpcClient {
212
- /**
213
- * @generated from protobuf rpc: requestConnection
214
- */
215
- requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, Empty>;
216
- }
217
- /**
218
- * @generated from protobuf service dht.WebsocketClientConnectorRpc
219
- */
220
- export declare class WebsocketClientConnectorRpcClient implements IWebsocketClientConnectorRpcClient, ServiceInfo {
221
- private readonly _transport;
222
- typeName: string;
223
- methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
224
- options: {
225
- [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
226
- };
227
- constructor(_transport: RpcTransport);
228
- /**
229
- * @generated from protobuf rpc: requestConnection
230
- */
231
- requestConnection(input: WebsocketConnectionRequest, options?: RpcOptions): UnaryCall<WebsocketConnectionRequest, Empty>;
232
- }
233
- /**
234
- * @generated from protobuf service dht.WebrtcConnectorRpc
235
- */
236
- export interface IWebrtcConnectorRpcClient {
237
- /**
238
- * @generated from protobuf rpc: requestConnection
239
- */
240
- requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty>;
241
- /**
242
- * @generated from protobuf rpc: rtcOffer
243
- */
244
- rtcOffer(input: RtcOffer, options?: RpcOptions): UnaryCall<RtcOffer, Empty>;
245
- /**
246
- * @generated from protobuf rpc: rtcAnswer
247
- */
248
- rtcAnswer(input: RtcAnswer, options?: RpcOptions): UnaryCall<RtcAnswer, Empty>;
249
- /**
250
- * @generated from protobuf rpc: iceCandidate
251
- */
252
- iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
253
- }
254
- /**
255
- * @generated from protobuf service dht.WebrtcConnectorRpc
256
- */
257
- export declare class WebrtcConnectorRpcClient implements IWebrtcConnectorRpcClient, ServiceInfo {
258
- private readonly _transport;
259
- typeName: string;
260
- methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
261
- options: {
262
- [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
263
- };
264
- constructor(_transport: RpcTransport);
265
- /**
266
- * @generated from protobuf rpc: requestConnection
267
- */
268
- requestConnection(input: WebrtcConnectionRequest, options?: RpcOptions): UnaryCall<WebrtcConnectionRequest, Empty>;
269
- /**
270
- * @generated from protobuf rpc: rtcOffer
271
- */
272
- rtcOffer(input: RtcOffer, options?: RpcOptions): UnaryCall<RtcOffer, Empty>;
273
- /**
274
- * @generated from protobuf rpc: rtcAnswer
275
- */
276
- rtcAnswer(input: RtcAnswer, options?: RpcOptions): UnaryCall<RtcAnswer, Empty>;
277
- /**
278
- * @generated from protobuf rpc: iceCandidate
279
- */
280
- iceCandidate(input: IceCandidate, options?: RpcOptions): UnaryCall<IceCandidate, Empty>;
281
- }
282
- /**
283
- * @generated from protobuf service dht.ConnectionLockRpc
284
- */
285
- export interface IConnectionLockRpcClient {
286
- /**
287
- * @generated from protobuf rpc: lockRequest
288
- */
289
- lockRequest(input: LockRequest, options?: RpcOptions): UnaryCall<LockRequest, LockResponse>;
290
- /**
291
- * @generated from protobuf rpc: unlockRequest
292
- */
293
- unlockRequest(input: UnlockRequest, options?: RpcOptions): UnaryCall<UnlockRequest, Empty>;
294
- /**
295
- * @generated from protobuf rpc: gracefulDisconnect
296
- */
297
- gracefulDisconnect(input: DisconnectNotice, options?: RpcOptions): UnaryCall<DisconnectNotice, Empty>;
298
- /**
299
- * @generated from protobuf rpc: setPrivate
300
- */
301
- setPrivate(input: SetPrivateRequest, options?: RpcOptions): UnaryCall<SetPrivateRequest, Empty>;
302
- }
303
- /**
304
- * @generated from protobuf service dht.ConnectionLockRpc
305
- */
306
- export declare class ConnectionLockRpcClient implements IConnectionLockRpcClient, ServiceInfo {
307
- private readonly _transport;
308
- typeName: string;
309
- methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
310
- options: {
311
- [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
312
- };
313
- constructor(_transport: RpcTransport);
314
- /**
315
- * @generated from protobuf rpc: lockRequest
316
- */
317
- lockRequest(input: LockRequest, options?: RpcOptions): UnaryCall<LockRequest, LockResponse>;
318
- /**
319
- * @generated from protobuf rpc: unlockRequest
320
- */
321
- unlockRequest(input: UnlockRequest, options?: RpcOptions): UnaryCall<UnlockRequest, Empty>;
322
- /**
323
- * @generated from protobuf rpc: gracefulDisconnect
324
- */
325
- gracefulDisconnect(input: DisconnectNotice, options?: RpcOptions): UnaryCall<DisconnectNotice, Empty>;
326
- /**
327
- * @generated from protobuf rpc: setPrivate
328
- */
329
- setPrivate(input: SetPrivateRequest, options?: RpcOptions): UnaryCall<SetPrivateRequest, Empty>;
330
- }
331
- /**
332
- * @generated from protobuf service dht.ExternalApiRpc
333
- */
334
- export interface IExternalApiRpcClient {
335
- /**
336
- * @generated from protobuf rpc: externalFetchData
337
- */
338
- externalFetchData(input: ExternalFetchDataRequest, options?: RpcOptions): UnaryCall<ExternalFetchDataRequest, ExternalFetchDataResponse>;
339
- /**
340
- * @generated from protobuf rpc: externalStoreData
341
- */
342
- externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse>;
343
- /**
344
- * @generated from protobuf rpc: externalFindClosestNodes
345
- */
346
- externalFindClosestNodes(input: ExternalFindClosestNodesRequest, options?: RpcOptions): UnaryCall<ExternalFindClosestNodesRequest, ExternalFindClosestNodesResponse>;
347
- }
348
- /**
349
- * @generated from protobuf service dht.ExternalApiRpc
350
- */
351
- export declare class ExternalApiRpcClient implements IExternalApiRpcClient, ServiceInfo {
352
- private readonly _transport;
353
- typeName: string;
354
- methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
355
- options: {
356
- [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
357
- };
358
- constructor(_transport: RpcTransport);
359
- /**
360
- * @generated from protobuf rpc: externalFetchData
361
- */
362
- externalFetchData(input: ExternalFetchDataRequest, options?: RpcOptions): UnaryCall<ExternalFetchDataRequest, ExternalFetchDataResponse>;
363
- /**
364
- * @generated from protobuf rpc: externalStoreData
365
- */
366
- externalStoreData(input: ExternalStoreDataRequest, options?: RpcOptions): UnaryCall<ExternalStoreDataRequest, ExternalStoreDataResponse>;
367
- /**
368
- * @generated from protobuf rpc: externalFindClosestNodes
369
- */
370
- externalFindClosestNodes(input: ExternalFindClosestNodesRequest, options?: RpcOptions): UnaryCall<ExternalFindClosestNodesRequest, ExternalFindClosestNodesResponse>;
371
- }