@dxos/protocols 0.3.9-main.b7e6a67 → 0.3.9-main.c2ac8a5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA4DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAugB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,yg/FAAyg/F,CAAC,CAAC,CAAC;AAClk/F,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA4DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA2gB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4ygGAA4ygG,CAAC,CAAC,CAAC;AACr2gG,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.3.9-main.b7e6a67",
3
+ "version": "0.3.9-main.c2ac8a5",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,10 +33,10 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@dxos/codec-protobuf": "0.3.9-main.b7e6a67",
37
- "@dxos/keys": "0.3.9-main.b7e6a67",
38
- "@dxos/timeframe": "0.3.9-main.b7e6a67",
39
- "@dxos/invariant": "0.3.9-main.b7e6a67"
36
+ "@dxos/codec-protobuf": "0.3.9-main.c2ac8a5",
37
+ "@dxos/keys": "0.3.9-main.c2ac8a5",
38
+ "@dxos/timeframe": "0.3.9-main.c2ac8a5",
39
+ "@dxos/invariant": "0.3.9-main.c2ac8a5"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -42,6 +42,12 @@ message ConnectionInfo {
42
42
  optional uint32 readBufferSize = 10;
43
43
  optional uint32 writeBufferSize = 11;
44
44
  optional google.protobuf.Timestamp last_update = 12;
45
+ optional string transport_details = 13;
46
+ // TODO(nf): uint64?
47
+ optional uint32 transport_bytes_sent = 14;
48
+ optional uint32 transport_bytes_received = 15;
49
+ optional uint32 transport_packets_sent = 16;
50
+ optional uint32 transport_packets_received = 17;
45
51
  }
46
52
 
47
53
  message ConnectionEvent {
@@ -7,6 +7,7 @@ syntax = "proto3";
7
7
  import "dxos/keys.proto";
8
8
  import "dxos/mesh/swarm.proto";
9
9
  import "google/protobuf/empty.proto";
10
+ import "google/protobuf/struct.proto";
10
11
 
11
12
  package dxos.mesh.bridge;
12
13
 
@@ -26,6 +27,13 @@ service BridgeService {
26
27
 
27
28
  ///
28
29
  rpc Close(CloseRequest) returns (google.protobuf.Empty);
30
+
31
+ ///
32
+ rpc GetDetails(DetailsRequest) returns (DetailsResponse);
33
+
34
+ ///
35
+ rpc GetStats(StatsRequest) returns (StatsResponse);
36
+
29
37
  }
30
38
 
31
39
  enum ConnectionState {
@@ -74,3 +82,18 @@ message DataRequest {
74
82
  message CloseRequest{
75
83
  dxos.keys.PublicKey proxy_id = 1;
76
84
  }
85
+
86
+ message DetailsRequest{
87
+ dxos.keys.PublicKey proxy_id = 1;
88
+ }
89
+
90
+ message DetailsResponse{
91
+ string details = 1;
92
+ }
93
+
94
+ message StatsRequest{
95
+ dxos.keys.PublicKey proxy_id = 1;
96
+ }
97
+ message StatsResponse{
98
+ google.protobuf.Struct stats = 1;
99
+ }
@@ -114,6 +114,31 @@ export interface ConnectionInfo {
114
114
  * - proto3_optional = true
115
115
  */
116
116
  lastUpdate?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
117
+ /**
118
+ * Options:
119
+ * - proto3_optional = true
120
+ */
121
+ transportDetails?: string;
122
+ /**
123
+ * Options:
124
+ * - proto3_optional = true
125
+ */
126
+ transportBytesSent?: number;
127
+ /**
128
+ * Options:
129
+ * - proto3_optional = true
130
+ */
131
+ transportBytesReceived?: number;
132
+ /**
133
+ * Options:
134
+ * - proto3_optional = true
135
+ */
136
+ transportPacketsSent?: number;
137
+ /**
138
+ * Options:
139
+ * - proto3_optional = true
140
+ */
141
+ transportPacketsReceived?: number;
117
142
  }
118
143
  export namespace ConnectionInfo {
119
144
  /**
@@ -67,6 +67,8 @@ export interface BridgeService {
67
67
  sendSignal: (request: SignalRequest, options?: RequestOptions) => Promise<void>;
68
68
  sendData: (request: DataRequest, options?: RequestOptions) => Promise<void>;
69
69
  close: (request: CloseRequest, options?: RequestOptions) => Promise<void>;
70
+ getDetails: (request: DetailsRequest, options?: RequestOptions) => Promise<DetailsResponse>;
71
+ getStats: (request: StatsRequest, options?: RequestOptions) => Promise<StatsResponse>;
70
72
  }
71
73
  /**
72
74
  * Defined in:
@@ -146,3 +148,31 @@ export interface DataRequest {
146
148
  export interface CloseRequest {
147
149
  proxyId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
148
150
  }
151
+ /**
152
+ * Defined in:
153
+ * {@link file://./../../../dxos/mesh/bridge.proto}
154
+ */
155
+ export interface DetailsRequest {
156
+ proxyId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
157
+ }
158
+ /**
159
+ * Defined in:
160
+ * {@link file://./../../../dxos/mesh/bridge.proto}
161
+ */
162
+ export interface DetailsResponse {
163
+ details: string;
164
+ }
165
+ /**
166
+ * Defined in:
167
+ * {@link file://./../../../dxos/mesh/bridge.proto}
168
+ */
169
+ export interface StatsRequest {
170
+ proxyId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
171
+ }
172
+ /**
173
+ * Defined in:
174
+ * {@link file://./../../../dxos/mesh/bridge.proto}
175
+ */
176
+ export interface StatsResponse {
177
+ stats: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
178
+ }