@dxos/protocols 0.5.8-main.e343621 → 0.5.8-next.4b7fabd
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 +175 -176
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +25 -25
- package/dist/cjs/src/proto/gen/dxos/client/services.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 +175 -176
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +24 -24
- package/dist/esm/src/proto/gen/dxos/client/services.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 +0 -1
- package/src/proto/dxos/mesh/signal.proto +2 -0
- package/src/proto/gen/dxos/client/services.ts +175 -176
- 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;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA2iB7C,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;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA2iB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4o0GAA4o0G,CAAC,CAAC,CAAC;AACrs0G,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.5.8-
|
|
3
|
+
"version": "0.5.8-next.4b7fabd",
|
|
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.5.8-
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
36
|
+
"@dxos/codec-protobuf": "0.5.8-next.4b7fabd",
|
|
37
|
+
"@dxos/keys": "0.5.8-next.4b7fabd",
|
|
38
|
+
"@dxos/timeframe": "0.5.8-next.4b7fabd",
|
|
39
|
+
"@dxos/invariant": "0.5.8-next.4b7fabd"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -9,6 +9,7 @@ import "google/protobuf/empty.proto";
|
|
|
9
9
|
import "google/protobuf/struct.proto";
|
|
10
10
|
import "google/protobuf/timestamp.proto";
|
|
11
11
|
|
|
12
|
+
|
|
12
13
|
package dxos.mesh.signal;
|
|
13
14
|
|
|
14
15
|
option go_package = "github.com/dxos/kube/proto/def/dxos/mesh/signal";
|
|
@@ -93,6 +94,7 @@ enum SignalState {
|
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
// TOOD(burdon): Rename.
|
|
97
|
+
// TODO(burdon): Reconcile with `@dxos/kube`.
|
|
96
98
|
service Signal {
|
|
97
99
|
rpc Join(JoinRequest) returns (stream SwarmEvent);
|
|
98
100
|
rpc ReceiveMessages(ReceptionRequest) returns (stream Message);
|
|
@@ -61,6 +61,181 @@ import * as dxos_value from "../value";
|
|
|
61
61
|
import * as example_testing_data from "../../example/testing/data";
|
|
62
62
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
63
63
|
import * as google_protobuf from "../../google/protobuf";
|
|
64
|
+
/**
|
|
65
|
+
* Defined in:
|
|
66
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
67
|
+
*/
|
|
68
|
+
export interface Metrics {
|
|
69
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
70
|
+
values?: Metrics.KeyPair[];
|
|
71
|
+
}
|
|
72
|
+
export namespace Metrics {
|
|
73
|
+
/**
|
|
74
|
+
* Defined in:
|
|
75
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
76
|
+
*/
|
|
77
|
+
export interface KeyPair {
|
|
78
|
+
/**
|
|
79
|
+
* Options:
|
|
80
|
+
* - proto3_optional = true
|
|
81
|
+
*/
|
|
82
|
+
key?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Options:
|
|
85
|
+
* - proto3_optional = true
|
|
86
|
+
*/
|
|
87
|
+
value?: dxos_value.Value;
|
|
88
|
+
/**
|
|
89
|
+
* Options:
|
|
90
|
+
* - proto3_optional = true
|
|
91
|
+
*/
|
|
92
|
+
stats?: dxos_value.Stats;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Defined in:
|
|
97
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
98
|
+
*/
|
|
99
|
+
export interface ControlMetricsRequest {
|
|
100
|
+
/**
|
|
101
|
+
* Options:
|
|
102
|
+
* - proto3_optional = true
|
|
103
|
+
*/
|
|
104
|
+
reset?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Options:
|
|
107
|
+
* - proto3_optional = true
|
|
108
|
+
*/
|
|
109
|
+
record?: boolean;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Defined in:
|
|
113
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
114
|
+
*/
|
|
115
|
+
export interface ControlMetricsResponse {
|
|
116
|
+
/**
|
|
117
|
+
* Options:
|
|
118
|
+
* - proto3_optional = true
|
|
119
|
+
*/
|
|
120
|
+
recording?: boolean;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Defined in:
|
|
124
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
125
|
+
*/
|
|
126
|
+
export interface QueryMetricsRequest {
|
|
127
|
+
/**
|
|
128
|
+
* Options:
|
|
129
|
+
* - proto3_optional = true
|
|
130
|
+
*/
|
|
131
|
+
interval?: number;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Defined in:
|
|
135
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
136
|
+
*/
|
|
137
|
+
export interface QueryMetricsResponse {
|
|
138
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
139
|
+
metrics: Metrics;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Defined in:
|
|
143
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
144
|
+
*/
|
|
145
|
+
export enum LogLevel {
|
|
146
|
+
TRACE = 5,
|
|
147
|
+
DEBUG = 10,
|
|
148
|
+
INFO = 11,
|
|
149
|
+
WARN = 12,
|
|
150
|
+
ERROR = 13
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Defined in:
|
|
154
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
155
|
+
*/
|
|
156
|
+
export interface QueryLogsRequest {
|
|
157
|
+
filters?: QueryLogsRequest.Filter[];
|
|
158
|
+
/**
|
|
159
|
+
* Options:
|
|
160
|
+
* - proto3_optional = true
|
|
161
|
+
*/
|
|
162
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
163
|
+
}
|
|
164
|
+
export namespace QueryLogsRequest {
|
|
165
|
+
/**
|
|
166
|
+
* Defined in:
|
|
167
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
168
|
+
*/
|
|
169
|
+
export enum MatchingOptions {
|
|
170
|
+
INCLUSIVE = 1,
|
|
171
|
+
EXPLICIT = 2
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Defined in:
|
|
175
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
176
|
+
*/
|
|
177
|
+
export interface Filter {
|
|
178
|
+
level: LogLevel;
|
|
179
|
+
/**
|
|
180
|
+
* Options:
|
|
181
|
+
* - proto3_optional = true
|
|
182
|
+
*/
|
|
183
|
+
pattern?: string;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Defined in:
|
|
188
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
189
|
+
*/
|
|
190
|
+
export interface LogEntry {
|
|
191
|
+
level: LogLevel;
|
|
192
|
+
message: string;
|
|
193
|
+
/**
|
|
194
|
+
* Options:
|
|
195
|
+
* - proto3_optional = true
|
|
196
|
+
*/
|
|
197
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
198
|
+
/**
|
|
199
|
+
* Options:
|
|
200
|
+
* - proto3_optional = true
|
|
201
|
+
*/
|
|
202
|
+
meta?: LogEntry.Meta;
|
|
203
|
+
/**
|
|
204
|
+
* Options:
|
|
205
|
+
* - proto3_optional = true
|
|
206
|
+
*/
|
|
207
|
+
error?: dxos_error.Error;
|
|
208
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
209
|
+
}
|
|
210
|
+
export namespace LogEntry {
|
|
211
|
+
/**
|
|
212
|
+
* Defined in:
|
|
213
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
214
|
+
*/
|
|
215
|
+
export interface Meta {
|
|
216
|
+
file: string;
|
|
217
|
+
line: number;
|
|
218
|
+
/**
|
|
219
|
+
* Options:
|
|
220
|
+
* - proto3_optional = true
|
|
221
|
+
*/
|
|
222
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
223
|
+
/**
|
|
224
|
+
* Options:
|
|
225
|
+
* - proto3_optional = true
|
|
226
|
+
*/
|
|
227
|
+
resourceId?: number;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Defined in:
|
|
232
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
233
|
+
*/
|
|
234
|
+
export interface LoggingService {
|
|
235
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
236
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
237
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
238
|
+
}
|
|
64
239
|
/**
|
|
65
240
|
* Defined in:
|
|
66
241
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -391,7 +566,6 @@ export enum SpaceState {
|
|
|
391
566
|
* {@link file://./../../../dxos/client/services.proto}
|
|
392
567
|
*/
|
|
393
568
|
export interface Space {
|
|
394
|
-
id: string;
|
|
395
569
|
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
396
570
|
state: SpaceState;
|
|
397
571
|
/**
|
|
@@ -968,178 +1142,3 @@ export interface NetworkService {
|
|
|
968
1142
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
969
1143
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
970
1144
|
}
|
|
971
|
-
/**
|
|
972
|
-
* Defined in:
|
|
973
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
974
|
-
*/
|
|
975
|
-
export interface Metrics {
|
|
976
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
977
|
-
values?: Metrics.KeyPair[];
|
|
978
|
-
}
|
|
979
|
-
export namespace Metrics {
|
|
980
|
-
/**
|
|
981
|
-
* Defined in:
|
|
982
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
983
|
-
*/
|
|
984
|
-
export interface KeyPair {
|
|
985
|
-
/**
|
|
986
|
-
* Options:
|
|
987
|
-
* - proto3_optional = true
|
|
988
|
-
*/
|
|
989
|
-
key?: string;
|
|
990
|
-
/**
|
|
991
|
-
* Options:
|
|
992
|
-
* - proto3_optional = true
|
|
993
|
-
*/
|
|
994
|
-
value?: dxos_value.Value;
|
|
995
|
-
/**
|
|
996
|
-
* Options:
|
|
997
|
-
* - proto3_optional = true
|
|
998
|
-
*/
|
|
999
|
-
stats?: dxos_value.Stats;
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
/**
|
|
1003
|
-
* Defined in:
|
|
1004
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1005
|
-
*/
|
|
1006
|
-
export interface ControlMetricsRequest {
|
|
1007
|
-
/**
|
|
1008
|
-
* Options:
|
|
1009
|
-
* - proto3_optional = true
|
|
1010
|
-
*/
|
|
1011
|
-
reset?: boolean;
|
|
1012
|
-
/**
|
|
1013
|
-
* Options:
|
|
1014
|
-
* - proto3_optional = true
|
|
1015
|
-
*/
|
|
1016
|
-
record?: boolean;
|
|
1017
|
-
}
|
|
1018
|
-
/**
|
|
1019
|
-
* Defined in:
|
|
1020
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1021
|
-
*/
|
|
1022
|
-
export interface ControlMetricsResponse {
|
|
1023
|
-
/**
|
|
1024
|
-
* Options:
|
|
1025
|
-
* - proto3_optional = true
|
|
1026
|
-
*/
|
|
1027
|
-
recording?: boolean;
|
|
1028
|
-
}
|
|
1029
|
-
/**
|
|
1030
|
-
* Defined in:
|
|
1031
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1032
|
-
*/
|
|
1033
|
-
export interface QueryMetricsRequest {
|
|
1034
|
-
/**
|
|
1035
|
-
* Options:
|
|
1036
|
-
* - proto3_optional = true
|
|
1037
|
-
*/
|
|
1038
|
-
interval?: number;
|
|
1039
|
-
}
|
|
1040
|
-
/**
|
|
1041
|
-
* Defined in:
|
|
1042
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1043
|
-
*/
|
|
1044
|
-
export interface QueryMetricsResponse {
|
|
1045
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1046
|
-
metrics: Metrics;
|
|
1047
|
-
}
|
|
1048
|
-
/**
|
|
1049
|
-
* Defined in:
|
|
1050
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1051
|
-
*/
|
|
1052
|
-
export enum LogLevel {
|
|
1053
|
-
TRACE = 5,
|
|
1054
|
-
DEBUG = 10,
|
|
1055
|
-
INFO = 11,
|
|
1056
|
-
WARN = 12,
|
|
1057
|
-
ERROR = 13
|
|
1058
|
-
}
|
|
1059
|
-
/**
|
|
1060
|
-
* Defined in:
|
|
1061
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1062
|
-
*/
|
|
1063
|
-
export interface QueryLogsRequest {
|
|
1064
|
-
filters?: QueryLogsRequest.Filter[];
|
|
1065
|
-
/**
|
|
1066
|
-
* Options:
|
|
1067
|
-
* - proto3_optional = true
|
|
1068
|
-
*/
|
|
1069
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
1070
|
-
}
|
|
1071
|
-
export namespace QueryLogsRequest {
|
|
1072
|
-
/**
|
|
1073
|
-
* Defined in:
|
|
1074
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1075
|
-
*/
|
|
1076
|
-
export enum MatchingOptions {
|
|
1077
|
-
INCLUSIVE = 1,
|
|
1078
|
-
EXPLICIT = 2
|
|
1079
|
-
}
|
|
1080
|
-
/**
|
|
1081
|
-
* Defined in:
|
|
1082
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1083
|
-
*/
|
|
1084
|
-
export interface Filter {
|
|
1085
|
-
level: LogLevel;
|
|
1086
|
-
/**
|
|
1087
|
-
* Options:
|
|
1088
|
-
* - proto3_optional = true
|
|
1089
|
-
*/
|
|
1090
|
-
pattern?: string;
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
/**
|
|
1094
|
-
* Defined in:
|
|
1095
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1096
|
-
*/
|
|
1097
|
-
export interface LogEntry {
|
|
1098
|
-
level: LogLevel;
|
|
1099
|
-
message: string;
|
|
1100
|
-
/**
|
|
1101
|
-
* Options:
|
|
1102
|
-
* - proto3_optional = true
|
|
1103
|
-
*/
|
|
1104
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1105
|
-
/**
|
|
1106
|
-
* Options:
|
|
1107
|
-
* - proto3_optional = true
|
|
1108
|
-
*/
|
|
1109
|
-
meta?: LogEntry.Meta;
|
|
1110
|
-
/**
|
|
1111
|
-
* Options:
|
|
1112
|
-
* - proto3_optional = true
|
|
1113
|
-
*/
|
|
1114
|
-
error?: dxos_error.Error;
|
|
1115
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1116
|
-
}
|
|
1117
|
-
export namespace LogEntry {
|
|
1118
|
-
/**
|
|
1119
|
-
* Defined in:
|
|
1120
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1121
|
-
*/
|
|
1122
|
-
export interface Meta {
|
|
1123
|
-
file: string;
|
|
1124
|
-
line: number;
|
|
1125
|
-
/**
|
|
1126
|
-
* Options:
|
|
1127
|
-
* - proto3_optional = true
|
|
1128
|
-
*/
|
|
1129
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1130
|
-
/**
|
|
1131
|
-
* Options:
|
|
1132
|
-
* - proto3_optional = true
|
|
1133
|
-
*/
|
|
1134
|
-
resourceId?: number;
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
/**
|
|
1138
|
-
* Defined in:
|
|
1139
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1140
|
-
*/
|
|
1141
|
-
export interface LoggingService {
|
|
1142
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1143
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1144
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1145
|
-
}
|