@dxos/protocols 0.1.54 → 0.1.55-main.1fcd443
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 +4 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +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 +4 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +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 +26 -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 +4 -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,o6mFAAo6mF,CAAC,CAAC,CAAC;AAC79mF,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.1fcd443",
|
|
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.1fcd443",
|
|
37
|
+
"@dxos/hypercore": "0.1.55-main.1fcd443",
|
|
38
|
+
"@dxos/keys": "0.1.55-main.1fcd443",
|
|
39
|
+
"@dxos/timeframe": "0.1.55-main.1fcd443"
|
|
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;
|
|
@@ -190,41 +193,43 @@ message Space {
|
|
|
190
193
|
optional dxos.keys.PublicKey control_feed_key = 1;
|
|
191
194
|
optional dxos.keys.PublicKey data_feed_key = 2;
|
|
192
195
|
|
|
196
|
+
/// Remote feeds.
|
|
197
|
+
/// TODO(burdon): Normalize _key suffix.
|
|
193
198
|
repeated dxos.keys.PublicKey control_feeds = 18;
|
|
194
199
|
repeated dxos.keys.PublicKey data_feeds = 19;
|
|
195
200
|
|
|
196
201
|
/// Last processed epoch. Might now have been applied yet.
|
|
197
|
-
optional dxos.halo.Credential current_epoch = 20;
|
|
202
|
+
optional dxos.halo.credentials.Credential current_epoch = 20;
|
|
198
203
|
|
|
199
204
|
/// Epoch that is currently applied.
|
|
200
|
-
optional dxos.halo.Credential applied_epoch = 21;
|
|
205
|
+
optional dxos.halo.credentials.Credential applied_epoch = 21;
|
|
201
206
|
|
|
202
207
|
/// Mutations already processed.
|
|
203
|
-
optional timeframe.TimeframeVector current_control_timeframe = 10;
|
|
208
|
+
optional dxos.echo.timeframe.TimeframeVector current_control_timeframe = 10;
|
|
204
209
|
|
|
205
210
|
/// Minimum timeframe to consider the state to be up-to-date.
|
|
206
|
-
optional timeframe.TimeframeVector target_control_timeframe = 11;
|
|
211
|
+
optional dxos.echo.timeframe.TimeframeVector target_control_timeframe = 11;
|
|
207
212
|
|
|
208
213
|
/// All mutations stored in feeds.
|
|
209
|
-
optional timeframe.TimeframeVector total_control_timeframe = 14;
|
|
214
|
+
optional dxos.echo.timeframe.TimeframeVector total_control_timeframe = 14;
|
|
210
215
|
|
|
211
216
|
/// All mutations known to exist on the network.
|
|
212
|
-
optional timeframe.TimeframeVector known_control_timeframe = 15;
|
|
217
|
+
optional dxos.echo.timeframe.TimeframeVector known_control_timeframe = 15;
|
|
213
218
|
|
|
214
219
|
/// Start timeframe of the pipeline.
|
|
215
|
-
optional timeframe.TimeframeVector start_data_timeframe = 100;
|
|
220
|
+
optional dxos.echo.timeframe.TimeframeVector start_data_timeframe = 100;
|
|
216
221
|
|
|
217
222
|
/// Mutations already processed.
|
|
218
|
-
optional timeframe.TimeframeVector current_data_timeframe = 12;
|
|
223
|
+
optional dxos.echo.timeframe.TimeframeVector current_data_timeframe = 12;
|
|
219
224
|
|
|
220
225
|
/// Minimum timeframe to consider the state to be up-to-date.
|
|
221
|
-
optional timeframe.TimeframeVector target_data_timeframe = 13;
|
|
226
|
+
optional dxos.echo.timeframe.TimeframeVector target_data_timeframe = 13;
|
|
222
227
|
|
|
223
228
|
/// All mutations stored in feeds.
|
|
224
|
-
optional timeframe.TimeframeVector total_data_timeframe = 16;
|
|
229
|
+
optional dxos.echo.timeframe.TimeframeVector total_data_timeframe = 16;
|
|
225
230
|
|
|
226
231
|
/// All mutations known to exist on the network.
|
|
227
|
-
optional timeframe.TimeframeVector known_data_timeframe = 17;
|
|
232
|
+
optional dxos.echo.timeframe.TimeframeVector known_data_timeframe = 17;
|
|
228
233
|
}
|
|
229
234
|
|
|
230
235
|
dxos.keys.PublicKey space_key = 1;
|
|
@@ -281,7 +286,7 @@ service SpacesService {
|
|
|
281
286
|
rpc UpdateSpace(UpdateSpaceRequest) returns (google.protobuf.Empty);
|
|
282
287
|
rpc QuerySpaces(google.protobuf.Empty) returns (stream QuerySpacesResponse);
|
|
283
288
|
|
|
284
|
-
/// Broadcast an
|
|
289
|
+
/// Broadcast an ephemeral message to the space swarm.
|
|
285
290
|
rpc PostMessage(PostMessageRequest) returns (google.protobuf.Empty);
|
|
286
291
|
/// Subscribe to messages from the space swarm.
|
|
287
292
|
rpc SubscribeMessages(SubscribeMessagesRequest) returns (stream dxos.mesh.teleport.gossip.GossipMessage);
|
|
@@ -317,7 +322,7 @@ message Invitation {
|
|
|
317
322
|
}
|
|
318
323
|
|
|
319
324
|
enum AuthMethod {
|
|
320
|
-
/// No
|
|
325
|
+
/// No authentication is required. Guest should not call `Authenticate`.
|
|
321
326
|
NONE = 0;
|
|
322
327
|
|
|
323
328
|
/// Guest should call `Authenticate` with the shared secret.
|
|
@@ -420,6 +425,7 @@ enum ConnectionState {
|
|
|
420
425
|
message NetworkStatus {
|
|
421
426
|
message Signal {
|
|
422
427
|
string server = 1;
|
|
428
|
+
// TODO(burdon): Where is this defined?
|
|
423
429
|
dxos.mesh.signal.SignalState state = 2;
|
|
424
430
|
}
|
|
425
431
|
|
|
@@ -444,7 +450,6 @@ service NetworkService {
|
|
|
444
450
|
// NOTE: Keep aligned with LogLevel in @dxos/log.
|
|
445
451
|
enum LogLevel {
|
|
446
452
|
TRACE = 5;
|
|
447
|
-
|
|
448
453
|
DEBUG = 10;
|
|
449
454
|
INFO = 11;
|
|
450
455
|
WARN = 12;
|
|
@@ -480,7 +485,7 @@ message LogEntry {
|
|
|
480
485
|
string message = 2;
|
|
481
486
|
optional google.protobuf.Struct context = 3;
|
|
482
487
|
optional Meta meta = 4;
|
|
483
|
-
optional Error error = 5;
|
|
488
|
+
optional dxos.error.Error error = 5;
|
|
484
489
|
google.protobuf.Timestamp timestamp = 6;
|
|
485
490
|
}
|
|
486
491
|
|
|
@@ -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
|
|
|
@@ -318,6 +318,9 @@ export namespace Space {
|
|
|
318
318
|
* - proto3_optional = true
|
|
319
319
|
*/
|
|
320
320
|
dataFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
321
|
+
/**
|
|
322
|
+
* TODO(burdon): Normalize _key suffix.
|
|
323
|
+
*/
|
|
321
324
|
controlFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
322
325
|
dataFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
323
326
|
/**
|
|
@@ -468,7 +471,7 @@ export interface SpacesService {
|
|
|
468
471
|
updateSpace: (request: UpdateSpaceRequest) => Promise<void>;
|
|
469
472
|
querySpaces: (request: void) => Stream<QuerySpacesResponse>;
|
|
470
473
|
/**
|
|
471
|
-
* Broadcast an
|
|
474
|
+
* Broadcast an ephemeral message to the space swarm.
|
|
472
475
|
*/
|
|
473
476
|
postMessage: (request: PostMessageRequest) => Promise<void>;
|
|
474
477
|
/**
|
|
@@ -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.
|