@dxos/protocols 0.8.4-main.c85a9c8dae → 0.8.4-main.d05673bc65

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.
@@ -13,788 +13,817 @@ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip.js";
13
13
  import * as dxos_value from "../value.js";
14
14
  /**
15
15
  * Defined in:
16
- * {@link file://./../../../dxos/client/queue.proto}
16
+ * {@link file://./../../../dxos/client/services.proto}
17
17
  */
18
- export interface QueueQuery {
19
- spaceId: string;
18
+ export declare enum SystemStatus {
19
+ INACTIVE = 0,
20
+ ACTIVE = 1
21
+ }
22
+ /**
23
+ * Defined in:
24
+ * {@link file://./../../../dxos/client/services.proto}
25
+ */
26
+ export interface UpdateStatusRequest {
27
+ status: SystemStatus;
28
+ }
29
+ /**
30
+ * Defined in:
31
+ * {@link file://./../../../dxos/client/services.proto}
32
+ */
33
+ export interface QueryStatusRequest {
20
34
  /**
21
35
  * Options:
22
36
  * - proto3_optional = true
23
37
  */
24
- queuesNamespace?: string;
38
+ interval?: number;
39
+ }
40
+ /**
41
+ * Defined in:
42
+ * {@link file://./../../../dxos/client/services.proto}
43
+ */
44
+ export interface QueryStatusResponse {
45
+ status: SystemStatus;
46
+ }
47
+ /**
48
+ * Defined in:
49
+ * {@link file://./../../../dxos/client/services.proto}
50
+ */
51
+ export interface GetDiagnosticsRequest {
25
52
  /**
26
- * Queries the whole space if missing.
53
+ * Options:
54
+ * - proto3_optional = true
27
55
  */
28
- queueIds?: string[];
56
+ keys?: GetDiagnosticsRequest.KEY_OPTION;
57
+ }
58
+ export declare namespace GetDiagnosticsRequest {
29
59
  /**
30
- * Filter items after this cursor. Exclusive.
60
+ * Defined in:
61
+ * {@link file://./../../../dxos/client/services.proto}
62
+ */
63
+ enum KEY_OPTION {
64
+ NONE = 0,
65
+ TRUNCATE = 1,
66
+ HUMANIZE = 2
67
+ }
68
+ }
69
+ /**
70
+ * Defined in:
71
+ * {@link file://./../../../dxos/client/services.proto}
72
+ */
73
+ export interface GetDiagnosticsResponse {
74
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
75
+ diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
76
+ }
77
+ /**
78
+ * Defined in:
79
+ * {@link file://./../../../dxos/client/services.proto}
80
+ */
81
+ export interface Platform {
82
+ type: Platform.PLATFORM_TYPE;
83
+ /**
84
+ * The User-Agent string from a browser
31
85
  *
32
86
  * Options:
33
87
  * - proto3_optional = true
34
88
  */
35
- after?: string;
89
+ userAgent?: string;
36
90
  /**
37
- * Filter items before this cursor. Exclusive.
91
+ * e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
38
92
  *
39
93
  * Options:
40
94
  * - proto3_optional = true
41
95
  */
42
- before?: string;
96
+ platform?: string;
43
97
  /**
44
- * Filter items after this position. Inclusive.
98
+ * the Node.JS arch string, e.g. 'arm64', 'x64'
45
99
  *
46
100
  * Options:
47
101
  * - proto3_optional = true
48
102
  */
49
- beginPosition?: string;
103
+ arch?: string;
50
104
  /**
51
- * Filter items before this position. Exclusive.
105
+ * the node.js version string
52
106
  *
53
107
  * Options:
54
108
  * - proto3_optional = true
55
109
  */
56
- endPosition?: string;
110
+ runtime?: string;
57
111
  /**
112
+ * the number of seconds the client has been up
113
+ *
58
114
  * Options:
59
115
  * - proto3_optional = true
60
116
  */
61
- limit?: number;
117
+ uptime?: number;
62
118
  /**
119
+ * e.g. NodeJS.MemoryUsage, subject to change
120
+ *
63
121
  * Options:
64
122
  * - proto3_optional = true
65
123
  */
66
- reverse?: boolean;
67
- objectIds?: string[];
124
+ memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
68
125
  }
69
- /**
70
- * Defined in:
71
- * {@link file://./../../../dxos/client/queue.proto}
72
- */
73
- export interface QueueQueryResult {
74
- objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
126
+ export declare namespace Platform {
75
127
  /**
76
- * Cursor to query the next items. Can be passed to `after` in query to keep querying.
128
+ * Defined in:
129
+ * {@link file://./../../../dxos/client/services.proto}
77
130
  */
78
- nextCursor: string;
79
- prevCursor: string;
80
- }
81
- /**
82
- * Defined in:
83
- * {@link file://./../../../dxos/client/queue.proto}
84
- */
85
- export interface QueryQueueRequest {
86
- query: QueueQuery;
87
- }
88
- /**
89
- * Defined in:
90
- * {@link file://./../../../dxos/client/queue.proto}
91
- */
92
- export interface InsertIntoQueueRequest {
93
- subspaceTag: string;
94
- spaceId: string;
95
- queueId: string;
96
- objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
131
+ enum PLATFORM_TYPE {
132
+ BROWSER = 0,
133
+ SHARED_WORKER = 1,
134
+ NODE = 2,
135
+ DEDICATED_WORKER = 3
136
+ }
97
137
  }
98
138
  /**
99
139
  * Defined in:
100
- * {@link file://./../../../dxos/client/queue.proto}
140
+ * {@link file://./../../../dxos/client/services.proto}
101
141
  */
102
- export interface DeleteFromQueueRequest {
103
- subspaceTag: string;
104
- spaceId: string;
105
- queueId: string;
106
- objectIds?: string[];
142
+ export interface SystemService {
143
+ /**
144
+ * Get the static config of the client.
145
+ */
146
+ getConfig: (request: void, options?: RequestOptions) => Promise<dxos_config.Config>;
147
+ /**
148
+ * Get the diagnostics snapshot.
149
+ */
150
+ getDiagnostics: (request: GetDiagnosticsRequest, options?: RequestOptions) => Promise<GetDiagnosticsResponse>;
151
+ /**
152
+ * Update the status of the client. Used to re-activate an inactive client.
153
+ */
154
+ updateStatus: (request: UpdateStatusRequest, options?: RequestOptions) => Promise<void>;
155
+ /**
156
+ * Stream the status of the client.
157
+ */
158
+ queryStatus: (request: QueryStatusRequest, options?: RequestOptions) => Stream<QueryStatusResponse>;
159
+ /**
160
+ * Reset the client.
161
+ */
162
+ reset: (request: void, options?: RequestOptions) => Promise<void>;
163
+ /**
164
+ * Get platform Information
165
+ */
166
+ getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
107
167
  }
108
168
  /**
109
169
  * Defined in:
110
- * {@link file://./../../../dxos/client/queue.proto}
170
+ * {@link file://./../../../dxos/client/services.proto}
111
171
  */
112
- export interface SyncQueueRequest {
113
- subspaceTag: string;
114
- spaceId: string;
115
- queueId: string;
172
+ export interface Identity {
173
+ did: string;
174
+ identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
116
175
  /**
117
- * Whether to push local changes to the server. Defaults to true.
118
- *
119
176
  * Options:
120
177
  * - proto3_optional = true
121
178
  */
122
- shouldPush?: boolean;
179
+ spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
123
180
  /**
124
- * Whether to pull remote changes from the server. Defaults to true.
125
- *
126
181
  * Options:
127
182
  * - proto3_optional = true
128
183
  */
129
- shouldPull?: boolean;
184
+ profile?: dxos_halo_credentials.ProfileDocument;
130
185
  }
131
186
  /**
132
187
  * Defined in:
133
- * {@link file://./../../../dxos/client/queue.proto}
188
+ * {@link file://./../../../dxos/client/services.proto}
134
189
  */
135
- export interface QueueService {
136
- queryQueue: (request: QueryQueueRequest, options?: RequestOptions) => Promise<QueueQueryResult>;
137
- insertIntoQueue: (request: InsertIntoQueueRequest, options?: RequestOptions) => Promise<void>;
138
- deleteFromQueue: (request: DeleteFromQueueRequest, options?: RequestOptions) => Promise<void>;
139
- syncQueue: (request: SyncQueueRequest, options?: RequestOptions) => Promise<void>;
190
+ export interface RequestRecoveryChallengeResponse {
191
+ deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
192
+ controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
193
+ challenge: string;
140
194
  }
141
195
  /**
142
196
  * Defined in:
143
- * {@link file://./../../../dxos/client/logging.proto}
197
+ * {@link file://./../../../dxos/client/services.proto}
144
198
  */
145
- export interface Metrics {
146
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
147
- values?: Metrics.KeyPair[];
199
+ export interface RecoverIdentityRequest {
200
+ recoveryCode?: string;
201
+ external?: RecoverIdentityRequest.ExternalSignature;
202
+ token?: string;
148
203
  }
149
- export declare namespace Metrics {
204
+ export declare namespace RecoverIdentityRequest {
150
205
  /**
151
206
  * Defined in:
152
- * {@link file://./../../../dxos/client/logging.proto}
207
+ * {@link file://./../../../dxos/client/services.proto}
153
208
  */
154
- interface KeyPair {
155
- /**
156
- * Options:
157
- * - proto3_optional = true
158
- */
159
- key?: string;
209
+ interface ExternalSignature {
210
+ lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
211
+ deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
212
+ controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
213
+ signature: Uint8Array;
160
214
  /**
161
215
  * Options:
162
216
  * - proto3_optional = true
163
217
  */
164
- value?: dxos_value.Value;
218
+ clientDataJson?: Uint8Array;
165
219
  /**
166
220
  * Options:
167
221
  * - proto3_optional = true
168
222
  */
169
- stats?: dxos_value.Stats;
223
+ authenticatorData?: Uint8Array;
170
224
  }
171
225
  }
172
226
  /**
173
227
  * Defined in:
174
- * {@link file://./../../../dxos/client/logging.proto}
228
+ * {@link file://./../../../dxos/client/services.proto}
175
229
  */
176
- export interface ControlMetricsRequest {
230
+ export interface RecoveryCredentialData {
177
231
  /**
178
- * Options:
179
- * - proto3_optional = true
232
+ * Recovery key used to validate recovery challenge signature.
180
233
  */
181
- reset?: boolean;
234
+ recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
235
+ /**
236
+ * Public key used to identify the recovery key.
237
+ */
238
+ lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
239
+ /**
240
+ * Algorithm used to generate the recovery key.
241
+ */
242
+ algorithm: string;
243
+ }
244
+ /**
245
+ * Defined in:
246
+ * {@link file://./../../../dxos/client/services.proto}
247
+ */
248
+ export interface CreateRecoveryCredentialRequest {
182
249
  /**
250
+ * If not provided, a new key will be generated.
251
+ *
183
252
  * Options:
184
253
  * - proto3_optional = true
185
254
  */
186
- record?: boolean;
255
+ data?: RecoveryCredentialData;
187
256
  }
188
257
  /**
189
258
  * Defined in:
190
- * {@link file://./../../../dxos/client/logging.proto}
259
+ * {@link file://./../../../dxos/client/services.proto}
191
260
  */
192
- export interface ControlMetricsResponse {
261
+ export interface CreateRecoveryCredentialResponse {
193
262
  /**
194
263
  * Options:
195
264
  * - proto3_optional = true
196
265
  */
197
- recording?: boolean;
266
+ recoveryCode?: string;
198
267
  }
199
268
  /**
200
269
  * Defined in:
201
- * {@link file://./../../../dxos/client/logging.proto}
270
+ * {@link file://./../../../dxos/client/services.proto}
202
271
  */
203
- export interface QueryMetricsRequest {
272
+ export interface QueryIdentityResponse {
204
273
  /**
205
274
  * Options:
206
275
  * - proto3_optional = true
207
276
  */
208
- interval?: number;
277
+ identity?: Identity;
209
278
  }
210
279
  /**
211
280
  * Defined in:
212
- * {@link file://./../../../dxos/client/logging.proto}
281
+ * {@link file://./../../../dxos/client/services.proto}
213
282
  */
214
- export interface QueryMetricsResponse {
215
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
216
- metrics: Metrics;
217
- }
218
- /**
219
- * Defined in:
220
- * {@link file://./../../../dxos/client/logging.proto}
221
- */
222
- export declare enum LogLevel {
223
- NONE = 0,
224
- TRACE = 5,
225
- DEBUG = 10,
226
- VERBOSE = 11,
227
- INFO = 12,
228
- WARN = 13,
229
- ERROR = 14
230
- }
231
- /**
232
- * Defined in:
233
- * {@link file://./../../../dxos/client/logging.proto}
234
- */
235
- export interface QueryLogsRequest {
236
- filters?: QueryLogsRequest.Filter[];
283
+ export interface SignPresentationRequest {
284
+ presentation: dxos_halo_credentials.Presentation;
237
285
  /**
238
286
  * Options:
239
287
  * - proto3_optional = true
240
288
  */
241
- options?: QueryLogsRequest.MatchingOptions;
242
- }
243
- export declare namespace QueryLogsRequest {
244
- /**
245
- * Defined in:
246
- * {@link file://./../../../dxos/client/logging.proto}
247
- */
248
- enum MatchingOptions {
249
- NONE = 0,
250
- INCLUSIVE = 1,
251
- EXPLICIT = 2
252
- }
253
- /**
254
- * Defined in:
255
- * {@link file://./../../../dxos/client/logging.proto}
256
- */
257
- interface Filter {
258
- level: LogLevel;
259
- /**
260
- * Options:
261
- * - proto3_optional = true
262
- */
263
- pattern?: string;
264
- }
289
+ nonce?: Uint8Array;
265
290
  }
266
291
  /**
267
292
  * Defined in:
268
- * {@link file://./../../../dxos/client/logging.proto}
293
+ * {@link file://./../../../dxos/client/services.proto}
269
294
  */
270
- export interface LogEntry {
271
- level: LogLevel;
272
- message: string;
295
+ export interface CreateIdentityRequest {
273
296
  /**
274
297
  * Options:
275
298
  * - proto3_optional = true
276
299
  */
277
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
300
+ profile?: dxos_halo_credentials.ProfileDocument;
278
301
  /**
279
302
  * Options:
280
303
  * - proto3_optional = true
281
304
  */
282
- meta?: LogEntry.Meta;
305
+ deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
306
+ }
307
+ /**
308
+ * Defined in:
309
+ * {@link file://./../../../dxos/client/services.proto}
310
+ */
311
+ export interface IdentityService {
312
+ createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
313
+ requestRecoveryChallenge: (request: void, options?: RequestOptions) => Promise<RequestRecoveryChallengeResponse>;
314
+ recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
315
+ createRecoveryCredential: (request: CreateRecoveryCredentialRequest, options?: RequestOptions) => Promise<CreateRecoveryCredentialResponse>;
316
+ queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
317
+ updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
318
+ signPresentation: (request: SignPresentationRequest, options?: RequestOptions) => Promise<dxos_halo_credentials.Presentation>;
319
+ createAuthCredential: (request: void, options?: RequestOptions) => Promise<dxos_halo_credentials.Credential>;
320
+ }
321
+ /**
322
+ * Defined in:
323
+ * {@link file://./../../../dxos/client/services.proto}
324
+ */
325
+ export declare enum DeviceKind {
326
+ CURRENT = 0,
327
+ TRUSTED = 1
328
+ }
329
+ /**
330
+ * Defined in:
331
+ * {@link file://./../../../dxos/client/services.proto}
332
+ */
333
+ export interface Device {
334
+ deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
335
+ kind: DeviceKind;
283
336
  /**
284
337
  * Options:
285
338
  * - proto3_optional = true
286
339
  */
287
- error?: dxos_error.Error;
288
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
340
+ profile?: dxos_halo_credentials.DeviceProfileDocument;
341
+ presence: Device.PresenceState;
289
342
  }
290
- export declare namespace LogEntry {
343
+ export declare namespace Device {
291
344
  /**
292
345
  * Defined in:
293
- * {@link file://./../../../dxos/client/logging.proto}
346
+ * {@link file://./../../../dxos/client/services.proto}
294
347
  */
295
- interface Meta {
296
- file: string;
297
- line: number;
298
- /**
299
- * Options:
300
- * - proto3_optional = true
301
- */
302
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
303
- /**
304
- * Options:
305
- * - proto3_optional = true
306
- */
307
- resourceId?: number;
348
+ enum PresenceState {
349
+ OFFLINE = 0,
350
+ ONLINE = 1,
351
+ REMOVED = 2
308
352
  }
309
353
  }
310
354
  /**
311
355
  * Defined in:
312
- * {@link file://./../../../dxos/client/logging.proto}
356
+ * {@link file://./../../../dxos/client/services.proto}
313
357
  */
314
- export interface LoggingService {
315
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
316
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
317
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
358
+ export interface QueryDevicesResponse {
359
+ devices?: Device[];
318
360
  }
319
361
  /**
320
362
  * Defined in:
321
- * {@link file://./../../../dxos/client/invitation.proto}
363
+ * {@link file://./../../../dxos/client/services.proto}
322
364
  */
323
- export interface AdmissionKeypair {
324
- publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
365
+ export interface DevicesService {
366
+ updateDevice: (request: dxos_halo_credentials.DeviceProfileDocument, options?: RequestOptions) => Promise<Device>;
367
+ queryDevices: (request: void, options?: RequestOptions) => Stream<QueryDevicesResponse>;
368
+ }
369
+ /**
370
+ * Defined in:
371
+ * {@link file://./../../../dxos/client/services.proto}
372
+ */
373
+ export interface Contact {
374
+ identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
325
375
  /**
326
376
  * Options:
327
377
  * - proto3_optional = true
328
378
  */
329
- privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
379
+ profile?: dxos_halo_credentials.ProfileDocument;
380
+ commonSpaces?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
330
381
  }
331
382
  /**
332
- * Runtime state of the space object.
333
- *
334
383
  * Defined in:
335
- * {@link file://./../../../dxos/client/invitation.proto}
384
+ * {@link file://./../../../dxos/client/services.proto}
336
385
  */
337
- export declare enum SpaceState {
338
- INVALID = 0,
339
- SPACE_INACTIVE = 2,
340
- SPACE_ACTIVE = 6,
341
- SPACE_CLOSED = 1,
342
- SPACE_CONTROL_ONLY = 7,
343
- SPACE_INITIALIZING = 4,
344
- SPACE_READY = 3,
345
- SPACE_ERROR = 5,
346
- SPACE_REQUIRES_MIGRATION = 8
386
+ export interface ContactBook {
387
+ contacts?: Contact[];
347
388
  }
348
389
  /**
349
- * Represents the invitation state passed between client and service.
350
- *
351
390
  * Defined in:
352
- * {@link file://./../../../dxos/client/invitation.proto}
391
+ * {@link file://./../../../dxos/client/services.proto}
353
392
  */
354
- export interface Invitation {
355
- /**
356
- * Local identifier (random).
357
- */
358
- invitationId: string;
359
- /**
360
- * Determines the behavior of the invitation.
361
- */
362
- type: Invitation.Type;
363
- /**
364
- * Kind of access the invitation will grant.
365
- */
366
- kind: Invitation.Kind;
367
- /**
368
- * How the invitation is authenticated.
369
- */
370
- authMethod: Invitation.AuthMethod;
371
- /**
372
- * Swarm rendezvous (random).
373
- */
374
- swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
375
- /**
376
- * Local state.
377
- */
378
- state: Invitation.State;
379
- /**
380
- * Timeout for guest to complete invitation once connected (ms).
381
- *
382
- * Options:
383
- * - proto3_optional = true
384
- */
385
- timeout?: number;
393
+ export interface ContactsService {
394
+ getContacts: (request: void, options?: RequestOptions) => Promise<ContactBook>;
395
+ queryContacts: (request: void, options?: RequestOptions) => Stream<ContactBook>;
396
+ }
397
+ /**
398
+ * Defined in:
399
+ * {@link file://./../../../dxos/client/services.proto}
400
+ */
401
+ export interface SpaceMember {
402
+ identity: Identity;
403
+ presence: SpaceMember.PresenceState;
404
+ peerStates?: dxos_mesh_presence.PeerState[];
405
+ role: dxos_halo_credentials.SpaceMember.Role;
406
+ }
407
+ export declare namespace SpaceMember {
386
408
  /**
387
- * Guest's identity.
388
- *
389
- * Options:
390
- * - proto3_optional = true
409
+ * Defined in:
410
+ * {@link file://./../../../dxos/client/services.proto}
391
411
  */
392
- identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
412
+ enum PresenceState {
413
+ OFFLINE = 0,
414
+ ONLINE = 1
415
+ }
416
+ }
417
+ /**
418
+ * Defined in:
419
+ * {@link file://./../../../dxos/client/services.proto}
420
+ */
421
+ export interface Space {
422
+ id: string;
423
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
424
+ state: SpaceState;
393
425
  /**
394
- * Space to join (only present if kind is SPACE).
395
- *
396
426
  * Options:
397
427
  * - proto3_optional = true
398
428
  */
399
- spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
429
+ pipeline?: Space.PipelineState;
400
430
  /**
401
- * Authentication code created by host (only present if auth_method is SHARED_SECRET).
402
- *
403
431
  * Options:
404
432
  * - proto3_optional = true
405
433
  */
406
- authCode?: string;
434
+ error?: dxos_error.Error;
407
435
  /**
408
- * Path or identifier to navigate to after successful authentication.
409
- *
410
436
  * Options:
411
437
  * - proto3_optional = true
412
438
  */
413
- target?: string;
439
+ edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
440
+ members?: SpaceMember[];
414
441
  /**
415
- * Host should resume invitation on startup until timeout.
416
- *
417
442
  * Options:
418
443
  * - proto3_optional = true
419
444
  */
420
- persistent?: boolean;
445
+ creator?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
421
446
  /**
422
447
  * Options:
423
448
  * - proto3_optional = true
424
449
  */
425
- created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
450
+ cache?: dxos_echo_metadata.SpaceCache;
451
+ metrics: Space.Metrics;
452
+ }
453
+ export declare namespace Space {
426
454
  /**
427
- * Options:
428
- * - proto3_optional = true
455
+ * Defined in:
456
+ * {@link file://./../../../dxos/client/services.proto}
429
457
  */
430
- lifetime?: number;
431
- /**
432
- * Whether an invitation can be used multiple times.
433
- *
434
- * Options:
435
- * - proto3_optional = true
436
- */
437
- multiUse?: boolean;
438
- /**
439
- * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
440
- *
441
- * Options:
442
- * - proto3_optional = true
443
- */
444
- guestKeypair?: AdmissionKeypair;
458
+ interface Metrics {
459
+ /**
460
+ * Options:
461
+ * - proto3_optional = true
462
+ */
463
+ open?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
464
+ /**
465
+ * Options:
466
+ * - proto3_optional = true
467
+ */
468
+ pipelineInitBegin?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
469
+ /**
470
+ * Options:
471
+ * - proto3_optional = true
472
+ */
473
+ controlPipelineReady?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
474
+ /**
475
+ * Options:
476
+ * - proto3_optional = true
477
+ */
478
+ dataPipelineOpen?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
479
+ /**
480
+ * Options:
481
+ * - proto3_optional = true
482
+ */
483
+ dataPipelineReady?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
484
+ /**
485
+ * Options:
486
+ * - proto3_optional = true
487
+ */
488
+ ready?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
489
+ }
445
490
  /**
446
- * Present on Type.DELEGATED invitations.
447
- *
448
- * Options:
449
- * - proto3_optional = true
491
+ * Defined in:
492
+ * {@link file://./../../../dxos/client/services.proto}
450
493
  */
451
- delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
494
+ interface PipelineState {
495
+ /**
496
+ * Options:
497
+ * - proto3_optional = true
498
+ */
499
+ controlFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
500
+ /**
501
+ * Options:
502
+ * - proto3_optional = true
503
+ */
504
+ dataFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
505
+ /**
506
+ * TODO(burdon): Normalize _key suffix.
507
+ */
508
+ controlFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
509
+ dataFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
510
+ /**
511
+ * Last processed epoch. Might now have been applied yet.
512
+ *
513
+ * Options:
514
+ * - proto3_optional = true
515
+ */
516
+ currentEpoch?: dxos_halo_credentials.Credential;
517
+ /**
518
+ * Epoch that is currently applied.
519
+ *
520
+ * Options:
521
+ * - proto3_optional = true
522
+ */
523
+ appliedEpoch?: dxos_halo_credentials.Credential;
524
+ /**
525
+ * Mutations already processed.
526
+ *
527
+ * Options:
528
+ * - proto3_optional = true
529
+ */
530
+ currentControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
531
+ /**
532
+ * Minimum timeframe to consider the state to be up-to-date.
533
+ *
534
+ * Options:
535
+ * - proto3_optional = true
536
+ */
537
+ targetControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
538
+ /**
539
+ * All mutations stored in feeds.
540
+ *
541
+ * Options:
542
+ * - proto3_optional = true
543
+ */
544
+ totalControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
545
+ /**
546
+ * All mutations known to exist on the network.
547
+ *
548
+ * Options:
549
+ * - proto3_optional = true
550
+ */
551
+ knownControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
552
+ /**
553
+ * Start timeframe of the pipeline.
554
+ *
555
+ * Options:
556
+ * - proto3_optional = true
557
+ */
558
+ startDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
559
+ /**
560
+ * Mutations already processed.
561
+ *
562
+ * Options:
563
+ * - proto3_optional = true
564
+ */
565
+ currentDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
566
+ /**
567
+ * Minimum timeframe to consider the state to be up-to-date.
568
+ *
569
+ * Options:
570
+ * - proto3_optional = true
571
+ */
572
+ targetDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
573
+ /**
574
+ * All mutations stored in feeds.
575
+ *
576
+ * Options:
577
+ * - proto3_optional = true
578
+ */
579
+ totalDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
580
+ /**
581
+ * All mutations known to exist on the network.
582
+ *
583
+ * Options:
584
+ * - proto3_optional = true
585
+ */
586
+ knownDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
587
+ /**
588
+ * URL of the current space root automerge document.
589
+ *
590
+ * Options:
591
+ * - proto3_optional = true
592
+ */
593
+ spaceRootUrl?: string;
594
+ }
595
+ }
596
+ /**
597
+ * Defined in:
598
+ * {@link file://./../../../dxos/client/services.proto}
599
+ */
600
+ export interface UpdateSpaceRequest {
601
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
452
602
  /**
453
- * Role of the admitted member, defaults to ADMIN.
603
+ * Allowed values: ACTIVE, INACTIVE.
454
604
  *
455
605
  * Options:
456
606
  * - proto3_optional = true
457
607
  */
458
- role?: dxos_halo_credentials.SpaceMember.Role;
608
+ state?: SpaceState;
459
609
  /**
460
- * Id of a the space to join (only present if kind is SPACE).
461
- *
462
610
  * Options:
463
611
  * - proto3_optional = true
464
612
  */
465
- spaceId?: string;
466
- }
467
- export declare namespace Invitation {
468
- /**
469
- * Defined in:
470
- * {@link file://./../../../dxos/client/invitation.proto}
471
- */
472
- enum Type {
473
- INTERACTIVE = 0,
474
- DELEGATED = 1,
475
- MULTIUSE = 2
476
- }
477
- /**
478
- * Defined in:
479
- * {@link file://./../../../dxos/client/invitation.proto}
480
- */
481
- enum Kind {
482
- DEVICE = 0,
483
- SPACE = 1
484
- }
485
- /**
486
- * Defined in:
487
- * {@link file://./../../../dxos/client/invitation.proto}
488
- */
489
- enum AuthMethod {
490
- NONE = 0,
491
- SHARED_SECRET = 1,
492
- KNOWN_PUBLIC_KEY = 2
493
- }
494
- /**
495
- * Defined in:
496
- * {@link file://./../../../dxos/client/invitation.proto}
497
- */
498
- enum State {
499
- INIT = 0,
500
- CONNECTING = 1,
501
- CONNECTED = 2,
502
- READY_FOR_AUTHENTICATION = 3,
503
- AUTHENTICATING = 4,
504
- SUCCESS = 5,
505
- CANCELLED = 6,
506
- TIMEOUT = 7,
507
- ERROR = 8,
508
- EXPIRED = 9
509
- }
613
+ edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
510
614
  }
511
615
  /**
512
616
  * Defined in:
513
617
  * {@link file://./../../../dxos/client/services.proto}
514
618
  */
515
- export declare enum SystemStatus {
516
- INACTIVE = 0,
517
- ACTIVE = 1
619
+ export interface QuerySpacesResponse {
620
+ spaces?: Space[];
518
621
  }
519
622
  /**
520
623
  * Defined in:
521
624
  * {@link file://./../../../dxos/client/services.proto}
522
625
  */
523
- export interface UpdateStatusRequest {
524
- status: SystemStatus;
626
+ export interface PostMessageRequest {
627
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
628
+ channel: string;
629
+ message: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
525
630
  }
526
631
  /**
527
632
  * Defined in:
528
633
  * {@link file://./../../../dxos/client/services.proto}
529
634
  */
530
- export interface QueryStatusRequest {
531
- /**
532
- * Options:
533
- * - proto3_optional = true
534
- */
535
- interval?: number;
635
+ export interface SubscribeMessagesRequest {
636
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
637
+ channel: string;
536
638
  }
537
639
  /**
538
640
  * Defined in:
539
641
  * {@link file://./../../../dxos/client/services.proto}
540
642
  */
541
- export interface QueryStatusResponse {
542
- status: SystemStatus;
643
+ export interface WriteCredentialsRequest {
644
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
645
+ credentials?: dxos_halo_credentials.Credential[];
543
646
  }
544
647
  /**
545
648
  * Defined in:
546
649
  * {@link file://./../../../dxos/client/services.proto}
547
650
  */
548
- export interface GetDiagnosticsRequest {
651
+ export interface QueryCredentialsRequest {
652
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
549
653
  /**
550
654
  * Options:
551
655
  * - proto3_optional = true
552
656
  */
553
- keys?: GetDiagnosticsRequest.KEY_OPTION;
554
- }
555
- export declare namespace GetDiagnosticsRequest {
556
- /**
557
- * Defined in:
558
- * {@link file://./../../../dxos/client/services.proto}
559
- */
560
- enum KEY_OPTION {
561
- NONE = 0,
562
- TRUNCATE = 1,
563
- HUMANIZE = 2
564
- }
657
+ noTail?: boolean;
565
658
  }
566
659
  /**
567
660
  * Defined in:
568
661
  * {@link file://./../../../dxos/client/services.proto}
569
662
  */
570
- export interface GetDiagnosticsResponse {
571
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
572
- diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
573
- }
574
- /**
575
- * Defined in:
576
- * {@link file://./../../../dxos/client/services.proto}
577
- */
578
- export interface Platform {
579
- type: Platform.PLATFORM_TYPE;
580
- /**
581
- * The User-Agent string from a browser
582
- *
583
- * Options:
584
- * - proto3_optional = true
585
- */
586
- userAgent?: string;
663
+ export interface CreateEpochRequest {
664
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
587
665
  /**
588
- * e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
589
- *
590
666
  * Options:
591
667
  * - proto3_optional = true
592
668
  */
593
- platform?: string;
669
+ migration?: CreateEpochRequest.Migration;
594
670
  /**
595
- * the Node.JS arch string, e.g. 'arm64', 'x64'
671
+ * For REPLACE_AUTOMERGE_ROOT migration.
596
672
  *
597
673
  * Options:
598
674
  * - proto3_optional = true
599
675
  */
600
- arch?: string;
676
+ automergeRootUrl?: string;
677
+ }
678
+ export declare namespace CreateEpochRequest {
601
679
  /**
602
- * the node.js version string
603
- *
604
- * Options:
605
- * - proto3_optional = true
680
+ * Defined in:
681
+ * {@link file://./../../../dxos/client/services.proto}
606
682
  */
607
- runtime?: string;
683
+ enum Migration {
684
+ NONE = 0,
685
+ INIT_AUTOMERGE = 1,
686
+ PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
687
+ FRAGMENT_AUTOMERGE_ROOT = 3,
688
+ REPLACE_AUTOMERGE_ROOT = 4,
689
+ MIGRATE_REFERENCES_TO_DXN = 5
690
+ }
691
+ }
692
+ /**
693
+ * Defined in:
694
+ * {@link file://./../../../dxos/client/services.proto}
695
+ */
696
+ export interface CreateEpochResponse {
608
697
  /**
609
- * the number of seconds the client has been up
698
+ * Credential of the new epoch.
610
699
  *
611
700
  * Options:
612
701
  * - proto3_optional = true
613
702
  */
614
- uptime?: number;
703
+ epochCredential?: dxos_halo_credentials.Credential;
615
704
  /**
616
- * e.g. NodeJS.MemoryUsage, subject to change
705
+ * Control pipeline timeframe.
617
706
  *
618
707
  * Options:
619
708
  * - proto3_optional = true
620
709
  */
621
- memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
710
+ controlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
622
711
  }
623
- export declare namespace Platform {
624
- /**
625
- * Defined in:
626
- * {@link file://./../../../dxos/client/services.proto}
627
- */
628
- enum PLATFORM_TYPE {
629
- BROWSER = 0,
630
- SHARED_WORKER = 1,
631
- NODE = 2,
632
- DEDICATED_WORKER = 3
633
- }
712
+ /**
713
+ * Defined in:
714
+ * {@link file://./../../../dxos/client/services.proto}
715
+ */
716
+ export interface UpdateMemberRoleRequest {
717
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
718
+ memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
719
+ newRole: dxos_halo_credentials.SpaceMember.Role;
634
720
  }
635
721
  /**
636
722
  * Defined in:
637
723
  * {@link file://./../../../dxos/client/services.proto}
638
724
  */
639
- export interface SystemService {
640
- /**
641
- * Get the static config of the client.
642
- */
643
- getConfig: (request: void, options?: RequestOptions) => Promise<dxos_config.Config>;
644
- /**
645
- * Get the diagnostics snapshot.
646
- */
647
- getDiagnostics: (request: GetDiagnosticsRequest, options?: RequestOptions) => Promise<GetDiagnosticsResponse>;
648
- /**
649
- * Update the status of the client. Used to re-activate an inactive client.
650
- */
651
- updateStatus: (request: UpdateStatusRequest, options?: RequestOptions) => Promise<void>;
652
- /**
653
- * Stream the status of the client.
654
- */
655
- queryStatus: (request: QueryStatusRequest, options?: RequestOptions) => Stream<QueryStatusResponse>;
656
- /**
657
- * Reset the client.
658
- */
659
- reset: (request: void, options?: RequestOptions) => Promise<void>;
660
- /**
661
- * Get platform Information
662
- */
663
- getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
725
+ export interface AdmitContactRequest {
726
+ contact: Contact;
727
+ role: dxos_halo_credentials.SpaceMember.Role;
728
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
664
729
  }
665
730
  /**
666
731
  * Defined in:
667
732
  * {@link file://./../../../dxos/client/services.proto}
668
733
  */
669
- export interface Identity {
670
- did: string;
671
- identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
672
- /**
673
- * Options:
674
- * - proto3_optional = true
675
- */
676
- spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
677
- /**
678
- * Options:
679
- * - proto3_optional = true
680
- */
681
- profile?: dxos_halo_credentials.ProfileDocument;
734
+ export interface ContactAdmission {
735
+ credential: dxos_halo_credentials.Credential;
682
736
  }
683
737
  /**
684
738
  * Defined in:
685
739
  * {@link file://./../../../dxos/client/services.proto}
686
740
  */
687
- export interface RequestRecoveryChallengeResponse {
688
- deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
689
- controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
690
- challenge: string;
741
+ export interface JoinSpaceResponse {
742
+ space: Space;
691
743
  }
692
744
  /**
693
745
  * Defined in:
694
746
  * {@link file://./../../../dxos/client/services.proto}
695
747
  */
696
- export interface RecoverIdentityRequest {
697
- recoveryCode?: string;
698
- external?: RecoverIdentityRequest.ExternalSignature;
699
- token?: string;
748
+ export interface JoinBySpaceKeyRequest {
749
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
700
750
  }
701
- export declare namespace RecoverIdentityRequest {
702
- /**
703
- * Defined in:
704
- * {@link file://./../../../dxos/client/services.proto}
705
- */
706
- interface ExternalSignature {
707
- lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
708
- deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
709
- controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
710
- signature: Uint8Array;
711
- /**
712
- * Options:
713
- * - proto3_optional = true
714
- */
715
- clientDataJson?: Uint8Array;
716
- /**
717
- * Options:
718
- * - proto3_optional = true
719
- */
720
- authenticatorData?: Uint8Array;
721
- }
751
+ /**
752
+ * Defined in:
753
+ * {@link file://./../../../dxos/client/services.proto}
754
+ */
755
+ export interface SpaceArchive {
756
+ filename: string;
757
+ contents: Uint8Array;
722
758
  }
723
759
  /**
724
760
  * Defined in:
725
761
  * {@link file://./../../../dxos/client/services.proto}
726
762
  */
727
- export interface RecoveryCredentialData {
728
- /**
729
- * Recovery key used to validate recovery challenge signature.
730
- */
731
- recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
732
- /**
733
- * Public key used to identify the recovery key.
734
- */
735
- lookupKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
736
- /**
737
- * Algorithm used to generate the recovery key.
738
- */
739
- algorithm: string;
763
+ export interface ExportSpaceRequest {
764
+ spaceId: string;
740
765
  }
741
766
  /**
742
767
  * Defined in:
743
768
  * {@link file://./../../../dxos/client/services.proto}
744
769
  */
745
- export interface CreateRecoveryCredentialRequest {
746
- /**
747
- * If not provided, a new key will be generated.
748
- *
749
- * Options:
750
- * - proto3_optional = true
751
- */
752
- data?: RecoveryCredentialData;
770
+ export interface ExportSpaceResponse {
771
+ archive: SpaceArchive;
753
772
  }
754
773
  /**
755
774
  * Defined in:
756
775
  * {@link file://./../../../dxos/client/services.proto}
757
776
  */
758
- export interface CreateRecoveryCredentialResponse {
759
- /**
760
- * Options:
761
- * - proto3_optional = true
762
- */
763
- recoveryCode?: string;
777
+ export interface ImportSpaceRequest {
778
+ archive: SpaceArchive;
764
779
  }
765
780
  /**
766
781
  * Defined in:
767
782
  * {@link file://./../../../dxos/client/services.proto}
768
783
  */
769
- export interface QueryIdentityResponse {
784
+ export interface ImportSpaceResponse {
770
785
  /**
771
- * Options:
772
- * - proto3_optional = true
786
+ * the ID of the new space.
773
787
  */
774
- identity?: Identity;
788
+ newSpaceId: string;
775
789
  }
776
790
  /**
777
791
  * Defined in:
778
792
  * {@link file://./../../../dxos/client/services.proto}
779
793
  */
780
- export interface SignPresentationRequest {
781
- presentation: dxos_halo_credentials.Presentation;
794
+ export interface SpacesService {
795
+ createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
796
+ updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
797
+ querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
798
+ updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
799
+ admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
800
+ joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
782
801
  /**
783
- * Options:
784
- * - proto3_optional = true
802
+ * Broadcast an ephemeral message to the space swarm.
785
803
  */
786
- nonce?: Uint8Array;
804
+ postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
805
+ /**
806
+ * Subscribe to messages from the space swarm.
807
+ */
808
+ subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
809
+ /**
810
+ * Write credentials to the space control feed.
811
+ */
812
+ writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
813
+ /**
814
+ * Query credentials from the space control feed.
815
+ */
816
+ queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
817
+ createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
818
+ exportSpace: (request: ExportSpaceRequest, options?: RequestOptions) => Promise<ExportSpaceResponse>;
819
+ importSpace: (request: ImportSpaceRequest, options?: RequestOptions) => Promise<ImportSpaceResponse>;
787
820
  }
788
821
  /**
789
822
  * Defined in:
790
823
  * {@link file://./../../../dxos/client/services.proto}
791
824
  */
792
- export interface CreateIdentityRequest {
793
- /**
794
- * Options:
795
- * - proto3_optional = true
796
- */
797
- profile?: dxos_halo_credentials.ProfileDocument;
825
+ export interface AcceptInvitationRequest {
826
+ invitation: Invitation;
798
827
  /**
799
828
  * Options:
800
829
  * - proto3_optional = true
@@ -805,729 +834,700 @@ export interface CreateIdentityRequest {
805
834
  * Defined in:
806
835
  * {@link file://./../../../dxos/client/services.proto}
807
836
  */
808
- export interface IdentityService {
809
- createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
810
- requestRecoveryChallenge: (request: void, options?: RequestOptions) => Promise<RequestRecoveryChallengeResponse>;
811
- recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
812
- createRecoveryCredential: (request: CreateRecoveryCredentialRequest, options?: RequestOptions) => Promise<CreateRecoveryCredentialResponse>;
813
- queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
814
- updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
815
- signPresentation: (request: SignPresentationRequest, options?: RequestOptions) => Promise<dxos_halo_credentials.Presentation>;
816
- createAuthCredential: (request: void, options?: RequestOptions) => Promise<dxos_halo_credentials.Credential>;
837
+ export interface AuthenticationRequest {
838
+ invitationId: string;
839
+ authCode: string;
817
840
  }
818
841
  /**
819
842
  * Defined in:
820
843
  * {@link file://./../../../dxos/client/services.proto}
821
844
  */
822
- export declare enum DeviceKind {
823
- CURRENT = 0,
824
- TRUSTED = 1
845
+ export interface CancelInvitationRequest {
846
+ invitationId: string;
825
847
  }
826
848
  /**
827
849
  * Defined in:
828
850
  * {@link file://./../../../dxos/client/services.proto}
829
851
  */
830
- export interface Device {
831
- deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
832
- kind: DeviceKind;
833
- /**
834
- * Options:
835
- * - proto3_optional = true
852
+ export interface InvitationMethod {
853
+ created?: Invitation;
854
+ accepted?: Invitation;
855
+ }
856
+ /**
857
+ * Defined in:
858
+ * {@link file://./../../../dxos/client/services.proto}
859
+ */
860
+ export interface QueryInvitationsResponse {
861
+ action: QueryInvitationsResponse.Action;
862
+ type: QueryInvitationsResponse.Type;
863
+ invitations?: Invitation[];
864
+ /**
865
+ * Options:
866
+ * - proto3_optional = true
836
867
  */
837
- profile?: dxos_halo_credentials.DeviceProfileDocument;
838
- presence: Device.PresenceState;
868
+ existing?: boolean;
839
869
  }
840
- export declare namespace Device {
870
+ export declare namespace QueryInvitationsResponse {
841
871
  /**
842
872
  * Defined in:
843
873
  * {@link file://./../../../dxos/client/services.proto}
844
874
  */
845
- enum PresenceState {
846
- OFFLINE = 0,
847
- ONLINE = 1,
848
- REMOVED = 2
875
+ enum Action {
876
+ ADDED = 0,
877
+ REMOVED = 1,
878
+ SAVED = 2,
879
+ LOAD_COMPLETE = 3
880
+ }
881
+ /**
882
+ * Defined in:
883
+ * {@link file://./../../../dxos/client/services.proto}
884
+ */
885
+ enum Type {
886
+ CREATED = 0,
887
+ ACCEPTED = 1
849
888
  }
850
889
  }
851
890
  /**
852
891
  * Defined in:
853
892
  * {@link file://./../../../dxos/client/services.proto}
854
893
  */
855
- export interface QueryDevicesResponse {
856
- devices?: Device[];
894
+ export interface LoadPersistentInvitationsResponse {
895
+ invitations?: Invitation[];
857
896
  }
858
897
  /**
859
898
  * Defined in:
860
899
  * {@link file://./../../../dxos/client/services.proto}
861
900
  */
862
- export interface DevicesService {
863
- updateDevice: (request: dxos_halo_credentials.DeviceProfileDocument, options?: RequestOptions) => Promise<Device>;
864
- queryDevices: (request: void, options?: RequestOptions) => Stream<QueryDevicesResponse>;
901
+ export interface InvitationsService {
902
+ createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
903
+ acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
904
+ authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
905
+ cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
906
+ queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
865
907
  }
866
908
  /**
867
909
  * Defined in:
868
910
  * {@link file://./../../../dxos/client/services.proto}
869
911
  */
870
- export interface Contact {
871
- identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
912
+ export declare enum ConnectionState {
913
+ OFFLINE = 0,
914
+ ONLINE = 1
915
+ }
916
+ /**
917
+ * Defined in:
918
+ * {@link file://./../../../dxos/client/services.proto}
919
+ */
920
+ export interface NetworkStatus {
921
+ swarm: ConnectionState;
922
+ signaling?: NetworkStatus.Signal[];
923
+ connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
924
+ }
925
+ export declare namespace NetworkStatus {
872
926
  /**
873
- * Options:
874
- * - proto3_optional = true
927
+ * Defined in:
928
+ * {@link file://./../../../dxos/client/services.proto}
875
929
  */
876
- profile?: dxos_halo_credentials.ProfileDocument;
877
- commonSpaces?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
930
+ interface Signal {
931
+ server: string;
932
+ state: dxos_mesh_signal.SignalState;
933
+ }
878
934
  }
879
935
  /**
880
936
  * Defined in:
881
937
  * {@link file://./../../../dxos/client/services.proto}
882
938
  */
883
- export interface ContactBook {
884
- contacts?: Contact[];
939
+ export interface UpdateConfigRequest {
940
+ swarm: ConnectionState;
885
941
  }
886
942
  /**
887
943
  * Defined in:
888
944
  * {@link file://./../../../dxos/client/services.proto}
889
945
  */
890
- export interface ContactsService {
891
- getContacts: (request: void, options?: RequestOptions) => Promise<ContactBook>;
892
- queryContacts: (request: void, options?: RequestOptions) => Stream<ContactBook>;
946
+ export interface SubscribeSwarmStateRequest {
947
+ topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
893
948
  }
894
949
  /**
895
950
  * Defined in:
896
951
  * {@link file://./../../../dxos/client/services.proto}
897
952
  */
898
- export interface SpaceMember {
899
- identity: Identity;
900
- presence: SpaceMember.PresenceState;
901
- peerStates?: dxos_mesh_presence.PeerState[];
902
- role: dxos_halo_credentials.SpaceMember.Role;
953
+ export interface NetworkService {
954
+ updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
955
+ queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
956
+ joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
957
+ leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
958
+ /**
959
+ * Query the swarm state without joining it.
960
+ */
961
+ querySwarm: (request: dxos_edge_signal.QueryRequest, options?: RequestOptions) => Promise<dxos_edge_messenger.SwarmResponse>;
962
+ subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
963
+ sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
964
+ subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
903
965
  }
904
- export declare namespace SpaceMember {
966
+ /**
967
+ * Defined in:
968
+ * {@link file://./../../../dxos/client/services.proto}
969
+ */
970
+ export interface EdgeAgentService {
971
+ queryEdgeStatus: (request: void, options?: RequestOptions) => Stream<QueryEdgeStatusResponse>;
972
+ createAgent: (request: void, options?: RequestOptions) => Promise<void>;
973
+ queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
974
+ }
975
+ /**
976
+ * Defined in:
977
+ * {@link file://./../../../dxos/client/services.proto}
978
+ */
979
+ export interface EdgeStatus {
980
+ state: EdgeStatus.ConnectionState;
981
+ /**
982
+ * Latency in ms
983
+ */
984
+ rtt: number;
985
+ /**
986
+ * How long the connection has been up
987
+ */
988
+ uptime: number;
989
+ /**
990
+ * Upload rate in bytes per second
991
+ */
992
+ rateBytesUp: number;
993
+ /**
994
+ * Download rate in bytes per second
995
+ */
996
+ rateBytesDown: number;
997
+ messagesSent: number;
998
+ messagesReceived: number;
999
+ }
1000
+ export declare namespace EdgeStatus {
905
1001
  /**
906
1002
  * Defined in:
907
1003
  * {@link file://./../../../dxos/client/services.proto}
908
1004
  */
909
- enum PresenceState {
910
- OFFLINE = 0,
911
- ONLINE = 1
1005
+ enum ConnectionState {
1006
+ NOT_CONNECTED = 0,
1007
+ CONNECTED = 1
912
1008
  }
913
1009
  }
914
1010
  /**
915
1011
  * Defined in:
916
1012
  * {@link file://./../../../dxos/client/services.proto}
917
1013
  */
918
- export interface Space {
919
- id: string;
920
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
921
- state: SpaceState;
1014
+ export interface QueryEdgeStatusResponse {
1015
+ status: EdgeStatus;
1016
+ }
1017
+ /**
1018
+ * Defined in:
1019
+ * {@link file://./../../../dxos/client/services.proto}
1020
+ */
1021
+ export interface QueryAgentStatusResponse {
1022
+ status: QueryAgentStatusResponse.AgentStatus;
1023
+ }
1024
+ export declare namespace QueryAgentStatusResponse {
1025
+ /**
1026
+ * Defined in:
1027
+ * {@link file://./../../../dxos/client/services.proto}
1028
+ */
1029
+ enum AgentStatus {
1030
+ UNKNOWN = 0,
1031
+ ACTIVE = 1,
1032
+ INACTIVE = 2,
1033
+ NOT_FOUND = 3
1034
+ }
1035
+ }
1036
+ /**
1037
+ * Defined in:
1038
+ * {@link file://./../../../dxos/client/queue.proto}
1039
+ */
1040
+ export interface QueueQuery {
1041
+ spaceId: string;
922
1042
  /**
923
1043
  * Options:
924
1044
  * - proto3_optional = true
925
1045
  */
926
- pipeline?: Space.PipelineState;
1046
+ queuesNamespace?: string;
1047
+ /**
1048
+ * Queries the whole space if missing.
1049
+ */
1050
+ queueIds?: string[];
927
1051
  /**
1052
+ * Filter items after this cursor. Exclusive.
1053
+ *
928
1054
  * Options:
929
1055
  * - proto3_optional = true
930
1056
  */
931
- error?: dxos_error.Error;
1057
+ after?: string;
932
1058
  /**
1059
+ * Filter items before this cursor. Exclusive.
1060
+ *
933
1061
  * Options:
934
1062
  * - proto3_optional = true
935
1063
  */
936
- edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
937
- members?: SpaceMember[];
1064
+ before?: string;
938
1065
  /**
1066
+ * Filter items after this position. Inclusive.
1067
+ *
939
1068
  * Options:
940
1069
  * - proto3_optional = true
941
1070
  */
942
- creator?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1071
+ beginPosition?: string;
943
1072
  /**
1073
+ * Filter items before this position. Exclusive.
1074
+ *
944
1075
  * Options:
945
1076
  * - proto3_optional = true
946
1077
  */
947
- cache?: dxos_echo_metadata.SpaceCache;
948
- metrics: Space.Metrics;
949
- }
950
- export declare namespace Space {
1078
+ endPosition?: string;
951
1079
  /**
952
- * Defined in:
953
- * {@link file://./../../../dxos/client/services.proto}
1080
+ * Options:
1081
+ * - proto3_optional = true
954
1082
  */
955
- interface Metrics {
956
- /**
957
- * Options:
958
- * - proto3_optional = true
959
- */
960
- open?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
961
- /**
962
- * Options:
963
- * - proto3_optional = true
964
- */
965
- pipelineInitBegin?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
966
- /**
967
- * Options:
968
- * - proto3_optional = true
969
- */
970
- controlPipelineReady?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
971
- /**
972
- * Options:
973
- * - proto3_optional = true
974
- */
975
- dataPipelineOpen?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
976
- /**
977
- * Options:
978
- * - proto3_optional = true
979
- */
980
- dataPipelineReady?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
981
- /**
982
- * Options:
983
- * - proto3_optional = true
984
- */
985
- ready?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
986
- }
1083
+ limit?: number;
987
1084
  /**
988
- * Defined in:
989
- * {@link file://./../../../dxos/client/services.proto}
1085
+ * Options:
1086
+ * - proto3_optional = true
990
1087
  */
991
- interface PipelineState {
992
- /**
993
- * Options:
994
- * - proto3_optional = true
995
- */
996
- controlFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
997
- /**
998
- * Options:
999
- * - proto3_optional = true
1000
- */
1001
- dataFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1002
- /**
1003
- * TODO(burdon): Normalize _key suffix.
1004
- */
1005
- controlFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
1006
- dataFeeds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
1007
- /**
1008
- * Last processed epoch. Might now have been applied yet.
1009
- *
1010
- * Options:
1011
- * - proto3_optional = true
1012
- */
1013
- currentEpoch?: dxos_halo_credentials.Credential;
1014
- /**
1015
- * Epoch that is currently applied.
1016
- *
1017
- * Options:
1018
- * - proto3_optional = true
1019
- */
1020
- appliedEpoch?: dxos_halo_credentials.Credential;
1021
- /**
1022
- * Mutations already processed.
1023
- *
1024
- * Options:
1025
- * - proto3_optional = true
1026
- */
1027
- currentControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
1028
- /**
1029
- * Minimum timeframe to consider the state to be up-to-date.
1030
- *
1031
- * Options:
1032
- * - proto3_optional = true
1033
- */
1034
- targetControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
1035
- /**
1036
- * All mutations stored in feeds.
1037
- *
1038
- * Options:
1039
- * - proto3_optional = true
1040
- */
1041
- totalControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
1042
- /**
1043
- * All mutations known to exist on the network.
1044
- *
1045
- * Options:
1046
- * - proto3_optional = true
1047
- */
1048
- knownControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
1049
- /**
1050
- * Start timeframe of the pipeline.
1051
- *
1052
- * Options:
1053
- * - proto3_optional = true
1054
- */
1055
- startDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
1056
- /**
1057
- * Mutations already processed.
1058
- *
1059
- * Options:
1060
- * - proto3_optional = true
1061
- */
1062
- currentDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
1063
- /**
1064
- * Minimum timeframe to consider the state to be up-to-date.
1065
- *
1066
- * Options:
1067
- * - proto3_optional = true
1068
- */
1069
- targetDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
1070
- /**
1071
- * All mutations stored in feeds.
1072
- *
1073
- * Options:
1074
- * - proto3_optional = true
1075
- */
1076
- totalDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
1077
- /**
1078
- * All mutations known to exist on the network.
1079
- *
1080
- * Options:
1081
- * - proto3_optional = true
1082
- */
1083
- knownDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
1084
- /**
1085
- * URL of the current space root automerge document.
1086
- *
1087
- * Options:
1088
- * - proto3_optional = true
1089
- */
1090
- spaceRootUrl?: string;
1091
- }
1088
+ reverse?: boolean;
1089
+ objectIds?: string[];
1092
1090
  }
1093
1091
  /**
1094
1092
  * Defined in:
1095
- * {@link file://./../../../dxos/client/services.proto}
1093
+ * {@link file://./../../../dxos/client/queue.proto}
1096
1094
  */
1097
- export interface UpdateSpaceRequest {
1098
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1099
- /**
1100
- * Allowed values: ACTIVE, INACTIVE.
1101
- *
1102
- * Options:
1103
- * - proto3_optional = true
1104
- */
1105
- state?: SpaceState;
1095
+ export interface QueueQueryResult {
1096
+ objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
1106
1097
  /**
1107
- * Options:
1108
- * - proto3_optional = true
1098
+ * Cursor to query the next items. Can be passed to `after` in query to keep querying.
1109
1099
  */
1110
- edgeReplication?: dxos_echo_metadata.EdgeReplicationSetting;
1111
- }
1112
- /**
1113
- * Defined in:
1114
- * {@link file://./../../../dxos/client/services.proto}
1115
- */
1116
- export interface QuerySpacesResponse {
1117
- spaces?: Space[];
1118
- }
1119
- /**
1120
- * Defined in:
1121
- * {@link file://./../../../dxos/client/services.proto}
1122
- */
1123
- export interface PostMessageRequest {
1124
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1125
- channel: string;
1126
- message: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
1100
+ nextCursor: string;
1101
+ prevCursor: string;
1127
1102
  }
1128
1103
  /**
1129
1104
  * Defined in:
1130
- * {@link file://./../../../dxos/client/services.proto}
1105
+ * {@link file://./../../../dxos/client/queue.proto}
1131
1106
  */
1132
- export interface SubscribeMessagesRequest {
1133
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1134
- channel: string;
1107
+ export interface QueryQueueRequest {
1108
+ query: QueueQuery;
1135
1109
  }
1136
1110
  /**
1137
1111
  * Defined in:
1138
- * {@link file://./../../../dxos/client/services.proto}
1112
+ * {@link file://./../../../dxos/client/queue.proto}
1139
1113
  */
1140
- export interface WriteCredentialsRequest {
1141
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1142
- credentials?: dxos_halo_credentials.Credential[];
1114
+ export interface InsertIntoQueueRequest {
1115
+ subspaceTag: string;
1116
+ spaceId: string;
1117
+ queueId: string;
1118
+ objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
1143
1119
  }
1144
1120
  /**
1145
1121
  * Defined in:
1146
- * {@link file://./../../../dxos/client/services.proto}
1122
+ * {@link file://./../../../dxos/client/queue.proto}
1147
1123
  */
1148
- export interface QueryCredentialsRequest {
1149
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1150
- /**
1151
- * Options:
1152
- * - proto3_optional = true
1153
- */
1154
- noTail?: boolean;
1124
+ export interface DeleteFromQueueRequest {
1125
+ subspaceTag: string;
1126
+ spaceId: string;
1127
+ queueId: string;
1128
+ objectIds?: string[];
1155
1129
  }
1156
1130
  /**
1157
1131
  * Defined in:
1158
- * {@link file://./../../../dxos/client/services.proto}
1132
+ * {@link file://./../../../dxos/client/queue.proto}
1159
1133
  */
1160
- export interface CreateEpochRequest {
1161
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1134
+ export interface SyncQueueRequest {
1135
+ subspaceTag: string;
1136
+ spaceId: string;
1137
+ queueId: string;
1162
1138
  /**
1139
+ * Whether to push local changes to the server. Defaults to true.
1140
+ *
1163
1141
  * Options:
1164
1142
  * - proto3_optional = true
1165
1143
  */
1166
- migration?: CreateEpochRequest.Migration;
1144
+ shouldPush?: boolean;
1167
1145
  /**
1168
- * For REPLACE_AUTOMERGE_ROOT migration.
1146
+ * Whether to pull remote changes from the server. Defaults to true.
1169
1147
  *
1170
1148
  * Options:
1171
1149
  * - proto3_optional = true
1172
1150
  */
1173
- automergeRootUrl?: string;
1151
+ shouldPull?: boolean;
1174
1152
  }
1175
- export declare namespace CreateEpochRequest {
1153
+ /**
1154
+ * Defined in:
1155
+ * {@link file://./../../../dxos/client/queue.proto}
1156
+ */
1157
+ export interface QueueService {
1158
+ queryQueue: (request: QueryQueueRequest, options?: RequestOptions) => Promise<QueueQueryResult>;
1159
+ insertIntoQueue: (request: InsertIntoQueueRequest, options?: RequestOptions) => Promise<void>;
1160
+ deleteFromQueue: (request: DeleteFromQueueRequest, options?: RequestOptions) => Promise<void>;
1161
+ syncQueue: (request: SyncQueueRequest, options?: RequestOptions) => Promise<void>;
1162
+ }
1163
+ /**
1164
+ * Defined in:
1165
+ * {@link file://./../../../dxos/client/logging.proto}
1166
+ */
1167
+ export interface Metrics {
1168
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1169
+ values?: Metrics.KeyPair[];
1170
+ }
1171
+ export declare namespace Metrics {
1176
1172
  /**
1177
1173
  * Defined in:
1178
- * {@link file://./../../../dxos/client/services.proto}
1174
+ * {@link file://./../../../dxos/client/logging.proto}
1179
1175
  */
1180
- enum Migration {
1181
- NONE = 0,
1182
- INIT_AUTOMERGE = 1,
1183
- PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
1184
- FRAGMENT_AUTOMERGE_ROOT = 3,
1185
- REPLACE_AUTOMERGE_ROOT = 4,
1186
- MIGRATE_REFERENCES_TO_DXN = 5
1176
+ interface KeyPair {
1177
+ /**
1178
+ * Options:
1179
+ * - proto3_optional = true
1180
+ */
1181
+ key?: string;
1182
+ /**
1183
+ * Options:
1184
+ * - proto3_optional = true
1185
+ */
1186
+ value?: dxos_value.Value;
1187
+ /**
1188
+ * Options:
1189
+ * - proto3_optional = true
1190
+ */
1191
+ stats?: dxos_value.Stats;
1187
1192
  }
1188
1193
  }
1189
1194
  /**
1190
1195
  * Defined in:
1191
- * {@link file://./../../../dxos/client/services.proto}
1196
+ * {@link file://./../../../dxos/client/logging.proto}
1192
1197
  */
1193
- export interface CreateEpochResponse {
1198
+ export interface ControlMetricsRequest {
1194
1199
  /**
1195
- * Credential of the new epoch.
1196
- *
1197
1200
  * Options:
1198
1201
  * - proto3_optional = true
1199
1202
  */
1200
- epochCredential?: dxos_halo_credentials.Credential;
1203
+ reset?: boolean;
1201
1204
  /**
1202
- * Control pipeline timeframe.
1203
- *
1204
1205
  * Options:
1205
1206
  * - proto3_optional = true
1206
1207
  */
1207
- controlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
1208
+ record?: boolean;
1208
1209
  }
1209
1210
  /**
1210
1211
  * Defined in:
1211
- * {@link file://./../../../dxos/client/services.proto}
1212
+ * {@link file://./../../../dxos/client/logging.proto}
1212
1213
  */
1213
- export interface UpdateMemberRoleRequest {
1214
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1215
- memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1216
- newRole: dxos_halo_credentials.SpaceMember.Role;
1214
+ export interface ControlMetricsResponse {
1215
+ /**
1216
+ * Options:
1217
+ * - proto3_optional = true
1218
+ */
1219
+ recording?: boolean;
1217
1220
  }
1218
1221
  /**
1219
1222
  * Defined in:
1220
- * {@link file://./../../../dxos/client/services.proto}
1223
+ * {@link file://./../../../dxos/client/logging.proto}
1221
1224
  */
1222
- export interface AdmitContactRequest {
1223
- contact: Contact;
1224
- role: dxos_halo_credentials.SpaceMember.Role;
1225
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1225
+ export interface QueryMetricsRequest {
1226
+ /**
1227
+ * Options:
1228
+ * - proto3_optional = true
1229
+ */
1230
+ interval?: number;
1226
1231
  }
1227
1232
  /**
1228
1233
  * Defined in:
1229
- * {@link file://./../../../dxos/client/services.proto}
1234
+ * {@link file://./../../../dxos/client/logging.proto}
1230
1235
  */
1231
- export interface ContactAdmission {
1232
- credential: dxos_halo_credentials.Credential;
1236
+ export interface QueryMetricsResponse {
1237
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1238
+ metrics: Metrics;
1233
1239
  }
1234
1240
  /**
1235
1241
  * Defined in:
1236
- * {@link file://./../../../dxos/client/services.proto}
1242
+ * {@link file://./../../../dxos/client/logging.proto}
1237
1243
  */
1238
- export interface JoinSpaceResponse {
1239
- space: Space;
1244
+ export declare enum LogLevel {
1245
+ NONE = 0,
1246
+ TRACE = 5,
1247
+ DEBUG = 10,
1248
+ VERBOSE = 11,
1249
+ INFO = 12,
1250
+ WARN = 13,
1251
+ ERROR = 14
1240
1252
  }
1241
1253
  /**
1242
1254
  * Defined in:
1243
- * {@link file://./../../../dxos/client/services.proto}
1255
+ * {@link file://./../../../dxos/client/logging.proto}
1244
1256
  */
1245
- export interface JoinBySpaceKeyRequest {
1246
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1257
+ export interface QueryLogsRequest {
1258
+ filters?: QueryLogsRequest.Filter[];
1259
+ /**
1260
+ * Options:
1261
+ * - proto3_optional = true
1262
+ */
1263
+ options?: QueryLogsRequest.MatchingOptions;
1264
+ }
1265
+ export declare namespace QueryLogsRequest {
1266
+ /**
1267
+ * Defined in:
1268
+ * {@link file://./../../../dxos/client/logging.proto}
1269
+ */
1270
+ enum MatchingOptions {
1271
+ NONE = 0,
1272
+ INCLUSIVE = 1,
1273
+ EXPLICIT = 2
1274
+ }
1275
+ /**
1276
+ * Defined in:
1277
+ * {@link file://./../../../dxos/client/logging.proto}
1278
+ */
1279
+ interface Filter {
1280
+ level: LogLevel;
1281
+ /**
1282
+ * Options:
1283
+ * - proto3_optional = true
1284
+ */
1285
+ pattern?: string;
1286
+ }
1247
1287
  }
1248
1288
  /**
1249
1289
  * Defined in:
1250
- * {@link file://./../../../dxos/client/services.proto}
1290
+ * {@link file://./../../../dxos/client/logging.proto}
1251
1291
  */
1252
- export interface SpaceArchive {
1253
- filename: string;
1254
- contents: Uint8Array;
1292
+ export interface LogEntry {
1293
+ level: LogLevel;
1294
+ message: string;
1295
+ /**
1296
+ * Options:
1297
+ * - proto3_optional = true
1298
+ */
1299
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1300
+ /**
1301
+ * Options:
1302
+ * - proto3_optional = true
1303
+ */
1304
+ meta?: LogEntry.Meta;
1305
+ /**
1306
+ * Options:
1307
+ * - proto3_optional = true
1308
+ */
1309
+ error?: dxos_error.Error;
1310
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1311
+ }
1312
+ export declare namespace LogEntry {
1313
+ /**
1314
+ * Defined in:
1315
+ * {@link file://./../../../dxos/client/logging.proto}
1316
+ */
1317
+ interface Meta {
1318
+ file: string;
1319
+ line: number;
1320
+ /**
1321
+ * Options:
1322
+ * - proto3_optional = true
1323
+ */
1324
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1325
+ /**
1326
+ * Options:
1327
+ * - proto3_optional = true
1328
+ */
1329
+ resourceId?: number;
1330
+ }
1255
1331
  }
1256
1332
  /**
1257
1333
  * Defined in:
1258
- * {@link file://./../../../dxos/client/services.proto}
1334
+ * {@link file://./../../../dxos/client/logging.proto}
1259
1335
  */
1260
- export interface ExportSpaceRequest {
1261
- spaceId: string;
1336
+ export interface LoggingService {
1337
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1338
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1339
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1262
1340
  }
1263
1341
  /**
1264
1342
  * Defined in:
1265
- * {@link file://./../../../dxos/client/services.proto}
1343
+ * {@link file://./../../../dxos/client/invitation.proto}
1266
1344
  */
1267
- export interface ExportSpaceResponse {
1268
- archive: SpaceArchive;
1345
+ export interface AdmissionKeypair {
1346
+ publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1347
+ /**
1348
+ * Options:
1349
+ * - proto3_optional = true
1350
+ */
1351
+ privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
1269
1352
  }
1270
1353
  /**
1354
+ * Runtime state of the space object.
1355
+ *
1271
1356
  * Defined in:
1272
- * {@link file://./../../../dxos/client/services.proto}
1357
+ * {@link file://./../../../dxos/client/invitation.proto}
1273
1358
  */
1274
- export interface ImportSpaceRequest {
1275
- archive: SpaceArchive;
1359
+ export declare enum SpaceState {
1360
+ INVALID = 0,
1361
+ SPACE_INACTIVE = 2,
1362
+ SPACE_ACTIVE = 6,
1363
+ SPACE_CLOSED = 1,
1364
+ SPACE_CONTROL_ONLY = 7,
1365
+ SPACE_INITIALIZING = 4,
1366
+ SPACE_READY = 3,
1367
+ SPACE_ERROR = 5,
1368
+ SPACE_REQUIRES_MIGRATION = 8
1276
1369
  }
1277
1370
  /**
1371
+ * Represents the invitation state passed between client and service.
1372
+ *
1278
1373
  * Defined in:
1279
- * {@link file://./../../../dxos/client/services.proto}
1374
+ * {@link file://./../../../dxos/client/invitation.proto}
1280
1375
  */
1281
- export interface ImportSpaceResponse {
1376
+ export interface Invitation {
1282
1377
  /**
1283
- * the ID of the new space.
1378
+ * Local identifier (random).
1284
1379
  */
1285
- newSpaceId: string;
1286
- }
1287
- /**
1288
- * Defined in:
1289
- * {@link file://./../../../dxos/client/services.proto}
1290
- */
1291
- export interface SpacesService {
1292
- createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
1293
- updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
1294
- querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
1295
- updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
1296
- admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
1297
- joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
1380
+ invitationId: string;
1298
1381
  /**
1299
- * Broadcast an ephemeral message to the space swarm.
1382
+ * Determines the behavior of the invitation.
1300
1383
  */
1301
- postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
1384
+ type: Invitation.Type;
1302
1385
  /**
1303
- * Subscribe to messages from the space swarm.
1386
+ * Kind of access the invitation will grant.
1304
1387
  */
1305
- subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
1388
+ kind: Invitation.Kind;
1306
1389
  /**
1307
- * Write credentials to the space control feed.
1390
+ * How the invitation is authenticated.
1308
1391
  */
1309
- writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
1392
+ authMethod: Invitation.AuthMethod;
1310
1393
  /**
1311
- * Query credentials from the space control feed.
1394
+ * Swarm rendezvous (random).
1312
1395
  */
1313
- queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
1314
- createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
1315
- exportSpace: (request: ExportSpaceRequest, options?: RequestOptions) => Promise<ExportSpaceResponse>;
1316
- importSpace: (request: ImportSpaceRequest, options?: RequestOptions) => Promise<ImportSpaceResponse>;
1317
- }
1318
- /**
1319
- * Defined in:
1320
- * {@link file://./../../../dxos/client/services.proto}
1321
- */
1322
- export interface AcceptInvitationRequest {
1323
- invitation: Invitation;
1396
+ swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1397
+ /**
1398
+ * Local state.
1399
+ */
1400
+ state: Invitation.State;
1324
1401
  /**
1402
+ * Timeout for guest to complete invitation once connected (ms).
1403
+ *
1325
1404
  * Options:
1326
1405
  * - proto3_optional = true
1327
1406
  */
1328
- deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
1329
- }
1330
- /**
1331
- * Defined in:
1332
- * {@link file://./../../../dxos/client/services.proto}
1333
- */
1334
- export interface AuthenticationRequest {
1335
- invitationId: string;
1336
- authCode: string;
1337
- }
1338
- /**
1339
- * Defined in:
1340
- * {@link file://./../../../dxos/client/services.proto}
1341
- */
1342
- export interface CancelInvitationRequest {
1343
- invitationId: string;
1344
- }
1345
- /**
1346
- * Defined in:
1347
- * {@link file://./../../../dxos/client/services.proto}
1348
- */
1349
- export interface InvitationMethod {
1350
- created?: Invitation;
1351
- accepted?: Invitation;
1352
- }
1353
- /**
1354
- * Defined in:
1355
- * {@link file://./../../../dxos/client/services.proto}
1356
- */
1357
- export interface QueryInvitationsResponse {
1358
- action: QueryInvitationsResponse.Action;
1359
- type: QueryInvitationsResponse.Type;
1360
- invitations?: Invitation[];
1407
+ timeout?: number;
1361
1408
  /**
1409
+ * Guest's identity.
1410
+ *
1362
1411
  * Options:
1363
1412
  * - proto3_optional = true
1364
1413
  */
1365
- existing?: boolean;
1366
- }
1367
- export declare namespace QueryInvitationsResponse {
1414
+ identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1368
1415
  /**
1369
- * Defined in:
1370
- * {@link file://./../../../dxos/client/services.proto}
1416
+ * Space to join (only present if kind is SPACE).
1417
+ *
1418
+ * Options:
1419
+ * - proto3_optional = true
1371
1420
  */
1372
- enum Action {
1373
- ADDED = 0,
1374
- REMOVED = 1,
1375
- SAVED = 2,
1376
- LOAD_COMPLETE = 3
1377
- }
1421
+ spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1378
1422
  /**
1379
- * Defined in:
1380
- * {@link file://./../../../dxos/client/services.proto}
1423
+ * Authentication code created by host (only present if auth_method is SHARED_SECRET).
1424
+ *
1425
+ * Options:
1426
+ * - proto3_optional = true
1381
1427
  */
1382
- enum Type {
1383
- CREATED = 0,
1384
- ACCEPTED = 1
1385
- }
1386
- }
1387
- /**
1388
- * Defined in:
1389
- * {@link file://./../../../dxos/client/services.proto}
1390
- */
1391
- export interface LoadPersistentInvitationsResponse {
1392
- invitations?: Invitation[];
1393
- }
1394
- /**
1395
- * Defined in:
1396
- * {@link file://./../../../dxos/client/services.proto}
1397
- */
1398
- export interface InvitationsService {
1399
- createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
1400
- acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
1401
- authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
1402
- cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
1403
- queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
1404
- }
1405
- /**
1406
- * Defined in:
1407
- * {@link file://./../../../dxos/client/services.proto}
1408
- */
1409
- export declare enum ConnectionState {
1410
- OFFLINE = 0,
1411
- ONLINE = 1
1412
- }
1413
- /**
1414
- * Defined in:
1415
- * {@link file://./../../../dxos/client/services.proto}
1416
- */
1417
- export interface NetworkStatus {
1418
- swarm: ConnectionState;
1419
- signaling?: NetworkStatus.Signal[];
1420
- connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
1421
- }
1422
- export declare namespace NetworkStatus {
1428
+ authCode?: string;
1423
1429
  /**
1424
- * Defined in:
1425
- * {@link file://./../../../dxos/client/services.proto}
1430
+ * Path or identifier to navigate to after successful authentication.
1431
+ *
1432
+ * Options:
1433
+ * - proto3_optional = true
1426
1434
  */
1427
- interface Signal {
1428
- server: string;
1429
- state: dxos_mesh_signal.SignalState;
1430
- }
1431
- }
1432
- /**
1433
- * Defined in:
1434
- * {@link file://./../../../dxos/client/services.proto}
1435
- */
1436
- export interface UpdateConfigRequest {
1437
- swarm: ConnectionState;
1438
- }
1439
- /**
1440
- * Defined in:
1441
- * {@link file://./../../../dxos/client/services.proto}
1442
- */
1443
- export interface SubscribeSwarmStateRequest {
1444
- topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1445
- }
1446
- /**
1447
- * Defined in:
1448
- * {@link file://./../../../dxos/client/services.proto}
1449
- */
1450
- export interface NetworkService {
1451
- updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
1452
- queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
1453
- joinSwarm: (request: dxos_edge_signal.JoinRequest, options?: RequestOptions) => Promise<void>;
1454
- leaveSwarm: (request: dxos_edge_signal.LeaveRequest, options?: RequestOptions) => Promise<void>;
1435
+ target?: string;
1455
1436
  /**
1456
- * Query the swarm state without joining it.
1437
+ * Host should resume invitation on startup until timeout.
1438
+ *
1439
+ * Options:
1440
+ * - proto3_optional = true
1457
1441
  */
1458
- querySwarm: (request: dxos_edge_signal.QueryRequest, options?: RequestOptions) => Promise<dxos_edge_messenger.SwarmResponse>;
1459
- subscribeSwarmState: (request: SubscribeSwarmStateRequest, options?: RequestOptions) => Stream<dxos_edge_messenger.SwarmResponse>;
1460
- sendMessage: (request: dxos_edge_signal.Message, options?: RequestOptions) => Promise<void>;
1461
- subscribeMessages: (request: dxos_edge_messenger.Peer, options?: RequestOptions) => Stream<dxos_edge_signal.Message>;
1462
- }
1463
- /**
1464
- * Defined in:
1465
- * {@link file://./../../../dxos/client/services.proto}
1466
- */
1467
- export interface EdgeAgentService {
1468
- queryEdgeStatus: (request: void, options?: RequestOptions) => Stream<QueryEdgeStatusResponse>;
1469
- createAgent: (request: void, options?: RequestOptions) => Promise<void>;
1470
- queryAgentStatus: (request: void, options?: RequestOptions) => Stream<QueryAgentStatusResponse>;
1471
- }
1472
- /**
1473
- * Defined in:
1474
- * {@link file://./../../../dxos/client/services.proto}
1475
- */
1476
- export interface EdgeStatus {
1477
- state: EdgeStatus.ConnectionState;
1442
+ persistent?: boolean;
1478
1443
  /**
1479
- * Latency in ms
1444
+ * Options:
1445
+ * - proto3_optional = true
1480
1446
  */
1481
- rtt: number;
1447
+ created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1482
1448
  /**
1483
- * How long the connection has been up
1449
+ * Options:
1450
+ * - proto3_optional = true
1484
1451
  */
1485
- uptime: number;
1452
+ lifetime?: number;
1486
1453
  /**
1487
- * Upload rate in bytes per second
1454
+ * Whether an invitation can be used multiple times.
1455
+ *
1456
+ * Options:
1457
+ * - proto3_optional = true
1488
1458
  */
1489
- rateBytesUp: number;
1459
+ multiUse?: boolean;
1490
1460
  /**
1491
- * Download rate in bytes per second
1461
+ * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
1462
+ *
1463
+ * Options:
1464
+ * - proto3_optional = true
1492
1465
  */
1493
- rateBytesDown: number;
1494
- messagesSent: number;
1495
- messagesReceived: number;
1466
+ guestKeypair?: AdmissionKeypair;
1467
+ /**
1468
+ * Present on Type.DELEGATED invitations.
1469
+ *
1470
+ * Options:
1471
+ * - proto3_optional = true
1472
+ */
1473
+ delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1474
+ /**
1475
+ * Role of the admitted member, defaults to ADMIN.
1476
+ *
1477
+ * Options:
1478
+ * - proto3_optional = true
1479
+ */
1480
+ role?: dxos_halo_credentials.SpaceMember.Role;
1481
+ /**
1482
+ * Id of a the space to join (only present if kind is SPACE).
1483
+ *
1484
+ * Options:
1485
+ * - proto3_optional = true
1486
+ */
1487
+ spaceId?: string;
1496
1488
  }
1497
- export declare namespace EdgeStatus {
1489
+ export declare namespace Invitation {
1498
1490
  /**
1499
1491
  * Defined in:
1500
- * {@link file://./../../../dxos/client/services.proto}
1492
+ * {@link file://./../../../dxos/client/invitation.proto}
1501
1493
  */
1502
- enum ConnectionState {
1503
- NOT_CONNECTED = 0,
1504
- CONNECTED = 1
1494
+ enum Type {
1495
+ INTERACTIVE = 0,
1496
+ DELEGATED = 1,
1497
+ MULTIUSE = 2
1505
1498
  }
1506
- }
1507
- /**
1508
- * Defined in:
1509
- * {@link file://./../../../dxos/client/services.proto}
1510
- */
1511
- export interface QueryEdgeStatusResponse {
1512
- status: EdgeStatus;
1513
- }
1514
- /**
1515
- * Defined in:
1516
- * {@link file://./../../../dxos/client/services.proto}
1517
- */
1518
- export interface QueryAgentStatusResponse {
1519
- status: QueryAgentStatusResponse.AgentStatus;
1520
- }
1521
- export declare namespace QueryAgentStatusResponse {
1522
1499
  /**
1523
1500
  * Defined in:
1524
- * {@link file://./../../../dxos/client/services.proto}
1501
+ * {@link file://./../../../dxos/client/invitation.proto}
1525
1502
  */
1526
- enum AgentStatus {
1527
- UNKNOWN = 0,
1528
- ACTIVE = 1,
1529
- INACTIVE = 2,
1530
- NOT_FOUND = 3
1503
+ enum Kind {
1504
+ DEVICE = 0,
1505
+ SPACE = 1
1506
+ }
1507
+ /**
1508
+ * Defined in:
1509
+ * {@link file://./../../../dxos/client/invitation.proto}
1510
+ */
1511
+ enum AuthMethod {
1512
+ NONE = 0,
1513
+ SHARED_SECRET = 1,
1514
+ KNOWN_PUBLIC_KEY = 2
1515
+ }
1516
+ /**
1517
+ * Defined in:
1518
+ * {@link file://./../../../dxos/client/invitation.proto}
1519
+ */
1520
+ enum State {
1521
+ INIT = 0,
1522
+ CONNECTING = 1,
1523
+ CONNECTED = 2,
1524
+ READY_FOR_AUTHENTICATION = 3,
1525
+ AUTHENTICATING = 4,
1526
+ SUCCESS = 5,
1527
+ CANCELLED = 6,
1528
+ TIMEOUT = 7,
1529
+ ERROR = 8,
1530
+ EXPIRED = 9
1531
1531
  }
1532
1532
  }
1533
1533
  //# sourceMappingURL=services.d.ts.map