@dxos/protocols 0.5.8 → 0.5.9-main.0a0e87d

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 +10 -1
  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 +1 -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 +1 -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 +10 -1
  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 +1 -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 +1 -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 +7 -0
  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 +10 -1
  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 +2 -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;AA4iB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,+i2GAA+i2G,CAAC,CAAC,CAAC;AACxm2G,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",
3
+ "version": "0.5.9-main.0a0e87d",
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/invariant": "0.5.8",
37
- "@dxos/codec-protobuf": "0.5.8",
38
- "@dxos/timeframe": "0.5.8",
39
- "@dxos/keys": "0.5.8"
36
+ "@dxos/invariant": "0.5.9-main.0a0e87d",
37
+ "@dxos/keys": "0.5.9-main.0a0e87d",
38
+ "@dxos/codec-protobuf": "0.5.9-main.0a0e87d",
39
+ "@dxos/timeframe": "0.5.9-main.0a0e87d"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -299,6 +299,7 @@ message Space {
299
299
  optional dxos.echo.timeframe.TimeframeVector known_data_timeframe = 17;
300
300
  }
301
301
 
302
+ string id = 5;
302
303
  dxos.keys.PublicKey space_key = 1;
303
304
  SpaceState state = 2;
304
305
  optional PipelineState pipeline = 3;
@@ -357,11 +358,17 @@ message CreateEpochRequest {
357
358
 
358
359
  /// Create a new space root and move objects from the current space root to separate automerge documents and.
359
360
  FRAGMENT_AUTOMERGE_ROOT = 3;
361
+
362
+ /// Replace the current automerge root with a new one specified by the user.
363
+ REPLACE_AUTOMERGE_ROOT = 4;
360
364
  }
361
365
 
362
366
  dxos.keys.PublicKey space_key = 1;
363
367
 
364
368
  optional Migration migration = 2;
369
+
370
+ /// For REPLACE_AUTOMERGE_ROOT migration.
371
+ optional string automerge_root_url = 3;
365
372
  }
366
373
 
367
374
  message UpdateMemberRoleRequest {
@@ -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);
@@ -566,6 +566,7 @@ export enum SpaceState {
566
566
  * {@link file://./../../../dxos/client/services.proto}
567
567
  */
568
568
  export interface Space {
569
+ id: string;
569
570
  spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
570
571
  state: SpaceState;
571
572
  /**
@@ -796,6 +797,13 @@ export interface CreateEpochRequest {
796
797
  * - proto3_optional = true
797
798
  */
798
799
  migration?: CreateEpochRequest.Migration;
800
+ /**
801
+ * For REPLACE_AUTOMERGE_ROOT migration.
802
+ *
803
+ * Options:
804
+ * - proto3_optional = true
805
+ */
806
+ automergeRootUrl?: string;
799
807
  }
800
808
  export namespace CreateEpochRequest {
801
809
  /**
@@ -806,7 +814,8 @@ export namespace CreateEpochRequest {
806
814
  NONE = 0,
807
815
  INIT_AUTOMERGE = 1,
808
816
  PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
809
- FRAGMENT_AUTOMERGE_ROOT = 3
817
+ FRAGMENT_AUTOMERGE_ROOT = 3,
818
+ REPLACE_AUTOMERGE_ROOT = 4
810
819
  }
811
820
  }
812
821
  /**
@@ -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
  *