@dxos/protocols 0.1.58-main.fa022ee → 0.1.58-main.fc3ea9b

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 (66) hide show
  1. package/dist/cjs/src/errors/encoding.d.ts.map +1 -1
  2. package/dist/cjs/src/errors/encoding.js.map +1 -1
  3. package/dist/cjs/src/errors/errors.d.ts.map +1 -1
  4. package/dist/cjs/src/errors/errors.js +2 -2
  5. package/dist/cjs/src/errors/errors.js.map +1 -1
  6. package/dist/cjs/src/errors/helpers.d.ts +1 -1
  7. package/dist/cjs/src/errors/helpers.d.ts.map +1 -1
  8. package/dist/cjs/src/errors/helpers.js.map +1 -1
  9. package/dist/cjs/src/index.d.ts +2 -2
  10. package/dist/cjs/src/index.d.ts.map +1 -1
  11. package/dist/cjs/src/index.js +2 -2
  12. package/dist/cjs/src/index.js.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +175 -175
  14. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  15. package/dist/cjs/src/proto/gen/dxos/client/services.js +25 -25
  16. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  17. package/dist/cjs/src/proto/gen/dxos/config.d.ts +5 -5
  18. package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
  19. package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts +31 -31
  20. package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  21. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  22. package/dist/cjs/src/proto/gen/index.js +1 -1
  23. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  24. package/dist/cjs/src/storage.d.ts +2 -3
  25. package/dist/cjs/src/storage.d.ts.map +1 -1
  26. package/dist/cjs/src/storage.js +2 -3
  27. package/dist/cjs/src/storage.js.map +1 -1
  28. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  29. package/dist/esm/src/errors/encoding.d.ts.map +1 -1
  30. package/dist/esm/src/errors/encoding.js.map +1 -1
  31. package/dist/esm/src/errors/errors.d.ts.map +1 -1
  32. package/dist/esm/src/errors/errors.js +2 -2
  33. package/dist/esm/src/errors/errors.js.map +1 -1
  34. package/dist/esm/src/errors/helpers.d.ts +1 -1
  35. package/dist/esm/src/errors/helpers.d.ts.map +1 -1
  36. package/dist/esm/src/errors/helpers.js.map +1 -1
  37. package/dist/esm/src/index.d.ts +2 -2
  38. package/dist/esm/src/index.d.ts.map +1 -1
  39. package/dist/esm/src/index.js +2 -2
  40. package/dist/esm/src/index.js.map +1 -1
  41. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +175 -175
  42. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  43. package/dist/esm/src/proto/gen/dxos/client/services.js +24 -24
  44. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  45. package/dist/esm/src/proto/gen/dxos/config.d.ts +5 -5
  46. package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
  47. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts +31 -31
  48. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  49. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  50. package/dist/esm/src/proto/gen/index.js +1 -1
  51. package/dist/esm/src/proto/gen/index.js.map +1 -1
  52. package/dist/esm/src/storage.d.ts +2 -3
  53. package/dist/esm/src/storage.d.ts.map +1 -1
  54. package/dist/esm/src/storage.js +2 -3
  55. package/dist/esm/src/storage.js.map +1 -1
  56. package/package.json +5 -5
  57. package/src/errors/encoding.ts +1 -1
  58. package/src/errors/errors.ts +7 -3
  59. package/src/errors/helpers.ts +1 -1
  60. package/src/index.ts +2 -2
  61. package/src/proto/dxos/config.proto +13 -9
  62. package/src/proto/gen/dxos/client/services.ts +175 -175
  63. package/src/proto/gen/dxos/config.ts +5 -5
  64. package/src/proto/gen/dxos/devtools/host.ts +31 -31
  65. package/src/proto/gen/index.ts +1 -1
  66. package/src/storage.ts +2 -3
@@ -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;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA+e7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,qm0FAAqm0F,CAAC,CAAC,CAAC;AAC9p0F,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;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA+e7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,gn0FAAgn0F,CAAC,CAAC,CAAC;AACzq0F,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Version for the schema of the stored data as defined in dxos.echo.metadata.EchoMetadata.
3
- *
4
- * Should be incremented every time there's a breaking change to the stored data.
3
+ * update when making breaking changes to the protocols or other stored data.
5
4
  */
6
- export declare const STORAGE_VERSION = 1;
5
+ export declare const STORAGE_VERSION = 2;
7
6
  //# sourceMappingURL=storage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/storage.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/storage.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC"}
@@ -3,8 +3,7 @@
3
3
  //
4
4
  /**
5
5
  * Version for the schema of the stored data as defined in dxos.echo.metadata.EchoMetadata.
6
- *
7
- * Should be incremented every time there's a breaking change to the stored data.
6
+ * update when making breaking changes to the protocols or other stored data.
8
7
  */
9
- export const STORAGE_VERSION = 1;
8
+ export const STORAGE_VERSION = 2;
10
9
  //# sourceMappingURL=storage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/storage.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/storage.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.1.58-main.fa022ee",
3
+ "version": "0.1.58-main.fc3ea9b",
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.58-main.fa022ee",
37
- "@dxos/invariant": "0.1.58-main.fa022ee",
38
- "@dxos/keys": "0.1.58-main.fa022ee",
39
- "@dxos/timeframe": "0.1.58-main.fa022ee"
36
+ "@dxos/codec-protobuf": "0.1.58-main.fc3ea9b",
37
+ "@dxos/invariant": "0.1.58-main.fc3ea9b",
38
+ "@dxos/keys": "0.1.58-main.fc3ea9b",
39
+ "@dxos/timeframe": "0.1.58-main.fc3ea9b"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -2,8 +2,8 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Error as SerializedErrorProto } from '../proto/gen/dxos/error';
6
5
  import { reconstructError } from './helpers';
6
+ import { Error as SerializedErrorProto } from '../proto/gen/dxos/error';
7
7
 
8
8
  export const encodeError = (err: any): SerializedErrorProto => {
9
9
  if (typeof err === 'object' && err?.message) {
@@ -11,7 +11,11 @@ import type { ItemID } from '../types';
11
11
  * Errors can optionally include a JSON context object.
12
12
  */
13
13
  class BaseError extends Error {
14
- constructor(readonly code: string, message?: string, readonly context?: Record<string, any>) {
14
+ constructor(
15
+ readonly code: string,
16
+ message?: string,
17
+ readonly context?: Record<string, any>,
18
+ ) {
15
19
  super(message ?? code);
16
20
  this.name = code;
17
21
  // NOTE: Restores prototype chain (https://stackoverflow.com/a/48342359).
@@ -121,14 +125,14 @@ export class TimeoutError extends BaseError {
121
125
  }
122
126
  }
123
127
 
124
- // General protocol error
128
+ // General protocol error.
125
129
  export class ProtocolError extends BaseError {
126
130
  constructor(message?: string, context?: any) {
127
131
  super('PROTOCOL_ERROR', message, context);
128
132
  }
129
133
  }
130
134
 
131
- // General connectivity errors
135
+ // General connectivity errors.
132
136
  export class ConnectivityError extends BaseError {
133
137
  constructor(message?: string, context?: any) {
134
138
  super('CONNECTIVITY_ERROR', message, context);
@@ -5,7 +5,6 @@
5
5
  import { invariant } from '@dxos/invariant';
6
6
  import { PublicKey } from '@dxos/keys';
7
7
 
8
- import { Error as SerializedErrorProto } from '../proto/gen/dxos/error';
9
8
  import {
10
9
  CancelledError,
11
10
  ConnectionResetError,
@@ -28,6 +27,7 @@ import {
28
27
  UnknownModelError,
29
28
  UnknownProtocolError,
30
29
  } from './errors';
30
+ import { Error as SerializedErrorProto } from '../proto/gen/dxos/error';
31
31
 
32
32
  export const reconstructError = (error: SerializedErrorProto) => {
33
33
  const { name, message, context } = error;
package/src/index.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
4
 
5
+ export * from './errors';
5
6
  export * from './proto';
6
7
  export * from './storage';
7
8
  export * from './testing';
8
- export * from './types';
9
9
  export * from './tracing';
10
- export * from './errors';
10
+ export * from './types';
@@ -45,6 +45,9 @@ message Repo {
45
45
  optional string version = 3;
46
46
  }
47
47
 
48
+ //
49
+ // Unit of deployment.
50
+ //
48
51
  message Module {
49
52
  message Build {
50
53
  optional string command = 1;
@@ -55,22 +58,23 @@ message Module {
55
58
  optional google.protobuf.Struct env = 10;
56
59
  }
57
60
 
58
- optional string name = 1; // TODO(burdon): Replace with id (or key?)
59
61
  optional string id = 8; // TODO(burdon): Ensured FQ (e.g., 'dxos.app.xxx')
60
- optional string type = 2; // TODO(burdon): Define namespace (e.g., 'dxos:type/frame' vs. 'dxos.type.frame')
62
+ optional string name = 1; // TODO(burdon): Replace with id (or key?)
63
+ optional string type = 2; // TODO(burdon): Define namespace (e.g., 'dxos.org/type/frame' vs. 'dxos.type.frame')
61
64
 
62
65
  // TODO(burdon): Developer info message.
63
66
 
67
+ // TODO(burdon): Start at 10.
64
68
  optional string display_name = 3;
65
69
  optional string description = 4;
66
70
  repeated string tags = 5;
67
- optional bytes bundle = 6;
71
+ optional bytes bundle = 6; // TODO(burdon): ???
68
72
 
69
73
  // TODO(burdon): Remove.
70
74
  optional bool tunnel = 7;
71
75
 
76
+ // TODO(burdon): Start at 100.
72
77
  repeated Module deps = 10; // TODO(burdon): E.g., types.
73
-
74
78
  optional Build build = 100;
75
79
  repeated Repo repos = 101;
76
80
 
@@ -90,15 +94,15 @@ message Runtime {
90
94
  NODE = 4;
91
95
  WEBFS = 5;
92
96
 
93
- // Key storage only
97
+ // Key storage only.
94
98
  LEVELJS = 11;
95
99
  JSONDOWN = 12;
96
100
  }
97
101
 
98
- optional bool persistent = 1; // TODO(burdon): Replace with type.
99
- optional StorageDriver key_storage = 3; // TODO(burdon): Rename key_store.
100
- optional StorageDriver storage_type = 2; // TODO(burdon): Rename data_store.
101
- optional string path = 4; // TODO(burdon): Rename data_path.
102
+ optional bool persistent = 1;
103
+ optional StorageDriver key_store = 2;
104
+ optional StorageDriver data_store = 3;
105
+ optional string data_root = 4;
102
106
  }
103
107
 
104
108
  message Log {
@@ -53,181 +53,6 @@ import * as dxos_value from "../value";
53
53
  import * as example_testing_data from "../../example/testing/data";
54
54
  import * as example_testing_rpc from "../../example/testing/rpc";
55
55
  import * as google_protobuf from "../../google/protobuf";
56
- /**
57
- * Defined in:
58
- * {@link file://./../../../dxos/client/logging.proto}
59
- */
60
- export interface Metrics {
61
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
62
- values?: Metrics.KeyPair[];
63
- }
64
- export namespace Metrics {
65
- /**
66
- * Defined in:
67
- * {@link file://./../../../dxos/client/logging.proto}
68
- */
69
- export interface KeyPair {
70
- /**
71
- * Options:
72
- * - proto3_optional = true
73
- */
74
- key?: string;
75
- /**
76
- * Options:
77
- * - proto3_optional = true
78
- */
79
- value?: dxos_value.Value;
80
- /**
81
- * Options:
82
- * - proto3_optional = true
83
- */
84
- stats?: dxos_value.Stats;
85
- }
86
- }
87
- /**
88
- * Defined in:
89
- * {@link file://./../../../dxos/client/logging.proto}
90
- */
91
- export interface ControlMetricsRequest {
92
- /**
93
- * Options:
94
- * - proto3_optional = true
95
- */
96
- reset?: boolean;
97
- /**
98
- * Options:
99
- * - proto3_optional = true
100
- */
101
- record?: boolean;
102
- }
103
- /**
104
- * Defined in:
105
- * {@link file://./../../../dxos/client/logging.proto}
106
- */
107
- export interface ControlMetricsResponse {
108
- /**
109
- * Options:
110
- * - proto3_optional = true
111
- */
112
- recording?: boolean;
113
- }
114
- /**
115
- * Defined in:
116
- * {@link file://./../../../dxos/client/logging.proto}
117
- */
118
- export interface QueryMetricsRequest {
119
- /**
120
- * Options:
121
- * - proto3_optional = true
122
- */
123
- interval?: number;
124
- }
125
- /**
126
- * Defined in:
127
- * {@link file://./../../../dxos/client/logging.proto}
128
- */
129
- export interface QueryMetricsResponse {
130
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
131
- metrics: Metrics;
132
- }
133
- /**
134
- * Defined in:
135
- * {@link file://./../../../dxos/client/logging.proto}
136
- */
137
- export enum LogLevel {
138
- TRACE = 5,
139
- DEBUG = 10,
140
- INFO = 11,
141
- WARN = 12,
142
- ERROR = 13
143
- }
144
- /**
145
- * Defined in:
146
- * {@link file://./../../../dxos/client/logging.proto}
147
- */
148
- export interface QueryLogsRequest {
149
- filters?: QueryLogsRequest.Filter[];
150
- /**
151
- * Options:
152
- * - proto3_optional = true
153
- */
154
- options?: QueryLogsRequest.MatchingOptions;
155
- }
156
- export namespace QueryLogsRequest {
157
- /**
158
- * Defined in:
159
- * {@link file://./../../../dxos/client/logging.proto}
160
- */
161
- export enum MatchingOptions {
162
- INCLUSIVE = 1,
163
- EXPLICIT = 2
164
- }
165
- /**
166
- * Defined in:
167
- * {@link file://./../../../dxos/client/logging.proto}
168
- */
169
- export interface Filter {
170
- level: LogLevel;
171
- /**
172
- * Options:
173
- * - proto3_optional = true
174
- */
175
- pattern?: string;
176
- }
177
- }
178
- /**
179
- * Defined in:
180
- * {@link file://./../../../dxos/client/logging.proto}
181
- */
182
- export interface LogEntry {
183
- level: LogLevel;
184
- message: string;
185
- /**
186
- * Options:
187
- * - proto3_optional = true
188
- */
189
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
190
- /**
191
- * Options:
192
- * - proto3_optional = true
193
- */
194
- meta?: LogEntry.Meta;
195
- /**
196
- * Options:
197
- * - proto3_optional = true
198
- */
199
- error?: dxos_error.Error;
200
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
201
- }
202
- export namespace LogEntry {
203
- /**
204
- * Defined in:
205
- * {@link file://./../../../dxos/client/logging.proto}
206
- */
207
- export interface Meta {
208
- file: string;
209
- line: number;
210
- /**
211
- * Options:
212
- * - proto3_optional = true
213
- */
214
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
215
- /**
216
- * Options:
217
- * - proto3_optional = true
218
- */
219
- resourceId?: number;
220
- }
221
- }
222
- /**
223
- * Defined in:
224
- * {@link file://./../../../dxos/client/logging.proto}
225
- */
226
- export interface LoggingService {
227
- controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
228
- queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
229
- queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
230
- }
231
56
  /**
232
57
  * Defined in:
233
58
  * {@link file://./../../../dxos/client/services.proto}
@@ -922,3 +747,178 @@ export interface NetworkService {
922
747
  updateConfig: (request: UpdateConfigRequest) => Promise<void>;
923
748
  queryStatus: (request: void) => Stream<NetworkStatus>;
924
749
  }
750
+ /**
751
+ * Defined in:
752
+ * {@link file://./../../../dxos/client/logging.proto}
753
+ */
754
+ export interface Metrics {
755
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
756
+ values?: Metrics.KeyPair[];
757
+ }
758
+ export namespace Metrics {
759
+ /**
760
+ * Defined in:
761
+ * {@link file://./../../../dxos/client/logging.proto}
762
+ */
763
+ export interface KeyPair {
764
+ /**
765
+ * Options:
766
+ * - proto3_optional = true
767
+ */
768
+ key?: string;
769
+ /**
770
+ * Options:
771
+ * - proto3_optional = true
772
+ */
773
+ value?: dxos_value.Value;
774
+ /**
775
+ * Options:
776
+ * - proto3_optional = true
777
+ */
778
+ stats?: dxos_value.Stats;
779
+ }
780
+ }
781
+ /**
782
+ * Defined in:
783
+ * {@link file://./../../../dxos/client/logging.proto}
784
+ */
785
+ export interface ControlMetricsRequest {
786
+ /**
787
+ * Options:
788
+ * - proto3_optional = true
789
+ */
790
+ reset?: boolean;
791
+ /**
792
+ * Options:
793
+ * - proto3_optional = true
794
+ */
795
+ record?: boolean;
796
+ }
797
+ /**
798
+ * Defined in:
799
+ * {@link file://./../../../dxos/client/logging.proto}
800
+ */
801
+ export interface ControlMetricsResponse {
802
+ /**
803
+ * Options:
804
+ * - proto3_optional = true
805
+ */
806
+ recording?: boolean;
807
+ }
808
+ /**
809
+ * Defined in:
810
+ * {@link file://./../../../dxos/client/logging.proto}
811
+ */
812
+ export interface QueryMetricsRequest {
813
+ /**
814
+ * Options:
815
+ * - proto3_optional = true
816
+ */
817
+ interval?: number;
818
+ }
819
+ /**
820
+ * Defined in:
821
+ * {@link file://./../../../dxos/client/logging.proto}
822
+ */
823
+ export interface QueryMetricsResponse {
824
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
825
+ metrics: Metrics;
826
+ }
827
+ /**
828
+ * Defined in:
829
+ * {@link file://./../../../dxos/client/logging.proto}
830
+ */
831
+ export enum LogLevel {
832
+ TRACE = 5,
833
+ DEBUG = 10,
834
+ INFO = 11,
835
+ WARN = 12,
836
+ ERROR = 13
837
+ }
838
+ /**
839
+ * Defined in:
840
+ * {@link file://./../../../dxos/client/logging.proto}
841
+ */
842
+ export interface QueryLogsRequest {
843
+ filters?: QueryLogsRequest.Filter[];
844
+ /**
845
+ * Options:
846
+ * - proto3_optional = true
847
+ */
848
+ options?: QueryLogsRequest.MatchingOptions;
849
+ }
850
+ export namespace QueryLogsRequest {
851
+ /**
852
+ * Defined in:
853
+ * {@link file://./../../../dxos/client/logging.proto}
854
+ */
855
+ export enum MatchingOptions {
856
+ INCLUSIVE = 1,
857
+ EXPLICIT = 2
858
+ }
859
+ /**
860
+ * Defined in:
861
+ * {@link file://./../../../dxos/client/logging.proto}
862
+ */
863
+ export interface Filter {
864
+ level: LogLevel;
865
+ /**
866
+ * Options:
867
+ * - proto3_optional = true
868
+ */
869
+ pattern?: string;
870
+ }
871
+ }
872
+ /**
873
+ * Defined in:
874
+ * {@link file://./../../../dxos/client/logging.proto}
875
+ */
876
+ export interface LogEntry {
877
+ level: LogLevel;
878
+ message: string;
879
+ /**
880
+ * Options:
881
+ * - proto3_optional = true
882
+ */
883
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
884
+ /**
885
+ * Options:
886
+ * - proto3_optional = true
887
+ */
888
+ meta?: LogEntry.Meta;
889
+ /**
890
+ * Options:
891
+ * - proto3_optional = true
892
+ */
893
+ error?: dxos_error.Error;
894
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
895
+ }
896
+ export namespace LogEntry {
897
+ /**
898
+ * Defined in:
899
+ * {@link file://./../../../dxos/client/logging.proto}
900
+ */
901
+ export interface Meta {
902
+ file: string;
903
+ line: number;
904
+ /**
905
+ * Options:
906
+ * - proto3_optional = true
907
+ */
908
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
909
+ /**
910
+ * Options:
911
+ * - proto3_optional = true
912
+ */
913
+ resourceId?: number;
914
+ }
915
+ }
916
+ /**
917
+ * Defined in:
918
+ * {@link file://./../../../dxos/client/logging.proto}
919
+ */
920
+ export interface LoggingService {
921
+ controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
922
+ queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
923
+ queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
924
+ }
@@ -117,12 +117,12 @@ export interface Module {
117
117
  * Options:
118
118
  * - proto3_optional = true
119
119
  */
120
- name?: string;
120
+ id?: string;
121
121
  /**
122
122
  * Options:
123
123
  * - proto3_optional = true
124
124
  */
125
- id?: string;
125
+ name?: string;
126
126
  /**
127
127
  * Options:
128
128
  * - proto3_optional = true
@@ -307,17 +307,17 @@ export namespace Runtime {
307
307
  * Options:
308
308
  * - proto3_optional = true
309
309
  */
310
- keyStorage?: Runtime.Client.Storage.StorageDriver;
310
+ keyStore?: Runtime.Client.Storage.StorageDriver;
311
311
  /**
312
312
  * Options:
313
313
  * - proto3_optional = true
314
314
  */
315
- storageType?: Runtime.Client.Storage.StorageDriver;
315
+ dataStore?: Runtime.Client.Storage.StorageDriver;
316
316
  /**
317
317
  * Options:
318
318
  * - proto3_optional = true
319
319
  */
320
- path?: string;
320
+ dataRoot?: string;
321
321
  }
322
322
  export namespace Storage {
323
323
  /**
@@ -53,37 +53,6 @@ import * as dxos_value from "../value";
53
53
  import * as example_testing_data from "../../example/testing/data";
54
54
  import * as example_testing_rpc from "../../example/testing/rpc";
55
55
  import * as google_protobuf from "../../google/protobuf";
56
- /**
57
- * Defined in:
58
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
59
- */
60
- export interface Services {
61
- spaces?: SpaceStats[];
62
- }
63
- /**
64
- * Defined in:
65
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
66
- */
67
- export interface SpaceStats {
68
- key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
69
- peers?: PeerStats[];
70
- }
71
- /**
72
- * Defined in:
73
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
74
- */
75
- export interface PeerStats {
76
- controlFeed: FeedStats;
77
- dataFeed: FeedStats;
78
- }
79
- /**
80
- * Defined in:
81
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
82
- */
83
- export interface FeedStats {
84
- key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
85
- length: number;
86
- }
87
56
  /**
88
57
  * Defined in:
89
58
  * {@link file://./../../../dxos/devtools/host.proto}
@@ -506,3 +475,34 @@ export interface SubscribeToSwarmInfoRequest {
506
475
  export interface SubscribeToSwarmInfoResponse {
507
476
  data?: dxos_devtools_swarm.SwarmInfo[];
508
477
  }
478
+ /**
479
+ * Defined in:
480
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
481
+ */
482
+ export interface Services {
483
+ spaces?: SpaceStats[];
484
+ }
485
+ /**
486
+ * Defined in:
487
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
488
+ */
489
+ export interface SpaceStats {
490
+ key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
491
+ peers?: PeerStats[];
492
+ }
493
+ /**
494
+ * Defined in:
495
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
496
+ */
497
+ export interface PeerStats {
498
+ controlFeed: FeedStats;
499
+ dataFeed: FeedStats;
500
+ }
501
+ /**
502
+ * Defined in:
503
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
504
+ */
505
+ export interface FeedStats {
506
+ key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
507
+ length: number;
508
+ }