@dxos/protocols 0.3.9-main.4e39f3a → 0.3.9-main.501fe30

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;AA4gB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,+vhGAA+vhG,CAAC,CAAC,CAAC;AACxzhG,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;AA6gB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,s1hGAAs1hG,CAAC,CAAC,CAAC;AAC/4hG,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.4e39f3a",
3
+ "version": "0.3.9-main.501fe30",
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.4e39f3a",
37
- "@dxos/timeframe": "0.3.9-main.4e39f3a",
38
- "@dxos/invariant": "0.3.9-main.4e39f3a",
39
- "@dxos/keys": "0.3.9-main.4e39f3a"
36
+ "@dxos/codec-protobuf": "0.3.9-main.501fe30",
37
+ "@dxos/invariant": "0.3.9-main.501fe30",
38
+ "@dxos/keys": "0.3.9-main.501fe30",
39
+ "@dxos/timeframe": "0.3.9-main.501fe30"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -51,6 +51,10 @@ message FlushRequest {
51
51
  }
52
52
 
53
53
  // Automerge specific.
54
+ message HostInfo {
55
+ string peer_id = 1;
56
+ }
57
+
54
58
  message SyncRepoRequest {
55
59
  string id = 1;
56
60
 
@@ -68,6 +72,7 @@ service DataService {
68
72
 
69
73
  // Automerge specific.
70
74
 
75
+ rpc GetHostInfo(google.protobuf.Empty) returns (HostInfo);
71
76
  rpc SyncRepo(SyncRepoRequest) returns (stream SyncRepoResponse);
72
77
  rpc SendSyncMessage(SyncRepoRequest) returns (google.protobuf.Empty); // TODO(dmaretskyi): Bidirectional streams.
73
78
  }
@@ -135,6 +135,13 @@ export interface MutationReceipt {
135
135
  export interface FlushRequest {
136
136
  spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
137
137
  }
138
+ /**
139
+ * Defined in:
140
+ * {@link file://./../../../dxos/echo/service.proto}
141
+ */
142
+ export interface HostInfo {
143
+ peerId: string;
144
+ }
138
145
  /**
139
146
  * Defined in:
140
147
  * {@link file://./../../../dxos/echo/service.proto}
@@ -166,6 +173,7 @@ export interface DataService {
166
173
  subscribe: (request: SubscribeRequest, options?: RequestOptions) => Stream<EchoEvent>;
167
174
  write: (request: WriteRequest, options?: RequestOptions) => Promise<MutationReceipt>;
168
175
  flush: (request: FlushRequest, options?: RequestOptions) => Promise<void>;
176
+ getHostInfo: (request: void, options?: RequestOptions) => Promise<HostInfo>;
169
177
  syncRepo: (request: SyncRepoRequest, options?: RequestOptions) => Stream<SyncRepoResponse>;
170
178
  sendSyncMessage: (request: SyncRepoRequest, options?: RequestOptions) => Promise<void>;
171
179
  }