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