@dxos/protocols 0.5.9-main.4ed8273 → 0.5.9-main.4fc2821

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;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"}
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.4ed8273",
3
+ "version": "0.5.9-main.4fc2821",
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.4ed8273",
37
- "@dxos/invariant": "0.5.9-main.4ed8273",
38
- "@dxos/timeframe": "0.5.9-main.4ed8273",
39
- "@dxos/keys": "0.5.9-main.4ed8273"
36
+ "@dxos/codec-protobuf": "0.5.9-main.4fc2821",
37
+ "@dxos/keys": "0.5.9-main.4fc2821",
38
+ "@dxos/invariant": "0.5.9-main.4fc2821",
39
+ "@dxos/timeframe": "0.5.9-main.4fc2821"
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 (google.protobuf.Empty);
408
+ rpc CreateEpoch(CreateEpochRequest) returns (CreateEpochResponse);
398
409
  }
399
410
 
400
411
  //
@@ -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<void>;
870
+ createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
856
871
  }
857
872
  /**
858
873
  * Represents the invitation state passed between client and service.