@dxos/client-services 0.3.2-main.ec06501 → 0.3.2-main.f938553
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-KLSDV4XQ.mjs → chunk-JKJ5S5BV.mjs} +51 -51
- package/dist/lib/browser/chunk-JKJ5S5BV.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +2 -2
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs.map +2 -2
- package/dist/lib/node/index.cjs +51 -51
- package/dist/lib/node/index.cjs.map +2 -2
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +50 -50
- package/dist/lib/node/packlets/testing/index.cjs.map +2 -2
- package/dist/types/src/packlets/devices/devices-service.d.ts +3 -3
- package/dist/types/src/packlets/devices/devices-service.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/devtools.d.ts +4 -4
- package/dist/types/src/packlets/devtools/devtools.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/feeds.d.ts +3 -3
- package/dist/types/src/packlets/devtools/feeds.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/keys.d.ts +2 -2
- package/dist/types/src/packlets/devtools/keys.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/metadata.d.ts +2 -2
- package/dist/types/src/packlets/devtools/metadata.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/network.d.ts +3 -3
- package/dist/types/src/packlets/devtools/network.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/spaces.d.ts +2 -2
- package/dist/types/src/packlets/devtools/spaces.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/authenticator.d.ts +5 -5
- package/dist/types/src/packlets/identity/authenticator.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity-manager.d.ts +5 -5
- package/dist/types/src/packlets/identity/identity-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity-service.d.ts +4 -4
- package/dist/types/src/packlets/identity/identity-service.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity.d.ts +7 -7
- package/dist/types/src/packlets/identity/identity.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/device-invitation-protocol.d.ts +4 -4
- package/dist/types/src/packlets/invitations/device-invitation-protocol.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitation-extension.d.ts +3 -3
- package/dist/types/src/packlets/invitations/invitation-extension.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitation-protocol.d.ts +3 -3
- package/dist/types/src/packlets/invitations/invitation-protocol.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts +1 -1
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-service.d.ts +3 -3
- package/dist/types/src/packlets/invitations/invitations-service.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/space-invitation-protocol.d.ts +6 -6
- package/dist/types/src/packlets/invitations/space-invitation-protocol.d.ts.map +1 -1
- package/dist/types/src/packlets/locks/browser.d.ts +1 -1
- package/dist/types/src/packlets/locks/browser.d.ts.map +1 -1
- package/dist/types/src/packlets/locks/node.d.ts +1 -1
- package/dist/types/src/packlets/locks/node.d.ts.map +1 -1
- package/dist/types/src/packlets/locks/resource-lock.d.ts +1 -1
- package/dist/types/src/packlets/locks/resource-lock.d.ts.map +1 -1
- package/dist/types/src/packlets/logging/logging-service.d.ts +1 -1
- package/dist/types/src/packlets/logging/logging-service.d.ts.map +1 -1
- package/dist/types/src/packlets/network/network-service.d.ts +3 -3
- package/dist/types/src/packlets/network/network-service.d.ts.map +1 -1
- package/dist/types/src/packlets/services/client-rpc-server.d.ts +5 -5
- package/dist/types/src/packlets/services/client-rpc-server.d.ts.map +1 -1
- package/dist/types/src/packlets/services/diagnostics.d.ts +8 -8
- package/dist/types/src/packlets/services/diagnostics.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-context.d.ts +6 -6
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts +5 -5
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-registry.d.ts +1 -1
- package/dist/types/src/packlets/services/service-registry.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts +7 -7
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts +9 -9
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/genesis.d.ts +3 -3
- package/dist/types/src/packlets/spaces/genesis.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/notarization-plugin.d.ts +5 -5
- package/dist/types/src/packlets/spaces/notarization-plugin.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts +7 -7
- package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
- package/dist/types/src/packlets/system/system-service.d.ts +5 -5
- package/dist/types/src/packlets/system/system-service.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/credential-utils.d.ts +2 -2
- package/dist/types/src/packlets/testing/credential-utils.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/invitation-utils.d.ts +1 -1
- package/dist/types/src/packlets/testing/invitation-utils.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts +4 -4
- package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/iframe-host-runtime.d.ts +4 -4
- package/dist/types/src/packlets/vault/iframe-host-runtime.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/iframe-proxy-runtime.d.ts +4 -4
- package/dist/types/src/packlets/vault/iframe-proxy-runtime.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/shell-runtime.d.ts +4 -4
- package/dist/types/src/packlets/vault/shell-runtime.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/worker-runtime.d.ts +3 -3
- package/dist/types/src/packlets/vault/worker-runtime.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/worker-session.d.ts +3 -3
- package/dist/types/src/packlets/vault/worker-session.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +35 -35
- package/src/packlets/devices/devices-service.test.ts +2 -2
- package/src/packlets/devices/devices-service.ts +9 -4
- package/src/packlets/devtools/devtools.ts +35 -35
- package/src/packlets/devtools/feeds.ts +6 -6
- package/src/packlets/devtools/keys.ts +2 -2
- package/src/packlets/devtools/metadata.ts +2 -2
- package/src/packlets/devtools/network.ts +8 -8
- package/src/packlets/devtools/spaces.ts +8 -5
- package/src/packlets/identity/authenticator.ts +5 -5
- package/src/packlets/identity/identity-manager.test.ts +1 -1
- package/src/packlets/identity/identity-manager.ts +6 -6
- package/src/packlets/identity/identity-service.test.ts +2 -2
- package/src/packlets/identity/identity-service.ts +8 -8
- package/src/packlets/identity/identity.test.ts +2 -2
- package/src/packlets/identity/identity.ts +12 -8
- package/src/packlets/invitations/device-invitation-protocol.test.ts +1 -1
- package/src/packlets/invitations/device-invitation-protocol.ts +8 -4
- package/src/packlets/invitations/invitation-extension.ts +6 -6
- package/src/packlets/invitations/invitation-protocol.ts +7 -3
- package/src/packlets/invitations/invitations-handler.ts +7 -2
- package/src/packlets/invitations/invitations-service.ts +5 -5
- package/src/packlets/invitations/space-invitation-protocol.test.ts +1 -1
- package/src/packlets/invitations/space-invitation-protocol.ts +12 -8
- package/src/packlets/locks/browser.ts +1 -1
- package/src/packlets/locks/node.ts +2 -2
- package/src/packlets/locks/resource-lock.ts +1 -1
- package/src/packlets/logging/logging-service.ts +14 -8
- package/src/packlets/logging/logging.test.ts +1 -1
- package/src/packlets/network/network-service.test.ts +2 -2
- package/src/packlets/network/network-service.ts +7 -3
- package/src/packlets/services/client-rpc-server.ts +5 -5
- package/src/packlets/services/diagnostics.ts +13 -13
- package/src/packlets/services/service-context.test.ts +2 -2
- package/src/packlets/services/service-context.ts +9 -9
- package/src/packlets/services/service-host.test.ts +3 -3
- package/src/packlets/services/service-host.ts +9 -9
- package/src/packlets/services/service-registry.test.ts +2 -2
- package/src/packlets/services/service-registry.ts +1 -1
- package/src/packlets/spaces/data-space-manager.test.ts +4 -4
- package/src/packlets/spaces/data-space-manager.ts +8 -8
- package/src/packlets/spaces/data-space.ts +10 -10
- package/src/packlets/spaces/genesis.ts +3 -3
- package/src/packlets/spaces/notarization-plugin.test.ts +2 -2
- package/src/packlets/spaces/notarization-plugin.ts +5 -5
- package/src/packlets/spaces/spaces-service.test.ts +2 -2
- package/src/packlets/spaces/spaces-service.ts +17 -17
- package/src/packlets/system/system-service.test.ts +1 -1
- package/src/packlets/system/system-service.ts +9 -9
- package/src/packlets/testing/credential-utils.ts +2 -2
- package/src/packlets/testing/invitation-utils.ts +1 -1
- package/src/packlets/testing/test-builder.ts +4 -4
- package/src/packlets/vault/iframe-host-runtime.ts +6 -6
- package/src/packlets/vault/iframe-proxy-runtime.ts +10 -5
- package/src/packlets/vault/shell-runtime.ts +4 -4
- package/src/packlets/vault/worker-runtime.ts +3 -3
- package/src/packlets/vault/worker-session.ts +5 -5
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-KLSDV4XQ.mjs.map +0 -7
|
@@ -109,7 +109,7 @@ var getPlatform = () => {
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
// packages/sdk/client-services/src/version.ts
|
|
112
|
-
var DXOS_VERSION = "0.3.2-main.
|
|
112
|
+
var DXOS_VERSION = "0.3.2-main.f938553";
|
|
113
113
|
|
|
114
114
|
// packages/sdk/client-services/src/packlets/services/diagnostics.ts
|
|
115
115
|
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
@@ -395,7 +395,7 @@ var Identity = class Identity2 {
|
|
|
395
395
|
deviceKey
|
|
396
396
|
}, {
|
|
397
397
|
F: __dxlog_file3,
|
|
398
|
-
L:
|
|
398
|
+
L: 64,
|
|
399
399
|
S: this,
|
|
400
400
|
C: (f, a) => f(...a)
|
|
401
401
|
});
|
|
@@ -467,7 +467,7 @@ var Identity = class Identity2 {
|
|
|
467
467
|
getIdentityCredentialSigner() {
|
|
468
468
|
(0, import_invariant2.invariant)(this._deviceStateMachine.deviceCredentialChain, "Device credential chain is not ready.", {
|
|
469
469
|
F: __dxlog_file3,
|
|
470
|
-
L:
|
|
470
|
+
L: 145,
|
|
471
471
|
S: this,
|
|
472
472
|
A: [
|
|
473
473
|
"this._deviceStateMachine.deviceCredentialChain",
|
|
@@ -491,7 +491,7 @@ var Identity = class Identity2 {
|
|
|
491
491
|
dataFeedKey
|
|
492
492
|
}, {
|
|
493
493
|
F: __dxlog_file3,
|
|
494
|
-
L:
|
|
494
|
+
L: 161,
|
|
495
495
|
S: this,
|
|
496
496
|
C: (f, a) => f(...a)
|
|
497
497
|
});
|
|
@@ -1012,7 +1012,7 @@ var DeviceInvitationProtocol = class {
|
|
|
1012
1012
|
async admit(request) {
|
|
1013
1013
|
(0, import_invariant5.invariant)(request.device, void 0, {
|
|
1014
1014
|
F: __dxlog_file6,
|
|
1015
|
-
L:
|
|
1015
|
+
L: 35,
|
|
1016
1016
|
S: this,
|
|
1017
1017
|
A: [
|
|
1018
1018
|
"request.device",
|
|
@@ -1048,7 +1048,7 @@ var DeviceInvitationProtocol = class {
|
|
|
1048
1048
|
async accept(response, request) {
|
|
1049
1049
|
(0, import_invariant5.invariant)(response.device, void 0, {
|
|
1050
1050
|
F: __dxlog_file6,
|
|
1051
|
-
L:
|
|
1051
|
+
L: 68,
|
|
1052
1052
|
S: this,
|
|
1053
1053
|
A: [
|
|
1054
1054
|
"response.device",
|
|
@@ -1058,7 +1058,7 @@ var DeviceInvitationProtocol = class {
|
|
|
1058
1058
|
const { identityKey, haloSpaceKey, genesisFeedKey, controlTimeframe } = response.device;
|
|
1059
1059
|
(0, import_invariant5.invariant)(request.device, void 0, {
|
|
1060
1060
|
F: __dxlog_file6,
|
|
1061
|
-
L:
|
|
1061
|
+
L: 71,
|
|
1062
1062
|
S: this,
|
|
1063
1063
|
A: [
|
|
1064
1064
|
"request.device",
|
|
@@ -1448,7 +1448,7 @@ var InvitationsHandler = class {
|
|
|
1448
1448
|
const authCode = options?.authCode ?? (authMethod === import_services4.Invitation.AuthMethod.SHARED_SECRET ? (0, import_credentials9.generatePasscode)(import_client_protocol2.AUTHENTICATION_CODE_LENGTH) : void 0);
|
|
1449
1449
|
(0, import_invariant7.invariant)(protocol, void 0, {
|
|
1450
1450
|
F: __dxlog_file8,
|
|
1451
|
-
L:
|
|
1451
|
+
L: 80,
|
|
1452
1452
|
S: this,
|
|
1453
1453
|
A: [
|
|
1454
1454
|
"protocol",
|
|
@@ -1477,7 +1477,7 @@ var InvitationsHandler = class {
|
|
|
1477
1477
|
...protocol.toJSON()
|
|
1478
1478
|
}, {
|
|
1479
1479
|
F: __dxlog_file8,
|
|
1480
|
-
L:
|
|
1480
|
+
L: 102,
|
|
1481
1481
|
S: this,
|
|
1482
1482
|
C: (f, a) => f(...a)
|
|
1483
1483
|
});
|
|
@@ -1502,7 +1502,7 @@ var InvitationsHandler = class {
|
|
|
1502
1502
|
const deviceKey = admissionRequest.device?.deviceKey ?? admissionRequest.space?.deviceKey;
|
|
1503
1503
|
(0, import_invariant7.invariant)(deviceKey, void 0, {
|
|
1504
1504
|
F: __dxlog_file8,
|
|
1505
|
-
L:
|
|
1505
|
+
L: 123,
|
|
1506
1506
|
S: this,
|
|
1507
1507
|
A: [
|
|
1508
1508
|
"deviceKey",
|
|
@@ -1525,7 +1525,7 @@ var InvitationsHandler = class {
|
|
|
1525
1525
|
id: traceId
|
|
1526
1526
|
}), {
|
|
1527
1527
|
F: __dxlog_file8,
|
|
1528
|
-
L:
|
|
1528
|
+
L: 141,
|
|
1529
1529
|
S: this,
|
|
1530
1530
|
C: (f, a) => f(...a)
|
|
1531
1531
|
});
|
|
@@ -1533,7 +1533,7 @@ var InvitationsHandler = class {
|
|
|
1533
1533
|
...protocol.toJSON()
|
|
1534
1534
|
}, {
|
|
1535
1535
|
F: __dxlog_file8,
|
|
1536
|
-
L:
|
|
1536
|
+
L: 142,
|
|
1537
1537
|
S: this,
|
|
1538
1538
|
C: (f, a) => f(...a)
|
|
1539
1539
|
});
|
|
@@ -1549,7 +1549,7 @@ var InvitationsHandler = class {
|
|
|
1549
1549
|
...protocol.toJSON()
|
|
1550
1550
|
}, {
|
|
1551
1551
|
F: __dxlog_file8,
|
|
1552
|
-
L:
|
|
1552
|
+
L: 145,
|
|
1553
1553
|
S: this,
|
|
1554
1554
|
C: (f, a) => f(...a)
|
|
1555
1555
|
});
|
|
@@ -1561,7 +1561,7 @@ var InvitationsHandler = class {
|
|
|
1561
1561
|
id: traceId
|
|
1562
1562
|
}), {
|
|
1563
1563
|
F: __dxlog_file8,
|
|
1564
|
-
L:
|
|
1564
|
+
L: 147,
|
|
1565
1565
|
S: this,
|
|
1566
1566
|
C: (f, a) => f(...a)
|
|
1567
1567
|
});
|
|
@@ -1571,7 +1571,7 @@ var InvitationsHandler = class {
|
|
|
1571
1571
|
...protocol.toJSON()
|
|
1572
1572
|
}, {
|
|
1573
1573
|
F: __dxlog_file8,
|
|
1574
|
-
L:
|
|
1574
|
+
L: 150,
|
|
1575
1575
|
S: this,
|
|
1576
1576
|
C: (f, a) => f(...a)
|
|
1577
1577
|
});
|
|
@@ -1582,7 +1582,7 @@ var InvitationsHandler = class {
|
|
|
1582
1582
|
} else {
|
|
1583
1583
|
import_log6.log.error("failed", err, {
|
|
1584
1584
|
F: __dxlog_file8,
|
|
1585
|
-
L:
|
|
1585
|
+
L: 153,
|
|
1586
1586
|
S: this,
|
|
1587
1587
|
C: (f, a) => f(...a)
|
|
1588
1588
|
});
|
|
@@ -1593,7 +1593,7 @@ var InvitationsHandler = class {
|
|
|
1593
1593
|
error: err
|
|
1594
1594
|
}), {
|
|
1595
1595
|
F: __dxlog_file8,
|
|
1596
|
-
L:
|
|
1596
|
+
L: 156,
|
|
1597
1597
|
S: this,
|
|
1598
1598
|
C: (f, a) => f(...a)
|
|
1599
1599
|
});
|
|
@@ -1614,7 +1614,7 @@ var InvitationsHandler = class {
|
|
|
1614
1614
|
...protocol.toJSON()
|
|
1615
1615
|
}, {
|
|
1616
1616
|
F: __dxlog_file8,
|
|
1617
|
-
L:
|
|
1617
|
+
L: 171,
|
|
1618
1618
|
S: this,
|
|
1619
1619
|
C: (f, a) => f(...a)
|
|
1620
1620
|
});
|
|
@@ -1625,7 +1625,7 @@ var InvitationsHandler = class {
|
|
|
1625
1625
|
} else {
|
|
1626
1626
|
import_log6.log.error("failed", err, {
|
|
1627
1627
|
F: __dxlog_file8,
|
|
1628
|
-
L:
|
|
1628
|
+
L: 174,
|
|
1629
1629
|
S: this,
|
|
1630
1630
|
C: (f, a) => f(...a)
|
|
1631
1631
|
});
|
|
@@ -1670,7 +1670,7 @@ var InvitationsHandler = class {
|
|
|
1670
1670
|
const { timeout = import_client_protocol2.INVITATION_TIMEOUT } = invitation;
|
|
1671
1671
|
(0, import_invariant7.invariant)(protocol, void 0, {
|
|
1672
1672
|
F: __dxlog_file8,
|
|
1673
|
-
L:
|
|
1673
|
+
L: 215,
|
|
1674
1674
|
S: this,
|
|
1675
1675
|
A: [
|
|
1676
1676
|
"protocol",
|
|
@@ -1684,7 +1684,7 @@ var InvitationsHandler = class {
|
|
|
1684
1684
|
const setState = (newData) => {
|
|
1685
1685
|
(0, import_invariant7.invariant)(newData.state !== void 0, void 0, {
|
|
1686
1686
|
F: __dxlog_file8,
|
|
1687
|
-
L:
|
|
1687
|
+
L: 226,
|
|
1688
1688
|
S: this,
|
|
1689
1689
|
A: [
|
|
1690
1690
|
"newData.state !== undefined",
|
|
@@ -1704,7 +1704,7 @@ var InvitationsHandler = class {
|
|
|
1704
1704
|
...protocol.toJSON()
|
|
1705
1705
|
}, {
|
|
1706
1706
|
F: __dxlog_file8,
|
|
1707
|
-
L:
|
|
1707
|
+
L: 234,
|
|
1708
1708
|
S: this,
|
|
1709
1709
|
C: (f, a) => f(...a)
|
|
1710
1710
|
});
|
|
@@ -1714,7 +1714,7 @@ var InvitationsHandler = class {
|
|
|
1714
1714
|
} else {
|
|
1715
1715
|
import_log6.log.warn("auth failed", err, {
|
|
1716
1716
|
F: __dxlog_file8,
|
|
1717
|
-
L:
|
|
1717
|
+
L: 237,
|
|
1718
1718
|
S: this,
|
|
1719
1719
|
C: (f, a) => f(...a)
|
|
1720
1720
|
});
|
|
@@ -1728,7 +1728,7 @@ var InvitationsHandler = class {
|
|
|
1728
1728
|
...protocol.toJSON()
|
|
1729
1729
|
}, {
|
|
1730
1730
|
F: __dxlog_file8,
|
|
1731
|
-
L:
|
|
1731
|
+
L: 245,
|
|
1732
1732
|
S: this,
|
|
1733
1733
|
C: (f, a) => f(...a)
|
|
1734
1734
|
});
|
|
@@ -1743,7 +1743,7 @@ var InvitationsHandler = class {
|
|
|
1743
1743
|
currentState
|
|
1744
1744
|
}, {
|
|
1745
1745
|
F: __dxlog_file8,
|
|
1746
|
-
L:
|
|
1746
|
+
L: 255,
|
|
1747
1747
|
S: this,
|
|
1748
1748
|
C: (f, a) => f(...a)
|
|
1749
1749
|
});
|
|
@@ -1758,7 +1758,7 @@ var InvitationsHandler = class {
|
|
|
1758
1758
|
id: traceId
|
|
1759
1759
|
}), {
|
|
1760
1760
|
F: __dxlog_file8,
|
|
1761
|
-
L:
|
|
1761
|
+
L: 264,
|
|
1762
1762
|
S: this,
|
|
1763
1763
|
C: (f, a) => f(...a)
|
|
1764
1764
|
});
|
|
@@ -1770,7 +1770,7 @@ var InvitationsHandler = class {
|
|
|
1770
1770
|
...protocol.toJSON()
|
|
1771
1771
|
}, {
|
|
1772
1772
|
F: __dxlog_file8,
|
|
1773
|
-
L:
|
|
1773
|
+
L: 272,
|
|
1774
1774
|
S: this,
|
|
1775
1775
|
C: (f, a) => f(...a)
|
|
1776
1776
|
});
|
|
@@ -1781,7 +1781,7 @@ var InvitationsHandler = class {
|
|
|
1781
1781
|
...protocol.toJSON()
|
|
1782
1782
|
}, {
|
|
1783
1783
|
F: __dxlog_file8,
|
|
1784
|
-
L:
|
|
1784
|
+
L: 276,
|
|
1785
1785
|
S: this,
|
|
1786
1786
|
C: (f, a) => f(...a)
|
|
1787
1787
|
});
|
|
@@ -1791,7 +1791,7 @@ var InvitationsHandler = class {
|
|
|
1791
1791
|
response: introductionResponse
|
|
1792
1792
|
}, {
|
|
1793
1793
|
F: __dxlog_file8,
|
|
1794
|
-
L:
|
|
1794
|
+
L: 280,
|
|
1795
1795
|
S: this,
|
|
1796
1796
|
C: (f, a) => f(...a)
|
|
1797
1797
|
});
|
|
@@ -1803,7 +1803,7 @@ var InvitationsHandler = class {
|
|
|
1803
1803
|
for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
|
|
1804
1804
|
(0, import_log6.log)("guest waiting for authentication code...", void 0, {
|
|
1805
1805
|
F: __dxlog_file8,
|
|
1806
|
-
L:
|
|
1806
|
+
L: 289,
|
|
1807
1807
|
S: this,
|
|
1808
1808
|
C: (f, a) => f(...a)
|
|
1809
1809
|
});
|
|
@@ -1815,7 +1815,7 @@ var InvitationsHandler = class {
|
|
|
1815
1815
|
});
|
|
1816
1816
|
(0, import_log6.log)("sending authentication request", void 0, {
|
|
1817
1817
|
F: __dxlog_file8,
|
|
1818
|
-
L:
|
|
1818
|
+
L: 293,
|
|
1819
1819
|
S: this,
|
|
1820
1820
|
C: (f, a) => f(...a)
|
|
1821
1821
|
});
|
|
@@ -1836,7 +1836,7 @@ var InvitationsHandler = class {
|
|
|
1836
1836
|
attempt
|
|
1837
1837
|
}, {
|
|
1838
1838
|
F: __dxlog_file8,
|
|
1839
|
-
L:
|
|
1839
|
+
L: 304,
|
|
1840
1840
|
S: this,
|
|
1841
1841
|
C: (f, a) => f(...a)
|
|
1842
1842
|
});
|
|
@@ -1853,7 +1853,7 @@ var InvitationsHandler = class {
|
|
|
1853
1853
|
...protocol.toJSON()
|
|
1854
1854
|
}, {
|
|
1855
1855
|
F: __dxlog_file8,
|
|
1856
|
-
L:
|
|
1856
|
+
L: 315,
|
|
1857
1857
|
S: this,
|
|
1858
1858
|
C: (f, a) => f(...a)
|
|
1859
1859
|
});
|
|
@@ -1865,7 +1865,7 @@ var InvitationsHandler = class {
|
|
|
1865
1865
|
...protocol.toJSON()
|
|
1866
1866
|
}, {
|
|
1867
1867
|
F: __dxlog_file8,
|
|
1868
|
-
L:
|
|
1868
|
+
L: 326,
|
|
1869
1869
|
S: this,
|
|
1870
1870
|
C: (f, a) => f(...a)
|
|
1871
1871
|
});
|
|
@@ -1877,7 +1877,7 @@ var InvitationsHandler = class {
|
|
|
1877
1877
|
id: traceId
|
|
1878
1878
|
}), {
|
|
1879
1879
|
F: __dxlog_file8,
|
|
1880
|
-
L:
|
|
1880
|
+
L: 328,
|
|
1881
1881
|
S: this,
|
|
1882
1882
|
C: (f, a) => f(...a)
|
|
1883
1883
|
});
|
|
@@ -1887,7 +1887,7 @@ var InvitationsHandler = class {
|
|
|
1887
1887
|
...protocol.toJSON()
|
|
1888
1888
|
}, {
|
|
1889
1889
|
F: __dxlog_file8,
|
|
1890
|
-
L:
|
|
1890
|
+
L: 331,
|
|
1891
1891
|
S: this,
|
|
1892
1892
|
C: (f, a) => f(...a)
|
|
1893
1893
|
});
|
|
@@ -1897,7 +1897,7 @@ var InvitationsHandler = class {
|
|
|
1897
1897
|
} else {
|
|
1898
1898
|
(0, import_log6.log)("auth failed", err, {
|
|
1899
1899
|
F: __dxlog_file8,
|
|
1900
|
-
L:
|
|
1900
|
+
L: 334,
|
|
1901
1901
|
S: this,
|
|
1902
1902
|
C: (f, a) => f(...a)
|
|
1903
1903
|
});
|
|
@@ -1908,7 +1908,7 @@ var InvitationsHandler = class {
|
|
|
1908
1908
|
error: err
|
|
1909
1909
|
}), {
|
|
1910
1910
|
F: __dxlog_file8,
|
|
1911
|
-
L:
|
|
1911
|
+
L: 337,
|
|
1912
1912
|
S: this,
|
|
1913
1913
|
C: (f, a) => f(...a)
|
|
1914
1914
|
});
|
|
@@ -1926,7 +1926,7 @@ var InvitationsHandler = class {
|
|
|
1926
1926
|
...protocol.toJSON()
|
|
1927
1927
|
}, {
|
|
1928
1928
|
F: __dxlog_file8,
|
|
1929
|
-
L:
|
|
1929
|
+
L: 348,
|
|
1930
1930
|
S: this,
|
|
1931
1931
|
C: (f, a) => f(...a)
|
|
1932
1932
|
});
|
|
@@ -1936,7 +1936,7 @@ var InvitationsHandler = class {
|
|
|
1936
1936
|
} else {
|
|
1937
1937
|
(0, import_log6.log)("auth failed", err, {
|
|
1938
1938
|
F: __dxlog_file8,
|
|
1939
|
-
L:
|
|
1939
|
+
L: 351,
|
|
1940
1940
|
S: this,
|
|
1941
1941
|
C: (f, a) => f(...a)
|
|
1942
1942
|
});
|
|
@@ -1949,7 +1949,7 @@ var InvitationsHandler = class {
|
|
|
1949
1949
|
(0, import_async5.scheduleTask)(ctx, async () => {
|
|
1950
1950
|
(0, import_invariant7.invariant)(invitation.swarmKey, void 0, {
|
|
1951
1951
|
F: __dxlog_file8,
|
|
1952
|
-
L:
|
|
1952
|
+
L: 361,
|
|
1953
1953
|
S: this,
|
|
1954
1954
|
A: [
|
|
1955
1955
|
"invitation.swarmKey",
|
|
@@ -2199,7 +2199,7 @@ var SpaceInvitationProtocol = class {
|
|
|
2199
2199
|
async admit(request, guestProfile) {
|
|
2200
2200
|
(0, import_invariant9.invariant)(this._spaceKey, void 0, {
|
|
2201
2201
|
F: __dxlog_file10,
|
|
2202
|
-
L:
|
|
2202
|
+
L: 46,
|
|
2203
2203
|
S: this,
|
|
2204
2204
|
A: [
|
|
2205
2205
|
"this._spaceKey",
|
|
@@ -2209,7 +2209,7 @@ var SpaceInvitationProtocol = class {
|
|
|
2209
2209
|
const space = await this._spaceManager.spaces.get(this._spaceKey);
|
|
2210
2210
|
(0, import_invariant9.invariant)(space, void 0, {
|
|
2211
2211
|
F: __dxlog_file10,
|
|
2212
|
-
L:
|
|
2212
|
+
L: 48,
|
|
2213
2213
|
S: this,
|
|
2214
2214
|
A: [
|
|
2215
2215
|
"space",
|
|
@@ -2218,7 +2218,7 @@ var SpaceInvitationProtocol = class {
|
|
|
2218
2218
|
});
|
|
2219
2219
|
(0, import_invariant9.invariant)(request.space, void 0, {
|
|
2220
2220
|
F: __dxlog_file10,
|
|
2221
|
-
L:
|
|
2221
|
+
L: 50,
|
|
2222
2222
|
S: this,
|
|
2223
2223
|
A: [
|
|
2224
2224
|
"request.space",
|
|
@@ -2231,14 +2231,14 @@ var SpaceInvitationProtocol = class {
|
|
|
2231
2231
|
guest: deviceKey
|
|
2232
2232
|
}, {
|
|
2233
2233
|
F: __dxlog_file10,
|
|
2234
|
-
L:
|
|
2234
|
+
L: 53,
|
|
2235
2235
|
S: this,
|
|
2236
2236
|
C: (f, a) => f(...a)
|
|
2237
2237
|
});
|
|
2238
2238
|
const credentials = await (0, import_credentials10.createAdmissionCredentials)(this._signingContext.credentialSigner, identityKey, space.key, space.inner.genesisFeedKey, guestProfile);
|
|
2239
2239
|
(0, import_invariant9.invariant)(credentials[0].credential, void 0, {
|
|
2240
2240
|
F: __dxlog_file10,
|
|
2241
|
-
L:
|
|
2241
|
+
L: 64,
|
|
2242
2242
|
S: this,
|
|
2243
2243
|
A: [
|
|
2244
2244
|
"credentials[0].credential",
|
|
@@ -2248,7 +2248,7 @@ var SpaceInvitationProtocol = class {
|
|
|
2248
2248
|
const spaceMemberCredential = credentials[0].credential.credential;
|
|
2249
2249
|
(0, import_invariant9.invariant)((0, import_credentials10.getCredentialAssertion)(spaceMemberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
|
|
2250
2250
|
F: __dxlog_file10,
|
|
2251
|
-
L:
|
|
2251
|
+
L: 66,
|
|
2252
2252
|
S: this,
|
|
2253
2253
|
A: [
|
|
2254
2254
|
"getCredentialAssertion(spaceMemberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
|
|
@@ -2284,7 +2284,7 @@ var SpaceInvitationProtocol = class {
|
|
|
2284
2284
|
async accept(response) {
|
|
2285
2285
|
(0, import_invariant9.invariant)(response.space, void 0, {
|
|
2286
2286
|
F: __dxlog_file10,
|
|
2287
|
-
L:
|
|
2287
|
+
L: 101,
|
|
2288
2288
|
S: this,
|
|
2289
2289
|
A: [
|
|
2290
2290
|
"response.space",
|
|
@@ -2295,7 +2295,7 @@ var SpaceInvitationProtocol = class {
|
|
|
2295
2295
|
const assertion = (0, import_credentials10.getCredentialAssertion)(credential);
|
|
2296
2296
|
(0, import_invariant9.invariant)(assertion["@type"] === "dxos.halo.credentials.SpaceMember", "Invalid credential", {
|
|
2297
2297
|
F: __dxlog_file10,
|
|
2298
|
-
L:
|
|
2298
|
+
L: 104,
|
|
2299
2299
|
S: this,
|
|
2300
2300
|
A: [
|
|
2301
2301
|
"assertion['@type'] === 'dxos.halo.credentials.SpaceMember'",
|
|
@@ -2304,7 +2304,7 @@ var SpaceInvitationProtocol = class {
|
|
|
2304
2304
|
});
|
|
2305
2305
|
(0, import_invariant9.invariant)(credential.subject.id.equals(this._signingContext.identityKey), void 0, {
|
|
2306
2306
|
F: __dxlog_file10,
|
|
2307
|
-
L:
|
|
2307
|
+
L: 105,
|
|
2308
2308
|
S: this,
|
|
2309
2309
|
A: [
|
|
2310
2310
|
"credential.subject.id.equals(this._signingContext.identityKey)",
|