@streamr/trackerless-network 103.0.0-rc.0 → 103.0.0-rc.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.
@@ -16,7 +16,20 @@ class Empty$Type extends runtime_3.MessageType {
16
16
  return message;
17
17
  }
18
18
  internalBinaryRead(reader, length, options, target) {
19
- return target ?? this.create();
19
+ let message = target ?? this.create(), end = reader.pos + length;
20
+ while (reader.pos < end) {
21
+ let [fieldNo, wireType] = reader.tag();
22
+ switch (fieldNo) {
23
+ default:
24
+ let u = options.readUnknownField;
25
+ if (u === "throw")
26
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
27
+ let d = reader.skip(wireType);
28
+ if (u !== false)
29
+ (u === true ? runtime_1.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
30
+ }
31
+ }
32
+ return message;
20
33
  }
21
34
  internalBinaryWrite(message, writer, options) {
22
35
  let u = options.writeUnknownFields;
@@ -1 +1 @@
1
- {"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../../generated/google/protobuf/empty.ts"],"names":[],"mappings":";;;AAoCA,kDAA2D;AAI3D,kDAA8D;AAC9D,kDAAmD;AAenD,2FAA2F;AAC3F,MAAM,UAAW,SAAQ,qBAAkB;IACvC;QACI,KAAK,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACvC,CAAC;IACD,MAAM,CAAC,KAA6B;QAChC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,gBAAiB,CAAC,CAAC,CAAC;QACnE,IAAI,KAAK,KAAK,SAAS;YACnB,IAAA,gCAAsB,EAAQ,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACxD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,kBAAkB,CAAC,MAAqB,EAAE,MAAc,EAAE,OAA0B,EAAE,MAAc;QAChG,OAAO,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;IACnC,CAAC;IACD,mBAAmB,CAAC,OAAc,EAAE,MAAqB,EAAE,OAA2B;QAClF,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,KAAK,GAAG,IAAI,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../../generated/google/protobuf/empty.ts"],"names":[],"mappings":";;;AAsCA,kDAA2D;AAE3D,kDAA8D;AAC9D,kDAAmD;AAenD,2FAA2F;AAC3F,MAAM,UAAW,SAAQ,qBAAkB;IACvC;QACI,KAAK,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACvC,CAAC;IACD,MAAM,CAAC,KAA6B;QAChC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,gBAAiB,CAAC,CAAC,CAAC;QACnE,IAAI,KAAK,KAAK,SAAS;YACnB,IAAA,gCAAsB,EAAQ,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACxD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,kBAAkB,CAAC,MAAqB,EAAE,MAAc,EAAE,OAA0B,EAAE,MAAc;QAChG,IAAI,OAAO,GAAG,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QACjE,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;YACtB,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;YACvC,QAAQ,OAAO,EAAE,CAAC;gBACd;oBACI,IAAI,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;oBACjC,IAAI,CAAC,KAAK,OAAO;wBACb,MAAM,IAAI,UAAU,CAAC,KAAK,CAAC,iBAAiB,OAAO,eAAe,QAAQ,SAAS,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;oBACxG,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBAC9B,IAAI,CAAC,KAAK,KAAK;wBACX,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,6BAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;YACxG,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,mBAAmB,CAAC,OAAc,EAAE,MAAqB,EAAE,OAA2B;QAClF,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,KAAK,GAAG,IAAI,UAAU,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExternalApiRpcClient = exports.ConnectionLockRpcClient = exports.WebrtcConnectorRpcClient = exports.WebsocketClientConnectorRpcClient = exports.RecursiveOperationSessionRpcClient = exports.StoreRpcClient = exports.RecursiveOperationRpcClient = exports.RouterRpcClient = exports.DhtNodeRpcClient = void 0;
4
- // @generated by protobuf-ts 2.9.4 with parameter server_generic,generate_dependencies,long_type_number
4
+ // @generated by protobuf-ts 2.9.5 with parameter server_generic,generate_dependencies,long_type_number
5
5
  // @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
6
6
  // tslint:disable
7
7
  const DhtRpc_1 = require("./DhtRpc");
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConnectionLockRpc = exports.WebrtcConnectorRpc = exports.WebsocketClientConnectorRpc = exports.RecursiveOperationSessionRpc = exports.StoreRpc = exports.RecursiveOperationRpc = exports.RouterRpc = exports.DhtNodeRpc = exports.ExternalFetchDataResponse = exports.ExternalFetchDataRequest = exports.SetPrivateRequest = exports.DisconnectNotice = exports.LockResponse = exports.UnlockRequest = exports.LockRequest = exports.IceCandidate = exports.RtcAnswer = exports.RtcOffer = exports.WebrtcConnectionRequest = 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.RecursiveOperationResponse = exports.RecursiveOperationRequest = exports.ClosestRingPeersResponse = exports.ClosestRingPeersRequest = exports.ClosestPeersResponse = exports.ClosestPeersRequest = exports.DataEntry = exports.ReplicateDataRequest = exports.ExternalStoreDataResponse = exports.ExternalStoreDataRequest = exports.StoreDataResponse = exports.StoreDataRequest = exports.DisconnectMode = exports.HandshakeError = exports.RouteMessageError = exports.RpcResponseError = exports.NodeType = exports.RecursiveOperation = void 0;
4
4
  exports.ExternalApiRpc = void 0;
5
- // @generated by protobuf-ts 2.9.4 with parameter server_generic,generate_dependencies,long_type_number
5
+ // @generated by protobuf-ts 2.9.5 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
8
8
  const empty_1 = require("../../../google/protobuf/empty");
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Mnfo2uhnf92hvqi2nviouq2hv9puhq = exports.RpcMessage = exports.RpcErrorType = void 0;
4
- // @generated by protobuf-ts 2.9.4 with parameter server_generic,generate_dependencies,long_type_number
4
+ // @generated by protobuf-ts 2.9.5 with parameter server_generic,generate_dependencies,long_type_number
5
5
  // @generated from protobuf file "packages/proto-rpc/protos/ProtoRpc.proto" (package "protorpc", syntax proto3)
6
6
  // tslint:disable
7
7
  const runtime_1 = require("@protobuf-ts/runtime");
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodeInfoRpcClient = exports.TemporaryConnectionRpcClient = exports.NeighborUpdateRpcClient = exports.HandshakeRpcClient = exports.ProxyConnectionRpcClient = exports.ContentDeliveryRpcClient = void 0;
4
- // @generated by protobuf-ts 2.9.4 with parameter server_generic,generate_dependencies,long_type_number
4
+ // @generated by protobuf-ts 2.9.5 with parameter server_generic,generate_dependencies,long_type_number
5
5
  // @generated from protobuf file "packages/trackerless-network/protos/NetworkRpc.proto" (syntax proto3)
6
6
  // tslint:disable
7
7
  const NetworkRpc_1 = require("./NetworkRpc");
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodeInfoRpc = exports.TemporaryConnectionRpc = exports.NeighborUpdateRpc = exports.HandshakeRpc = exports.ProxyConnectionRpc = exports.ContentDeliveryRpc = exports.NodeInfoResponse = exports.NodeInfoRequest = exports.ControlLayerInfo = exports.ContentDeliveryLayerNeighborInfo = exports.StreamPartitionInfo = exports.CloseTemporaryConnection = exports.TemporaryConnectionResponse = exports.TemporaryConnectionRequest = exports.ProxyConnectionResponse = exports.ProxyConnectionRequest = exports.NeighborUpdate = exports.LeaveStreamPartNotice = exports.InterleaveResponse = exports.InterleaveRequest = exports.StreamPartHandshakeResponse = exports.StreamPartHandshakeRequest = exports.GroupKey = exports.GroupKeyResponse = exports.GroupKeyRequest = exports.ContentMessage = exports.StreamMessage = exports.MessageRef = exports.MessageID = exports.ProxyDirection = exports.SignatureType = exports.EncryptionType = exports.ContentType = void 0;
4
- // @generated by protobuf-ts 2.9.4 with parameter server_generic,generate_dependencies,long_type_number
4
+ // @generated by protobuf-ts 2.9.5 with parameter server_generic,generate_dependencies,long_type_number
5
5
  // @generated from protobuf file "packages/trackerless-network/protos/NetworkRpc.proto" (syntax proto3)
6
6
  // tslint:disable
7
7
  const empty_1 = require("../../../google/protobuf/empty");
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamr/trackerless-network",
3
- "version": "103.0.0-rc.0",
3
+ "version": "103.0.0-rc.1",
4
4
  "description": "Minimal and extendable implementation of the Streamr Network node.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,6 +9,12 @@
9
9
  },
10
10
  "main": "dist/src/exports.js",
11
11
  "types": "dist/src/exports.d.ts",
12
+ "files": [
13
+ "dist",
14
+ "!*.tsbuildinfo",
15
+ "README.md",
16
+ "LICENSE"
17
+ ],
12
18
  "license": "STREAMR NETWORK OPEN SOURCE LICENSE",
13
19
  "author": "Streamr Network AG <contact@streamr.network>",
14
20
  "scripts": {
@@ -30,9 +36,9 @@
30
36
  "dependencies": {
31
37
  "@protobuf-ts/runtime": "^2.8.2",
32
38
  "@protobuf-ts/runtime-rpc": "^2.8.2",
33
- "@streamr/dht": "103.0.0-rc.0",
34
- "@streamr/proto-rpc": "103.0.0-rc.0",
35
- "@streamr/utils": "103.0.0-rc.0",
39
+ "@streamr/dht": "103.0.0-rc.1",
40
+ "@streamr/proto-rpc": "103.0.0-rc.1",
41
+ "@streamr/utils": "103.0.0-rc.1",
36
42
  "eventemitter3": "^5.0.0",
37
43
  "lodash": "^4.17.21",
38
44
  "ts-essentials": "^10.0.4",
@@ -41,7 +47,7 @@
41
47
  },
42
48
  "devDependencies": {
43
49
  "@streamr/browser-test-runner": "^0.0.1",
44
- "@streamr/test-utils": "103.0.0-rc.0",
50
+ "@streamr/test-utils": "103.0.0-rc.1",
45
51
  "@types/lodash": "^4.17.16",
46
52
  "@types/yallist": "^4.0.1",
47
53
  "expect": "^29.6.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamr/trackerless-network",
3
- "version": "103.0.0-rc.0",
3
+ "version": "103.0.0-rc.1",
4
4
  "description": "Minimal and extendable implementation of the Streamr Network node.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,6 +9,12 @@
9
9
  },
10
10
  "main": "dist/src/exports.js",
11
11
  "types": "dist/src/exports.d.ts",
12
+ "files": [
13
+ "dist",
14
+ "!*.tsbuildinfo",
15
+ "README.md",
16
+ "LICENSE"
17
+ ],
12
18
  "license": "STREAMR NETWORK OPEN SOURCE LICENSE",
13
19
  "author": "Streamr Network AG <contact@streamr.network>",
14
20
  "scripts": {
@@ -30,9 +36,9 @@
30
36
  "dependencies": {
31
37
  "@protobuf-ts/runtime": "^2.8.2",
32
38
  "@protobuf-ts/runtime-rpc": "^2.8.2",
33
- "@streamr/dht": "103.0.0-rc.0",
34
- "@streamr/proto-rpc": "103.0.0-rc.0",
35
- "@streamr/utils": "103.0.0-rc.0",
39
+ "@streamr/dht": "103.0.0-rc.1",
40
+ "@streamr/proto-rpc": "103.0.0-rc.1",
41
+ "@streamr/utils": "103.0.0-rc.1",
36
42
  "eventemitter3": "^5.0.0",
37
43
  "lodash": "^4.17.21",
38
44
  "ts-essentials": "^10.0.4",
@@ -41,7 +47,7 @@
41
47
  },
42
48
  "devDependencies": {
43
49
  "@streamr/browser-test-runner": "^0.0.1",
44
- "@streamr/test-utils": "103.0.0-rc.0",
50
+ "@streamr/test-utils": "103.0.0-rc.1",
45
51
  "@types/lodash": "^4.17.16",
46
52
  "@types/yallist": "^4.0.1",
47
53
  "expect": "^29.6.2",
package/jest.config.ts DELETED
@@ -1,13 +0,0 @@
1
- import type { Config } from '@jest/types'
2
- import defaultConfig from '../../jest.config'
3
-
4
- const config: Config.InitialOptions = {
5
- ...defaultConfig,
6
- setupFilesAfterEnv: [
7
- ...defaultConfig.setupFilesAfterEnv,
8
- '@streamr/test-utils/setupCustomMatchers',
9
- ],
10
- testTimeout: 15000,
11
- }
12
-
13
- export default config
package/karma-setup.js DELETED
@@ -1,7 +0,0 @@
1
- /**
2
- * This setup script is executed indirectly by Karma via the `browser-test-runner`
3
- * package. See karma-config.js in that package for more details.
4
- */
5
-
6
- const { customMatchers } = require('@streamr/test-utils')
7
- expect.extend(customMatchers)
package/karma.config.js DELETED
@@ -1,31 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-require-imports */
2
- const path = require('path')
3
- const { createKarmaConfig, createWebpackConfig } = require('@streamr/browser-test-runner')
4
-
5
- const TEST_PATHS = [
6
- './test/unit/**/*.ts',
7
- './test/integration/**/*.ts',
8
- './test/end-to-end/**/!(webrtc*|websocket*)',
9
- ]
10
-
11
- module.exports = createKarmaConfig(TEST_PATHS, createWebpackConfig({
12
- entry: './src/exports.ts',
13
- libraryName: 'trackerless-network',
14
- alias: {
15
- [path.resolve(__dirname, '../dht/src/connection/webrtc/NodeWebrtcConnection.ts')]:
16
- path.resolve(__dirname, '../dht/src/connection/webrtc/BrowserWebrtcConnection.ts'),
17
- [path.resolve(__dirname, '../dht/src/connection/websocket/NodeWebsocketClientConnection.ts')]:
18
- path.resolve(__dirname, '../dht/src/connection/websocket/BrowserWebsocketClientConnection.ts'),
19
- '@streamr/dht': path.resolve('../dht/src/exports.ts'),
20
- '@streamr/proto-rpc': path.resolve('../proto-rpc/src/exports.ts'),
21
- },
22
- fallback: {
23
- module: false
24
- },
25
- externals: {
26
- 'node-datachannel': 'commonjs node-datachannel',
27
- express: 'Express',
28
- http: 'HTTP',
29
- ws: 'WebSocket',
30
- }
31
- }), __dirname)
package/proto.sh DELETED
@@ -1,2 +0,0 @@
1
- mkdir -p ./generated
2
- npx protoc --ts_out ./generated --ts_opt server_generic,generate_dependencies,long_type_number --proto_path ../.. packages/trackerless-network/protos/NetworkRpc.proto --experimental_allow_proto3_optional
@@ -1,186 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option optimize_for = CODE_SIZE;
4
-
5
- import "google/protobuf/empty.proto";
6
- import "packages/dht/protos/DhtRpc.proto";
7
-
8
- service ContentDeliveryRpc {
9
- rpc sendStreamMessage (StreamMessage) returns (google.protobuf.Empty);
10
- rpc leaveStreamPartNotice (LeaveStreamPartNotice) returns (google.protobuf.Empty);
11
- }
12
-
13
- service ProxyConnectionRpc {
14
- rpc requestConnection (ProxyConnectionRequest) returns (ProxyConnectionResponse);
15
- }
16
-
17
- service HandshakeRpc {
18
- rpc handshake (StreamPartHandshakeRequest) returns (StreamPartHandshakeResponse);
19
- rpc interleaveRequest (InterleaveRequest) returns (InterleaveResponse);
20
- }
21
-
22
- service NeighborUpdateRpc {
23
- rpc neighborUpdate (NeighborUpdate) returns (NeighborUpdate);
24
- }
25
-
26
- service TemporaryConnectionRpc {
27
- rpc openConnection (TemporaryConnectionRequest) returns (TemporaryConnectionResponse);
28
- rpc closeConnection (CloseTemporaryConnection) returns (google.protobuf.Empty);
29
- }
30
-
31
- service NodeInfoRpc {
32
- rpc getInfo (NodeInfoRequest) returns (NodeInfoResponse);
33
- }
34
-
35
- message MessageID {
36
- string streamId = 1;
37
- int32 streamPartition = 2;
38
- int64 timestamp = 3;
39
- int32 sequenceNumber = 4;
40
- bytes publisherId = 5;
41
- string messageChainId = 6;
42
- }
43
-
44
- message MessageRef {
45
- int64 timestamp = 1;
46
- int32 sequenceNumber = 2;
47
- }
48
-
49
- enum ContentType {
50
- JSON = 0;
51
- BINARY = 1;
52
- }
53
-
54
- enum EncryptionType {
55
- NONE = 0;
56
- AES = 1;
57
- }
58
-
59
- enum SignatureType {
60
- LEGACY_SECP256K1 = 0;
61
- SECP256K1 = 1;
62
- ERC_1271 = 2;
63
- }
64
-
65
- message StreamMessage {
66
- // this is a required field but in generated NetworkRpc.ts it is incorrectly annotated as optional (NET-1082)
67
- MessageID messageId = 1;
68
- optional MessageRef previousMessageRef = 2;
69
- bytes signature = 3;
70
- SignatureType signatureType = 4;
71
- oneof body {
72
- ContentMessage contentMessage = 5;
73
- GroupKeyRequest groupKeyRequest = 6;
74
- GroupKeyResponse groupKeyResponse = 7;
75
- }
76
- }
77
-
78
- message ContentMessage {
79
- bytes content = 1;
80
- ContentType contentType = 2;
81
- EncryptionType encryptionType = 3;
82
- optional string groupKeyId = 4;
83
- optional GroupKey newGroupKey = 5;
84
- }
85
-
86
- message GroupKeyRequest {
87
- string requestId = 1;
88
- bytes recipientId = 2;
89
- bytes rsaPublicKey = 3;
90
- repeated string groupKeyIds = 4;
91
- }
92
-
93
- message GroupKeyResponse {
94
- string requestId = 1;
95
- bytes recipientId = 2;
96
- repeated GroupKey groupKeys = 3;
97
- }
98
-
99
- message GroupKey {
100
- string id = 1;
101
- bytes data = 2;
102
- }
103
-
104
- message StreamPartHandshakeRequest {
105
- string streamPartId = 1;
106
- string requestId = 2;
107
- optional bytes concurrentHandshakeNodeId = 3;
108
- repeated bytes neighborNodeIds = 4;
109
- optional bytes interleaveNodeId = 5;
110
- }
111
-
112
- message StreamPartHandshakeResponse {
113
- bool accepted = 1;
114
- string requestId = 2;
115
- optional dht.PeerDescriptor interleaveTargetDescriptor = 3;
116
- }
117
-
118
- message InterleaveRequest {
119
- // this is a required field but in generated NetworkRpc.ts it is incorrectly annotated as optional (NET-1082)
120
- dht.PeerDescriptor interleaveTargetDescriptor = 1;
121
- }
122
-
123
- message InterleaveResponse {
124
- bool accepted = 1;
125
- }
126
-
127
- message LeaveStreamPartNotice {
128
- string streamPartId = 1;
129
- bool isEntryPoint = 2;
130
- }
131
-
132
- message NeighborUpdate {
133
- string streamPartId = 1;
134
- bool removeMe = 2;
135
- repeated dht.PeerDescriptor neighborDescriptors = 3;
136
- }
137
-
138
- message ProxyConnectionRequest {
139
- ProxyDirection direction = 1;
140
- bytes userId = 2;
141
- }
142
-
143
- message ProxyConnectionResponse {
144
- bool accepted = 1;
145
- }
146
-
147
- message TemporaryConnectionRequest {
148
- }
149
-
150
- message TemporaryConnectionResponse {
151
- bool accepted = 1;
152
- }
153
-
154
- message CloseTemporaryConnection {
155
- }
156
-
157
- enum ProxyDirection {
158
- PUBLISH = 0;
159
- SUBSCRIBE = 1;
160
- }
161
-
162
- message StreamPartitionInfo {
163
- string id = 1;
164
- repeated dht.PeerDescriptor controlLayerNeighbors = 2;
165
- repeated dht.PeerDescriptor deprecatedContentDeliveryLayerNeighbors = 3;
166
- repeated ContentDeliveryLayerNeighborInfo contentDeliveryLayerNeighbors = 4;
167
- }
168
-
169
- message ContentDeliveryLayerNeighborInfo {
170
- dht.PeerDescriptor peerDescriptor = 1;
171
- optional int32 rtt = 2;
172
- }
173
-
174
- message ControlLayerInfo {
175
- repeated dht.PeerDescriptor neighbors = 1;
176
- repeated dht.PeerDescriptor connections = 2;
177
- }
178
-
179
- message NodeInfoRequest {}
180
-
181
- message NodeInfoResponse {
182
- dht.PeerDescriptor peerDescriptor = 1;
183
- repeated StreamPartitionInfo streamPartitions = 2;
184
- ControlLayerInfo controlLayer = 3;
185
- string applicationVersion = 4;
186
- }