@eluvio/elv-client-js 4.0.70 → 4.0.72

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.
@@ -3,9 +3,8 @@ var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
3
3
  var _classCallCheck = require("@babel/runtime/helpers/classCallCheck");
4
4
  var _createClass = require("@babel/runtime/helpers/createClass");
5
5
  var _defineProperty = require("@babel/runtime/helpers/defineProperty");
6
- var _v, _v2;
7
- 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; }
8
- 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; }
6
+ 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; }
7
+ 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; }
9
8
  var HttpClient = require("./HttpClient");
10
9
  var Ethers = require("ethers");
11
10
  var Utils = require("./Utils");
@@ -38,8 +37,9 @@ var ACCESS_TYPES = {
38
37
  OTHER: "other"
39
38
  };
40
39
  var CONTRACTS = {
41
- v2: (_v = {}, _defineProperty(_v, ACCESS_TYPES.SPACE, require("./contracts/v2/BaseContentSpace")), _defineProperty(_v, ACCESS_TYPES.LIBRARY, require("./contracts/v2/BaseLibrary")), _defineProperty(_v, ACCESS_TYPES.TYPE, require("./contracts/v2/BaseContentType")), _defineProperty(_v, ACCESS_TYPES.OBJECT, require("./contracts/v2/BaseContent")), _defineProperty(_v, ACCESS_TYPES.WALLET, require("./contracts/v2/BaseAccessWallet")), _defineProperty(_v, ACCESS_TYPES.GROUP, require("./contracts/v2/BaseAccessControlGroup")), _defineProperty(_v, ACCESS_TYPES.ACCESSIBLE, require("./contracts/v2/Accessible")), _defineProperty(_v, ACCESS_TYPES.EDITABLE, require("./contracts/v2/Editable")), _v),
42
- v3: (_v2 = {}, _defineProperty(_v2, ACCESS_TYPES.SPACE, require("./contracts/v3/BaseContentSpace")), _defineProperty(_v2, ACCESS_TYPES.LIBRARY, require("./contracts/v3/BaseLibrary")), _defineProperty(_v2, ACCESS_TYPES.TYPE, require("./contracts/v3/BaseContentType")), _defineProperty(_v2, ACCESS_TYPES.OBJECT, require("./contracts/v3/BaseContent")), _defineProperty(_v2, ACCESS_TYPES.WALLET, require("./contracts/v3/BaseAccessWallet")), _defineProperty(_v2, ACCESS_TYPES.GROUP, require("./contracts/v3/BaseAccessControlGroup")), _defineProperty(_v2, ACCESS_TYPES.ACCESSIBLE, require("./contracts/v3/Accessible")), _defineProperty(_v2, ACCESS_TYPES.EDITABLE, require("./contracts/v3/Editable")), _defineProperty(_v2, ACCESS_TYPES.TENANT, require("./contracts/v3/BaseTenantSpace")), _v2)
40
+ v2: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ACCESS_TYPES.SPACE, require("./contracts/v2/BaseContentSpace")), ACCESS_TYPES.LIBRARY, require("./contracts/v2/BaseLibrary")), ACCESS_TYPES.TYPE, require("./contracts/v2/BaseContentType")), ACCESS_TYPES.OBJECT, require("./contracts/v2/BaseContent")), ACCESS_TYPES.WALLET, require("./contracts/v2/BaseAccessWallet")), ACCESS_TYPES.GROUP, require("./contracts/v2/BaseAccessControlGroup")), ACCESS_TYPES.ACCESSIBLE, require("./contracts/v2/Accessible")), ACCESS_TYPES.EDITABLE, require("./contracts/v2/Editable")),
41
+ v3: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ACCESS_TYPES.SPACE, require("./contracts/v3/BaseContentSpace")), ACCESS_TYPES.LIBRARY, require("./contracts/v3/BaseLibrary")), ACCESS_TYPES.TYPE, require("./contracts/v3/BaseContentType")), ACCESS_TYPES.OBJECT, require("./contracts/v3/BaseContent")), ACCESS_TYPES.WALLET, require("./contracts/v3/BaseAccessWallet")), ACCESS_TYPES.GROUP, require("./contracts/v3/BaseAccessControlGroup")), ACCESS_TYPES.ACCESSIBLE, require("./contracts/v3/Accessible")), ACCESS_TYPES.EDITABLE, require("./contracts/v3/Editable")), ACCESS_TYPES.TENANT, require("./contracts/v3/BaseTenantSpace")),
42
+ v3b: _defineProperty({}, ACCESS_TYPES.GROUP, require("./contracts/v3b/BaseAccessControlGroup"))
43
43
  };
44
44
  var AuthorizationClient = /*#__PURE__*/function () {
45
45
  "use strict";
@@ -1162,7 +1162,7 @@ var AuthorizationClient = /*#__PURE__*/function () {
1162
1162
  key: "ContractInfo",
1163
1163
  value: function () {
1164
1164
  var _ContractInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(_ref15) {
1165
- var id, address, isV3, version, accessType;
1165
+ var id, address, isV3, contractName, accessType, v3Version, version;
1166
1166
  return _regeneratorRuntime.wrap(function _callee14$(_context14) {
1167
1167
  while (1) switch (_context14.prev = _context14.next) {
1168
1168
  case 0:
@@ -1179,23 +1179,29 @@ var AuthorizationClient = /*#__PURE__*/function () {
1179
1179
  });
1180
1180
  case 5:
1181
1181
  isV3 = _context14.sent;
1182
- version = isV3 ? "v3" : "v2";
1183
- _context14.next = 9;
1182
+ _context14.next = 8;
1183
+ return this.client.ethClient.ContractName(Utils.HashToAddress(id), true);
1184
+ case 8:
1185
+ contractName = _context14.sent;
1186
+ _context14.next = 11;
1184
1187
  return this.AccessType(id);
1185
- case 9:
1188
+ case 11:
1186
1189
  accessType = _context14.sent;
1190
+ // Contract BsAccessCtrlGrp20210809150000PO has an outdated isAdmin method that checks a managersList array instead of managersMap
1191
+ v3Version = contractName === "BsAccessCtrlGrp20210809150000PO" && accessType === this.ACCESS_TYPES.GROUP ? "v3b" : "v3";
1192
+ version = isV3 ? v3Version : "v2";
1187
1193
  if (!(accessType === this.ACCESS_TYPES.OTHER)) {
1188
- _context14.next = 12;
1194
+ _context14.next = 16;
1189
1195
  break;
1190
1196
  }
1191
1197
  return _context14.abrupt("return", {});
1192
- case 12:
1198
+ case 16:
1193
1199
  return _context14.abrupt("return", {
1194
1200
  isV3: isV3,
1195
1201
  accessType: accessType,
1196
1202
  abi: this.CONTRACTS[version][accessType].abi
1197
1203
  });
1198
- case 13:
1204
+ case 17:
1199
1205
  case "end":
1200
1206
  return _context14.stop();
1201
1207
  }
@@ -1,8 +1,8 @@
1
1
  var _typeof = require("@babel/runtime/helpers/typeof");
2
2
  var _regeneratorRuntime = require("@babel/runtime/regenerator");
3
3
  var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
4
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
5
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
4
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
5
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
6
6
  if (typeof globalThis.Buffer === "undefined") {
7
7
  globalThis.Buffer = require("buffer/").Buffer;
8
8
  }
@@ -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(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; }
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; }
10
10
  if (typeof globalThis.Buffer === "undefined") {
11
11
  globalThis.Buffer = require("buffer/").Buffer;
12
12
  }
@@ -999,6 +999,8 @@ var ElvClient = /*#__PURE__*/function () {
999
999
  Sign,
1000
1000
  _ref17$addEthereumPre,
1001
1001
  addEthereumPrefix,
1002
+ _ref17$context,
1003
+ context,
1002
1004
  token,
1003
1005
  message,
1004
1006
  signature,
@@ -1007,7 +1009,7 @@ var ElvClient = /*#__PURE__*/function () {
1007
1009
  return _regeneratorRuntime.wrap(function _callee13$(_context13) {
1008
1010
  while (1) switch (_context13.prev = _context13.next) {
1009
1011
  case 0:
1010
- _ref17 = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {}, _ref17$duration = _ref17.duration, duration = _ref17$duration === void 0 ? 24 * 60 * 60 * 1000 : _ref17$duration, _ref17$spec = _ref17.spec, spec = _ref17$spec === void 0 ? {} : _ref17$spec, address = _ref17.address, Sign = _ref17.Sign, _ref17$addEthereumPre = _ref17.addEthereumPrefix, addEthereumPrefix = _ref17$addEthereumPre === void 0 ? true : _ref17$addEthereumPre;
1012
+ _ref17 = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {}, _ref17$duration = _ref17.duration, duration = _ref17$duration === void 0 ? 24 * 60 * 60 * 1000 : _ref17$duration, _ref17$spec = _ref17.spec, spec = _ref17$spec === void 0 ? {} : _ref17$spec, address = _ref17.address, Sign = _ref17.Sign, _ref17$addEthereumPre = _ref17.addEthereumPrefix, addEthereumPrefix = _ref17$addEthereumPre === void 0 ? true : _ref17$addEthereumPre, _ref17$context = _ref17.context, context = _ref17$context === void 0 ? {} : _ref17$context;
1011
1013
  address = address || this.CurrentAccountAddress();
1012
1014
  _context13.t0 = _objectSpread;
1013
1015
  _context13.t1 = _objectSpread({}, spec);
@@ -1020,26 +1022,28 @@ var ElvClient = /*#__PURE__*/function () {
1020
1022
  _context13.t5 = _context13.sent;
1021
1023
  _context13.t6 = Date.now();
1022
1024
  _context13.t7 = Date.now() + duration;
1023
- _context13.t8 = {
1025
+ _context13.t8 = context;
1026
+ _context13.t9 = {
1024
1027
  sub: _context13.t3,
1025
1028
  adr: _context13.t4,
1026
1029
  spc: _context13.t5,
1027
1030
  iat: _context13.t6,
1028
- exp: _context13.t7
1031
+ exp: _context13.t7,
1032
+ ctx: _context13.t8
1029
1033
  };
1030
- token = (0, _context13.t0)(_context13.t1, _context13.t2, _context13.t8);
1034
+ token = (0, _context13.t0)(_context13.t1, _context13.t2, _context13.t9);
1031
1035
  message = "Eluvio Content Fabric Access Token 1.0\n".concat(JSON.stringify(token));
1032
- _context13.next = 17;
1036
+ _context13.next = 18;
1033
1037
  return this.PersonalSign({
1034
1038
  message: message,
1035
1039
  addEthereumPrefix: addEthereumPrefix,
1036
1040
  Sign: Sign
1037
1041
  });
1038
- case 17:
1042
+ case 18:
1039
1043
  signature = _context13.sent;
1040
1044
  compressedToken = Pako.deflateRaw(Buffer.from(JSON.stringify(token), "utf-8"));
1041
1045
  return _context13.abrupt("return", "acspjc".concat(this.utils.B58(Buffer.concat([Buffer.from(signature.replace(/^0x/, ""), "hex"), Buffer.from(compressedToken)]))));
1042
- case 20:
1046
+ case 21:
1043
1047
  case "end":
1044
1048
  return _context13.stop();
1045
1049
  }
@@ -1535,6 +1539,37 @@ var ElvClient = /*#__PURE__*/function () {
1535
1539
  }
1536
1540
  return Request;
1537
1541
  }()
1542
+ }, {
1543
+ key: "MakeAuthServiceRequest",
1544
+ 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) {
1549
+ 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({
1552
+ kmsId: kmsId,
1553
+ objectId: objectId,
1554
+ versionHash: versionHash,
1555
+ method: method,
1556
+ path: path,
1557
+ bodyType: bodyType,
1558
+ body: body,
1559
+ queryParams: queryParams,
1560
+ headers: headers
1561
+ }));
1562
+ case 2:
1563
+ case "end":
1564
+ return _context22.stop();
1565
+ }
1566
+ }, _callee22, this);
1567
+ }));
1568
+ function MakeAuthServiceRequest(_x18) {
1569
+ return _MakeAuthServiceRequest.apply(this, arguments);
1570
+ }
1571
+ return MakeAuthServiceRequest;
1572
+ }()
1538
1573
  /* FrameClient related */
1539
1574
  // Whitelist of methods allowed to be called using the frame API
1540
1575
  }, {
@@ -1551,17 +1586,17 @@ var ElvClient = /*#__PURE__*/function () {
1551
1586
  }, {
1552
1587
  key: "CallFromFrameMessage",
1553
1588
  value: function () {
1554
- var _CallFromFrameMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(message, Respond) {
1589
+ var _CallFromFrameMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(message, Respond) {
1555
1590
  var _this4 = this;
1556
1591
  var callback, method, methodResults, responseError;
1557
- return _regeneratorRuntime.wrap(function _callee22$(_context22) {
1558
- while (1) switch (_context22.prev = _context22.next) {
1592
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
1593
+ while (1) switch (_context23.prev = _context23.next) {
1559
1594
  case 0:
1560
1595
  if (!(message.type !== "ElvFrameRequest")) {
1561
- _context22.next = 2;
1596
+ _context23.next = 2;
1562
1597
  break;
1563
1598
  }
1564
- return _context22.abrupt("return");
1599
+ return _context23.abrupt("return");
1565
1600
  case 2:
1566
1601
  if (message.callbackId) {
1567
1602
  callback = function callback(result) {
@@ -1573,75 +1608,75 @@ var ElvClient = /*#__PURE__*/function () {
1573
1608
  };
1574
1609
  message.args.callback = callback;
1575
1610
  }
1576
- _context22.prev = 3;
1611
+ _context23.prev = 3;
1577
1612
  method = message.calledMethod;
1578
1613
  if (!(message.module === "walletClient")) {
1579
- _context22.next = 15;
1614
+ _context23.next = 15;
1580
1615
  break;
1581
1616
  }
1582
1617
  if (this.walletClient) {
1583
- _context22.next = 8;
1618
+ _context23.next = 8;
1584
1619
  break;
1585
1620
  }
1586
1621
  throw Error("Wallet client not set");
1587
1622
  case 8:
1588
1623
  if (!this.walletClient.ForbiddenMethods().includes(method)) {
1589
- _context22.next = 10;
1624
+ _context23.next = 10;
1590
1625
  break;
1591
1626
  }
1592
1627
  throw Error("Invalid user profile method: " + method);
1593
1628
  case 10:
1594
- _context22.next = 12;
1629
+ _context23.next = 12;
1595
1630
  return this.walletClient[method](message.args);
1596
1631
  case 12:
1597
- methodResults = _context22.sent;
1598
- _context22.next = 28;
1632
+ methodResults = _context23.sent;
1633
+ _context23.next = 28;
1599
1634
  break;
1600
1635
  case 15:
1601
1636
  if (!(message.module === "userProfileClient")) {
1602
- _context22.next = 23;
1637
+ _context23.next = 23;
1603
1638
  break;
1604
1639
  }
1605
1640
  if (this.userProfileClient.FrameAllowedMethods().includes(method)) {
1606
- _context22.next = 18;
1641
+ _context23.next = 18;
1607
1642
  break;
1608
1643
  }
1609
1644
  throw Error("Invalid user profile method: " + method);
1610
1645
  case 18:
1611
- _context22.next = 20;
1646
+ _context23.next = 20;
1612
1647
  return this.userProfileClient[method](message.args);
1613
1648
  case 20:
1614
- methodResults = _context22.sent;
1615
- _context22.next = 28;
1649
+ methodResults = _context23.sent;
1650
+ _context23.next = 28;
1616
1651
  break;
1617
1652
  case 23:
1618
1653
  if (this.FrameAllowedMethods().includes(method)) {
1619
- _context22.next = 25;
1654
+ _context23.next = 25;
1620
1655
  break;
1621
1656
  }
1622
1657
  throw Error("Invalid method: " + method);
1623
1658
  case 25:
1624
- _context22.next = 27;
1659
+ _context23.next = 27;
1625
1660
  return this[method](message.args);
1626
1661
  case 27:
1627
- methodResults = _context22.sent;
1662
+ methodResults = _context23.sent;
1628
1663
  case 28:
1629
1664
  Respond(this.utils.MakeClonable({
1630
1665
  type: "ElvFrameResponse",
1631
1666
  requestId: message.requestId,
1632
1667
  response: methodResults
1633
1668
  }));
1634
- _context22.next = 37;
1669
+ _context23.next = 37;
1635
1670
  break;
1636
1671
  case 31:
1637
- _context22.prev = 31;
1638
- _context22.t0 = _context22["catch"](3);
1672
+ _context23.prev = 31;
1673
+ _context23.t0 = _context23["catch"](3);
1639
1674
  // eslint-disable-next-line no-console
1640
- this.Log("Frame Message Error:\n Method: ".concat(message.calledMethod, "\n Arguments: ").concat(JSON.stringify(message.args, null, 2), "\n Error: ").concat(_typeof(_context22.t0) === "object" ? JSON.stringify(_context22.t0, null, 2) : _context22.t0), true);
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);
1641
1676
 
1642
1677
  // eslint-disable-next-line no-console
1643
- console.error(_context22.t0);
1644
- responseError = _context22.t0 instanceof Error ? _context22.t0.message : _context22.t0;
1678
+ console.error(_context23.t0);
1679
+ responseError = _context23.t0 instanceof Error ? _context23.t0.message : _context23.t0;
1645
1680
  Respond(this.utils.MakeClonable({
1646
1681
  type: "ElvFrameResponse",
1647
1682
  requestId: message.requestId,
@@ -1649,11 +1684,11 @@ var ElvClient = /*#__PURE__*/function () {
1649
1684
  }));
1650
1685
  case 37:
1651
1686
  case "end":
1652
- return _context22.stop();
1687
+ return _context23.stop();
1653
1688
  }
1654
- }, _callee22, this, [[3, 31]]);
1689
+ }, _callee23, this, [[3, 31]]);
1655
1690
  }));
1656
- function CallFromFrameMessage(_x18, _x19) {
1691
+ function CallFromFrameMessage(_x19, _x20) {
1657
1692
  return _CallFromFrameMessage.apply(this, arguments);
1658
1693
  }
1659
1694
  return CallFromFrameMessage;
@@ -1661,13 +1696,13 @@ var ElvClient = /*#__PURE__*/function () {
1661
1696
  }], [{
1662
1697
  key: "Configuration",
1663
1698
  value: function () {
1664
- var _Configuration = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(_ref26) {
1665
- var configUrl, _ref26$kmsUrls, kmsUrls, region, clientIP, uri, fabricInfo, filterHTTPS, fabricURIs, ethereumURIs, authServiceURIs, searchURIs, fabricVersion;
1666
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
1667
- while (1) switch (_context23.prev = _context23.next) {
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) {
1668
1703
  case 0:
1669
- configUrl = _ref26.configUrl, _ref26$kmsUrls = _ref26.kmsUrls, kmsUrls = _ref26$kmsUrls === void 0 ? [] : _ref26$kmsUrls, region = _ref26.region, clientIP = _ref26.clientIP;
1670
- _context23.prev = 1;
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;
1671
1706
  uri = new URI(configUrl);
1672
1707
  uri.pathname("/config");
1673
1708
  if (region) {
@@ -1676,10 +1711,10 @@ var ElvClient = /*#__PURE__*/function () {
1676
1711
  if (clientIP) {
1677
1712
  uri.addSearch("client_ip", clientIP);
1678
1713
  }
1679
- _context23.next = 8;
1714
+ _context24.next = 8;
1680
1715
  return Utils.ResponseToJson(HttpClient.Fetch(uri.toString()));
1681
1716
  case 8:
1682
- fabricInfo = _context23.sent;
1717
+ fabricInfo = _context24.sent;
1683
1718
  // If any HTTPS urls present, throw away HTTP urls so only HTTPS will be used
1684
1719
  filterHTTPS = function filterHTTPS(uri) {
1685
1720
  return uri.toLowerCase().startsWith("https");
@@ -1698,7 +1733,7 @@ var ElvClient = /*#__PURE__*/function () {
1698
1733
  }
1699
1734
  searchURIs = fabricInfo.network.services.search || [];
1700
1735
  fabricVersion = Math.max.apply(Math, _toConsumableArray(fabricInfo.network.api_versions || [2]));
1701
- return _context23.abrupt("return", {
1736
+ return _context24.abrupt("return", {
1702
1737
  nodeId: fabricInfo.node_id,
1703
1738
  contentSpaceId: fabricInfo.qspace.id,
1704
1739
  networkId: (fabricInfo.qspace.ethereum || {}).network_id,
@@ -1711,20 +1746,20 @@ var ElvClient = /*#__PURE__*/function () {
1711
1746
  fabricVersion: fabricVersion
1712
1747
  });
1713
1748
  case 21:
1714
- _context23.prev = 21;
1715
- _context23.t0 = _context23["catch"](1);
1749
+ _context24.prev = 21;
1750
+ _context24.t0 = _context24["catch"](1);
1716
1751
  // eslint-disable-next-line no-console
1717
1752
  console.error("Error retrieving fabric configuration:");
1718
1753
  // eslint-disable-next-line no-console
1719
- console.error(_context23.t0);
1720
- throw _context23.t0;
1754
+ console.error(_context24.t0);
1755
+ throw _context24.t0;
1721
1756
  case 26:
1722
1757
  case "end":
1723
- return _context23.stop();
1758
+ return _context24.stop();
1724
1759
  }
1725
- }, _callee23, null, [[1, 21]]);
1760
+ }, _callee24, null, [[1, 21]]);
1726
1761
  }));
1727
- function Configuration(_x20) {
1762
+ function Configuration(_x21) {
1728
1763
  return _Configuration.apply(this, arguments);
1729
1764
  }
1730
1765
  return Configuration;
@@ -1748,20 +1783,20 @@ var ElvClient = /*#__PURE__*/function () {
1748
1783
  }, {
1749
1784
  key: "FromNetworkName",
1750
1785
  value: function () {
1751
- var _FromNetworkName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(_ref27) {
1752
- var networkName, region, clientIP, trustAuthorityId, staticToken, _ref27$ethereumContra, ethereumContractTimeout, _ref27$noCache, noCache, _ref27$noAuth, noAuth, assumeV3, configUrl;
1753
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
1754
- while (1) switch (_context24.prev = _context24.next) {
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) {
1755
1790
  case 0:
1756
- networkName = _ref27.networkName, region = _ref27.region, clientIP = _ref27.clientIP, trustAuthorityId = _ref27.trustAuthorityId, staticToken = _ref27.staticToken, _ref27$ethereumContra = _ref27.ethereumContractTimeout, ethereumContractTimeout = _ref27$ethereumContra === void 0 ? 10 : _ref27$ethereumContra, _ref27$noCache = _ref27.noCache, noCache = _ref27$noCache === void 0 ? false : _ref27$noCache, _ref27$noAuth = _ref27.noAuth, noAuth = _ref27$noAuth === void 0 ? false : _ref27$noAuth, assumeV3 = _ref27.assumeV3;
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;
1757
1792
  configUrl = networks[networkName];
1758
1793
  if (configUrl) {
1759
- _context24.next = 4;
1794
+ _context25.next = 4;
1760
1795
  break;
1761
1796
  }
1762
1797
  throw Error("Invalid network name: " + networkName);
1763
1798
  case 4:
1764
- _context24.next = 6;
1799
+ _context25.next = 6;
1765
1800
  return this.FromConfigurationUrl({
1766
1801
  configUrl: configUrl,
1767
1802
  region: region,
@@ -1774,14 +1809,14 @@ var ElvClient = /*#__PURE__*/function () {
1774
1809
  assumeV3: assumeV3
1775
1810
  });
1776
1811
  case 6:
1777
- return _context24.abrupt("return", _context24.sent);
1812
+ return _context25.abrupt("return", _context25.sent);
1778
1813
  case 7:
1779
1814
  case "end":
1780
- return _context24.stop();
1815
+ return _context25.stop();
1781
1816
  }
1782
- }, _callee24, this);
1817
+ }, _callee25, this);
1783
1818
  }));
1784
- function FromNetworkName(_x21) {
1819
+ function FromNetworkName(_x22) {
1785
1820
  return _FromNetworkName.apply(this, arguments);
1786
1821
  }
1787
1822
  return FromNetworkName;
@@ -1805,20 +1840,20 @@ var ElvClient = /*#__PURE__*/function () {
1805
1840
  }, {
1806
1841
  key: "FromConfigurationUrl",
1807
1842
  value: function () {
1808
- var _FromConfigurationUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(_ref28) {
1809
- var configUrl, region, clientIP, trustAuthorityId, staticToken, _ref28$ethereumContra, ethereumContractTimeout, _ref28$noCache, noCache, _ref28$noAuth, noAuth, _ref28$assumeV, assumeV3, _yield$ElvClient$Conf3, contentSpaceId, networkId, networkName, fabricURIs, ethereumURIs, authServiceURIs, searchURIs, fabricVersion, client;
1810
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
1811
- while (1) switch (_context25.prev = _context25.next) {
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) {
1812
1847
  case 0:
1813
- configUrl = _ref28.configUrl, 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, _ref28$assumeV = _ref28.assumeV3, assumeV3 = _ref28$assumeV === void 0 ? false : _ref28$assumeV;
1814
- _context25.next = 3;
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;
1815
1850
  return ElvClient.Configuration({
1816
1851
  configUrl: configUrl,
1817
1852
  clientIP: clientIP,
1818
1853
  region: region
1819
1854
  });
1820
1855
  case 3:
1821
- _yield$ElvClient$Conf3 = _context25.sent;
1856
+ _yield$ElvClient$Conf3 = _context26.sent;
1822
1857
  contentSpaceId = _yield$ElvClient$Conf3.contentSpaceId;
1823
1858
  networkId = _yield$ElvClient$Conf3.networkId;
1824
1859
  networkName = _yield$ElvClient$Conf3.networkName;
@@ -1844,14 +1879,14 @@ var ElvClient = /*#__PURE__*/function () {
1844
1879
  assumeV3: assumeV3
1845
1880
  });
1846
1881
  client.configUrl = configUrl;
1847
- return _context25.abrupt("return", client);
1882
+ return _context26.abrupt("return", client);
1848
1883
  case 15:
1849
1884
  case "end":
1850
- return _context25.stop();
1885
+ return _context26.stop();
1851
1886
  }
1852
- }, _callee25);
1887
+ }, _callee26);
1853
1888
  }));
1854
- function FromConfigurationUrl(_x22) {
1889
+ function FromConfigurationUrl(_x23) {
1855
1890
  return _FromConfigurationUrl.apply(this, arguments);
1856
1891
  }
1857
1892
  return FromConfigurationUrl;
@@ -8,8 +8,8 @@ var _createClass = require("@babel/runtime/helpers/createClass");
8
8
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
9
9
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
10
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
- 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; }
12
- 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; }
11
+ 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; }
12
+ 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; }
13
13
  // NOTE: Querying Ethereum requires CORS enabled
14
14
  // Use --rpccorsdomain "http[s]://hostname:port" or set up proxy
15
15
  var Ethers = require("ethers");
@@ -3,8 +3,8 @@ var _regeneratorRuntime = require("@babel/runtime/regenerator");
3
3
  var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
4
4
  var _classCallCheck = require("@babel/runtime/helpers/classCallCheck");
5
5
  var _createClass = require("@babel/runtime/helpers/createClass");
6
- 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; }
7
- 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; }
6
+ 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; }
7
+ 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
8
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
9
9
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
10
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
@@ -449,7 +449,7 @@ var FrameClient = /*#__PURE__*/function () {
449
449
  }, {
450
450
  key: "AllowedMethods",
451
451
  value: function AllowedMethods() {
452
- return ["AccessGroupManagers", "AccessGroupMembers", "AccessGroupOwner", "AccessInfo", "AccessRequest", "AccessType", "AddAccessGroupManager", "AddAccessGroupMember", "AddContentLibraryGroup", "AddContentObjectGroupPermission", "AddLibraryContentType", "AssetMetadata", "AvailableDRMs", "AvailableOfferings", "AwaitPending", "BitmovinPlayoutOptions", "BlockNumber", "CallBitcodeMethod", "CallContractMethod", "CallContractMethodAndWait", "ClearCache", "ClearStaticToken", "Collection", "CollectionTransactions", "ConfigUrl", "ContentLibraries", "ContentLibrary", "ContentLibraryGroupPermissions", "ContentLibraryOwner", "ContentObject", "ContentObjectAccessComplete", "ContentObjectGraph", "ContentObjectGroupPermissions", "ContentObjectImageUrl", "ContentObjectLibraryId", "ContentObjectMetadata", "ContentObjectOwner", "ContentObjectTenantId", "ContentObjectVersions", "ContentObjects", "ContentPart", "ContentParts", "ContentSpaceId", "ContentType", "ContentTypeOwner", "ContentTypes", "ContractAbi", "ContractEvents", "ContractMetadata", "ContractName", "CopyContentObject", "CreateABRMezzanine", "CreateAccessGroup", "CreateAndFinalizeContentObject", "CreateContentLibrary", "CreateContentObject", "CreateContentType", "CreateEncryptionConk", "CreateFabricToken", "CreateFileDirectories", "CreateFileUploadJob", "CreateLinks", "CreateNTPInstance", "CreateNonOwnerCap", "CreatePart", "CreateProductionMaster", "CreateSignedToken", "CurrentAccountAddress", "CustomContractAddress", "Decrypt", "DecryptECIES", "DefaultKMSAddress", "DeleteAccessGroup", "DeleteContentLibrary", "DeleteContentObject", "DeleteContentVersion", "DeleteFiles", "DeleteMetadata", "DeleteNTPInstance", "DeletePart", "DeployContract", "Download", "DownloadEncrypted", "DownloadFile", "DownloadPart", "EditAndFinalizeContentObject", "EditContentObject", "EmbedUrl", "Encrypt", "EncryptECIES", "EncryptionConk", "Events", "ExtractEventFromLogs", "ExtractValueFromEvent", "FabricUrl", "FileUrl", "FinalizeABRMezzanine", "FinalizeContentObject", "FinalizePart", "FinalizeStateChannelAccess", "FinalizeUploadJob", "FormatContractArguments", "GenerateStateChannelToken", "GenerateSignedLinkToken", "GetBalance", "InitializeAuthPolicy", "IssueNTPCode", "IssueSignedNTPCode", "LatestVersionHash", "LibraryContentTypes", "LinkAccessGroupToOauth", "LinkData", "LinkTarget", "LinkUrl", "ListAccessGroups", "ListFiles", "ListNTPInstances", "LRODraftInfo", "LROStatus", "MergeContractMetadata", "MergeMetadata", "MetadataAuth", "MintNFT", "MoveFiles", "NetworkInfo", "NodeId", "Nodes", "NTPInstance", "Permission", "PlayoutOptions", "PlayoutPathResolution", "ProduceMetadataLinks", "Proofs", "PublicRep", "PublishContentVersion", "QParts", "RecordWriteToken", "RedeemCode", "RemoveAccessGroupManager", "RemoveAccessGroupMember", "RemoveContentObjectGroupPermission", "RemoveContentLibraryGroup", "RemoveLibraryContentType", "Rep", "ReplaceContractMetadata", "ReplaceMetadata", "Request", "ResetRegion", "SendFunds", "SetAccessCharge", "SetAuth", "SetAuthContext", "SetAuthPolicy", "SetContentLibraryImage", "SetContentObjectImage", "SetCustomContentContract", "SetGroupPermission", "SetNodes", "SetOauthToken", "SetPolicyAuthorization", "SetSignerFromOauthToken", "SetStaticToken", "SetVisibility", "SetPermission", "SpaceNodes", "StartABRMezzanineJobs", "StreamConfig", "StreamCreate", "StreamStatus", "StreamStartOrStopOrReset", "SuspendNTPInstance", "UnlinkAccessGroupFromOauth", "UpdateContentObjectGraph", "UpdateNTPInstance", "UploadFileData", "UploadFilesFromS3", "UploadJobStatus", "UploadPart", "UploadPartChunk", "UploadStatus", "UseRegion", "VerifyContentObject", "Visibility"];
452
+ return ["AccessGroupManagers", "AccessGroupMembers", "AccessGroupOwner", "AccessInfo", "AccessRequest", "AccessType", "AddAccessGroupManager", "AddAccessGroupMember", "AddContentLibraryGroup", "AddContentObjectGroupPermission", "AddLibraryContentType", "AssetMetadata", "AvailableDRMs", "AvailableOfferings", "AwaitPending", "BitmovinPlayoutOptions", "BlockNumber", "CallBitcodeMethod", "CallContractMethod", "CallContractMethodAndWait", "ClearCache", "ClearStaticToken", "Collection", "CollectionTransactions", "ConfigUrl", "ContentLibraries", "ContentLibrary", "ContentLibraryGroupPermissions", "ContentLibraryOwner", "ContentObject", "ContentObjectAccessComplete", "ContentObjectGraph", "ContentObjectGroupPermissions", "ContentObjectImageUrl", "ContentObjectLibraryId", "ContentObjectMetadata", "ContentObjectOwner", "ContentObjectTenantId", "ContentObjectVersions", "ContentObjects", "ContentPart", "ContentParts", "ContentSpaceId", "ContentType", "ContentTypeOwner", "ContentTypes", "ContractAbi", "ContractEvents", "ContractInfo", "ContractMetadata", "ContractName", "CopyContentObject", "CreateABRMezzanine", "CreateAccessGroup", "CreateAndFinalizeContentObject", "CreateContentLibrary", "CreateContentObject", "CreateContentType", "CreateEncryptionConk", "CreateFabricToken", "CreateFileDirectories", "CreateFileUploadJob", "CreateLinks", "CreateNTPInstance", "CreateNonOwnerCap", "CreatePart", "CreateProductionMaster", "CreateSignedToken", "CurrentAccountAddress", "CustomContractAddress", "Decrypt", "DecryptECIES", "DefaultKMSAddress", "DeleteAccessGroup", "DeleteContentLibrary", "DeleteContentObject", "DeleteContentVersion", "DeleteFiles", "DeleteMetadata", "DeleteNTPInstance", "DeletePart", "DeployContract", "Download", "DownloadEncrypted", "DownloadFile", "DownloadPart", "EditAndFinalizeContentObject", "EditContentObject", "EmbedUrl", "Encrypt", "EncryptECIES", "EncryptionConk", "Events", "ExtractEventFromLogs", "ExtractValueFromEvent", "FabricUrl", "FileUrl", "FinalizeABRMezzanine", "FinalizeContentObject", "FinalizePart", "FinalizeStateChannelAccess", "FinalizeUploadJob", "FormatContractArguments", "GenerateStateChannelToken", "GenerateSignedLinkToken", "GetBalance", "InitializeAuthPolicy", "IssueNTPCode", "IssueSignedNTPCode", "LatestVersionHash", "LibraryContentTypes", "LinkAccessGroupToOauth", "LinkData", "LinkTarget", "LinkUrl", "ListAccessGroups", "ListFiles", "ListNTPInstances", "LRODraftInfo", "LROStatus", "MakeAuthServiceRequest", "MergeContractMetadata", "MergeMetadata", "MetadataAuth", "MintNFT", "MoveFiles", "NetworkInfo", "NodeId", "Nodes", "NTPInstance", "Permission", "PlayoutOptions", "PlayoutPathResolution", "ProduceMetadataLinks", "Proofs", "PublicRep", "PublishContentVersion", "QParts", "RecordWriteToken", "RedeemCode", "RemoveAccessGroupManager", "RemoveAccessGroupMember", "RemoveContentObjectGroupPermission", "RemoveContentLibraryGroup", "RemoveLibraryContentType", "Rep", "ReplaceContractMetadata", "ReplaceMetadata", "Request", "ResetRegion", "SendFunds", "SetAccessCharge", "SetAuth", "SetAuthContext", "SetAuthPolicy", "SetContentLibraryImage", "SetContentObjectImage", "SetCustomContentContract", "SetGroupPermission", "SetNodes", "SetOauthToken", "SetPolicyAuthorization", "SetSignerFromOauthToken", "SetStaticToken", "SetVisibility", "SetPermission", "SpaceNodes", "StartABRMezzanineJobs", "StreamConfig", "StreamCreate", "StreamStatus", "StreamStartOrStopOrReset", "SuspendNTPInstance", "UnlinkAccessGroupFromOauth", "UpdateContentObjectGraph", "UpdateNTPInstance", "UploadFileData", "UploadFilesFromS3", "UploadJobStatus", "UploadPart", "UploadPartChunk", "UploadStatus", "UseRegion", "VerifyContentObject", "Visibility", "WriteTokenNodeUrl"];
453
453
  }
454
454
  }, {
455
455
  key: "AllowedUserProfileMethods",
@@ -459,7 +459,7 @@ var FrameClient = /*#__PURE__*/function () {
459
459
  }, {
460
460
  key: "AllowedWalletClientMethods",
461
461
  value: function AllowedWalletClientMethods() {
462
- return ["AcceptMarketplaceOffer", "AddNotificationListener", "AvailableMarketplaces", "CanSign", "CastVote", "ClaimItem", "ClaimStatus", "CollectionRedemptionStatus", "CreateListing", "CreateMarketplaceOffer", "DropStatus", "ExchangeRate", "FilteredQuery", "LatestMarketplaceHash", "Leaderboard", "Listing", "ListingAttributes", "ListingEditionNames", "ListingNames", "ListingPurchaseStatus", "ListingStats", "ListingStatus", "Listings", "LoadAvailableMarketplaces", "LoadDrop", "LoadMarketplace", "Marketplace", "MarketplaceCSS", "MarketplaceInfo", "MarketplaceOffers", "MarketplaceStock", "MintingStatus", "NFT", "NFTContractStats", "Notifications", "PackOpenStatus", "Profile", "ProfileMetadata", "PurchaseStatus", "PushNotification", "RejectMarketplaceOffer", "RemoveListing", "RemoveMarketplaceOffer", "RemoveProfileMetadata", "RevokeVote", "Sales", "SalesNames", "SalesStats", "SetProfileMetadata", "SubmitDropVote", "TenantConfiguration", "TransferNFT", "Transfers", "UserAddress", "UserInfo", "UserItemAttributes", "UserItemEditionNames", "UserItemNames", "UserItems", "UserListings", "UserNameToAddress", "UserSales", "UserTransfers", "UserWalletBalance", "VoteStatus"];
462
+ return ["AcceptMarketplaceOffer", "AddNotificationListener", "AvailableMarketplaces", "CanSign", "CastVote", "ClaimItem", "ClaimStatus", "CollectionRedemptionStatus", "CreateListing", "CreateMarketplaceOffer", "DeployTenant", "DropStatus", "ExchangeRate", "FilteredQuery", "LatestMarketplaceHash", "Leaderboard", "Listing", "ListingAttributes", "ListingEditionNames", "ListingNames", "ListingPurchaseStatus", "ListingStats", "ListingStatus", "Listings", "LoadAvailableMarketplaces", "LoadDrop", "LoadMarketplace", "Marketplace", "MarketplaceCSS", "MarketplaceInfo", "MarketplaceOffers", "MarketplaceStock", "MintingStatus", "NFT", "NFTContractStats", "Notifications", "PackOpenStatus", "Profile", "ProfileMetadata", "PurchaseStatus", "PushNotification", "RejectMarketplaceOffer", "RemoveListing", "RemoveMarketplaceOffer", "RemoveProfileMetadata", "RevokeVote", "Sales", "SalesNames", "SalesStats", "SetProfileMetadata", "SubmitDropVote", "TenantConfiguration", "TransferNFT", "Transfers", "UserAddress", "UserInfo", "UserItemAttributes", "UserItemEditionNames", "UserItemNames", "UserItems", "UserListings", "UserNameToAddress", "UserSales", "UserTransfers", "UserWalletBalance", "VoteStatus"];
463
463
  }
464
464
  }], [{
465
465
  key: "PromptedMethods",
@@ -3,8 +3,8 @@ var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
3
3
  var _defineProperty = require("@babel/runtime/helpers/defineProperty");
4
4
  var _classCallCheck = require("@babel/runtime/helpers/classCallCheck");
5
5
  var _createClass = require("@babel/runtime/helpers/createClass");
6
- 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; }
7
- 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; }
6
+ 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; }
7
+ 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
8
  var UrlJoin = require("url-join");
9
9
  var _require = require("./Validation"),
10
10
  ValidatePresence = _require.ValidatePresence,