@dxos/protocols 0.6.3-main.cc41ccb → 0.6.3-main.d16c079
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 +396 -393
- 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/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 +3 -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 +396 -393
- 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/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 +3 -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 +10 -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/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 +396 -393
- 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/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 +4 -5
|
@@ -62,6 +62,368 @@ import * as dxos_value from "../value";
|
|
|
62
62
|
import * as example_testing_data from "../../example/testing/data";
|
|
63
63
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
64
64
|
import * as google_protobuf from "../../google/protobuf";
|
|
65
|
+
/**
|
|
66
|
+
* Defined in:
|
|
67
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
68
|
+
*/
|
|
69
|
+
export interface AdmissionKeypair {
|
|
70
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
71
|
+
/**
|
|
72
|
+
* Options:
|
|
73
|
+
* - proto3_optional = true
|
|
74
|
+
*/
|
|
75
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Runtime state of the space object.
|
|
79
|
+
*
|
|
80
|
+
* Defined in:
|
|
81
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
82
|
+
*/
|
|
83
|
+
export enum SpaceState {
|
|
84
|
+
INVALID = 0,
|
|
85
|
+
SPACE_INACTIVE = 2,
|
|
86
|
+
SPACE_ACTIVE = 6,
|
|
87
|
+
SPACE_CLOSED = 1,
|
|
88
|
+
SPACE_CONTROL_ONLY = 7,
|
|
89
|
+
SPACE_INITIALIZING = 4,
|
|
90
|
+
SPACE_READY = 3,
|
|
91
|
+
SPACE_ERROR = 5,
|
|
92
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Represents the invitation state passed between client and service.
|
|
96
|
+
*
|
|
97
|
+
* Defined in:
|
|
98
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
99
|
+
*/
|
|
100
|
+
export interface Invitation {
|
|
101
|
+
/**
|
|
102
|
+
* Local identifier (random).
|
|
103
|
+
*/
|
|
104
|
+
invitationId: string;
|
|
105
|
+
/**
|
|
106
|
+
* Determines the behavior of the invitation.
|
|
107
|
+
*/
|
|
108
|
+
type: Invitation.Type;
|
|
109
|
+
/**
|
|
110
|
+
* Kind of access the invitation will grant.
|
|
111
|
+
*/
|
|
112
|
+
kind: Invitation.Kind;
|
|
113
|
+
/**
|
|
114
|
+
* How the invitation is authenticated.
|
|
115
|
+
*/
|
|
116
|
+
authMethod: Invitation.AuthMethod;
|
|
117
|
+
/**
|
|
118
|
+
* Swarm rendezvous (random).
|
|
119
|
+
*/
|
|
120
|
+
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
121
|
+
/**
|
|
122
|
+
* Local state.
|
|
123
|
+
*/
|
|
124
|
+
state: Invitation.State;
|
|
125
|
+
/**
|
|
126
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
127
|
+
*
|
|
128
|
+
* Options:
|
|
129
|
+
* - proto3_optional = true
|
|
130
|
+
*/
|
|
131
|
+
timeout?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Guest's identity.
|
|
134
|
+
*
|
|
135
|
+
* Options:
|
|
136
|
+
* - proto3_optional = true
|
|
137
|
+
*/
|
|
138
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
139
|
+
/**
|
|
140
|
+
* Space to join (only present if kind is SPACE).
|
|
141
|
+
*
|
|
142
|
+
* Options:
|
|
143
|
+
* - proto3_optional = true
|
|
144
|
+
*/
|
|
145
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
146
|
+
/**
|
|
147
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
148
|
+
*
|
|
149
|
+
* Options:
|
|
150
|
+
* - proto3_optional = true
|
|
151
|
+
*/
|
|
152
|
+
authCode?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Path or identifier to navigate to after successful authentication.
|
|
155
|
+
*
|
|
156
|
+
* Options:
|
|
157
|
+
* - proto3_optional = true
|
|
158
|
+
*/
|
|
159
|
+
target?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Host should resume invitation on startup until timeout.
|
|
162
|
+
*
|
|
163
|
+
* Options:
|
|
164
|
+
* - proto3_optional = true
|
|
165
|
+
*/
|
|
166
|
+
persistent?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Options:
|
|
169
|
+
* - proto3_optional = true
|
|
170
|
+
*/
|
|
171
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
172
|
+
/**
|
|
173
|
+
* Options:
|
|
174
|
+
* - proto3_optional = true
|
|
175
|
+
*/
|
|
176
|
+
lifetime?: number;
|
|
177
|
+
/**
|
|
178
|
+
* Whether an invitation can be used multiple times.
|
|
179
|
+
*
|
|
180
|
+
* Options:
|
|
181
|
+
* - proto3_optional = true
|
|
182
|
+
*/
|
|
183
|
+
multiUse?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
186
|
+
*
|
|
187
|
+
* Options:
|
|
188
|
+
* - proto3_optional = true
|
|
189
|
+
*/
|
|
190
|
+
guestKeypair?: AdmissionKeypair;
|
|
191
|
+
/**
|
|
192
|
+
* Present on Type.DELEGATED invitations.
|
|
193
|
+
*
|
|
194
|
+
* Options:
|
|
195
|
+
* - proto3_optional = true
|
|
196
|
+
*/
|
|
197
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
198
|
+
/**
|
|
199
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
200
|
+
*
|
|
201
|
+
* Options:
|
|
202
|
+
* - proto3_optional = true
|
|
203
|
+
*/
|
|
204
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
205
|
+
}
|
|
206
|
+
export namespace Invitation {
|
|
207
|
+
/**
|
|
208
|
+
* Defined in:
|
|
209
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
210
|
+
*/
|
|
211
|
+
export enum Type {
|
|
212
|
+
INTERACTIVE = 0,
|
|
213
|
+
DELEGATED = 1,
|
|
214
|
+
MULTIUSE = 2
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Defined in:
|
|
218
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
219
|
+
*/
|
|
220
|
+
export enum Kind {
|
|
221
|
+
DEVICE = 0,
|
|
222
|
+
SPACE = 1
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Defined in:
|
|
226
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
227
|
+
*/
|
|
228
|
+
export enum AuthMethod {
|
|
229
|
+
NONE = 0,
|
|
230
|
+
SHARED_SECRET = 1,
|
|
231
|
+
KNOWN_PUBLIC_KEY = 2
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Defined in:
|
|
235
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
236
|
+
*/
|
|
237
|
+
export enum State {
|
|
238
|
+
INIT = 0,
|
|
239
|
+
CONNECTING = 1,
|
|
240
|
+
CONNECTED = 2,
|
|
241
|
+
READY_FOR_AUTHENTICATION = 3,
|
|
242
|
+
AUTHENTICATING = 4,
|
|
243
|
+
SUCCESS = 5,
|
|
244
|
+
CANCELLED = 6,
|
|
245
|
+
TIMEOUT = 7,
|
|
246
|
+
ERROR = 8,
|
|
247
|
+
EXPIRED = 9
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Defined in:
|
|
252
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
253
|
+
*/
|
|
254
|
+
export interface Metrics {
|
|
255
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
256
|
+
values?: Metrics.KeyPair[];
|
|
257
|
+
}
|
|
258
|
+
export namespace Metrics {
|
|
259
|
+
/**
|
|
260
|
+
* Defined in:
|
|
261
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
262
|
+
*/
|
|
263
|
+
export interface KeyPair {
|
|
264
|
+
/**
|
|
265
|
+
* Options:
|
|
266
|
+
* - proto3_optional = true
|
|
267
|
+
*/
|
|
268
|
+
key?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Options:
|
|
271
|
+
* - proto3_optional = true
|
|
272
|
+
*/
|
|
273
|
+
value?: dxos_value.Value;
|
|
274
|
+
/**
|
|
275
|
+
* Options:
|
|
276
|
+
* - proto3_optional = true
|
|
277
|
+
*/
|
|
278
|
+
stats?: dxos_value.Stats;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Defined in:
|
|
283
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
284
|
+
*/
|
|
285
|
+
export interface ControlMetricsRequest {
|
|
286
|
+
/**
|
|
287
|
+
* Options:
|
|
288
|
+
* - proto3_optional = true
|
|
289
|
+
*/
|
|
290
|
+
reset?: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Options:
|
|
293
|
+
* - proto3_optional = true
|
|
294
|
+
*/
|
|
295
|
+
record?: boolean;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Defined in:
|
|
299
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
300
|
+
*/
|
|
301
|
+
export interface ControlMetricsResponse {
|
|
302
|
+
/**
|
|
303
|
+
* Options:
|
|
304
|
+
* - proto3_optional = true
|
|
305
|
+
*/
|
|
306
|
+
recording?: boolean;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Defined in:
|
|
310
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
311
|
+
*/
|
|
312
|
+
export interface QueryMetricsRequest {
|
|
313
|
+
/**
|
|
314
|
+
* Options:
|
|
315
|
+
* - proto3_optional = true
|
|
316
|
+
*/
|
|
317
|
+
interval?: number;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Defined in:
|
|
321
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
322
|
+
*/
|
|
323
|
+
export interface QueryMetricsResponse {
|
|
324
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
325
|
+
metrics: Metrics;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Defined in:
|
|
329
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
330
|
+
*/
|
|
331
|
+
export enum LogLevel {
|
|
332
|
+
NONE = 0,
|
|
333
|
+
TRACE = 5,
|
|
334
|
+
DEBUG = 10,
|
|
335
|
+
INFO = 11,
|
|
336
|
+
WARN = 12,
|
|
337
|
+
ERROR = 13
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Defined in:
|
|
341
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
342
|
+
*/
|
|
343
|
+
export interface QueryLogsRequest {
|
|
344
|
+
filters?: QueryLogsRequest.Filter[];
|
|
345
|
+
/**
|
|
346
|
+
* Options:
|
|
347
|
+
* - proto3_optional = true
|
|
348
|
+
*/
|
|
349
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
350
|
+
}
|
|
351
|
+
export namespace QueryLogsRequest {
|
|
352
|
+
/**
|
|
353
|
+
* Defined in:
|
|
354
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
355
|
+
*/
|
|
356
|
+
export enum MatchingOptions {
|
|
357
|
+
NONE = 0,
|
|
358
|
+
INCLUSIVE = 1,
|
|
359
|
+
EXPLICIT = 2
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Defined in:
|
|
363
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
364
|
+
*/
|
|
365
|
+
export interface Filter {
|
|
366
|
+
level: LogLevel;
|
|
367
|
+
/**
|
|
368
|
+
* Options:
|
|
369
|
+
* - proto3_optional = true
|
|
370
|
+
*/
|
|
371
|
+
pattern?: string;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Defined in:
|
|
376
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
377
|
+
*/
|
|
378
|
+
export interface LogEntry {
|
|
379
|
+
level: LogLevel;
|
|
380
|
+
message: string;
|
|
381
|
+
/**
|
|
382
|
+
* Options:
|
|
383
|
+
* - proto3_optional = true
|
|
384
|
+
*/
|
|
385
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
386
|
+
/**
|
|
387
|
+
* Options:
|
|
388
|
+
* - proto3_optional = true
|
|
389
|
+
*/
|
|
390
|
+
meta?: LogEntry.Meta;
|
|
391
|
+
/**
|
|
392
|
+
* Options:
|
|
393
|
+
* - proto3_optional = true
|
|
394
|
+
*/
|
|
395
|
+
error?: dxos_error.Error;
|
|
396
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
397
|
+
}
|
|
398
|
+
export namespace LogEntry {
|
|
399
|
+
/**
|
|
400
|
+
* Defined in:
|
|
401
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
402
|
+
*/
|
|
403
|
+
export interface Meta {
|
|
404
|
+
file: string;
|
|
405
|
+
line: number;
|
|
406
|
+
/**
|
|
407
|
+
* Options:
|
|
408
|
+
* - proto3_optional = true
|
|
409
|
+
*/
|
|
410
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
411
|
+
/**
|
|
412
|
+
* Options:
|
|
413
|
+
* - proto3_optional = true
|
|
414
|
+
*/
|
|
415
|
+
resourceId?: number;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Defined in:
|
|
420
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
421
|
+
*/
|
|
422
|
+
export interface LoggingService {
|
|
423
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
424
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
425
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
426
|
+
}
|
|
65
427
|
/**
|
|
66
428
|
* Defined in:
|
|
67
429
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -385,22 +747,6 @@ export namespace SpaceMember {
|
|
|
385
747
|
ONLINE = 1
|
|
386
748
|
}
|
|
387
749
|
}
|
|
388
|
-
/**
|
|
389
|
-
* Runtime state of the space object.
|
|
390
|
-
*
|
|
391
|
-
* Defined in:
|
|
392
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
393
|
-
*/
|
|
394
|
-
export enum SpaceState {
|
|
395
|
-
INACTIVE = 2,
|
|
396
|
-
ACTIVE = 6,
|
|
397
|
-
CLOSED = 1,
|
|
398
|
-
CONTROL_ONLY = 7,
|
|
399
|
-
INITIALIZING = 4,
|
|
400
|
-
READY = 3,
|
|
401
|
-
ERROR = 5,
|
|
402
|
-
REQUIRES_MIGRATION = 8
|
|
403
|
-
}
|
|
404
750
|
/**
|
|
405
751
|
* Defined in:
|
|
406
752
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -711,216 +1057,48 @@ export interface AdmitContactRequest {
|
|
|
711
1057
|
export interface ContactAdmission {
|
|
712
1058
|
credential: dxos_halo_credentials.Credential;
|
|
713
1059
|
}
|
|
714
|
-
/**
|
|
715
|
-
* Defined in:
|
|
716
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
717
|
-
*/
|
|
718
|
-
export interface JoinSpaceResponse {
|
|
719
|
-
space: Space;
|
|
720
|
-
}
|
|
721
|
-
/**
|
|
722
|
-
* Defined in:
|
|
723
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
724
|
-
*/
|
|
725
|
-
export interface JoinBySpaceKeyRequest {
|
|
726
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
* Defined in:
|
|
730
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
731
|
-
*/
|
|
732
|
-
export interface SpacesService {
|
|
733
|
-
createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
|
|
734
|
-
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
735
|
-
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
736
|
-
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
737
|
-
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
738
|
-
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
739
|
-
/**
|
|
740
|
-
* Broadcast an ephemeral message to the space swarm.
|
|
741
|
-
*/
|
|
742
|
-
postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
|
|
743
|
-
/**
|
|
744
|
-
* Subscribe to messages from the space swarm.
|
|
745
|
-
*/
|
|
746
|
-
subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
|
|
747
|
-
/**
|
|
748
|
-
* Write credentials to the space control feed.
|
|
749
|
-
*/
|
|
750
|
-
writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
|
|
751
|
-
/**
|
|
752
|
-
* Query credentials from the space control feed.
|
|
753
|
-
*/
|
|
754
|
-
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
755
|
-
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* Represents the invitation state passed between client and service.
|
|
759
|
-
*
|
|
760
|
-
* Defined in:
|
|
761
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
762
|
-
*/
|
|
763
|
-
export interface Invitation {
|
|
764
|
-
/**
|
|
765
|
-
* Local identifier (random).
|
|
766
|
-
*/
|
|
767
|
-
invitationId: string;
|
|
768
|
-
/**
|
|
769
|
-
* Determines the behavior of the invitation.
|
|
770
|
-
*/
|
|
771
|
-
type: Invitation.Type;
|
|
772
|
-
/**
|
|
773
|
-
* Kind of access the invitation will grant.
|
|
774
|
-
*/
|
|
775
|
-
kind: Invitation.Kind;
|
|
776
|
-
/**
|
|
777
|
-
* How the invitation is authenticated.
|
|
778
|
-
*/
|
|
779
|
-
authMethod: Invitation.AuthMethod;
|
|
780
|
-
/**
|
|
781
|
-
* Swarm rendezvous (random).
|
|
782
|
-
*/
|
|
783
|
-
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
784
|
-
/**
|
|
785
|
-
* Local state.
|
|
786
|
-
*/
|
|
787
|
-
state: Invitation.State;
|
|
788
|
-
/**
|
|
789
|
-
* Timeout for guest to complete invitation once connected (ms).
|
|
790
|
-
*
|
|
791
|
-
* Options:
|
|
792
|
-
* - proto3_optional = true
|
|
793
|
-
*/
|
|
794
|
-
timeout?: number;
|
|
795
|
-
/**
|
|
796
|
-
* Guest's identity.
|
|
797
|
-
*
|
|
798
|
-
* Options:
|
|
799
|
-
* - proto3_optional = true
|
|
800
|
-
*/
|
|
801
|
-
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
802
|
-
/**
|
|
803
|
-
* Space to join (only present if kind is SPACE).
|
|
804
|
-
*
|
|
805
|
-
* Options:
|
|
806
|
-
* - proto3_optional = true
|
|
807
|
-
*/
|
|
808
|
-
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
809
|
-
/**
|
|
810
|
-
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
811
|
-
*
|
|
812
|
-
* Options:
|
|
813
|
-
* - proto3_optional = true
|
|
814
|
-
*/
|
|
815
|
-
authCode?: string;
|
|
816
|
-
/**
|
|
817
|
-
* Path or identifier to navigate to after successful authentication.
|
|
818
|
-
*
|
|
819
|
-
* Options:
|
|
820
|
-
* - proto3_optional = true
|
|
821
|
-
*/
|
|
822
|
-
target?: string;
|
|
823
|
-
/**
|
|
824
|
-
* Host should resume invitation on startup until timeout.
|
|
825
|
-
*
|
|
826
|
-
* Options:
|
|
827
|
-
* - proto3_optional = true
|
|
828
|
-
*/
|
|
829
|
-
persistent?: boolean;
|
|
830
|
-
/**
|
|
831
|
-
* Options:
|
|
832
|
-
* - proto3_optional = true
|
|
833
|
-
*/
|
|
834
|
-
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
835
|
-
/**
|
|
836
|
-
* Options:
|
|
837
|
-
* - proto3_optional = true
|
|
838
|
-
*/
|
|
839
|
-
lifetime?: number;
|
|
840
|
-
/**
|
|
841
|
-
* Whether an invitation can be used multiple times.
|
|
842
|
-
*
|
|
843
|
-
* Options:
|
|
844
|
-
* - proto3_optional = true
|
|
845
|
-
*/
|
|
846
|
-
multiUse?: boolean;
|
|
847
|
-
/**
|
|
848
|
-
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
849
|
-
*
|
|
850
|
-
* Options:
|
|
851
|
-
* - proto3_optional = true
|
|
852
|
-
*/
|
|
853
|
-
guestKeypair?: AdmissionKeypair;
|
|
854
|
-
/**
|
|
855
|
-
* Present on Type.DELEGATED invitations.
|
|
856
|
-
*
|
|
857
|
-
* Options:
|
|
858
|
-
* - proto3_optional = true
|
|
859
|
-
*/
|
|
860
|
-
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
861
|
-
/**
|
|
862
|
-
* Role of the admitted member, defaults to ADMIN.
|
|
863
|
-
*
|
|
864
|
-
* Options:
|
|
865
|
-
* - proto3_optional = true
|
|
866
|
-
*/
|
|
867
|
-
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
868
|
-
}
|
|
869
|
-
export namespace Invitation {
|
|
870
|
-
/**
|
|
871
|
-
* Defined in:
|
|
872
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
873
|
-
*/
|
|
874
|
-
export enum Type {
|
|
875
|
-
INTERACTIVE = 0,
|
|
876
|
-
DELEGATED = 1,
|
|
877
|
-
MULTIUSE = 2
|
|
878
|
-
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Defined in:
|
|
1062
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1063
|
+
*/
|
|
1064
|
+
export interface JoinSpaceResponse {
|
|
1065
|
+
space: Space;
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
* Defined in:
|
|
1069
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1070
|
+
*/
|
|
1071
|
+
export interface JoinBySpaceKeyRequest {
|
|
1072
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Defined in:
|
|
1076
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1077
|
+
*/
|
|
1078
|
+
export interface SpacesService {
|
|
1079
|
+
createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
|
|
1080
|
+
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
1081
|
+
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
1082
|
+
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
1083
|
+
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
1084
|
+
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
879
1085
|
/**
|
|
880
|
-
*
|
|
881
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1086
|
+
* Broadcast an ephemeral message to the space swarm.
|
|
882
1087
|
*/
|
|
883
|
-
|
|
884
|
-
DEVICE = 0,
|
|
885
|
-
SPACE = 1
|
|
886
|
-
}
|
|
1088
|
+
postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
|
|
887
1089
|
/**
|
|
888
|
-
*
|
|
889
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1090
|
+
* Subscribe to messages from the space swarm.
|
|
890
1091
|
*/
|
|
891
|
-
|
|
892
|
-
NONE = 0,
|
|
893
|
-
SHARED_SECRET = 1,
|
|
894
|
-
KNOWN_PUBLIC_KEY = 2
|
|
895
|
-
}
|
|
1092
|
+
subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
|
|
896
1093
|
/**
|
|
897
|
-
*
|
|
898
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1094
|
+
* Write credentials to the space control feed.
|
|
899
1095
|
*/
|
|
900
|
-
|
|
901
|
-
INIT = 0,
|
|
902
|
-
CONNECTING = 1,
|
|
903
|
-
CONNECTED = 2,
|
|
904
|
-
READY_FOR_AUTHENTICATION = 3,
|
|
905
|
-
AUTHENTICATING = 4,
|
|
906
|
-
SUCCESS = 5,
|
|
907
|
-
CANCELLED = 6,
|
|
908
|
-
TIMEOUT = 7,
|
|
909
|
-
ERROR = 8,
|
|
910
|
-
EXPIRED = 9
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
/**
|
|
914
|
-
* Defined in:
|
|
915
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
916
|
-
*/
|
|
917
|
-
export interface AdmissionKeypair {
|
|
918
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1096
|
+
writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
|
|
919
1097
|
/**
|
|
920
|
-
*
|
|
921
|
-
* - proto3_optional = true
|
|
1098
|
+
* Query credentials from the space control feed.
|
|
922
1099
|
*/
|
|
923
|
-
|
|
1100
|
+
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
1101
|
+
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
924
1102
|
}
|
|
925
1103
|
/**
|
|
926
1104
|
* Defined in:
|
|
@@ -1051,178 +1229,3 @@ export interface NetworkService {
|
|
|
1051
1229
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1052
1230
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1053
1231
|
}
|
|
1054
|
-
/**
|
|
1055
|
-
* Defined in:
|
|
1056
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1057
|
-
*/
|
|
1058
|
-
export interface Metrics {
|
|
1059
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1060
|
-
values?: Metrics.KeyPair[];
|
|
1061
|
-
}
|
|
1062
|
-
export namespace Metrics {
|
|
1063
|
-
/**
|
|
1064
|
-
* Defined in:
|
|
1065
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1066
|
-
*/
|
|
1067
|
-
export interface KeyPair {
|
|
1068
|
-
/**
|
|
1069
|
-
* Options:
|
|
1070
|
-
* - proto3_optional = true
|
|
1071
|
-
*/
|
|
1072
|
-
key?: string;
|
|
1073
|
-
/**
|
|
1074
|
-
* Options:
|
|
1075
|
-
* - proto3_optional = true
|
|
1076
|
-
*/
|
|
1077
|
-
value?: dxos_value.Value;
|
|
1078
|
-
/**
|
|
1079
|
-
* Options:
|
|
1080
|
-
* - proto3_optional = true
|
|
1081
|
-
*/
|
|
1082
|
-
stats?: dxos_value.Stats;
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
/**
|
|
1086
|
-
* Defined in:
|
|
1087
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1088
|
-
*/
|
|
1089
|
-
export interface ControlMetricsRequest {
|
|
1090
|
-
/**
|
|
1091
|
-
* Options:
|
|
1092
|
-
* - proto3_optional = true
|
|
1093
|
-
*/
|
|
1094
|
-
reset?: boolean;
|
|
1095
|
-
/**
|
|
1096
|
-
* Options:
|
|
1097
|
-
* - proto3_optional = true
|
|
1098
|
-
*/
|
|
1099
|
-
record?: boolean;
|
|
1100
|
-
}
|
|
1101
|
-
/**
|
|
1102
|
-
* Defined in:
|
|
1103
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1104
|
-
*/
|
|
1105
|
-
export interface ControlMetricsResponse {
|
|
1106
|
-
/**
|
|
1107
|
-
* Options:
|
|
1108
|
-
* - proto3_optional = true
|
|
1109
|
-
*/
|
|
1110
|
-
recording?: boolean;
|
|
1111
|
-
}
|
|
1112
|
-
/**
|
|
1113
|
-
* Defined in:
|
|
1114
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1115
|
-
*/
|
|
1116
|
-
export interface QueryMetricsRequest {
|
|
1117
|
-
/**
|
|
1118
|
-
* Options:
|
|
1119
|
-
* - proto3_optional = true
|
|
1120
|
-
*/
|
|
1121
|
-
interval?: number;
|
|
1122
|
-
}
|
|
1123
|
-
/**
|
|
1124
|
-
* Defined in:
|
|
1125
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1126
|
-
*/
|
|
1127
|
-
export interface QueryMetricsResponse {
|
|
1128
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1129
|
-
metrics: Metrics;
|
|
1130
|
-
}
|
|
1131
|
-
/**
|
|
1132
|
-
* Defined in:
|
|
1133
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1134
|
-
*/
|
|
1135
|
-
export enum LogLevel {
|
|
1136
|
-
TRACE = 5,
|
|
1137
|
-
DEBUG = 10,
|
|
1138
|
-
INFO = 11,
|
|
1139
|
-
WARN = 12,
|
|
1140
|
-
ERROR = 13
|
|
1141
|
-
}
|
|
1142
|
-
/**
|
|
1143
|
-
* Defined in:
|
|
1144
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1145
|
-
*/
|
|
1146
|
-
export interface QueryLogsRequest {
|
|
1147
|
-
filters?: QueryLogsRequest.Filter[];
|
|
1148
|
-
/**
|
|
1149
|
-
* Options:
|
|
1150
|
-
* - proto3_optional = true
|
|
1151
|
-
*/
|
|
1152
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
1153
|
-
}
|
|
1154
|
-
export namespace QueryLogsRequest {
|
|
1155
|
-
/**
|
|
1156
|
-
* Defined in:
|
|
1157
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1158
|
-
*/
|
|
1159
|
-
export enum MatchingOptions {
|
|
1160
|
-
INCLUSIVE = 1,
|
|
1161
|
-
EXPLICIT = 2
|
|
1162
|
-
}
|
|
1163
|
-
/**
|
|
1164
|
-
* Defined in:
|
|
1165
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1166
|
-
*/
|
|
1167
|
-
export interface Filter {
|
|
1168
|
-
level: LogLevel;
|
|
1169
|
-
/**
|
|
1170
|
-
* Options:
|
|
1171
|
-
* - proto3_optional = true
|
|
1172
|
-
*/
|
|
1173
|
-
pattern?: string;
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
/**
|
|
1177
|
-
* Defined in:
|
|
1178
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1179
|
-
*/
|
|
1180
|
-
export interface LogEntry {
|
|
1181
|
-
level: LogLevel;
|
|
1182
|
-
message: string;
|
|
1183
|
-
/**
|
|
1184
|
-
* Options:
|
|
1185
|
-
* - proto3_optional = true
|
|
1186
|
-
*/
|
|
1187
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1188
|
-
/**
|
|
1189
|
-
* Options:
|
|
1190
|
-
* - proto3_optional = true
|
|
1191
|
-
*/
|
|
1192
|
-
meta?: LogEntry.Meta;
|
|
1193
|
-
/**
|
|
1194
|
-
* Options:
|
|
1195
|
-
* - proto3_optional = true
|
|
1196
|
-
*/
|
|
1197
|
-
error?: dxos_error.Error;
|
|
1198
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1199
|
-
}
|
|
1200
|
-
export namespace LogEntry {
|
|
1201
|
-
/**
|
|
1202
|
-
* Defined in:
|
|
1203
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1204
|
-
*/
|
|
1205
|
-
export interface Meta {
|
|
1206
|
-
file: string;
|
|
1207
|
-
line: number;
|
|
1208
|
-
/**
|
|
1209
|
-
* Options:
|
|
1210
|
-
* - proto3_optional = true
|
|
1211
|
-
*/
|
|
1212
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1213
|
-
/**
|
|
1214
|
-
* Options:
|
|
1215
|
-
* - proto3_optional = true
|
|
1216
|
-
*/
|
|
1217
|
-
resourceId?: number;
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
/**
|
|
1221
|
-
* Defined in:
|
|
1222
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1223
|
-
*/
|
|
1224
|
-
export interface LoggingService {
|
|
1225
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1226
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1227
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1228
|
-
}
|