@dxos/protocols 0.5.9-main.d9a4917 → 0.5.9-main.df0042a
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 +18 -3
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +2 -0
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/config.d.ts +7 -0
- package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/config.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/halo/credentials.d.ts +9 -0
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +2 -0
- 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 +18 -3
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +2 -0
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/config.d.ts +7 -0
- package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/config.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/halo/credentials.d.ts +9 -0
- package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +2 -0
- 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 +12 -1
- package/src/proto/dxos/config.proto +2 -0
- package/src/proto/dxos/halo/credentials.proto +5 -0
- package/src/proto/gen/dxos/client/services.ts +18 -3
- package/src/proto/gen/dxos/config.ts +7 -0
- package/src/proto/gen/dxos/devtools/host.ts +31 -31
- package/src/proto/gen/dxos/halo/credentials.ts +9 -0
- package/src/proto/gen/google/protobuf.ts +4 -4
- package/src/proto/gen/index.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA6iB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,642GAA642G,CAAC,CAAC,CAAC;AACt82G,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.5.9-main.
|
|
3
|
+
"version": "0.5.9-main.df0042a",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"src"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dxos/codec-protobuf": "0.5.9-main.
|
|
37
|
-
"@dxos/invariant": "0.5.9-main.
|
|
38
|
-
"@dxos/timeframe": "0.5.9-main.
|
|
39
|
-
"@dxos/keys": "0.5.9-main.
|
|
36
|
+
"@dxos/codec-protobuf": "0.5.9-main.df0042a",
|
|
37
|
+
"@dxos/invariant": "0.5.9-main.df0042a",
|
|
38
|
+
"@dxos/timeframe": "0.5.9-main.df0042a",
|
|
39
|
+
"@dxos/keys": "0.5.9-main.df0042a"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -241,6 +241,9 @@ enum SpaceState {
|
|
|
241
241
|
|
|
242
242
|
/// Space errored.
|
|
243
243
|
ERROR = 5;
|
|
244
|
+
|
|
245
|
+
/// Data migration is required.
|
|
246
|
+
REQUIRES_MIGRATION = 8;
|
|
244
247
|
}
|
|
245
248
|
|
|
246
249
|
// TODO(burdon): Rename SpaceInfo?
|
|
@@ -361,6 +364,9 @@ message CreateEpochRequest {
|
|
|
361
364
|
|
|
362
365
|
/// Replace the current automerge root with a new one specified by the user.
|
|
363
366
|
REPLACE_AUTOMERGE_ROOT = 4;
|
|
367
|
+
|
|
368
|
+
/// Upgrade references data strucutre
|
|
369
|
+
MIGRATE_REFERENCES_TO_DXN = 5;
|
|
364
370
|
}
|
|
365
371
|
|
|
366
372
|
dxos.keys.PublicKey space_key = 1;
|
|
@@ -371,6 +377,11 @@ message CreateEpochRequest {
|
|
|
371
377
|
optional string automerge_root_url = 3;
|
|
372
378
|
}
|
|
373
379
|
|
|
380
|
+
message CreateEpochResponse {
|
|
381
|
+
/// Credential of the new epoch.
|
|
382
|
+
optional dxos.halo.credentials.Credential epoch_credential = 1;
|
|
383
|
+
}
|
|
384
|
+
|
|
374
385
|
message UpdateMemberRoleRequest {
|
|
375
386
|
dxos.keys.PublicKey space_key = 1;
|
|
376
387
|
dxos.keys.PublicKey member_key = 2;
|
|
@@ -394,7 +405,7 @@ service SpacesService {
|
|
|
394
405
|
/// Query credentials from the space control feed.
|
|
395
406
|
rpc QueryCredentials(QueryCredentialsRequest) returns (stream dxos.halo.credentials.Credential);
|
|
396
407
|
|
|
397
|
-
rpc CreateEpoch(CreateEpochRequest) returns (
|
|
408
|
+
rpc CreateEpoch(CreateEpochRequest) returns (CreateEpochResponse);
|
|
398
409
|
}
|
|
399
410
|
|
|
400
411
|
//
|
|
@@ -138,6 +138,8 @@ message Runtime {
|
|
|
138
138
|
/// Connect to and serve client services to a remote proxy.
|
|
139
139
|
optional string devtools_proxy = 7;
|
|
140
140
|
|
|
141
|
+
/// Spaces will stay in SpaceState.CLOSED until explicitly opened. Speeds up client-services initialization.
|
|
142
|
+
optional bool lazy_space_open = 9;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
message App {
|
|
@@ -181,6 +181,11 @@ message DeviceProfile {
|
|
|
181
181
|
DeviceProfileDocument profile = 1;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
/// [ASSERTION]: Sets default space for identity.
|
|
185
|
+
message DefaultSpace {
|
|
186
|
+
string space_id = 1;
|
|
187
|
+
}
|
|
188
|
+
|
|
184
189
|
// [ASSERTION]: Identity is authorized to access a KUBE.
|
|
185
190
|
message KubeAccess {
|
|
186
191
|
dxos.keys.PublicKey kube_key = 1;
|
|
@@ -559,7 +559,8 @@ export enum SpaceState {
|
|
|
559
559
|
CONTROL_ONLY = 7,
|
|
560
560
|
INITIALIZING = 4,
|
|
561
561
|
READY = 3,
|
|
562
|
-
ERROR = 5
|
|
562
|
+
ERROR = 5,
|
|
563
|
+
REQUIRES_MIGRATION = 8
|
|
563
564
|
}
|
|
564
565
|
/**
|
|
565
566
|
* Defined in:
|
|
@@ -815,9 +816,23 @@ export namespace CreateEpochRequest {
|
|
|
815
816
|
INIT_AUTOMERGE = 1,
|
|
816
817
|
PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
|
|
817
818
|
FRAGMENT_AUTOMERGE_ROOT = 3,
|
|
818
|
-
REPLACE_AUTOMERGE_ROOT = 4
|
|
819
|
+
REPLACE_AUTOMERGE_ROOT = 4,
|
|
820
|
+
MIGRATE_REFERENCES_TO_DXN = 5
|
|
819
821
|
}
|
|
820
822
|
}
|
|
823
|
+
/**
|
|
824
|
+
* Defined in:
|
|
825
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
826
|
+
*/
|
|
827
|
+
export interface CreateEpochResponse {
|
|
828
|
+
/**
|
|
829
|
+
* Credential of the new epoch.
|
|
830
|
+
*
|
|
831
|
+
* Options:
|
|
832
|
+
* - proto3_optional = true
|
|
833
|
+
*/
|
|
834
|
+
epochCredential?: dxos_halo_credentials.Credential;
|
|
835
|
+
}
|
|
821
836
|
/**
|
|
822
837
|
* Defined in:
|
|
823
838
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -852,7 +867,7 @@ export interface SpacesService {
|
|
|
852
867
|
* Query credentials from the space control feed.
|
|
853
868
|
*/
|
|
854
869
|
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
855
|
-
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<
|
|
870
|
+
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
856
871
|
}
|
|
857
872
|
/**
|
|
858
873
|
* Represents the invitation state passed between client and service.
|
|
@@ -304,6 +304,13 @@ export namespace Runtime {
|
|
|
304
304
|
* - proto3_optional = true
|
|
305
305
|
*/
|
|
306
306
|
devtoolsProxy?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Spaces will stay in SpaceState.CLOSED until explicitly opened. Speeds up client-services initialization.
|
|
309
|
+
*
|
|
310
|
+
* Options:
|
|
311
|
+
* - proto3_optional = true
|
|
312
|
+
*/
|
|
313
|
+
lazySpaceOpen?: boolean;
|
|
307
314
|
}
|
|
308
315
|
export namespace Client {
|
|
309
316
|
/**
|
|
@@ -61,6 +61,37 @@ import * as dxos_value from "../value";
|
|
|
61
61
|
import * as example_testing_data from "../../example/testing/data";
|
|
62
62
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
63
63
|
import * as google_protobuf from "../../google/protobuf";
|
|
64
|
+
/**
|
|
65
|
+
* Defined in:
|
|
66
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
67
|
+
*/
|
|
68
|
+
export interface Services {
|
|
69
|
+
spaces?: SpaceStats[];
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Defined in:
|
|
73
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
74
|
+
*/
|
|
75
|
+
export interface SpaceStats {
|
|
76
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
77
|
+
peers?: PeerStats[];
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Defined in:
|
|
81
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
82
|
+
*/
|
|
83
|
+
export interface PeerStats {
|
|
84
|
+
controlFeed: FeedStats;
|
|
85
|
+
dataFeed: FeedStats;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Defined in:
|
|
89
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
90
|
+
*/
|
|
91
|
+
export interface FeedStats {
|
|
92
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
93
|
+
length: number;
|
|
94
|
+
}
|
|
64
95
|
/**
|
|
65
96
|
* Defined in:
|
|
66
97
|
* {@link file://./../../../dxos/devtools/host.proto}
|
|
@@ -483,34 +514,3 @@ export interface SubscribeToSwarmInfoRequest {
|
|
|
483
514
|
export interface SubscribeToSwarmInfoResponse {
|
|
484
515
|
data?: dxos_devtools_swarm.SwarmInfo[];
|
|
485
516
|
}
|
|
486
|
-
/**
|
|
487
|
-
* Defined in:
|
|
488
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
489
|
-
*/
|
|
490
|
-
export interface Services {
|
|
491
|
-
spaces?: SpaceStats[];
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* Defined in:
|
|
495
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
496
|
-
*/
|
|
497
|
-
export interface SpaceStats {
|
|
498
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
499
|
-
peers?: PeerStats[];
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Defined in:
|
|
503
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
504
|
-
*/
|
|
505
|
-
export interface PeerStats {
|
|
506
|
-
controlFeed: FeedStats;
|
|
507
|
-
dataFeed: FeedStats;
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* Defined in:
|
|
511
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
512
|
-
*/
|
|
513
|
-
export interface FeedStats {
|
|
514
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
515
|
-
length: number;
|
|
516
|
-
}
|
|
@@ -310,6 +310,15 @@ export interface DeviceProfileDocument {
|
|
|
310
310
|
export interface DeviceProfile {
|
|
311
311
|
profile: DeviceProfileDocument;
|
|
312
312
|
}
|
|
313
|
+
/**
|
|
314
|
+
* [ASSERTION]: Sets default space for identity.
|
|
315
|
+
*
|
|
316
|
+
* Defined in:
|
|
317
|
+
* {@link file://./../../../dxos/halo/credentials.proto}
|
|
318
|
+
*/
|
|
319
|
+
export interface DefaultSpace {
|
|
320
|
+
spaceId: string;
|
|
321
|
+
}
|
|
313
322
|
/**
|
|
314
323
|
* Defined in:
|
|
315
324
|
* {@link file://./../../../dxos/halo/credentials.proto}
|
|
@@ -80,14 +80,14 @@ export enum NullValue {
|
|
|
80
80
|
export interface ListValue {
|
|
81
81
|
values?: Value[];
|
|
82
82
|
}
|
|
83
|
-
export interface Any {
|
|
84
|
-
type_url: string;
|
|
85
|
-
value: Uint8Array;
|
|
86
|
-
}
|
|
87
83
|
export interface Timestamp {
|
|
88
84
|
seconds: string;
|
|
89
85
|
nanos: number;
|
|
90
86
|
}
|
|
87
|
+
export interface Any {
|
|
88
|
+
type_url: string;
|
|
89
|
+
value: Uint8Array;
|
|
90
|
+
}
|
|
91
91
|
export interface FileDescriptorSet {
|
|
92
92
|
file?: FileDescriptorProto[];
|
|
93
93
|
}
|