@dxos/client-services 0.7.5-labs.ea4b4c2 → 0.7.5-labs.f400bbc
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-X65X3DJU.mjs → chunk-VWZJYGCJ.mjs} +17 -15
- package/dist/lib/browser/chunk-VWZJYGCJ.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-2XAKPWJ6.cjs → chunk-TVKZUCQN.cjs} +19 -17
- package/dist/lib/node/chunk-TVKZUCQN.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-UCFK27SP.mjs → chunk-OEO5PHCK.mjs} +17 -15
- package/dist/lib/node-esm/chunk-OEO5PHCK.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/diagnostics/diagnostics-collector.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity-recovery-manager.d.ts +2 -2
- package/dist/types/src/packlets/identity/identity-recovery-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity-service.d.ts +2 -2
- package/dist/types/src/packlets/services/service-host.d.ts +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +39 -38
- package/src/packlets/diagnostics/diagnostics-collector.ts +2 -2
- package/src/packlets/identity/identity-recovery-manager.ts +7 -5
- package/src/packlets/spaces/data-space.ts +2 -2
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-X65X3DJU.mjs.map +0 -7
- package/dist/lib/node/chunk-2XAKPWJ6.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-UCFK27SP.mjs.map +0 -7
|
@@ -397,7 +397,7 @@ import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
|
|
|
397
397
|
import { TRACE_PROCESSOR } from "@dxos/tracing";
|
|
398
398
|
|
|
399
399
|
// packages/sdk/client-services/src/version.ts
|
|
400
|
-
var DXOS_VERSION = "0.7.5-labs.
|
|
400
|
+
var DXOS_VERSION = "0.7.5-labs.f400bbc";
|
|
401
401
|
|
|
402
402
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
403
403
|
import { Platform } from "@dxos/protocols/proto/dxos/client/services";
|
|
@@ -649,7 +649,7 @@ import { ClientServicesProviderResource } from "@dxos/client-protocol";
|
|
|
649
649
|
import { ConfigResource } from "@dxos/config";
|
|
650
650
|
import { GetDiagnosticsRequest } from "@dxos/protocols/proto/dxos/client/services";
|
|
651
651
|
import { TRACE_PROCESSOR as TRACE_PROCESSOR2 } from "@dxos/tracing";
|
|
652
|
-
import { jsonKeyReplacer,
|
|
652
|
+
import { jsonKeyReplacer, isNonNullable } from "@dxos/util";
|
|
653
653
|
var GET_DIAGNOSTICS_RPC_TIMEOUT = 1e4;
|
|
654
654
|
var DiagnosticsCollector = class {
|
|
655
655
|
static {
|
|
@@ -682,7 +682,7 @@ var findSystemServiceProvider = () => {
|
|
|
682
682
|
};
|
|
683
683
|
var findConfigs = () => {
|
|
684
684
|
const configs = TRACE_PROCESSOR2.findResourcesByAnnotation(ConfigResource);
|
|
685
|
-
return configs.map((r) => r.instance.deref()).filter(
|
|
685
|
+
return configs.map((r) => r.instance.deref()).filter(isNonNullable);
|
|
686
686
|
};
|
|
687
687
|
|
|
688
688
|
// packages/sdk/client-services/src/packlets/identity/authenticator.ts
|
|
@@ -7428,7 +7428,7 @@ var EdgeIdentityRecoveryManager = class {
|
|
|
7428
7428
|
this._identityProvider = _identityProvider;
|
|
7429
7429
|
this._acceptRecoveredIdentity = _acceptRecoveredIdentity;
|
|
7430
7430
|
}
|
|
7431
|
-
async createRecoveryCredential({ recoveryKey, algorithm }) {
|
|
7431
|
+
async createRecoveryCredential({ recoveryKey, lookupKey, algorithm }) {
|
|
7432
7432
|
const identity = this._identityProvider();
|
|
7433
7433
|
invariant19(identity, void 0, {
|
|
7434
7434
|
F: __dxlog_file27,
|
|
@@ -7440,15 +7440,16 @@ var EdgeIdentityRecoveryManager = class {
|
|
|
7440
7440
|
]
|
|
7441
7441
|
});
|
|
7442
7442
|
let recoveryCode;
|
|
7443
|
-
if (!recoveryKey) {
|
|
7443
|
+
if (!recoveryKey || !lookupKey) {
|
|
7444
7444
|
recoveryCode = generateSeedPhrase();
|
|
7445
7445
|
const keypair = keyPairFromSeedPhrase(recoveryCode);
|
|
7446
7446
|
recoveryKey = PublicKey14.from(keypair.publicKey);
|
|
7447
|
+
lookupKey = PublicKey14.random();
|
|
7447
7448
|
algorithm = "ED25519";
|
|
7448
7449
|
}
|
|
7449
7450
|
invariant19(algorithm, "Algorithm is required.", {
|
|
7450
7451
|
F: __dxlog_file27,
|
|
7451
|
-
L:
|
|
7452
|
+
L: 48,
|
|
7452
7453
|
S: this,
|
|
7453
7454
|
A: [
|
|
7454
7455
|
"algorithm",
|
|
@@ -7462,7 +7463,8 @@ var EdgeIdentityRecoveryManager = class {
|
|
|
7462
7463
|
"@type": "dxos.halo.credentials.IdentityRecovery",
|
|
7463
7464
|
recoveryKey,
|
|
7464
7465
|
identityKey,
|
|
7465
|
-
algorithm
|
|
7466
|
+
algorithm,
|
|
7467
|
+
lookupKey
|
|
7466
7468
|
}
|
|
7467
7469
|
});
|
|
7468
7470
|
const receipt = await identity.controlPipeline.writer.write({
|
|
@@ -7483,7 +7485,7 @@ var EdgeIdentityRecoveryManager = class {
|
|
|
7483
7485
|
async requestRecoveryChallenge() {
|
|
7484
7486
|
invariant19(this._edgeClient, "Not connected to EDGE.", {
|
|
7485
7487
|
F: __dxlog_file27,
|
|
7486
|
-
L:
|
|
7488
|
+
L: 68,
|
|
7487
7489
|
S: this,
|
|
7488
7490
|
A: [
|
|
7489
7491
|
"this._edgeClient",
|
|
@@ -7510,10 +7512,10 @@ var EdgeIdentityRecoveryManager = class {
|
|
|
7510
7512
|
};
|
|
7511
7513
|
}
|
|
7512
7514
|
}
|
|
7513
|
-
async recoverIdentityWithExternalSignature({
|
|
7515
|
+
async recoverIdentityWithExternalSignature({ lookupKey, deviceKey, controlFeedKey, signature, clientDataJson, authenticatorData }) {
|
|
7514
7516
|
invariant19(this._edgeClient, "Not connected to EDGE.", {
|
|
7515
7517
|
F: __dxlog_file27,
|
|
7516
|
-
L:
|
|
7518
|
+
L: 100,
|
|
7517
7519
|
S: this,
|
|
7518
7520
|
A: [
|
|
7519
7521
|
"this._edgeClient",
|
|
@@ -7521,7 +7523,7 @@ var EdgeIdentityRecoveryManager = class {
|
|
|
7521
7523
|
]
|
|
7522
7524
|
});
|
|
7523
7525
|
const request = {
|
|
7524
|
-
|
|
7526
|
+
lookupKey: lookupKey.toHex(),
|
|
7525
7527
|
deviceKey: deviceKey.toHex(),
|
|
7526
7528
|
controlFeedKey: controlFeedKey.toHex(),
|
|
7527
7529
|
signature: clientDataJson && authenticatorData ? {
|
|
@@ -7544,7 +7546,7 @@ var EdgeIdentityRecoveryManager = class {
|
|
|
7544
7546
|
async recoverIdentity({ recoveryCode }) {
|
|
7545
7547
|
invariant19(this._edgeClient, "Not connected to EDGE.", {
|
|
7546
7548
|
F: __dxlog_file27,
|
|
7547
|
-
L:
|
|
7549
|
+
L: 130,
|
|
7548
7550
|
S: this,
|
|
7549
7551
|
A: [
|
|
7550
7552
|
"this._edgeClient",
|
|
@@ -7556,7 +7558,7 @@ var EdgeIdentityRecoveryManager = class {
|
|
|
7556
7558
|
const deviceKey = await this._keyring.createKey();
|
|
7557
7559
|
const controlFeedKey = await this._keyring.createKey();
|
|
7558
7560
|
const request = {
|
|
7559
|
-
|
|
7561
|
+
lookupKey: recoveryKey.toHex(),
|
|
7560
7562
|
deviceKey: deviceKey.toHex(),
|
|
7561
7563
|
controlFeedKey: controlFeedKey.toHex()
|
|
7562
7564
|
};
|
|
@@ -7575,7 +7577,7 @@ var EdgeIdentityRecoveryManager = class {
|
|
|
7575
7577
|
}
|
|
7576
7578
|
log23.info("recovering identity", response, {
|
|
7577
7579
|
F: __dxlog_file27,
|
|
7578
|
-
L:
|
|
7580
|
+
L: 156,
|
|
7579
7581
|
S: this,
|
|
7580
7582
|
C: (f, a) => f(...a)
|
|
7581
7583
|
});
|
|
@@ -9177,4 +9179,4 @@ export {
|
|
|
9177
9179
|
importProfileData,
|
|
9178
9180
|
ClientServicesHost
|
|
9179
9181
|
};
|
|
9180
|
-
//# sourceMappingURL=chunk-
|
|
9182
|
+
//# sourceMappingURL=chunk-VWZJYGCJ.mjs.map
|