@dxos/protocols 0.1.56-main.75eda46 → 0.1.56-main.81df825

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;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAie7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4svFAA4svF,CAAC,CAAC,CAAC;AACrwvF,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;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAie7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,w6vFAAw6vF,CAAC,CAAC,CAAC;AACj+vF,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.1.56-main.75eda46",
3
+ "version": "0.1.56-main.81df825",
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.1.56-main.75eda46",
37
- "@dxos/hypercore": "0.1.56-main.75eda46",
38
- "@dxos/keys": "0.1.56-main.75eda46",
39
- "@dxos/timeframe": "0.1.56-main.75eda46"
36
+ "@dxos/hypercore": "0.1.56-main.81df825",
37
+ "@dxos/keys": "0.1.56-main.81df825",
38
+ "@dxos/codec-protobuf": "0.1.56-main.81df825",
39
+ "@dxos/timeframe": "0.1.56-main.81df825"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -4,6 +4,8 @@
4
4
 
5
5
  syntax = "proto3";
6
6
 
7
+ import "google/protobuf/timestamp.proto";
8
+
7
9
  import "dxos/keys.proto";
8
10
 
9
11
  package dxos.devtools.swarm;
@@ -20,9 +22,11 @@ message ConnectionInfo {
20
22
  message StreamStats {
21
23
  uint32 id = 1;
22
24
  string tag = 2;
25
+ optional string contentType = 5;
23
26
  uint32 bytesSent = 3;
24
27
  uint32 bytesReceived = 4;
25
- optional string contentType = 5;
28
+ optional uint32 bytesSentRate = 6; // bytes per second.
29
+ optional uint32 bytesReceivedRate = 7;
26
30
  }
27
31
 
28
32
  string state = 1;
@@ -93,13 +93,23 @@ export namespace ConnectionInfo {
93
93
  export interface StreamStats {
94
94
  id: number;
95
95
  tag: string;
96
+ /**
97
+ * Options:
98
+ * - proto3_optional = true
99
+ */
100
+ contentType?: string;
96
101
  bytesSent: number;
97
102
  bytesReceived: number;
98
103
  /**
99
104
  * Options:
100
105
  * - proto3_optional = true
101
106
  */
102
- contentType?: string;
107
+ bytesSentRate?: number;
108
+ /**
109
+ * Options:
110
+ * - proto3_optional = true
111
+ */
112
+ bytesReceivedRate?: number;
103
113
  }
104
114
  }
105
115
  /**