@dxos/protocols 0.3.9-main.b7e6a67 → 0.3.9-main.c7cd0ec

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 (58) hide show
  1. package/dist/cjs/src/proto/gen/dxos/agent/dashboard.d.ts +0 -1
  2. package/dist/cjs/src/proto/gen/dxos/agent/dashboard.d.ts.map +1 -1
  3. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +190 -175
  4. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/client/services.js +37 -25
  6. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  7. package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts +31 -31
  8. package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  9. package/dist/cjs/src/proto/gen/dxos/devtools/swarm.d.ts +25 -0
  10. package/dist/cjs/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
  11. package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts +8 -0
  12. package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts +7 -0
  14. package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
  15. package/dist/cjs/src/proto/gen/dxos/mesh/bridge.d.ts +30 -0
  16. package/dist/cjs/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -1
  17. package/dist/cjs/src/proto/gen/dxos/mesh/bridge.js.map +1 -1
  18. package/dist/cjs/src/proto/gen/index.d.ts +6 -0
  19. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  20. package/dist/cjs/src/proto/gen/index.js +1 -1
  21. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  22. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  23. package/dist/esm/src/proto/gen/dxos/agent/dashboard.d.ts +0 -1
  24. package/dist/esm/src/proto/gen/dxos/agent/dashboard.d.ts.map +1 -1
  25. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +190 -175
  26. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  27. package/dist/esm/src/proto/gen/dxos/client/services.js +36 -24
  28. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  29. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts +31 -31
  30. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  31. package/dist/esm/src/proto/gen/dxos/devtools/swarm.d.ts +25 -0
  32. package/dist/esm/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
  33. package/dist/esm/src/proto/gen/dxos/echo/service.d.ts +8 -0
  34. package/dist/esm/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  35. package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts +7 -0
  36. package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
  37. package/dist/esm/src/proto/gen/dxos/mesh/bridge.d.ts +30 -0
  38. package/dist/esm/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -1
  39. package/dist/esm/src/proto/gen/dxos/mesh/bridge.js.map +1 -1
  40. package/dist/esm/src/proto/gen/index.d.ts +6 -0
  41. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  42. package/dist/esm/src/proto/gen/index.js +1 -1
  43. package/dist/esm/src/proto/gen/index.js.map +1 -1
  44. package/package.json +5 -5
  45. package/src/proto/dxos/agent/dashboard.proto +0 -1
  46. package/src/proto/dxos/client/services.proto +9 -0
  47. package/src/proto/dxos/devtools/swarm.proto +6 -0
  48. package/src/proto/dxos/echo/service.proto +5 -0
  49. package/src/proto/dxos/halo/credentials.proto +4 -0
  50. package/src/proto/dxos/mesh/bridge.proto +23 -0
  51. package/src/proto/gen/dxos/agent/dashboard.ts +0 -1
  52. package/src/proto/gen/dxos/client/services.ts +190 -175
  53. package/src/proto/gen/dxos/devtools/host.ts +31 -31
  54. package/src/proto/gen/dxos/devtools/swarm.ts +25 -0
  55. package/src/proto/gen/dxos/echo/service.ts +8 -0
  56. package/src/proto/gen/dxos/halo/credentials.ts +7 -0
  57. package/src/proto/gen/dxos/mesh/bridge.ts +30 -0
  58. package/src/proto/gen/index.ts +7 -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;AA4DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAugB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,yg/FAAyg/F,CAAC,CAAC,CAAC;AAClk/F,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;AA4DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA6gB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,s1hGAAs1hG,CAAC,CAAC,CAAC;AAC/4hG,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.3.9-main.b7e6a67",
3
+ "version": "0.3.9-main.c7cd0ec",
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.3.9-main.b7e6a67",
37
- "@dxos/keys": "0.3.9-main.b7e6a67",
38
- "@dxos/timeframe": "0.3.9-main.b7e6a67",
39
- "@dxos/invariant": "0.3.9-main.b7e6a67"
36
+ "@dxos/codec-protobuf": "0.3.9-main.c7cd0ec",
37
+ "@dxos/invariant": "0.3.9-main.c7cd0ec",
38
+ "@dxos/timeframe": "0.3.9-main.c7cd0ec",
39
+ "@dxos/keys": "0.3.9-main.c7cd0ec"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -36,5 +36,4 @@ message PluginState {
36
36
 
37
37
  service DashboardService {
38
38
  rpc status(google.protobuf.Empty) returns (stream AgentStatus);
39
- rpc changePluginConfig(PluginState) returns (google.protobuf.Empty);
40
39
  }
@@ -306,7 +306,16 @@ message QueryCredentialsRequest {
306
306
  }
307
307
 
308
308
  message CreateEpochRequest {
309
+ enum Migration {
310
+ NONE = 0;
311
+
312
+ /// Init empty automerge document as the space root. Disables legacy ECHO snapshot creation.
313
+ INIT_AUTOMERGE = 1;
314
+ }
315
+
309
316
  dxos.keys.PublicKey space_key = 1;
317
+
318
+ optional Migration migration = 2;
310
319
  }
311
320
 
312
321
  service SpacesService {
@@ -42,6 +42,12 @@ message ConnectionInfo {
42
42
  optional uint32 readBufferSize = 10;
43
43
  optional uint32 writeBufferSize = 11;
44
44
  optional google.protobuf.Timestamp last_update = 12;
45
+ optional string transport_details = 13;
46
+ // TODO(nf): uint64?
47
+ optional uint32 transport_bytes_sent = 14;
48
+ optional uint32 transport_bytes_received = 15;
49
+ optional uint32 transport_packets_sent = 16;
50
+ optional uint32 transport_packets_received = 17;
45
51
  }
46
52
 
47
53
  message ConnectionEvent {
@@ -51,6 +51,10 @@ message FlushRequest {
51
51
  }
52
52
 
53
53
  // Automerge specific.
54
+ message HostInfo {
55
+ string peer_id = 1;
56
+ }
57
+
54
58
  message SyncRepoRequest {
55
59
  string id = 1;
56
60
 
@@ -68,6 +72,7 @@ service DataService {
68
72
 
69
73
  // Automerge specific.
70
74
 
75
+ rpc GetHostInfo(google.protobuf.Empty) returns (HostInfo);
71
76
  rpc SyncRepo(SyncRepoRequest) returns (stream SyncRepoResponse);
72
77
  rpc SendSyncMessage(SyncRepoRequest) returns (google.protobuf.Empty); // TODO(dmaretskyi): Bidirectional streams.
73
78
  }
@@ -115,11 +115,15 @@ message Epoch {
115
115
  /// Id of the previous epoch. Identified by the credential id.
116
116
  optional dxos.keys.PublicKey previous_id = 2;
117
117
 
118
+ // TODO(dmaretskyi): Deprecate.
118
119
  /// Epoch start timeframe. Indexes correspond to last mutations included into the snapshot.
119
120
  dxos.echo.timeframe.TimeframeVector timeframe = 10;
120
121
 
121
122
  /// Epoch start snapshot.
122
123
  optional string snapshot_cid = 11;
124
+
125
+ /// URL of the automerge document representing the space root.
126
+ optional string automerge_root = 12;
123
127
  }
124
128
 
125
129
  /// [ASSERTION]: Associates a space that will implement Agent's HALO with an Identity.
@@ -7,6 +7,7 @@ syntax = "proto3";
7
7
  import "dxos/keys.proto";
8
8
  import "dxos/mesh/swarm.proto";
9
9
  import "google/protobuf/empty.proto";
10
+ import "google/protobuf/struct.proto";
10
11
 
11
12
  package dxos.mesh.bridge;
12
13
 
@@ -26,6 +27,13 @@ service BridgeService {
26
27
 
27
28
  ///
28
29
  rpc Close(CloseRequest) returns (google.protobuf.Empty);
30
+
31
+ ///
32
+ rpc GetDetails(DetailsRequest) returns (DetailsResponse);
33
+
34
+ ///
35
+ rpc GetStats(StatsRequest) returns (StatsResponse);
36
+
29
37
  }
30
38
 
31
39
  enum ConnectionState {
@@ -74,3 +82,18 @@ message DataRequest {
74
82
  message CloseRequest{
75
83
  dxos.keys.PublicKey proxy_id = 1;
76
84
  }
85
+
86
+ message DetailsRequest{
87
+ dxos.keys.PublicKey proxy_id = 1;
88
+ }
89
+
90
+ message DetailsResponse{
91
+ string details = 1;
92
+ }
93
+
94
+ message StatsRequest{
95
+ dxos.keys.PublicKey proxy_id = 1;
96
+ }
97
+ message StatsResponse{
98
+ google.protobuf.Struct stats = 1;
99
+ }
@@ -110,5 +110,4 @@ export interface PluginState {
110
110
  */
111
111
  export interface DashboardService {
112
112
  status: (request: void, options?: RequestOptions) => Stream<AgentStatus>;
113
- changePluginConfig: (request: PluginState, options?: RequestOptions) => Promise<void>;
114
113
  }
@@ -58,181 +58,6 @@ import * as dxos_value from "../value";
58
58
  import * as example_testing_data from "../../example/testing/data";
59
59
  import * as example_testing_rpc from "../../example/testing/rpc";
60
60
  import * as google_protobuf from "../../google/protobuf";
61
- /**
62
- * Defined in:
63
- * {@link file://./../../../dxos/client/logging.proto}
64
- */
65
- export interface Metrics {
66
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
67
- values?: Metrics.KeyPair[];
68
- }
69
- export namespace Metrics {
70
- /**
71
- * Defined in:
72
- * {@link file://./../../../dxos/client/logging.proto}
73
- */
74
- export interface KeyPair {
75
- /**
76
- * Options:
77
- * - proto3_optional = true
78
- */
79
- key?: string;
80
- /**
81
- * Options:
82
- * - proto3_optional = true
83
- */
84
- value?: dxos_value.Value;
85
- /**
86
- * Options:
87
- * - proto3_optional = true
88
- */
89
- stats?: dxos_value.Stats;
90
- }
91
- }
92
- /**
93
- * Defined in:
94
- * {@link file://./../../../dxos/client/logging.proto}
95
- */
96
- export interface ControlMetricsRequest {
97
- /**
98
- * Options:
99
- * - proto3_optional = true
100
- */
101
- reset?: boolean;
102
- /**
103
- * Options:
104
- * - proto3_optional = true
105
- */
106
- record?: boolean;
107
- }
108
- /**
109
- * Defined in:
110
- * {@link file://./../../../dxos/client/logging.proto}
111
- */
112
- export interface ControlMetricsResponse {
113
- /**
114
- * Options:
115
- * - proto3_optional = true
116
- */
117
- recording?: boolean;
118
- }
119
- /**
120
- * Defined in:
121
- * {@link file://./../../../dxos/client/logging.proto}
122
- */
123
- export interface QueryMetricsRequest {
124
- /**
125
- * Options:
126
- * - proto3_optional = true
127
- */
128
- interval?: number;
129
- }
130
- /**
131
- * Defined in:
132
- * {@link file://./../../../dxos/client/logging.proto}
133
- */
134
- export interface QueryMetricsResponse {
135
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
136
- metrics: Metrics;
137
- }
138
- /**
139
- * Defined in:
140
- * {@link file://./../../../dxos/client/logging.proto}
141
- */
142
- export enum LogLevel {
143
- TRACE = 5,
144
- DEBUG = 10,
145
- INFO = 11,
146
- WARN = 12,
147
- ERROR = 13
148
- }
149
- /**
150
- * Defined in:
151
- * {@link file://./../../../dxos/client/logging.proto}
152
- */
153
- export interface QueryLogsRequest {
154
- filters?: QueryLogsRequest.Filter[];
155
- /**
156
- * Options:
157
- * - proto3_optional = true
158
- */
159
- options?: QueryLogsRequest.MatchingOptions;
160
- }
161
- export namespace QueryLogsRequest {
162
- /**
163
- * Defined in:
164
- * {@link file://./../../../dxos/client/logging.proto}
165
- */
166
- export enum MatchingOptions {
167
- INCLUSIVE = 1,
168
- EXPLICIT = 2
169
- }
170
- /**
171
- * Defined in:
172
- * {@link file://./../../../dxos/client/logging.proto}
173
- */
174
- export interface Filter {
175
- level: LogLevel;
176
- /**
177
- * Options:
178
- * - proto3_optional = true
179
- */
180
- pattern?: string;
181
- }
182
- }
183
- /**
184
- * Defined in:
185
- * {@link file://./../../../dxos/client/logging.proto}
186
- */
187
- export interface LogEntry {
188
- level: LogLevel;
189
- message: string;
190
- /**
191
- * Options:
192
- * - proto3_optional = true
193
- */
194
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
195
- /**
196
- * Options:
197
- * - proto3_optional = true
198
- */
199
- meta?: LogEntry.Meta;
200
- /**
201
- * Options:
202
- * - proto3_optional = true
203
- */
204
- error?: dxos_error.Error;
205
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
206
- }
207
- export namespace LogEntry {
208
- /**
209
- * Defined in:
210
- * {@link file://./../../../dxos/client/logging.proto}
211
- */
212
- export interface Meta {
213
- file: string;
214
- line: number;
215
- /**
216
- * Options:
217
- * - proto3_optional = true
218
- */
219
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
220
- /**
221
- * Options:
222
- * - proto3_optional = true
223
- */
224
- resourceId?: number;
225
- }
226
- }
227
- /**
228
- * Defined in:
229
- * {@link file://./../../../dxos/client/logging.proto}
230
- */
231
- export interface LoggingService {
232
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
233
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
234
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
235
- }
236
61
  /**
237
62
  * Defined in:
238
63
  * {@link file://./../../../dxos/client/services.proto}
@@ -696,6 +521,21 @@ export interface QueryCredentialsRequest {
696
521
  */
697
522
  export interface CreateEpochRequest {
698
523
  spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
524
+ /**
525
+ * Options:
526
+ * - proto3_optional = true
527
+ */
528
+ migration?: CreateEpochRequest.Migration;
529
+ }
530
+ export namespace CreateEpochRequest {
531
+ /**
532
+ * Defined in:
533
+ * {@link file://./../../../dxos/client/services.proto}
534
+ */
535
+ export enum Migration {
536
+ NONE = 0,
537
+ INIT_AUTOMERGE = 1
538
+ }
699
539
  }
700
540
  /**
701
541
  * Defined in:
@@ -927,3 +767,178 @@ export interface NetworkService {
927
767
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
928
768
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
929
769
  }
770
+ /**
771
+ * Defined in:
772
+ * {@link file://./../../../dxos/client/logging.proto}
773
+ */
774
+ export interface Metrics {
775
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
776
+ values?: Metrics.KeyPair[];
777
+ }
778
+ export namespace Metrics {
779
+ /**
780
+ * Defined in:
781
+ * {@link file://./../../../dxos/client/logging.proto}
782
+ */
783
+ export interface KeyPair {
784
+ /**
785
+ * Options:
786
+ * - proto3_optional = true
787
+ */
788
+ key?: string;
789
+ /**
790
+ * Options:
791
+ * - proto3_optional = true
792
+ */
793
+ value?: dxos_value.Value;
794
+ /**
795
+ * Options:
796
+ * - proto3_optional = true
797
+ */
798
+ stats?: dxos_value.Stats;
799
+ }
800
+ }
801
+ /**
802
+ * Defined in:
803
+ * {@link file://./../../../dxos/client/logging.proto}
804
+ */
805
+ export interface ControlMetricsRequest {
806
+ /**
807
+ * Options:
808
+ * - proto3_optional = true
809
+ */
810
+ reset?: boolean;
811
+ /**
812
+ * Options:
813
+ * - proto3_optional = true
814
+ */
815
+ record?: boolean;
816
+ }
817
+ /**
818
+ * Defined in:
819
+ * {@link file://./../../../dxos/client/logging.proto}
820
+ */
821
+ export interface ControlMetricsResponse {
822
+ /**
823
+ * Options:
824
+ * - proto3_optional = true
825
+ */
826
+ recording?: boolean;
827
+ }
828
+ /**
829
+ * Defined in:
830
+ * {@link file://./../../../dxos/client/logging.proto}
831
+ */
832
+ export interface QueryMetricsRequest {
833
+ /**
834
+ * Options:
835
+ * - proto3_optional = true
836
+ */
837
+ interval?: number;
838
+ }
839
+ /**
840
+ * Defined in:
841
+ * {@link file://./../../../dxos/client/logging.proto}
842
+ */
843
+ export interface QueryMetricsResponse {
844
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
845
+ metrics: Metrics;
846
+ }
847
+ /**
848
+ * Defined in:
849
+ * {@link file://./../../../dxos/client/logging.proto}
850
+ */
851
+ export enum LogLevel {
852
+ TRACE = 5,
853
+ DEBUG = 10,
854
+ INFO = 11,
855
+ WARN = 12,
856
+ ERROR = 13
857
+ }
858
+ /**
859
+ * Defined in:
860
+ * {@link file://./../../../dxos/client/logging.proto}
861
+ */
862
+ export interface QueryLogsRequest {
863
+ filters?: QueryLogsRequest.Filter[];
864
+ /**
865
+ * Options:
866
+ * - proto3_optional = true
867
+ */
868
+ options?: QueryLogsRequest.MatchingOptions;
869
+ }
870
+ export namespace QueryLogsRequest {
871
+ /**
872
+ * Defined in:
873
+ * {@link file://./../../../dxos/client/logging.proto}
874
+ */
875
+ export enum MatchingOptions {
876
+ INCLUSIVE = 1,
877
+ EXPLICIT = 2
878
+ }
879
+ /**
880
+ * Defined in:
881
+ * {@link file://./../../../dxos/client/logging.proto}
882
+ */
883
+ export interface Filter {
884
+ level: LogLevel;
885
+ /**
886
+ * Options:
887
+ * - proto3_optional = true
888
+ */
889
+ pattern?: string;
890
+ }
891
+ }
892
+ /**
893
+ * Defined in:
894
+ * {@link file://./../../../dxos/client/logging.proto}
895
+ */
896
+ export interface LogEntry {
897
+ level: LogLevel;
898
+ message: string;
899
+ /**
900
+ * Options:
901
+ * - proto3_optional = true
902
+ */
903
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
904
+ /**
905
+ * Options:
906
+ * - proto3_optional = true
907
+ */
908
+ meta?: LogEntry.Meta;
909
+ /**
910
+ * Options:
911
+ * - proto3_optional = true
912
+ */
913
+ error?: dxos_error.Error;
914
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
915
+ }
916
+ export namespace LogEntry {
917
+ /**
918
+ * Defined in:
919
+ * {@link file://./../../../dxos/client/logging.proto}
920
+ */
921
+ export interface Meta {
922
+ file: string;
923
+ line: number;
924
+ /**
925
+ * Options:
926
+ * - proto3_optional = true
927
+ */
928
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
929
+ /**
930
+ * Options:
931
+ * - proto3_optional = true
932
+ */
933
+ resourceId?: number;
934
+ }
935
+ }
936
+ /**
937
+ * Defined in:
938
+ * {@link file://./../../../dxos/client/logging.proto}
939
+ */
940
+ export interface LoggingService {
941
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
942
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
943
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
944
+ }
@@ -58,37 +58,6 @@ import * as dxos_value from "../value";
58
58
  import * as example_testing_data from "../../example/testing/data";
59
59
  import * as example_testing_rpc from "../../example/testing/rpc";
60
60
  import * as google_protobuf from "../../google/protobuf";
61
- /**
62
- * Defined in:
63
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
64
- */
65
- export interface Services {
66
- spaces?: SpaceStats[];
67
- }
68
- /**
69
- * Defined in:
70
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
71
- */
72
- export interface SpaceStats {
73
- key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
74
- peers?: PeerStats[];
75
- }
76
- /**
77
- * Defined in:
78
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
79
- */
80
- export interface PeerStats {
81
- controlFeed: FeedStats;
82
- dataFeed: FeedStats;
83
- }
84
- /**
85
- * Defined in:
86
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
87
- */
88
- export interface FeedStats {
89
- key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
90
- length: number;
91
- }
92
61
  /**
93
62
  * Defined in:
94
63
  * {@link file://./../../../dxos/devtools/host.proto}
@@ -511,3 +480,34 @@ export interface SubscribeToSwarmInfoRequest {
511
480
  export interface SubscribeToSwarmInfoResponse {
512
481
  data?: dxos_devtools_swarm.SwarmInfo[];
513
482
  }
483
+ /**
484
+ * Defined in:
485
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
486
+ */
487
+ export interface Services {
488
+ spaces?: SpaceStats[];
489
+ }
490
+ /**
491
+ * Defined in:
492
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
493
+ */
494
+ export interface SpaceStats {
495
+ key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
496
+ peers?: PeerStats[];
497
+ }
498
+ /**
499
+ * Defined in:
500
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
501
+ */
502
+ export interface PeerStats {
503
+ controlFeed: FeedStats;
504
+ dataFeed: FeedStats;
505
+ }
506
+ /**
507
+ * Defined in:
508
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
509
+ */
510
+ export interface FeedStats {
511
+ key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
512
+ length: number;
513
+ }
@@ -114,6 +114,31 @@ export interface ConnectionInfo {
114
114
  * - proto3_optional = true
115
115
  */
116
116
  lastUpdate?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
117
+ /**
118
+ * Options:
119
+ * - proto3_optional = true
120
+ */
121
+ transportDetails?: string;
122
+ /**
123
+ * Options:
124
+ * - proto3_optional = true
125
+ */
126
+ transportBytesSent?: number;
127
+ /**
128
+ * Options:
129
+ * - proto3_optional = true
130
+ */
131
+ transportBytesReceived?: number;
132
+ /**
133
+ * Options:
134
+ * - proto3_optional = true
135
+ */
136
+ transportPacketsSent?: number;
137
+ /**
138
+ * Options:
139
+ * - proto3_optional = true
140
+ */
141
+ transportPacketsReceived?: number;
117
142
  }
118
143
  export namespace ConnectionInfo {
119
144
  /**
@@ -135,6 +135,13 @@ export interface MutationReceipt {
135
135
  export interface FlushRequest {
136
136
  spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
137
137
  }
138
+ /**
139
+ * Defined in:
140
+ * {@link file://./../../../dxos/echo/service.proto}
141
+ */
142
+ export interface HostInfo {
143
+ peerId: string;
144
+ }
138
145
  /**
139
146
  * Defined in:
140
147
  * {@link file://./../../../dxos/echo/service.proto}
@@ -166,6 +173,7 @@ export interface DataService {
166
173
  subscribe: (request: SubscribeRequest, options?: RequestOptions) => Stream<EchoEvent>;
167
174
  write: (request: WriteRequest, options?: RequestOptions) => Promise<MutationReceipt>;
168
175
  flush: (request: FlushRequest, options?: RequestOptions) => Promise<void>;
176
+ getHostInfo: (request: void, options?: RequestOptions) => Promise<HostInfo>;
169
177
  syncRepo: (request: SyncRepoRequest, options?: RequestOptions) => Stream<SyncRepoResponse>;
170
178
  sendSyncMessage: (request: SyncRepoRequest, options?: RequestOptions) => Promise<void>;
171
179
  }
@@ -179,6 +179,13 @@ export interface Epoch {
179
179
  * - proto3_optional = true
180
180
  */
181
181
  snapshotCid?: string;
182
+ /**
183
+ * URL of the automerge document representing the space root.
184
+ *
185
+ * Options:
186
+ * - proto3_optional = true
187
+ */
188
+ automergeRoot?: string;
182
189
  }
183
190
  /**
184
191
  * [ASSERTION]: Associates a space that will implement Agent's HALO with an Identity.