@dxos/protocols 0.6.11 → 0.6.12-main.5cc132e

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 (50) hide show
  1. package/dist/cjs/src/buf/proto/gen/dxos/echo/filter_pb.d.ts +7 -1
  2. package/dist/cjs/src/buf/proto/gen/dxos/echo/filter_pb.d.ts.map +1 -1
  3. package/dist/cjs/src/buf/proto/gen/dxos/echo/filter_pb.js +1 -1
  4. package/dist/cjs/src/buf/proto/gen/dxos/echo/filter_pb.js.map +1 -1
  5. package/dist/cjs/src/codec.test.js +5 -6
  6. package/dist/cjs/src/codec.test.js.map +1 -1
  7. package/dist/cjs/src/errors/errors.test.js +4 -33
  8. package/dist/cjs/src/errors/errors.test.js.map +1 -1
  9. package/dist/cjs/src/indexing.test.js +11 -12
  10. package/dist/cjs/src/indexing.test.js.map +1 -1
  11. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +177 -177
  12. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/client/services.js +27 -27
  14. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  15. package/dist/cjs/src/proto/gen/dxos/echo/filter.d.ts +7 -0
  16. package/dist/cjs/src/proto/gen/dxos/echo/filter.d.ts.map +1 -1
  17. package/dist/cjs/src/proto/gen/dxos/echo/filter.js.map +1 -1
  18. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  19. package/dist/cjs/src/proto/gen/index.js +1 -1
  20. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  21. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  22. package/dist/esm/src/buf/proto/gen/dxos/echo/filter_pb.d.ts +7 -1
  23. package/dist/esm/src/buf/proto/gen/dxos/echo/filter_pb.d.ts.map +1 -1
  24. package/dist/esm/src/buf/proto/gen/dxos/echo/filter_pb.js +1 -1
  25. package/dist/esm/src/buf/proto/gen/dxos/echo/filter_pb.js.map +1 -1
  26. package/dist/esm/src/codec.test.js +1 -2
  27. package/dist/esm/src/codec.test.js.map +1 -1
  28. package/dist/esm/src/errors/errors.test.js +2 -5
  29. package/dist/esm/src/errors/errors.test.js.map +1 -1
  30. package/dist/esm/src/indexing.test.js +1 -2
  31. package/dist/esm/src/indexing.test.js.map +1 -1
  32. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +177 -177
  33. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  34. package/dist/esm/src/proto/gen/dxos/client/services.js +26 -26
  35. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  36. package/dist/esm/src/proto/gen/dxos/echo/filter.d.ts +7 -0
  37. package/dist/esm/src/proto/gen/dxos/echo/filter.d.ts.map +1 -1
  38. package/dist/esm/src/proto/gen/dxos/echo/filter.js.map +1 -1
  39. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  40. package/dist/esm/src/proto/gen/index.js +1 -1
  41. package/dist/esm/src/proto/gen/index.js.map +1 -1
  42. package/package.json +7 -8
  43. package/src/buf/proto/gen/dxos/echo/filter_pb.ts +9 -2
  44. package/src/codec.test.ts +1 -3
  45. package/src/errors/errors.test.ts +2 -7
  46. package/src/indexing.test.ts +1 -3
  47. package/src/proto/dxos/echo/filter.proto +4 -1
  48. package/src/proto/gen/dxos/client/services.ts +177 -177
  49. package/src/proto/gen/dxos/echo/filter.ts +7 -0
  50. 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;AAiEhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAokB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4ghHAA4ghH,CAAC,CAAC,CAAC;AACrkhH,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;AAiEhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAokB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,yohHAAyohH,CAAC,CAAC,CAAC;AAClshH,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.6.11",
3
+ "version": "0.6.12-main.5cc132e",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -71,16 +71,15 @@
71
71
  "dependencies": {
72
72
  "@bufbuild/protobuf": "^2.0.0",
73
73
  "@effect/schema": "^0.67.16",
74
- "@dxos/keys": "0.6.11",
75
- "@dxos/invariant": "0.6.11",
76
- "@dxos/codec-protobuf": "0.6.11",
77
- "@dxos/timeframe": "0.6.11",
78
- "@dxos/util": "0.6.11"
74
+ "@dxos/codec-protobuf": "0.6.12-main.5cc132e",
75
+ "@dxos/invariant": "0.6.12-main.5cc132e",
76
+ "@dxos/keys": "0.6.12-main.5cc132e",
77
+ "@dxos/timeframe": "0.6.12-main.5cc132e",
78
+ "@dxos/util": "0.6.12-main.5cc132e"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@bufbuild/buf": "^1.35.0",
82
- "@bufbuild/protoc-gen-es": "^2.0.0",
83
- "glob": "^7.2.3"
82
+ "@bufbuild/protoc-gen-es": "^2.0.0"
84
83
  },
85
84
  "publishConfig": {
86
85
  "access": "public"
@@ -19,7 +19,7 @@ import type { JsonObject, Message } from "@bufbuild/protobuf";
19
19
  * Describes the file dxos/echo/filter.proto.
20
20
  */
21
21
  export const file_dxos_echo_filter: GenFile = /*@__PURE__*/
22
- fileDesc("ChZkeG9zL2VjaG8vZmlsdGVyLnByb3RvEhBkeG9zLmVjaG8uZmlsdGVyIoUDCgxRdWVyeU9wdGlvbnMSEAoIc3BhY2VJZHMYBSADKAkSRgoHZGVsZXRlZBgBIAEoDjIwLmR4b3MuZWNoby5maWx0ZXIuUXVlcnlPcHRpb25zLlNob3dEZWxldGVkT3B0aW9uSACIAQESRwoNZGF0YV9sb2NhdGlvbhgEIAEoDjIrLmR4b3MuZWNoby5maWx0ZXIuUXVlcnlPcHRpb25zLkRhdGFMb2NhdGlvbkgBiAEBEiQKBnNwYWNlcxgDIAMoCzIULmR4b3Mua2V5cy5QdWJsaWNLZXkSDgoGbW9kZWxzGAIgAygJIk4KEVNob3dEZWxldGVkT3B0aW9uEhAKDEhJREVfREVMRVRFRBAAEhAKDFNIT1dfREVMRVRFRBABEhUKEVNIT1dfREVMRVRFRF9PTkxZEAIiLgoMRGF0YUxvY2F0aW9uEgcKA0FMTBAAEgkKBUxPQ0FMEAESCgoGUkVNT1RFEAJCCgoIX2RlbGV0ZWRCEAoOX2RhdGFfbG9jYXRpb24i4wIKBkZpbHRlchIwCgpwcm9wZXJ0aWVzGAEgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdEgAiAEBEjYKBHR5cGUYAiABKAsyIy5keG9zLmVjaG8ubW9kZWwuZG9jdW1lbnQuUmVmZXJlbmNlSAGIAQESEgoKb2JqZWN0X2lkcxgIIAMoCRIRCgR0ZXh0GAMgASgJSAKIAQESEAoDbm90GAQgASgISAOIAQESJQoDYW5kGAUgAygLMhguZHhvcy5lY2hvLmZpbHRlci5GaWx0ZXISJAoCb3IYBiADKAsyGC5keG9zLmVjaG8uZmlsdGVyLkZpbHRlchI0CgdvcHRpb25zGAcgASgLMh4uZHhvcy5lY2hvLmZpbHRlci5RdWVyeU9wdGlvbnNIBIgBAUINCgtfcHJvcGVydGllc0IHCgVfdHlwZUIHCgVfdGV4dEIGCgRfbm90QgoKCF9vcHRpb25zYgZwcm90bzM", [file_google_protobuf_struct, file_dxos_keys, file_dxos_echo_model_document]);
22
+ fileDesc("ChZkeG9zL2VjaG8vZmlsdGVyLnByb3RvEhBkeG9zLmVjaG8uZmlsdGVyIsADCgxRdWVyeU9wdGlvbnMSEAoIc3BhY2VJZHMYBSADKAkSRgoHZGVsZXRlZBgBIAEoDjIwLmR4b3MuZWNoby5maWx0ZXIuUXVlcnlPcHRpb25zLlNob3dEZWxldGVkT3B0aW9uSACIAQESRwoNZGF0YV9sb2NhdGlvbhgEIAEoDjIrLmR4b3MuZWNoby5maWx0ZXIuUXVlcnlPcHRpb25zLkRhdGFMb2NhdGlvbkgBiAEBEi0KB2luY2x1ZGUYAyABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0SAKIAQESJAoGc3BhY2VzGAYgAygLMhQuZHhvcy5rZXlzLlB1YmxpY0tleRIOCgZtb2RlbHMYAiADKAkiTgoRU2hvd0RlbGV0ZWRPcHRpb24SEAoMSElERV9ERUxFVEVEEAASEAoMU0hPV19ERUxFVEVEEAESFQoRU0hPV19ERUxFVEVEX09OTFkQAiIuCgxEYXRhTG9jYXRpb24SBwoDQUxMEAASCQoFTE9DQUwQARIKCgZSRU1PVEUQAkIKCghfZGVsZXRlZEIQCg5fZGF0YV9sb2NhdGlvbkIKCghfaW5jbHVkZSLjAgoGRmlsdGVyEjAKCnByb3BlcnRpZXMYASABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0SACIAQESNgoEdHlwZRgCIAEoCzIjLmR4b3MuZWNoby5tb2RlbC5kb2N1bWVudC5SZWZlcmVuY2VIAYgBARISCgpvYmplY3RfaWRzGAggAygJEhEKBHRleHQYAyABKAlIAogBARIQCgNub3QYBCABKAhIA4gBARIlCgNhbmQYBSADKAsyGC5keG9zLmVjaG8uZmlsdGVyLkZpbHRlchIkCgJvchgGIAMoCzIYLmR4b3MuZWNoby5maWx0ZXIuRmlsdGVyEjQKB29wdGlvbnMYByABKAsyHi5keG9zLmVjaG8uZmlsdGVyLlF1ZXJ5T3B0aW9uc0gEiAEBQg0KC19wcm9wZXJ0aWVzQgcKBV90eXBlQgcKBV90ZXh0QgYKBF9ub3RCCgoIX29wdGlvbnNiBnByb3RvMw", [file_google_protobuf_struct, file_dxos_keys, file_dxos_echo_model_document]);
23
23
 
24
24
  /**
25
25
  * @generated from message dxos.echo.filter.QueryOptions
@@ -49,12 +49,19 @@ export type QueryOptions = Message<"dxos.echo.filter.QueryOptions"> & {
49
49
  */
50
50
  dataLocation?: QueryOptions_DataLocation;
51
51
 
52
+ /**
53
+ * / References to inline when querying.
54
+ *
55
+ * @generated from field: optional google.protobuf.Struct include = 3;
56
+ */
57
+ include?: JsonObject;
58
+
52
59
  /**
53
60
  * *
54
61
  * Query only in specific spaces.
55
62
  * @deprecated Use `spaceIds` instead.
56
63
  *
57
- * @generated from field: repeated dxos.keys.PublicKey spaces = 3;
64
+ * @generated from field: repeated dxos.keys.PublicKey spaces = 6;
58
65
  */
59
66
  spaces: PublicKey[];
60
67
 
package/src/codec.test.ts CHANGED
@@ -2,9 +2,7 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import { expect } from 'chai';
6
-
7
- import { describe, test } from '@dxos/test';
5
+ import { describe, expect, test } from 'vitest';
8
6
 
9
7
  import { schema } from './proto';
10
8
 
@@ -2,21 +2,16 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import chai, { expect } from 'chai';
6
- import chaiAsPromised from 'chai-as-promised';
7
-
8
- import { describe, test } from '@dxos/test';
5
+ import { describe, expect, test } from 'vitest';
9
6
 
10
7
  import { ApiError } from './base-errors';
11
8
 
12
- chai.use(chaiAsPromised);
13
-
14
9
  describe('Errors', () => {
15
10
  test('test', async () => {
16
11
  const runTest = async () => {
17
12
  throw new ApiError('Test error');
18
13
  };
19
14
 
20
- await expect(runTest()).to.be.rejectedWith('Test error');
15
+ await expect(runTest()).rejects.toThrowError('Test error');
21
16
  });
22
17
  });
@@ -2,9 +2,7 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import { expect } from 'chai';
6
-
7
- import { describe, test } from '@dxos/test';
5
+ import { describe, expect, test } from 'vitest';
8
6
 
9
7
  import { ObjectPointerVersion, objectPointerCodec } from './indexing';
10
8
 
@@ -44,6 +44,9 @@ message QueryOptions {
44
44
  */
45
45
  optional DataLocation data_location = 4;
46
46
 
47
+ /// References to inline when querying.
48
+ optional google.protobuf.Struct include = 3;
49
+
47
50
  //
48
51
  // Deprecated
49
52
  //
@@ -52,7 +55,7 @@ message QueryOptions {
52
55
  * Query only in specific spaces.
53
56
  * @deprecated Use `spaceIds` instead.
54
57
  */
55
- repeated dxos.keys.PublicKey spaces = 3;
58
+ repeated dxos.keys.PublicKey spaces = 6;
56
59
 
57
60
  /**
58
61
  * Filter by model.
@@ -248,6 +248,183 @@ export namespace Invitation {
248
248
  EXPIRED = 9
249
249
  }
250
250
  }
251
+ /**
252
+ * Defined in:
253
+ * {@link file://./../../../dxos/client/logging.proto}
254
+ */
255
+ export interface Metrics {
256
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
257
+ values?: Metrics.KeyPair[];
258
+ }
259
+ export namespace Metrics {
260
+ /**
261
+ * Defined in:
262
+ * {@link file://./../../../dxos/client/logging.proto}
263
+ */
264
+ export interface KeyPair {
265
+ /**
266
+ * Options:
267
+ * - proto3_optional = true
268
+ */
269
+ key?: string;
270
+ /**
271
+ * Options:
272
+ * - proto3_optional = true
273
+ */
274
+ value?: dxos_value.Value;
275
+ /**
276
+ * Options:
277
+ * - proto3_optional = true
278
+ */
279
+ stats?: dxos_value.Stats;
280
+ }
281
+ }
282
+ /**
283
+ * Defined in:
284
+ * {@link file://./../../../dxos/client/logging.proto}
285
+ */
286
+ export interface ControlMetricsRequest {
287
+ /**
288
+ * Options:
289
+ * - proto3_optional = true
290
+ */
291
+ reset?: boolean;
292
+ /**
293
+ * Options:
294
+ * - proto3_optional = true
295
+ */
296
+ record?: boolean;
297
+ }
298
+ /**
299
+ * Defined in:
300
+ * {@link file://./../../../dxos/client/logging.proto}
301
+ */
302
+ export interface ControlMetricsResponse {
303
+ /**
304
+ * Options:
305
+ * - proto3_optional = true
306
+ */
307
+ recording?: boolean;
308
+ }
309
+ /**
310
+ * Defined in:
311
+ * {@link file://./../../../dxos/client/logging.proto}
312
+ */
313
+ export interface QueryMetricsRequest {
314
+ /**
315
+ * Options:
316
+ * - proto3_optional = true
317
+ */
318
+ interval?: number;
319
+ }
320
+ /**
321
+ * Defined in:
322
+ * {@link file://./../../../dxos/client/logging.proto}
323
+ */
324
+ export interface QueryMetricsResponse {
325
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
326
+ metrics: Metrics;
327
+ }
328
+ /**
329
+ * Defined in:
330
+ * {@link file://./../../../dxos/client/logging.proto}
331
+ */
332
+ export enum LogLevel {
333
+ NONE = 0,
334
+ TRACE = 5,
335
+ DEBUG = 10,
336
+ INFO = 11,
337
+ WARN = 12,
338
+ ERROR = 13
339
+ }
340
+ /**
341
+ * Defined in:
342
+ * {@link file://./../../../dxos/client/logging.proto}
343
+ */
344
+ export interface QueryLogsRequest {
345
+ filters?: QueryLogsRequest.Filter[];
346
+ /**
347
+ * Options:
348
+ * - proto3_optional = true
349
+ */
350
+ options?: QueryLogsRequest.MatchingOptions;
351
+ }
352
+ export namespace QueryLogsRequest {
353
+ /**
354
+ * Defined in:
355
+ * {@link file://./../../../dxos/client/logging.proto}
356
+ */
357
+ export enum MatchingOptions {
358
+ NONE = 0,
359
+ INCLUSIVE = 1,
360
+ EXPLICIT = 2
361
+ }
362
+ /**
363
+ * Defined in:
364
+ * {@link file://./../../../dxos/client/logging.proto}
365
+ */
366
+ export interface Filter {
367
+ level: LogLevel;
368
+ /**
369
+ * Options:
370
+ * - proto3_optional = true
371
+ */
372
+ pattern?: string;
373
+ }
374
+ }
375
+ /**
376
+ * Defined in:
377
+ * {@link file://./../../../dxos/client/logging.proto}
378
+ */
379
+ export interface LogEntry {
380
+ level: LogLevel;
381
+ message: string;
382
+ /**
383
+ * Options:
384
+ * - proto3_optional = true
385
+ */
386
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
387
+ /**
388
+ * Options:
389
+ * - proto3_optional = true
390
+ */
391
+ meta?: LogEntry.Meta;
392
+ /**
393
+ * Options:
394
+ * - proto3_optional = true
395
+ */
396
+ error?: dxos_error.Error;
397
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
398
+ }
399
+ export namespace LogEntry {
400
+ /**
401
+ * Defined in:
402
+ * {@link file://./../../../dxos/client/logging.proto}
403
+ */
404
+ export interface Meta {
405
+ file: string;
406
+ line: number;
407
+ /**
408
+ * Options:
409
+ * - proto3_optional = true
410
+ */
411
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
412
+ /**
413
+ * Options:
414
+ * - proto3_optional = true
415
+ */
416
+ resourceId?: number;
417
+ }
418
+ }
419
+ /**
420
+ * Defined in:
421
+ * {@link file://./../../../dxos/client/logging.proto}
422
+ */
423
+ export interface LoggingService {
424
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
425
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
426
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
427
+ }
251
428
  /**
252
429
  * Defined in:
253
430
  * {@link file://./../../../dxos/client/services.proto}
@@ -1053,180 +1230,3 @@ export interface NetworkService {
1053
1230
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
1054
1231
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
1055
1232
  }
1056
- /**
1057
- * Defined in:
1058
- * {@link file://./../../../dxos/client/logging.proto}
1059
- */
1060
- export interface Metrics {
1061
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1062
- values?: Metrics.KeyPair[];
1063
- }
1064
- export namespace Metrics {
1065
- /**
1066
- * Defined in:
1067
- * {@link file://./../../../dxos/client/logging.proto}
1068
- */
1069
- export interface KeyPair {
1070
- /**
1071
- * Options:
1072
- * - proto3_optional = true
1073
- */
1074
- key?: string;
1075
- /**
1076
- * Options:
1077
- * - proto3_optional = true
1078
- */
1079
- value?: dxos_value.Value;
1080
- /**
1081
- * Options:
1082
- * - proto3_optional = true
1083
- */
1084
- stats?: dxos_value.Stats;
1085
- }
1086
- }
1087
- /**
1088
- * Defined in:
1089
- * {@link file://./../../../dxos/client/logging.proto}
1090
- */
1091
- export interface ControlMetricsRequest {
1092
- /**
1093
- * Options:
1094
- * - proto3_optional = true
1095
- */
1096
- reset?: boolean;
1097
- /**
1098
- * Options:
1099
- * - proto3_optional = true
1100
- */
1101
- record?: boolean;
1102
- }
1103
- /**
1104
- * Defined in:
1105
- * {@link file://./../../../dxos/client/logging.proto}
1106
- */
1107
- export interface ControlMetricsResponse {
1108
- /**
1109
- * Options:
1110
- * - proto3_optional = true
1111
- */
1112
- recording?: boolean;
1113
- }
1114
- /**
1115
- * Defined in:
1116
- * {@link file://./../../../dxos/client/logging.proto}
1117
- */
1118
- export interface QueryMetricsRequest {
1119
- /**
1120
- * Options:
1121
- * - proto3_optional = true
1122
- */
1123
- interval?: number;
1124
- }
1125
- /**
1126
- * Defined in:
1127
- * {@link file://./../../../dxos/client/logging.proto}
1128
- */
1129
- export interface QueryMetricsResponse {
1130
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1131
- metrics: Metrics;
1132
- }
1133
- /**
1134
- * Defined in:
1135
- * {@link file://./../../../dxos/client/logging.proto}
1136
- */
1137
- export enum LogLevel {
1138
- NONE = 0,
1139
- TRACE = 5,
1140
- DEBUG = 10,
1141
- INFO = 11,
1142
- WARN = 12,
1143
- ERROR = 13
1144
- }
1145
- /**
1146
- * Defined in:
1147
- * {@link file://./../../../dxos/client/logging.proto}
1148
- */
1149
- export interface QueryLogsRequest {
1150
- filters?: QueryLogsRequest.Filter[];
1151
- /**
1152
- * Options:
1153
- * - proto3_optional = true
1154
- */
1155
- options?: QueryLogsRequest.MatchingOptions;
1156
- }
1157
- export namespace QueryLogsRequest {
1158
- /**
1159
- * Defined in:
1160
- * {@link file://./../../../dxos/client/logging.proto}
1161
- */
1162
- export enum MatchingOptions {
1163
- NONE = 0,
1164
- INCLUSIVE = 1,
1165
- EXPLICIT = 2
1166
- }
1167
- /**
1168
- * Defined in:
1169
- * {@link file://./../../../dxos/client/logging.proto}
1170
- */
1171
- export interface Filter {
1172
- level: LogLevel;
1173
- /**
1174
- * Options:
1175
- * - proto3_optional = true
1176
- */
1177
- pattern?: string;
1178
- }
1179
- }
1180
- /**
1181
- * Defined in:
1182
- * {@link file://./../../../dxos/client/logging.proto}
1183
- */
1184
- export interface LogEntry {
1185
- level: LogLevel;
1186
- message: string;
1187
- /**
1188
- * Options:
1189
- * - proto3_optional = true
1190
- */
1191
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1192
- /**
1193
- * Options:
1194
- * - proto3_optional = true
1195
- */
1196
- meta?: LogEntry.Meta;
1197
- /**
1198
- * Options:
1199
- * - proto3_optional = true
1200
- */
1201
- error?: dxos_error.Error;
1202
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1203
- }
1204
- export namespace LogEntry {
1205
- /**
1206
- * Defined in:
1207
- * {@link file://./../../../dxos/client/logging.proto}
1208
- */
1209
- export interface Meta {
1210
- file: string;
1211
- line: number;
1212
- /**
1213
- * Options:
1214
- * - proto3_optional = true
1215
- */
1216
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1217
- /**
1218
- * Options:
1219
- * - proto3_optional = true
1220
- */
1221
- resourceId?: number;
1222
- }
1223
- }
1224
- /**
1225
- * Defined in:
1226
- * {@link file://./../../../dxos/client/logging.proto}
1227
- */
1228
- export interface LoggingService {
1229
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1230
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1231
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1232
- }
@@ -87,6 +87,13 @@ export interface QueryOptions {
87
87
  * - proto3_optional = true
88
88
  */
89
89
  dataLocation?: QueryOptions.DataLocation;
90
+ /**
91
+ * References to inline when querying.
92
+ *
93
+ * Options:
94
+ * - proto3_optional = true
95
+ */
96
+ include?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
90
97
  /**
91
98
  * Query only in specific spaces.
92
99
  * @deprecated Use `spaceIds` instead.