@dxos/client-services 0.8.1-staging.5be625a → 0.8.1-staging.97aedb1
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/dist/lib/browser/{chunk-MHPIENPS.mjs → chunk-5VIKZEA3.mjs} +53 -18
- package/dist/lib/browser/chunk-5VIKZEA3.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-CJ45ZFPW.cjs → chunk-HAYNZLSJ.cjs} +51 -16
- package/dist/lib/node/chunk-HAYNZLSJ.cjs.map +7 -0
- package/dist/lib/node/index.cjs +47 -47
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +8 -8
- package/dist/lib/node-esm/{chunk-B5OK2JAX.mjs → chunk-NK72VK3B.mjs} +53 -18
- package/dist/lib/node-esm/chunk-NK72VK3B.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +1 -1
- package/dist/types/src/packlets/devtools/feeds.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity-recovery-manager.d.ts +6 -0
- package/dist/types/src/packlets/identity/identity-recovery-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity-service.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +38 -38
- package/src/packlets/devices/devices-service.ts +2 -2
- package/src/packlets/devtools/feeds.ts +4 -3
- package/src/packlets/identity/contacts-service.ts +2 -2
- package/src/packlets/identity/identity-recovery-manager.ts +27 -0
- package/src/packlets/identity/identity-service.ts +2 -0
- package/src/packlets/spaces/spaces-service.ts +6 -6
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-MHPIENPS.mjs.map +0 -7
- package/dist/lib/node/chunk-CJ45ZFPW.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-B5OK2JAX.mjs.map +0 -7
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
InvitationsManager,
|
|
7
7
|
ServiceContext,
|
|
8
8
|
SpaceInvitationProtocol
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-NK72VK3B.mjs";
|
|
10
10
|
|
|
11
11
|
// packages/sdk/client-services/src/packlets/testing/credential-utils.ts
|
|
12
12
|
import { createCredential } from "@dxos/credentials";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feeds.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/devtools/feeds.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAgB,KAAK,SAAS,EAAoB,MAAM,kBAAkB,CAAC;AAGlF,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAQxE,eAAO,MAAM,gBAAgB,gCACE;IAAE,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IAAC,YAAY,EAAE,YAAY,CAAA;CAAE,gBAChF,uBAAuB,qCAuCtC,CAAC;AAmBF,eAAO,MAAM,qBAAqB,kBACjB;IAAE,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;CAAE,0BACvB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"feeds.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/devtools/feeds.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAgB,KAAK,SAAS,EAAoB,MAAM,kBAAkB,CAAC;AAGlF,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAQxE,eAAO,MAAM,gBAAgB,gCACE;IAAE,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IAAC,YAAY,EAAE,YAAY,CAAA;CAAE,gBAChF,uBAAuB,qCAuCtC,CAAC;AAmBF,eAAO,MAAM,qBAAqB,kBACjB;IAAE,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;CAAE,0BACvB,4BAA4B,0CAmD1D,CAAC"}
|
|
@@ -19,6 +19,12 @@ export declare class EdgeIdentityRecoveryManager {
|
|
|
19
19
|
challenge: string;
|
|
20
20
|
}>;
|
|
21
21
|
recoverIdentityWithExternalSignature({ lookupKey, deviceKey, controlFeedKey, signature, clientDataJson, authenticatorData, }: RecoverIdentityRequest.ExternalSignature): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Recovery identity using an opaque token sent to the user's email.
|
|
24
|
+
*/
|
|
25
|
+
recoverIdentityWithToken({ token }: {
|
|
26
|
+
token: string;
|
|
27
|
+
}): Promise<void>;
|
|
22
28
|
recoverIdentity({ recoveryCode }: {
|
|
23
29
|
recoveryCode: string;
|
|
24
30
|
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-recovery-manager.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/identity/identity-recovery-manager.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAQvC,OAAO,EACL,KAAK,+BAA+B,EAC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K,OAAO,CAAC,QAAQ,CAAC,EACrE,gBAAgB,CAAC,GAAE,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,aAAA;cAKpE,KAAK;IAOxB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,aAAa,CAAC;YAO9D,mBAAmB;IAOjC,aAAa,IAAI,MAAM,CAAC,qBAAqB,CAAC;IAS9C,OAAO,CAAC,YAAY;IAad,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC;IAO/D,wBAAwB,CAAC,OAAO,EAAE,+BAA+B;;;IAIjE,wBAAwB;;;;;IAIxB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,aAAa,CAAC;IAexE,gBAAgB,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,uBAAuB,GAAG,OAAO,CAAC,YAAY,CAAC;IAYzF,oBAAoB;YAeZ,+BAA+B;CA6C9C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DXOS_VERSION = "0.8.1-staging.
|
|
1
|
+
export declare const DXOS_VERSION = "0.8.1-staging.97aedb1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/client-services",
|
|
3
|
-
"version": "0.8.1-staging.
|
|
3
|
+
"version": "0.8.1-staging.97aedb1",
|
|
4
4
|
"description": "DXOS client services implementation",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -44,48 +44,48 @@
|
|
|
44
44
|
"@obsidize/tar-browserify": "^5.2.0",
|
|
45
45
|
"cbor-x": "^1.5.4",
|
|
46
46
|
"platform": "^1.3.6",
|
|
47
|
-
"@dxos/async": "0.8.1-staging.
|
|
48
|
-
"@dxos/automerge": "0.8.1-staging.
|
|
49
|
-
"@dxos/client-protocol": "0.8.1-staging.
|
|
50
|
-
"@dxos/codec-protobuf": "0.8.1-staging.
|
|
51
|
-
"@dxos/config": "0.8.1-staging.
|
|
52
|
-
"@dxos/context": "0.8.1-staging.
|
|
53
|
-
"@dxos/credentials": "0.8.1-staging.
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/echo-db": "0.8.1-staging.
|
|
57
|
-
"@dxos/echo-
|
|
58
|
-
"@dxos/echo-
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/kv-store": "0.8.1-staging.
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/network-manager": "0.8.1-staging.
|
|
71
|
-
"@dxos/node-std": "0.8.1-staging.
|
|
72
|
-
"@dxos/protocols": "0.8.1-staging.
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/teleport-extension-gossip": "0.8.1-staging.
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/util": "0.8.1-staging.
|
|
81
|
-
"@dxos/websocket-rpc": "0.8.1-staging.
|
|
47
|
+
"@dxos/async": "0.8.1-staging.97aedb1",
|
|
48
|
+
"@dxos/automerge": "0.8.1-staging.97aedb1",
|
|
49
|
+
"@dxos/client-protocol": "0.8.1-staging.97aedb1",
|
|
50
|
+
"@dxos/codec-protobuf": "0.8.1-staging.97aedb1",
|
|
51
|
+
"@dxos/config": "0.8.1-staging.97aedb1",
|
|
52
|
+
"@dxos/context": "0.8.1-staging.97aedb1",
|
|
53
|
+
"@dxos/credentials": "0.8.1-staging.97aedb1",
|
|
54
|
+
"@dxos/crypto": "0.8.1-staging.97aedb1",
|
|
55
|
+
"@dxos/debug": "0.8.1-staging.97aedb1",
|
|
56
|
+
"@dxos/echo-db": "0.8.1-staging.97aedb1",
|
|
57
|
+
"@dxos/echo-pipeline": "0.8.1-staging.97aedb1",
|
|
58
|
+
"@dxos/echo-protocol": "0.8.1-staging.97aedb1",
|
|
59
|
+
"@dxos/echo-schema": "0.8.1-staging.97aedb1",
|
|
60
|
+
"@dxos/feed-store": "0.8.1-staging.97aedb1",
|
|
61
|
+
"@dxos/indexing": "0.8.1-staging.97aedb1",
|
|
62
|
+
"@dxos/edge-client": "0.8.1-staging.97aedb1",
|
|
63
|
+
"@dxos/invariant": "0.8.1-staging.97aedb1",
|
|
64
|
+
"@dxos/keys": "0.8.1-staging.97aedb1",
|
|
65
|
+
"@dxos/kv-store": "0.8.1-staging.97aedb1",
|
|
66
|
+
"@dxos/keyring": "0.8.1-staging.97aedb1",
|
|
67
|
+
"@dxos/lock-file": "0.8.1-staging.97aedb1",
|
|
68
|
+
"@dxos/log": "0.8.1-staging.97aedb1",
|
|
69
|
+
"@dxos/messaging": "0.8.1-staging.97aedb1",
|
|
70
|
+
"@dxos/network-manager": "0.8.1-staging.97aedb1",
|
|
71
|
+
"@dxos/node-std": "0.8.1-staging.97aedb1",
|
|
72
|
+
"@dxos/protocols": "0.8.1-staging.97aedb1",
|
|
73
|
+
"@dxos/random-access-storage": "0.8.1-staging.97aedb1",
|
|
74
|
+
"@dxos/rpc": "0.8.1-staging.97aedb1",
|
|
75
|
+
"@dxos/teleport-extension-gossip": "0.8.1-staging.97aedb1",
|
|
76
|
+
"@dxos/timeframe": "0.8.1-staging.97aedb1",
|
|
77
|
+
"@dxos/tracing": "0.8.1-staging.97aedb1",
|
|
78
|
+
"@dxos/teleport": "0.8.1-staging.97aedb1",
|
|
79
|
+
"@dxos/teleport-extension-object-sync": "0.8.1-staging.97aedb1",
|
|
80
|
+
"@dxos/util": "0.8.1-staging.97aedb1",
|
|
81
|
+
"@dxos/websocket-rpc": "0.8.1-staging.97aedb1"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@types/platform": "^1.3.4",
|
|
85
85
|
"@types/readable-stream": "^2.3.9",
|
|
86
86
|
"get-port-please": "^3.1.1",
|
|
87
|
-
"@dxos/signal": "0.8.1-staging.
|
|
88
|
-
"@dxos/test-utils": "0.8.1-staging.
|
|
87
|
+
"@dxos/signal": "0.8.1-staging.97aedb1",
|
|
88
|
+
"@dxos/test-utils": "0.8.1-staging.97aedb1"
|
|
89
89
|
},
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"access": "public"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { SubscriptionList } from '@dxos/async';
|
|
6
6
|
import { Stream } from '@dxos/codec-protobuf/stream';
|
|
7
7
|
import { type EdgeConnection } from '@dxos/edge-client';
|
|
8
8
|
import { invariant } from '@dxos/invariant';
|
|
@@ -82,7 +82,7 @@ export class DevicesServiceImpl implements DevicesService {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
const subscriptions = new
|
|
85
|
+
const subscriptions = new SubscriptionList();
|
|
86
86
|
|
|
87
87
|
if (this._identityManager.identity) {
|
|
88
88
|
subscribeIdentity();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2021 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { SubscriptionList } from '@dxos/async';
|
|
6
6
|
import { Stream } from '@dxos/codec-protobuf/stream';
|
|
7
7
|
import { type SpaceManager } from '@dxos/echo-pipeline';
|
|
8
8
|
import { FeedIterator, type FeedStore, type FeedWrapper } from '@dxos/feed-store';
|
|
@@ -27,7 +27,7 @@ export const subscribeToFeeds = (
|
|
|
27
27
|
{ feedKeys }: SubscribeToFeedsRequest,
|
|
28
28
|
) => {
|
|
29
29
|
return new Stream<SubscribeToFeedsResponse>(({ next }) => {
|
|
30
|
-
const subscriptions = new
|
|
30
|
+
const subscriptions = new SubscriptionList();
|
|
31
31
|
const feedMap = new ComplexMap<PublicKey, FeedInfo>(PublicKey.hash);
|
|
32
32
|
|
|
33
33
|
const update = () => {
|
|
@@ -90,7 +90,8 @@ export const subscribeToFeedBlocks = (
|
|
|
90
90
|
if (!feedKey) {
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
|
|
94
|
+
const subscriptions = new SubscriptionList();
|
|
94
95
|
|
|
95
96
|
const timeout = setTimeout(async () => {
|
|
96
97
|
const feed = feedStore.getFeed(feedKey);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { scheduleTask, UpdateScheduler, SubscriptionList } from '@dxos/async';
|
|
6
6
|
import { Stream } from '@dxos/codec-protobuf/stream';
|
|
7
7
|
import { type MemberInfo } from '@dxos/credentials';
|
|
8
8
|
import { type SpaceManager } from '@dxos/echo-pipeline';
|
|
@@ -62,7 +62,7 @@ export class ContactsServiceImpl implements ContactsService {
|
|
|
62
62
|
{ maxFrequency: 2 },
|
|
63
63
|
);
|
|
64
64
|
scheduleTask(ctx, async () => {
|
|
65
|
-
const subscriptions = new
|
|
65
|
+
const subscriptions = new SubscriptionList();
|
|
66
66
|
ctx.onDispose(() => subscriptions.clear());
|
|
67
67
|
const subscribeToSpaceAndUpdate = () => {
|
|
68
68
|
const oldSetSize = subscribedSpaceKeySet.size;
|
|
@@ -132,6 +132,33 @@ export class EdgeIdentityRecoveryManager {
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
/**
|
|
136
|
+
* Recovery identity using an opaque token sent to the user's email.
|
|
137
|
+
*/
|
|
138
|
+
public async recoverIdentityWithToken({ token }: { token: string }) {
|
|
139
|
+
invariant(this._edgeClient, 'Not connected to EDGE.');
|
|
140
|
+
|
|
141
|
+
const deviceKey = await this._keyring.createKey();
|
|
142
|
+
const controlFeedKey = await this._keyring.createKey();
|
|
143
|
+
const request: EdgeRecoverIdentityRequest = {
|
|
144
|
+
deviceKey: deviceKey.toHex(),
|
|
145
|
+
controlFeedKey: controlFeedKey.toHex(),
|
|
146
|
+
token,
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
const response = await this._edgeClient.recoverIdentity(request);
|
|
150
|
+
|
|
151
|
+
await this._acceptRecoveredIdentity({
|
|
152
|
+
authorizedDeviceCredential: decodeCredential(response.deviceAuthCredential),
|
|
153
|
+
haloGenesisFeedKey: PublicKey.fromHex(response.genesisFeedKey),
|
|
154
|
+
haloSpaceKey: PublicKey.fromHex(response.haloSpaceKey),
|
|
155
|
+
identityKey: PublicKey.fromHex(response.identityKey),
|
|
156
|
+
deviceKey,
|
|
157
|
+
controlFeedKey,
|
|
158
|
+
dataFeedKey: await this._keyring.createKey(),
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
135
162
|
public async recoverIdentity({ recoveryCode }: { recoveryCode: string }) {
|
|
136
163
|
invariant(this._edgeClient, 'Not connected to EDGE.');
|
|
137
164
|
|
|
@@ -104,6 +104,8 @@ export class IdentityServiceImpl extends Resource implements IdentityService {
|
|
|
104
104
|
await this._recoveryManager.recoverIdentity({ recoveryCode: request.recoveryCode });
|
|
105
105
|
} else if (request.external) {
|
|
106
106
|
await this._recoveryManager.recoverIdentityWithExternalSignature(request.external);
|
|
107
|
+
} else if (request.token) {
|
|
108
|
+
await this._recoveryManager.recoverIdentityWithToken({ token: request.token });
|
|
107
109
|
} else {
|
|
108
110
|
throw new Error('Invalid request.');
|
|
109
111
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { SubscriptionList, UpdateScheduler, scheduleTask } from '@dxos/async';
|
|
6
6
|
import type { AutomergeUrl } from '@dxos/automerge/automerge-repo';
|
|
7
7
|
import { Stream } from '@dxos/codec-protobuf/stream';
|
|
8
8
|
import {
|
|
9
|
+
type CredentialProcessor,
|
|
9
10
|
createAdmissionCredentials,
|
|
10
11
|
createDidFromIdentityKey,
|
|
11
|
-
type CredentialProcessor,
|
|
12
12
|
getCredentialAssertion,
|
|
13
13
|
} from '@dxos/credentials';
|
|
14
14
|
import { raise } from '@dxos/debug';
|
|
@@ -18,11 +18,11 @@ import { assertArgument, assertState, invariant } from '@dxos/invariant';
|
|
|
18
18
|
import { SpaceId } from '@dxos/keys';
|
|
19
19
|
import { log } from '@dxos/log';
|
|
20
20
|
import {
|
|
21
|
-
ApiError,
|
|
22
|
-
SpaceNotFoundError,
|
|
23
21
|
encodeError,
|
|
24
|
-
|
|
22
|
+
ApiError,
|
|
25
23
|
AuthorizationError,
|
|
24
|
+
IdentityNotInitializedError,
|
|
25
|
+
SpaceNotFoundError,
|
|
26
26
|
} from '@dxos/protocols';
|
|
27
27
|
import {
|
|
28
28
|
SpaceMember,
|
|
@@ -140,7 +140,7 @@ export class SpacesServiceImpl implements SpacesService {
|
|
|
140
140
|
scheduleTask(ctx, async () => {
|
|
141
141
|
const dataSpaceManager = await this._getDataSpaceManager();
|
|
142
142
|
|
|
143
|
-
const subscriptions = new
|
|
143
|
+
const subscriptions = new SubscriptionList();
|
|
144
144
|
ctx.onDispose(() => subscriptions.clear());
|
|
145
145
|
|
|
146
146
|
// TODO(dmaretskyi): Create a pattern for subscribing to a set of objects.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const DXOS_VERSION = "0.8.1-staging.
|
|
1
|
+
export const DXOS_VERSION = "0.8.1-staging.97aedb1";
|