@dxos/protocols 0.8.2 → 0.8.3-main.672df60

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.
@@ -257,184 +257,6 @@ export namespace Invitation {
257
257
  EXPIRED = 9
258
258
  }
259
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
260
  /**
439
261
  * Defined in:
440
262
  * {@link file://./../../../dxos/client/services.proto}
@@ -1429,3 +1251,181 @@ export namespace QueryAgentStatusResponse {
1429
1251
  NOT_FOUND = 3
1430
1252
  }
1431
1253
  }
1254
+ /**
1255
+ * Defined in:
1256
+ * {@link file://./../../../dxos/client/logging.proto}
1257
+ */
1258
+ export interface Metrics {
1259
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1260
+ values?: Metrics.KeyPair[];
1261
+ }
1262
+ export namespace Metrics {
1263
+ /**
1264
+ * Defined in:
1265
+ * {@link file://./../../../dxos/client/logging.proto}
1266
+ */
1267
+ export interface KeyPair {
1268
+ /**
1269
+ * Options:
1270
+ * - proto3_optional = true
1271
+ */
1272
+ key?: string;
1273
+ /**
1274
+ * Options:
1275
+ * - proto3_optional = true
1276
+ */
1277
+ value?: dxos_value.Value;
1278
+ /**
1279
+ * Options:
1280
+ * - proto3_optional = true
1281
+ */
1282
+ stats?: dxos_value.Stats;
1283
+ }
1284
+ }
1285
+ /**
1286
+ * Defined in:
1287
+ * {@link file://./../../../dxos/client/logging.proto}
1288
+ */
1289
+ export interface ControlMetricsRequest {
1290
+ /**
1291
+ * Options:
1292
+ * - proto3_optional = true
1293
+ */
1294
+ reset?: boolean;
1295
+ /**
1296
+ * Options:
1297
+ * - proto3_optional = true
1298
+ */
1299
+ record?: boolean;
1300
+ }
1301
+ /**
1302
+ * Defined in:
1303
+ * {@link file://./../../../dxos/client/logging.proto}
1304
+ */
1305
+ export interface ControlMetricsResponse {
1306
+ /**
1307
+ * Options:
1308
+ * - proto3_optional = true
1309
+ */
1310
+ recording?: boolean;
1311
+ }
1312
+ /**
1313
+ * Defined in:
1314
+ * {@link file://./../../../dxos/client/logging.proto}
1315
+ */
1316
+ export interface QueryMetricsRequest {
1317
+ /**
1318
+ * Options:
1319
+ * - proto3_optional = true
1320
+ */
1321
+ interval?: number;
1322
+ }
1323
+ /**
1324
+ * Defined in:
1325
+ * {@link file://./../../../dxos/client/logging.proto}
1326
+ */
1327
+ export interface QueryMetricsResponse {
1328
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1329
+ metrics: Metrics;
1330
+ }
1331
+ /**
1332
+ * Defined in:
1333
+ * {@link file://./../../../dxos/client/logging.proto}
1334
+ */
1335
+ export enum LogLevel {
1336
+ NONE = 0,
1337
+ TRACE = 5,
1338
+ DEBUG = 10,
1339
+ VERBOSE = 11,
1340
+ INFO = 12,
1341
+ WARN = 13,
1342
+ ERROR = 14
1343
+ }
1344
+ /**
1345
+ * Defined in:
1346
+ * {@link file://./../../../dxos/client/logging.proto}
1347
+ */
1348
+ export interface QueryLogsRequest {
1349
+ filters?: QueryLogsRequest.Filter[];
1350
+ /**
1351
+ * Options:
1352
+ * - proto3_optional = true
1353
+ */
1354
+ options?: QueryLogsRequest.MatchingOptions;
1355
+ }
1356
+ export namespace QueryLogsRequest {
1357
+ /**
1358
+ * Defined in:
1359
+ * {@link file://./../../../dxos/client/logging.proto}
1360
+ */
1361
+ export enum MatchingOptions {
1362
+ NONE = 0,
1363
+ INCLUSIVE = 1,
1364
+ EXPLICIT = 2
1365
+ }
1366
+ /**
1367
+ * Defined in:
1368
+ * {@link file://./../../../dxos/client/logging.proto}
1369
+ */
1370
+ export interface Filter {
1371
+ level: LogLevel;
1372
+ /**
1373
+ * Options:
1374
+ * - proto3_optional = true
1375
+ */
1376
+ pattern?: string;
1377
+ }
1378
+ }
1379
+ /**
1380
+ * Defined in:
1381
+ * {@link file://./../../../dxos/client/logging.proto}
1382
+ */
1383
+ export interface LogEntry {
1384
+ level: LogLevel;
1385
+ message: string;
1386
+ /**
1387
+ * Options:
1388
+ * - proto3_optional = true
1389
+ */
1390
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1391
+ /**
1392
+ * Options:
1393
+ * - proto3_optional = true
1394
+ */
1395
+ meta?: LogEntry.Meta;
1396
+ /**
1397
+ * Options:
1398
+ * - proto3_optional = true
1399
+ */
1400
+ error?: dxos_error.Error;
1401
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1402
+ }
1403
+ export namespace LogEntry {
1404
+ /**
1405
+ * Defined in:
1406
+ * {@link file://./../../../dxos/client/logging.proto}
1407
+ */
1408
+ export interface Meta {
1409
+ file: string;
1410
+ line: number;
1411
+ /**
1412
+ * Options:
1413
+ * - proto3_optional = true
1414
+ */
1415
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1416
+ /**
1417
+ * Options:
1418
+ * - proto3_optional = true
1419
+ */
1420
+ resourceId?: number;
1421
+ }
1422
+ }
1423
+ /**
1424
+ * Defined in:
1425
+ * {@link file://./../../../dxos/client/logging.proto}
1426
+ */
1427
+ export interface LoggingService {
1428
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1429
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1430
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1431
+ }