@dxos/protocols 0.6.1-main.92dcbbe → 0.6.1-main.babcd84
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.
- package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts +25 -0
- package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +3 -0
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/service.d.ts +25 -0
- package/dist/esm/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +3 -0
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/package.json +6 -6
- package/src/proto/dxos/echo/service.proto +14 -0
- package/src/proto/gen/dxos/devtools/host.ts +31 -31
- package/src/proto/gen/dxos/echo/service.ts +25 -0
- package/src/proto/gen/index.ts +4 -1
|
@@ -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;AAgEhE,OAAO,aAAa,MAAM,kBAAkB,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;AAgEhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAwjB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,uj5GAAuj5G,CAAC,CAAC,CAAC;AAChn5G,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.6.1-main.
|
|
3
|
+
"version": "0.6.1-main.babcd84",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@effect/schema": "^0.67.16",
|
|
37
|
-
"@dxos/invariant": "0.6.1-main.
|
|
38
|
-
"@dxos/codec-protobuf": "0.6.1-main.
|
|
39
|
-
"@dxos/keys": "0.6.1-main.
|
|
40
|
-
"@dxos/util": "0.6.1-main.
|
|
41
|
-
"@dxos/timeframe": "0.6.1-main.
|
|
37
|
+
"@dxos/invariant": "0.6.1-main.babcd84",
|
|
38
|
+
"@dxos/codec-protobuf": "0.6.1-main.babcd84",
|
|
39
|
+
"@dxos/keys": "0.6.1-main.babcd84",
|
|
40
|
+
"@dxos/util": "0.6.1-main.babcd84",
|
|
41
|
+
"@dxos/timeframe": "0.6.1-main.babcd84"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"glob": "~7.1.6"
|
|
@@ -75,6 +75,19 @@ message SyncRepoResponse {
|
|
|
75
75
|
optional bytes sync_message = 1;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
message GetDocumentHeadsRequest {
|
|
79
|
+
repeated string document_ids = 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message GetDocumentHeadsResponse {
|
|
83
|
+
message DocState {
|
|
84
|
+
string document_id = 1;
|
|
85
|
+
repeated string heads = 2;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
repeated DocState states = 1;
|
|
89
|
+
}
|
|
90
|
+
|
|
78
91
|
service DataService {
|
|
79
92
|
rpc Subscribe(SubscribeRequest) returns (stream EchoEvent);
|
|
80
93
|
rpc Write(WriteRequest) returns (MutationReceipt); // TODO(burdon): Rename SubmitMutation.
|
|
@@ -85,4 +98,5 @@ service DataService {
|
|
|
85
98
|
rpc GetHostInfo(google.protobuf.Empty) returns (HostInfo);
|
|
86
99
|
rpc SyncRepo(SyncRepoRequest) returns (stream SyncRepoResponse);
|
|
87
100
|
rpc SendSyncMessage(SyncRepoRequest) returns (google.protobuf.Empty); // TODO(dmaretskyi): Bidirectional streams.
|
|
101
|
+
rpc GetDocumentHeads(GetDocumentHeadsRequest) returns (GetDocumentHeadsResponse);
|
|
88
102
|
}
|
|
@@ -62,6 +62,37 @@ import * as dxos_value from "../value";
|
|
|
62
62
|
import * as example_testing_data from "../../example/testing/data";
|
|
63
63
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
64
64
|
import * as google_protobuf from "../../google/protobuf";
|
|
65
|
+
/**
|
|
66
|
+
* Defined in:
|
|
67
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
68
|
+
*/
|
|
69
|
+
export interface Services {
|
|
70
|
+
spaces?: SpaceStats[];
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Defined in:
|
|
74
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
75
|
+
*/
|
|
76
|
+
export interface SpaceStats {
|
|
77
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
78
|
+
peers?: PeerStats[];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Defined in:
|
|
82
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
83
|
+
*/
|
|
84
|
+
export interface PeerStats {
|
|
85
|
+
controlFeed: FeedStats;
|
|
86
|
+
dataFeed: FeedStats;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Defined in:
|
|
90
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
91
|
+
*/
|
|
92
|
+
export interface FeedStats {
|
|
93
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
94
|
+
length: number;
|
|
95
|
+
}
|
|
65
96
|
/**
|
|
66
97
|
* Defined in:
|
|
67
98
|
* {@link file://./../../../dxos/devtools/host.proto}
|
|
@@ -484,34 +515,3 @@ export interface SubscribeToSwarmInfoRequest {
|
|
|
484
515
|
export interface SubscribeToSwarmInfoResponse {
|
|
485
516
|
data?: dxos_devtools_swarm.SwarmInfo[];
|
|
486
517
|
}
|
|
487
|
-
/**
|
|
488
|
-
* Defined in:
|
|
489
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
490
|
-
*/
|
|
491
|
-
export interface Services {
|
|
492
|
-
spaces?: SpaceStats[];
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* Defined in:
|
|
496
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
497
|
-
*/
|
|
498
|
-
export interface SpaceStats {
|
|
499
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
500
|
-
peers?: PeerStats[];
|
|
501
|
-
}
|
|
502
|
-
/**
|
|
503
|
-
* Defined in:
|
|
504
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
505
|
-
*/
|
|
506
|
-
export interface PeerStats {
|
|
507
|
-
controlFeed: FeedStats;
|
|
508
|
-
dataFeed: FeedStats;
|
|
509
|
-
}
|
|
510
|
-
/**
|
|
511
|
-
* Defined in:
|
|
512
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
513
|
-
*/
|
|
514
|
-
export interface FeedStats {
|
|
515
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
516
|
-
length: number;
|
|
517
|
-
}
|
|
@@ -187,6 +187,30 @@ export interface SyncRepoResponse {
|
|
|
187
187
|
*/
|
|
188
188
|
syncMessage?: Uint8Array;
|
|
189
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* Defined in:
|
|
192
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
193
|
+
*/
|
|
194
|
+
export interface GetDocumentHeadsRequest {
|
|
195
|
+
documentIds?: string[];
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Defined in:
|
|
199
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
200
|
+
*/
|
|
201
|
+
export interface GetDocumentHeadsResponse {
|
|
202
|
+
states?: GetDocumentHeadsResponse.DocState[];
|
|
203
|
+
}
|
|
204
|
+
export namespace GetDocumentHeadsResponse {
|
|
205
|
+
/**
|
|
206
|
+
* Defined in:
|
|
207
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
208
|
+
*/
|
|
209
|
+
export interface DocState {
|
|
210
|
+
documentId: string;
|
|
211
|
+
heads?: string[];
|
|
212
|
+
}
|
|
213
|
+
}
|
|
190
214
|
/**
|
|
191
215
|
* Defined in:
|
|
192
216
|
* {@link file://./../../../dxos/echo/service.proto}
|
|
@@ -198,4 +222,5 @@ export interface DataService {
|
|
|
198
222
|
getHostInfo: (request: void, options?: RequestOptions) => Promise<HostInfo>;
|
|
199
223
|
syncRepo: (request: SyncRepoRequest, options?: RequestOptions) => Stream<SyncRepoResponse>;
|
|
200
224
|
sendSyncMessage: (request: SyncRepoRequest, options?: RequestOptions) => Promise<void>;
|
|
225
|
+
getDocumentHeads: (request: GetDocumentHeadsRequest, options?: RequestOptions) => Promise<GetDocumentHeadsResponse>;
|
|
201
226
|
}
|