@eluvio/elv-client-js 4.0.103 → 4.0.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ElvClient-min.js +15 -14
- package/dist/ElvClient-node-min.js +14 -13
- package/dist/ElvFrameClient-min.js +10 -10
- package/dist/ElvPermissionsClient-min.js +9 -9
- package/dist/ElvWalletClient-min.js +15 -14
- package/dist/ElvWalletClient-node-min.js +14 -13
- package/dist/src/AuthorizationClient.js +9 -12
- package/dist/src/ContentObjectAudit.js +3 -3
- package/dist/src/ContentObjectVerification.js +3 -3
- package/dist/src/Crypto.js +2 -2
- package/dist/src/ElvClient.js +47 -28
- package/dist/src/ElvWallet.js +7 -5
- package/dist/src/EthClient.js +8 -9
- package/dist/src/FrameClient.js +8 -9
- package/dist/src/HttpClient.js +1 -2
- package/dist/src/Id.js +1 -2
- package/dist/src/PermissionsClient.js +31 -19
- package/dist/src/RemoteSigner.js +10 -11
- package/dist/src/UserProfileClient.js +35 -19
- package/dist/src/Utils.js +2 -3
- package/dist/src/abr_profiles/abr_profile_live_drm.js +22 -0
- package/dist/src/client/ABRPublishing.js +2 -2
- package/dist/src/client/AccessGroups.js +2 -2
- package/dist/src/client/ContentAccess.js +9 -6
- package/dist/src/client/ContentManagement.js +3 -3
- package/dist/src/client/Contracts.js +2 -2
- package/dist/src/client/Files.js +2 -2
- package/dist/src/client/LiveConf.js +60 -78
- package/dist/src/client/LiveStream.js +41 -22
- package/dist/src/client/NFT.js +2 -2
- package/dist/src/walletClient/ClientMethods.js +2 -2
- package/dist/src/walletClient/Profile.js +2 -2
- package/dist/src/walletClient/Utils.js +2 -2
- package/dist/src/walletClient/index.js +19 -16
- package/package.json +1 -1
- package/src/abr_profiles/abr_profile_live_drm.js +22 -0
- package/src/client/ContentAccess.js +2 -1
- package/src/client/LiveConf.js +86 -111
- package/src/client/LiveStream.js +19 -0
- package/src/walletClient/index.js +4 -8
package/dist/src/FrameClient.js
CHANGED
|
@@ -3,11 +3,11 @@ 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(
|
|
7
|
-
function _objectSpread(
|
|
8
|
-
function _createForOfIteratorHelper(
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
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
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
9
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
11
|
var Id = require("./Id");
|
|
12
12
|
var Utils = require("./Utils");
|
|
13
13
|
var permissionLevels = require("./client/ContentAccess").permissionLevels;
|
|
@@ -214,7 +214,7 @@ var FrameClient = /*#__PURE__*/function () {
|
|
|
214
214
|
* @param {object} request - An ElvFrameRequest
|
|
215
215
|
* @returns {object} - The resultant ElvFrameResponse
|
|
216
216
|
*/
|
|
217
|
-
_createClass(FrameClient, [{
|
|
217
|
+
return _createClass(FrameClient, [{
|
|
218
218
|
key: "Log",
|
|
219
219
|
value: function Log(message) {
|
|
220
220
|
var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -222,7 +222,7 @@ var FrameClient = /*#__PURE__*/function () {
|
|
|
222
222
|
}
|
|
223
223
|
}, {
|
|
224
224
|
key: "PassRequest",
|
|
225
|
-
value: function () {
|
|
225
|
+
value: (function () {
|
|
226
226
|
var _PassRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_ref5) {
|
|
227
227
|
var request, Respond, response, error, callback;
|
|
228
228
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
@@ -269,7 +269,7 @@ var FrameClient = /*#__PURE__*/function () {
|
|
|
269
269
|
return _PassRequest.apply(this, arguments);
|
|
270
270
|
}
|
|
271
271
|
return PassRequest;
|
|
272
|
-
}()
|
|
272
|
+
}())
|
|
273
273
|
}, {
|
|
274
274
|
key: "SendMessage",
|
|
275
275
|
value: function () {
|
|
@@ -477,7 +477,6 @@ var FrameClient = /*#__PURE__*/function () {
|
|
|
477
477
|
return ["CreateFileUploadJob", "DownloadEncrypted", "DownloadFile", "DownloadPart", "FinalizeUploadJob", "UpdateContentObjectGraph", "UploadFileData", "UploadFiles", "UploadFilesFromS3", "UploadJobStatus", "UploadPart", "UploadPartChunk", "UploadStatus"];
|
|
478
478
|
}
|
|
479
479
|
}]);
|
|
480
|
-
return FrameClient;
|
|
481
480
|
}();
|
|
482
481
|
var _require2 = require("./client/Files"),
|
|
483
482
|
UploadFiles = _require2.UploadFiles;
|
package/dist/src/HttpClient.js
CHANGED
|
@@ -20,7 +20,7 @@ var HttpClient = /*#__PURE__*/function () {
|
|
|
20
20
|
this.draftURIs = {};
|
|
21
21
|
this.retries = Math.max(3, uris.length);
|
|
22
22
|
}
|
|
23
|
-
_createClass(HttpClient, [{
|
|
23
|
+
return _createClass(HttpClient, [{
|
|
24
24
|
key: "Log",
|
|
25
25
|
value: function Log(message) {
|
|
26
26
|
var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -310,6 +310,5 @@ var HttpClient = /*#__PURE__*/function () {
|
|
|
310
310
|
return _Fetch(url, params);
|
|
311
311
|
}
|
|
312
312
|
}]);
|
|
313
|
-
return HttpClient;
|
|
314
313
|
}();
|
|
315
314
|
module.exports = HttpClient;
|
package/dist/src/Id.js
CHANGED
|
@@ -9,13 +9,12 @@ var Id = /*#__PURE__*/function () {
|
|
|
9
9
|
function Id() {
|
|
10
10
|
_classCallCheck(this, Id);
|
|
11
11
|
}
|
|
12
|
-
_createClass(Id, null, [{
|
|
12
|
+
return _createClass(Id, null, [{
|
|
13
13
|
key: "next",
|
|
14
14
|
value: function next() {
|
|
15
15
|
__id++;
|
|
16
16
|
return __id;
|
|
17
17
|
}
|
|
18
18
|
}]);
|
|
19
|
-
return Id;
|
|
20
19
|
}();
|
|
21
20
|
module.exports = Id;
|
|
@@ -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(
|
|
7
|
-
function _objectSpread(
|
|
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,
|
|
@@ -124,7 +124,7 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
124
124
|
this.drafts = {};
|
|
125
125
|
this.offline = options.offline;
|
|
126
126
|
}
|
|
127
|
-
_createClass(PermissionsClient, [{
|
|
127
|
+
return _createClass(PermissionsClient, [{
|
|
128
128
|
key: "FormatDate",
|
|
129
129
|
value: function FormatDate(date) {
|
|
130
130
|
if (!date) {
|
|
@@ -362,7 +362,7 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
362
362
|
*/
|
|
363
363
|
}, {
|
|
364
364
|
key: "OpenOfflineDraft",
|
|
365
|
-
value: function () {
|
|
365
|
+
value: (function () {
|
|
366
366
|
var _OpenOfflineDraft = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref2) {
|
|
367
367
|
var policyId, policyLibraryId, policyWriteToken, meta;
|
|
368
368
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -412,9 +412,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
412
412
|
* @namedParams
|
|
413
413
|
* @param {string} policyId - Object ID of the policy
|
|
414
414
|
*/
|
|
415
|
+
)
|
|
415
416
|
}, {
|
|
416
417
|
key: "CloseOfflineDraft",
|
|
417
|
-
value: function () {
|
|
418
|
+
value: (function () {
|
|
418
419
|
var _CloseOfflineDraft = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref3) {
|
|
419
420
|
var policyId;
|
|
420
421
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -457,9 +458,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
457
458
|
* @param {string=} policyWriteToken - Write token for the policy object - if specified, info will be retrieved from the write draft instead of the last finalized policy object
|
|
458
459
|
* @return {Promise<Object>} - A mapping of item objectId to the display name of the item
|
|
459
460
|
*/
|
|
461
|
+
)
|
|
460
462
|
}, {
|
|
461
463
|
key: "PolicyItems",
|
|
462
|
-
value: function () {
|
|
464
|
+
value: (function () {
|
|
463
465
|
var _PolicyItems = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_ref4) {
|
|
464
466
|
var policyId, policyWriteToken;
|
|
465
467
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
@@ -515,9 +517,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
515
517
|
* @param {string} itemId - Object ID of the item
|
|
516
518
|
* @return {Promise<Object | undefined>} - The policy for the specified item. If none exists, returns undefined
|
|
517
519
|
*/
|
|
520
|
+
)
|
|
518
521
|
}, {
|
|
519
522
|
key: "ItemPolicy",
|
|
520
|
-
value: function () {
|
|
523
|
+
value: (function () {
|
|
521
524
|
var _ItemPolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(_ref5) {
|
|
522
525
|
var policyId, policyWriteToken, itemId, profiles, permissions;
|
|
523
526
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
@@ -571,9 +574,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
571
574
|
* @param {string} itemId - Object ID of the item
|
|
572
575
|
* @param {object=} profiles={} - Profiles to create
|
|
573
576
|
*/
|
|
577
|
+
)
|
|
574
578
|
}, {
|
|
575
579
|
key: "CreateItemPolicy",
|
|
576
|
-
value: function () {
|
|
580
|
+
value: (function () {
|
|
577
581
|
var _CreateItemPolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(_ref6) {
|
|
578
582
|
var _this2 = this;
|
|
579
583
|
var policyId, policyWriteToken, itemId, _ref6$profiles, profiles, metadata, assetMetadata, displayTitle, itemSpec;
|
|
@@ -660,9 +664,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
660
664
|
* @param {string} policyWriteToken - Write token for the policy
|
|
661
665
|
* @param {string} itemId - Object ID of the item
|
|
662
666
|
*/
|
|
667
|
+
)
|
|
663
668
|
}, {
|
|
664
669
|
key: "RemoveItemPolicy",
|
|
665
|
-
value: function () {
|
|
670
|
+
value: (function () {
|
|
666
671
|
var _RemoveItemPolicy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(_ref7) {
|
|
667
672
|
var policyId, policyWriteToken, itemId;
|
|
668
673
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
@@ -712,9 +717,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
712
717
|
* @param {string} itemId - Object ID of the item
|
|
713
718
|
* @param {string=} profileName - The name of the profile. If not specified, all profiles will be returned
|
|
714
719
|
*/
|
|
720
|
+
)
|
|
715
721
|
}, {
|
|
716
722
|
key: "ItemProfiles",
|
|
717
|
-
value: function () {
|
|
723
|
+
value: (function () {
|
|
718
724
|
var _ItemProfiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(_ref8) {
|
|
719
725
|
var policyId, policyWriteToken, itemId, profileName;
|
|
720
726
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
@@ -764,9 +770,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
764
770
|
* @param {object} profileSpec - Specification for the profile. If not provided, profile
|
|
765
771
|
* will default to no access for both assets and offerings
|
|
766
772
|
*/
|
|
773
|
+
)
|
|
767
774
|
}, {
|
|
768
775
|
key: "SetProfile",
|
|
769
|
-
value: function () {
|
|
776
|
+
value: (function () {
|
|
770
777
|
var _SetProfile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(_ref9) {
|
|
771
778
|
var policyId, policyWriteToken, itemId, profileName, profileSpec;
|
|
772
779
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
@@ -821,9 +828,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
821
828
|
* @param {object} profileSpec - Specification for the profile. If not provided, profile
|
|
822
829
|
* will default to no access for both assets and offerings
|
|
823
830
|
*/
|
|
831
|
+
)
|
|
824
832
|
}, {
|
|
825
833
|
key: "RemoveProfile",
|
|
826
|
-
value: function () {
|
|
834
|
+
value: (function () {
|
|
827
835
|
var _RemoveProfile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(_ref10) {
|
|
828
836
|
var policyId, policyWriteToken, itemId, profileName;
|
|
829
837
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
@@ -875,9 +883,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
875
883
|
*
|
|
876
884
|
* @return {Promise<Array>} - The list of permissions for the specified item
|
|
877
885
|
*/
|
|
886
|
+
)
|
|
878
887
|
}, {
|
|
879
888
|
key: "ItemPermissions",
|
|
880
|
-
value: function () {
|
|
889
|
+
value: (function () {
|
|
881
890
|
var _ItemPermissions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(_ref11) {
|
|
882
891
|
var _this3 = this;
|
|
883
892
|
var policyId, policyWriteToken, itemId, libraryId, permissions;
|
|
@@ -961,9 +970,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
961
970
|
* @param {string | number} start - The start time for the permission
|
|
962
971
|
* @param {string | number} end - The end time for the permission
|
|
963
972
|
*/
|
|
973
|
+
)
|
|
964
974
|
}, {
|
|
965
975
|
key: "SetPermission",
|
|
966
|
-
value: function () {
|
|
976
|
+
value: (function () {
|
|
967
977
|
var _SetPermission = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(_ref13) {
|
|
968
978
|
var policyId, policyWriteToken, itemId, _ref13$subjectSource, subjectSource, _ref13$subjectType, subjectType, subjectName, subjectId, subjectNTPId, profileName, start, end, offlineDraft, policyLibraryId, existingPermissions, index, permissionSpec, subjectInfo, newMeta, userInfo, _newMeta, _userInfo;
|
|
969
979
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
@@ -1260,9 +1270,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
1260
1270
|
* @param {string} itemId - Object ID of the item
|
|
1261
1271
|
* @param {string} subjectId - The ID of the subject
|
|
1262
1272
|
*/
|
|
1273
|
+
)
|
|
1263
1274
|
}, {
|
|
1264
1275
|
key: "RemovePermission",
|
|
1265
|
-
value: function () {
|
|
1276
|
+
value: (function () {
|
|
1266
1277
|
var _RemovePermission = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(_ref14) {
|
|
1267
1278
|
var _this4 = this;
|
|
1268
1279
|
var policyId, policyWriteToken, itemId, subjectId, policyLibraryId, permissions, id;
|
|
@@ -1365,9 +1376,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
1365
1376
|
*
|
|
1366
1377
|
* @returns {Object} - All permissions pertaining to the given subject. Format of result for each item is identical to the format of `ItemPolicy`
|
|
1367
1378
|
*/
|
|
1379
|
+
)
|
|
1368
1380
|
}, {
|
|
1369
1381
|
key: "SubjectPermissions",
|
|
1370
|
-
value: function () {
|
|
1382
|
+
value: (function () {
|
|
1371
1383
|
var _SubjectPermissions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(_ref16) {
|
|
1372
1384
|
var _this5 = this;
|
|
1373
1385
|
var policyId, policyWriteToken, subjectId, id, policyLibraryId, policy, allSubjectPermissions, _i, _Object$keys, itemId, itemPermissions, subjectPermissions;
|
|
@@ -1483,9 +1495,10 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
1483
1495
|
* @param {string} policyWriteToken - Write token for the policy
|
|
1484
1496
|
* @param {string} subjectId - The ID of the subject
|
|
1485
1497
|
*/
|
|
1498
|
+
)
|
|
1486
1499
|
}, {
|
|
1487
1500
|
key: "RemoveSubjectPermissions",
|
|
1488
|
-
value: function () {
|
|
1501
|
+
value: (function () {
|
|
1489
1502
|
var _RemoveSubjectPermissions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(_ref18) {
|
|
1490
1503
|
var _this6 = this;
|
|
1491
1504
|
var policyId, policyWriteToken, subjectId, subjectPermissions;
|
|
@@ -1537,8 +1550,7 @@ var PermissionsClient = /*#__PURE__*/function () {
|
|
|
1537
1550
|
return _RemoveSubjectPermissions.apply(this, arguments);
|
|
1538
1551
|
}
|
|
1539
1552
|
return RemoveSubjectPermissions;
|
|
1540
|
-
}()
|
|
1553
|
+
}())
|
|
1541
1554
|
}]);
|
|
1542
|
-
return PermissionsClient;
|
|
1543
1555
|
}();
|
|
1544
1556
|
module.exports = PermissionsClient;
|
package/dist/src/RemoteSigner.js
CHANGED
|
@@ -2,11 +2,11 @@ var _regeneratorRuntime = require("@babel/runtime/regenerator");
|
|
|
2
2
|
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
|
-
var _inherits = require("@babel/runtime/helpers/inherits");
|
|
6
5
|
var _possibleConstructorReturn = require("@babel/runtime/helpers/possibleConstructorReturn");
|
|
7
6
|
var _getPrototypeOf = require("@babel/runtime/helpers/getPrototypeOf");
|
|
8
|
-
|
|
9
|
-
function
|
|
7
|
+
var _inherits = require("@babel/runtime/helpers/inherits");
|
|
8
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
var Ethers = require("ethers");
|
|
11
11
|
var Utils = require("./Utils");
|
|
12
12
|
var HttpClient = require("./HttpClient");
|
|
@@ -15,8 +15,6 @@ var UUID = require("uuid");
|
|
|
15
15
|
var RemoteSigner = /*#__PURE__*/function (_Ethers$Signer) {
|
|
16
16
|
"use strict";
|
|
17
17
|
|
|
18
|
-
_inherits(RemoteSigner, _Ethers$Signer);
|
|
19
|
-
var _super = _createSuper(RemoteSigner);
|
|
20
18
|
function RemoteSigner(_ref) {
|
|
21
19
|
var _this;
|
|
22
20
|
var signerURIs = _ref.signerURIs,
|
|
@@ -29,7 +27,7 @@ var RemoteSigner = /*#__PURE__*/function (_Ethers$Signer) {
|
|
|
29
27
|
_ref$unsignedPublicAu = _ref.unsignedPublicAuth,
|
|
30
28
|
unsignedPublicAuth = _ref$unsignedPublicAu === void 0 ? false : _ref$unsignedPublicAu;
|
|
31
29
|
_classCallCheck(this, RemoteSigner);
|
|
32
|
-
_this =
|
|
30
|
+
_this = _callSuper(this, RemoteSigner);
|
|
33
31
|
_this.remoteSigner = true;
|
|
34
32
|
_this.unsignedPublicAuth = unsignedPublicAuth;
|
|
35
33
|
_this.HttpClient = new HttpClient({
|
|
@@ -43,7 +41,8 @@ var RemoteSigner = /*#__PURE__*/function (_Ethers$Signer) {
|
|
|
43
41
|
_this.signatureCache = {};
|
|
44
42
|
return _this;
|
|
45
43
|
}
|
|
46
|
-
|
|
44
|
+
_inherits(RemoteSigner, _Ethers$Signer);
|
|
45
|
+
return _createClass(RemoteSigner, [{
|
|
47
46
|
key: "Initialize",
|
|
48
47
|
value: function () {
|
|
49
48
|
var _Initialize = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
@@ -116,11 +115,11 @@ var RemoteSigner = /*#__PURE__*/function (_Ethers$Signer) {
|
|
|
116
115
|
key: "RetrieveCSAT",
|
|
117
116
|
value: function () {
|
|
118
117
|
var _RetrieveCSAT = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref2) {
|
|
119
|
-
var email, nonce, _ref2$force, force, response;
|
|
118
|
+
var email, nonce, tenantId, _ref2$force, force, response;
|
|
120
119
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
121
120
|
while (1) switch (_context2.prev = _context2.next) {
|
|
122
121
|
case 0:
|
|
123
|
-
email = _ref2.email, nonce = _ref2.nonce, _ref2$force = _ref2.force, force = _ref2$force === void 0 ? false : _ref2$force;
|
|
122
|
+
email = _ref2.email, nonce = _ref2.nonce, tenantId = _ref2.tenantId, _ref2$force = _ref2.force, force = _ref2$force === void 0 ? false : _ref2$force;
|
|
124
123
|
nonce = nonce || Utils.B58(UUID.parse(UUID.v4()));
|
|
125
124
|
_context2.next = 4;
|
|
126
125
|
return Utils.ResponseToJson(this.HttpClient.Request({
|
|
@@ -128,7 +127,8 @@ var RemoteSigner = /*#__PURE__*/function (_Ethers$Signer) {
|
|
|
128
127
|
body: {
|
|
129
128
|
email: email,
|
|
130
129
|
nonce: nonce,
|
|
131
|
-
force: force
|
|
130
|
+
force: force,
|
|
131
|
+
tid: tenantId
|
|
132
132
|
},
|
|
133
133
|
path: UrlJoin("as", "wlt", "sign", "csat"),
|
|
134
134
|
headers: {
|
|
@@ -379,6 +379,5 @@ var RemoteSigner = /*#__PURE__*/function (_Ethers$Signer) {
|
|
|
379
379
|
key: "connect",
|
|
380
380
|
value: function connect() {}
|
|
381
381
|
}]);
|
|
382
|
-
return RemoteSigner;
|
|
383
382
|
}(Ethers.Signer);
|
|
384
383
|
module.exports = RemoteSigner;
|
|
@@ -62,7 +62,7 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
62
62
|
this.walletAddress = undefined;
|
|
63
63
|
this.walletAddressRetrieved = false;
|
|
64
64
|
}
|
|
65
|
-
_createClass(UserProfileClient, [{
|
|
65
|
+
return _createClass(UserProfileClient, [{
|
|
66
66
|
key: "Log",
|
|
67
67
|
value: function Log(message) {
|
|
68
68
|
var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -202,7 +202,7 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
202
202
|
*/
|
|
203
203
|
}, {
|
|
204
204
|
key: "WalletAddress",
|
|
205
|
-
value: function () {
|
|
205
|
+
value: (function () {
|
|
206
206
|
var _WalletAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
207
207
|
var autoCreate,
|
|
208
208
|
walletAddress,
|
|
@@ -259,9 +259,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
259
259
|
*
|
|
260
260
|
* @return {Promise<string>} - The wallet address of the specified user, if it exists
|
|
261
261
|
*/
|
|
262
|
+
)
|
|
262
263
|
}, {
|
|
263
264
|
key: "UserWalletAddress",
|
|
264
|
-
value: function () {
|
|
265
|
+
value: (function () {
|
|
265
266
|
var _UserWalletAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref2) {
|
|
266
267
|
var address, walletAddress;
|
|
267
268
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -315,9 +316,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
315
316
|
*
|
|
316
317
|
* @return {Promise<{Object}>} - An object containing the libraryId and objectId for the wallet object.
|
|
317
318
|
*/
|
|
319
|
+
)
|
|
318
320
|
}, {
|
|
319
321
|
key: "UserWalletObjectInfo",
|
|
320
|
-
value: function () {
|
|
322
|
+
value: (function () {
|
|
321
323
|
var _UserWalletObjectInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
322
324
|
var _ref3,
|
|
323
325
|
address,
|
|
@@ -389,9 +391,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
389
391
|
*
|
|
390
392
|
* @return {Promise<Object|string>}
|
|
391
393
|
*/
|
|
394
|
+
)
|
|
392
395
|
}, {
|
|
393
396
|
key: "PublicUserMetadata",
|
|
394
|
-
value: function () {
|
|
397
|
+
value: (function () {
|
|
395
398
|
var _PublicUserMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(_ref4) {
|
|
396
399
|
var address, _ref4$metadataSubtree, metadataSubtree, _ref4$queryParams, queryParams, _ref4$select, select, _ref4$resolveLinks, resolveLinks, _ref4$resolveIncludeS, resolveIncludeSource, _ref4$resolveIgnoreEr, resolveIgnoreErrors, _ref4$linkDepthLimit, linkDepthLimit, walletAddress, _yield$this$UserWalle, libraryId, objectId;
|
|
397
400
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
@@ -487,9 +490,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
487
490
|
*
|
|
488
491
|
* @return {Promise<Object|string>} - The user's profile metadata - returns undefined if no metadata set or subtree doesn't exist
|
|
489
492
|
*/
|
|
493
|
+
)
|
|
490
494
|
}, {
|
|
491
495
|
key: "UserMetadata",
|
|
492
|
-
value: function () {
|
|
496
|
+
value: (function () {
|
|
493
497
|
var _UserMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
494
498
|
var _ref5,
|
|
495
499
|
_ref5$metadataSubtree,
|
|
@@ -553,9 +557,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
553
557
|
* @param {Object} metadata - New metadata
|
|
554
558
|
* @param {string=} metadataSubtree - Subtree to merge into - modifies root metadata if not specified
|
|
555
559
|
*/
|
|
560
|
+
)
|
|
556
561
|
}, {
|
|
557
562
|
key: "MergeUserMetadata",
|
|
558
|
-
value: function () {
|
|
563
|
+
value: (function () {
|
|
559
564
|
var _MergeUserMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(_ref6) {
|
|
560
565
|
var _ref6$metadataSubtree, metadataSubtree, _ref6$metadata, metadata, _yield$this$UserWalle3, libraryId, objectId, editRequest;
|
|
561
566
|
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
@@ -610,9 +615,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
610
615
|
* @param {Object} metadata - New metadata
|
|
611
616
|
* @param {string=} metadataSubtree - Subtree to replace - modifies root metadata if not specified
|
|
612
617
|
*/
|
|
618
|
+
)
|
|
613
619
|
}, {
|
|
614
620
|
key: "ReplaceUserMetadata",
|
|
615
|
-
value: function () {
|
|
621
|
+
value: (function () {
|
|
616
622
|
var _ReplaceUserMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(_ref7) {
|
|
617
623
|
var _ref7$metadataSubtree, metadataSubtree, _ref7$metadata, metadata, _yield$this$UserWalle4, libraryId, objectId, editRequest;
|
|
618
624
|
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
@@ -666,9 +672,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
666
672
|
* @namedParams
|
|
667
673
|
* @param {string=} metadataSubtree - Subtree to delete - deletes all metadata if not specified
|
|
668
674
|
*/
|
|
675
|
+
)
|
|
669
676
|
}, {
|
|
670
677
|
key: "DeleteUserMetadata",
|
|
671
|
-
value: function () {
|
|
678
|
+
value: (function () {
|
|
672
679
|
var _DeleteUserMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(_ref8) {
|
|
673
680
|
var _ref8$metadataSubtree, metadataSubtree, _yield$this$UserWalle5, libraryId, objectId, editRequest;
|
|
674
681
|
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
@@ -724,9 +731,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
724
731
|
*
|
|
725
732
|
* @return {Promise<string>} - Access setting
|
|
726
733
|
*/
|
|
734
|
+
)
|
|
727
735
|
}, {
|
|
728
736
|
key: "AccessLevel",
|
|
729
|
-
value: function () {
|
|
737
|
+
value: (function () {
|
|
730
738
|
var _AccessLevel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
|
|
731
739
|
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
732
740
|
while (1) switch (_context10.prev = _context10.next) {
|
|
@@ -763,9 +771,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
763
771
|
* @namedParams
|
|
764
772
|
* @param level
|
|
765
773
|
*/
|
|
774
|
+
)
|
|
766
775
|
}, {
|
|
767
776
|
key: "SetAccessLevel",
|
|
768
|
-
value: function () {
|
|
777
|
+
value: (function () {
|
|
769
778
|
var _SetAccessLevel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(_ref9) {
|
|
770
779
|
var level;
|
|
771
780
|
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
@@ -800,9 +809,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
800
809
|
*
|
|
801
810
|
* @return {Promise<string>} - Tenant ID
|
|
802
811
|
*/
|
|
812
|
+
)
|
|
803
813
|
}, {
|
|
804
814
|
key: "TenantId",
|
|
805
|
-
value: function () {
|
|
815
|
+
value: (function () {
|
|
806
816
|
var _TenantId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
|
|
807
817
|
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
808
818
|
while (1) switch (_context12.prev = _context12.next) {
|
|
@@ -839,9 +849,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
839
849
|
* @param {string} id - The tenant ID in hash format
|
|
840
850
|
* @param {string} address - The group address to use in the hash if id is not provided
|
|
841
851
|
*/
|
|
852
|
+
)
|
|
842
853
|
}, {
|
|
843
854
|
key: "SetTenantId",
|
|
844
|
-
value: function () {
|
|
855
|
+
value: (function () {
|
|
845
856
|
var _SetTenantId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(_ref10) {
|
|
846
857
|
var id, address, version;
|
|
847
858
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
@@ -909,9 +920,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
909
920
|
*
|
|
910
921
|
* @return {Promise<string>} - Tenant Contract ID
|
|
911
922
|
*/
|
|
923
|
+
)
|
|
912
924
|
}, {
|
|
913
925
|
key: "TenantContractId",
|
|
914
|
-
value: function () {
|
|
926
|
+
value: (function () {
|
|
915
927
|
var _TenantContractId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
|
|
916
928
|
var _yield$this$UserWalle6, objectId;
|
|
917
929
|
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
@@ -954,9 +966,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
954
966
|
* @param {string} tenantContractId - The tenant contract ID in hash format
|
|
955
967
|
* @param {string} address - The tenant address to use in the hash if id is not provided
|
|
956
968
|
*/
|
|
969
|
+
)
|
|
957
970
|
}, {
|
|
958
971
|
key: "SetTenantContractId",
|
|
959
|
-
value: function () {
|
|
972
|
+
value: (function () {
|
|
960
973
|
var _SetTenantContractId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(_ref11) {
|
|
961
974
|
var tenantContractId, _yield$this$UserWalle7, objectId, tenantInfo;
|
|
962
975
|
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
@@ -1001,9 +1014,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
1001
1014
|
*
|
|
1002
1015
|
* @return {Promise<string | undefined>} - URL of the user's profile image. Will be undefined if no profile image is set.
|
|
1003
1016
|
*/
|
|
1017
|
+
)
|
|
1004
1018
|
}, {
|
|
1005
1019
|
key: "UserProfileImage",
|
|
1006
|
-
value: function () {
|
|
1020
|
+
value: (function () {
|
|
1007
1021
|
var _UserProfileImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16() {
|
|
1008
1022
|
var _ref12,
|
|
1009
1023
|
address,
|
|
@@ -1070,9 +1084,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
1070
1084
|
* @namedParams
|
|
1071
1085
|
* @param {blob} image - The new profile image for the current user
|
|
1072
1086
|
*/
|
|
1087
|
+
)
|
|
1073
1088
|
}, {
|
|
1074
1089
|
key: "SetUserProfileImage",
|
|
1075
|
-
value: function () {
|
|
1090
|
+
value: (function () {
|
|
1076
1091
|
var _SetUserProfileImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(_ref13) {
|
|
1077
1092
|
var image, size, _yield$this$UserWalle9, libraryId, objectId, editRequest;
|
|
1078
1093
|
return _regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
@@ -1137,9 +1152,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
1137
1152
|
*
|
|
1138
1153
|
* @return {Promise<Object>} - User tags
|
|
1139
1154
|
*/
|
|
1155
|
+
)
|
|
1140
1156
|
}, {
|
|
1141
1157
|
key: "CollectedTags",
|
|
1142
|
-
value: function () {
|
|
1158
|
+
value: (function () {
|
|
1143
1159
|
var _CollectedTags = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18() {
|
|
1144
1160
|
return _regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
1145
1161
|
while (1) switch (_context18.prev = _context18.next) {
|
|
@@ -1168,6 +1184,7 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
1168
1184
|
}
|
|
1169
1185
|
return CollectedTags;
|
|
1170
1186
|
}() // Ensure recording tags never causes action to fail
|
|
1187
|
+
)
|
|
1171
1188
|
}, {
|
|
1172
1189
|
key: "RecordTags",
|
|
1173
1190
|
value: function () {
|
|
@@ -1416,6 +1433,5 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
1416
1433
|
});
|
|
1417
1434
|
}
|
|
1418
1435
|
}]);
|
|
1419
|
-
return UserProfileClient;
|
|
1420
1436
|
}();
|
|
1421
1437
|
module.exports = UserProfileClient;
|
package/dist/src/Utils.js
CHANGED
|
@@ -3,8 +3,8 @@ var _regeneratorRuntime = require("@babel/runtime/regenerator");
|
|
|
3
3
|
var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
|
|
4
4
|
var _defineProperty = require("@babel/runtime/helpers/defineProperty");
|
|
5
5
|
var _slicedToArray = require("@babel/runtime/helpers/slicedToArray");
|
|
6
|
-
function ownKeys(
|
|
7
|
-
function _objectSpread(
|
|
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
|
if (typeof globalThis.Buffer === "undefined") {
|
|
9
9
|
globalThis.Buffer = require("buffer/").Buffer;
|
|
10
10
|
}
|
|
@@ -281,7 +281,6 @@ var Utils = {
|
|
|
281
281
|
flags: flags // flags for part write token (tqp_)
|
|
282
282
|
};
|
|
283
283
|
},
|
|
284
|
-
|
|
285
284
|
/**
|
|
286
285
|
* Convert contract address to multiformat hash
|
|
287
286
|
*
|
|
@@ -1578,6 +1578,28 @@ var AbrProfileLiveDrm = {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
},
|
|
1580
1580
|
"playout_formats": {
|
|
1581
|
+
"dash-playready-cenc": {
|
|
1582
|
+
"drm": {
|
|
1583
|
+
"enc_scheme_name": "cenc",
|
|
1584
|
+
"type": "DrmPlayReady"
|
|
1585
|
+
},
|
|
1586
|
+
"protocol": {
|
|
1587
|
+
"min_buffer_length": 2,
|
|
1588
|
+
"type": "ProtoDash"
|
|
1589
|
+
}
|
|
1590
|
+
},
|
|
1591
|
+
"dash-widevine": {
|
|
1592
|
+
"drm": {
|
|
1593
|
+
"content_id": "",
|
|
1594
|
+
"enc_scheme_name": "cenc",
|
|
1595
|
+
"license_servers": [],
|
|
1596
|
+
"type": "DrmWidevine"
|
|
1597
|
+
},
|
|
1598
|
+
"protocol": {
|
|
1599
|
+
"min_buffer_length": 2,
|
|
1600
|
+
"type": "ProtoDash"
|
|
1601
|
+
}
|
|
1602
|
+
},
|
|
1581
1603
|
"hls-fairplay": {
|
|
1582
1604
|
"drm": {
|
|
1583
1605
|
"enc_scheme_name": "cbcs",
|
|
@@ -2,8 +2,8 @@ var _toConsumableArray = require("@babel/runtime/helpers/toConsumableArray");
|
|
|
2
2
|
var _regeneratorRuntime = require("@babel/runtime/regenerator");
|
|
3
3
|
var _defineProperty = require("@babel/runtime/helpers/defineProperty");
|
|
4
4
|
var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
|
|
5
|
-
function ownKeys(
|
|
6
|
-
function _objectSpread(
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
7
|
/**
|
|
8
8
|
* Methods for ABR video creation and management
|
|
9
9
|
*
|