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