@dxos/protocols 0.6.10-main.e92b5eb → 0.6.10-staging.3cfcc89
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/index.d.ts +0 -2
- package/dist/cjs/src/index.d.ts.map +1 -1
- package/dist/cjs/src/index.js +0 -2
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +177 -177
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +27 -27
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +8 -8
- 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/index.d.ts +1 -0
- package/dist/cjs/src/proto/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/index.js +15 -0
- package/dist/cjs/src/proto/index.js.map +1 -1
- package/dist/cjs/src/proto/types.d.ts +4 -0
- package/dist/cjs/src/proto/types.d.ts.map +1 -0
- package/dist/cjs/src/proto/types.js +6 -0
- package/dist/cjs/src/proto/types.js.map +1 -0
- package/dist/cjs/src/types.d.ts +0 -3
- package/dist/cjs/src/types.d.ts.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/index.d.ts +0 -2
- package/dist/esm/src/index.d.ts.map +1 -1
- package/dist/esm/src/index.js +0 -2
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +177 -177
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +26 -26
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +8 -8
- 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/index.d.ts +1 -0
- package/dist/esm/src/proto/index.d.ts.map +1 -1
- package/dist/esm/src/proto/index.js +1 -0
- package/dist/esm/src/proto/index.js.map +1 -1
- package/dist/esm/src/proto/types.d.ts +4 -0
- package/dist/esm/src/proto/types.d.ts.map +1 -0
- package/dist/esm/src/proto/types.js +5 -0
- package/dist/esm/src/proto/types.js.map +1 -0
- package/dist/esm/src/types.d.ts +0 -3
- package/dist/esm/src/types.d.ts.map +1 -1
- package/package.json +15 -6
- package/src/index.ts +0 -2
- package/src/proto/gen/dxos/client/services.ts +177 -177
- package/src/proto/gen/google/protobuf.ts +8 -8
- package/src/proto/index.ts +1 -0
- package/src/proto/types.ts +10 -0
- package/src/types.ts +0 -5
- package/dist/cjs/src/testing.d.ts +0 -5
- package/dist/cjs/src/testing.d.ts.map +0 -1
- package/dist/cjs/src/testing.js +0 -37
- package/dist/cjs/src/testing.js.map +0 -1
- package/dist/esm/src/testing.d.ts +0 -5
- package/dist/esm/src/testing.d.ts.map +0 -1
- package/dist/esm/src/testing.js +0 -33
- package/dist/esm/src/testing.js.map +0 -1
- package/src/testing.ts +0 -43
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/proto/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,OAAO,CAAC;AAGnC,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/proto/types.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE"}
|
package/dist/esm/src/types.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { type TypedProtoMessage } from '@dxos/codec-protobuf';
|
|
2
1
|
import { type PublicKey } from '@dxos/keys';
|
|
3
2
|
import { type Timeframe } from '@dxos/timeframe';
|
|
4
|
-
import { type TYPES } from './proto';
|
|
5
3
|
import { type CredentialsMessage, type FeedMessage } from './proto/gen/dxos/echo/feed';
|
|
6
4
|
import { type EchoObjectBatch } from './proto/gen/dxos/echo/object';
|
|
7
|
-
export type TypedMessage = TypedProtoMessage<TYPES>;
|
|
8
5
|
export type FeedMeta = {
|
|
9
6
|
feedKey: PublicKey;
|
|
10
7
|
seq: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAGpE,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,OAAO,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;AAEtD,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,SAAS,EAAE,SAAS,CAAC;CACtB;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,yBAAyB,CAAC;IAChC,KAAK,EAAE,eAAe,CAAC;CACxB;AAGD,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.6.10-
|
|
3
|
+
"version": "0.6.10-staging.3cfcc89",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
"require": "./dist/cjs/src/feed-replication.js",
|
|
20
20
|
"node": "./dist/cjs/src/feed-replication.js"
|
|
21
21
|
},
|
|
22
|
+
"./proto": {
|
|
23
|
+
"browser": "./dist/esm/src/proto/index.js",
|
|
24
|
+
"import": "./dist/esm/src/proto/index.js",
|
|
25
|
+
"require": "./dist/cjs/src/proto/index.js",
|
|
26
|
+
"node": "./dist/cjs/src/proto/index.js"
|
|
27
|
+
},
|
|
22
28
|
"./proto/*": {
|
|
23
29
|
"browser": "./dist/esm/src/proto/gen/*.js",
|
|
24
30
|
"import": "./dist/esm/src/proto/gen/*.js",
|
|
@@ -52,6 +58,9 @@
|
|
|
52
58
|
],
|
|
53
59
|
"buf": [
|
|
54
60
|
"dist/esm/src/buf/index.d.ts"
|
|
61
|
+
],
|
|
62
|
+
"proto": [
|
|
63
|
+
"dist/esm/src/proto/index.d.ts"
|
|
55
64
|
]
|
|
56
65
|
}
|
|
57
66
|
},
|
|
@@ -62,11 +71,11 @@
|
|
|
62
71
|
"dependencies": {
|
|
63
72
|
"@bufbuild/protobuf": "^2.0.0",
|
|
64
73
|
"@effect/schema": "^0.67.16",
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
74
|
+
"@dxos/keys": "0.6.10-staging.3cfcc89",
|
|
75
|
+
"@dxos/invariant": "0.6.10-staging.3cfcc89",
|
|
76
|
+
"@dxos/codec-protobuf": "0.6.10-staging.3cfcc89",
|
|
77
|
+
"@dxos/timeframe": "0.6.10-staging.3cfcc89",
|
|
78
|
+
"@dxos/util": "0.6.10-staging.3cfcc89"
|
|
70
79
|
},
|
|
71
80
|
"devDependencies": {
|
|
72
81
|
"@bufbuild/buf": "^1.35.0",
|
package/src/index.ts
CHANGED
|
@@ -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
|
-
}
|
|
@@ -65,6 +65,14 @@ import * as example_testing_data from "../example/testing/data";
|
|
|
65
65
|
import * as example_testing_rpc from "../example/testing/rpc";
|
|
66
66
|
export interface Empty {
|
|
67
67
|
}
|
|
68
|
+
export interface Timestamp {
|
|
69
|
+
seconds: string;
|
|
70
|
+
nanos: number;
|
|
71
|
+
}
|
|
72
|
+
export interface Any {
|
|
73
|
+
type_url: string;
|
|
74
|
+
value: Uint8Array;
|
|
75
|
+
}
|
|
68
76
|
export interface Struct {
|
|
69
77
|
fields?: Partial<Record<string, Value>>;
|
|
70
78
|
}
|
|
@@ -82,14 +90,6 @@ export enum NullValue {
|
|
|
82
90
|
export interface ListValue {
|
|
83
91
|
values?: Value[];
|
|
84
92
|
}
|
|
85
|
-
export interface Timestamp {
|
|
86
|
-
seconds: string;
|
|
87
|
-
nanos: number;
|
|
88
|
-
}
|
|
89
|
-
export interface Any {
|
|
90
|
-
type_url: string;
|
|
91
|
-
value: Uint8Array;
|
|
92
|
-
}
|
|
93
93
|
export interface FileDescriptorSet {
|
|
94
94
|
file?: FileDescriptorProto[];
|
|
95
95
|
}
|
package/src/proto/index.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -2,17 +2,12 @@
|
|
|
2
2
|
// Copyright 2020 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { type TypedProtoMessage } from '@dxos/codec-protobuf';
|
|
6
5
|
import { type PublicKey } from '@dxos/keys';
|
|
7
6
|
import { type Timeframe } from '@dxos/timeframe';
|
|
8
7
|
|
|
9
|
-
import { type TYPES } from './proto';
|
|
10
8
|
import { type CredentialsMessage, type FeedMessage } from './proto/gen/dxos/echo/feed';
|
|
11
9
|
import { type EchoObjectBatch } from './proto/gen/dxos/echo/object';
|
|
12
10
|
|
|
13
|
-
// TODO(burdon): Rename ProtocolMessage.
|
|
14
|
-
export type TypedMessage = TypedProtoMessage<TYPES>;
|
|
15
|
-
|
|
16
11
|
// TODO(burdon): Replace with proto definition.
|
|
17
12
|
export type FeedMeta = {
|
|
18
13
|
feedKey: PublicKey;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Timeframe } from '@dxos/timeframe';
|
|
2
|
-
import type { FeedMessage } from './proto/gen/dxos/echo/feed';
|
|
3
|
-
import { type ObjectId } from './types';
|
|
4
|
-
export declare const createTestItemMutation: (objectId: ObjectId, key: string, value: string, timeframe?: Timeframe) => FeedMessage;
|
|
5
|
-
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOxC,eAAO,MAAM,sBAAsB,aACvB,QAAQ,OACb,MAAM,SACJ,MAAM,4BAEZ,WAsBD,CAAC"}
|
package/dist/cjs/src/testing.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//
|
|
3
|
-
// Copyright 2020 DXOS.org
|
|
4
|
-
//
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createTestItemMutation = void 0;
|
|
7
|
-
const timeframe_1 = require("@dxos/timeframe");
|
|
8
|
-
const proto_1 = require("./proto");
|
|
9
|
-
//
|
|
10
|
-
// Testing.
|
|
11
|
-
//
|
|
12
|
-
// TODO(burdon): Move to testing package (with other fakers, etc.)
|
|
13
|
-
const createTestItemMutation = (objectId, key, value, timeframe = new timeframe_1.Timeframe()) => ({
|
|
14
|
-
timeframe,
|
|
15
|
-
payload: {
|
|
16
|
-
data: {
|
|
17
|
-
batch: {
|
|
18
|
-
objects: [
|
|
19
|
-
{
|
|
20
|
-
objectId,
|
|
21
|
-
mutations: [
|
|
22
|
-
{
|
|
23
|
-
model: {
|
|
24
|
-
'@type': 'google.protobuf.Any',
|
|
25
|
-
typeUrl: 'todo',
|
|
26
|
-
value: proto_1.schema.getCodecForType('example.testing.data.TestItemMutation').encode({ key, value }),
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
exports.createTestItemMutation = createTestItemMutation;
|
|
37
|
-
//# sourceMappingURL=testing.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,+CAA4C;AAE5C,mCAAiC;AAIjC,EAAE;AACF,WAAW;AACX,EAAE;AAEF,kEAAkE;AAC3D,MAAM,sBAAsB,GAAG,CACpC,QAAkB,EAClB,GAAW,EACX,KAAa,EACb,SAAS,GAAG,IAAI,qBAAS,EAAE,EACd,EAAE,CAAC,CAAC;IACjB,SAAS;IACT,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,OAAO,EAAE;oBACP;wBACE,QAAQ;wBACR,SAAS,EAAE;4BACT;gCACE,KAAK,EAAE;oCACL,OAAO,EAAE,qBAAqB;oCAC9B,OAAO,EAAE,MAAM;oCACf,KAAK,EAAE,cAAM,CAAC,eAAe,CAAC,uCAAuC,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;iCAC9F;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC;AA3BU,QAAA,sBAAsB,0BA2BhC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Timeframe } from '@dxos/timeframe';
|
|
2
|
-
import type { FeedMessage } from './proto/gen/dxos/echo/feed';
|
|
3
|
-
import { type ObjectId } from './types';
|
|
4
|
-
export declare const createTestItemMutation: (objectId: ObjectId, key: string, value: string, timeframe?: Timeframe) => FeedMessage;
|
|
5
|
-
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOxC,eAAO,MAAM,sBAAsB,aACvB,QAAQ,OACb,MAAM,SACJ,MAAM,4BAEZ,WAsBD,CAAC"}
|
package/dist/esm/src/testing.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2020 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
import { Timeframe } from '@dxos/timeframe';
|
|
5
|
-
import { schema } from './proto';
|
|
6
|
-
//
|
|
7
|
-
// Testing.
|
|
8
|
-
//
|
|
9
|
-
// TODO(burdon): Move to testing package (with other fakers, etc.)
|
|
10
|
-
export const createTestItemMutation = (objectId, key, value, timeframe = new Timeframe()) => ({
|
|
11
|
-
timeframe,
|
|
12
|
-
payload: {
|
|
13
|
-
data: {
|
|
14
|
-
batch: {
|
|
15
|
-
objects: [
|
|
16
|
-
{
|
|
17
|
-
objectId,
|
|
18
|
-
mutations: [
|
|
19
|
-
{
|
|
20
|
-
model: {
|
|
21
|
-
'@type': 'google.protobuf.Any',
|
|
22
|
-
typeUrl: 'todo',
|
|
23
|
-
value: schema.getCodecForType('example.testing.data.TestItemMutation').encode({ key, value }),
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=testing.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAIjC,EAAE;AACF,WAAW;AACX,EAAE;AAEF,kEAAkE;AAClE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,QAAkB,EAClB,GAAW,EACX,KAAa,EACb,SAAS,GAAG,IAAI,SAAS,EAAE,EACd,EAAE,CAAC,CAAC;IACjB,SAAS;IACT,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,OAAO,EAAE;oBACP;wBACE,QAAQ;wBACR,SAAS,EAAE;4BACT;gCACE,KAAK,EAAE;oCACL,OAAO,EAAE,qBAAqB;oCAC9B,OAAO,EAAE,MAAM;oCACf,KAAK,EAAE,MAAM,CAAC,eAAe,CAAC,uCAAuC,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;iCAC9F;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|
package/src/testing.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2020 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Timeframe } from '@dxos/timeframe';
|
|
6
|
-
|
|
7
|
-
import { schema } from './proto';
|
|
8
|
-
import type { FeedMessage } from './proto/gen/dxos/echo/feed';
|
|
9
|
-
import { type ObjectId } from './types';
|
|
10
|
-
|
|
11
|
-
//
|
|
12
|
-
// Testing.
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
// TODO(burdon): Move to testing package (with other fakers, etc.)
|
|
16
|
-
export const createTestItemMutation = (
|
|
17
|
-
objectId: ObjectId,
|
|
18
|
-
key: string,
|
|
19
|
-
value: string,
|
|
20
|
-
timeframe = new Timeframe(),
|
|
21
|
-
): FeedMessage => ({
|
|
22
|
-
timeframe,
|
|
23
|
-
payload: {
|
|
24
|
-
data: {
|
|
25
|
-
batch: {
|
|
26
|
-
objects: [
|
|
27
|
-
{
|
|
28
|
-
objectId,
|
|
29
|
-
mutations: [
|
|
30
|
-
{
|
|
31
|
-
model: {
|
|
32
|
-
'@type': 'google.protobuf.Any',
|
|
33
|
-
typeUrl: 'todo',
|
|
34
|
-
value: schema.getCodecForType('example.testing.data.TestItemMutation').encode({ key, value }),
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
});
|