@dxos/protocols 0.6.1-main.fac53f5 → 0.6.1-main.faf01b2
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 +33 -0
- package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +4 -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 +33 -0
- package/dist/esm/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +4 -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 +19 -0
- package/src/proto/gen/dxos/devtools/host.ts +31 -31
- package/src/proto/gen/dxos/echo/service.ts +33 -0
- package/src/proto/gen/index.ts +5 -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;AAyjB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,+n5GAA+n5G,CAAC,CAAC,CAAC;AACxr5G,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.faf01b2",
|
|
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/codec-protobuf": "0.6.1-main.
|
|
38
|
-
"@dxos/invariant": "0.6.1-main.
|
|
39
|
-
"@dxos/keys": "0.6.1-main.
|
|
40
|
-
"@dxos/timeframe": "0.6.1-main.
|
|
41
|
-
"@dxos/util": "0.6.1-main.
|
|
37
|
+
"@dxos/codec-protobuf": "0.6.1-main.faf01b2",
|
|
38
|
+
"@dxos/invariant": "0.6.1-main.faf01b2",
|
|
39
|
+
"@dxos/keys": "0.6.1-main.faf01b2",
|
|
40
|
+
"@dxos/timeframe": "0.6.1-main.faf01b2",
|
|
41
|
+
"@dxos/util": "0.6.1-main.faf01b2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"glob": "~7.1.6"
|
|
@@ -75,6 +75,23 @@ 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
|
+
|
|
91
|
+
message ReIndexHeadsRequest {
|
|
92
|
+
repeated string document_ids = 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
78
95
|
service DataService {
|
|
79
96
|
rpc Subscribe(SubscribeRequest) returns (stream EchoEvent);
|
|
80
97
|
rpc Write(WriteRequest) returns (MutationReceipt); // TODO(burdon): Rename SubmitMutation.
|
|
@@ -85,4 +102,6 @@ service DataService {
|
|
|
85
102
|
rpc GetHostInfo(google.protobuf.Empty) returns (HostInfo);
|
|
86
103
|
rpc SyncRepo(SyncRepoRequest) returns (stream SyncRepoResponse);
|
|
87
104
|
rpc SendSyncMessage(SyncRepoRequest) returns (google.protobuf.Empty); // TODO(dmaretskyi): Bidirectional streams.
|
|
105
|
+
rpc GetDocumentHeads(GetDocumentHeadsRequest) returns (GetDocumentHeadsResponse);
|
|
106
|
+
rpc ReIndexHeads(ReIndexHeadsRequest) returns (google.protobuf.Empty);
|
|
88
107
|
}
|
|
@@ -62,37 +62,6 @@ 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
|
-
}
|
|
96
65
|
/**
|
|
97
66
|
* Defined in:
|
|
98
67
|
* {@link file://./../../../dxos/devtools/host.proto}
|
|
@@ -515,3 +484,34 @@ export interface SubscribeToSwarmInfoRequest {
|
|
|
515
484
|
export interface SubscribeToSwarmInfoResponse {
|
|
516
485
|
data?: dxos_devtools_swarm.SwarmInfo[];
|
|
517
486
|
}
|
|
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,37 @@ 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
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Defined in:
|
|
216
|
+
* {@link file://./../../../dxos/echo/service.proto}
|
|
217
|
+
*/
|
|
218
|
+
export interface ReIndexHeadsRequest {
|
|
219
|
+
documentIds?: string[];
|
|
220
|
+
}
|
|
190
221
|
/**
|
|
191
222
|
* Defined in:
|
|
192
223
|
* {@link file://./../../../dxos/echo/service.proto}
|
|
@@ -198,4 +229,6 @@ export interface DataService {
|
|
|
198
229
|
getHostInfo: (request: void, options?: RequestOptions) => Promise<HostInfo>;
|
|
199
230
|
syncRepo: (request: SyncRepoRequest, options?: RequestOptions) => Stream<SyncRepoResponse>;
|
|
200
231
|
sendSyncMessage: (request: SyncRepoRequest, options?: RequestOptions) => Promise<void>;
|
|
232
|
+
getDocumentHeads: (request: GetDocumentHeadsRequest, options?: RequestOptions) => Promise<GetDocumentHeadsResponse>;
|
|
233
|
+
reIndexHeads: (request: ReIndexHeadsRequest, options?: RequestOptions) => Promise<void>;
|
|
201
234
|
}
|