@dxos/protocols 0.6.2-next.5b5129c → 0.6.3-main.0308ae2
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/proto/gen/dxos/client/services.d.ts +442 -432
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +94 -91
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
- package/dist/cjs/src/proto/gen/dxos/echo/object.d.ts +2 -2
- package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts +25 -0
- package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js +5 -5
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts +0 -10
- package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts +5 -4
- package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +9 -4
- 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/gen/index.d.ts +6 -4
- 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/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +442 -432
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +93 -90
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
- package/dist/esm/src/proto/gen/dxos/echo/object.d.ts +2 -2
- package/dist/esm/src/proto/gen/dxos/echo/service.d.ts +25 -0
- package/dist/esm/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js +4 -4
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts +0 -10
- package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts +5 -4
- package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +9 -4
- 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/gen/index.d.ts +6 -4
- 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/package.json +16 -7
- package/src/proto/dxos/agent/dashboard.proto +3 -2
- package/src/proto/dxos/bot.proto +2 -1
- package/src/proto/dxos/client/invitation.proto +171 -0
- package/src/proto/dxos/client/logging.proto +3 -0
- package/src/proto/dxos/client/services.proto +12 -144
- package/src/proto/dxos/config.proto +10 -10
- package/src/proto/dxos/echo/metadata.proto +10 -14
- package/src/proto/dxos/echo/object.proto +4 -2
- package/src/proto/dxos/echo/service.proto +16 -0
- package/src/proto/dxos/field_options.proto +11 -0
- package/src/proto/dxos/halo/credentials.proto +2 -0
- package/src/proto/dxos/halo/invitations.proto +3 -3
- package/src/proto/dxos/halo/keys.proto +0 -12
- package/src/proto/dxos/halo/signed.proto +10 -6
- package/src/proto/dxos/mesh/presence.proto +3 -1
- package/src/proto/dxos/mesh/teleport/gossip.proto +3 -1
- package/src/proto/gen/dxos/client/services.ts +442 -432
- package/src/proto/gen/dxos/echo/metadata.ts +3 -3
- package/src/proto/gen/dxos/echo/object.ts +2 -2
- package/src/proto/gen/dxos/echo/service.ts +25 -0
- package/src/proto/gen/dxos/halo/invitations.ts +4 -4
- package/src/proto/gen/dxos/halo/keys.ts +0 -9
- package/src/proto/gen/dxos/halo/signed.ts +5 -3
- package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -1
- package/src/proto/gen/google/protobuf.ts +9 -4
- package/src/proto/gen/index.ts +7 -5
|
@@ -9,6 +9,368 @@ import * as dxos_mesh_presence from "../mesh/presence";
|
|
|
9
9
|
import * as dxos_mesh_signal from "../mesh/signal";
|
|
10
10
|
import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
|
|
11
11
|
import * as dxos_value from "../value";
|
|
12
|
+
/**
|
|
13
|
+
* Defined in:
|
|
14
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
15
|
+
*/
|
|
16
|
+
export interface AdmissionKeypair {
|
|
17
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
18
|
+
/**
|
|
19
|
+
* Options:
|
|
20
|
+
* - proto3_optional = true
|
|
21
|
+
*/
|
|
22
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Runtime state of the space object.
|
|
26
|
+
*
|
|
27
|
+
* Defined in:
|
|
28
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
29
|
+
*/
|
|
30
|
+
export declare enum SpaceState {
|
|
31
|
+
INVALID = 0,
|
|
32
|
+
SPACE_INACTIVE = 2,
|
|
33
|
+
SPACE_ACTIVE = 6,
|
|
34
|
+
SPACE_CLOSED = 1,
|
|
35
|
+
SPACE_CONTROL_ONLY = 7,
|
|
36
|
+
SPACE_INITIALIZING = 4,
|
|
37
|
+
SPACE_READY = 3,
|
|
38
|
+
SPACE_ERROR = 5,
|
|
39
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Represents the invitation state passed between client and service.
|
|
43
|
+
*
|
|
44
|
+
* Defined in:
|
|
45
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
46
|
+
*/
|
|
47
|
+
export interface Invitation {
|
|
48
|
+
/**
|
|
49
|
+
* Local identifier (random).
|
|
50
|
+
*/
|
|
51
|
+
invitationId: string;
|
|
52
|
+
/**
|
|
53
|
+
* Determines the behavior of the invitation.
|
|
54
|
+
*/
|
|
55
|
+
type: Invitation.Type;
|
|
56
|
+
/**
|
|
57
|
+
* Kind of access the invitation will grant.
|
|
58
|
+
*/
|
|
59
|
+
kind: Invitation.Kind;
|
|
60
|
+
/**
|
|
61
|
+
* How the invitation is authenticated.
|
|
62
|
+
*/
|
|
63
|
+
authMethod: Invitation.AuthMethod;
|
|
64
|
+
/**
|
|
65
|
+
* Swarm rendezvous (random).
|
|
66
|
+
*/
|
|
67
|
+
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
68
|
+
/**
|
|
69
|
+
* Local state.
|
|
70
|
+
*/
|
|
71
|
+
state: Invitation.State;
|
|
72
|
+
/**
|
|
73
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
74
|
+
*
|
|
75
|
+
* Options:
|
|
76
|
+
* - proto3_optional = true
|
|
77
|
+
*/
|
|
78
|
+
timeout?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Guest's identity.
|
|
81
|
+
*
|
|
82
|
+
* Options:
|
|
83
|
+
* - proto3_optional = true
|
|
84
|
+
*/
|
|
85
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
86
|
+
/**
|
|
87
|
+
* Space to join (only present if kind is SPACE).
|
|
88
|
+
*
|
|
89
|
+
* Options:
|
|
90
|
+
* - proto3_optional = true
|
|
91
|
+
*/
|
|
92
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
93
|
+
/**
|
|
94
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
95
|
+
*
|
|
96
|
+
* Options:
|
|
97
|
+
* - proto3_optional = true
|
|
98
|
+
*/
|
|
99
|
+
authCode?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Path or identifier to navigate to after successful authentication.
|
|
102
|
+
*
|
|
103
|
+
* Options:
|
|
104
|
+
* - proto3_optional = true
|
|
105
|
+
*/
|
|
106
|
+
target?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Host should resume invitation on startup until timeout.
|
|
109
|
+
*
|
|
110
|
+
* Options:
|
|
111
|
+
* - proto3_optional = true
|
|
112
|
+
*/
|
|
113
|
+
persistent?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Options:
|
|
116
|
+
* - proto3_optional = true
|
|
117
|
+
*/
|
|
118
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
119
|
+
/**
|
|
120
|
+
* Options:
|
|
121
|
+
* - proto3_optional = true
|
|
122
|
+
*/
|
|
123
|
+
lifetime?: number;
|
|
124
|
+
/**
|
|
125
|
+
* Whether an invitation can be used multiple times.
|
|
126
|
+
*
|
|
127
|
+
* Options:
|
|
128
|
+
* - proto3_optional = true
|
|
129
|
+
*/
|
|
130
|
+
multiUse?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
133
|
+
*
|
|
134
|
+
* Options:
|
|
135
|
+
* - proto3_optional = true
|
|
136
|
+
*/
|
|
137
|
+
guestKeypair?: AdmissionKeypair;
|
|
138
|
+
/**
|
|
139
|
+
* Present on Type.DELEGATED invitations.
|
|
140
|
+
*
|
|
141
|
+
* Options:
|
|
142
|
+
* - proto3_optional = true
|
|
143
|
+
*/
|
|
144
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
145
|
+
/**
|
|
146
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
147
|
+
*
|
|
148
|
+
* Options:
|
|
149
|
+
* - proto3_optional = true
|
|
150
|
+
*/
|
|
151
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
152
|
+
}
|
|
153
|
+
export declare namespace Invitation {
|
|
154
|
+
/**
|
|
155
|
+
* Defined in:
|
|
156
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
157
|
+
*/
|
|
158
|
+
enum Type {
|
|
159
|
+
INTERACTIVE = 0,
|
|
160
|
+
DELEGATED = 1,
|
|
161
|
+
MULTIUSE = 2
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Defined in:
|
|
165
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
166
|
+
*/
|
|
167
|
+
enum Kind {
|
|
168
|
+
DEVICE = 0,
|
|
169
|
+
SPACE = 1
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Defined in:
|
|
173
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
174
|
+
*/
|
|
175
|
+
enum AuthMethod {
|
|
176
|
+
NONE = 0,
|
|
177
|
+
SHARED_SECRET = 1,
|
|
178
|
+
KNOWN_PUBLIC_KEY = 2
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Defined in:
|
|
182
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
183
|
+
*/
|
|
184
|
+
enum State {
|
|
185
|
+
INIT = 0,
|
|
186
|
+
CONNECTING = 1,
|
|
187
|
+
CONNECTED = 2,
|
|
188
|
+
READY_FOR_AUTHENTICATION = 3,
|
|
189
|
+
AUTHENTICATING = 4,
|
|
190
|
+
SUCCESS = 5,
|
|
191
|
+
CANCELLED = 6,
|
|
192
|
+
TIMEOUT = 7,
|
|
193
|
+
ERROR = 8,
|
|
194
|
+
EXPIRED = 9
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Defined in:
|
|
199
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
200
|
+
*/
|
|
201
|
+
export interface Metrics {
|
|
202
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
203
|
+
values?: Metrics.KeyPair[];
|
|
204
|
+
}
|
|
205
|
+
export declare namespace Metrics {
|
|
206
|
+
/**
|
|
207
|
+
* Defined in:
|
|
208
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
209
|
+
*/
|
|
210
|
+
interface KeyPair {
|
|
211
|
+
/**
|
|
212
|
+
* Options:
|
|
213
|
+
* - proto3_optional = true
|
|
214
|
+
*/
|
|
215
|
+
key?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Options:
|
|
218
|
+
* - proto3_optional = true
|
|
219
|
+
*/
|
|
220
|
+
value?: dxos_value.Value;
|
|
221
|
+
/**
|
|
222
|
+
* Options:
|
|
223
|
+
* - proto3_optional = true
|
|
224
|
+
*/
|
|
225
|
+
stats?: dxos_value.Stats;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Defined in:
|
|
230
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
231
|
+
*/
|
|
232
|
+
export interface ControlMetricsRequest {
|
|
233
|
+
/**
|
|
234
|
+
* Options:
|
|
235
|
+
* - proto3_optional = true
|
|
236
|
+
*/
|
|
237
|
+
reset?: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Options:
|
|
240
|
+
* - proto3_optional = true
|
|
241
|
+
*/
|
|
242
|
+
record?: boolean;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Defined in:
|
|
246
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
247
|
+
*/
|
|
248
|
+
export interface ControlMetricsResponse {
|
|
249
|
+
/**
|
|
250
|
+
* Options:
|
|
251
|
+
* - proto3_optional = true
|
|
252
|
+
*/
|
|
253
|
+
recording?: boolean;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Defined in:
|
|
257
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
258
|
+
*/
|
|
259
|
+
export interface QueryMetricsRequest {
|
|
260
|
+
/**
|
|
261
|
+
* Options:
|
|
262
|
+
* - proto3_optional = true
|
|
263
|
+
*/
|
|
264
|
+
interval?: number;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Defined in:
|
|
268
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
269
|
+
*/
|
|
270
|
+
export interface QueryMetricsResponse {
|
|
271
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
272
|
+
metrics: Metrics;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Defined in:
|
|
276
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
277
|
+
*/
|
|
278
|
+
export declare enum LogLevel {
|
|
279
|
+
NONE = 0,
|
|
280
|
+
TRACE = 5,
|
|
281
|
+
DEBUG = 10,
|
|
282
|
+
INFO = 11,
|
|
283
|
+
WARN = 12,
|
|
284
|
+
ERROR = 13
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Defined in:
|
|
288
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
289
|
+
*/
|
|
290
|
+
export interface QueryLogsRequest {
|
|
291
|
+
filters?: QueryLogsRequest.Filter[];
|
|
292
|
+
/**
|
|
293
|
+
* Options:
|
|
294
|
+
* - proto3_optional = true
|
|
295
|
+
*/
|
|
296
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
297
|
+
}
|
|
298
|
+
export declare namespace QueryLogsRequest {
|
|
299
|
+
/**
|
|
300
|
+
* Defined in:
|
|
301
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
302
|
+
*/
|
|
303
|
+
enum MatchingOptions {
|
|
304
|
+
NONE = 0,
|
|
305
|
+
INCLUSIVE = 1,
|
|
306
|
+
EXPLICIT = 2
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Defined in:
|
|
310
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
311
|
+
*/
|
|
312
|
+
interface Filter {
|
|
313
|
+
level: LogLevel;
|
|
314
|
+
/**
|
|
315
|
+
* Options:
|
|
316
|
+
* - proto3_optional = true
|
|
317
|
+
*/
|
|
318
|
+
pattern?: string;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Defined in:
|
|
323
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
324
|
+
*/
|
|
325
|
+
export interface LogEntry {
|
|
326
|
+
level: LogLevel;
|
|
327
|
+
message: string;
|
|
328
|
+
/**
|
|
329
|
+
* Options:
|
|
330
|
+
* - proto3_optional = true
|
|
331
|
+
*/
|
|
332
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
333
|
+
/**
|
|
334
|
+
* Options:
|
|
335
|
+
* - proto3_optional = true
|
|
336
|
+
*/
|
|
337
|
+
meta?: LogEntry.Meta;
|
|
338
|
+
/**
|
|
339
|
+
* Options:
|
|
340
|
+
* - proto3_optional = true
|
|
341
|
+
*/
|
|
342
|
+
error?: dxos_error.Error;
|
|
343
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
344
|
+
}
|
|
345
|
+
export declare namespace LogEntry {
|
|
346
|
+
/**
|
|
347
|
+
* Defined in:
|
|
348
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
349
|
+
*/
|
|
350
|
+
interface Meta {
|
|
351
|
+
file: string;
|
|
352
|
+
line: number;
|
|
353
|
+
/**
|
|
354
|
+
* Options:
|
|
355
|
+
* - proto3_optional = true
|
|
356
|
+
*/
|
|
357
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
358
|
+
/**
|
|
359
|
+
* Options:
|
|
360
|
+
* - proto3_optional = true
|
|
361
|
+
*/
|
|
362
|
+
resourceId?: number;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Defined in:
|
|
367
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
368
|
+
*/
|
|
369
|
+
export interface LoggingService {
|
|
370
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
371
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
372
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
373
|
+
}
|
|
12
374
|
/**
|
|
13
375
|
* Defined in:
|
|
14
376
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -332,22 +694,6 @@ export declare namespace SpaceMember {
|
|
|
332
694
|
ONLINE = 1
|
|
333
695
|
}
|
|
334
696
|
}
|
|
335
|
-
/**
|
|
336
|
-
* Runtime state of the space object.
|
|
337
|
-
*
|
|
338
|
-
* Defined in:
|
|
339
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
340
|
-
*/
|
|
341
|
-
export declare enum SpaceState {
|
|
342
|
-
INACTIVE = 2,
|
|
343
|
-
ACTIVE = 6,
|
|
344
|
-
CLOSED = 1,
|
|
345
|
-
CONTROL_ONLY = 7,
|
|
346
|
-
INITIALIZING = 4,
|
|
347
|
-
READY = 3,
|
|
348
|
-
ERROR = 5,
|
|
349
|
-
REQUIRES_MIGRATION = 8
|
|
350
|
-
}
|
|
351
697
|
/**
|
|
352
698
|
* Defined in:
|
|
353
699
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -610,257 +956,96 @@ export declare namespace CreateEpochRequest {
|
|
|
610
956
|
PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
|
|
611
957
|
FRAGMENT_AUTOMERGE_ROOT = 3,
|
|
612
958
|
REPLACE_AUTOMERGE_ROOT = 4,
|
|
613
|
-
MIGRATE_REFERENCES_TO_DXN = 5
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
/**
|
|
617
|
-
* Defined in:
|
|
618
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
619
|
-
*/
|
|
620
|
-
export interface CreateEpochResponse {
|
|
621
|
-
/**
|
|
622
|
-
* Credential of the new epoch.
|
|
623
|
-
*
|
|
624
|
-
* Options:
|
|
625
|
-
* - proto3_optional = true
|
|
626
|
-
*/
|
|
627
|
-
epochCredential?: dxos_halo_credentials.Credential;
|
|
628
|
-
}
|
|
629
|
-
/**
|
|
630
|
-
* Defined in:
|
|
631
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
632
|
-
*/
|
|
633
|
-
export interface UpdateMemberRoleRequest {
|
|
634
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
635
|
-
memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
636
|
-
newRole: dxos_halo_credentials.SpaceMember.Role;
|
|
637
|
-
}
|
|
638
|
-
/**
|
|
639
|
-
* Defined in:
|
|
640
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
641
|
-
*/
|
|
642
|
-
export interface AdmitContactRequest {
|
|
643
|
-
contact: Contact;
|
|
644
|
-
role: dxos_halo_credentials.SpaceMember.Role;
|
|
645
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* Defined in:
|
|
649
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
650
|
-
*/
|
|
651
|
-
export interface ContactAdmission {
|
|
652
|
-
credential: dxos_halo_credentials.Credential;
|
|
653
|
-
}
|
|
654
|
-
/**
|
|
655
|
-
* Defined in:
|
|
656
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
657
|
-
*/
|
|
658
|
-
export interface JoinSpaceResponse {
|
|
659
|
-
space: Space;
|
|
660
|
-
}
|
|
661
|
-
/**
|
|
662
|
-
* Defined in:
|
|
663
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
664
|
-
*/
|
|
665
|
-
export interface JoinBySpaceKeyRequest {
|
|
666
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
667
|
-
}
|
|
668
|
-
/**
|
|
669
|
-
* Defined in:
|
|
670
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
671
|
-
*/
|
|
672
|
-
export interface SpacesService {
|
|
673
|
-
createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
|
|
674
|
-
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
675
|
-
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
676
|
-
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
677
|
-
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
678
|
-
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
679
|
-
/**
|
|
680
|
-
* Broadcast an ephemeral message to the space swarm.
|
|
681
|
-
*/
|
|
682
|
-
postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
|
|
683
|
-
/**
|
|
684
|
-
* Subscribe to messages from the space swarm.
|
|
685
|
-
*/
|
|
686
|
-
subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
|
|
687
|
-
/**
|
|
688
|
-
* Write credentials to the space control feed.
|
|
689
|
-
*/
|
|
690
|
-
writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
|
|
691
|
-
/**
|
|
692
|
-
* Query credentials from the space control feed.
|
|
693
|
-
*/
|
|
694
|
-
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
695
|
-
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
* Represents the invitation state passed between client and service.
|
|
699
|
-
*
|
|
700
|
-
* Defined in:
|
|
701
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
702
|
-
*/
|
|
703
|
-
export interface Invitation {
|
|
704
|
-
/**
|
|
705
|
-
* Local identifier (random).
|
|
706
|
-
*/
|
|
707
|
-
invitationId: string;
|
|
708
|
-
/**
|
|
709
|
-
* Determines the behavior of the invitation.
|
|
710
|
-
*/
|
|
711
|
-
type: Invitation.Type;
|
|
712
|
-
/**
|
|
713
|
-
* Kind of access the invitation will grant.
|
|
714
|
-
*/
|
|
715
|
-
kind: Invitation.Kind;
|
|
716
|
-
/**
|
|
717
|
-
* How the invitation is authenticated.
|
|
718
|
-
*/
|
|
719
|
-
authMethod: Invitation.AuthMethod;
|
|
720
|
-
/**
|
|
721
|
-
* Swarm rendezvous (random).
|
|
722
|
-
*/
|
|
723
|
-
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
724
|
-
/**
|
|
725
|
-
* Local state.
|
|
726
|
-
*/
|
|
727
|
-
state: Invitation.State;
|
|
728
|
-
/**
|
|
729
|
-
* Timeout for guest to complete invitation once connected (ms).
|
|
730
|
-
*
|
|
731
|
-
* Options:
|
|
732
|
-
* - proto3_optional = true
|
|
733
|
-
*/
|
|
734
|
-
timeout?: number;
|
|
735
|
-
/**
|
|
736
|
-
* Guest's identity.
|
|
737
|
-
*
|
|
738
|
-
* Options:
|
|
739
|
-
* - proto3_optional = true
|
|
740
|
-
*/
|
|
741
|
-
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
742
|
-
/**
|
|
743
|
-
* Space to join (only present if kind is SPACE).
|
|
744
|
-
*
|
|
745
|
-
* Options:
|
|
746
|
-
* - proto3_optional = true
|
|
747
|
-
*/
|
|
748
|
-
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
749
|
-
/**
|
|
750
|
-
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
751
|
-
*
|
|
752
|
-
* Options:
|
|
753
|
-
* - proto3_optional = true
|
|
754
|
-
*/
|
|
755
|
-
authCode?: string;
|
|
756
|
-
/**
|
|
757
|
-
* Path or identifier to navigate to after successful authentication.
|
|
758
|
-
*
|
|
759
|
-
* Options:
|
|
760
|
-
* - proto3_optional = true
|
|
761
|
-
*/
|
|
762
|
-
target?: string;
|
|
763
|
-
/**
|
|
764
|
-
* Host should resume invitation on startup until timeout.
|
|
765
|
-
*
|
|
766
|
-
* Options:
|
|
767
|
-
* - proto3_optional = true
|
|
768
|
-
*/
|
|
769
|
-
persistent?: boolean;
|
|
770
|
-
/**
|
|
771
|
-
* Options:
|
|
772
|
-
* - proto3_optional = true
|
|
773
|
-
*/
|
|
774
|
-
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
775
|
-
/**
|
|
776
|
-
* Options:
|
|
777
|
-
* - proto3_optional = true
|
|
778
|
-
*/
|
|
779
|
-
lifetime?: number;
|
|
780
|
-
/**
|
|
781
|
-
* Whether an invitation can be used multiple times.
|
|
782
|
-
*
|
|
783
|
-
* Options:
|
|
784
|
-
* - proto3_optional = true
|
|
785
|
-
*/
|
|
786
|
-
multiUse?: boolean;
|
|
787
|
-
/**
|
|
788
|
-
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
789
|
-
*
|
|
790
|
-
* Options:
|
|
791
|
-
* - proto3_optional = true
|
|
792
|
-
*/
|
|
793
|
-
guestKeypair?: AdmissionKeypair;
|
|
794
|
-
/**
|
|
795
|
-
* Present on Type.DELEGATED invitations.
|
|
796
|
-
*
|
|
797
|
-
* Options:
|
|
798
|
-
* - proto3_optional = true
|
|
799
|
-
*/
|
|
800
|
-
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
801
|
-
/**
|
|
802
|
-
* Role of the admitted member, defaults to ADMIN.
|
|
803
|
-
*
|
|
804
|
-
* Options:
|
|
805
|
-
* - proto3_optional = true
|
|
806
|
-
*/
|
|
807
|
-
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
808
|
-
}
|
|
809
|
-
export declare namespace Invitation {
|
|
810
|
-
/**
|
|
811
|
-
* Defined in:
|
|
812
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
813
|
-
*/
|
|
814
|
-
enum Type {
|
|
815
|
-
INTERACTIVE = 0,
|
|
816
|
-
DELEGATED = 1,
|
|
817
|
-
MULTIUSE = 2
|
|
818
|
-
}
|
|
819
|
-
/**
|
|
820
|
-
* Defined in:
|
|
821
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
822
|
-
*/
|
|
823
|
-
enum Kind {
|
|
824
|
-
DEVICE = 0,
|
|
825
|
-
SPACE = 1
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* Defined in:
|
|
829
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
830
|
-
*/
|
|
831
|
-
enum AuthMethod {
|
|
832
|
-
NONE = 0,
|
|
833
|
-
SHARED_SECRET = 1,
|
|
834
|
-
KNOWN_PUBLIC_KEY = 2
|
|
835
|
-
}
|
|
836
|
-
/**
|
|
837
|
-
* Defined in:
|
|
838
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
839
|
-
*/
|
|
840
|
-
enum State {
|
|
841
|
-
INIT = 0,
|
|
842
|
-
CONNECTING = 1,
|
|
843
|
-
CONNECTED = 2,
|
|
844
|
-
READY_FOR_AUTHENTICATION = 3,
|
|
845
|
-
AUTHENTICATING = 4,
|
|
846
|
-
SUCCESS = 5,
|
|
847
|
-
CANCELLED = 6,
|
|
848
|
-
TIMEOUT = 7,
|
|
849
|
-
ERROR = 8,
|
|
850
|
-
EXPIRED = 9
|
|
959
|
+
MIGRATE_REFERENCES_TO_DXN = 5
|
|
851
960
|
}
|
|
852
961
|
}
|
|
853
962
|
/**
|
|
854
963
|
* Defined in:
|
|
855
964
|
* {@link file://./../../../dxos/client/services.proto}
|
|
856
965
|
*/
|
|
857
|
-
export interface
|
|
858
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
966
|
+
export interface CreateEpochResponse {
|
|
859
967
|
/**
|
|
968
|
+
* Credential of the new epoch.
|
|
969
|
+
*
|
|
860
970
|
* Options:
|
|
861
971
|
* - proto3_optional = true
|
|
862
972
|
*/
|
|
863
|
-
|
|
973
|
+
epochCredential?: dxos_halo_credentials.Credential;
|
|
974
|
+
/**
|
|
975
|
+
* Control pipeline timeframe.
|
|
976
|
+
*
|
|
977
|
+
* Options:
|
|
978
|
+
* - proto3_optional = true
|
|
979
|
+
*/
|
|
980
|
+
controlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
* Defined in:
|
|
984
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
985
|
+
*/
|
|
986
|
+
export interface UpdateMemberRoleRequest {
|
|
987
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
988
|
+
memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
989
|
+
newRole: dxos_halo_credentials.SpaceMember.Role;
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* Defined in:
|
|
993
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
994
|
+
*/
|
|
995
|
+
export interface AdmitContactRequest {
|
|
996
|
+
contact: Contact;
|
|
997
|
+
role: dxos_halo_credentials.SpaceMember.Role;
|
|
998
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* Defined in:
|
|
1002
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1003
|
+
*/
|
|
1004
|
+
export interface ContactAdmission {
|
|
1005
|
+
credential: dxos_halo_credentials.Credential;
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Defined in:
|
|
1009
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1010
|
+
*/
|
|
1011
|
+
export interface JoinSpaceResponse {
|
|
1012
|
+
space: Space;
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Defined in:
|
|
1016
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1017
|
+
*/
|
|
1018
|
+
export interface JoinBySpaceKeyRequest {
|
|
1019
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Defined in:
|
|
1023
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1024
|
+
*/
|
|
1025
|
+
export interface SpacesService {
|
|
1026
|
+
createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
|
|
1027
|
+
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
1028
|
+
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
1029
|
+
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
1030
|
+
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
1031
|
+
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Broadcast an ephemeral message to the space swarm.
|
|
1034
|
+
*/
|
|
1035
|
+
postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
|
|
1036
|
+
/**
|
|
1037
|
+
* Subscribe to messages from the space swarm.
|
|
1038
|
+
*/
|
|
1039
|
+
subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
|
|
1040
|
+
/**
|
|
1041
|
+
* Write credentials to the space control feed.
|
|
1042
|
+
*/
|
|
1043
|
+
writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
|
|
1044
|
+
/**
|
|
1045
|
+
* Query credentials from the space control feed.
|
|
1046
|
+
*/
|
|
1047
|
+
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
1048
|
+
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
864
1049
|
}
|
|
865
1050
|
/**
|
|
866
1051
|
* Defined in:
|
|
@@ -991,179 +1176,4 @@ export interface NetworkService {
|
|
|
991
1176
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
992
1177
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
993
1178
|
}
|
|
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 declare namespace Metrics {
|
|
1003
|
-
/**
|
|
1004
|
-
* Defined in:
|
|
1005
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1006
|
-
*/
|
|
1007
|
-
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 declare 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 declare namespace QueryLogsRequest {
|
|
1095
|
-
/**
|
|
1096
|
-
* Defined in:
|
|
1097
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1098
|
-
*/
|
|
1099
|
-
enum MatchingOptions {
|
|
1100
|
-
INCLUSIVE = 1,
|
|
1101
|
-
EXPLICIT = 2
|
|
1102
|
-
}
|
|
1103
|
-
/**
|
|
1104
|
-
* Defined in:
|
|
1105
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1106
|
-
*/
|
|
1107
|
-
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 declare namespace LogEntry {
|
|
1141
|
-
/**
|
|
1142
|
-
* Defined in:
|
|
1143
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1144
|
-
*/
|
|
1145
|
-
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
|
-
}
|
|
1169
1179
|
//# sourceMappingURL=services.d.ts.map
|