@dxos/protocols 0.6.2-next.5b5129c → 0.6.3-main.40d1cec

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.
@@ -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;AAgEhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAujB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,416GAA416G,CAAC,CAAC,CAAC;AACr56G,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;AAgEhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA0jB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,oq7GAAoq7G,CAAC,CAAC,CAAC;AAC7t7G,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.6.2-next.5b5129c",
3
+ "version": "0.6.3-main.40d1cec",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -34,11 +34,11 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@effect/schema": "^0.67.16",
37
- "@dxos/codec-protobuf": "0.6.2-next.5b5129c",
38
- "@dxos/invariant": "0.6.2-next.5b5129c",
39
- "@dxos/timeframe": "0.6.2-next.5b5129c",
40
- "@dxos/keys": "0.6.2-next.5b5129c",
41
- "@dxos/util": "0.6.2-next.5b5129c"
37
+ "@dxos/codec-protobuf": "0.6.3-main.40d1cec",
38
+ "@dxos/keys": "0.6.3-main.40d1cec",
39
+ "@dxos/invariant": "0.6.3-main.40d1cec",
40
+ "@dxos/timeframe": "0.6.3-main.40d1cec",
41
+ "@dxos/util": "0.6.3-main.40d1cec"
42
42
  },
43
43
  "devDependencies": {
44
44
  "glob": "~7.1.6"
@@ -389,6 +389,8 @@ message CreateEpochRequest {
389
389
  message CreateEpochResponse {
390
390
  /// Credential of the new epoch.
391
391
  optional dxos.halo.credentials.Credential epoch_credential = 1;
392
+ /// Control pipeline timeframe.
393
+ optional dxos.echo.timeframe.TimeframeVector control_timeframe = 2;
392
394
  }
393
395
 
394
396
  message UpdateMemberRoleRequest {
@@ -93,6 +93,19 @@ message ReIndexHeadsRequest {
93
93
  repeated string document_ids = 1;
94
94
  }
95
95
 
96
+ message GetSpaceSyncStateRequest {
97
+ string space_id = 1;
98
+ }
99
+
100
+ message SpaceSyncState {
101
+ message PeerState {
102
+ string peer_id = 1;
103
+ int32 documents_to_reconcile = 2;
104
+ }
105
+
106
+ repeated PeerState peers = 1;
107
+ }
108
+
96
109
  service DataService {
97
110
  /**
98
111
  * Subscribe to incremental updates of multiple automerge socuments.
@@ -123,4 +136,7 @@ service DataService {
123
136
 
124
137
  /// Wait for any pending index updates.
125
138
  rpc UpdateIndexes(google.protobuf.Empty) returns (google.protobuf.Empty);
139
+
140
+ // TODO(dmaretskyi): Stream subscription.
141
+ rpc GetSpaceSyncState(GetSpaceSyncStateRequest) returns (SpaceSyncState);
126
142
  }
@@ -678,6 +678,13 @@ export interface CreateEpochResponse {
678
678
  * - proto3_optional = true
679
679
  */
680
680
  epochCredential?: dxos_halo_credentials.Credential;
681
+ /**
682
+ * Control pipeline timeframe.
683
+ *
684
+ * Options:
685
+ * - proto3_optional = true
686
+ */
687
+ controlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
681
688
  }
682
689
  /**
683
690
  * Defined in:
@@ -183,6 +183,30 @@ export interface WaitUntilHeadsReplicatedRequest {
183
183
  export interface ReIndexHeadsRequest {
184
184
  documentIds?: string[];
185
185
  }
186
+ /**
187
+ * Defined in:
188
+ * {@link file://./../../../dxos/echo/service.proto}
189
+ */
190
+ export interface GetSpaceSyncStateRequest {
191
+ spaceId: string;
192
+ }
193
+ /**
194
+ * Defined in:
195
+ * {@link file://./../../../dxos/echo/service.proto}
196
+ */
197
+ export interface SpaceSyncState {
198
+ peers?: SpaceSyncState.PeerState[];
199
+ }
200
+ export namespace SpaceSyncState {
201
+ /**
202
+ * Defined in:
203
+ * {@link file://./../../../dxos/echo/service.proto}
204
+ */
205
+ export interface PeerState {
206
+ peerId: string;
207
+ documentsToReconcile: number;
208
+ }
209
+ }
186
210
  /**
187
211
  * Defined in:
188
212
  * {@link file://./../../../dxos/echo/service.proto}
@@ -217,4 +241,5 @@ export interface DataService {
217
241
  * Wait for any pending index updates.
218
242
  */
219
243
  updateIndexes: (request: void, options?: RequestOptions) => Promise<void>;
244
+ getSpaceSyncState: (request: GetSpaceSyncStateRequest, options?: RequestOptions) => Promise<SpaceSyncState>;
220
245
  }