@dxos/protocols 0.3.4 → 0.3.5-main.1ae5af4

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;AA2DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA+f7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,i96FAAi96F,CAAC,CAAC,CAAC;AAC1g7F,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;AA2DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAggB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,6/6FAA6/6F,CAAC,CAAC,CAAC;AACtj7F,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.4",
3
+ "version": "0.3.5-main.1ae5af4",
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.4",
37
- "@dxos/invariant": "0.3.4",
38
- "@dxos/keys": "0.3.4",
39
- "@dxos/timeframe": "0.3.4"
36
+ "@dxos/codec-protobuf": "0.3.5-main.1ae5af4",
37
+ "@dxos/invariant": "0.3.5-main.1ae5af4",
38
+ "@dxos/keys": "0.3.5-main.1ae5af4",
39
+ "@dxos/timeframe": "0.3.5-main.1ae5af4"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -11,7 +11,9 @@ message Command {
11
11
  oneof payload {
12
12
  OpenChannel open_channel = 1;
13
13
  Data data = 2;
14
+ // deprecated.
14
15
  Destroy destroy = 3;
16
+ Close close = 4;
15
17
  }
16
18
  }
17
19
 
@@ -48,4 +50,8 @@ message Data {
48
50
  message Destroy {
49
51
  /// Error that caused the termination.
50
52
  optional string error = 1;
53
+ }
54
+ message Close {
55
+ /// Error that caused the termination.
56
+ optional string error = 1;
51
57
  }
@@ -67,6 +67,7 @@ export interface Command {
67
67
  openChannel?: OpenChannel;
68
68
  data?: Data;
69
69
  destroy?: Destroy;
70
+ close?: Close;
70
71
  }
71
72
  /**
72
73
  * Notify the remote peer that we are opening a channel.
@@ -124,3 +125,16 @@ export interface Destroy {
124
125
  */
125
126
  error?: string;
126
127
  }
128
+ /**
129
+ * Defined in:
130
+ * {@link file://./../../../dxos/mesh/muxer.proto}
131
+ */
132
+ export interface Close {
133
+ /**
134
+ * Error that caused the termination.
135
+ *
136
+ * Options:
137
+ * - proto3_optional = true
138
+ */
139
+ error?: string;
140
+ }