@dxos/protocols 0.3.5-main.927500d → 0.3.5-main.cc26d3f

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.5-main.927500d",
3
+ "version": "0.3.5-main.cc26d3f",
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.5-main.927500d",
37
- "@dxos/invariant": "0.3.5-main.927500d",
38
- "@dxos/keys": "0.3.5-main.927500d",
39
- "@dxos/timeframe": "0.3.5-main.927500d"
36
+ "@dxos/codec-protobuf": "0.3.5-main.cc26d3f",
37
+ "@dxos/invariant": "0.3.5-main.cc26d3f",
38
+ "@dxos/keys": "0.3.5-main.cc26d3f",
39
+ "@dxos/timeframe": "0.3.5-main.cc26d3f"
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
+ }
@@ -59,10 +59,6 @@ import * as example_testing_data from "../example/testing/data";
59
59
  import * as example_testing_rpc from "../example/testing/rpc";
60
60
  export interface Empty {
61
61
  }
62
- export interface Any {
63
- type_url: string;
64
- value: Uint8Array;
65
- }
66
62
  export interface Struct {
67
63
  fields?: Partial<Record<string, Value>>;
68
64
  }
@@ -84,6 +80,10 @@ export interface Timestamp {
84
80
  seconds: string;
85
81
  nanos: number;
86
82
  }
83
+ export interface Any {
84
+ type_url: string;
85
+ value: Uint8Array;
86
+ }
87
87
  export interface FileDescriptorSet {
88
88
  file?: FileDescriptorProto[];
89
89
  }