@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,752 +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/trackerless-network/protos/NetworkRpc.proto" (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 { PeerDescriptor } from "../../dht/protos/DhtRpc";
|
|
8
|
-
/**
|
|
9
|
-
* @generated from protobuf message MessageID
|
|
10
|
-
*/
|
|
11
|
-
export interface MessageID {
|
|
12
|
-
/**
|
|
13
|
-
* @generated from protobuf field: string streamId = 1;
|
|
14
|
-
*/
|
|
15
|
-
streamId: string;
|
|
16
|
-
/**
|
|
17
|
-
* @generated from protobuf field: int32 streamPartition = 2;
|
|
18
|
-
*/
|
|
19
|
-
streamPartition: number;
|
|
20
|
-
/**
|
|
21
|
-
* @generated from protobuf field: int64 timestamp = 3;
|
|
22
|
-
*/
|
|
23
|
-
timestamp: number;
|
|
24
|
-
/**
|
|
25
|
-
* @generated from protobuf field: int32 sequenceNumber = 4;
|
|
26
|
-
*/
|
|
27
|
-
sequenceNumber: number;
|
|
28
|
-
/**
|
|
29
|
-
* @generated from protobuf field: bytes publisherId = 5;
|
|
30
|
-
*/
|
|
31
|
-
publisherId: Uint8Array;
|
|
32
|
-
/**
|
|
33
|
-
* @generated from protobuf field: string messageChainId = 6;
|
|
34
|
-
*/
|
|
35
|
-
messageChainId: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @generated from protobuf message MessageRef
|
|
39
|
-
*/
|
|
40
|
-
export interface MessageRef {
|
|
41
|
-
/**
|
|
42
|
-
* @generated from protobuf field: int64 timestamp = 1;
|
|
43
|
-
*/
|
|
44
|
-
timestamp: number;
|
|
45
|
-
/**
|
|
46
|
-
* @generated from protobuf field: int32 sequenceNumber = 2;
|
|
47
|
-
*/
|
|
48
|
-
sequenceNumber: number;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf message StreamMessage
|
|
52
|
-
*/
|
|
53
|
-
export interface StreamMessage {
|
|
54
|
-
/**
|
|
55
|
-
* this is a required field but in generated NetworkRpc.ts it is incorrectly annotated as optional (NET-1082)
|
|
56
|
-
*
|
|
57
|
-
* @generated from protobuf field: MessageID messageId = 1;
|
|
58
|
-
*/
|
|
59
|
-
messageId?: MessageID;
|
|
60
|
-
/**
|
|
61
|
-
* @generated from protobuf field: optional MessageRef previousMessageRef = 2;
|
|
62
|
-
*/
|
|
63
|
-
previousMessageRef?: MessageRef;
|
|
64
|
-
/**
|
|
65
|
-
* @generated from protobuf field: bytes signature = 3;
|
|
66
|
-
*/
|
|
67
|
-
signature: Uint8Array;
|
|
68
|
-
/**
|
|
69
|
-
* @generated from protobuf field: SignatureType signatureType = 4;
|
|
70
|
-
*/
|
|
71
|
-
signatureType: SignatureType;
|
|
72
|
-
/**
|
|
73
|
-
* @generated from protobuf oneof: body
|
|
74
|
-
*/
|
|
75
|
-
body: {
|
|
76
|
-
oneofKind: "contentMessage";
|
|
77
|
-
/**
|
|
78
|
-
* @generated from protobuf field: ContentMessage contentMessage = 5;
|
|
79
|
-
*/
|
|
80
|
-
contentMessage: ContentMessage;
|
|
81
|
-
} | {
|
|
82
|
-
oneofKind: "groupKeyRequest";
|
|
83
|
-
/**
|
|
84
|
-
* @generated from protobuf field: GroupKeyRequest groupKeyRequest = 6;
|
|
85
|
-
*/
|
|
86
|
-
groupKeyRequest: GroupKeyRequest;
|
|
87
|
-
} | {
|
|
88
|
-
oneofKind: "groupKeyResponse";
|
|
89
|
-
/**
|
|
90
|
-
* @generated from protobuf field: GroupKeyResponse groupKeyResponse = 7;
|
|
91
|
-
*/
|
|
92
|
-
groupKeyResponse: GroupKeyResponse;
|
|
93
|
-
} | {
|
|
94
|
-
oneofKind: undefined;
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* @generated from protobuf message ContentMessage
|
|
99
|
-
*/
|
|
100
|
-
export interface ContentMessage {
|
|
101
|
-
/**
|
|
102
|
-
* @generated from protobuf field: bytes content = 1;
|
|
103
|
-
*/
|
|
104
|
-
content: Uint8Array;
|
|
105
|
-
/**
|
|
106
|
-
* @generated from protobuf field: ContentType contentType = 2;
|
|
107
|
-
*/
|
|
108
|
-
contentType: ContentType;
|
|
109
|
-
/**
|
|
110
|
-
* @generated from protobuf field: EncryptionType encryptionType = 3;
|
|
111
|
-
*/
|
|
112
|
-
encryptionType: EncryptionType;
|
|
113
|
-
/**
|
|
114
|
-
* @generated from protobuf field: optional string groupKeyId = 4;
|
|
115
|
-
*/
|
|
116
|
-
groupKeyId?: string;
|
|
117
|
-
/**
|
|
118
|
-
* @generated from protobuf field: optional GroupKey newGroupKey = 5;
|
|
119
|
-
*/
|
|
120
|
-
newGroupKey?: GroupKey;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* @generated from protobuf message GroupKeyRequest
|
|
124
|
-
*/
|
|
125
|
-
export interface GroupKeyRequest {
|
|
126
|
-
/**
|
|
127
|
-
* @generated from protobuf field: string requestId = 1;
|
|
128
|
-
*/
|
|
129
|
-
requestId: string;
|
|
130
|
-
/**
|
|
131
|
-
* @generated from protobuf field: bytes recipientId = 2;
|
|
132
|
-
*/
|
|
133
|
-
recipientId: Uint8Array;
|
|
134
|
-
/**
|
|
135
|
-
* @generated from protobuf field: bytes rsaPublicKey = 3;
|
|
136
|
-
*/
|
|
137
|
-
rsaPublicKey: Uint8Array;
|
|
138
|
-
/**
|
|
139
|
-
* @generated from protobuf field: repeated string groupKeyIds = 4;
|
|
140
|
-
*/
|
|
141
|
-
groupKeyIds: string[];
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* @generated from protobuf message GroupKeyResponse
|
|
145
|
-
*/
|
|
146
|
-
export interface GroupKeyResponse {
|
|
147
|
-
/**
|
|
148
|
-
* @generated from protobuf field: string requestId = 1;
|
|
149
|
-
*/
|
|
150
|
-
requestId: string;
|
|
151
|
-
/**
|
|
152
|
-
* @generated from protobuf field: bytes recipientId = 2;
|
|
153
|
-
*/
|
|
154
|
-
recipientId: Uint8Array;
|
|
155
|
-
/**
|
|
156
|
-
* @generated from protobuf field: repeated GroupKey groupKeys = 3;
|
|
157
|
-
*/
|
|
158
|
-
groupKeys: GroupKey[];
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* @generated from protobuf message GroupKey
|
|
162
|
-
*/
|
|
163
|
-
export interface GroupKey {
|
|
164
|
-
/**
|
|
165
|
-
* @generated from protobuf field: string id = 1;
|
|
166
|
-
*/
|
|
167
|
-
id: string;
|
|
168
|
-
/**
|
|
169
|
-
* @generated from protobuf field: bytes data = 2;
|
|
170
|
-
*/
|
|
171
|
-
data: Uint8Array;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* @generated from protobuf message StreamPartHandshakeRequest
|
|
175
|
-
*/
|
|
176
|
-
export interface StreamPartHandshakeRequest {
|
|
177
|
-
/**
|
|
178
|
-
* @generated from protobuf field: string streamPartId = 1;
|
|
179
|
-
*/
|
|
180
|
-
streamPartId: string;
|
|
181
|
-
/**
|
|
182
|
-
* @generated from protobuf field: string requestId = 2;
|
|
183
|
-
*/
|
|
184
|
-
requestId: string;
|
|
185
|
-
/**
|
|
186
|
-
* @generated from protobuf field: optional bytes concurrentHandshakeNodeId = 3;
|
|
187
|
-
*/
|
|
188
|
-
concurrentHandshakeNodeId?: Uint8Array;
|
|
189
|
-
/**
|
|
190
|
-
* @generated from protobuf field: repeated bytes neighborNodeIds = 4;
|
|
191
|
-
*/
|
|
192
|
-
neighborNodeIds: Uint8Array[];
|
|
193
|
-
/**
|
|
194
|
-
* @generated from protobuf field: optional bytes interleaveNodeId = 5;
|
|
195
|
-
*/
|
|
196
|
-
interleaveNodeId?: Uint8Array;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* @generated from protobuf message StreamPartHandshakeResponse
|
|
200
|
-
*/
|
|
201
|
-
export interface StreamPartHandshakeResponse {
|
|
202
|
-
/**
|
|
203
|
-
* @generated from protobuf field: bool accepted = 1;
|
|
204
|
-
*/
|
|
205
|
-
accepted: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* @generated from protobuf field: string requestId = 2;
|
|
208
|
-
*/
|
|
209
|
-
requestId: string;
|
|
210
|
-
/**
|
|
211
|
-
* @generated from protobuf field: optional dht.PeerDescriptor interleaveTargetDescriptor = 3;
|
|
212
|
-
*/
|
|
213
|
-
interleaveTargetDescriptor?: PeerDescriptor;
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* @generated from protobuf message InterleaveRequest
|
|
217
|
-
*/
|
|
218
|
-
export interface InterleaveRequest {
|
|
219
|
-
/**
|
|
220
|
-
* this is a required field but in generated NetworkRpc.ts it is incorrectly annotated as optional (NET-1082)
|
|
221
|
-
*
|
|
222
|
-
* @generated from protobuf field: dht.PeerDescriptor interleaveTargetDescriptor = 1;
|
|
223
|
-
*/
|
|
224
|
-
interleaveTargetDescriptor?: PeerDescriptor;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* @generated from protobuf message InterleaveResponse
|
|
228
|
-
*/
|
|
229
|
-
export interface InterleaveResponse {
|
|
230
|
-
/**
|
|
231
|
-
* @generated from protobuf field: bool accepted = 1;
|
|
232
|
-
*/
|
|
233
|
-
accepted: boolean;
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* @generated from protobuf message LeaveStreamPartNotice
|
|
237
|
-
*/
|
|
238
|
-
export interface LeaveStreamPartNotice {
|
|
239
|
-
/**
|
|
240
|
-
* @generated from protobuf field: string streamPartId = 1;
|
|
241
|
-
*/
|
|
242
|
-
streamPartId: string;
|
|
243
|
-
/**
|
|
244
|
-
* @generated from protobuf field: bool isEntryPoint = 2;
|
|
245
|
-
*/
|
|
246
|
-
isEntryPoint: boolean;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* @generated from protobuf message NeighborUpdate
|
|
250
|
-
*/
|
|
251
|
-
export interface NeighborUpdate {
|
|
252
|
-
/**
|
|
253
|
-
* @generated from protobuf field: string streamPartId = 1;
|
|
254
|
-
*/
|
|
255
|
-
streamPartId: string;
|
|
256
|
-
/**
|
|
257
|
-
* @generated from protobuf field: bool removeMe = 2;
|
|
258
|
-
*/
|
|
259
|
-
removeMe: boolean;
|
|
260
|
-
/**
|
|
261
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor neighborDescriptors = 3;
|
|
262
|
-
*/
|
|
263
|
-
neighborDescriptors: PeerDescriptor[];
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* @generated from protobuf message ProxyConnectionRequest
|
|
267
|
-
*/
|
|
268
|
-
export interface ProxyConnectionRequest {
|
|
269
|
-
/**
|
|
270
|
-
* @generated from protobuf field: ProxyDirection direction = 1;
|
|
271
|
-
*/
|
|
272
|
-
direction: ProxyDirection;
|
|
273
|
-
/**
|
|
274
|
-
* @generated from protobuf field: bytes userId = 2;
|
|
275
|
-
*/
|
|
276
|
-
userId: Uint8Array;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* @generated from protobuf message ProxyConnectionResponse
|
|
280
|
-
*/
|
|
281
|
-
export interface ProxyConnectionResponse {
|
|
282
|
-
/**
|
|
283
|
-
* @generated from protobuf field: bool accepted = 1;
|
|
284
|
-
*/
|
|
285
|
-
accepted: boolean;
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* @generated from protobuf message TemporaryConnectionRequest
|
|
289
|
-
*/
|
|
290
|
-
export interface TemporaryConnectionRequest {
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* @generated from protobuf message TemporaryConnectionResponse
|
|
294
|
-
*/
|
|
295
|
-
export interface TemporaryConnectionResponse {
|
|
296
|
-
/**
|
|
297
|
-
* @generated from protobuf field: bool accepted = 1;
|
|
298
|
-
*/
|
|
299
|
-
accepted: boolean;
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* @generated from protobuf message CloseTemporaryConnection
|
|
303
|
-
*/
|
|
304
|
-
export interface CloseTemporaryConnection {
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* @generated from protobuf message StreamPartitionInfo
|
|
308
|
-
*/
|
|
309
|
-
export interface StreamPartitionInfo {
|
|
310
|
-
/**
|
|
311
|
-
* @generated from protobuf field: string id = 1;
|
|
312
|
-
*/
|
|
313
|
-
id: string;
|
|
314
|
-
/**
|
|
315
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor controlLayerNeighbors = 2;
|
|
316
|
-
*/
|
|
317
|
-
controlLayerNeighbors: PeerDescriptor[];
|
|
318
|
-
/**
|
|
319
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor contentDeliveryLayerNeighbors = 3;
|
|
320
|
-
*/
|
|
321
|
-
contentDeliveryLayerNeighbors: PeerDescriptor[];
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* @generated from protobuf message ControlLayerInfo
|
|
325
|
-
*/
|
|
326
|
-
export interface ControlLayerInfo {
|
|
327
|
-
/**
|
|
328
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor neighbors = 1;
|
|
329
|
-
*/
|
|
330
|
-
neighbors: PeerDescriptor[];
|
|
331
|
-
/**
|
|
332
|
-
* @generated from protobuf field: repeated dht.PeerDescriptor connections = 2;
|
|
333
|
-
*/
|
|
334
|
-
connections: PeerDescriptor[];
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* @generated from protobuf message NodeInfoRequest
|
|
338
|
-
*/
|
|
339
|
-
export interface NodeInfoRequest {
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* @generated from protobuf message NodeInfoResponse
|
|
343
|
-
*/
|
|
344
|
-
export interface NodeInfoResponse {
|
|
345
|
-
/**
|
|
346
|
-
* @generated from protobuf field: dht.PeerDescriptor peerDescriptor = 1;
|
|
347
|
-
*/
|
|
348
|
-
peerDescriptor?: PeerDescriptor;
|
|
349
|
-
/**
|
|
350
|
-
* @generated from protobuf field: repeated StreamPartitionInfo streamPartitions = 2;
|
|
351
|
-
*/
|
|
352
|
-
streamPartitions: StreamPartitionInfo[];
|
|
353
|
-
/**
|
|
354
|
-
* @generated from protobuf field: optional ControlLayerInfo controlLayer = 3;
|
|
355
|
-
*/
|
|
356
|
-
controlLayer?: ControlLayerInfo;
|
|
357
|
-
/**
|
|
358
|
-
* @generated from protobuf field: string version = 4;
|
|
359
|
-
*/
|
|
360
|
-
version: string;
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* @generated from protobuf enum ContentType
|
|
364
|
-
*/
|
|
365
|
-
export enum ContentType {
|
|
366
|
-
/**
|
|
367
|
-
* @generated from protobuf enum value: JSON = 0;
|
|
368
|
-
*/
|
|
369
|
-
JSON = 0,
|
|
370
|
-
/**
|
|
371
|
-
* @generated from protobuf enum value: BINARY = 1;
|
|
372
|
-
*/
|
|
373
|
-
BINARY = 1
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* @generated from protobuf enum EncryptionType
|
|
377
|
-
*/
|
|
378
|
-
export enum EncryptionType {
|
|
379
|
-
/**
|
|
380
|
-
* @generated from protobuf enum value: NONE = 0;
|
|
381
|
-
*/
|
|
382
|
-
NONE = 0,
|
|
383
|
-
/**
|
|
384
|
-
* @generated from protobuf enum value: AES = 1;
|
|
385
|
-
*/
|
|
386
|
-
AES = 1
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* @generated from protobuf enum SignatureType
|
|
390
|
-
*/
|
|
391
|
-
export enum SignatureType {
|
|
392
|
-
/**
|
|
393
|
-
* @generated from protobuf enum value: LEGACY_SECP256K1 = 0;
|
|
394
|
-
*/
|
|
395
|
-
LEGACY_SECP256K1 = 0,
|
|
396
|
-
/**
|
|
397
|
-
* @generated from protobuf enum value: SECP256K1 = 1;
|
|
398
|
-
*/
|
|
399
|
-
SECP256K1 = 1,
|
|
400
|
-
/**
|
|
401
|
-
* @generated from protobuf enum value: ERC_1271 = 2;
|
|
402
|
-
*/
|
|
403
|
-
ERC_1271 = 2
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* @generated from protobuf enum ProxyDirection
|
|
407
|
-
*/
|
|
408
|
-
export enum ProxyDirection {
|
|
409
|
-
/**
|
|
410
|
-
* @generated from protobuf enum value: PUBLISH = 0;
|
|
411
|
-
*/
|
|
412
|
-
PUBLISH = 0,
|
|
413
|
-
/**
|
|
414
|
-
* @generated from protobuf enum value: SUBSCRIBE = 1;
|
|
415
|
-
*/
|
|
416
|
-
SUBSCRIBE = 1
|
|
417
|
-
}
|
|
418
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
419
|
-
class MessageID$Type extends MessageType<MessageID> {
|
|
420
|
-
constructor() {
|
|
421
|
-
super("MessageID", [
|
|
422
|
-
{ no: 1, name: "streamId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
423
|
-
{ no: 2, name: "streamPartition", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
424
|
-
{ no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
425
|
-
{ no: 4, name: "sequenceNumber", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
426
|
-
{ no: 5, name: "publisherId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
427
|
-
{ no: 6, name: "messageChainId", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
428
|
-
]);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
/**
|
|
432
|
-
* @generated MessageType for protobuf message MessageID
|
|
433
|
-
*/
|
|
434
|
-
export const MessageID = new MessageID$Type();
|
|
435
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
436
|
-
class MessageRef$Type extends MessageType<MessageRef> {
|
|
437
|
-
constructor() {
|
|
438
|
-
super("MessageRef", [
|
|
439
|
-
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ },
|
|
440
|
-
{ no: 2, name: "sequenceNumber", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
441
|
-
]);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* @generated MessageType for protobuf message MessageRef
|
|
446
|
-
*/
|
|
447
|
-
export const MessageRef = new MessageRef$Type();
|
|
448
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
449
|
-
class StreamMessage$Type extends MessageType<StreamMessage> {
|
|
450
|
-
constructor() {
|
|
451
|
-
super("StreamMessage", [
|
|
452
|
-
{ no: 1, name: "messageId", kind: "message", T: () => MessageID },
|
|
453
|
-
{ no: 2, name: "previousMessageRef", kind: "message", T: () => MessageRef },
|
|
454
|
-
{ no: 3, name: "signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
455
|
-
{ no: 4, name: "signatureType", kind: "enum", T: () => ["SignatureType", SignatureType] },
|
|
456
|
-
{ no: 5, name: "contentMessage", kind: "message", oneof: "body", T: () => ContentMessage },
|
|
457
|
-
{ no: 6, name: "groupKeyRequest", kind: "message", oneof: "body", T: () => GroupKeyRequest },
|
|
458
|
-
{ no: 7, name: "groupKeyResponse", kind: "message", oneof: "body", T: () => GroupKeyResponse }
|
|
459
|
-
]);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
/**
|
|
463
|
-
* @generated MessageType for protobuf message StreamMessage
|
|
464
|
-
*/
|
|
465
|
-
export const StreamMessage = new StreamMessage$Type();
|
|
466
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
467
|
-
class ContentMessage$Type extends MessageType<ContentMessage> {
|
|
468
|
-
constructor() {
|
|
469
|
-
super("ContentMessage", [
|
|
470
|
-
{ no: 1, name: "content", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
471
|
-
{ no: 2, name: "contentType", kind: "enum", T: () => ["ContentType", ContentType] },
|
|
472
|
-
{ no: 3, name: "encryptionType", kind: "enum", T: () => ["EncryptionType", EncryptionType] },
|
|
473
|
-
{ no: 4, name: "groupKeyId", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
474
|
-
{ no: 5, name: "newGroupKey", kind: "message", T: () => GroupKey }
|
|
475
|
-
]);
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
* @generated MessageType for protobuf message ContentMessage
|
|
480
|
-
*/
|
|
481
|
-
export const ContentMessage = new ContentMessage$Type();
|
|
482
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
483
|
-
class GroupKeyRequest$Type extends MessageType<GroupKeyRequest> {
|
|
484
|
-
constructor() {
|
|
485
|
-
super("GroupKeyRequest", [
|
|
486
|
-
{ no: 1, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
487
|
-
{ no: 2, name: "recipientId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
488
|
-
{ no: 3, name: "rsaPublicKey", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
489
|
-
{ no: 4, name: "groupKeyIds", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
490
|
-
]);
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* @generated MessageType for protobuf message GroupKeyRequest
|
|
495
|
-
*/
|
|
496
|
-
export const GroupKeyRequest = new GroupKeyRequest$Type();
|
|
497
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
498
|
-
class GroupKeyResponse$Type extends MessageType<GroupKeyResponse> {
|
|
499
|
-
constructor() {
|
|
500
|
-
super("GroupKeyResponse", [
|
|
501
|
-
{ no: 1, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
502
|
-
{ no: 2, name: "recipientId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
503
|
-
{ no: 3, name: "groupKeys", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => GroupKey }
|
|
504
|
-
]);
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* @generated MessageType for protobuf message GroupKeyResponse
|
|
509
|
-
*/
|
|
510
|
-
export const GroupKeyResponse = new GroupKeyResponse$Type();
|
|
511
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
512
|
-
class GroupKey$Type extends MessageType<GroupKey> {
|
|
513
|
-
constructor() {
|
|
514
|
-
super("GroupKey", [
|
|
515
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
516
|
-
{ no: 2, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
517
|
-
]);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
/**
|
|
521
|
-
* @generated MessageType for protobuf message GroupKey
|
|
522
|
-
*/
|
|
523
|
-
export const GroupKey = new GroupKey$Type();
|
|
524
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
525
|
-
class StreamPartHandshakeRequest$Type extends MessageType<StreamPartHandshakeRequest> {
|
|
526
|
-
constructor() {
|
|
527
|
-
super("StreamPartHandshakeRequest", [
|
|
528
|
-
{ no: 1, name: "streamPartId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
529
|
-
{ no: 2, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
530
|
-
{ no: 3, name: "concurrentHandshakeNodeId", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
531
|
-
{ no: 4, name: "neighborNodeIds", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
532
|
-
{ no: 5, name: "interleaveNodeId", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ }
|
|
533
|
-
]);
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
/**
|
|
537
|
-
* @generated MessageType for protobuf message StreamPartHandshakeRequest
|
|
538
|
-
*/
|
|
539
|
-
export const StreamPartHandshakeRequest = new StreamPartHandshakeRequest$Type();
|
|
540
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
541
|
-
class StreamPartHandshakeResponse$Type extends MessageType<StreamPartHandshakeResponse> {
|
|
542
|
-
constructor() {
|
|
543
|
-
super("StreamPartHandshakeResponse", [
|
|
544
|
-
{ no: 1, name: "accepted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
545
|
-
{ no: 2, name: "requestId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
546
|
-
{ no: 3, name: "interleaveTargetDescriptor", kind: "message", T: () => PeerDescriptor }
|
|
547
|
-
]);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
/**
|
|
551
|
-
* @generated MessageType for protobuf message StreamPartHandshakeResponse
|
|
552
|
-
*/
|
|
553
|
-
export const StreamPartHandshakeResponse = new StreamPartHandshakeResponse$Type();
|
|
554
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
555
|
-
class InterleaveRequest$Type extends MessageType<InterleaveRequest> {
|
|
556
|
-
constructor() {
|
|
557
|
-
super("InterleaveRequest", [
|
|
558
|
-
{ no: 1, name: "interleaveTargetDescriptor", kind: "message", T: () => PeerDescriptor }
|
|
559
|
-
]);
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* @generated MessageType for protobuf message InterleaveRequest
|
|
564
|
-
*/
|
|
565
|
-
export const InterleaveRequest = new InterleaveRequest$Type();
|
|
566
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
567
|
-
class InterleaveResponse$Type extends MessageType<InterleaveResponse> {
|
|
568
|
-
constructor() {
|
|
569
|
-
super("InterleaveResponse", [
|
|
570
|
-
{ no: 1, name: "accepted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
571
|
-
]);
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
/**
|
|
575
|
-
* @generated MessageType for protobuf message InterleaveResponse
|
|
576
|
-
*/
|
|
577
|
-
export const InterleaveResponse = new InterleaveResponse$Type();
|
|
578
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
579
|
-
class LeaveStreamPartNotice$Type extends MessageType<LeaveStreamPartNotice> {
|
|
580
|
-
constructor() {
|
|
581
|
-
super("LeaveStreamPartNotice", [
|
|
582
|
-
{ no: 1, name: "streamPartId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
583
|
-
{ no: 2, name: "isEntryPoint", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
584
|
-
]);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
/**
|
|
588
|
-
* @generated MessageType for protobuf message LeaveStreamPartNotice
|
|
589
|
-
*/
|
|
590
|
-
export const LeaveStreamPartNotice = new LeaveStreamPartNotice$Type();
|
|
591
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
592
|
-
class NeighborUpdate$Type extends MessageType<NeighborUpdate> {
|
|
593
|
-
constructor() {
|
|
594
|
-
super("NeighborUpdate", [
|
|
595
|
-
{ no: 1, name: "streamPartId", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
596
|
-
{ no: 2, name: "removeMe", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
597
|
-
{ no: 3, name: "neighborDescriptors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor }
|
|
598
|
-
]);
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
/**
|
|
602
|
-
* @generated MessageType for protobuf message NeighborUpdate
|
|
603
|
-
*/
|
|
604
|
-
export const NeighborUpdate = new NeighborUpdate$Type();
|
|
605
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
606
|
-
class ProxyConnectionRequest$Type extends MessageType<ProxyConnectionRequest> {
|
|
607
|
-
constructor() {
|
|
608
|
-
super("ProxyConnectionRequest", [
|
|
609
|
-
{ no: 1, name: "direction", kind: "enum", T: () => ["ProxyDirection", ProxyDirection] },
|
|
610
|
-
{ no: 2, name: "userId", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
611
|
-
]);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
/**
|
|
615
|
-
* @generated MessageType for protobuf message ProxyConnectionRequest
|
|
616
|
-
*/
|
|
617
|
-
export const ProxyConnectionRequest = new ProxyConnectionRequest$Type();
|
|
618
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
619
|
-
class ProxyConnectionResponse$Type extends MessageType<ProxyConnectionResponse> {
|
|
620
|
-
constructor() {
|
|
621
|
-
super("ProxyConnectionResponse", [
|
|
622
|
-
{ no: 1, name: "accepted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
623
|
-
]);
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
/**
|
|
627
|
-
* @generated MessageType for protobuf message ProxyConnectionResponse
|
|
628
|
-
*/
|
|
629
|
-
export const ProxyConnectionResponse = new ProxyConnectionResponse$Type();
|
|
630
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
631
|
-
class TemporaryConnectionRequest$Type extends MessageType<TemporaryConnectionRequest> {
|
|
632
|
-
constructor() {
|
|
633
|
-
super("TemporaryConnectionRequest", []);
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
/**
|
|
637
|
-
* @generated MessageType for protobuf message TemporaryConnectionRequest
|
|
638
|
-
*/
|
|
639
|
-
export const TemporaryConnectionRequest = new TemporaryConnectionRequest$Type();
|
|
640
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
641
|
-
class TemporaryConnectionResponse$Type extends MessageType<TemporaryConnectionResponse> {
|
|
642
|
-
constructor() {
|
|
643
|
-
super("TemporaryConnectionResponse", [
|
|
644
|
-
{ no: 1, name: "accepted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
645
|
-
]);
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
/**
|
|
649
|
-
* @generated MessageType for protobuf message TemporaryConnectionResponse
|
|
650
|
-
*/
|
|
651
|
-
export const TemporaryConnectionResponse = new TemporaryConnectionResponse$Type();
|
|
652
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
653
|
-
class CloseTemporaryConnection$Type extends MessageType<CloseTemporaryConnection> {
|
|
654
|
-
constructor() {
|
|
655
|
-
super("CloseTemporaryConnection", []);
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
* @generated MessageType for protobuf message CloseTemporaryConnection
|
|
660
|
-
*/
|
|
661
|
-
export const CloseTemporaryConnection = new CloseTemporaryConnection$Type();
|
|
662
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
663
|
-
class StreamPartitionInfo$Type extends MessageType<StreamPartitionInfo> {
|
|
664
|
-
constructor() {
|
|
665
|
-
super("StreamPartitionInfo", [
|
|
666
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
667
|
-
{ no: 2, name: "controlLayerNeighbors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor },
|
|
668
|
-
{ no: 3, name: "contentDeliveryLayerNeighbors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor }
|
|
669
|
-
]);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
/**
|
|
673
|
-
* @generated MessageType for protobuf message StreamPartitionInfo
|
|
674
|
-
*/
|
|
675
|
-
export const StreamPartitionInfo = new StreamPartitionInfo$Type();
|
|
676
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
677
|
-
class ControlLayerInfo$Type extends MessageType<ControlLayerInfo> {
|
|
678
|
-
constructor() {
|
|
679
|
-
super("ControlLayerInfo", [
|
|
680
|
-
{ no: 1, name: "neighbors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor },
|
|
681
|
-
{ no: 2, name: "connections", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor }
|
|
682
|
-
]);
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
/**
|
|
686
|
-
* @generated MessageType for protobuf message ControlLayerInfo
|
|
687
|
-
*/
|
|
688
|
-
export const ControlLayerInfo = new ControlLayerInfo$Type();
|
|
689
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
690
|
-
class NodeInfoRequest$Type extends MessageType<NodeInfoRequest> {
|
|
691
|
-
constructor() {
|
|
692
|
-
super("NodeInfoRequest", []);
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
/**
|
|
696
|
-
* @generated MessageType for protobuf message NodeInfoRequest
|
|
697
|
-
*/
|
|
698
|
-
export const NodeInfoRequest = new NodeInfoRequest$Type();
|
|
699
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
700
|
-
class NodeInfoResponse$Type extends MessageType<NodeInfoResponse> {
|
|
701
|
-
constructor() {
|
|
702
|
-
super("NodeInfoResponse", [
|
|
703
|
-
{ no: 1, name: "peerDescriptor", kind: "message", T: () => PeerDescriptor },
|
|
704
|
-
{ no: 2, name: "streamPartitions", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => StreamPartitionInfo },
|
|
705
|
-
{ no: 3, name: "controlLayer", kind: "message", T: () => ControlLayerInfo },
|
|
706
|
-
{ no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
707
|
-
]);
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* @generated MessageType for protobuf message NodeInfoResponse
|
|
712
|
-
*/
|
|
713
|
-
export const NodeInfoResponse = new NodeInfoResponse$Type();
|
|
714
|
-
/**
|
|
715
|
-
* @generated ServiceType for protobuf service ContentDeliveryRpc
|
|
716
|
-
*/
|
|
717
|
-
export const ContentDeliveryRpc = new ServiceType("ContentDeliveryRpc", [
|
|
718
|
-
{ name: "sendStreamMessage", options: {}, I: StreamMessage, O: Empty },
|
|
719
|
-
{ name: "leaveStreamPartNotice", options: {}, I: LeaveStreamPartNotice, O: Empty }
|
|
720
|
-
]);
|
|
721
|
-
/**
|
|
722
|
-
* @generated ServiceType for protobuf service ProxyConnectionRpc
|
|
723
|
-
*/
|
|
724
|
-
export const ProxyConnectionRpc = new ServiceType("ProxyConnectionRpc", [
|
|
725
|
-
{ name: "requestConnection", options: {}, I: ProxyConnectionRequest, O: ProxyConnectionResponse }
|
|
726
|
-
]);
|
|
727
|
-
/**
|
|
728
|
-
* @generated ServiceType for protobuf service HandshakeRpc
|
|
729
|
-
*/
|
|
730
|
-
export const HandshakeRpc = new ServiceType("HandshakeRpc", [
|
|
731
|
-
{ name: "handshake", options: {}, I: StreamPartHandshakeRequest, O: StreamPartHandshakeResponse },
|
|
732
|
-
{ name: "interleaveRequest", options: {}, I: InterleaveRequest, O: InterleaveResponse }
|
|
733
|
-
]);
|
|
734
|
-
/**
|
|
735
|
-
* @generated ServiceType for protobuf service NeighborUpdateRpc
|
|
736
|
-
*/
|
|
737
|
-
export const NeighborUpdateRpc = new ServiceType("NeighborUpdateRpc", [
|
|
738
|
-
{ name: "neighborUpdate", options: {}, I: NeighborUpdate, O: NeighborUpdate }
|
|
739
|
-
]);
|
|
740
|
-
/**
|
|
741
|
-
* @generated ServiceType for protobuf service TemporaryConnectionRpc
|
|
742
|
-
*/
|
|
743
|
-
export const TemporaryConnectionRpc = new ServiceType("TemporaryConnectionRpc", [
|
|
744
|
-
{ name: "openConnection", options: {}, I: TemporaryConnectionRequest, O: TemporaryConnectionResponse },
|
|
745
|
-
{ name: "closeConnection", options: {}, I: CloseTemporaryConnection, O: Empty }
|
|
746
|
-
]);
|
|
747
|
-
/**
|
|
748
|
-
* @generated ServiceType for protobuf service NodeInfoRpc
|
|
749
|
-
*/
|
|
750
|
-
export const NodeInfoRpc = new ServiceType("NodeInfoRpc", [
|
|
751
|
-
{ name: "getInfo", options: {}, I: NodeInfoRequest, O: NodeInfoResponse }
|
|
752
|
-
]);
|