@dxos/protocols 0.5.9-main.a2de4fa → 0.5.9-main.af4882d
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/errors/errors.d.ts +3 -3
- package/dist/cjs/src/errors/errors.d.ts.map +1 -1
- package/dist/cjs/src/errors/errors.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +175 -175
- 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/dxos/devtools/host.d.ts +31 -31
- package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts.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/src/testing.d.ts +2 -2
- package/dist/cjs/src/testing.d.ts.map +1 -1
- package/dist/cjs/src/testing.js.map +1 -1
- package/dist/cjs/src/types.d.ts +3 -2
- package/dist/cjs/src/types.d.ts.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/errors/errors.d.ts +3 -3
- package/dist/esm/src/errors/errors.d.ts.map +1 -1
- package/dist/esm/src/errors/errors.js +1 -1
- package/dist/esm/src/errors/errors.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +175 -175
- 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/dxos/devtools/host.d.ts +31 -31
- package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts.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/dist/esm/src/testing.d.ts +2 -2
- package/dist/esm/src/testing.d.ts.map +1 -1
- package/dist/esm/src/testing.js.map +1 -1
- package/dist/esm/src/types.d.ts +3 -2
- package/dist/esm/src/types.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/errors/errors.ts +3 -3
- package/src/proto/dxos/echo/model/document.proto +7 -6
- package/src/proto/gen/dxos/client/services.ts +175 -175
- package/src/proto/gen/dxos/devtools/host.ts +31 -31
- package/src/proto/gen/dxos/echo/model/document.ts +1 -1
- package/src/proto/gen/index.ts +1 -1
- package/src/testing.ts +2 -2
- package/src/types.ts +5 -3
|
@@ -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;AA6iB7C,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;AA6iB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,642GAA642G,CAAC,CAAC,CAAC;AACt82G,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Timeframe } from '@dxos/timeframe';
|
|
2
2
|
import type { FeedMessage } from './proto/gen/dxos/echo/feed';
|
|
3
|
-
import { type
|
|
4
|
-
export declare const createTestItemMutation: (objectId:
|
|
3
|
+
import { type ItemID } from './types';
|
|
4
|
+
export declare const createTestItemMutation: (objectId: ItemID, key: string, value: string, timeframe?: Timeframe) => FeedMessage;
|
|
5
5
|
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,MAAM,EAAE,MAAM,SAAS,CAAC;AAOtC,eAAO,MAAM,sBAAsB,aACvB,MAAM,OACX,MAAM,SACJ,MAAM,4BAEZ,WAsBD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,QAAgB,EAChB,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/dist/esm/src/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type TypedProtoMessage } from '@dxos/codec-protobuf';
|
|
|
2
2
|
import { type PublicKey } from '@dxos/keys';
|
|
3
3
|
import { type Timeframe } from '@dxos/timeframe';
|
|
4
4
|
import { type TYPES } from './proto';
|
|
5
|
-
import { type
|
|
5
|
+
import { type FeedMessage, type CredentialsMessage } from './proto/gen/dxos/echo/feed';
|
|
6
6
|
import { type EchoObjectBatch } from './proto/gen/dxos/echo/object';
|
|
7
7
|
export type TypedMessage = TypedProtoMessage<TYPES>;
|
|
8
8
|
export type FeedMeta = {
|
|
@@ -29,5 +29,6 @@ export interface IEchoStream {
|
|
|
29
29
|
meta: MutationMetaWithTimeframe;
|
|
30
30
|
batch: EchoObjectBatch;
|
|
31
31
|
}
|
|
32
|
-
export type
|
|
32
|
+
export type ItemID = string;
|
|
33
|
+
export type ItemType = string;
|
|
33
34
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAGpE,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAGpD,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;AAID,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAC5B,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.5.9-main.
|
|
3
|
+
"version": "0.5.9-main.af4882d",
|
|
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.9-main.
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/timeframe": "0.5.9-main.
|
|
36
|
+
"@dxos/codec-protobuf": "0.5.9-main.af4882d",
|
|
37
|
+
"@dxos/invariant": "0.5.9-main.af4882d",
|
|
38
|
+
"@dxos/keys": "0.5.9-main.af4882d",
|
|
39
|
+
"@dxos/timeframe": "0.5.9-main.af4882d"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
package/src/errors/errors.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import { PublicKey } from '@dxos/keys';
|
|
6
6
|
|
|
7
|
-
import { ApiError,
|
|
7
|
+
import { ApiError, DatabaseError, SystemError, BaseError } from './base-errors';
|
|
8
8
|
import { registerError, registerErrorMessageContext, registerErrorNoArgs } from './helpers';
|
|
9
|
-
import type {
|
|
9
|
+
import type { ItemID } from '../types';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Thrown when request was terminated because the RPC endpoint has been closed.
|
|
@@ -180,7 +180,7 @@ registerError('SPACE_NOT_FOUND', (_, context) => {
|
|
|
180
180
|
});
|
|
181
181
|
|
|
182
182
|
export class EntityNotFoundError extends DatabaseError {
|
|
183
|
-
constructor(entityId:
|
|
183
|
+
constructor(entityId: ItemID) {
|
|
184
184
|
super('ITEM_NOT_FOUND', 'Item not found.', { entityId });
|
|
185
185
|
}
|
|
186
186
|
}
|
|
@@ -61,7 +61,8 @@ message KeyValueObject {
|
|
|
61
61
|
* Reference to an Item.
|
|
62
62
|
*/
|
|
63
63
|
message Reference {
|
|
64
|
-
|
|
64
|
+
// TODO(dmaretskyi): Rename `id`.
|
|
65
|
+
string itemId = 1;
|
|
65
66
|
|
|
66
67
|
/// "space", or "protobuf"
|
|
67
68
|
optional string protocol = 2;
|
|
@@ -110,10 +111,10 @@ message Query {
|
|
|
110
111
|
*/
|
|
111
112
|
message ObjectSnapshot {
|
|
112
113
|
optional string type = 1;
|
|
113
|
-
optional Reference type_ref
|
|
114
|
+
optional Reference type_ref = 4;
|
|
114
115
|
|
|
115
116
|
Value root = 2;
|
|
116
|
-
optional Value meta
|
|
117
|
+
optional Value meta = 3;
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
/**
|
|
@@ -145,12 +146,12 @@ message YJS {
|
|
|
145
146
|
* Set of mutations.
|
|
146
147
|
*/
|
|
147
148
|
message ObjectMutationSet {
|
|
148
|
-
//
|
|
149
|
+
// depereacted
|
|
149
150
|
optional string type = 1;
|
|
150
151
|
optional Reference type_ref = 4;
|
|
151
152
|
|
|
152
|
-
repeated ObjectMutation mutations
|
|
153
|
+
repeated ObjectMutation mutations = 2;
|
|
153
154
|
|
|
154
155
|
// Mutations for the `meta` keyspace.
|
|
155
|
-
repeated ObjectMutation meta_mutations
|
|
156
|
+
repeated ObjectMutation meta_mutations = 3;
|
|
156
157
|
}
|
|
@@ -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}
|
|
@@ -991,178 +1166,3 @@ export interface NetworkService {
|
|
|
991
1166
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
992
1167
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
993
1168
|
}
|
|
994
|
-
/**
|
|
995
|
-
* Defined in:
|
|
996
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
997
|
-
*/
|
|
998
|
-
export interface Metrics {
|
|
999
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1000
|
-
values?: Metrics.KeyPair[];
|
|
1001
|
-
}
|
|
1002
|
-
export namespace Metrics {
|
|
1003
|
-
/**
|
|
1004
|
-
* Defined in:
|
|
1005
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1006
|
-
*/
|
|
1007
|
-
export interface KeyPair {
|
|
1008
|
-
/**
|
|
1009
|
-
* Options:
|
|
1010
|
-
* - proto3_optional = true
|
|
1011
|
-
*/
|
|
1012
|
-
key?: string;
|
|
1013
|
-
/**
|
|
1014
|
-
* Options:
|
|
1015
|
-
* - proto3_optional = true
|
|
1016
|
-
*/
|
|
1017
|
-
value?: dxos_value.Value;
|
|
1018
|
-
/**
|
|
1019
|
-
* Options:
|
|
1020
|
-
* - proto3_optional = true
|
|
1021
|
-
*/
|
|
1022
|
-
stats?: dxos_value.Stats;
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
/**
|
|
1026
|
-
* Defined in:
|
|
1027
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1028
|
-
*/
|
|
1029
|
-
export interface ControlMetricsRequest {
|
|
1030
|
-
/**
|
|
1031
|
-
* Options:
|
|
1032
|
-
* - proto3_optional = true
|
|
1033
|
-
*/
|
|
1034
|
-
reset?: boolean;
|
|
1035
|
-
/**
|
|
1036
|
-
* Options:
|
|
1037
|
-
* - proto3_optional = true
|
|
1038
|
-
*/
|
|
1039
|
-
record?: boolean;
|
|
1040
|
-
}
|
|
1041
|
-
/**
|
|
1042
|
-
* Defined in:
|
|
1043
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1044
|
-
*/
|
|
1045
|
-
export interface ControlMetricsResponse {
|
|
1046
|
-
/**
|
|
1047
|
-
* Options:
|
|
1048
|
-
* - proto3_optional = true
|
|
1049
|
-
*/
|
|
1050
|
-
recording?: boolean;
|
|
1051
|
-
}
|
|
1052
|
-
/**
|
|
1053
|
-
* Defined in:
|
|
1054
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1055
|
-
*/
|
|
1056
|
-
export interface QueryMetricsRequest {
|
|
1057
|
-
/**
|
|
1058
|
-
* Options:
|
|
1059
|
-
* - proto3_optional = true
|
|
1060
|
-
*/
|
|
1061
|
-
interval?: number;
|
|
1062
|
-
}
|
|
1063
|
-
/**
|
|
1064
|
-
* Defined in:
|
|
1065
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1066
|
-
*/
|
|
1067
|
-
export interface QueryMetricsResponse {
|
|
1068
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1069
|
-
metrics: Metrics;
|
|
1070
|
-
}
|
|
1071
|
-
/**
|
|
1072
|
-
* Defined in:
|
|
1073
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1074
|
-
*/
|
|
1075
|
-
export enum LogLevel {
|
|
1076
|
-
TRACE = 5,
|
|
1077
|
-
DEBUG = 10,
|
|
1078
|
-
INFO = 11,
|
|
1079
|
-
WARN = 12,
|
|
1080
|
-
ERROR = 13
|
|
1081
|
-
}
|
|
1082
|
-
/**
|
|
1083
|
-
* Defined in:
|
|
1084
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1085
|
-
*/
|
|
1086
|
-
export interface QueryLogsRequest {
|
|
1087
|
-
filters?: QueryLogsRequest.Filter[];
|
|
1088
|
-
/**
|
|
1089
|
-
* Options:
|
|
1090
|
-
* - proto3_optional = true
|
|
1091
|
-
*/
|
|
1092
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
1093
|
-
}
|
|
1094
|
-
export namespace QueryLogsRequest {
|
|
1095
|
-
/**
|
|
1096
|
-
* Defined in:
|
|
1097
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1098
|
-
*/
|
|
1099
|
-
export enum MatchingOptions {
|
|
1100
|
-
INCLUSIVE = 1,
|
|
1101
|
-
EXPLICIT = 2
|
|
1102
|
-
}
|
|
1103
|
-
/**
|
|
1104
|
-
* Defined in:
|
|
1105
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1106
|
-
*/
|
|
1107
|
-
export interface Filter {
|
|
1108
|
-
level: LogLevel;
|
|
1109
|
-
/**
|
|
1110
|
-
* Options:
|
|
1111
|
-
* - proto3_optional = true
|
|
1112
|
-
*/
|
|
1113
|
-
pattern?: string;
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
/**
|
|
1117
|
-
* Defined in:
|
|
1118
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1119
|
-
*/
|
|
1120
|
-
export interface LogEntry {
|
|
1121
|
-
level: LogLevel;
|
|
1122
|
-
message: string;
|
|
1123
|
-
/**
|
|
1124
|
-
* Options:
|
|
1125
|
-
* - proto3_optional = true
|
|
1126
|
-
*/
|
|
1127
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1128
|
-
/**
|
|
1129
|
-
* Options:
|
|
1130
|
-
* - proto3_optional = true
|
|
1131
|
-
*/
|
|
1132
|
-
meta?: LogEntry.Meta;
|
|
1133
|
-
/**
|
|
1134
|
-
* Options:
|
|
1135
|
-
* - proto3_optional = true
|
|
1136
|
-
*/
|
|
1137
|
-
error?: dxos_error.Error;
|
|
1138
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1139
|
-
}
|
|
1140
|
-
export namespace LogEntry {
|
|
1141
|
-
/**
|
|
1142
|
-
* Defined in:
|
|
1143
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1144
|
-
*/
|
|
1145
|
-
export interface Meta {
|
|
1146
|
-
file: string;
|
|
1147
|
-
line: number;
|
|
1148
|
-
/**
|
|
1149
|
-
* Options:
|
|
1150
|
-
* - proto3_optional = true
|
|
1151
|
-
*/
|
|
1152
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1153
|
-
/**
|
|
1154
|
-
* Options:
|
|
1155
|
-
* - proto3_optional = true
|
|
1156
|
-
*/
|
|
1157
|
-
resourceId?: number;
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
/**
|
|
1161
|
-
* Defined in:
|
|
1162
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1163
|
-
*/
|
|
1164
|
-
export interface LoggingService {
|
|
1165
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1166
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1167
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1168
|
-
}
|
|
@@ -61,37 +61,6 @@ 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/devtools/diagnostics.proto}
|
|
67
|
-
*/
|
|
68
|
-
export interface Services {
|
|
69
|
-
spaces?: SpaceStats[];
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Defined in:
|
|
73
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
74
|
-
*/
|
|
75
|
-
export interface SpaceStats {
|
|
76
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
77
|
-
peers?: PeerStats[];
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Defined in:
|
|
81
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
82
|
-
*/
|
|
83
|
-
export interface PeerStats {
|
|
84
|
-
controlFeed: FeedStats;
|
|
85
|
-
dataFeed: FeedStats;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Defined in:
|
|
89
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
90
|
-
*/
|
|
91
|
-
export interface FeedStats {
|
|
92
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
93
|
-
length: number;
|
|
94
|
-
}
|
|
95
64
|
/**
|
|
96
65
|
* Defined in:
|
|
97
66
|
* {@link file://./../../../dxos/devtools/host.proto}
|
|
@@ -514,3 +483,34 @@ export interface SubscribeToSwarmInfoRequest {
|
|
|
514
483
|
export interface SubscribeToSwarmInfoResponse {
|
|
515
484
|
data?: dxos_devtools_swarm.SwarmInfo[];
|
|
516
485
|
}
|
|
486
|
+
/**
|
|
487
|
+
* Defined in:
|
|
488
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
489
|
+
*/
|
|
490
|
+
export interface Services {
|
|
491
|
+
spaces?: SpaceStats[];
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Defined in:
|
|
495
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
496
|
+
*/
|
|
497
|
+
export interface SpaceStats {
|
|
498
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
499
|
+
peers?: PeerStats[];
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Defined in:
|
|
503
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
504
|
+
*/
|
|
505
|
+
export interface PeerStats {
|
|
506
|
+
controlFeed: FeedStats;
|
|
507
|
+
dataFeed: FeedStats;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Defined in:
|
|
511
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
512
|
+
*/
|
|
513
|
+
export interface FeedStats {
|
|
514
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
515
|
+
length: number;
|
|
516
|
+
}
|