@dxos/client-protocol 0.9.0 → 0.9.1-staging.ee54ba693a

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/client-protocol",
3
- "version": "0.9.0",
3
+ "version": "0.9.1-staging.ee54ba693a",
4
4
  "description": "Core DXOS Client API.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,19 +33,19 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "base-x": "~3.0.11",
36
- "effect": "3.21.3",
37
- "@dxos/async": "0.9.0",
38
- "@dxos/credentials": "0.9.0",
39
- "@dxos/echo": "0.9.0",
40
- "@dxos/invariant": "0.9.0",
41
- "@dxos/echo-client": "0.9.0",
42
- "@dxos/keys": "0.9.0",
43
- "@dxos/node-std": "0.9.0",
44
- "@dxos/protocols": "0.9.0",
45
- "@dxos/rpc": "0.9.0"
36
+ "effect": "3.21.4",
37
+ "@dxos/credentials": "0.9.1-staging.ee54ba693a",
38
+ "@dxos/echo-client": "0.9.1-staging.ee54ba693a",
39
+ "@dxos/echo": "0.9.1-staging.ee54ba693a",
40
+ "@dxos/async": "0.9.1-staging.ee54ba693a",
41
+ "@dxos/node-std": "0.9.1-staging.ee54ba693a",
42
+ "@dxos/invariant": "0.9.1-staging.ee54ba693a",
43
+ "@dxos/keys": "0.9.1-staging.ee54ba693a",
44
+ "@dxos/protocols": "0.9.1-staging.ee54ba693a",
45
+ "@dxos/rpc": "0.9.1-staging.ee54ba693a"
46
46
  },
47
47
  "peerDependencies": {
48
- "effect": "3.21.3"
48
+ "effect": "3.21.4"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"
package/src/halo.ts CHANGED
@@ -26,7 +26,7 @@ export interface Halo {
26
26
  get credentials(): MulticastObservable<Credential[]>;
27
27
 
28
28
  createIdentity(options?: ProfileDocument, deviceProfile?: DeviceProfileDocument): Promise<Identity>;
29
- recoverIdentity(args: { recoveryCode: string }): Promise<Identity>;
29
+ recoverIdentity(args: { recoveryCode: string } | { recoveryProof: string } | { token: string }): Promise<Identity>;
30
30
  updateProfile(profile: ProfileDocument): Promise<Identity>;
31
31
 
32
32
  share(options?: Partial<Invitation>): CancellableInvitation;
package/src/space.ts CHANGED
@@ -6,8 +6,8 @@ import * as Schema from 'effect/Schema';
6
6
 
7
7
  import { type MulticastObservable } from '@dxos/async';
8
8
  import { type SpecificCredential } from '@dxos/credentials';
9
- import { type Database, type Obj } from '@dxos/echo';
10
- import { type EchoDatabase, type QueueFactory, type SpaceSyncState } from '@dxos/echo-client';
9
+ import { type Obj } from '@dxos/echo';
10
+ import { type EchoDatabase, type SpaceSyncState } from '@dxos/echo-client';
11
11
  import { type PublicKey, type SpaceId } from '@dxos/keys';
12
12
  import { type Messenger } from '@dxos/protocols';
13
13
  import {
@@ -91,12 +91,7 @@ export interface Space extends Messenger {
91
91
  /**
92
92
  * Echo database.
93
93
  */
94
- get db(): Database.Database;
95
-
96
- /**
97
- * Access to queues.
98
- */
99
- get queues(): QueueFactory;
94
+ get db(): EchoDatabase;
100
95
 
101
96
  // TODO(burdon): Replace with state?
102
97
  get isOpen(): boolean;
@@ -49,9 +49,6 @@ export type SpacePropertiesSchema = Schema.Schema.Type<typeof SpacePropertiesSch
49
49
 
50
50
  // TODO(burdon): Pipe Schem.optional, or partial to entire struct to make everything optional?
51
51
  // TODO(burdon): Is separate schema def required for forms? Can it be extracted from SpaceProperties?
52
- export const SpaceProperties = SpacePropertiesSchema.pipe(
53
- Annotation.HiddenAnnotation.set(true),
54
- Type.makeObject(DXN.make('org.dxos.type.spaceProperties', '0.1.0')),
55
- );
56
-
57
- export type SpaceProperties = Type.InstanceType<typeof SpaceProperties>;
52
+ export class SpaceProperties extends Type.makeObject<SpaceProperties>(
53
+ DXN.make('org.dxos.type.spaceProperties', '0.1.0'),
54
+ )(SpacePropertiesSchema.pipe(Annotation.HiddenAnnotation.set(true))) {}