@dxos/protocols 0.5.9-main.a22f041 → 0.5.9-main.a2de4fa

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 (66) hide show
  1. package/dist/cjs/src/errors/errors.d.ts +3 -3
  2. package/dist/cjs/src/errors/errors.d.ts.map +1 -1
  3. package/dist/cjs/src/errors/errors.js.map +1 -1
  4. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +18 -3
  5. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  6. package/dist/cjs/src/proto/gen/dxos/client/services.js +2 -0
  7. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  8. package/dist/cjs/src/proto/gen/dxos/config.d.ts +7 -0
  9. package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
  10. package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
  11. package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts +1 -1
  12. package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts +9 -0
  14. package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
  15. package/dist/cjs/src/proto/gen/google/protobuf.d.ts +4 -4
  16. package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
  17. package/dist/cjs/src/proto/gen/index.d.ts +2 -0
  18. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  19. package/dist/cjs/src/proto/gen/index.js +1 -1
  20. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  21. package/dist/cjs/src/testing.d.ts +2 -2
  22. package/dist/cjs/src/testing.d.ts.map +1 -1
  23. package/dist/cjs/src/testing.js.map +1 -1
  24. package/dist/cjs/src/types.d.ts +2 -3
  25. package/dist/cjs/src/types.d.ts.map +1 -1
  26. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  27. package/dist/esm/src/errors/errors.d.ts +3 -3
  28. package/dist/esm/src/errors/errors.d.ts.map +1 -1
  29. package/dist/esm/src/errors/errors.js +1 -1
  30. package/dist/esm/src/errors/errors.js.map +1 -1
  31. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +18 -3
  32. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  33. package/dist/esm/src/proto/gen/dxos/client/services.js +2 -0
  34. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  35. package/dist/esm/src/proto/gen/dxos/config.d.ts +7 -0
  36. package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
  37. package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
  38. package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts +1 -1
  39. package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
  40. package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts +9 -0
  41. package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
  42. package/dist/esm/src/proto/gen/google/protobuf.d.ts +4 -4
  43. package/dist/esm/src/proto/gen/google/protobuf.d.ts.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/dist/esm/src/testing.d.ts +2 -2
  49. package/dist/esm/src/testing.d.ts.map +1 -1
  50. package/dist/esm/src/testing.js.map +1 -1
  51. package/dist/esm/src/types.d.ts +2 -3
  52. package/dist/esm/src/types.d.ts.map +1 -1
  53. package/package.json +5 -5
  54. package/src/errors/errors.ts +3 -3
  55. package/src/proto/dxos/client/services.proto +12 -1
  56. package/src/proto/dxos/config.proto +2 -0
  57. package/src/proto/dxos/echo/model/document.proto +6 -7
  58. package/src/proto/dxos/halo/credentials.proto +5 -0
  59. package/src/proto/gen/dxos/client/services.ts +18 -3
  60. package/src/proto/gen/dxos/config.ts +7 -0
  61. package/src/proto/gen/dxos/echo/model/document.ts +1 -1
  62. package/src/proto/gen/dxos/halo/credentials.ts +9 -0
  63. package/src/proto/gen/google/protobuf.ts +4 -4
  64. package/src/proto/gen/index.ts +3 -1
  65. package/src/testing.ts +2 -2
  66. package/src/types.ts +3 -5
@@ -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,uv1GAAuv1G,CAAC,CAAC,CAAC;AAChz1G,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,g42GAAg42G,CAAC,CAAC,CAAC;AACz72G,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Timeframe } from '@dxos/timeframe';
2
2
  import type { FeedMessage } from './proto/gen/dxos/echo/feed';
3
- import { type ItemID } from './types';
4
- export declare const createTestItemMutation: (objectId: ItemID, key: string, value: string, timeframe?: Timeframe) => FeedMessage;
3
+ import { type ObjectId } from './types';
4
+ export declare const createTestItemMutation: (objectId: ObjectId, key: string, value: string, timeframe?: Timeframe) => FeedMessage;
5
5
  //# sourceMappingURL=testing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAOtC,eAAO,MAAM,sBAAsB,aACvB,MAAM,OACX,MAAM,SACJ,MAAM,4BAEZ,WAsBD,CAAC"}
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOxC,eAAO,MAAM,sBAAsB,aACvB,QAAQ,OACb,MAAM,SACJ,MAAM,4BAEZ,WAsBD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAIjC,EAAE;AACF,WAAW;AACX,EAAE;AAEF,kEAAkE;AAClE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,QAAgB,EAChB,GAAW,EACX,KAAa,EACb,SAAS,GAAG,IAAI,SAAS,EAAE,EACd,EAAE,CAAC,CAAC;IACjB,SAAS;IACT,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,OAAO,EAAE;oBACP;wBACE,QAAQ;wBACR,SAAS,EAAE;4BACT;gCACE,KAAK,EAAE;oCACL,OAAO,EAAE,qBAAqB;oCAC9B,OAAO,EAAE,MAAM;oCACf,KAAK,EAAE,MAAM,CAAC,eAAe,CAAC,uCAAuC,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;iCAC9F;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/testing.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAIjC,EAAE;AACF,WAAW;AACX,EAAE;AAEF,kEAAkE;AAClE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,QAAkB,EAClB,GAAW,EACX,KAAa,EACb,SAAS,GAAG,IAAI,SAAS,EAAE,EACd,EAAE,CAAC,CAAC;IACjB,SAAS;IACT,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,OAAO,EAAE;oBACP;wBACE,QAAQ;wBACR,SAAS,EAAE;4BACT;gCACE,KAAK,EAAE;oCACL,OAAO,EAAE,qBAAqB;oCAC9B,OAAO,EAAE,MAAM;oCACf,KAAK,EAAE,MAAM,CAAC,eAAe,CAAC,uCAAuC,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;iCAC9F;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import { type TypedProtoMessage } from '@dxos/codec-protobuf';
2
2
  import { type PublicKey } from '@dxos/keys';
3
3
  import { type Timeframe } from '@dxos/timeframe';
4
4
  import { type TYPES } from './proto';
5
- import { type FeedMessage, type CredentialsMessage } from './proto/gen/dxos/echo/feed';
5
+ import { type CredentialsMessage, type FeedMessage } from './proto/gen/dxos/echo/feed';
6
6
  import { type EchoObjectBatch } from './proto/gen/dxos/echo/object';
7
7
  export type TypedMessage = TypedProtoMessage<TYPES>;
8
8
  export type FeedMeta = {
@@ -29,6 +29,5 @@ export interface IEchoStream {
29
29
  meta: MutationMetaWithTimeframe;
30
30
  batch: EchoObjectBatch;
31
31
  }
32
- export type ItemID = string;
33
- export type ItemType = string;
32
+ export type ObjectId = string;
34
33
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAGpE,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAGpD,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,OAAO,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;AAEtD,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,SAAS,EAAE,SAAS,CAAC;CACtB;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,yBAAyB,CAAC;IAChC,KAAK,EAAE,eAAe,CAAC;CACxB;AAID,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAC5B,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAGpE,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAGpD,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,OAAO,EAAE,SAAS,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;AAEtD,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC5C,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,SAAS,EAAE,SAAS,CAAC;CACtB;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,yBAAyB,CAAC;IAChC,KAAK,EAAE,eAAe,CAAC;CACxB;AAGD,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.5.9-main.a22f041",
3
+ "version": "0.5.9-main.a2de4fa",
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.9-main.a22f041",
37
- "@dxos/codec-protobuf": "0.5.9-main.a22f041",
38
- "@dxos/keys": "0.5.9-main.a22f041",
39
- "@dxos/timeframe": "0.5.9-main.a22f041"
36
+ "@dxos/codec-protobuf": "0.5.9-main.a2de4fa",
37
+ "@dxos/keys": "0.5.9-main.a2de4fa",
38
+ "@dxos/invariant": "0.5.9-main.a2de4fa",
39
+ "@dxos/timeframe": "0.5.9-main.a2de4fa"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -4,9 +4,9 @@
4
4
 
5
5
  import { PublicKey } from '@dxos/keys';
6
6
 
7
- import { ApiError, DatabaseError, SystemError, BaseError } from './base-errors';
7
+ import { ApiError, BaseError, DatabaseError, SystemError } from './base-errors';
8
8
  import { registerError, registerErrorMessageContext, registerErrorNoArgs } from './helpers';
9
- import type { ItemID } from '../types';
9
+ import type { ObjectId } from '../types';
10
10
 
11
11
  /**
12
12
  * Thrown when request was terminated because the RPC endpoint has been closed.
@@ -180,7 +180,7 @@ registerError('SPACE_NOT_FOUND', (_, context) => {
180
180
  });
181
181
 
182
182
  export class EntityNotFoundError extends DatabaseError {
183
- constructor(entityId: ItemID) {
183
+ constructor(entityId: ObjectId) {
184
184
  super('ITEM_NOT_FOUND', 'Item not found.', { entityId });
185
185
  }
186
186
  }
@@ -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
  //
@@ -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 {
@@ -61,8 +61,7 @@ message KeyValueObject {
61
61
  * Reference to an Item.
62
62
  */
63
63
  message Reference {
64
- // TODO(dmaretskyi): Rename `id`.
65
- string itemId = 1;
64
+ string object_id = 1;
66
65
 
67
66
  /// "space", or "protobuf"
68
67
  optional string protocol = 2;
@@ -111,10 +110,10 @@ message Query {
111
110
  */
112
111
  message ObjectSnapshot {
113
112
  optional string type = 1;
114
- optional Reference type_ref = 4;
113
+ optional Reference type_ref = 4;
115
114
 
116
115
  Value root = 2;
117
- optional Value meta = 3;
116
+ optional Value meta = 3;
118
117
  }
119
118
 
120
119
  /**
@@ -146,12 +145,12 @@ message YJS {
146
145
  * Set of mutations.
147
146
  */
148
147
  message ObjectMutationSet {
149
- // depereacted
148
+ // deprecated
150
149
  optional string type = 1;
151
150
  optional Reference type_ref = 4;
152
151
 
153
- repeated ObjectMutation mutations = 2;
152
+ repeated ObjectMutation mutations = 2;
154
153
 
155
154
  // Mutations for the `meta` keyspace.
156
- repeated ObjectMutation meta_mutations = 3;
155
+ repeated ObjectMutation meta_mutations = 3;
157
156
  }
@@ -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;
@@ -384,7 +384,8 @@ export enum SpaceState {
384
384
  CONTROL_ONLY = 7,
385
385
  INITIALIZING = 4,
386
386
  READY = 3,
387
- ERROR = 5
387
+ ERROR = 5,
388
+ REQUIRES_MIGRATION = 8
388
389
  }
389
390
  /**
390
391
  * Defined in:
@@ -640,9 +641,23 @@ export namespace CreateEpochRequest {
640
641
  INIT_AUTOMERGE = 1,
641
642
  PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
642
643
  FRAGMENT_AUTOMERGE_ROOT = 3,
643
- REPLACE_AUTOMERGE_ROOT = 4
644
+ REPLACE_AUTOMERGE_ROOT = 4,
645
+ MIGRATE_REFERENCES_TO_DXN = 5
644
646
  }
645
647
  }
648
+ /**
649
+ * Defined in:
650
+ * {@link file://./../../../dxos/client/services.proto}
651
+ */
652
+ export interface CreateEpochResponse {
653
+ /**
654
+ * Credential of the new epoch.
655
+ *
656
+ * Options:
657
+ * - proto3_optional = true
658
+ */
659
+ epochCredential?: dxos_halo_credentials.Credential;
660
+ }
646
661
  /**
647
662
  * Defined in:
648
663
  * {@link file://./../../../dxos/client/services.proto}
@@ -677,7 +692,7 @@ export interface SpacesService {
677
692
  * Query credentials from the space control feed.
678
693
  */
679
694
  queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
680
- createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<void>;
695
+ createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
681
696
  }
682
697
  /**
683
698
  * 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
  /**
@@ -115,7 +115,7 @@ export interface KeyValueObject {
115
115
  * {@link file://./../../../../dxos/echo/model/document.proto}
116
116
  */
117
117
  export interface Reference {
118
- itemId: string;
118
+ objectId: string;
119
119
  /**
120
120
  * "space", or "protobuf"
121
121
  *
@@ -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
  }