@dxos/protocols 0.6.3-main.cc41ccb → 0.6.3-main.d76104f
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 +5 -0
- 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 +5 -0
- 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 +5 -0
- package/src/proto/gen/index.ts +4 -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/logging.proto}
|
|
15
|
+
*/
|
|
16
|
+
export interface Metrics {
|
|
17
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
18
|
+
values?: Metrics.KeyPair[];
|
|
19
|
+
}
|
|
20
|
+
export declare namespace Metrics {
|
|
21
|
+
/**
|
|
22
|
+
* Defined in:
|
|
23
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
24
|
+
*/
|
|
25
|
+
interface KeyPair {
|
|
26
|
+
/**
|
|
27
|
+
* Options:
|
|
28
|
+
* - proto3_optional = true
|
|
29
|
+
*/
|
|
30
|
+
key?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Options:
|
|
33
|
+
* - proto3_optional = true
|
|
34
|
+
*/
|
|
35
|
+
value?: dxos_value.Value;
|
|
36
|
+
/**
|
|
37
|
+
* Options:
|
|
38
|
+
* - proto3_optional = true
|
|
39
|
+
*/
|
|
40
|
+
stats?: dxos_value.Stats;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Defined in:
|
|
45
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
46
|
+
*/
|
|
47
|
+
export interface ControlMetricsRequest {
|
|
48
|
+
/**
|
|
49
|
+
* Options:
|
|
50
|
+
* - proto3_optional = true
|
|
51
|
+
*/
|
|
52
|
+
reset?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Options:
|
|
55
|
+
* - proto3_optional = true
|
|
56
|
+
*/
|
|
57
|
+
record?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Defined in:
|
|
61
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
62
|
+
*/
|
|
63
|
+
export interface ControlMetricsResponse {
|
|
64
|
+
/**
|
|
65
|
+
* Options:
|
|
66
|
+
* - proto3_optional = true
|
|
67
|
+
*/
|
|
68
|
+
recording?: boolean;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Defined in:
|
|
72
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
73
|
+
*/
|
|
74
|
+
export interface QueryMetricsRequest {
|
|
75
|
+
/**
|
|
76
|
+
* Options:
|
|
77
|
+
* - proto3_optional = true
|
|
78
|
+
*/
|
|
79
|
+
interval?: number;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Defined in:
|
|
83
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
84
|
+
*/
|
|
85
|
+
export interface QueryMetricsResponse {
|
|
86
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
87
|
+
metrics: Metrics;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Defined in:
|
|
91
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
92
|
+
*/
|
|
93
|
+
export declare enum LogLevel {
|
|
94
|
+
NONE = 0,
|
|
95
|
+
TRACE = 5,
|
|
96
|
+
DEBUG = 10,
|
|
97
|
+
INFO = 11,
|
|
98
|
+
WARN = 12,
|
|
99
|
+
ERROR = 13
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Defined in:
|
|
103
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
104
|
+
*/
|
|
105
|
+
export interface QueryLogsRequest {
|
|
106
|
+
filters?: QueryLogsRequest.Filter[];
|
|
107
|
+
/**
|
|
108
|
+
* Options:
|
|
109
|
+
* - proto3_optional = true
|
|
110
|
+
*/
|
|
111
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
112
|
+
}
|
|
113
|
+
export declare namespace QueryLogsRequest {
|
|
114
|
+
/**
|
|
115
|
+
* Defined in:
|
|
116
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
117
|
+
*/
|
|
118
|
+
enum MatchingOptions {
|
|
119
|
+
NONE = 0,
|
|
120
|
+
INCLUSIVE = 1,
|
|
121
|
+
EXPLICIT = 2
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Defined in:
|
|
125
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
126
|
+
*/
|
|
127
|
+
interface Filter {
|
|
128
|
+
level: LogLevel;
|
|
129
|
+
/**
|
|
130
|
+
* Options:
|
|
131
|
+
* - proto3_optional = true
|
|
132
|
+
*/
|
|
133
|
+
pattern?: string;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Defined in:
|
|
138
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
139
|
+
*/
|
|
140
|
+
export interface LogEntry {
|
|
141
|
+
level: LogLevel;
|
|
142
|
+
message: string;
|
|
143
|
+
/**
|
|
144
|
+
* Options:
|
|
145
|
+
* - proto3_optional = true
|
|
146
|
+
*/
|
|
147
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
148
|
+
/**
|
|
149
|
+
* Options:
|
|
150
|
+
* - proto3_optional = true
|
|
151
|
+
*/
|
|
152
|
+
meta?: LogEntry.Meta;
|
|
153
|
+
/**
|
|
154
|
+
* Options:
|
|
155
|
+
* - proto3_optional = true
|
|
156
|
+
*/
|
|
157
|
+
error?: dxos_error.Error;
|
|
158
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
159
|
+
}
|
|
160
|
+
export declare namespace LogEntry {
|
|
161
|
+
/**
|
|
162
|
+
* Defined in:
|
|
163
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
164
|
+
*/
|
|
165
|
+
interface Meta {
|
|
166
|
+
file: string;
|
|
167
|
+
line: number;
|
|
168
|
+
/**
|
|
169
|
+
* Options:
|
|
170
|
+
* - proto3_optional = true
|
|
171
|
+
*/
|
|
172
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
173
|
+
/**
|
|
174
|
+
* Options:
|
|
175
|
+
* - proto3_optional = true
|
|
176
|
+
*/
|
|
177
|
+
resourceId?: number;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Defined in:
|
|
182
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
183
|
+
*/
|
|
184
|
+
export interface LoggingService {
|
|
185
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
186
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
187
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Defined in:
|
|
191
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
192
|
+
*/
|
|
193
|
+
export interface AdmissionKeypair {
|
|
194
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
195
|
+
/**
|
|
196
|
+
* Options:
|
|
197
|
+
* - proto3_optional = true
|
|
198
|
+
*/
|
|
199
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Runtime state of the space object.
|
|
203
|
+
*
|
|
204
|
+
* Defined in:
|
|
205
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
206
|
+
*/
|
|
207
|
+
export declare enum SpaceState {
|
|
208
|
+
INVALID = 0,
|
|
209
|
+
SPACE_INACTIVE = 2,
|
|
210
|
+
SPACE_ACTIVE = 6,
|
|
211
|
+
SPACE_CLOSED = 1,
|
|
212
|
+
SPACE_CONTROL_ONLY = 7,
|
|
213
|
+
SPACE_INITIALIZING = 4,
|
|
214
|
+
SPACE_READY = 3,
|
|
215
|
+
SPACE_ERROR = 5,
|
|
216
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Represents the invitation state passed between client and service.
|
|
220
|
+
*
|
|
221
|
+
* Defined in:
|
|
222
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
223
|
+
*/
|
|
224
|
+
export interface Invitation {
|
|
225
|
+
/**
|
|
226
|
+
* Local identifier (random).
|
|
227
|
+
*/
|
|
228
|
+
invitationId: string;
|
|
229
|
+
/**
|
|
230
|
+
* Determines the behavior of the invitation.
|
|
231
|
+
*/
|
|
232
|
+
type: Invitation.Type;
|
|
233
|
+
/**
|
|
234
|
+
* Kind of access the invitation will grant.
|
|
235
|
+
*/
|
|
236
|
+
kind: Invitation.Kind;
|
|
237
|
+
/**
|
|
238
|
+
* How the invitation is authenticated.
|
|
239
|
+
*/
|
|
240
|
+
authMethod: Invitation.AuthMethod;
|
|
241
|
+
/**
|
|
242
|
+
* Swarm rendezvous (random).
|
|
243
|
+
*/
|
|
244
|
+
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
245
|
+
/**
|
|
246
|
+
* Local state.
|
|
247
|
+
*/
|
|
248
|
+
state: Invitation.State;
|
|
249
|
+
/**
|
|
250
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
251
|
+
*
|
|
252
|
+
* Options:
|
|
253
|
+
* - proto3_optional = true
|
|
254
|
+
*/
|
|
255
|
+
timeout?: number;
|
|
256
|
+
/**
|
|
257
|
+
* Guest's identity.
|
|
258
|
+
*
|
|
259
|
+
* Options:
|
|
260
|
+
* - proto3_optional = true
|
|
261
|
+
*/
|
|
262
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
263
|
+
/**
|
|
264
|
+
* Space to join (only present if kind is SPACE).
|
|
265
|
+
*
|
|
266
|
+
* Options:
|
|
267
|
+
* - proto3_optional = true
|
|
268
|
+
*/
|
|
269
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
270
|
+
/**
|
|
271
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
272
|
+
*
|
|
273
|
+
* Options:
|
|
274
|
+
* - proto3_optional = true
|
|
275
|
+
*/
|
|
276
|
+
authCode?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Path or identifier to navigate to after successful authentication.
|
|
279
|
+
*
|
|
280
|
+
* Options:
|
|
281
|
+
* - proto3_optional = true
|
|
282
|
+
*/
|
|
283
|
+
target?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Host should resume invitation on startup until timeout.
|
|
286
|
+
*
|
|
287
|
+
* Options:
|
|
288
|
+
* - proto3_optional = true
|
|
289
|
+
*/
|
|
290
|
+
persistent?: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Options:
|
|
293
|
+
* - proto3_optional = true
|
|
294
|
+
*/
|
|
295
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
296
|
+
/**
|
|
297
|
+
* Options:
|
|
298
|
+
* - proto3_optional = true
|
|
299
|
+
*/
|
|
300
|
+
lifetime?: number;
|
|
301
|
+
/**
|
|
302
|
+
* Whether an invitation can be used multiple times.
|
|
303
|
+
*
|
|
304
|
+
* Options:
|
|
305
|
+
* - proto3_optional = true
|
|
306
|
+
*/
|
|
307
|
+
multiUse?: boolean;
|
|
308
|
+
/**
|
|
309
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
310
|
+
*
|
|
311
|
+
* Options:
|
|
312
|
+
* - proto3_optional = true
|
|
313
|
+
*/
|
|
314
|
+
guestKeypair?: AdmissionKeypair;
|
|
315
|
+
/**
|
|
316
|
+
* Present on Type.DELEGATED invitations.
|
|
317
|
+
*
|
|
318
|
+
* Options:
|
|
319
|
+
* - proto3_optional = true
|
|
320
|
+
*/
|
|
321
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
322
|
+
/**
|
|
323
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
324
|
+
*
|
|
325
|
+
* Options:
|
|
326
|
+
* - proto3_optional = true
|
|
327
|
+
*/
|
|
328
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
329
|
+
}
|
|
330
|
+
export declare namespace Invitation {
|
|
331
|
+
/**
|
|
332
|
+
* Defined in:
|
|
333
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
334
|
+
*/
|
|
335
|
+
enum Type {
|
|
336
|
+
INTERACTIVE = 0,
|
|
337
|
+
DELEGATED = 1,
|
|
338
|
+
MULTIUSE = 2
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Defined in:
|
|
342
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
343
|
+
*/
|
|
344
|
+
enum Kind {
|
|
345
|
+
DEVICE = 0,
|
|
346
|
+
SPACE = 1
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Defined in:
|
|
350
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
351
|
+
*/
|
|
352
|
+
enum AuthMethod {
|
|
353
|
+
NONE = 0,
|
|
354
|
+
SHARED_SECRET = 1,
|
|
355
|
+
KNOWN_PUBLIC_KEY = 2
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Defined in:
|
|
359
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
360
|
+
*/
|
|
361
|
+
enum State {
|
|
362
|
+
INIT = 0,
|
|
363
|
+
CONNECTING = 1,
|
|
364
|
+
CONNECTED = 2,
|
|
365
|
+
READY_FOR_AUTHENTICATION = 3,
|
|
366
|
+
AUTHENTICATING = 4,
|
|
367
|
+
SUCCESS = 5,
|
|
368
|
+
CANCELLED = 6,
|
|
369
|
+
TIMEOUT = 7,
|
|
370
|
+
ERROR = 8,
|
|
371
|
+
EXPIRED = 9
|
|
372
|
+
}
|
|
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}
|
|
@@ -658,216 +1004,48 @@ export interface AdmitContactRequest {
|
|
|
658
1004
|
export interface ContactAdmission {
|
|
659
1005
|
credential: dxos_halo_credentials.Credential;
|
|
660
1006
|
}
|
|
661
|
-
/**
|
|
662
|
-
* Defined in:
|
|
663
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
664
|
-
*/
|
|
665
|
-
export interface JoinSpaceResponse {
|
|
666
|
-
space: Space;
|
|
667
|
-
}
|
|
668
|
-
/**
|
|
669
|
-
* Defined in:
|
|
670
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
671
|
-
*/
|
|
672
|
-
export interface JoinBySpaceKeyRequest {
|
|
673
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
674
|
-
}
|
|
675
|
-
/**
|
|
676
|
-
* Defined in:
|
|
677
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
678
|
-
*/
|
|
679
|
-
export interface SpacesService {
|
|
680
|
-
createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
|
|
681
|
-
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
682
|
-
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
683
|
-
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
684
|
-
admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
|
|
685
|
-
joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
|
|
686
|
-
/**
|
|
687
|
-
* Broadcast an ephemeral message to the space swarm.
|
|
688
|
-
*/
|
|
689
|
-
postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
|
|
690
|
-
/**
|
|
691
|
-
* Subscribe to messages from the space swarm.
|
|
692
|
-
*/
|
|
693
|
-
subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
|
|
694
|
-
/**
|
|
695
|
-
* Write credentials to the space control feed.
|
|
696
|
-
*/
|
|
697
|
-
writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
|
|
698
|
-
/**
|
|
699
|
-
* Query credentials from the space control feed.
|
|
700
|
-
*/
|
|
701
|
-
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
702
|
-
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
703
|
-
}
|
|
704
|
-
/**
|
|
705
|
-
* Represents the invitation state passed between client and service.
|
|
706
|
-
*
|
|
707
|
-
* Defined in:
|
|
708
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
709
|
-
*/
|
|
710
|
-
export interface Invitation {
|
|
711
|
-
/**
|
|
712
|
-
* Local identifier (random).
|
|
713
|
-
*/
|
|
714
|
-
invitationId: string;
|
|
715
|
-
/**
|
|
716
|
-
* Determines the behavior of the invitation.
|
|
717
|
-
*/
|
|
718
|
-
type: Invitation.Type;
|
|
719
|
-
/**
|
|
720
|
-
* Kind of access the invitation will grant.
|
|
721
|
-
*/
|
|
722
|
-
kind: Invitation.Kind;
|
|
723
|
-
/**
|
|
724
|
-
* How the invitation is authenticated.
|
|
725
|
-
*/
|
|
726
|
-
authMethod: Invitation.AuthMethod;
|
|
727
|
-
/**
|
|
728
|
-
* Swarm rendezvous (random).
|
|
729
|
-
*/
|
|
730
|
-
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
731
|
-
/**
|
|
732
|
-
* Local state.
|
|
733
|
-
*/
|
|
734
|
-
state: Invitation.State;
|
|
735
|
-
/**
|
|
736
|
-
* Timeout for guest to complete invitation once connected (ms).
|
|
737
|
-
*
|
|
738
|
-
* Options:
|
|
739
|
-
* - proto3_optional = true
|
|
740
|
-
*/
|
|
741
|
-
timeout?: number;
|
|
742
|
-
/**
|
|
743
|
-
* Guest's identity.
|
|
744
|
-
*
|
|
745
|
-
* Options:
|
|
746
|
-
* - proto3_optional = true
|
|
747
|
-
*/
|
|
748
|
-
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
749
|
-
/**
|
|
750
|
-
* Space to join (only present if kind is SPACE).
|
|
751
|
-
*
|
|
752
|
-
* Options:
|
|
753
|
-
* - proto3_optional = true
|
|
754
|
-
*/
|
|
755
|
-
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
756
|
-
/**
|
|
757
|
-
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
758
|
-
*
|
|
759
|
-
* Options:
|
|
760
|
-
* - proto3_optional = true
|
|
761
|
-
*/
|
|
762
|
-
authCode?: string;
|
|
763
|
-
/**
|
|
764
|
-
* Path or identifier to navigate to after successful authentication.
|
|
765
|
-
*
|
|
766
|
-
* Options:
|
|
767
|
-
* - proto3_optional = true
|
|
768
|
-
*/
|
|
769
|
-
target?: string;
|
|
770
|
-
/**
|
|
771
|
-
* Host should resume invitation on startup until timeout.
|
|
772
|
-
*
|
|
773
|
-
* Options:
|
|
774
|
-
* - proto3_optional = true
|
|
775
|
-
*/
|
|
776
|
-
persistent?: boolean;
|
|
777
|
-
/**
|
|
778
|
-
* Options:
|
|
779
|
-
* - proto3_optional = true
|
|
780
|
-
*/
|
|
781
|
-
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
782
|
-
/**
|
|
783
|
-
* Options:
|
|
784
|
-
* - proto3_optional = true
|
|
785
|
-
*/
|
|
786
|
-
lifetime?: number;
|
|
787
|
-
/**
|
|
788
|
-
* Whether an invitation can be used multiple times.
|
|
789
|
-
*
|
|
790
|
-
* Options:
|
|
791
|
-
* - proto3_optional = true
|
|
792
|
-
*/
|
|
793
|
-
multiUse?: boolean;
|
|
794
|
-
/**
|
|
795
|
-
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
796
|
-
*
|
|
797
|
-
* Options:
|
|
798
|
-
* - proto3_optional = true
|
|
799
|
-
*/
|
|
800
|
-
guestKeypair?: AdmissionKeypair;
|
|
801
|
-
/**
|
|
802
|
-
* Present on Type.DELEGATED invitations.
|
|
803
|
-
*
|
|
804
|
-
* Options:
|
|
805
|
-
* - proto3_optional = true
|
|
806
|
-
*/
|
|
807
|
-
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
808
|
-
/**
|
|
809
|
-
* Role of the admitted member, defaults to ADMIN.
|
|
810
|
-
*
|
|
811
|
-
* Options:
|
|
812
|
-
* - proto3_optional = true
|
|
813
|
-
*/
|
|
814
|
-
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
815
|
-
}
|
|
816
|
-
export declare namespace Invitation {
|
|
817
|
-
/**
|
|
818
|
-
* Defined in:
|
|
819
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
820
|
-
*/
|
|
821
|
-
enum Type {
|
|
822
|
-
INTERACTIVE = 0,
|
|
823
|
-
DELEGATED = 1,
|
|
824
|
-
MULTIUSE = 2
|
|
825
|
-
}
|
|
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>;
|
|
826
1032
|
/**
|
|
827
|
-
*
|
|
828
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1033
|
+
* Broadcast an ephemeral message to the space swarm.
|
|
829
1034
|
*/
|
|
830
|
-
|
|
831
|
-
DEVICE = 0,
|
|
832
|
-
SPACE = 1
|
|
833
|
-
}
|
|
1035
|
+
postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
|
|
834
1036
|
/**
|
|
835
|
-
*
|
|
836
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1037
|
+
* Subscribe to messages from the space swarm.
|
|
837
1038
|
*/
|
|
838
|
-
|
|
839
|
-
NONE = 0,
|
|
840
|
-
SHARED_SECRET = 1,
|
|
841
|
-
KNOWN_PUBLIC_KEY = 2
|
|
842
|
-
}
|
|
1039
|
+
subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
|
|
843
1040
|
/**
|
|
844
|
-
*
|
|
845
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1041
|
+
* Write credentials to the space control feed.
|
|
846
1042
|
*/
|
|
847
|
-
|
|
848
|
-
INIT = 0,
|
|
849
|
-
CONNECTING = 1,
|
|
850
|
-
CONNECTED = 2,
|
|
851
|
-
READY_FOR_AUTHENTICATION = 3,
|
|
852
|
-
AUTHENTICATING = 4,
|
|
853
|
-
SUCCESS = 5,
|
|
854
|
-
CANCELLED = 6,
|
|
855
|
-
TIMEOUT = 7,
|
|
856
|
-
ERROR = 8,
|
|
857
|
-
EXPIRED = 9
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
/**
|
|
861
|
-
* Defined in:
|
|
862
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
863
|
-
*/
|
|
864
|
-
export interface AdmissionKeypair {
|
|
865
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1043
|
+
writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
|
|
866
1044
|
/**
|
|
867
|
-
*
|
|
868
|
-
* - proto3_optional = true
|
|
1045
|
+
* Query credentials from the space control feed.
|
|
869
1046
|
*/
|
|
870
|
-
|
|
1047
|
+
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
1048
|
+
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
871
1049
|
}
|
|
872
1050
|
/**
|
|
873
1051
|
* Defined in:
|
|
@@ -998,179 +1176,4 @@ export interface NetworkService {
|
|
|
998
1176
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
999
1177
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1000
1178
|
}
|
|
1001
|
-
/**
|
|
1002
|
-
* Defined in:
|
|
1003
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1004
|
-
*/
|
|
1005
|
-
export interface Metrics {
|
|
1006
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1007
|
-
values?: Metrics.KeyPair[];
|
|
1008
|
-
}
|
|
1009
|
-
export declare namespace Metrics {
|
|
1010
|
-
/**
|
|
1011
|
-
* Defined in:
|
|
1012
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1013
|
-
*/
|
|
1014
|
-
interface KeyPair {
|
|
1015
|
-
/**
|
|
1016
|
-
* Options:
|
|
1017
|
-
* - proto3_optional = true
|
|
1018
|
-
*/
|
|
1019
|
-
key?: string;
|
|
1020
|
-
/**
|
|
1021
|
-
* Options:
|
|
1022
|
-
* - proto3_optional = true
|
|
1023
|
-
*/
|
|
1024
|
-
value?: dxos_value.Value;
|
|
1025
|
-
/**
|
|
1026
|
-
* Options:
|
|
1027
|
-
* - proto3_optional = true
|
|
1028
|
-
*/
|
|
1029
|
-
stats?: dxos_value.Stats;
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
/**
|
|
1033
|
-
* Defined in:
|
|
1034
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1035
|
-
*/
|
|
1036
|
-
export interface ControlMetricsRequest {
|
|
1037
|
-
/**
|
|
1038
|
-
* Options:
|
|
1039
|
-
* - proto3_optional = true
|
|
1040
|
-
*/
|
|
1041
|
-
reset?: boolean;
|
|
1042
|
-
/**
|
|
1043
|
-
* Options:
|
|
1044
|
-
* - proto3_optional = true
|
|
1045
|
-
*/
|
|
1046
|
-
record?: boolean;
|
|
1047
|
-
}
|
|
1048
|
-
/**
|
|
1049
|
-
* Defined in:
|
|
1050
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1051
|
-
*/
|
|
1052
|
-
export interface ControlMetricsResponse {
|
|
1053
|
-
/**
|
|
1054
|
-
* Options:
|
|
1055
|
-
* - proto3_optional = true
|
|
1056
|
-
*/
|
|
1057
|
-
recording?: boolean;
|
|
1058
|
-
}
|
|
1059
|
-
/**
|
|
1060
|
-
* Defined in:
|
|
1061
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1062
|
-
*/
|
|
1063
|
-
export interface QueryMetricsRequest {
|
|
1064
|
-
/**
|
|
1065
|
-
* Options:
|
|
1066
|
-
* - proto3_optional = true
|
|
1067
|
-
*/
|
|
1068
|
-
interval?: number;
|
|
1069
|
-
}
|
|
1070
|
-
/**
|
|
1071
|
-
* Defined in:
|
|
1072
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1073
|
-
*/
|
|
1074
|
-
export interface QueryMetricsResponse {
|
|
1075
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1076
|
-
metrics: Metrics;
|
|
1077
|
-
}
|
|
1078
|
-
/**
|
|
1079
|
-
* Defined in:
|
|
1080
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1081
|
-
*/
|
|
1082
|
-
export declare enum LogLevel {
|
|
1083
|
-
TRACE = 5,
|
|
1084
|
-
DEBUG = 10,
|
|
1085
|
-
INFO = 11,
|
|
1086
|
-
WARN = 12,
|
|
1087
|
-
ERROR = 13
|
|
1088
|
-
}
|
|
1089
|
-
/**
|
|
1090
|
-
* Defined in:
|
|
1091
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1092
|
-
*/
|
|
1093
|
-
export interface QueryLogsRequest {
|
|
1094
|
-
filters?: QueryLogsRequest.Filter[];
|
|
1095
|
-
/**
|
|
1096
|
-
* Options:
|
|
1097
|
-
* - proto3_optional = true
|
|
1098
|
-
*/
|
|
1099
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
1100
|
-
}
|
|
1101
|
-
export declare namespace QueryLogsRequest {
|
|
1102
|
-
/**
|
|
1103
|
-
* Defined in:
|
|
1104
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1105
|
-
*/
|
|
1106
|
-
enum MatchingOptions {
|
|
1107
|
-
INCLUSIVE = 1,
|
|
1108
|
-
EXPLICIT = 2
|
|
1109
|
-
}
|
|
1110
|
-
/**
|
|
1111
|
-
* Defined in:
|
|
1112
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1113
|
-
*/
|
|
1114
|
-
interface Filter {
|
|
1115
|
-
level: LogLevel;
|
|
1116
|
-
/**
|
|
1117
|
-
* Options:
|
|
1118
|
-
* - proto3_optional = true
|
|
1119
|
-
*/
|
|
1120
|
-
pattern?: string;
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
/**
|
|
1124
|
-
* Defined in:
|
|
1125
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1126
|
-
*/
|
|
1127
|
-
export interface LogEntry {
|
|
1128
|
-
level: LogLevel;
|
|
1129
|
-
message: string;
|
|
1130
|
-
/**
|
|
1131
|
-
* Options:
|
|
1132
|
-
* - proto3_optional = true
|
|
1133
|
-
*/
|
|
1134
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1135
|
-
/**
|
|
1136
|
-
* Options:
|
|
1137
|
-
* - proto3_optional = true
|
|
1138
|
-
*/
|
|
1139
|
-
meta?: LogEntry.Meta;
|
|
1140
|
-
/**
|
|
1141
|
-
* Options:
|
|
1142
|
-
* - proto3_optional = true
|
|
1143
|
-
*/
|
|
1144
|
-
error?: dxos_error.Error;
|
|
1145
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1146
|
-
}
|
|
1147
|
-
export declare namespace LogEntry {
|
|
1148
|
-
/**
|
|
1149
|
-
* Defined in:
|
|
1150
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1151
|
-
*/
|
|
1152
|
-
interface Meta {
|
|
1153
|
-
file: string;
|
|
1154
|
-
line: number;
|
|
1155
|
-
/**
|
|
1156
|
-
* Options:
|
|
1157
|
-
* - proto3_optional = true
|
|
1158
|
-
*/
|
|
1159
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1160
|
-
/**
|
|
1161
|
-
* Options:
|
|
1162
|
-
* - proto3_optional = true
|
|
1163
|
-
*/
|
|
1164
|
-
resourceId?: number;
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
/**
|
|
1168
|
-
* Defined in:
|
|
1169
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1170
|
-
*/
|
|
1171
|
-
export interface LoggingService {
|
|
1172
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1173
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1174
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1175
|
-
}
|
|
1176
1179
|
//# sourceMappingURL=services.d.ts.map
|