@dxos/client-services 0.3.5-main.9577658 → 0.3.5-main.9e966f9
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-HWDKPRDQ.mjs → chunk-AUGBAQWE.mjs} +32 -28
- package/dist/lib/browser/chunk-AUGBAQWE.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/index.cjs +31 -27
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +31 -27
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/invitations/invitation-extension.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +35 -35
- package/src/packlets/invitations/invitation-extension.ts +1 -0
- package/src/packlets/invitations/invitations-handler.ts +3 -0
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-HWDKPRDQ.mjs.map +0 -7
|
@@ -1285,6 +1285,7 @@ var InvitationHostExtension = class extends RpcExtension {
|
|
|
1285
1285
|
C: (f, a) => f(...a)
|
|
1286
1286
|
});
|
|
1287
1287
|
return {
|
|
1288
|
+
spaceKey: this.invitation.authMethod === Invitation2.AuthMethod.NONE ? this.invitation.spaceKey : void 0,
|
|
1288
1289
|
authMethod: this.invitation.authMethod
|
|
1289
1290
|
};
|
|
1290
1291
|
},
|
|
@@ -1294,7 +1295,7 @@ var InvitationHostExtension = class extends RpcExtension {
|
|
|
1294
1295
|
id: traceId
|
|
1295
1296
|
}), {
|
|
1296
1297
|
F: __dxlog_file6,
|
|
1297
|
-
L:
|
|
1298
|
+
L: 125,
|
|
1298
1299
|
S: this,
|
|
1299
1300
|
C: (f, a) => f(...a)
|
|
1300
1301
|
});
|
|
@@ -1302,14 +1303,14 @@ var InvitationHostExtension = class extends RpcExtension {
|
|
|
1302
1303
|
authCode: code
|
|
1303
1304
|
}, {
|
|
1304
1305
|
F: __dxlog_file6,
|
|
1305
|
-
L:
|
|
1306
|
+
L: 126,
|
|
1306
1307
|
S: this,
|
|
1307
1308
|
C: (f, a) => f(...a)
|
|
1308
1309
|
});
|
|
1309
1310
|
let status = AuthenticationResponse.Status.OK;
|
|
1310
1311
|
invariant5(this.invitation, "Invitation is not set.", {
|
|
1311
1312
|
F: __dxlog_file6,
|
|
1312
|
-
L:
|
|
1313
|
+
L: 129,
|
|
1313
1314
|
S: this,
|
|
1314
1315
|
A: [
|
|
1315
1316
|
"this.invitation",
|
|
@@ -1320,7 +1321,7 @@ var InvitationHostExtension = class extends RpcExtension {
|
|
|
1320
1321
|
case Invitation2.AuthMethod.NONE: {
|
|
1321
1322
|
log4("authentication not required", void 0, {
|
|
1322
1323
|
F: __dxlog_file6,
|
|
1323
|
-
L:
|
|
1324
|
+
L: 132,
|
|
1324
1325
|
S: this,
|
|
1325
1326
|
C: (f, a) => f(...a)
|
|
1326
1327
|
});
|
|
@@ -1345,7 +1346,7 @@ var InvitationHostExtension = class extends RpcExtension {
|
|
|
1345
1346
|
authMethod: this.invitation.authMethod
|
|
1346
1347
|
}, {
|
|
1347
1348
|
F: __dxlog_file6,
|
|
1348
|
-
L:
|
|
1349
|
+
L: 150,
|
|
1349
1350
|
S: this,
|
|
1350
1351
|
C: (f, a) => f(...a)
|
|
1351
1352
|
});
|
|
@@ -1360,7 +1361,7 @@ var InvitationHostExtension = class extends RpcExtension {
|
|
|
1360
1361
|
}
|
|
1361
1362
|
}), {
|
|
1362
1363
|
F: __dxlog_file6,
|
|
1363
|
-
L:
|
|
1364
|
+
L: 156,
|
|
1364
1365
|
S: this,
|
|
1365
1366
|
C: (f, a) => f(...a)
|
|
1366
1367
|
});
|
|
@@ -1374,14 +1375,14 @@ var InvitationHostExtension = class extends RpcExtension {
|
|
|
1374
1375
|
id: traceId
|
|
1375
1376
|
}), {
|
|
1376
1377
|
F: __dxlog_file6,
|
|
1377
|
-
L:
|
|
1378
|
+
L: 162,
|
|
1378
1379
|
S: this,
|
|
1379
1380
|
C: (f, a) => f(...a)
|
|
1380
1381
|
});
|
|
1381
1382
|
try {
|
|
1382
1383
|
invariant5(this.invitation, "Invitation is not set.", {
|
|
1383
1384
|
F: __dxlog_file6,
|
|
1384
|
-
L:
|
|
1385
|
+
L: 165,
|
|
1385
1386
|
S: this,
|
|
1386
1387
|
A: [
|
|
1387
1388
|
"this.invitation",
|
|
@@ -1396,7 +1397,7 @@ var InvitationHostExtension = class extends RpcExtension {
|
|
|
1396
1397
|
id: traceId
|
|
1397
1398
|
}), {
|
|
1398
1399
|
F: __dxlog_file6,
|
|
1399
|
-
L:
|
|
1400
|
+
L: 173,
|
|
1400
1401
|
S: this,
|
|
1401
1402
|
C: (f, a) => f(...a)
|
|
1402
1403
|
});
|
|
@@ -1453,7 +1454,7 @@ var InvitationGuestExtension = class extends RpcExtension {
|
|
|
1453
1454
|
options: async (options) => {
|
|
1454
1455
|
invariant5(!this._remoteOptions, "Remote options already set.", {
|
|
1455
1456
|
F: __dxlog_file6,
|
|
1456
|
-
L:
|
|
1457
|
+
L: 240,
|
|
1457
1458
|
S: this,
|
|
1458
1459
|
A: [
|
|
1459
1460
|
"!this._remoteOptions",
|
|
@@ -1480,7 +1481,7 @@ var InvitationGuestExtension = class extends RpcExtension {
|
|
|
1480
1481
|
try {
|
|
1481
1482
|
log4("begin options", void 0, {
|
|
1482
1483
|
F: __dxlog_file6,
|
|
1483
|
-
L:
|
|
1484
|
+
L: 261,
|
|
1484
1485
|
S: this,
|
|
1485
1486
|
C: (f, a) => f(...a)
|
|
1486
1487
|
});
|
|
@@ -1492,7 +1493,7 @@ var InvitationGuestExtension = class extends RpcExtension {
|
|
|
1492
1493
|
}));
|
|
1493
1494
|
log4("end options", void 0, {
|
|
1494
1495
|
F: __dxlog_file6,
|
|
1495
|
-
L:
|
|
1496
|
+
L: 264,
|
|
1496
1497
|
S: this,
|
|
1497
1498
|
C: (f, a) => f(...a)
|
|
1498
1499
|
});
|
|
@@ -1506,7 +1507,7 @@ var InvitationGuestExtension = class extends RpcExtension {
|
|
|
1506
1507
|
} catch (err) {
|
|
1507
1508
|
log4("openError", err, {
|
|
1508
1509
|
F: __dxlog_file6,
|
|
1509
|
-
L:
|
|
1510
|
+
L: 274,
|
|
1510
1511
|
S: this,
|
|
1511
1512
|
C: (f, a) => f(...a)
|
|
1512
1513
|
});
|
|
@@ -1516,7 +1517,7 @@ var InvitationGuestExtension = class extends RpcExtension {
|
|
|
1516
1517
|
async onClose() {
|
|
1517
1518
|
log4("onClose", void 0, {
|
|
1518
1519
|
F: __dxlog_file6,
|
|
1519
|
-
L:
|
|
1520
|
+
L: 280,
|
|
1520
1521
|
S: this,
|
|
1521
1522
|
C: (f, a) => f(...a)
|
|
1522
1523
|
});
|
|
@@ -1887,11 +1888,14 @@ var InvitationsHandler = class {
|
|
|
1887
1888
|
C: (f, a) => f(...a)
|
|
1888
1889
|
});
|
|
1889
1890
|
invitation.authMethod = introductionResponse.authMethod;
|
|
1891
|
+
if (introductionResponse.spaceKey) {
|
|
1892
|
+
invitation.spaceKey = introductionResponse.spaceKey;
|
|
1893
|
+
}
|
|
1890
1894
|
if (isAuthenticationRequired(invitation)) {
|
|
1891
1895
|
for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
|
|
1892
1896
|
log5("guest waiting for authentication code...", void 0, {
|
|
1893
1897
|
F: __dxlog_file7,
|
|
1894
|
-
L:
|
|
1898
|
+
L: 289,
|
|
1895
1899
|
S: this,
|
|
1896
1900
|
C: (f, a) => f(...a)
|
|
1897
1901
|
});
|
|
@@ -1903,7 +1907,7 @@ var InvitationsHandler = class {
|
|
|
1903
1907
|
});
|
|
1904
1908
|
log5("sending authentication request", void 0, {
|
|
1905
1909
|
F: __dxlog_file7,
|
|
1906
|
-
L:
|
|
1910
|
+
L: 293,
|
|
1907
1911
|
S: this,
|
|
1908
1912
|
C: (f, a) => f(...a)
|
|
1909
1913
|
});
|
|
@@ -1924,7 +1928,7 @@ var InvitationsHandler = class {
|
|
|
1924
1928
|
attempt
|
|
1925
1929
|
}, {
|
|
1926
1930
|
F: __dxlog_file7,
|
|
1927
|
-
L:
|
|
1931
|
+
L: 304,
|
|
1928
1932
|
S: this,
|
|
1929
1933
|
C: (f, a) => f(...a)
|
|
1930
1934
|
});
|
|
@@ -1941,7 +1945,7 @@ var InvitationsHandler = class {
|
|
|
1941
1945
|
...protocol.toJSON()
|
|
1942
1946
|
}, {
|
|
1943
1947
|
F: __dxlog_file7,
|
|
1944
|
-
L:
|
|
1948
|
+
L: 315,
|
|
1945
1949
|
S: this,
|
|
1946
1950
|
C: (f, a) => f(...a)
|
|
1947
1951
|
});
|
|
@@ -1953,7 +1957,7 @@ var InvitationsHandler = class {
|
|
|
1953
1957
|
...protocol.toJSON()
|
|
1954
1958
|
}, {
|
|
1955
1959
|
F: __dxlog_file7,
|
|
1956
|
-
L:
|
|
1960
|
+
L: 326,
|
|
1957
1961
|
S: this,
|
|
1958
1962
|
C: (f, a) => f(...a)
|
|
1959
1963
|
});
|
|
@@ -1965,7 +1969,7 @@ var InvitationsHandler = class {
|
|
|
1965
1969
|
id: traceId
|
|
1966
1970
|
}), {
|
|
1967
1971
|
F: __dxlog_file7,
|
|
1968
|
-
L:
|
|
1972
|
+
L: 328,
|
|
1969
1973
|
S: this,
|
|
1970
1974
|
C: (f, a) => f(...a)
|
|
1971
1975
|
});
|
|
@@ -1975,7 +1979,7 @@ var InvitationsHandler = class {
|
|
|
1975
1979
|
...protocol.toJSON()
|
|
1976
1980
|
}, {
|
|
1977
1981
|
F: __dxlog_file7,
|
|
1978
|
-
L:
|
|
1982
|
+
L: 331,
|
|
1979
1983
|
S: this,
|
|
1980
1984
|
C: (f, a) => f(...a)
|
|
1981
1985
|
});
|
|
@@ -1985,7 +1989,7 @@ var InvitationsHandler = class {
|
|
|
1985
1989
|
} else {
|
|
1986
1990
|
log5("auth failed", err, {
|
|
1987
1991
|
F: __dxlog_file7,
|
|
1988
|
-
L:
|
|
1992
|
+
L: 334,
|
|
1989
1993
|
S: this,
|
|
1990
1994
|
C: (f, a) => f(...a)
|
|
1991
1995
|
});
|
|
@@ -1996,7 +2000,7 @@ var InvitationsHandler = class {
|
|
|
1996
2000
|
error: err
|
|
1997
2001
|
}), {
|
|
1998
2002
|
F: __dxlog_file7,
|
|
1999
|
-
L:
|
|
2003
|
+
L: 337,
|
|
2000
2004
|
S: this,
|
|
2001
2005
|
C: (f, a) => f(...a)
|
|
2002
2006
|
});
|
|
@@ -2014,7 +2018,7 @@ var InvitationsHandler = class {
|
|
|
2014
2018
|
...protocol.toJSON()
|
|
2015
2019
|
}, {
|
|
2016
2020
|
F: __dxlog_file7,
|
|
2017
|
-
L:
|
|
2021
|
+
L: 348,
|
|
2018
2022
|
S: this,
|
|
2019
2023
|
C: (f, a) => f(...a)
|
|
2020
2024
|
});
|
|
@@ -2024,7 +2028,7 @@ var InvitationsHandler = class {
|
|
|
2024
2028
|
} else {
|
|
2025
2029
|
log5("auth failed", err, {
|
|
2026
2030
|
F: __dxlog_file7,
|
|
2027
|
-
L:
|
|
2031
|
+
L: 351,
|
|
2028
2032
|
S: this,
|
|
2029
2033
|
C: (f, a) => f(...a)
|
|
2030
2034
|
});
|
|
@@ -2037,7 +2041,7 @@ var InvitationsHandler = class {
|
|
|
2037
2041
|
scheduleTask2(ctx, async () => {
|
|
2038
2042
|
invariant6(invitation.swarmKey, void 0, {
|
|
2039
2043
|
F: __dxlog_file7,
|
|
2040
|
-
L:
|
|
2044
|
+
L: 361,
|
|
2041
2045
|
S: this,
|
|
2042
2046
|
A: [
|
|
2043
2047
|
"invitation.swarmKey",
|
|
@@ -2532,7 +2536,7 @@ var getPlatform = () => {
|
|
|
2532
2536
|
};
|
|
2533
2537
|
|
|
2534
2538
|
// packages/sdk/client-services/src/version.ts
|
|
2535
|
-
var DXOS_VERSION = "0.3.5-main.
|
|
2539
|
+
var DXOS_VERSION = "0.3.5-main.9e966f9";
|
|
2536
2540
|
|
|
2537
2541
|
// packages/sdk/client-services/src/packlets/services/diagnostics.ts
|
|
2538
2542
|
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
@@ -5075,4 +5079,4 @@ export {
|
|
|
5075
5079
|
createDefaultModelFactory,
|
|
5076
5080
|
ClientServicesHost
|
|
5077
5081
|
};
|
|
5078
|
-
//# sourceMappingURL=chunk-
|
|
5082
|
+
//# sourceMappingURL=chunk-AUGBAQWE.mjs.map
|