@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
|
@@ -185,7 +185,7 @@ var getPlatform = () => {
|
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
// packages/sdk/client-services/src/version.ts
|
|
188
|
-
var DXOS_VERSION = "0.3.5-main.
|
|
188
|
+
var DXOS_VERSION = "0.3.5-main.9e966f9";
|
|
189
189
|
|
|
190
190
|
// packages/sdk/client-services/src/packlets/services/diagnostics.ts
|
|
191
191
|
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
@@ -1274,6 +1274,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1274
1274
|
C: (f, a) => f(...a)
|
|
1275
1275
|
});
|
|
1276
1276
|
return {
|
|
1277
|
+
spaceKey: this.invitation.authMethod === import_services3.Invitation.AuthMethod.NONE ? this.invitation.spaceKey : void 0,
|
|
1277
1278
|
authMethod: this.invitation.authMethod
|
|
1278
1279
|
};
|
|
1279
1280
|
},
|
|
@@ -1283,7 +1284,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1283
1284
|
id: traceId
|
|
1284
1285
|
}), {
|
|
1285
1286
|
F: __dxlog_file7,
|
|
1286
|
-
L:
|
|
1287
|
+
L: 125,
|
|
1287
1288
|
S: this,
|
|
1288
1289
|
C: (f, a) => f(...a)
|
|
1289
1290
|
});
|
|
@@ -1291,14 +1292,14 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1291
1292
|
authCode: code
|
|
1292
1293
|
}, {
|
|
1293
1294
|
F: __dxlog_file7,
|
|
1294
|
-
L:
|
|
1295
|
+
L: 126,
|
|
1295
1296
|
S: this,
|
|
1296
1297
|
C: (f, a) => f(...a)
|
|
1297
1298
|
});
|
|
1298
1299
|
let status = import_invitations.AuthenticationResponse.Status.OK;
|
|
1299
1300
|
(0, import_invariant6.invariant)(this.invitation, "Invitation is not set.", {
|
|
1300
1301
|
F: __dxlog_file7,
|
|
1301
|
-
L:
|
|
1302
|
+
L: 129,
|
|
1302
1303
|
S: this,
|
|
1303
1304
|
A: [
|
|
1304
1305
|
"this.invitation",
|
|
@@ -1309,7 +1310,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1309
1310
|
case import_services3.Invitation.AuthMethod.NONE: {
|
|
1310
1311
|
(0, import_log5.log)("authentication not required", void 0, {
|
|
1311
1312
|
F: __dxlog_file7,
|
|
1312
|
-
L:
|
|
1313
|
+
L: 132,
|
|
1313
1314
|
S: this,
|
|
1314
1315
|
C: (f, a) => f(...a)
|
|
1315
1316
|
});
|
|
@@ -1334,7 +1335,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1334
1335
|
authMethod: this.invitation.authMethod
|
|
1335
1336
|
}, {
|
|
1336
1337
|
F: __dxlog_file7,
|
|
1337
|
-
L:
|
|
1338
|
+
L: 150,
|
|
1338
1339
|
S: this,
|
|
1339
1340
|
C: (f, a) => f(...a)
|
|
1340
1341
|
});
|
|
@@ -1349,7 +1350,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1349
1350
|
}
|
|
1350
1351
|
}), {
|
|
1351
1352
|
F: __dxlog_file7,
|
|
1352
|
-
L:
|
|
1353
|
+
L: 156,
|
|
1353
1354
|
S: this,
|
|
1354
1355
|
C: (f, a) => f(...a)
|
|
1355
1356
|
});
|
|
@@ -1363,14 +1364,14 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1363
1364
|
id: traceId
|
|
1364
1365
|
}), {
|
|
1365
1366
|
F: __dxlog_file7,
|
|
1366
|
-
L:
|
|
1367
|
+
L: 162,
|
|
1367
1368
|
S: this,
|
|
1368
1369
|
C: (f, a) => f(...a)
|
|
1369
1370
|
});
|
|
1370
1371
|
try {
|
|
1371
1372
|
(0, import_invariant6.invariant)(this.invitation, "Invitation is not set.", {
|
|
1372
1373
|
F: __dxlog_file7,
|
|
1373
|
-
L:
|
|
1374
|
+
L: 165,
|
|
1374
1375
|
S: this,
|
|
1375
1376
|
A: [
|
|
1376
1377
|
"this.invitation",
|
|
@@ -1385,7 +1386,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1385
1386
|
id: traceId
|
|
1386
1387
|
}), {
|
|
1387
1388
|
F: __dxlog_file7,
|
|
1388
|
-
L:
|
|
1389
|
+
L: 173,
|
|
1389
1390
|
S: this,
|
|
1390
1391
|
C: (f, a) => f(...a)
|
|
1391
1392
|
});
|
|
@@ -1442,7 +1443,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
|
|
|
1442
1443
|
options: async (options) => {
|
|
1443
1444
|
(0, import_invariant6.invariant)(!this._remoteOptions, "Remote options already set.", {
|
|
1444
1445
|
F: __dxlog_file7,
|
|
1445
|
-
L:
|
|
1446
|
+
L: 240,
|
|
1446
1447
|
S: this,
|
|
1447
1448
|
A: [
|
|
1448
1449
|
"!this._remoteOptions",
|
|
@@ -1469,7 +1470,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
|
|
|
1469
1470
|
try {
|
|
1470
1471
|
(0, import_log5.log)("begin options", void 0, {
|
|
1471
1472
|
F: __dxlog_file7,
|
|
1472
|
-
L:
|
|
1473
|
+
L: 261,
|
|
1473
1474
|
S: this,
|
|
1474
1475
|
C: (f, a) => f(...a)
|
|
1475
1476
|
});
|
|
@@ -1481,7 +1482,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
|
|
|
1481
1482
|
}));
|
|
1482
1483
|
(0, import_log5.log)("end options", void 0, {
|
|
1483
1484
|
F: __dxlog_file7,
|
|
1484
|
-
L:
|
|
1485
|
+
L: 264,
|
|
1485
1486
|
S: this,
|
|
1486
1487
|
C: (f, a) => f(...a)
|
|
1487
1488
|
});
|
|
@@ -1495,7 +1496,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
|
|
|
1495
1496
|
} catch (err) {
|
|
1496
1497
|
(0, import_log5.log)("openError", err, {
|
|
1497
1498
|
F: __dxlog_file7,
|
|
1498
|
-
L:
|
|
1499
|
+
L: 274,
|
|
1499
1500
|
S: this,
|
|
1500
1501
|
C: (f, a) => f(...a)
|
|
1501
1502
|
});
|
|
@@ -1505,7 +1506,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
|
|
|
1505
1506
|
async onClose() {
|
|
1506
1507
|
(0, import_log5.log)("onClose", void 0, {
|
|
1507
1508
|
F: __dxlog_file7,
|
|
1508
|
-
L:
|
|
1509
|
+
L: 280,
|
|
1509
1510
|
S: this,
|
|
1510
1511
|
C: (f, a) => f(...a)
|
|
1511
1512
|
});
|
|
@@ -1876,11 +1877,14 @@ var InvitationsHandler = class {
|
|
|
1876
1877
|
C: (f, a) => f(...a)
|
|
1877
1878
|
});
|
|
1878
1879
|
invitation.authMethod = introductionResponse.authMethod;
|
|
1880
|
+
if (introductionResponse.spaceKey) {
|
|
1881
|
+
invitation.spaceKey = introductionResponse.spaceKey;
|
|
1882
|
+
}
|
|
1879
1883
|
if (isAuthenticationRequired(invitation)) {
|
|
1880
1884
|
for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
|
|
1881
1885
|
(0, import_log6.log)("guest waiting for authentication code...", void 0, {
|
|
1882
1886
|
F: __dxlog_file8,
|
|
1883
|
-
L:
|
|
1887
|
+
L: 289,
|
|
1884
1888
|
S: this,
|
|
1885
1889
|
C: (f, a) => f(...a)
|
|
1886
1890
|
});
|
|
@@ -1892,7 +1896,7 @@ var InvitationsHandler = class {
|
|
|
1892
1896
|
});
|
|
1893
1897
|
(0, import_log6.log)("sending authentication request", void 0, {
|
|
1894
1898
|
F: __dxlog_file8,
|
|
1895
|
-
L:
|
|
1899
|
+
L: 293,
|
|
1896
1900
|
S: this,
|
|
1897
1901
|
C: (f, a) => f(...a)
|
|
1898
1902
|
});
|
|
@@ -1913,7 +1917,7 @@ var InvitationsHandler = class {
|
|
|
1913
1917
|
attempt
|
|
1914
1918
|
}, {
|
|
1915
1919
|
F: __dxlog_file8,
|
|
1916
|
-
L:
|
|
1920
|
+
L: 304,
|
|
1917
1921
|
S: this,
|
|
1918
1922
|
C: (f, a) => f(...a)
|
|
1919
1923
|
});
|
|
@@ -1930,7 +1934,7 @@ var InvitationsHandler = class {
|
|
|
1930
1934
|
...protocol.toJSON()
|
|
1931
1935
|
}, {
|
|
1932
1936
|
F: __dxlog_file8,
|
|
1933
|
-
L:
|
|
1937
|
+
L: 315,
|
|
1934
1938
|
S: this,
|
|
1935
1939
|
C: (f, a) => f(...a)
|
|
1936
1940
|
});
|
|
@@ -1942,7 +1946,7 @@ var InvitationsHandler = class {
|
|
|
1942
1946
|
...protocol.toJSON()
|
|
1943
1947
|
}, {
|
|
1944
1948
|
F: __dxlog_file8,
|
|
1945
|
-
L:
|
|
1949
|
+
L: 326,
|
|
1946
1950
|
S: this,
|
|
1947
1951
|
C: (f, a) => f(...a)
|
|
1948
1952
|
});
|
|
@@ -1954,7 +1958,7 @@ var InvitationsHandler = class {
|
|
|
1954
1958
|
id: traceId
|
|
1955
1959
|
}), {
|
|
1956
1960
|
F: __dxlog_file8,
|
|
1957
|
-
L:
|
|
1961
|
+
L: 328,
|
|
1958
1962
|
S: this,
|
|
1959
1963
|
C: (f, a) => f(...a)
|
|
1960
1964
|
});
|
|
@@ -1964,7 +1968,7 @@ var InvitationsHandler = class {
|
|
|
1964
1968
|
...protocol.toJSON()
|
|
1965
1969
|
}, {
|
|
1966
1970
|
F: __dxlog_file8,
|
|
1967
|
-
L:
|
|
1971
|
+
L: 331,
|
|
1968
1972
|
S: this,
|
|
1969
1973
|
C: (f, a) => f(...a)
|
|
1970
1974
|
});
|
|
@@ -1974,7 +1978,7 @@ var InvitationsHandler = class {
|
|
|
1974
1978
|
} else {
|
|
1975
1979
|
(0, import_log6.log)("auth failed", err, {
|
|
1976
1980
|
F: __dxlog_file8,
|
|
1977
|
-
L:
|
|
1981
|
+
L: 334,
|
|
1978
1982
|
S: this,
|
|
1979
1983
|
C: (f, a) => f(...a)
|
|
1980
1984
|
});
|
|
@@ -1985,7 +1989,7 @@ var InvitationsHandler = class {
|
|
|
1985
1989
|
error: err
|
|
1986
1990
|
}), {
|
|
1987
1991
|
F: __dxlog_file8,
|
|
1988
|
-
L:
|
|
1992
|
+
L: 337,
|
|
1989
1993
|
S: this,
|
|
1990
1994
|
C: (f, a) => f(...a)
|
|
1991
1995
|
});
|
|
@@ -2003,7 +2007,7 @@ var InvitationsHandler = class {
|
|
|
2003
2007
|
...protocol.toJSON()
|
|
2004
2008
|
}, {
|
|
2005
2009
|
F: __dxlog_file8,
|
|
2006
|
-
L:
|
|
2010
|
+
L: 348,
|
|
2007
2011
|
S: this,
|
|
2008
2012
|
C: (f, a) => f(...a)
|
|
2009
2013
|
});
|
|
@@ -2013,7 +2017,7 @@ var InvitationsHandler = class {
|
|
|
2013
2017
|
} else {
|
|
2014
2018
|
(0, import_log6.log)("auth failed", err, {
|
|
2015
2019
|
F: __dxlog_file8,
|
|
2016
|
-
L:
|
|
2020
|
+
L: 351,
|
|
2017
2021
|
S: this,
|
|
2018
2022
|
C: (f, a) => f(...a)
|
|
2019
2023
|
});
|
|
@@ -2026,7 +2030,7 @@ var InvitationsHandler = class {
|
|
|
2026
2030
|
(0, import_async5.scheduleTask)(ctx, async () => {
|
|
2027
2031
|
(0, import_invariant7.invariant)(invitation.swarmKey, void 0, {
|
|
2028
2032
|
F: __dxlog_file8,
|
|
2029
|
-
L:
|
|
2033
|
+
L: 361,
|
|
2030
2034
|
S: this,
|
|
2031
2035
|
A: [
|
|
2032
2036
|
"invitation.swarmKey",
|