@dxos/protocols 0.1.54 → 0.1.55-main.0d3b09d
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/client/services.d.ts +1 -1
- package/dist/cjs/src/proto/gen/dxos/config.d.ts +5 -0
- package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts +3 -0
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- 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/client/services.d.ts +1 -1
- package/dist/esm/src/proto/gen/dxos/config.d.ts +5 -0
- package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts +3 -0
- package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- 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 +5 -5
- package/src/proto/dxos/client/services.proto +24 -21
- package/src/proto/dxos/config.proto +1 -0
- package/src/proto/dxos/halo/credentials.proto +3 -2
- package/src/proto/gen/dxos/client/services.ts +1 -1
- package/src/proto/gen/dxos/config.ts +5 -0
- package/src/proto/gen/dxos/halo/credentials.ts +3 -0
- package/src/proto/gen/index.ts +1 -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;AAqDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA2c7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,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;AAqDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA2c7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,w3mFAAw3mF,CAAC,CAAC,CAAC;AACj7mF,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.1.
|
|
3
|
+
"version": "0.1.55-main.0d3b09d",
|
|
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.1.
|
|
37
|
-
"@dxos/hypercore": "0.1.
|
|
38
|
-
"@dxos/keys": "0.1.
|
|
39
|
-
"@dxos/timeframe": "0.1.
|
|
36
|
+
"@dxos/codec-protobuf": "0.1.55-main.0d3b09d",
|
|
37
|
+
"@dxos/hypercore": "0.1.55-main.0d3b09d",
|
|
38
|
+
"@dxos/keys": "0.1.55-main.0d3b09d",
|
|
39
|
+
"@dxos/timeframe": "0.1.55-main.0d3b09d"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -4,14 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
syntax = "proto3";
|
|
6
6
|
|
|
7
|
+
import "google/protobuf/any.proto";
|
|
7
8
|
import "google/protobuf/empty.proto";
|
|
9
|
+
import "google/protobuf/struct.proto";
|
|
10
|
+
import "google/protobuf/timestamp.proto";
|
|
8
11
|
|
|
9
12
|
import "dxos/config.proto";
|
|
10
|
-
import "dxos/halo/credentials.proto";
|
|
11
|
-
import "dxos/mesh/teleport/gossip.proto";
|
|
12
|
-
import "dxos/keys.proto";
|
|
13
13
|
import "dxos/echo/metadata.proto";
|
|
14
|
+
import "dxos/echo/timeframe.proto";
|
|
14
15
|
import "dxos/error.proto";
|
|
16
|
+
import "dxos/halo/credentials.proto";
|
|
17
|
+
import "dxos/keys.proto";
|
|
18
|
+
import "dxos/mesh/signal.proto";
|
|
19
|
+
import "dxos/mesh/teleport/gossip.proto";
|
|
15
20
|
|
|
16
21
|
// TODO(burdon): Reorganize packages (e.g., client.services, echo.database).
|
|
17
22
|
|
|
@@ -151,12 +156,10 @@ enum SpaceState {
|
|
|
151
156
|
/// Space is active. Swarming and replication will be done.
|
|
152
157
|
ACTIVE = 6;
|
|
153
158
|
|
|
154
|
-
|
|
155
159
|
///
|
|
156
160
|
/// Runtime states:
|
|
157
161
|
///
|
|
158
162
|
|
|
159
|
-
|
|
160
163
|
/// Space is closed.
|
|
161
164
|
CLOSED = 1;
|
|
162
165
|
|
|
@@ -171,9 +174,9 @@ enum SpaceState {
|
|
|
171
174
|
|
|
172
175
|
/// Space errored.
|
|
173
176
|
ERROR = 5;
|
|
174
|
-
|
|
175
177
|
}
|
|
176
178
|
|
|
179
|
+
// TODO(burdon): Rename SpaceInfo?
|
|
177
180
|
message Space {
|
|
178
181
|
message Metrics {
|
|
179
182
|
optional google.protobuf.Timestamp open = 1;
|
|
@@ -194,37 +197,37 @@ message Space {
|
|
|
194
197
|
repeated dxos.keys.PublicKey data_feeds = 19;
|
|
195
198
|
|
|
196
199
|
/// Last processed epoch. Might now have been applied yet.
|
|
197
|
-
optional dxos.halo.Credential current_epoch = 20;
|
|
200
|
+
optional dxos.halo.credentials.Credential current_epoch = 20;
|
|
198
201
|
|
|
199
202
|
/// Epoch that is currently applied.
|
|
200
|
-
optional dxos.halo.Credential applied_epoch = 21;
|
|
203
|
+
optional dxos.halo.credentials.Credential applied_epoch = 21;
|
|
201
204
|
|
|
202
205
|
/// Mutations already processed.
|
|
203
|
-
optional timeframe.TimeframeVector current_control_timeframe = 10;
|
|
206
|
+
optional dxos.echo.timeframe.TimeframeVector current_control_timeframe = 10;
|
|
204
207
|
|
|
205
208
|
/// Minimum timeframe to consider the state to be up-to-date.
|
|
206
|
-
optional timeframe.TimeframeVector target_control_timeframe = 11;
|
|
209
|
+
optional dxos.echo.timeframe.TimeframeVector target_control_timeframe = 11;
|
|
207
210
|
|
|
208
211
|
/// All mutations stored in feeds.
|
|
209
|
-
optional timeframe.TimeframeVector total_control_timeframe = 14;
|
|
212
|
+
optional dxos.echo.timeframe.TimeframeVector total_control_timeframe = 14;
|
|
210
213
|
|
|
211
214
|
/// All mutations known to exist on the network.
|
|
212
|
-
optional timeframe.TimeframeVector known_control_timeframe = 15;
|
|
215
|
+
optional dxos.echo.timeframe.TimeframeVector known_control_timeframe = 15;
|
|
213
216
|
|
|
214
217
|
/// Start timeframe of the pipeline.
|
|
215
|
-
optional timeframe.TimeframeVector start_data_timeframe = 100;
|
|
218
|
+
optional dxos.echo.timeframe.TimeframeVector start_data_timeframe = 100;
|
|
216
219
|
|
|
217
220
|
/// Mutations already processed.
|
|
218
|
-
optional timeframe.TimeframeVector current_data_timeframe = 12;
|
|
221
|
+
optional dxos.echo.timeframe.TimeframeVector current_data_timeframe = 12;
|
|
219
222
|
|
|
220
223
|
/// Minimum timeframe to consider the state to be up-to-date.
|
|
221
|
-
optional timeframe.TimeframeVector target_data_timeframe = 13;
|
|
224
|
+
optional dxos.echo.timeframe.TimeframeVector target_data_timeframe = 13;
|
|
222
225
|
|
|
223
226
|
/// All mutations stored in feeds.
|
|
224
|
-
optional timeframe.TimeframeVector total_data_timeframe = 16;
|
|
227
|
+
optional dxos.echo.timeframe.TimeframeVector total_data_timeframe = 16;
|
|
225
228
|
|
|
226
229
|
/// All mutations known to exist on the network.
|
|
227
|
-
optional timeframe.TimeframeVector known_data_timeframe = 17;
|
|
230
|
+
optional dxos.echo.timeframe.TimeframeVector known_data_timeframe = 17;
|
|
228
231
|
}
|
|
229
232
|
|
|
230
233
|
dxos.keys.PublicKey space_key = 1;
|
|
@@ -281,7 +284,7 @@ service SpacesService {
|
|
|
281
284
|
rpc UpdateSpace(UpdateSpaceRequest) returns (google.protobuf.Empty);
|
|
282
285
|
rpc QuerySpaces(google.protobuf.Empty) returns (stream QuerySpacesResponse);
|
|
283
286
|
|
|
284
|
-
/// Broadcast an
|
|
287
|
+
/// Broadcast an ephemeral message to the space swarm.
|
|
285
288
|
rpc PostMessage(PostMessageRequest) returns (google.protobuf.Empty);
|
|
286
289
|
/// Subscribe to messages from the space swarm.
|
|
287
290
|
rpc SubscribeMessages(SubscribeMessagesRequest) returns (stream dxos.mesh.teleport.gossip.GossipMessage);
|
|
@@ -317,7 +320,7 @@ message Invitation {
|
|
|
317
320
|
}
|
|
318
321
|
|
|
319
322
|
enum AuthMethod {
|
|
320
|
-
/// No
|
|
323
|
+
/// No authentication is required. Guest should not call `Authenticate`.
|
|
321
324
|
NONE = 0;
|
|
322
325
|
|
|
323
326
|
/// Guest should call `Authenticate` with the shared secret.
|
|
@@ -420,6 +423,7 @@ enum ConnectionState {
|
|
|
420
423
|
message NetworkStatus {
|
|
421
424
|
message Signal {
|
|
422
425
|
string server = 1;
|
|
426
|
+
// TODO(burdon): Where is this defined?
|
|
423
427
|
dxos.mesh.signal.SignalState state = 2;
|
|
424
428
|
}
|
|
425
429
|
|
|
@@ -444,7 +448,6 @@ service NetworkService {
|
|
|
444
448
|
// NOTE: Keep aligned with LogLevel in @dxos/log.
|
|
445
449
|
enum LogLevel {
|
|
446
450
|
TRACE = 5;
|
|
447
|
-
|
|
448
451
|
DEBUG = 10;
|
|
449
452
|
INFO = 11;
|
|
450
453
|
WARN = 12;
|
|
@@ -480,7 +483,7 @@ message LogEntry {
|
|
|
480
483
|
string message = 2;
|
|
481
484
|
optional google.protobuf.Struct context = 3;
|
|
482
485
|
optional Meta meta = 4;
|
|
483
|
-
optional Error error = 5;
|
|
486
|
+
optional dxos.error.Error error = 5;
|
|
484
487
|
google.protobuf.Timestamp timestamp = 6;
|
|
485
488
|
}
|
|
486
489
|
|
|
@@ -6,14 +6,14 @@ syntax = "proto3";
|
|
|
6
6
|
|
|
7
7
|
package dxos.halo.credentials;
|
|
8
8
|
|
|
9
|
+
option go_package = "github.com/dxos/kube/proto/def/dxos/halo/credentials";
|
|
10
|
+
|
|
9
11
|
import "google/protobuf/any.proto";
|
|
10
12
|
import "google/protobuf/timestamp.proto";
|
|
11
13
|
|
|
12
14
|
import "dxos/echo/timeframe.proto";
|
|
13
15
|
import "dxos/keys.proto";
|
|
14
16
|
|
|
15
|
-
option go_package = "github.com/dxos/kube/proto/def/dxos/halo/credentials";
|
|
16
|
-
|
|
17
17
|
//
|
|
18
18
|
// TODO(burdon): Reference/extract these notes to the design doc commentary.
|
|
19
19
|
// Peers maintain Feeds that are admitted to HALO and ECHO Spaces.
|
|
@@ -86,6 +86,7 @@ message AdmittedFeed {
|
|
|
86
86
|
|
|
87
87
|
/// Owning identity.
|
|
88
88
|
dxos.keys.PublicKey identity_key = 2; // Could be derived.
|
|
89
|
+
|
|
89
90
|
/// Owning device.
|
|
90
91
|
dxos.keys.PublicKey device_key = 3;
|
|
91
92
|
|
|
@@ -468,7 +468,7 @@ export interface SpacesService {
|
|
|
468
468
|
updateSpace: (request: UpdateSpaceRequest) => Promise<void>;
|
|
469
469
|
querySpaces: (request: void) => Stream<QuerySpacesResponse>;
|
|
470
470
|
/**
|
|
471
|
-
* Broadcast an
|
|
471
|
+
* Broadcast an ephemeral message to the space swarm.
|
|
472
472
|
*/
|
|
473
473
|
postMessage: (request: PostMessageRequest) => Promise<void>;
|
|
474
474
|
/**
|
|
@@ -105,6 +105,9 @@ export interface AdmittedFeed {
|
|
|
105
105
|
* Owning identity.
|
|
106
106
|
*/
|
|
107
107
|
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
108
|
+
/**
|
|
109
|
+
* Owning device.
|
|
110
|
+
*/
|
|
108
111
|
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
109
112
|
/**
|
|
110
113
|
* Feeds with different designations are consumed by separate pipelines.
|