@dxos/protocols 0.1.56-main.83e9b8a → 0.1.56-main.a25bb93
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 +43 -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 +14 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/iframe.d.ts +16 -1
- package/dist/cjs/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/iframe.js.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +4 -0
- 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 +43 -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 +13 -0
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/iframe.d.ts +16 -1
- package/dist/esm/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/iframe.js.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +4 -0
- 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/logging.proto +8 -1
- package/src/proto/dxos/client/services.proto +18 -0
- package/src/proto/dxos/devtools/host.proto +2 -1
- package/src/proto/dxos/iframe.proto +5 -1
- package/src/proto/gen/dxos/client/services.ts +43 -1
- package/src/proto/gen/dxos/iframe.ts +16 -1
- package/src/proto/gen/google/protobuf.ts +4 -4
- package/src/proto/gen/index.ts +5 -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;AAsDhE,OAAO,aAAa,MAAM,kBAAkB,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;AAsDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAwd7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,43sFAA43sF,CAAC,CAAC,CAAC;AACr7sF,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.56-main.
|
|
3
|
+
"version": "0.1.56-main.a25bb93",
|
|
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.56-main.
|
|
37
|
-
"@dxos/hypercore": "0.1.56-main.
|
|
38
|
-
"@dxos/keys": "0.1.56-main.
|
|
39
|
-
"@dxos/timeframe": "0.1.56-main.
|
|
36
|
+
"@dxos/codec-protobuf": "0.1.56-main.a25bb93",
|
|
37
|
+
"@dxos/hypercore": "0.1.56-main.a25bb93",
|
|
38
|
+
"@dxos/keys": "0.1.56-main.a25bb93",
|
|
39
|
+
"@dxos/timeframe": "0.1.56-main.a25bb93"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -45,10 +45,16 @@ message ControlMetricsResponse {
|
|
|
45
45
|
optional bool recording = 1;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
// TODO(burdon): Rename Trace?
|
|
48
49
|
message QueryMetricsRequest {
|
|
49
50
|
optional int32 interval = 1;
|
|
50
51
|
}
|
|
51
52
|
|
|
53
|
+
message QueryMetricsResponse {
|
|
54
|
+
google.protobuf.Timestamp timestamp = 1;
|
|
55
|
+
Metrics metrics = 2;
|
|
56
|
+
}
|
|
57
|
+
|
|
52
58
|
// NOTE: Keep aligned with LogLevel in @dxos/log.
|
|
53
59
|
enum LogLevel {
|
|
54
60
|
TRACE = 5;
|
|
@@ -92,7 +98,8 @@ message LogEntry {
|
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
service LoggingService {
|
|
101
|
+
// TODO(burdon): Deprecated: move to system service/diagnostics.
|
|
95
102
|
rpc ControlMetrics(ControlMetricsRequest) returns (ControlMetricsResponse);
|
|
96
|
-
rpc QueryMetrics(QueryMetricsRequest) returns (stream
|
|
103
|
+
rpc QueryMetrics(QueryMetricsRequest) returns (stream QueryMetricsResponse);
|
|
97
104
|
rpc QueryLogs(QueryLogsRequest) returns (stream LogEntry);
|
|
98
105
|
}
|
|
@@ -48,6 +48,21 @@ message QueryStatusResponse {
|
|
|
48
48
|
SystemStatus status = 1;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
message GetDiagnosticsRequest {
|
|
52
|
+
enum KEY_OPTION {
|
|
53
|
+
NONE = 0;
|
|
54
|
+
TRUNCATE = 1;
|
|
55
|
+
HUMANIZE = 2;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
optional KEY_OPTION keys = 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message GetDiagnosticsResponse {
|
|
62
|
+
google.protobuf.Timestamp timestamp = 1;
|
|
63
|
+
google.protobuf.Struct diagnostics = 2;
|
|
64
|
+
}
|
|
65
|
+
|
|
51
66
|
//
|
|
52
67
|
// System
|
|
53
68
|
//
|
|
@@ -56,6 +71,9 @@ service SystemService {
|
|
|
56
71
|
/// Get the static config of the client.
|
|
57
72
|
rpc GetConfig(google.protobuf.Empty) returns (dxos.config.Config);
|
|
58
73
|
|
|
74
|
+
/// Get the diagnostics snapshot.
|
|
75
|
+
rpc GetDiagnostics(GetDiagnosticsRequest) returns (GetDiagnosticsResponse);
|
|
76
|
+
|
|
59
77
|
/// Update the status of the client. Used to re-activate an inactive client.
|
|
60
78
|
rpc UpdateStatus(UpdateStatusRequest) returns (google.protobuf.Empty);
|
|
61
79
|
|
|
@@ -46,6 +46,8 @@ service DevtoolsHost {
|
|
|
46
46
|
rpc EnableDebugLogging(EnableDebugLoggingRequest) returns (EnableDebugLoggingResponse);
|
|
47
47
|
rpc DisableDebugLogging(EnableDebugLoggingRequest) returns (EnableDebugLoggingResponse);
|
|
48
48
|
|
|
49
|
+
// TODO(burdon): Rename SubscribeToX as QueryX.
|
|
50
|
+
|
|
49
51
|
//
|
|
50
52
|
// HALO
|
|
51
53
|
//
|
|
@@ -183,7 +185,6 @@ message SubscribeToSpacesResponse {
|
|
|
183
185
|
dxos.keys.PublicKey genesis_feed = 4;
|
|
184
186
|
dxos.keys.PublicKey control_feed = 5;
|
|
185
187
|
dxos.keys.PublicKey data_feed = 6;
|
|
186
|
-
|
|
187
188
|
}
|
|
188
189
|
|
|
189
190
|
repeated SpaceInfo spaces = 1;
|
|
@@ -29,8 +29,12 @@ enum ShellDisplay {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message AppContextRequest {
|
|
32
|
-
|
|
32
|
+
/// The display mode that shell should use
|
|
33
|
+
optional ShellDisplay display = 1;
|
|
34
|
+
/// The key of the joined space
|
|
33
35
|
optional dxos.keys.PublicKey space_key = 2;
|
|
36
|
+
/// The invitation code which has become invalidated
|
|
37
|
+
optional string invalidated_invitation_code = 3;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
/// App RPCs for the shell.
|
|
@@ -121,6 +121,14 @@ export interface QueryMetricsRequest {
|
|
|
121
121
|
*/
|
|
122
122
|
interval?: number;
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Defined in:
|
|
126
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
127
|
+
*/
|
|
128
|
+
export interface QueryMetricsResponse {
|
|
129
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
130
|
+
metrics: Metrics;
|
|
131
|
+
}
|
|
124
132
|
/**
|
|
125
133
|
* Defined in:
|
|
126
134
|
* {@link file://./../../../dxos/client/logging.proto}
|
|
@@ -211,7 +219,7 @@ export namespace LogEntry {
|
|
|
211
219
|
*/
|
|
212
220
|
export interface LoggingService {
|
|
213
221
|
controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
|
|
214
|
-
queryMetrics: (request: QueryMetricsRequest) => Stream<
|
|
222
|
+
queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
|
|
215
223
|
queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
|
|
216
224
|
}
|
|
217
225
|
/**
|
|
@@ -247,6 +255,36 @@ export interface QueryStatusRequest {
|
|
|
247
255
|
export interface QueryStatusResponse {
|
|
248
256
|
status: SystemStatus;
|
|
249
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Defined in:
|
|
260
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
261
|
+
*/
|
|
262
|
+
export interface GetDiagnosticsRequest {
|
|
263
|
+
/**
|
|
264
|
+
* Options:
|
|
265
|
+
* - proto3_optional = true
|
|
266
|
+
*/
|
|
267
|
+
keys?: GetDiagnosticsRequest.KEY_OPTION;
|
|
268
|
+
}
|
|
269
|
+
export namespace GetDiagnosticsRequest {
|
|
270
|
+
/**
|
|
271
|
+
* Defined in:
|
|
272
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
273
|
+
*/
|
|
274
|
+
export enum KEY_OPTION {
|
|
275
|
+
NONE = 0,
|
|
276
|
+
TRUNCATE = 1,
|
|
277
|
+
HUMANIZE = 2
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Defined in:
|
|
282
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
283
|
+
*/
|
|
284
|
+
export interface GetDiagnosticsResponse {
|
|
285
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
286
|
+
diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
287
|
+
}
|
|
250
288
|
/**
|
|
251
289
|
* Defined in:
|
|
252
290
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -256,6 +294,10 @@ export interface SystemService {
|
|
|
256
294
|
* Get the static config of the client.
|
|
257
295
|
*/
|
|
258
296
|
getConfig: (request: void) => Promise<dxos_config.Config>;
|
|
297
|
+
/**
|
|
298
|
+
* Get the diagnostics snapshot.
|
|
299
|
+
*/
|
|
300
|
+
getDiagnostics: (request: GetDiagnosticsRequest) => Promise<GetDiagnosticsResponse>;
|
|
259
301
|
/**
|
|
260
302
|
* Update the status of the client. Used to re-activate an inactive client.
|
|
261
303
|
*/
|
|
@@ -89,12 +89,27 @@ export enum ShellDisplay {
|
|
|
89
89
|
* {@link file://./../../dxos/iframe.proto}
|
|
90
90
|
*/
|
|
91
91
|
export interface AppContextRequest {
|
|
92
|
-
display: ShellDisplay;
|
|
93
92
|
/**
|
|
93
|
+
* The display mode that shell should use
|
|
94
|
+
*
|
|
95
|
+
* Options:
|
|
96
|
+
* - proto3_optional = true
|
|
97
|
+
*/
|
|
98
|
+
display?: ShellDisplay;
|
|
99
|
+
/**
|
|
100
|
+
* The key of the joined space
|
|
101
|
+
*
|
|
94
102
|
* Options:
|
|
95
103
|
* - proto3_optional = true
|
|
96
104
|
*/
|
|
97
105
|
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
106
|
+
/**
|
|
107
|
+
* The invitation code which has become invalidated
|
|
108
|
+
*
|
|
109
|
+
* Options:
|
|
110
|
+
* - proto3_optional = true
|
|
111
|
+
*/
|
|
112
|
+
invalidatedInvitationCode?: string;
|
|
98
113
|
}
|
|
99
114
|
/**
|
|
100
115
|
* App RPCs for the shell.
|
|
@@ -54,10 +54,6 @@ import * as example_testing_data from "../example/testing/data";
|
|
|
54
54
|
import * as example_testing_rpc from "../example/testing/rpc";
|
|
55
55
|
export interface Empty {
|
|
56
56
|
}
|
|
57
|
-
export interface Timestamp {
|
|
58
|
-
seconds: string;
|
|
59
|
-
nanos: number;
|
|
60
|
-
}
|
|
61
57
|
export interface Any {
|
|
62
58
|
type_url: string;
|
|
63
59
|
value: Uint8Array;
|
|
@@ -79,6 +75,10 @@ export enum NullValue {
|
|
|
79
75
|
export interface ListValue {
|
|
80
76
|
values?: Value[];
|
|
81
77
|
}
|
|
78
|
+
export interface Timestamp {
|
|
79
|
+
seconds: string;
|
|
80
|
+
nanos: number;
|
|
81
|
+
}
|
|
82
82
|
export interface FileDescriptorSet {
|
|
83
83
|
file?: FileDescriptorProto[];
|
|
84
84
|
}
|