@dxos/protocols 0.1.50 → 0.1.51-main.04cd027

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.
Files changed (52) hide show
  1. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +40 -3
  2. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  3. package/dist/cjs/src/proto/gen/dxos/client/services.js +13 -1
  4. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/config.d.ts +1 -0
  6. package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
  7. package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
  8. package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts +4 -0
  9. package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  10. package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts +2 -2
  11. package/dist/cjs/src/proto/gen/dxos/rpc.d.ts +13 -0
  12. package/dist/cjs/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/rpc.js.map +1 -1
  14. package/dist/cjs/src/proto/gen/index.d.ts +2 -0
  15. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  16. package/dist/cjs/src/proto/gen/index.js +1 -1
  17. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  18. package/dist/cjs/src/tracing.d.ts +5 -0
  19. package/dist/cjs/src/tracing.d.ts.map +1 -1
  20. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  21. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +40 -3
  22. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  23. package/dist/esm/src/proto/gen/dxos/client/services.js +12 -0
  24. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  25. package/dist/esm/src/proto/gen/dxos/config.d.ts +1 -0
  26. package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
  27. package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
  28. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts +4 -0
  29. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  30. package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts +2 -2
  31. package/dist/esm/src/proto/gen/dxos/rpc.d.ts +13 -0
  32. package/dist/esm/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  33. package/dist/esm/src/proto/gen/dxos/rpc.js.map +1 -1
  34. package/dist/esm/src/proto/gen/index.d.ts +2 -0
  35. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  36. package/dist/esm/src/proto/gen/index.js +1 -1
  37. package/dist/esm/src/proto/gen/index.js.map +1 -1
  38. package/dist/esm/src/tracing.d.ts +5 -0
  39. package/dist/esm/src/tracing.d.ts.map +1 -1
  40. package/package.json +5 -5
  41. package/src/proto/dxos/client/services.proto +23 -4
  42. package/src/proto/dxos/config.proto +1 -0
  43. package/src/proto/dxos/devtools/host.proto +3 -0
  44. package/src/proto/dxos/halo/credentials.proto +2 -2
  45. package/src/proto/dxos/rpc.proto +11 -0
  46. package/src/proto/gen/dxos/client/services.ts +40 -3
  47. package/src/proto/gen/dxos/config.ts +1 -0
  48. package/src/proto/gen/dxos/devtools/host.ts +4 -0
  49. package/src/proto/gen/dxos/halo/credentials.ts +2 -2
  50. package/src/proto/gen/dxos/rpc.ts +13 -0
  51. package/src/proto/gen/index.ts +3 -1
  52. package/src/tracing.ts +10 -0
@@ -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;AAmDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA0b7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,qx/EAAqx/E,CAAC,CAAC,CAAC;AAC90/E,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;AAmDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA4b7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,+3hFAA+3hF,CAAC,CAAC,CAAC;AACx7hF,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
@@ -32,4 +32,9 @@ export type Trace = {
32
32
  }) => TracingContext;
33
33
  };
34
34
  export declare const trace: Trace;
35
+ export type DataPipelineProcessed = {
36
+ spaceKey: string;
37
+ feedKey: string;
38
+ seq: number;
39
+ };
35
40
  //# sourceMappingURL=tracing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../../src/tracing.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEjD,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,OAAO,CAAC;AAEzC,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,WAAW,CAAC;QACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;KACjB,CAAC;CACH,CAAC;AAEF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MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,QAAQ,CAAA;KAAE,KAAK,cAAc,CAAC;IACpF,GAAG,EAAE,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,QAAQ,CAAA;KAAE,KAAK,cAAc,CAAC;IACxF,MAAM,EAAE,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,QAAQ,CAAA;KAAE,KAAK,cAAc,CAAC;IACjE,KAAK,EAAE,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC;QAAC,IAAI,CAAC,EAAE,QAAQ,CAAA;KAAE,KAAK,cAAc,CAAC;CAChF,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAgDnB,CAAC;AAMF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.1.50",
3
+ "version": "0.1.51-main.04cd027",
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.50",
37
- "@dxos/hypercore": "0.1.50",
38
- "@dxos/keys": "0.1.50",
39
- "@dxos/timeframe": "0.1.50"
36
+ "@dxos/codec-protobuf": "0.1.51-main.04cd027",
37
+ "@dxos/hypercore": "0.1.51-main.04cd027",
38
+ "@dxos/keys": "0.1.51-main.04cd027",
39
+ "@dxos/timeframe": "0.1.51-main.04cd027"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/debug": "^4.1.7",
@@ -176,6 +176,12 @@ message Space {
176
176
  repeated dxos.keys.PublicKey control_feeds = 18;
177
177
  repeated dxos.keys.PublicKey data_feeds = 19;
178
178
 
179
+ /// Last processed epoch. Might now have been applied yet.
180
+ optional dxos.halo.Credential current_epoch = 20;
181
+
182
+ /// Epoch that is currently applied.
183
+ optional dxos.halo.Credential applied_epoch = 21;
184
+
179
185
  /// Mutations already processed.
180
186
  optional timeframe.TimeframeVector current_control_timeframe = 10;
181
187
 
@@ -188,7 +194,10 @@ message Space {
188
194
  /// All mutations known to exist on the network.
189
195
  optional timeframe.TimeframeVector known_control_timeframe = 15;
190
196
 
191
- /// Mutations alredy processed.
197
+ /// Start timeframe of the pipeline.
198
+ optional timeframe.TimeframeVector start_data_timeframe = 100;
199
+
200
+ /// Mutations already processed.
192
201
  optional timeframe.TimeframeVector current_data_timeframe = 12;
193
202
 
194
203
  /// Minimum timeframe to consider the state to be up-to-date.
@@ -199,8 +208,6 @@ message Space {
199
208
 
200
209
  /// All mutations known to exist on the network.
201
210
  optional timeframe.TimeframeVector known_data_timeframe = 17;
202
-
203
- // TODO(dmaretskyi): Snapshot & epoch info.
204
211
  }
205
212
 
206
213
  dxos.keys.PublicKey space_key = 1;
@@ -209,11 +216,14 @@ message Space {
209
216
  optional dxos.error.Error error = 4;
210
217
 
211
218
  repeated SpaceMember members = 10;
219
+ optional dxos.keys.PublicKey creator = 11;
212
220
 
213
221
  optional dxos.echo.metadata.SpaceCache cache = 20;
214
222
  Metrics metrics = 21;
215
223
  }
216
224
 
225
+ // TODO(burdon): Create type for epoch?
226
+
217
227
  message UpdateSpaceRequest {
218
228
  optional Status status = 1;
219
229
  }
@@ -422,13 +432,21 @@ enum LogLevel {
422
432
  }
423
433
 
424
434
  message QueryLogsRequest {
435
+ enum MatchingOptions {
436
+ /// Filters match all log levels above. Default behaviour for the logger.
437
+ INCLUSIVE = 1;
438
+
439
+ /// Explicitly specify all desired log levels.
440
+ EXPLICIT = 2;
441
+ }
442
+
425
443
  message Filter {
426
444
  LogLevel level = 1;
427
445
  optional string pattern = 2;
428
446
  }
429
447
 
430
- /// Explicitly specify all desired log levels.
431
448
  repeated Filter filters = 1;
449
+ optional MatchingOptions options = 10;
432
450
  }
433
451
 
434
452
  message LogEntry {
@@ -443,6 +461,7 @@ message LogEntry {
443
461
  optional google.protobuf.Struct context = 3;
444
462
  optional Meta meta = 4;
445
463
  optional Error error = 5;
464
+ google.protobuf.Timestamp timestamp = 6;
446
465
  }
447
466
 
448
467
  service LoggingService {
@@ -215,6 +215,7 @@ message Runtime {
215
215
 
216
216
  message Telemetry {
217
217
  bool disabled = 1;
218
+ repeated string tags = 2;
218
219
  }
219
220
 
220
221
  message Gravity {
@@ -208,6 +208,9 @@ message SubscribeToFeedsResponse {
208
208
  dxos.keys.PublicKey feed_key = 1;
209
209
  int32 length = 2;
210
210
  int32 bytes = 3;
211
+
212
+ /// Bitfield of downloaded blocks.
213
+ bytes downloaded = 4;
211
214
  }
212
215
 
213
216
  repeated Feed feeds = 1;
@@ -100,7 +100,7 @@ message Epoch {
100
100
  /// Epoch number.
101
101
  uint32 number = 1;
102
102
 
103
- /// Id of the previous epoch. Identitfied by the credential id.
103
+ /// Id of the previous epoch. Identified by the credential id.
104
104
  optional dxos.keys.PublicKey previous_id = 2;
105
105
 
106
106
  /// Epoch start timeframe. Indexes correspond to last mutations included into the snapshot.
@@ -110,7 +110,7 @@ message Epoch {
110
110
  optional string snapshot_cid = 11;
111
111
  }
112
112
 
113
- /// [ASSERTION]: Associtaes a space that will implement Agent's HALO with an Identity.
113
+ /// [ASSERTION]: Associates a space that will implement Agent's HALO with an Identity.
114
114
  message HaloSpace {
115
115
  dxos.keys.PublicKey identity_key = 1;
116
116
  /// Space key.
@@ -23,6 +23,9 @@ message RpcMessage {
23
23
  bool open_ack = 4;
24
24
 
25
25
  StreamClose stream_close = 5;
26
+
27
+ /// Request to close the connection.
28
+ Bye bye = 6;
26
29
  }
27
30
  }
28
31
 
@@ -66,3 +69,11 @@ message MessageTrace {
66
69
  Direction direction = 1;
67
70
  bytes data = 2;
68
71
  }
72
+
73
+ /**
74
+ * Request to close the connection.
75
+ * Connection is closed once both sides have received the Bye message.
76
+ */
77
+ message Bye {
78
+
79
+ }
@@ -250,6 +250,11 @@ export interface Space {
250
250
  */
251
251
  error?: dxos_error.Error;
252
252
  members?: SpaceMember[];
253
+ /**
254
+ * Options:
255
+ * - proto3_optional = true
256
+ */
257
+ creator?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
253
258
  /**
254
259
  * Options:
255
260
  * - proto3_optional = true
@@ -311,6 +316,20 @@ export namespace Space {
311
316
  dataFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
312
317
  controlFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
313
318
  dataFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
319
+ /**
320
+ * Last processed epoch. Might now have been applied yet.
321
+ *
322
+ * Options:
323
+ * - proto3_optional = true
324
+ */
325
+ currentEpoch?: dxos_halo_credentials.Credential;
326
+ /**
327
+ * Epoch that is currently applied.
328
+ *
329
+ * Options:
330
+ * - proto3_optional = true
331
+ */
332
+ appliedEpoch?: dxos_halo_credentials.Credential;
314
333
  /**
315
334
  * Mutations already processed.
316
335
  *
@@ -340,7 +359,14 @@ export namespace Space {
340
359
  */
341
360
  knownControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
342
361
  /**
343
- * Mutations alredy processed.
362
+ * Start timeframe of the pipeline.
363
+ *
364
+ * Options:
365
+ * - proto3_optional = true
366
+ */
367
+ startDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
368
+ /**
369
+ * Mutations already processed.
344
370
  *
345
371
  * Options:
346
372
  * - proto3_optional = true
@@ -672,12 +698,22 @@ export enum LogLevel {
672
698
  * {@link file://./../../../dxos/client/services.proto}
673
699
  */
674
700
  export interface QueryLogsRequest {
701
+ filters?: QueryLogsRequest.Filter[];
675
702
  /**
676
- * Explicitly specify all desired log levels.
703
+ * Options:
704
+ * - proto3_optional = true
677
705
  */
678
- filters?: QueryLogsRequest.Filter[];
706
+ options?: QueryLogsRequest.MatchingOptions;
679
707
  }
680
708
  export namespace QueryLogsRequest {
709
+ /**
710
+ * Defined in:
711
+ * {@link file://./../../../dxos/client/services.proto}
712
+ */
713
+ export enum MatchingOptions {
714
+ INCLUSIVE = 1,
715
+ EXPLICIT = 2
716
+ }
681
717
  /**
682
718
  * Defined in:
683
719
  * {@link file://./../../../dxos/client/services.proto}
@@ -713,6 +749,7 @@ export interface LogEntry {
713
749
  * - proto3_optional = true
714
750
  */
715
751
  error?: dxos_error.Error;
752
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
716
753
  }
717
754
  export namespace LogEntry {
718
755
  /**
@@ -607,6 +607,7 @@ export namespace Runtime {
607
607
  */
608
608
  export interface Telemetry {
609
609
  disabled: boolean;
610
+ tags?: string[];
610
611
  }
611
612
  /**
612
613
  * Defined in:
@@ -309,6 +309,10 @@ export namespace SubscribeToFeedsResponse {
309
309
  feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
310
310
  length: number;
311
311
  bytes: number;
312
+ /**
313
+ * Bitfield of downloaded blocks.
314
+ */
315
+ downloaded: Uint8Array;
312
316
  }
313
317
  }
314
318
  /**
@@ -130,7 +130,7 @@ export interface Epoch {
130
130
  */
131
131
  number: number;
132
132
  /**
133
- * Id of the previous epoch. Identitfied by the credential id.
133
+ * Id of the previous epoch. Identified by the credential id.
134
134
  *
135
135
  * Options:
136
136
  * - proto3_optional = true
@@ -149,7 +149,7 @@ export interface Epoch {
149
149
  snapshotCid?: string;
150
150
  }
151
151
  /**
152
- * [ASSERTION]: Associtaes a space that will implement Agent's HALO with an Identity.
152
+ * [ASSERTION]: Associates a space that will implement Agent's HALO with an Identity.
153
153
  *
154
154
  * Defined in:
155
155
  * {@link file://./../../../dxos/halo/credentials.proto}
@@ -65,6 +65,10 @@ export interface RpcMessage {
65
65
  */
66
66
  openAck?: boolean;
67
67
  streamClose?: StreamClose;
68
+ /**
69
+ * Request to close the connection.
70
+ */
71
+ bye?: Bye;
68
72
  }
69
73
  /**
70
74
  * Defined in:
@@ -120,3 +124,12 @@ export namespace MessageTrace {
120
124
  OUTGOING = 1
121
125
  }
122
126
  }
127
+ /**
128
+ * Request to close the connection.
129
+ * Connection is closed once both sides have received the Bye message.
130
+ *
131
+ * Defined in:
132
+ * {@link file://./../../dxos/rpc.proto}
133
+ */
134
+ export interface Bye {
135
+ }