@dxos/protocols 0.1.31 → 0.1.32-next.77d513e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +51 -4
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +10 -6
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/metadata.d.ts +26 -1
- package/dist/cjs/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts +1 -47
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +5 -0
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +6 -6
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +3 -3
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +51 -4
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +9 -5
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/metadata.d.ts +26 -1
- package/dist/esm/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts +1 -47
- package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +5 -0
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +6 -6
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +3 -3
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/package.json +5 -5
- package/src/proto/dxos/client/services.proto +31 -4
- package/src/proto/dxos/echo/metadata.proto +16 -2
- package/src/proto/dxos/halo/credentials.proto +1 -38
- package/src/proto/dxos/halo/invitations.proto +1 -0
- package/src/proto/gen/dxos/client/services.ts +51 -4
- package/src/proto/gen/dxos/devtools/host.ts +31 -31
- package/src/proto/gen/dxos/echo/metadata.ts +26 -1
- package/src/proto/gen/dxos/halo/credentials.ts +1 -47
- package/src/proto/gen/dxos/halo/invitations.ts +5 -0
- package/src/proto/gen/google/protobuf.ts +6 -6
- package/src/proto/gen/index.ts +4 -4
|
@@ -7,7 +7,6 @@ syntax = "proto3";
|
|
|
7
7
|
import "google/protobuf/timestamp.proto";
|
|
8
8
|
|
|
9
9
|
import "dxos/echo/timeframe.proto";
|
|
10
|
-
import "dxos/halo/credentials.proto";
|
|
11
10
|
import "dxos/keys.proto";
|
|
12
11
|
|
|
13
12
|
package dxos.echo.metadata;
|
|
@@ -24,7 +23,7 @@ message EchoMetadata {
|
|
|
24
23
|
google.protobuf.Timestamp updated = 3;
|
|
25
24
|
|
|
26
25
|
// TODO(dmaretskyi): Store the device key associated with the identity.
|
|
27
|
-
optional
|
|
26
|
+
optional IdentityRecord identity = 10;
|
|
28
27
|
|
|
29
28
|
/// List of the data spaces.
|
|
30
29
|
repeated SpaceMetadata spaces = 11;
|
|
@@ -55,3 +54,18 @@ message SpaceMetadata {
|
|
|
55
54
|
|
|
56
55
|
optional string snapshot = 7;
|
|
57
56
|
}
|
|
57
|
+
|
|
58
|
+
/// Information needed to bootstrap an Identity.
|
|
59
|
+
message IdentityRecord {
|
|
60
|
+
dxos.keys.PublicKey identity_key = 1;
|
|
61
|
+
dxos.keys.PublicKey device_key = 2;
|
|
62
|
+
|
|
63
|
+
SpaceMetadata halo_space = 3;
|
|
64
|
+
|
|
65
|
+
/// Public profile information.
|
|
66
|
+
/// TODO(burdon): Not yet implemented. Must be null.
|
|
67
|
+
optional SpaceMetadata profile_space = 4;
|
|
68
|
+
|
|
69
|
+
/// Cached profile.
|
|
70
|
+
optional ProfileDocument profile = 5;
|
|
71
|
+
}
|
|
@@ -100,7 +100,7 @@ message HaloSpace {
|
|
|
100
100
|
/// [ASSERTION]: Grants recovery permissions to a recovery key.
|
|
101
101
|
message IdentityRecovery {
|
|
102
102
|
dxos.keys.PublicKey identity_key = 1;
|
|
103
|
-
/// Public key
|
|
103
|
+
/// Public key derived from the recovery seedphrase.
|
|
104
104
|
dxos.keys.PublicKey recovery_key = 2;
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -212,40 +212,3 @@ message Presentation {
|
|
|
212
212
|
repeated Credential credentials = 1;
|
|
213
213
|
repeated Proof proofs = 2;
|
|
214
214
|
}
|
|
215
|
-
|
|
216
|
-
//
|
|
217
|
-
// **Metadata** -
|
|
218
|
-
// Persistent metadata stored outside of used to bootsrapt the stack.
|
|
219
|
-
//
|
|
220
|
-
|
|
221
|
-
/// Information needed to bootstrap a Space.
|
|
222
|
-
message SpaceRecord {
|
|
223
|
-
dxos.keys.PublicKey space_key = 1;
|
|
224
|
-
|
|
225
|
-
/// All feeds in the space must form a DAG (or a tree?)
|
|
226
|
-
/// This is the root feed of that structure.
|
|
227
|
-
dxos.keys.PublicKey genesis_feed_key = 2;
|
|
228
|
-
|
|
229
|
-
/// Key of the writable feed for control messages.
|
|
230
|
-
/// Keyring must have the associated private key.
|
|
231
|
-
dxos.keys.PublicKey write_control_feed_key = 3;
|
|
232
|
-
|
|
233
|
-
/// Key of the writable feed for data messages.
|
|
234
|
-
/// Keyring must have the associated private key.
|
|
235
|
-
dxos.keys.PublicKey write_data_feed_key = 4;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/// Information needed to bootstrap an Identity.
|
|
239
|
-
message IdentityRecord {
|
|
240
|
-
dxos.keys.PublicKey identity_key = 1;
|
|
241
|
-
dxos.keys.PublicKey device_key = 2;
|
|
242
|
-
|
|
243
|
-
SpaceRecord halo_space = 3;
|
|
244
|
-
|
|
245
|
-
/// Public profile information.
|
|
246
|
-
/// TODO(burdon): Not yet implemented. Must be null.
|
|
247
|
-
optional SpaceRecord profile_space = 4;
|
|
248
|
-
|
|
249
|
-
/// Cached profile.
|
|
250
|
-
optional ProfileDocument profile = 5;
|
|
251
|
-
}
|
|
@@ -45,6 +45,7 @@ message HaloAdmissionOffer {
|
|
|
45
45
|
dxos.keys.PublicKey identity_key = 1;
|
|
46
46
|
dxos.keys.PublicKey halo_space_key = 2;
|
|
47
47
|
dxos.keys.PublicKey genesis_feed_key = 3;
|
|
48
|
+
optional dxos.echo.timeframe.TimeframeVector control_timeframe = 4;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
message HaloAdmissionCredentials {
|
|
@@ -219,12 +219,16 @@ export namespace SpaceMember {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
|
+
* Runtime state of the space object.
|
|
223
|
+
*
|
|
222
224
|
* Defined in:
|
|
223
225
|
* {@link file://./../../../dxos/client/services.proto}
|
|
224
226
|
*/
|
|
225
|
-
export enum
|
|
226
|
-
|
|
227
|
-
INACTIVE =
|
|
227
|
+
export enum SpaceState {
|
|
228
|
+
CLOSED = 1,
|
|
229
|
+
INACTIVE = 2,
|
|
230
|
+
INITIALIZING = 4,
|
|
231
|
+
READY = 3
|
|
228
232
|
}
|
|
229
233
|
/**
|
|
230
234
|
* Defined in:
|
|
@@ -232,9 +236,52 @@ export enum SpaceStatus {
|
|
|
232
236
|
*/
|
|
233
237
|
export interface Space {
|
|
234
238
|
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
235
|
-
|
|
239
|
+
state: SpaceState;
|
|
240
|
+
/**
|
|
241
|
+
* Options:
|
|
242
|
+
* - proto3_optional = true
|
|
243
|
+
*/
|
|
244
|
+
pipeline?: Space.PipelineState;
|
|
236
245
|
members?: SpaceMember[];
|
|
237
246
|
}
|
|
247
|
+
export namespace Space {
|
|
248
|
+
/**
|
|
249
|
+
* Defined in:
|
|
250
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
251
|
+
*/
|
|
252
|
+
export interface PipelineState {
|
|
253
|
+
/**
|
|
254
|
+
* Options:
|
|
255
|
+
* - proto3_optional = true
|
|
256
|
+
*/
|
|
257
|
+
controlFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
258
|
+
/**
|
|
259
|
+
* Options:
|
|
260
|
+
* - proto3_optional = true
|
|
261
|
+
*/
|
|
262
|
+
dataFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
263
|
+
/**
|
|
264
|
+
* Options:
|
|
265
|
+
* - proto3_optional = true
|
|
266
|
+
*/
|
|
267
|
+
currentControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
268
|
+
/**
|
|
269
|
+
* Options:
|
|
270
|
+
* - proto3_optional = true
|
|
271
|
+
*/
|
|
272
|
+
targetControlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
273
|
+
/**
|
|
274
|
+
* Options:
|
|
275
|
+
* - proto3_optional = true
|
|
276
|
+
*/
|
|
277
|
+
currentDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
278
|
+
/**
|
|
279
|
+
* Options:
|
|
280
|
+
* - proto3_optional = true
|
|
281
|
+
*/
|
|
282
|
+
targetDataTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
238
285
|
/**
|
|
239
286
|
* Defined in:
|
|
240
287
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -48,6 +48,37 @@ import * as dxos_type from "../type";
|
|
|
48
48
|
import * as example_testing_data from "../../example/testing/data";
|
|
49
49
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
50
50
|
import * as google_protobuf from "../../google/protobuf";
|
|
51
|
+
/**
|
|
52
|
+
* Defined in:
|
|
53
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
54
|
+
*/
|
|
55
|
+
export interface Services {
|
|
56
|
+
spaces?: SpaceStats[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Defined in:
|
|
60
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
61
|
+
*/
|
|
62
|
+
export interface SpaceStats {
|
|
63
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
64
|
+
peers?: PeerStats[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Defined in:
|
|
68
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
69
|
+
*/
|
|
70
|
+
export interface PeerStats {
|
|
71
|
+
controlFeed: FeedStats;
|
|
72
|
+
dataFeed: FeedStats;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Defined in:
|
|
76
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
77
|
+
*/
|
|
78
|
+
export interface FeedStats {
|
|
79
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
80
|
+
length: number;
|
|
81
|
+
}
|
|
51
82
|
/**
|
|
52
83
|
* Defined in:
|
|
53
84
|
* {@link file://./../../../dxos/devtools/host.proto}
|
|
@@ -432,34 +463,3 @@ export interface TracingService {
|
|
|
432
463
|
export interface SetTracingOptionsRequest {
|
|
433
464
|
enable: boolean;
|
|
434
465
|
}
|
|
435
|
-
/**
|
|
436
|
-
* Defined in:
|
|
437
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
438
|
-
*/
|
|
439
|
-
export interface Services {
|
|
440
|
-
spaces?: SpaceStats[];
|
|
441
|
-
}
|
|
442
|
-
/**
|
|
443
|
-
* Defined in:
|
|
444
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
445
|
-
*/
|
|
446
|
-
export interface SpaceStats {
|
|
447
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
448
|
-
peers?: PeerStats[];
|
|
449
|
-
}
|
|
450
|
-
/**
|
|
451
|
-
* Defined in:
|
|
452
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
453
|
-
*/
|
|
454
|
-
export interface PeerStats {
|
|
455
|
-
controlFeed: FeedStats;
|
|
456
|
-
dataFeed: FeedStats;
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* Defined in:
|
|
460
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
461
|
-
*/
|
|
462
|
-
export interface FeedStats {
|
|
463
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
464
|
-
length: number;
|
|
465
|
-
}
|
|
@@ -65,7 +65,7 @@ export interface EchoMetadata {
|
|
|
65
65
|
* Options:
|
|
66
66
|
* - proto3_optional = true
|
|
67
67
|
*/
|
|
68
|
-
identity?:
|
|
68
|
+
identity?: IdentityRecord;
|
|
69
69
|
/**
|
|
70
70
|
* List of the data spaces.
|
|
71
71
|
*/
|
|
@@ -119,3 +119,28 @@ export interface SpaceMetadata {
|
|
|
119
119
|
*/
|
|
120
120
|
snapshot?: string;
|
|
121
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Information needed to bootstrap an Identity.
|
|
124
|
+
*
|
|
125
|
+
* Defined in:
|
|
126
|
+
* {@link file://./../../../dxos/echo/metadata.proto}
|
|
127
|
+
*/
|
|
128
|
+
export interface IdentityRecord {
|
|
129
|
+
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
130
|
+
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
131
|
+
haloSpace: SpaceMetadata;
|
|
132
|
+
/**
|
|
133
|
+
* TODO(burdon): Not yet implemented. Must be null.
|
|
134
|
+
*
|
|
135
|
+
* Options:
|
|
136
|
+
* - proto3_optional = true
|
|
137
|
+
*/
|
|
138
|
+
profileSpace?: SpaceMetadata;
|
|
139
|
+
/**
|
|
140
|
+
* Cached profile.
|
|
141
|
+
*
|
|
142
|
+
* Options:
|
|
143
|
+
* - proto3_optional = true
|
|
144
|
+
*/
|
|
145
|
+
profile?: dxos_halo_credentials.ProfileDocument;
|
|
146
|
+
}
|
|
@@ -141,7 +141,7 @@ export interface HaloSpace {
|
|
|
141
141
|
export interface IdentityRecovery {
|
|
142
142
|
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
143
143
|
/**
|
|
144
|
-
* Public key
|
|
144
|
+
* Public key derived from the recovery seedphrase.
|
|
145
145
|
*/
|
|
146
146
|
recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
147
147
|
}
|
|
@@ -288,49 +288,3 @@ export interface Presentation {
|
|
|
288
288
|
credentials?: Credential[];
|
|
289
289
|
proofs?: Proof[];
|
|
290
290
|
}
|
|
291
|
-
/**
|
|
292
|
-
* Information needed to bootstrap a Space.
|
|
293
|
-
*
|
|
294
|
-
* Defined in:
|
|
295
|
-
* {@link file://./../../../dxos/halo/credentials.proto}
|
|
296
|
-
*/
|
|
297
|
-
export interface SpaceRecord {
|
|
298
|
-
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
299
|
-
/**
|
|
300
|
-
* This is the root feed of that structure.
|
|
301
|
-
*/
|
|
302
|
-
genesisFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
303
|
-
/**
|
|
304
|
-
* Keyring must have the associated private key.
|
|
305
|
-
*/
|
|
306
|
-
writeControlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
307
|
-
/**
|
|
308
|
-
* Keyring must have the associated private key.
|
|
309
|
-
*/
|
|
310
|
-
writeDataFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* Information needed to bootstrap an Identity.
|
|
314
|
-
*
|
|
315
|
-
* Defined in:
|
|
316
|
-
* {@link file://./../../../dxos/halo/credentials.proto}
|
|
317
|
-
*/
|
|
318
|
-
export interface IdentityRecord {
|
|
319
|
-
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
320
|
-
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
321
|
-
haloSpace: SpaceRecord;
|
|
322
|
-
/**
|
|
323
|
-
* TODO(burdon): Not yet implemented. Must be null.
|
|
324
|
-
*
|
|
325
|
-
* Options:
|
|
326
|
-
* - proto3_optional = true
|
|
327
|
-
*/
|
|
328
|
-
profileSpace?: SpaceRecord;
|
|
329
|
-
/**
|
|
330
|
-
* Cached profile.
|
|
331
|
-
*
|
|
332
|
-
* Options:
|
|
333
|
-
* - proto3_optional = true
|
|
334
|
-
*/
|
|
335
|
-
profile?: ProfileDocument;
|
|
336
|
-
}
|
|
@@ -94,6 +94,11 @@ export interface HaloAdmissionOffer {
|
|
|
94
94
|
identityKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
95
95
|
haloSpaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
96
96
|
genesisFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
97
|
+
/**
|
|
98
|
+
* Options:
|
|
99
|
+
* - proto3_optional = true
|
|
100
|
+
*/
|
|
101
|
+
controlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
97
102
|
}
|
|
98
103
|
/**
|
|
99
104
|
* Defined in:
|
|
@@ -48,12 +48,6 @@ import * as dxos_service_supervisor from "../dxos/service/supervisor";
|
|
|
48
48
|
import * as dxos_type from "../dxos/type";
|
|
49
49
|
import * as example_testing_data from "../example/testing/data";
|
|
50
50
|
import * as example_testing_rpc from "../example/testing/rpc";
|
|
51
|
-
export interface Empty {
|
|
52
|
-
}
|
|
53
|
-
export interface Timestamp {
|
|
54
|
-
seconds: string;
|
|
55
|
-
nanos: number;
|
|
56
|
-
}
|
|
57
51
|
export interface Any {
|
|
58
52
|
type_url: string;
|
|
59
53
|
value: Uint8Array;
|
|
@@ -75,6 +69,12 @@ export enum NullValue {
|
|
|
75
69
|
export interface ListValue {
|
|
76
70
|
values?: Value[];
|
|
77
71
|
}
|
|
72
|
+
export interface Empty {
|
|
73
|
+
}
|
|
74
|
+
export interface Timestamp {
|
|
75
|
+
seconds: string;
|
|
76
|
+
nanos: number;
|
|
77
|
+
}
|
|
78
78
|
export interface DoubleValue {
|
|
79
79
|
value: number;
|
|
80
80
|
}
|