@dxos/protocols 0.5.8-next.4b7fabd → 0.5.9-main.079a532

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.
Files changed (64) hide show
  1. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +27 -3
  2. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  3. package/dist/cjs/src/proto/gen/dxos/client/services.js +3 -0
  4. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/config.d.ts +7 -0
  6. package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
  7. package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
  8. package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts +31 -31
  9. package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  10. package/dist/cjs/src/proto/gen/dxos/echo/filter.d.ts +5 -0
  11. package/dist/cjs/src/proto/gen/dxos/echo/filter.d.ts.map +1 -1
  12. package/dist/cjs/src/proto/gen/dxos/echo/filter.js.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/echo/query.d.ts +4 -0
  14. package/dist/cjs/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
  15. package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts +9 -0
  16. package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
  17. package/dist/cjs/src/proto/gen/dxos/iframe.d.ts +14 -0
  18. package/dist/cjs/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  19. package/dist/cjs/src/proto/gen/dxos/iframe.js.map +1 -1
  20. package/dist/cjs/src/proto/gen/index.d.ts +2 -0
  21. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  22. package/dist/cjs/src/proto/gen/index.js +1 -1
  23. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  24. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  25. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +27 -3
  26. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  27. package/dist/esm/src/proto/gen/dxos/client/services.js +3 -0
  28. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  29. package/dist/esm/src/proto/gen/dxos/config.d.ts +7 -0
  30. package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
  31. package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
  32. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts +31 -31
  33. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  34. package/dist/esm/src/proto/gen/dxos/echo/filter.d.ts +5 -0
  35. package/dist/esm/src/proto/gen/dxos/echo/filter.d.ts.map +1 -1
  36. package/dist/esm/src/proto/gen/dxos/echo/filter.js.map +1 -1
  37. package/dist/esm/src/proto/gen/dxos/echo/query.d.ts +4 -0
  38. package/dist/esm/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
  39. package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts +9 -0
  40. package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
  41. package/dist/esm/src/proto/gen/dxos/iframe.d.ts +14 -0
  42. package/dist/esm/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  43. package/dist/esm/src/proto/gen/dxos/iframe.js.map +1 -1
  44. package/dist/esm/src/proto/gen/index.d.ts +2 -0
  45. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  46. package/dist/esm/src/proto/gen/index.js +1 -1
  47. package/dist/esm/src/proto/gen/index.js.map +1 -1
  48. package/package.json +5 -5
  49. package/src/proto/dxos/client/services.proto +19 -1
  50. package/src/proto/dxos/config.proto +2 -0
  51. package/src/proto/dxos/echo/filter.proto +6 -0
  52. package/src/proto/dxos/echo/query.proto +2 -0
  53. package/src/proto/dxos/echo/service.proto +1 -0
  54. package/src/proto/dxos/halo/credentials.proto +5 -0
  55. package/src/proto/dxos/iframe.proto +8 -0
  56. package/src/proto/dxos/mesh/signal.proto +0 -2
  57. package/src/proto/gen/dxos/client/services.ts +27 -3
  58. package/src/proto/gen/dxos/config.ts +7 -0
  59. package/src/proto/gen/dxos/devtools/host.ts +31 -31
  60. package/src/proto/gen/dxos/echo/filter.ts +5 -0
  61. package/src/proto/gen/dxos/echo/query.ts +4 -0
  62. package/src/proto/gen/dxos/halo/credentials.ts +9 -0
  63. package/src/proto/gen/dxos/iframe.ts +14 -0
  64. 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;AA2iB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4o0GAA4o0G,CAAC,CAAC,CAAC;AACrs0G,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,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.8-next.4b7fabd",
3
+ "version": "0.5.9-main.079a532",
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.8-next.4b7fabd",
37
- "@dxos/keys": "0.5.8-next.4b7fabd",
38
- "@dxos/timeframe": "0.5.8-next.4b7fabd",
39
- "@dxos/invariant": "0.5.8-next.4b7fabd"
36
+ "@dxos/codec-protobuf": "0.5.9-main.079a532",
37
+ "@dxos/invariant": "0.5.9-main.079a532",
38
+ "@dxos/keys": "0.5.9-main.079a532",
39
+ "@dxos/timeframe": "0.5.9-main.079a532"
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?
@@ -299,6 +302,7 @@ message Space {
299
302
  optional dxos.echo.timeframe.TimeframeVector known_data_timeframe = 17;
300
303
  }
301
304
 
305
+ string id = 5;
302
306
  dxos.keys.PublicKey space_key = 1;
303
307
  SpaceState state = 2;
304
308
  optional PipelineState pipeline = 3;
@@ -357,11 +361,25 @@ message CreateEpochRequest {
357
361
 
358
362
  /// Create a new space root and move objects from the current space root to separate automerge documents and.
359
363
  FRAGMENT_AUTOMERGE_ROOT = 3;
364
+
365
+ /// Replace the current automerge root with a new one specified by the user.
366
+ REPLACE_AUTOMERGE_ROOT = 4;
367
+
368
+ /// Upgrade references data strucutre
369
+ MIGRATE_REFERENCES_TO_DXN = 5;
360
370
  }
361
371
 
362
372
  dxos.keys.PublicKey space_key = 1;
363
373
 
364
374
  optional Migration migration = 2;
375
+
376
+ /// For REPLACE_AUTOMERGE_ROOT migration.
377
+ optional string automerge_root_url = 3;
378
+ }
379
+
380
+ message CreateEpochResponse {
381
+ /// Credential of the new epoch.
382
+ optional dxos.halo.credentials.Credential epoch_credential = 1;
365
383
  }
366
384
 
367
385
  message UpdateMemberRoleRequest {
@@ -387,7 +405,7 @@ service SpacesService {
387
405
  /// Query credentials from the space control feed.
388
406
  rpc QueryCredentials(QueryCredentialsRequest) returns (stream dxos.halo.credentials.Credential);
389
407
 
390
- rpc CreateEpoch(CreateEpochRequest) returns (google.protobuf.Empty);
408
+ rpc CreateEpoch(CreateEpochRequest) returns (CreateEpochResponse);
391
409
  }
392
410
 
393
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 {
@@ -35,6 +35,7 @@ message QueryOptions {
35
35
 
36
36
  /**
37
37
  * Query only in specific spaces.
38
+ * @deprecated Use `spaceIds` instead.
38
39
  */
39
40
  repeated dxos.keys.PublicKey spaces = 3;
40
41
 
@@ -49,6 +50,11 @@ message QueryOptions {
49
50
  * @default `QueryOptions.DataLocation.LOCAL`
50
51
  */
51
52
  optional DataLocation data_location = 4;
53
+
54
+ /**
55
+ * Query only in specific spaces.
56
+ */
57
+ repeated string spaceIds = 5;
52
58
  }
53
59
 
54
60
  /**
@@ -29,6 +29,8 @@ message Heads {
29
29
 
30
30
  message QueryResult {
31
31
  string id = 1;
32
+ string spaceId = 4;
33
+ /// @deprecated Use spaceId.
32
34
  dxos.keys.PublicKey spaceKey = 2;
33
35
  float rank = 3;
34
36
  }
@@ -52,6 +52,7 @@ message FlushRequest {
52
52
  repeated string heads = 2;
53
53
  }
54
54
 
55
+ // TODO(dmaretskyi): Does not appear to be used.
55
56
  optional dxos.keys.PublicKey space_key = 1;
56
57
  /**
57
58
  * Automerge specific document ids to wait to flush.
@@ -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;
@@ -35,8 +35,12 @@ message AppContextRequest {
35
35
  /// The display mode that shell should use.
36
36
  optional ShellDisplay display = 1;
37
37
 
38
+ // TODO(wittjosiah): Remove.
38
39
  /// The key of the joined space.
39
40
  optional dxos.keys.PublicKey space_key = 2;
41
+
42
+ /// The id of the joined space.
43
+ optional string space_id = 5;
40
44
 
41
45
  /// Target to redirect to after a successful invitation.
42
46
  optional string target = 3;
@@ -71,9 +75,13 @@ message LayoutRequest {
71
75
  /// Invitation code to join a space.
72
76
  optional string invitation_code = 2;
73
77
 
78
+ // TODO(wittjosiah): Remove.
74
79
  /// Key of the space to share.
75
80
  optional dxos.keys.PublicKey space_key = 3;
76
81
 
82
+ /// Id of the space to share.
83
+ optional string space_id = 5;
84
+
77
85
  /// Target to include in an invitation for redirecting after a successful invitation.
78
86
  optional string target = 4;
79
87
  }
@@ -9,7 +9,6 @@ import "google/protobuf/empty.proto";
9
9
  import "google/protobuf/struct.proto";
10
10
  import "google/protobuf/timestamp.proto";
11
11
 
12
-
13
12
  package dxos.mesh.signal;
14
13
 
15
14
  option go_package = "github.com/dxos/kube/proto/def/dxos/mesh/signal";
@@ -94,7 +93,6 @@ enum SignalState {
94
93
  }
95
94
 
96
95
  // TOOD(burdon): Rename.
97
- // TODO(burdon): Reconcile with `@dxos/kube`.
98
96
  service Signal {
99
97
  rpc Join(JoinRequest) returns (stream SwarmEvent);
100
98
  rpc ReceiveMessages(ReceptionRequest) returns (stream Message);
@@ -559,13 +559,15 @@ 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:
566
567
  * {@link file://./../../../dxos/client/services.proto}
567
568
  */
568
569
  export interface Space {
570
+ id: string;
569
571
  spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
570
572
  state: SpaceState;
571
573
  /**
@@ -796,6 +798,13 @@ export interface CreateEpochRequest {
796
798
  * - proto3_optional = true
797
799
  */
798
800
  migration?: CreateEpochRequest.Migration;
801
+ /**
802
+ * For REPLACE_AUTOMERGE_ROOT migration.
803
+ *
804
+ * Options:
805
+ * - proto3_optional = true
806
+ */
807
+ automergeRootUrl?: string;
799
808
  }
800
809
  export namespace CreateEpochRequest {
801
810
  /**
@@ -806,9 +815,24 @@ export namespace CreateEpochRequest {
806
815
  NONE = 0,
807
816
  INIT_AUTOMERGE = 1,
808
817
  PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
809
- FRAGMENT_AUTOMERGE_ROOT = 3
818
+ FRAGMENT_AUTOMERGE_ROOT = 3,
819
+ REPLACE_AUTOMERGE_ROOT = 4,
820
+ MIGRATE_REFERENCES_TO_DXN = 5
810
821
  }
811
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
+ }
812
836
  /**
813
837
  * Defined in:
814
838
  * {@link file://./../../../dxos/client/services.proto}
@@ -843,7 +867,7 @@ export interface SpacesService {
843
867
  * Query credentials from the space control feed.
844
868
  */
845
869
  queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
846
- createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<void>;
870
+ createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
847
871
  }
848
872
  /**
849
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,37 +61,6 @@ 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
- }
95
64
  /**
96
65
  * Defined in:
97
66
  * {@link file://./../../../dxos/devtools/host.proto}
@@ -514,3 +483,34 @@ export interface SubscribeToSwarmInfoRequest {
514
483
  export interface SubscribeToSwarmInfoResponse {
515
484
  data?: dxos_devtools_swarm.SwarmInfo[];
516
485
  }
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
+ }
@@ -81,6 +81,7 @@ export interface QueryOptions {
81
81
  models?: string[];
82
82
  /**
83
83
  * Query only in specific spaces.
84
+ * @deprecated Use `spaceIds` instead.
84
85
  */
85
86
  spaces?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
86
87
  /**
@@ -91,6 +92,10 @@ export interface QueryOptions {
91
92
  * - proto3_optional = true
92
93
  */
93
94
  dataLocation?: QueryOptions.DataLocation;
95
+ /**
96
+ * Query only in specific spaces.
97
+ */
98
+ spaceIds?: string[];
94
99
  }
95
100
  export namespace QueryOptions {
96
101
  /**
@@ -90,6 +90,10 @@ export interface Heads {
90
90
  */
91
91
  export interface QueryResult {
92
92
  id: string;
93
+ spaceId: string;
94
+ /**
95
+ * @deprecated Use spaceId.
96
+ */
93
97
  spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
94
98
  rank: number;
95
99
  }
@@ -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}
@@ -122,6 +122,13 @@ export interface AppContextRequest {
122
122
  * - proto3_optional = true
123
123
  */
124
124
  spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
125
+ /**
126
+ * The id of the joined space.
127
+ *
128
+ * Options:
129
+ * - proto3_optional = true
130
+ */
131
+ spaceId?: string;
125
132
  /**
126
133
  * Target to redirect to after a successful invitation.
127
134
  *
@@ -184,6 +191,13 @@ export interface LayoutRequest {
184
191
  * - proto3_optional = true
185
192
  */
186
193
  spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
194
+ /**
195
+ * Id of the space to share.
196
+ *
197
+ * Options:
198
+ * - proto3_optional = true
199
+ */
200
+ spaceId?: string;
187
201
  /**
188
202
  * Target to include in an invitation for redirecting after a successful invitation.
189
203
  *