@dxos/protocols 0.8.2-main.36232bc → 0.8.2-main.7503643
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/edge.d.ts +7 -0
- package/dist/cjs/src/edge.d.ts.map +1 -1
- package/dist/cjs/src/edge.js +9 -1
- package/dist/cjs/src/edge.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +178 -178
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +28 -28
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/edge.d.ts +7 -0
- package/dist/esm/src/edge.d.ts.map +1 -1
- package/dist/esm/src/edge.js +8 -0
- package/dist/esm/src/edge.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +178 -178
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +27 -27
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/package.json +8 -8
- package/src/edge.ts +8 -0
- package/src/proto/gen/dxos/client/services.ts +178 -178
|
@@ -65,184 +65,6 @@ import * as dxos_value from "../value.js";
|
|
|
65
65
|
import * as example_testing_data from "../../example/testing/data.js";
|
|
66
66
|
import * as example_testing_rpc from "../../example/testing/rpc.js";
|
|
67
67
|
import * as google_protobuf from "../../google/protobuf.js";
|
|
68
|
-
/**
|
|
69
|
-
* Defined in:
|
|
70
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
71
|
-
*/
|
|
72
|
-
export interface Metrics {
|
|
73
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
74
|
-
values?: Metrics.KeyPair[];
|
|
75
|
-
}
|
|
76
|
-
export namespace Metrics {
|
|
77
|
-
/**
|
|
78
|
-
* Defined in:
|
|
79
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
80
|
-
*/
|
|
81
|
-
export interface KeyPair {
|
|
82
|
-
/**
|
|
83
|
-
* Options:
|
|
84
|
-
* - proto3_optional = true
|
|
85
|
-
*/
|
|
86
|
-
key?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Options:
|
|
89
|
-
* - proto3_optional = true
|
|
90
|
-
*/
|
|
91
|
-
value?: dxos_value.Value;
|
|
92
|
-
/**
|
|
93
|
-
* Options:
|
|
94
|
-
* - proto3_optional = true
|
|
95
|
-
*/
|
|
96
|
-
stats?: dxos_value.Stats;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Defined in:
|
|
101
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
102
|
-
*/
|
|
103
|
-
export interface ControlMetricsRequest {
|
|
104
|
-
/**
|
|
105
|
-
* Options:
|
|
106
|
-
* - proto3_optional = true
|
|
107
|
-
*/
|
|
108
|
-
reset?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Options:
|
|
111
|
-
* - proto3_optional = true
|
|
112
|
-
*/
|
|
113
|
-
record?: boolean;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Defined in:
|
|
117
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
118
|
-
*/
|
|
119
|
-
export interface ControlMetricsResponse {
|
|
120
|
-
/**
|
|
121
|
-
* Options:
|
|
122
|
-
* - proto3_optional = true
|
|
123
|
-
*/
|
|
124
|
-
recording?: boolean;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Defined in:
|
|
128
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
129
|
-
*/
|
|
130
|
-
export interface QueryMetricsRequest {
|
|
131
|
-
/**
|
|
132
|
-
* Options:
|
|
133
|
-
* - proto3_optional = true
|
|
134
|
-
*/
|
|
135
|
-
interval?: number;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Defined in:
|
|
139
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
140
|
-
*/
|
|
141
|
-
export interface QueryMetricsResponse {
|
|
142
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
143
|
-
metrics: Metrics;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Defined in:
|
|
147
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
148
|
-
*/
|
|
149
|
-
export enum LogLevel {
|
|
150
|
-
NONE = 0,
|
|
151
|
-
TRACE = 5,
|
|
152
|
-
DEBUG = 10,
|
|
153
|
-
VERBOSE = 11,
|
|
154
|
-
INFO = 12,
|
|
155
|
-
WARN = 13,
|
|
156
|
-
ERROR = 14
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Defined in:
|
|
160
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
161
|
-
*/
|
|
162
|
-
export interface QueryLogsRequest {
|
|
163
|
-
filters?: QueryLogsRequest.Filter[];
|
|
164
|
-
/**
|
|
165
|
-
* Options:
|
|
166
|
-
* - proto3_optional = true
|
|
167
|
-
*/
|
|
168
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
169
|
-
}
|
|
170
|
-
export namespace QueryLogsRequest {
|
|
171
|
-
/**
|
|
172
|
-
* Defined in:
|
|
173
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
174
|
-
*/
|
|
175
|
-
export enum MatchingOptions {
|
|
176
|
-
NONE = 0,
|
|
177
|
-
INCLUSIVE = 1,
|
|
178
|
-
EXPLICIT = 2
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Defined in:
|
|
182
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
183
|
-
*/
|
|
184
|
-
export interface Filter {
|
|
185
|
-
level: LogLevel;
|
|
186
|
-
/**
|
|
187
|
-
* Options:
|
|
188
|
-
* - proto3_optional = true
|
|
189
|
-
*/
|
|
190
|
-
pattern?: string;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Defined in:
|
|
195
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
196
|
-
*/
|
|
197
|
-
export interface LogEntry {
|
|
198
|
-
level: LogLevel;
|
|
199
|
-
message: string;
|
|
200
|
-
/**
|
|
201
|
-
* Options:
|
|
202
|
-
* - proto3_optional = true
|
|
203
|
-
*/
|
|
204
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
205
|
-
/**
|
|
206
|
-
* Options:
|
|
207
|
-
* - proto3_optional = true
|
|
208
|
-
*/
|
|
209
|
-
meta?: LogEntry.Meta;
|
|
210
|
-
/**
|
|
211
|
-
* Options:
|
|
212
|
-
* - proto3_optional = true
|
|
213
|
-
*/
|
|
214
|
-
error?: dxos_error.Error;
|
|
215
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
216
|
-
}
|
|
217
|
-
export namespace LogEntry {
|
|
218
|
-
/**
|
|
219
|
-
* Defined in:
|
|
220
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
221
|
-
*/
|
|
222
|
-
export interface Meta {
|
|
223
|
-
file: string;
|
|
224
|
-
line: number;
|
|
225
|
-
/**
|
|
226
|
-
* Options:
|
|
227
|
-
* - proto3_optional = true
|
|
228
|
-
*/
|
|
229
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
230
|
-
/**
|
|
231
|
-
* Options:
|
|
232
|
-
* - proto3_optional = true
|
|
233
|
-
*/
|
|
234
|
-
resourceId?: number;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Defined in:
|
|
239
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
240
|
-
*/
|
|
241
|
-
export interface LoggingService {
|
|
242
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
243
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
244
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
245
|
-
}
|
|
246
68
|
/**
|
|
247
69
|
* Defined in:
|
|
248
70
|
* {@link file://./../../../dxos/client/invitation.proto}
|
|
@@ -435,6 +257,184 @@ export namespace Invitation {
|
|
|
435
257
|
EXPIRED = 9
|
|
436
258
|
}
|
|
437
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* Defined in:
|
|
262
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
263
|
+
*/
|
|
264
|
+
export interface Metrics {
|
|
265
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
266
|
+
values?: Metrics.KeyPair[];
|
|
267
|
+
}
|
|
268
|
+
export namespace Metrics {
|
|
269
|
+
/**
|
|
270
|
+
* Defined in:
|
|
271
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
272
|
+
*/
|
|
273
|
+
export interface KeyPair {
|
|
274
|
+
/**
|
|
275
|
+
* Options:
|
|
276
|
+
* - proto3_optional = true
|
|
277
|
+
*/
|
|
278
|
+
key?: string;
|
|
279
|
+
/**
|
|
280
|
+
* Options:
|
|
281
|
+
* - proto3_optional = true
|
|
282
|
+
*/
|
|
283
|
+
value?: dxos_value.Value;
|
|
284
|
+
/**
|
|
285
|
+
* Options:
|
|
286
|
+
* - proto3_optional = true
|
|
287
|
+
*/
|
|
288
|
+
stats?: dxos_value.Stats;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Defined in:
|
|
293
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
294
|
+
*/
|
|
295
|
+
export interface ControlMetricsRequest {
|
|
296
|
+
/**
|
|
297
|
+
* Options:
|
|
298
|
+
* - proto3_optional = true
|
|
299
|
+
*/
|
|
300
|
+
reset?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* Options:
|
|
303
|
+
* - proto3_optional = true
|
|
304
|
+
*/
|
|
305
|
+
record?: boolean;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Defined in:
|
|
309
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
310
|
+
*/
|
|
311
|
+
export interface ControlMetricsResponse {
|
|
312
|
+
/**
|
|
313
|
+
* Options:
|
|
314
|
+
* - proto3_optional = true
|
|
315
|
+
*/
|
|
316
|
+
recording?: boolean;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Defined in:
|
|
320
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
321
|
+
*/
|
|
322
|
+
export interface QueryMetricsRequest {
|
|
323
|
+
/**
|
|
324
|
+
* Options:
|
|
325
|
+
* - proto3_optional = true
|
|
326
|
+
*/
|
|
327
|
+
interval?: number;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Defined in:
|
|
331
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
332
|
+
*/
|
|
333
|
+
export interface QueryMetricsResponse {
|
|
334
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
335
|
+
metrics: Metrics;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Defined in:
|
|
339
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
340
|
+
*/
|
|
341
|
+
export enum LogLevel {
|
|
342
|
+
NONE = 0,
|
|
343
|
+
TRACE = 5,
|
|
344
|
+
DEBUG = 10,
|
|
345
|
+
VERBOSE = 11,
|
|
346
|
+
INFO = 12,
|
|
347
|
+
WARN = 13,
|
|
348
|
+
ERROR = 14
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Defined in:
|
|
352
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
353
|
+
*/
|
|
354
|
+
export interface QueryLogsRequest {
|
|
355
|
+
filters?: QueryLogsRequest.Filter[];
|
|
356
|
+
/**
|
|
357
|
+
* Options:
|
|
358
|
+
* - proto3_optional = true
|
|
359
|
+
*/
|
|
360
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
361
|
+
}
|
|
362
|
+
export namespace QueryLogsRequest {
|
|
363
|
+
/**
|
|
364
|
+
* Defined in:
|
|
365
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
366
|
+
*/
|
|
367
|
+
export enum MatchingOptions {
|
|
368
|
+
NONE = 0,
|
|
369
|
+
INCLUSIVE = 1,
|
|
370
|
+
EXPLICIT = 2
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Defined in:
|
|
374
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
375
|
+
*/
|
|
376
|
+
export interface Filter {
|
|
377
|
+
level: LogLevel;
|
|
378
|
+
/**
|
|
379
|
+
* Options:
|
|
380
|
+
* - proto3_optional = true
|
|
381
|
+
*/
|
|
382
|
+
pattern?: string;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Defined in:
|
|
387
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
388
|
+
*/
|
|
389
|
+
export interface LogEntry {
|
|
390
|
+
level: LogLevel;
|
|
391
|
+
message: string;
|
|
392
|
+
/**
|
|
393
|
+
* Options:
|
|
394
|
+
* - proto3_optional = true
|
|
395
|
+
*/
|
|
396
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
397
|
+
/**
|
|
398
|
+
* Options:
|
|
399
|
+
* - proto3_optional = true
|
|
400
|
+
*/
|
|
401
|
+
meta?: LogEntry.Meta;
|
|
402
|
+
/**
|
|
403
|
+
* Options:
|
|
404
|
+
* - proto3_optional = true
|
|
405
|
+
*/
|
|
406
|
+
error?: dxos_error.Error;
|
|
407
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
408
|
+
}
|
|
409
|
+
export namespace LogEntry {
|
|
410
|
+
/**
|
|
411
|
+
* Defined in:
|
|
412
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
413
|
+
*/
|
|
414
|
+
export interface Meta {
|
|
415
|
+
file: string;
|
|
416
|
+
line: number;
|
|
417
|
+
/**
|
|
418
|
+
* Options:
|
|
419
|
+
* - proto3_optional = true
|
|
420
|
+
*/
|
|
421
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
422
|
+
/**
|
|
423
|
+
* Options:
|
|
424
|
+
* - proto3_optional = true
|
|
425
|
+
*/
|
|
426
|
+
resourceId?: number;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Defined in:
|
|
431
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
432
|
+
*/
|
|
433
|
+
export interface LoggingService {
|
|
434
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
435
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
436
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
437
|
+
}
|
|
438
438
|
/**
|
|
439
439
|
* Defined in:
|
|
440
440
|
* {@link file://./../../../dxos/client/services.proto}
|