@eluvio/elv-client-js 4.0.78 → 4.0.80

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.
Files changed (42) hide show
  1. package/dist/ElvClient-min.js +13 -14
  2. package/dist/ElvClient-node-min.js +13 -14
  3. package/dist/ElvFrameClient-min.js +9 -9
  4. package/dist/ElvPermissionsClient-min.js +10 -10
  5. package/dist/ElvWalletClient-min.js +13 -14
  6. package/dist/ElvWalletClient-node-min.js +13 -14
  7. package/dist/src/AuthorizationClient.js +5 -4
  8. package/dist/src/Crypto.js +2 -2
  9. package/dist/src/ElvClient.js +254 -162
  10. package/dist/src/EthClient.js +2 -2
  11. package/dist/src/FrameClient.js +3 -3
  12. package/dist/src/HttpClient.js +15 -7
  13. package/dist/src/PermissionsClient.js +2 -2
  14. package/dist/src/UserProfileClient.js +36 -71
  15. package/dist/src/Utils.js +2 -2
  16. package/dist/src/client/ABRPublishing.js +2 -2
  17. package/dist/src/client/AccessGroups.js +41 -37
  18. package/dist/src/client/ContentAccess.js +3 -3
  19. package/dist/src/client/ContentManagement.js +103 -43
  20. package/dist/src/client/Contracts.js +270 -6
  21. package/dist/src/client/Files.js +2 -2
  22. package/dist/src/client/LiveStream.js +239 -210
  23. package/dist/src/client/NFT.js +2 -2
  24. package/dist/src/walletClient/ClientMethods.js +283 -189
  25. package/dist/src/walletClient/Profile.js +2 -2
  26. package/dist/src/walletClient/Utils.js +2 -2
  27. package/dist/src/walletClient/index.js +17 -2
  28. package/package.json +1 -1
  29. package/src/ElvClient.js +65 -0
  30. package/src/FrameClient.js +2 -1
  31. package/src/HttpClient.js +6 -0
  32. package/src/UserProfileClient.js +9 -38
  33. package/src/client/AccessGroups.js +19 -24
  34. package/src/client/ContentAccess.js +1 -1
  35. package/src/client/ContentManagement.js +44 -22
  36. package/src/client/Contracts.js +157 -2
  37. package/src/client/LiveStream.js +146 -128
  38. package/src/walletClient/ClientMethods.js +48 -0
  39. package/src/walletClient/index.js +12 -0
  40. package/testScripts/CreateAndDecodeSignedMessage.js +51 -0
  41. package/testScripts/TestAddTenantContractId.js +87 -0
  42. package/utilities/GenerateFabricToken.js +4 -1
@@ -5,8 +5,8 @@ var _regeneratorRuntime = require("@babel/runtime/regenerator");
5
5
  var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
6
6
  var _classCallCheck = require("@babel/runtime/helpers/classCallCheck");
7
7
  var _createClass = require("@babel/runtime/helpers/createClass");
8
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
10
  if (typeof globalThis.Buffer === "undefined") {
11
11
  globalThis.Buffer = require("buffer/").Buffer;
12
12
  }
@@ -1171,6 +1171,98 @@ var ElvClient = /*#__PURE__*/function () {
1171
1171
  }
1172
1172
  return CreateSignedToken;
1173
1173
  }()
1174
+ /**
1175
+ * Build a signed message (JSON) using the current signer.
1176
+ * Signed messages have a similar format to signed access tokens and they include the message itself
1177
+ * such that they can be both verified and decoded by the receiving entity.
1178
+ *
1179
+ * Messages can be encoded and signed using different methods, and the encoding and signature types
1180
+ * are described in the header of the resulting signed message blob.
1181
+ *
1182
+ * Note this type of message can not be verified and decoded on chain.
1183
+ *
1184
+ * @methodGroup Authorization
1185
+ * @namedParams
1186
+ * @param {string} messasge - A JSON object representing the message to sign
1187
+ */
1188
+ }, {
1189
+ key: "CreateSignedMessageJSON",
1190
+ value: function () {
1191
+ var _CreateSignedMessageJSON = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(_ref19) {
1192
+ var message, type, msg, signature;
1193
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
1194
+ while (1) switch (_context15.prev = _context15.next) {
1195
+ case 0:
1196
+ message = _ref19.message;
1197
+ // Only one kind of signature supported currently
1198
+ type = "mje_"; // JSON message, EIP192 signature
1199
+ msg = JSON.stringify(message);
1200
+ _context15.next = 5;
1201
+ return this.PersonalSign({
1202
+ message: msg,
1203
+ addEthereumPrefix: true
1204
+ });
1205
+ case 5:
1206
+ signature = _context15.sent;
1207
+ return _context15.abrupt("return", "".concat(type).concat(Utils.B58(Buffer.concat([Buffer.from(signature.replace(/^0x/, ""), "hex"), Buffer.from(msg)]))));
1208
+ case 7:
1209
+ case "end":
1210
+ return _context15.stop();
1211
+ }
1212
+ }, _callee15, this);
1213
+ }));
1214
+ function CreateSignedMessageJSON(_x11) {
1215
+ return _CreateSignedMessageJSON.apply(this, arguments);
1216
+ }
1217
+ return CreateSignedMessageJSON;
1218
+ }()
1219
+ /**
1220
+ * Verify and decode a signed message (JSON).
1221
+ *
1222
+ * @methodGroup Authorization
1223
+ * @namedParams
1224
+ * @param {string} signedMessage - a signed message as created by CreateSignedMessageJSON
1225
+ * @returns {Promise<Object>} - The decoded message, signer address, signature and signature type
1226
+ */
1227
+ }, {
1228
+ key: "DecodeSignedMessageJSON",
1229
+ value: function () {
1230
+ var _DecodeSignedMessageJSON = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(_ref20) {
1231
+ var signedMessage, type, msgBytes, signature, msg, obj, prefixedMsgHash, signerAddr;
1232
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
1233
+ while (1) switch (_context16.prev = _context16.next) {
1234
+ case 0:
1235
+ signedMessage = _ref20.signedMessage;
1236
+ type = signedMessage.slice(0, 4);
1237
+ _context16.t0 = type;
1238
+ _context16.next = _context16.t0 === "mje_" ? 5 : 12;
1239
+ break;
1240
+ case 5:
1241
+ msgBytes = Utils.FromB58(signedMessage.slice(4));
1242
+ signature = msgBytes.slice(0, 65);
1243
+ msg = msgBytes.slice(65);
1244
+ obj = JSON.parse(msg);
1245
+ prefixedMsgHash = Ethers.utils.keccak256(Buffer.from("\x19Ethereum Signed Message:\n".concat(msg.length).concat(msg), "utf-8"));
1246
+ signerAddr = Ethers.utils.recoverAddress(prefixedMsgHash, signature);
1247
+ return _context16.abrupt("return", {
1248
+ type: type,
1249
+ message: obj,
1250
+ signerAddress: signerAddr,
1251
+ signature: "0x" + signature.toString("hex")
1252
+ });
1253
+ case 12:
1254
+ throw new Error("Bad message type: ".concat(type));
1255
+ case 13:
1256
+ case "end":
1257
+ return _context16.stop();
1258
+ }
1259
+ }, _callee16);
1260
+ }));
1261
+ function DecodeSignedMessageJSON(_x12) {
1262
+ return _DecodeSignedMessageJSON.apply(this, arguments);
1263
+ }
1264
+ return DecodeSignedMessageJSON;
1265
+ }()
1174
1266
  /**
1175
1267
  * Get the account address of the current signer
1176
1268
  *
@@ -1193,12 +1285,12 @@ var ElvClient = /*#__PURE__*/function () {
1193
1285
  }, {
1194
1286
  key: "SetOauthToken",
1195
1287
  value: function () {
1196
- var _SetOauthToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(_ref19) {
1288
+ var _SetOauthToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(_ref21) {
1197
1289
  var token, wallet, signer;
1198
- return _regeneratorRuntime.wrap(function _callee15$(_context15) {
1199
- while (1) switch (_context15.prev = _context15.next) {
1290
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
1291
+ while (1) switch (_context17.prev = _context17.next) {
1200
1292
  case 0:
1201
- token = _ref19.token;
1293
+ token = _ref21.token;
1202
1294
  this.oauthToken = token;
1203
1295
  wallet = this.GenerateWallet();
1204
1296
  signer = wallet.AddAccountFromMnemonic({
@@ -1209,11 +1301,11 @@ var ElvClient = /*#__PURE__*/function () {
1209
1301
  });
1210
1302
  case 5:
1211
1303
  case "end":
1212
- return _context15.stop();
1304
+ return _context17.stop();
1213
1305
  }
1214
- }, _callee15, this);
1306
+ }, _callee17, this);
1215
1307
  }));
1216
- function SetOauthToken(_x11) {
1308
+ function SetOauthToken(_x13) {
1217
1309
  return _SetOauthToken.apply(this, arguments);
1218
1310
  }
1219
1311
  return SetOauthToken;
@@ -1231,44 +1323,44 @@ var ElvClient = /*#__PURE__*/function () {
1231
1323
  }, {
1232
1324
  key: "SetSignerFromOauthToken",
1233
1325
  value: function () {
1234
- var _SetSignerFromOauthToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(_ref20) {
1326
+ var _SetSignerFromOauthToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(_ref22) {
1235
1327
  var token, wallet, client, _yield$client$authCli, urls, path, httpClient, response, privateKey;
1236
- return _regeneratorRuntime.wrap(function _callee16$(_context16) {
1237
- while (1) switch (_context16.prev = _context16.next) {
1328
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
1329
+ while (1) switch (_context18.prev = _context18.next) {
1238
1330
  case 0:
1239
- token = _ref20.token;
1331
+ token = _ref22.token;
1240
1332
  if (this.trustAuthorityId) {
1241
- _context16.next = 3;
1333
+ _context18.next = 3;
1242
1334
  break;
1243
1335
  }
1244
1336
  throw Error("Unable to authorize with OAuth token: No trust authority ID set");
1245
1337
  case 3:
1246
1338
  wallet = this.GenerateWallet();
1247
- _context16.prev = 4;
1339
+ _context18.prev = 4;
1248
1340
  if (this.kmsURIs) {
1249
- _context16.next = 17;
1341
+ _context18.next = 17;
1250
1342
  break;
1251
1343
  }
1252
- _context16.next = 8;
1344
+ _context18.next = 8;
1253
1345
  return ElvClient.FromConfigurationUrl({
1254
1346
  configUrl: this.configUrl
1255
1347
  });
1256
1348
  case 8:
1257
- client = _context16.sent;
1349
+ client = _context18.sent;
1258
1350
  client.SetSigner({
1259
1351
  signer: wallet.AddAccountFromMnemonic({
1260
1352
  mnemonic: wallet.GenerateMnemonic()
1261
1353
  })
1262
1354
  });
1263
- _context16.next = 12;
1355
+ _context18.next = 12;
1264
1356
  return client.authClient.KMSInfo({
1265
1357
  kmsId: this.trustAuthorityId
1266
1358
  });
1267
1359
  case 12:
1268
- _yield$client$authCli = _context16.sent;
1360
+ _yield$client$authCli = _context18.sent;
1269
1361
  urls = _yield$client$authCli.urls;
1270
1362
  if (!(!urls || urls.length === 0)) {
1271
- _context16.next = 16;
1363
+ _context18.next = 16;
1272
1364
  break;
1273
1365
  }
1274
1366
  throw Error("Unable to authorize with OAuth token: No KMS URLs set");
@@ -1281,7 +1373,7 @@ var ElvClient = /*#__PURE__*/function () {
1281
1373
  uris: this.kmsURIs,
1282
1374
  debug: this.debug
1283
1375
  });
1284
- _context16.next = 22;
1376
+ _context18.next = 22;
1285
1377
  return this.utils.ResponseToJson(httpClient.Request({
1286
1378
  headers: {
1287
1379
  Authorization: "Bearer ".concat(token)
@@ -1291,7 +1383,7 @@ var ElvClient = /*#__PURE__*/function () {
1291
1383
  forceFailover: true
1292
1384
  }));
1293
1385
  case 22:
1294
- response = _context16.sent;
1386
+ response = _context18.sent;
1295
1387
  privateKey = response["UserSKHex"];
1296
1388
  this.SetSigner({
1297
1389
  signer: wallet.AddAccount({
@@ -1300,27 +1392,27 @@ var ElvClient = /*#__PURE__*/function () {
1300
1392
  });
1301
1393
 
1302
1394
  // Ensure wallet is initialized
1303
- _context16.next = 27;
1395
+ _context18.next = 27;
1304
1396
  return this.userProfileClient.WalletAddress();
1305
1397
  case 27:
1306
- _context16.next = 36;
1398
+ _context18.next = 36;
1307
1399
  break;
1308
1400
  case 29:
1309
- _context16.prev = 29;
1310
- _context16.t0 = _context16["catch"](4);
1401
+ _context18.prev = 29;
1402
+ _context18.t0 = _context18["catch"](4);
1311
1403
  this.Log("Failed to set signer from OAuth token:", true);
1312
- this.Log(_context16.t0, true);
1313
- _context16.next = 35;
1404
+ this.Log(_context18.t0, true);
1405
+ _context18.next = 35;
1314
1406
  return this.ClearSigner();
1315
1407
  case 35:
1316
- throw _context16.t0;
1408
+ throw _context18.t0;
1317
1409
  case 36:
1318
1410
  case "end":
1319
- return _context16.stop();
1411
+ return _context18.stop();
1320
1412
  }
1321
- }, _callee16, this, [[4, 29]]);
1413
+ }, _callee18, this, [[4, 29]]);
1322
1414
  }));
1323
- function SetSignerFromOauthToken(_x12) {
1415
+ function SetSignerFromOauthToken(_x14) {
1324
1416
  return _SetSignerFromOauthToken.apply(this, arguments);
1325
1417
  }
1326
1418
  return SetSignerFromOauthToken;
@@ -1335,8 +1427,8 @@ var ElvClient = /*#__PURE__*/function () {
1335
1427
  }, {
1336
1428
  key: "SetStaticToken",
1337
1429
  value: function SetStaticToken() {
1338
- var _ref21 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
1339
- token = _ref21.token;
1430
+ var _ref23 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
1431
+ token = _ref23.token;
1340
1432
  if (!token) {
1341
1433
  token = this.utils.B64(JSON.stringify({
1342
1434
  qspace_id: this.contentSpaceId
@@ -1366,30 +1458,30 @@ var ElvClient = /*#__PURE__*/function () {
1366
1458
  }, {
1367
1459
  key: "SetPolicyAuthorization",
1368
1460
  value: function () {
1369
- var _SetPolicyAuthorization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(_ref22) {
1461
+ var _SetPolicyAuthorization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(_ref24) {
1370
1462
  var objectId;
1371
- return _regeneratorRuntime.wrap(function _callee17$(_context17) {
1372
- while (1) switch (_context17.prev = _context17.next) {
1463
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
1464
+ while (1) switch (_context19.prev = _context19.next) {
1373
1465
  case 0:
1374
- objectId = _ref22.objectId;
1375
- _context17.t0 = this;
1376
- _context17.next = 4;
1466
+ objectId = _ref24.objectId;
1467
+ _context19.t0 = this;
1468
+ _context19.next = 4;
1377
1469
  return this.GenerateStateChannelToken({
1378
1470
  objectId: objectId
1379
1471
  });
1380
1472
  case 4:
1381
- _context17.t1 = _context17.sent;
1382
- _context17.t2 = {
1383
- token: _context17.t1
1473
+ _context19.t1 = _context19.sent;
1474
+ _context19.t2 = {
1475
+ token: _context19.t1
1384
1476
  };
1385
- _context17.t0.SetStaticToken.call(_context17.t0, _context17.t2);
1477
+ _context19.t0.SetStaticToken.call(_context19.t0, _context19.t2);
1386
1478
  case 7:
1387
1479
  case "end":
1388
- return _context17.stop();
1480
+ return _context19.stop();
1389
1481
  }
1390
- }, _callee17, this);
1482
+ }, _callee19, this);
1391
1483
  }));
1392
- function SetPolicyAuthorization(_x13) {
1484
+ function SetPolicyAuthorization(_x15) {
1393
1485
  return _SetPolicyAuthorization.apply(this, arguments);
1394
1486
  }
1395
1487
  return SetPolicyAuthorization;
@@ -1403,23 +1495,23 @@ var ElvClient = /*#__PURE__*/function () {
1403
1495
  }, {
1404
1496
  key: "Sign",
1405
1497
  value: function () {
1406
- var _Sign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(string) {
1498
+ var _Sign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(string) {
1407
1499
  var signature;
1408
- return _regeneratorRuntime.wrap(function _callee18$(_context18) {
1409
- while (1) switch (_context18.prev = _context18.next) {
1500
+ return _regeneratorRuntime.wrap(function _callee20$(_context20) {
1501
+ while (1) switch (_context20.prev = _context20.next) {
1410
1502
  case 0:
1411
- _context18.next = 2;
1503
+ _context20.next = 2;
1412
1504
  return this.authClient.Sign(Ethers.utils.keccak256(Ethers.utils.toUtf8Bytes(string)));
1413
1505
  case 2:
1414
- signature = _context18.sent;
1415
- return _context18.abrupt("return", this.utils.FormatSignature(signature));
1506
+ signature = _context20.sent;
1507
+ return _context20.abrupt("return", this.utils.FormatSignature(signature));
1416
1508
  case 4:
1417
1509
  case "end":
1418
- return _context18.stop();
1510
+ return _context20.stop();
1419
1511
  }
1420
- }, _callee18, this);
1512
+ }, _callee20, this);
1421
1513
  }));
1422
- function Sign(_x14) {
1514
+ function Sign(_x16) {
1423
1515
  return _Sign.apply(this, arguments);
1424
1516
  }
1425
1517
  return Sign;
@@ -1436,30 +1528,30 @@ var ElvClient = /*#__PURE__*/function () {
1436
1528
  }, {
1437
1529
  key: "EncryptECIES",
1438
1530
  value: function () {
1439
- var _EncryptECIES = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(_ref23) {
1531
+ var _EncryptECIES = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(_ref25) {
1440
1532
  var message, publicKey;
1441
- return _regeneratorRuntime.wrap(function _callee19$(_context19) {
1442
- while (1) switch (_context19.prev = _context19.next) {
1533
+ return _regeneratorRuntime.wrap(function _callee21$(_context21) {
1534
+ while (1) switch (_context21.prev = _context21.next) {
1443
1535
  case 0:
1444
- message = _ref23.message, publicKey = _ref23.publicKey;
1536
+ message = _ref25.message, publicKey = _ref25.publicKey;
1445
1537
  if (this.signer) {
1446
- _context19.next = 3;
1538
+ _context21.next = 3;
1447
1539
  break;
1448
1540
  }
1449
1541
  throw "Signer not set";
1450
1542
  case 3:
1451
1543
  ValidatePresence("message", message);
1452
- _context19.next = 6;
1544
+ _context21.next = 6;
1453
1545
  return this.Crypto.EncryptConk(message, publicKey || this.signer._signingKey().publicKey);
1454
1546
  case 6:
1455
- return _context19.abrupt("return", _context19.sent);
1547
+ return _context21.abrupt("return", _context21.sent);
1456
1548
  case 7:
1457
1549
  case "end":
1458
- return _context19.stop();
1550
+ return _context21.stop();
1459
1551
  }
1460
- }, _callee19, this);
1552
+ }, _callee21, this);
1461
1553
  }));
1462
- function EncryptECIES(_x15) {
1554
+ function EncryptECIES(_x17) {
1463
1555
  return _EncryptECIES.apply(this, arguments);
1464
1556
  }
1465
1557
  return EncryptECIES;
@@ -1475,30 +1567,30 @@ var ElvClient = /*#__PURE__*/function () {
1475
1567
  }, {
1476
1568
  key: "DecryptECIES",
1477
1569
  value: function () {
1478
- var _DecryptECIES = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(_ref24) {
1570
+ var _DecryptECIES = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(_ref26) {
1479
1571
  var message;
1480
- return _regeneratorRuntime.wrap(function _callee20$(_context20) {
1481
- while (1) switch (_context20.prev = _context20.next) {
1572
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
1573
+ while (1) switch (_context22.prev = _context22.next) {
1482
1574
  case 0:
1483
- message = _ref24.message;
1575
+ message = _ref26.message;
1484
1576
  if (this.signer) {
1485
- _context20.next = 3;
1577
+ _context22.next = 3;
1486
1578
  break;
1487
1579
  }
1488
1580
  throw "Signer not set";
1489
1581
  case 3:
1490
1582
  ValidatePresence("message", message);
1491
- _context20.next = 6;
1583
+ _context22.next = 6;
1492
1584
  return this.Crypto.DecryptCap(message, this.signer._signingKey().privateKey);
1493
1585
  case 6:
1494
- return _context20.abrupt("return", _context20.sent);
1586
+ return _context22.abrupt("return", _context22.sent);
1495
1587
  case 7:
1496
1588
  case "end":
1497
- return _context20.stop();
1589
+ return _context22.stop();
1498
1590
  }
1499
- }, _callee20, this);
1591
+ }, _callee22, this);
1500
1592
  }));
1501
- function DecryptECIES(_x16) {
1593
+ function DecryptECIES(_x18) {
1502
1594
  return _DecryptECIES.apply(this, arguments);
1503
1595
  }
1504
1596
  return DecryptECIES;
@@ -1517,24 +1609,24 @@ var ElvClient = /*#__PURE__*/function () {
1517
1609
  }, {
1518
1610
  key: "Request",
1519
1611
  value: function () {
1520
- var _Request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(_ref25) {
1521
- var url, _ref25$format, format, _ref25$method, method, _ref25$headers, headers, body;
1522
- return _regeneratorRuntime.wrap(function _callee21$(_context21) {
1523
- while (1) switch (_context21.prev = _context21.next) {
1612
+ var _Request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(_ref27) {
1613
+ var url, _ref27$format, format, _ref27$method, method, _ref27$headers, headers, body;
1614
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
1615
+ while (1) switch (_context23.prev = _context23.next) {
1524
1616
  case 0:
1525
- url = _ref25.url, _ref25$format = _ref25.format, format = _ref25$format === void 0 ? "json" : _ref25$format, _ref25$method = _ref25.method, method = _ref25$method === void 0 ? "GET" : _ref25$method, _ref25$headers = _ref25.headers, headers = _ref25$headers === void 0 ? {} : _ref25$headers, body = _ref25.body;
1526
- return _context21.abrupt("return", this.utils.ResponseToFormat(format, HttpClient.Fetch(url, {
1617
+ url = _ref27.url, _ref27$format = _ref27.format, format = _ref27$format === void 0 ? "json" : _ref27$format, _ref27$method = _ref27.method, method = _ref27$method === void 0 ? "GET" : _ref27$method, _ref27$headers = _ref27.headers, headers = _ref27$headers === void 0 ? {} : _ref27$headers, body = _ref27.body;
1618
+ return _context23.abrupt("return", this.utils.ResponseToFormat(format, HttpClient.Fetch(url, {
1527
1619
  method: method,
1528
1620
  headers: headers,
1529
1621
  body: body
1530
1622
  })));
1531
1623
  case 2:
1532
1624
  case "end":
1533
- return _context21.stop();
1625
+ return _context23.stop();
1534
1626
  }
1535
- }, _callee21, this);
1627
+ }, _callee23, this);
1536
1628
  }));
1537
- function Request(_x17) {
1629
+ function Request(_x19) {
1538
1630
  return _Request.apply(this, arguments);
1539
1631
  }
1540
1632
  return Request;
@@ -1542,13 +1634,13 @@ var ElvClient = /*#__PURE__*/function () {
1542
1634
  }, {
1543
1635
  key: "MakeAuthServiceRequest",
1544
1636
  value: function () {
1545
- var _MakeAuthServiceRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(_ref26) {
1546
- var kmsId, objectId, versionHash, _ref26$method, method, path, bodyType, _ref26$body, body, _ref26$queryParams, queryParams, headers;
1547
- return _regeneratorRuntime.wrap(function _callee22$(_context22) {
1548
- while (1) switch (_context22.prev = _context22.next) {
1637
+ var _MakeAuthServiceRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(_ref28) {
1638
+ var kmsId, objectId, versionHash, _ref28$method, method, path, bodyType, _ref28$body, body, _ref28$queryParams, queryParams, headers;
1639
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
1640
+ while (1) switch (_context24.prev = _context24.next) {
1549
1641
  case 0:
1550
- kmsId = _ref26.kmsId, objectId = _ref26.objectId, versionHash = _ref26.versionHash, _ref26$method = _ref26.method, method = _ref26$method === void 0 ? "GET" : _ref26$method, path = _ref26.path, bodyType = _ref26.bodyType, _ref26$body = _ref26.body, body = _ref26$body === void 0 ? {} : _ref26$body, _ref26$queryParams = _ref26.queryParams, queryParams = _ref26$queryParams === void 0 ? {} : _ref26$queryParams, headers = _ref26.headers;
1551
- return _context22.abrupt("return", this.authClient.MakeAuthServiceRequest({
1642
+ kmsId = _ref28.kmsId, objectId = _ref28.objectId, versionHash = _ref28.versionHash, _ref28$method = _ref28.method, method = _ref28$method === void 0 ? "GET" : _ref28$method, path = _ref28.path, bodyType = _ref28.bodyType, _ref28$body = _ref28.body, body = _ref28$body === void 0 ? {} : _ref28$body, _ref28$queryParams = _ref28.queryParams, queryParams = _ref28$queryParams === void 0 ? {} : _ref28$queryParams, headers = _ref28.headers;
1643
+ return _context24.abrupt("return", this.authClient.MakeAuthServiceRequest({
1552
1644
  kmsId: kmsId,
1553
1645
  objectId: objectId,
1554
1646
  versionHash: versionHash,
@@ -1561,11 +1653,11 @@ var ElvClient = /*#__PURE__*/function () {
1561
1653
  }));
1562
1654
  case 2:
1563
1655
  case "end":
1564
- return _context22.stop();
1656
+ return _context24.stop();
1565
1657
  }
1566
- }, _callee22, this);
1658
+ }, _callee24, this);
1567
1659
  }));
1568
- function MakeAuthServiceRequest(_x18) {
1660
+ function MakeAuthServiceRequest(_x20) {
1569
1661
  return _MakeAuthServiceRequest.apply(this, arguments);
1570
1662
  }
1571
1663
  return MakeAuthServiceRequest;
@@ -1586,17 +1678,17 @@ var ElvClient = /*#__PURE__*/function () {
1586
1678
  }, {
1587
1679
  key: "CallFromFrameMessage",
1588
1680
  value: function () {
1589
- var _CallFromFrameMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(message, Respond) {
1681
+ var _CallFromFrameMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(message, Respond) {
1590
1682
  var _this4 = this;
1591
1683
  var callback, method, methodResults, responseError;
1592
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
1593
- while (1) switch (_context23.prev = _context23.next) {
1684
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
1685
+ while (1) switch (_context25.prev = _context25.next) {
1594
1686
  case 0:
1595
1687
  if (!(message.type !== "ElvFrameRequest")) {
1596
- _context23.next = 2;
1688
+ _context25.next = 2;
1597
1689
  break;
1598
1690
  }
1599
- return _context23.abrupt("return");
1691
+ return _context25.abrupt("return");
1600
1692
  case 2:
1601
1693
  if (message.callbackId) {
1602
1694
  callback = function callback(result) {
@@ -1608,75 +1700,75 @@ var ElvClient = /*#__PURE__*/function () {
1608
1700
  };
1609
1701
  message.args.callback = callback;
1610
1702
  }
1611
- _context23.prev = 3;
1703
+ _context25.prev = 3;
1612
1704
  method = message.calledMethod;
1613
1705
  if (!(message.module === "walletClient")) {
1614
- _context23.next = 15;
1706
+ _context25.next = 15;
1615
1707
  break;
1616
1708
  }
1617
1709
  if (this.walletClient) {
1618
- _context23.next = 8;
1710
+ _context25.next = 8;
1619
1711
  break;
1620
1712
  }
1621
1713
  throw Error("Wallet client not set");
1622
1714
  case 8:
1623
1715
  if (!this.walletClient.ForbiddenMethods().includes(method)) {
1624
- _context23.next = 10;
1716
+ _context25.next = 10;
1625
1717
  break;
1626
1718
  }
1627
1719
  throw Error("Invalid user profile method: " + method);
1628
1720
  case 10:
1629
- _context23.next = 12;
1721
+ _context25.next = 12;
1630
1722
  return this.walletClient[method](message.args);
1631
1723
  case 12:
1632
- methodResults = _context23.sent;
1633
- _context23.next = 28;
1724
+ methodResults = _context25.sent;
1725
+ _context25.next = 28;
1634
1726
  break;
1635
1727
  case 15:
1636
1728
  if (!(message.module === "userProfileClient")) {
1637
- _context23.next = 23;
1729
+ _context25.next = 23;
1638
1730
  break;
1639
1731
  }
1640
1732
  if (this.userProfileClient.FrameAllowedMethods().includes(method)) {
1641
- _context23.next = 18;
1733
+ _context25.next = 18;
1642
1734
  break;
1643
1735
  }
1644
1736
  throw Error("Invalid user profile method: " + method);
1645
1737
  case 18:
1646
- _context23.next = 20;
1738
+ _context25.next = 20;
1647
1739
  return this.userProfileClient[method](message.args);
1648
1740
  case 20:
1649
- methodResults = _context23.sent;
1650
- _context23.next = 28;
1741
+ methodResults = _context25.sent;
1742
+ _context25.next = 28;
1651
1743
  break;
1652
1744
  case 23:
1653
1745
  if (this.FrameAllowedMethods().includes(method)) {
1654
- _context23.next = 25;
1746
+ _context25.next = 25;
1655
1747
  break;
1656
1748
  }
1657
1749
  throw Error("Invalid method: " + method);
1658
1750
  case 25:
1659
- _context23.next = 27;
1751
+ _context25.next = 27;
1660
1752
  return this[method](message.args);
1661
1753
  case 27:
1662
- methodResults = _context23.sent;
1754
+ methodResults = _context25.sent;
1663
1755
  case 28:
1664
1756
  Respond(this.utils.MakeClonable({
1665
1757
  type: "ElvFrameResponse",
1666
1758
  requestId: message.requestId,
1667
1759
  response: methodResults
1668
1760
  }));
1669
- _context23.next = 37;
1761
+ _context25.next = 37;
1670
1762
  break;
1671
1763
  case 31:
1672
- _context23.prev = 31;
1673
- _context23.t0 = _context23["catch"](3);
1764
+ _context25.prev = 31;
1765
+ _context25.t0 = _context25["catch"](3);
1674
1766
  // eslint-disable-next-line no-console
1675
- this.Log("Frame Message Error:\n Method: ".concat(message.calledMethod, "\n Arguments: ").concat(JSON.stringify(message.args, null, 2), "\n Error: ").concat(_typeof(_context23.t0) === "object" ? JSON.stringify(_context23.t0, null, 2) : _context23.t0), true);
1767
+ this.Log("Frame Message Error:\n Method: ".concat(message.calledMethod, "\n Arguments: ").concat(JSON.stringify(message.args, null, 2), "\n Error: ").concat(_typeof(_context25.t0) === "object" ? JSON.stringify(_context25.t0, null, 2) : _context25.t0), true);
1676
1768
 
1677
1769
  // eslint-disable-next-line no-console
1678
- console.error(_context23.t0);
1679
- responseError = _context23.t0 instanceof Error ? _context23.t0.message : _context23.t0;
1770
+ console.error(_context25.t0);
1771
+ responseError = _context25.t0 instanceof Error ? _context25.t0.message : _context25.t0;
1680
1772
  Respond(this.utils.MakeClonable({
1681
1773
  type: "ElvFrameResponse",
1682
1774
  requestId: message.requestId,
@@ -1684,11 +1776,11 @@ var ElvClient = /*#__PURE__*/function () {
1684
1776
  }));
1685
1777
  case 37:
1686
1778
  case "end":
1687
- return _context23.stop();
1779
+ return _context25.stop();
1688
1780
  }
1689
- }, _callee23, this, [[3, 31]]);
1781
+ }, _callee25, this, [[3, 31]]);
1690
1782
  }));
1691
- function CallFromFrameMessage(_x19, _x20) {
1783
+ function CallFromFrameMessage(_x21, _x22) {
1692
1784
  return _CallFromFrameMessage.apply(this, arguments);
1693
1785
  }
1694
1786
  return CallFromFrameMessage;
@@ -1696,13 +1788,13 @@ var ElvClient = /*#__PURE__*/function () {
1696
1788
  }], [{
1697
1789
  key: "Configuration",
1698
1790
  value: function () {
1699
- var _Configuration = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(_ref27) {
1700
- var configUrl, _ref27$kmsUrls, kmsUrls, region, clientIP, uri, fabricInfo, filterHTTPS, fabricURIs, ethereumURIs, authServiceURIs, searchURIs, fabricVersion;
1701
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
1702
- while (1) switch (_context24.prev = _context24.next) {
1791
+ var _Configuration = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(_ref29) {
1792
+ var configUrl, _ref29$kmsUrls, kmsUrls, region, clientIP, uri, fabricInfo, filterHTTPS, fabricURIs, ethereumURIs, authServiceURIs, searchURIs, fabricVersion;
1793
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
1794
+ while (1) switch (_context26.prev = _context26.next) {
1703
1795
  case 0:
1704
- configUrl = _ref27.configUrl, _ref27$kmsUrls = _ref27.kmsUrls, kmsUrls = _ref27$kmsUrls === void 0 ? [] : _ref27$kmsUrls, region = _ref27.region, clientIP = _ref27.clientIP;
1705
- _context24.prev = 1;
1796
+ configUrl = _ref29.configUrl, _ref29$kmsUrls = _ref29.kmsUrls, kmsUrls = _ref29$kmsUrls === void 0 ? [] : _ref29$kmsUrls, region = _ref29.region, clientIP = _ref29.clientIP;
1797
+ _context26.prev = 1;
1706
1798
  uri = new URI(configUrl);
1707
1799
  uri.pathname("/config");
1708
1800
  if (region) {
@@ -1711,10 +1803,10 @@ var ElvClient = /*#__PURE__*/function () {
1711
1803
  if (clientIP) {
1712
1804
  uri.addSearch("client_ip", clientIP);
1713
1805
  }
1714
- _context24.next = 8;
1806
+ _context26.next = 8;
1715
1807
  return Utils.ResponseToJson(HttpClient.Fetch(uri.toString()));
1716
1808
  case 8:
1717
- fabricInfo = _context24.sent;
1809
+ fabricInfo = _context26.sent;
1718
1810
  // If any HTTPS urls present, throw away HTTP urls so only HTTPS will be used
1719
1811
  filterHTTPS = function filterHTTPS(uri) {
1720
1812
  return uri.toLowerCase().startsWith("https");
@@ -1733,7 +1825,7 @@ var ElvClient = /*#__PURE__*/function () {
1733
1825
  }
1734
1826
  searchURIs = fabricInfo.network.services.search || [];
1735
1827
  fabricVersion = Math.max.apply(Math, _toConsumableArray(fabricInfo.network.api_versions || [2]));
1736
- return _context24.abrupt("return", {
1828
+ return _context26.abrupt("return", {
1737
1829
  nodeId: fabricInfo.node_id,
1738
1830
  contentSpaceId: fabricInfo.qspace.id,
1739
1831
  networkId: (fabricInfo.qspace.ethereum || {}).network_id,
@@ -1746,20 +1838,20 @@ var ElvClient = /*#__PURE__*/function () {
1746
1838
  fabricVersion: fabricVersion
1747
1839
  });
1748
1840
  case 21:
1749
- _context24.prev = 21;
1750
- _context24.t0 = _context24["catch"](1);
1841
+ _context26.prev = 21;
1842
+ _context26.t0 = _context26["catch"](1);
1751
1843
  // eslint-disable-next-line no-console
1752
1844
  console.error("Error retrieving fabric configuration:");
1753
1845
  // eslint-disable-next-line no-console
1754
- console.error(_context24.t0);
1755
- throw _context24.t0;
1846
+ console.error(_context26.t0);
1847
+ throw _context26.t0;
1756
1848
  case 26:
1757
1849
  case "end":
1758
- return _context24.stop();
1850
+ return _context26.stop();
1759
1851
  }
1760
- }, _callee24, null, [[1, 21]]);
1852
+ }, _callee26, null, [[1, 21]]);
1761
1853
  }));
1762
- function Configuration(_x21) {
1854
+ function Configuration(_x23) {
1763
1855
  return _Configuration.apply(this, arguments);
1764
1856
  }
1765
1857
  return Configuration;
@@ -1783,20 +1875,20 @@ var ElvClient = /*#__PURE__*/function () {
1783
1875
  }, {
1784
1876
  key: "FromNetworkName",
1785
1877
  value: function () {
1786
- var _FromNetworkName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(_ref28) {
1787
- var networkName, region, clientIP, trustAuthorityId, staticToken, _ref28$ethereumContra, ethereumContractTimeout, _ref28$noCache, noCache, _ref28$noAuth, noAuth, assumeV3, configUrl;
1788
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
1789
- while (1) switch (_context25.prev = _context25.next) {
1878
+ var _FromNetworkName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(_ref30) {
1879
+ var networkName, region, clientIP, trustAuthorityId, staticToken, _ref30$ethereumContra, ethereumContractTimeout, _ref30$noCache, noCache, _ref30$noAuth, noAuth, assumeV3, configUrl;
1880
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
1881
+ while (1) switch (_context27.prev = _context27.next) {
1790
1882
  case 0:
1791
- networkName = _ref28.networkName, region = _ref28.region, clientIP = _ref28.clientIP, trustAuthorityId = _ref28.trustAuthorityId, staticToken = _ref28.staticToken, _ref28$ethereumContra = _ref28.ethereumContractTimeout, ethereumContractTimeout = _ref28$ethereumContra === void 0 ? 10 : _ref28$ethereumContra, _ref28$noCache = _ref28.noCache, noCache = _ref28$noCache === void 0 ? false : _ref28$noCache, _ref28$noAuth = _ref28.noAuth, noAuth = _ref28$noAuth === void 0 ? false : _ref28$noAuth, assumeV3 = _ref28.assumeV3;
1883
+ networkName = _ref30.networkName, region = _ref30.region, clientIP = _ref30.clientIP, trustAuthorityId = _ref30.trustAuthorityId, staticToken = _ref30.staticToken, _ref30$ethereumContra = _ref30.ethereumContractTimeout, ethereumContractTimeout = _ref30$ethereumContra === void 0 ? 10 : _ref30$ethereumContra, _ref30$noCache = _ref30.noCache, noCache = _ref30$noCache === void 0 ? false : _ref30$noCache, _ref30$noAuth = _ref30.noAuth, noAuth = _ref30$noAuth === void 0 ? false : _ref30$noAuth, assumeV3 = _ref30.assumeV3;
1792
1884
  configUrl = networks[networkName];
1793
1885
  if (configUrl) {
1794
- _context25.next = 4;
1886
+ _context27.next = 4;
1795
1887
  break;
1796
1888
  }
1797
1889
  throw Error("Invalid network name: " + networkName);
1798
1890
  case 4:
1799
- _context25.next = 6;
1891
+ _context27.next = 6;
1800
1892
  return this.FromConfigurationUrl({
1801
1893
  configUrl: configUrl,
1802
1894
  region: region,
@@ -1809,14 +1901,14 @@ var ElvClient = /*#__PURE__*/function () {
1809
1901
  assumeV3: assumeV3
1810
1902
  });
1811
1903
  case 6:
1812
- return _context25.abrupt("return", _context25.sent);
1904
+ return _context27.abrupt("return", _context27.sent);
1813
1905
  case 7:
1814
1906
  case "end":
1815
- return _context25.stop();
1907
+ return _context27.stop();
1816
1908
  }
1817
- }, _callee25, this);
1909
+ }, _callee27, this);
1818
1910
  }));
1819
- function FromNetworkName(_x22) {
1911
+ function FromNetworkName(_x24) {
1820
1912
  return _FromNetworkName.apply(this, arguments);
1821
1913
  }
1822
1914
  return FromNetworkName;
@@ -1840,20 +1932,20 @@ var ElvClient = /*#__PURE__*/function () {
1840
1932
  }, {
1841
1933
  key: "FromConfigurationUrl",
1842
1934
  value: function () {
1843
- var _FromConfigurationUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(_ref29) {
1844
- var configUrl, region, clientIP, trustAuthorityId, staticToken, _ref29$ethereumContra, ethereumContractTimeout, _ref29$noCache, noCache, _ref29$noAuth, noAuth, _ref29$assumeV, assumeV3, _yield$ElvClient$Conf3, contentSpaceId, networkId, networkName, fabricURIs, ethereumURIs, authServiceURIs, searchURIs, fabricVersion, client;
1845
- return _regeneratorRuntime.wrap(function _callee26$(_context26) {
1846
- while (1) switch (_context26.prev = _context26.next) {
1935
+ var _FromConfigurationUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(_ref31) {
1936
+ var configUrl, region, clientIP, trustAuthorityId, staticToken, _ref31$ethereumContra, ethereumContractTimeout, _ref31$noCache, noCache, _ref31$noAuth, noAuth, _ref31$assumeV, assumeV3, _yield$ElvClient$Conf3, contentSpaceId, networkId, networkName, fabricURIs, ethereumURIs, authServiceURIs, searchURIs, fabricVersion, client;
1937
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
1938
+ while (1) switch (_context28.prev = _context28.next) {
1847
1939
  case 0:
1848
- configUrl = _ref29.configUrl, region = _ref29.region, clientIP = _ref29.clientIP, trustAuthorityId = _ref29.trustAuthorityId, staticToken = _ref29.staticToken, _ref29$ethereumContra = _ref29.ethereumContractTimeout, ethereumContractTimeout = _ref29$ethereumContra === void 0 ? 10 : _ref29$ethereumContra, _ref29$noCache = _ref29.noCache, noCache = _ref29$noCache === void 0 ? false : _ref29$noCache, _ref29$noAuth = _ref29.noAuth, noAuth = _ref29$noAuth === void 0 ? false : _ref29$noAuth, _ref29$assumeV = _ref29.assumeV3, assumeV3 = _ref29$assumeV === void 0 ? false : _ref29$assumeV;
1849
- _context26.next = 3;
1940
+ configUrl = _ref31.configUrl, region = _ref31.region, clientIP = _ref31.clientIP, trustAuthorityId = _ref31.trustAuthorityId, staticToken = _ref31.staticToken, _ref31$ethereumContra = _ref31.ethereumContractTimeout, ethereumContractTimeout = _ref31$ethereumContra === void 0 ? 10 : _ref31$ethereumContra, _ref31$noCache = _ref31.noCache, noCache = _ref31$noCache === void 0 ? false : _ref31$noCache, _ref31$noAuth = _ref31.noAuth, noAuth = _ref31$noAuth === void 0 ? false : _ref31$noAuth, _ref31$assumeV = _ref31.assumeV3, assumeV3 = _ref31$assumeV === void 0 ? false : _ref31$assumeV;
1941
+ _context28.next = 3;
1850
1942
  return ElvClient.Configuration({
1851
1943
  configUrl: configUrl,
1852
1944
  clientIP: clientIP,
1853
1945
  region: region
1854
1946
  });
1855
1947
  case 3:
1856
- _yield$ElvClient$Conf3 = _context26.sent;
1948
+ _yield$ElvClient$Conf3 = _context28.sent;
1857
1949
  contentSpaceId = _yield$ElvClient$Conf3.contentSpaceId;
1858
1950
  networkId = _yield$ElvClient$Conf3.networkId;
1859
1951
  networkName = _yield$ElvClient$Conf3.networkName;
@@ -1879,14 +1971,14 @@ var ElvClient = /*#__PURE__*/function () {
1879
1971
  assumeV3: assumeV3
1880
1972
  });
1881
1973
  client.configUrl = configUrl;
1882
- return _context26.abrupt("return", client);
1974
+ return _context28.abrupt("return", client);
1883
1975
  case 15:
1884
1976
  case "end":
1885
- return _context26.stop();
1977
+ return _context28.stop();
1886
1978
  }
1887
- }, _callee26);
1979
+ }, _callee28);
1888
1980
  }));
1889
- function FromConfigurationUrl(_x23) {
1981
+ function FromConfigurationUrl(_x25) {
1890
1982
  return _FromConfigurationUrl.apply(this, arguments);
1891
1983
  }
1892
1984
  return FromConfigurationUrl;