@eluvio/elv-client-js 4.0.135 → 4.0.136
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 +522 -397
- package/dist/src/ElvWallet.js +7 -5
- package/dist/src/EthClient.js +8 -9
- package/dist/src/FrameClient.js +9 -10
- package/dist/src/HttpClient.js +5 -5
- 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 -20
- package/dist/src/Utils.js +2 -3
- package/dist/src/client/ABRPublishing.js +342 -196
- package/dist/src/client/AccessGroups.js +2 -2
- package/dist/src/client/ContentAccess.js +8 -12
- package/dist/src/client/ContentManagement.js +99 -83
- package/dist/src/client/Contracts.js +2 -2
- package/dist/src/client/Files.js +2 -2
- package/dist/src/client/LiveConf.js +43 -26
- package/dist/src/client/LiveStream.js +65 -63
- package/dist/src/client/NFT.js +2 -2
- package/dist/src/client/Shares.js +47 -24
- 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 +65 -50
- package/package.json +2 -2
- package/src/ElvClient.js +67 -3
- package/src/FrameClient.js +2 -1
- package/src/client/ABRPublishing.js +215 -83
- package/src/client/ContentManagement.js +7 -6
- package/src/client/LiveConf.js +13 -9
- package/src/client/LiveStream.js +8 -3
- package/utilities/FrontEndSimpleIngest.js +198 -0
- package/utilities/ProductionMasterCreate.js +9 -2
- package/utilities/SampleIngest.js +225 -0
- package/utilities/SampleIngestWithMaster.js +226 -0
- package/utilities/lib/concerns/ArgLibraryId.js +1 -1
- package/utilities/lib/concerns/ArgTenant.js +23 -0
- package/utilities/lib/concerns/ContentType.js +1 -1
- package/utilities/lib/concerns/Finalize.js +12 -7
- package/utilities/lib/concerns/LRO.js +3 -3
- package/utilities/lib/concerns/Tenant.js +47 -0
|
@@ -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
|
var _yield$this$UserWalle6, objectId;
|
|
808
818
|
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
@@ -845,9 +855,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
845
855
|
* @param {string} id - The tenant ID in hash format
|
|
846
856
|
* @param {string} address - The group address to use in the hash if id is not provided
|
|
847
857
|
*/
|
|
858
|
+
)
|
|
848
859
|
}, {
|
|
849
860
|
key: "SetTenantId",
|
|
850
|
-
value: function () {
|
|
861
|
+
value: (function () {
|
|
851
862
|
var _SetTenantId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(_ref10) {
|
|
852
863
|
var id, address, _yield$this$UserWalle7, objectId, tenantInfo;
|
|
853
864
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
@@ -902,9 +913,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
902
913
|
*
|
|
903
914
|
* @return {Promise<string>} - Tenant Contract ID
|
|
904
915
|
*/
|
|
916
|
+
)
|
|
905
917
|
}, {
|
|
906
918
|
key: "TenantContractId",
|
|
907
|
-
value: function () {
|
|
919
|
+
value: (function () {
|
|
908
920
|
var _TenantContractId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
|
|
909
921
|
var _yield$this$UserWalle8, objectId;
|
|
910
922
|
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
@@ -947,9 +959,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
947
959
|
* @param {string} tenantContractId - The tenant contract ID in hash format
|
|
948
960
|
* @param {string} address - The tenant address to use in the hash if id is not provided
|
|
949
961
|
*/
|
|
962
|
+
)
|
|
950
963
|
}, {
|
|
951
964
|
key: "SetTenantContractId",
|
|
952
|
-
value: function () {
|
|
965
|
+
value: (function () {
|
|
953
966
|
var _SetTenantContractId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(_ref11) {
|
|
954
967
|
var tenantContractId, _yield$this$UserWalle9, objectId, tenantInfo;
|
|
955
968
|
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
@@ -980,7 +993,7 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
980
993
|
return _SetTenantContractId.apply(this, arguments);
|
|
981
994
|
}
|
|
982
995
|
return SetTenantContractId;
|
|
983
|
-
}()
|
|
996
|
+
}())
|
|
984
997
|
}, {
|
|
985
998
|
key: "ResetTenantId",
|
|
986
999
|
value: function () {
|
|
@@ -1032,7 +1045,7 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
1032
1045
|
*/
|
|
1033
1046
|
}, {
|
|
1034
1047
|
key: "UserProfileImage",
|
|
1035
|
-
value: function () {
|
|
1048
|
+
value: (function () {
|
|
1036
1049
|
var _UserProfileImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17() {
|
|
1037
1050
|
var _ref12,
|
|
1038
1051
|
address,
|
|
@@ -1099,9 +1112,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
1099
1112
|
* @namedParams
|
|
1100
1113
|
* @param {blob} image - The new profile image for the current user
|
|
1101
1114
|
*/
|
|
1115
|
+
)
|
|
1102
1116
|
}, {
|
|
1103
1117
|
key: "SetUserProfileImage",
|
|
1104
|
-
value: function () {
|
|
1118
|
+
value: (function () {
|
|
1105
1119
|
var _SetUserProfileImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(_ref13) {
|
|
1106
1120
|
var image, size, _yield$this$UserWalle12, libraryId, objectId, editRequest;
|
|
1107
1121
|
return _regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
@@ -1166,9 +1180,10 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
1166
1180
|
*
|
|
1167
1181
|
* @return {Promise<Object>} - User tags
|
|
1168
1182
|
*/
|
|
1183
|
+
)
|
|
1169
1184
|
}, {
|
|
1170
1185
|
key: "CollectedTags",
|
|
1171
|
-
value: function () {
|
|
1186
|
+
value: (function () {
|
|
1172
1187
|
var _CollectedTags = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19() {
|
|
1173
1188
|
return _regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
1174
1189
|
while (1) switch (_context19.prev = _context19.next) {
|
|
@@ -1197,6 +1212,7 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
1197
1212
|
}
|
|
1198
1213
|
return CollectedTags;
|
|
1199
1214
|
}() // Ensure recording tags never causes action to fail
|
|
1215
|
+
)
|
|
1200
1216
|
}, {
|
|
1201
1217
|
key: "RecordTags",
|
|
1202
1218
|
value: function () {
|
|
@@ -1445,6 +1461,5 @@ var UserProfileClient = /*#__PURE__*/function () {
|
|
|
1445
1461
|
});
|
|
1446
1462
|
}
|
|
1447
1463
|
}]);
|
|
1448
|
-
return UserProfileClient;
|
|
1449
1464
|
}();
|
|
1450
1465
|
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
|
*
|