Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

upload-api-client-internal

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

upload-api-client-internal - npm Package Compare versions

Comparing version 1.38.0 to 1.39.0

dist/models/TransformationDefinitionId.d.ts

1

dist/index.d.ts

@@ -74,2 +74,3 @@ export { ApiError } from "./core/ApiError";

export type { TransformationDefinition } from "./models/TransformationDefinition";
export type { TransformationDefinitionId } from "./models/TransformationDefinitionId";
export type { TransformationDefinitionStep } from "./models/TransformationDefinitionStep";

@@ -76,0 +77,0 @@ export type { TransformationDescription } from "./models/TransformationDescription";

2

dist/main.js

@@ -1,1 +0,1 @@

module.exports=(()=>{"use strict";var e={41:(e,t,r)=>{function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,s(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)})(e)}function u(e,t,r){return(u=c()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&i(o,r.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.r(t),r.d(t,{AccountsService:()=>_,ApiError:()=>l,ApiKeyType:()=>f,FilesService:()=>D,NpmService:()=>j,OpenAPI:()=>v,TemplateIcon:()=>p,UserRoleType:()=>d,UsersService:()=>N});var f,p,d,l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(a,e);var t,r,n=(t=a,r=c(),function(){var e,n=s(t);if(r){var a=s(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return o(this,e)});function a(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(r=n.call(this,t)).url=e.url,r.status=e.status,r.statusText=e.statusText,r.body=e.body,r}return a}(a(Error)),v={BASE:"/",VERSION:"0.1.502",WITH_CREDENTIALS:!1,TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0};!function(e){e.PUBLIC="public",e.SECRET="secret"}(f||(f={})),function(e){e.VIDEO_WATERMARK="VideoWatermark",e.VIDEO_TRIM="VideoTrim",e.VIDEO_TRANSCODE="VideoTranscode",e.VIDEO_THUMBNAILS="VideoThumbnails",e.VIDEO_RESIZE="VideoResize",e.VIDEO_QUALITY="VideoQuality",e.ANTI_VIRUS="AntiVirus",e.ARCHIVE_COMPRESS="ArchiveCompress",e.ARCHIVE_EXTRACT="ArchiveExtract",e.CUSTOM_CODE="CustomCode",e.IMAGE_WATERMARK="ImageWatermark",e.IMAGE_RESIZE="ImageResize",e.IMAGE_CROP="ImageCrop",e.IMAGE_CONVERT="ImageConvert",e.IMAGE_QUALITY="ImageQuality"}(p||(p={})),function(e){e.ACCOUNT_ADMIN="AccountAdmin",e.ACCOUNT_OBSERVER="AccountObserver",e.SYSTEM_ADMIN="SystemAdmin",e.SYSTEM_OBSERVER="SystemObserver"}(d||(d={}));var h=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function u(e){try{i(n.next(e))}catch(e){a(e)}}function c(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,c)}i((n=n.apply(e,t||[])).next())}))};function y(e){return null!=e}function m(e){return"string"==typeof e}function b(e){return m(e)&&""!==e}function g(e){return e instanceof Blob}function w(e){var t,r,n=e.path.replace(/[:]/g,"_"),o="".concat(v.BASE).concat(n);return e.query?"".concat(o).concat((t=e.query,r=[],Object.keys(t).forEach((function(e){var n=t[e];y(n)&&(Array.isArray(n)?n.forEach((function(t){r.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(String(t))))})):r.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(String(n)))))})),r.length>0?"?".concat(r.join("&")):"")):o}function R(e,t){return h(this,void 0,void 0,regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("function"!=typeof t){r.next=2;break}return r.abrupt("return",t(e));case 2:return r.abrupt("return",t);case 3:case"end":return r.stop()}}),r)})))}function E(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,o,a,u,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,R(e,v.TOKEN);case 2:return r=t.sent,t.next=5,R(e,v.USERNAME);case 5:return n=t.sent,t.next=8,R(e,v.PASSWORD);case 8:return o=t.sent,t.next=11,R(e,v.HEADERS);case 11:return a=t.sent,u=new Headers(Object.assign(Object.assign({Accept:"application/json"},a),e.headers)),b(r)&&u.append("Authorization","Bearer ".concat(r)),b(n)&&b(o)&&(c=btoa("".concat(n,":").concat(o)),u.append("Authorization","Basic ".concat(c))),e.body&&(g(e.body)?u.append("Content-Type",e.body.type||"application/octet-stream"):m(e.body)?u.append("Content-Type","text/plain"):u.append("Content-Type","application/json")),t.abrupt("return",u);case 17:case"end":return t.stop()}}),t)})))}function x(e){return e.formData?(t=e.formData,r=new FormData,Object.keys(t).forEach((function(e){var n=t[e];y(n)&&r.append(e,n)})),r):e.body?m(e.body)||g(e.body)?e.body:JSON.stringify(e.body):void 0;var t,r}function U(e,t){return h(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=e.method,r.next=3,E(e);case 3:return r.t1=r.sent,r.t2=x(e),n={method:r.t0,headers:r.t1,body:r.t2},v.WITH_CREDENTIALS&&(n.credentials="include"),r.next=9,fetch(t,n);case 9:return r.abrupt("return",r.sent);case 10:case"end":return r.stop()}}),r)})))}function k(e,t){if(t){var r=e.headers.get(t);if(m(r))return r}return null}function T(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(r=e.headers.get("Content-Type"))){t.next=13;break}if(!r.toLowerCase().startsWith("application/json")){t.next=10;break}return t.next=7,e.json();case 7:return t.abrupt("return",t.sent);case 10:return t.next=12,e.text();case 12:return t.abrupt("return",t.sent);case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(0),console.error(t.t0);case 18:return t.abrupt("return",null);case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))}function S(e,t){var r=Object.assign({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},e.errors)[t.status];if(r)throw new l(t,r);if(!t.ok)throw new l(t,"Generic Error")}function O(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,o,a,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=w(e),t.next=3,U(e,r);case 3:return n=t.sent,t.next=6,T(n);case 6:return o=t.sent,a=k(n,e.responseHeader),u={url:r,ok:n.ok,status:n.status,statusText:n.statusText,body:a||o},S(e,u),t.abrupt("return",u);case 11:case"end":return t.stop()}}),t)})))}function A(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var I=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function u(e){try{i(n.next(e))}catch(e){a(e)}}function c(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,c)}i((n=n.apply(e,t||[])).next())}))},_=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"addAllowedOrigin",value:function(e,t){return I(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"POST",path:"/v1/accounts/".concat(e,"/security/allowed_origins"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"removeAllowedOrigin",value:function(e,t){return I(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"DELETE",path:"/v1/accounts/".concat(e,"/security/allowed_origins"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"createApiKey",value:function(e,t,r){return I(this,void 0,void 0,regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,O({method:"POST",path:"/v1/accounts/".concat(e,"/security/api_keys/").concat(t),body:r,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=n.sent,n.abrupt("return",o.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"deleteApiKey",value:function(e,t){return I(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"DELETE",path:"/v1/accounts/".concat(e,"/security/api_keys/").concat(t),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"deleteApiKeyBatch",value:function(e,t){return I(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"DELETE",path:"/v1/accounts/".concat(e,"/security/api_keys"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"initializeAccount",value:function(e){return I(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"PUT",path:"/v1/accounts/primary",body:e,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"installCustomPlugin",value:function(e,t,r){return I(this,void 0,void 0,regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,O({method:"PUT",path:"/v1/accounts/".concat(e,"/plugins/").concat(t,"/").concat(r),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=n.sent,n.abrupt("return",o.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"uninstallCustomPlugin",value:function(e,t,r){return I(this,void 0,void 0,regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,O({method:"DELETE",path:"/v1/accounts/".concat(e,"/plugins/").concat(t,"/").concat(r),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=n.sent,n.abrupt("return",o.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"setUploadDownloadAuthSettings",value:function(e,t){return I(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"PUT",path:"/v1/accounts/".concat(e,"/security/upload_download_auth_settings"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}}],null&&A(t.prototype,null),r&&A(t,r),e}();function C(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var P=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function u(e){try{i(n.next(e))}catch(e){a(e)}}function c(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,c)}i((n=n.apply(e,t||[])).next())}))},D=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"beginUpload",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"POST",path:"/v1/files",body:e,errors:{401:"Unauthenticated."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"deleteFileBatch",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"DELETE",path:"/v1/files",body:e,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getFiles",value:function(e,t,r,n,o,a,u){return P(this,void 0,void 0,regeneratorRuntime.mark((function c(){var i;return regeneratorRuntime.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,O({method:"GET",path:"/v1/files",query:{accountId:e,pageSize:t,mimeType:r,fileTag:n,customUserId:o,backwardToken:a,forwardToken:u},errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return i=c.sent,c.abrupt("return",i.body);case 4:case"end":return c.stop()}}),c)})))}},{key:"completeUploadPart",value:function(e,t,r){return P(this,void 0,void 0,regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,O({method:"PUT",path:"/v1/files/".concat(e,"/upload_parts/").concat(t),body:r,errors:{401:"Unauthenticated.",403:"Unauthorized.",404:"File or upload part not found."}});case 2:return o=n.sent,n.abrupt("return",o.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"getUploadPart",value:function(e,t){return P(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"GET",path:"/v1/files/".concat(e,"/upload_parts/").concat(t),errors:{401:"Unauthenticated.",403:"Unauthorized.",404:"File or upload part not found."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"deleteFile",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"DELETE",path:"/v1/files/".concat(e),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getFile",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/files/".concat(e,"/details"),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getStatistics",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/files/statistics",query:{accountId:e},errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getUploadParts",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/files/".concat(e,"/upload_parts"),errors:{401:"Unauthenticated.",403:"Unauthorized.",404:"File not found."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}}],null&&C(t.prototype,null),r&&C(t,r),e}();function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var j=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"getPackageVersions",value:function(e){return t=this,r=void 0,n=void 0,o=regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/npm/packages/".concat(e,"/versions"),errors:{401:"Unauthenticated.",403:"Unauthorized.",404:"Not found."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})),new(n||(n=Promise))((function(e,a){function u(e){try{i(o.next(e))}catch(e){a(e)}}function c(e){try{i(o.throw(e))}catch(e){a(e)}}function i(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(u,c)}i((o=o.apply(t,r||[])).next())}));var t,r,n,o}}],null&&z(t.prototype,null),r&&z(t,r),e}();function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var V=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function u(e){try{i(n.next(e))}catch(e){a(e)}}function c(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,c)}i((n=n.apply(e,t||[])).next())}))},N=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"context",value:function(){return V(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O({method:"GET",path:"/v1/users/current/context",errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return t=e.sent,e.abrupt("return",t.body);case 4:case"end":return e.stop()}}),e)})))}},{key:"deleteCurrentUser",value:function(){return V(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O({method:"DELETE",path:"/v1/users/current",errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return t=e.sent,e.abrupt("return",t.body);case 4:case"end":return e.stop()}}),e)})))}},{key:"updateBasicInformation",value:function(e){return V(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"PUT",path:"/v1/users/current/basic_information",body:e,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}}],null&&M(t.prototype,null),r&&M(t,r),e}()}},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(41)})();
module.exports=(()=>{"use strict";var e={41:(e,t,r)=>{function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){var t="function"==typeof Map?new Map:void 0;return(a=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,s(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)})(e)}function u(e,t,r){return(u=c()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&i(o,r.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.r(t),r.d(t,{AccountsService:()=>_,ApiError:()=>l,ApiKeyType:()=>f,FilesService:()=>D,NpmService:()=>j,OpenAPI:()=>v,TemplateIcon:()=>p,UserRoleType:()=>d,UsersService:()=>N});var f,p,d,l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(a,e);var t,r,n=(t=a,r=c(),function(){var e,n=s(t);if(r){var a=s(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return o(this,e)});function a(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(r=n.call(this,t)).url=e.url,r.status=e.status,r.statusText=e.statusText,r.body=e.body,r}return a}(a(Error)),v={BASE:"/",VERSION:"0.1.517",WITH_CREDENTIALS:!1,TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0};!function(e){e.PUBLIC="public",e.SECRET="secret"}(f||(f={})),function(e){e.VIDEO_WATERMARK="VideoWatermark",e.VIDEO_TRIM="VideoTrim",e.VIDEO_TRANSCODE="VideoTranscode",e.VIDEO_THUMBNAILS="VideoThumbnails",e.VIDEO_RESIZE="VideoResize",e.VIDEO_QUALITY="VideoQuality",e.ANTI_VIRUS="AntiVirus",e.ARCHIVE_COMPRESS="ArchiveCompress",e.ARCHIVE_EXTRACT="ArchiveExtract",e.CUSTOM_CODE="CustomCode",e.IMAGE_WATERMARK="ImageWatermark",e.IMAGE_RESIZE="ImageResize",e.IMAGE_CROP="ImageCrop",e.IMAGE_CONVERT="ImageConvert",e.IMAGE_QUALITY="ImageQuality"}(p||(p={})),function(e){e.ACCOUNT_ADMIN="AccountAdmin",e.ACCOUNT_OBSERVER="AccountObserver",e.SYSTEM_ADMIN="SystemAdmin",e.SYSTEM_OBSERVER="SystemObserver"}(d||(d={}));var h=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function u(e){try{i(n.next(e))}catch(e){a(e)}}function c(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,c)}i((n=n.apply(e,t||[])).next())}))};function y(e){return null!=e}function m(e){return"string"==typeof e}function b(e){return m(e)&&""!==e}function g(e){return e instanceof Blob}function w(e){var t,r,n=e.path.replace(/[:]/g,"_"),o="".concat(v.BASE).concat(n);return e.query?"".concat(o).concat((t=e.query,r=[],Object.keys(t).forEach((function(e){var n=t[e];y(n)&&(Array.isArray(n)?n.forEach((function(t){r.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(String(t))))})):r.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(String(n)))))})),r.length>0?"?".concat(r.join("&")):"")):o}function R(e,t){return h(this,void 0,void 0,regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("function"!=typeof t){r.next=2;break}return r.abrupt("return",t(e));case 2:return r.abrupt("return",t);case 3:case"end":return r.stop()}}),r)})))}function E(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,o,a,u,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,R(e,v.TOKEN);case 2:return r=t.sent,t.next=5,R(e,v.USERNAME);case 5:return n=t.sent,t.next=8,R(e,v.PASSWORD);case 8:return o=t.sent,t.next=11,R(e,v.HEADERS);case 11:return a=t.sent,u=new Headers(Object.assign(Object.assign({Accept:"application/json"},a),e.headers)),b(r)&&u.append("Authorization","Bearer ".concat(r)),b(n)&&b(o)&&(c=btoa("".concat(n,":").concat(o)),u.append("Authorization","Basic ".concat(c))),e.body&&(g(e.body)?u.append("Content-Type",e.body.type||"application/octet-stream"):m(e.body)?u.append("Content-Type","text/plain"):u.append("Content-Type","application/json")),t.abrupt("return",u);case 17:case"end":return t.stop()}}),t)})))}function x(e){return e.formData?(t=e.formData,r=new FormData,Object.keys(t).forEach((function(e){var n=t[e];y(n)&&r.append(e,n)})),r):e.body?m(e.body)||g(e.body)?e.body:JSON.stringify(e.body):void 0;var t,r}function U(e,t){return h(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=e.method,r.next=3,E(e);case 3:return r.t1=r.sent,r.t2=x(e),n={method:r.t0,headers:r.t1,body:r.t2},v.WITH_CREDENTIALS&&(n.credentials="include"),r.next=9,fetch(t,n);case 9:return r.abrupt("return",r.sent);case 10:case"end":return r.stop()}}),r)})))}function k(e,t){if(t){var r=e.headers.get(t);if(m(r))return r}return null}function T(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(r=e.headers.get("Content-Type"))){t.next=13;break}if(!r.toLowerCase().startsWith("application/json")){t.next=10;break}return t.next=7,e.json();case 7:return t.abrupt("return",t.sent);case 10:return t.next=12,e.text();case 12:return t.abrupt("return",t.sent);case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(0),console.error(t.t0);case 18:return t.abrupt("return",null);case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))}function S(e,t){var r=Object.assign({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},e.errors)[t.status];if(r)throw new l(t,r);if(!t.ok)throw new l(t,"Generic Error")}function O(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,o,a,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=w(e),t.next=3,U(e,r);case 3:return n=t.sent,t.next=6,T(n);case 6:return o=t.sent,a=k(n,e.responseHeader),u={url:r,ok:n.ok,status:n.status,statusText:n.statusText,body:a||o},S(e,u),t.abrupt("return",u);case 11:case"end":return t.stop()}}),t)})))}function A(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var I=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function u(e){try{i(n.next(e))}catch(e){a(e)}}function c(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,c)}i((n=n.apply(e,t||[])).next())}))},_=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"addAllowedOrigin",value:function(e,t){return I(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"POST",path:"/v1/accounts/".concat(e,"/security/allowed_origins"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"removeAllowedOrigin",value:function(e,t){return I(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"DELETE",path:"/v1/accounts/".concat(e,"/security/allowed_origins"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"createApiKey",value:function(e,t,r){return I(this,void 0,void 0,regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,O({method:"POST",path:"/v1/accounts/".concat(e,"/security/api_keys/").concat(t),body:r,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=n.sent,n.abrupt("return",o.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"deleteApiKey",value:function(e,t){return I(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"DELETE",path:"/v1/accounts/".concat(e,"/security/api_keys/").concat(t),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"deleteApiKeyBatch",value:function(e,t){return I(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"DELETE",path:"/v1/accounts/".concat(e,"/security/api_keys"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"initializeAccount",value:function(e){return I(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"PUT",path:"/v1/accounts/primary",body:e,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"installCustomPlugin",value:function(e,t,r){return I(this,void 0,void 0,regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,O({method:"PUT",path:"/v1/accounts/".concat(e,"/plugins/").concat(t,"/").concat(r),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=n.sent,n.abrupt("return",o.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"uninstallCustomPlugin",value:function(e,t,r){return I(this,void 0,void 0,regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,O({method:"DELETE",path:"/v1/accounts/".concat(e,"/plugins/").concat(t,"/").concat(r),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=n.sent,n.abrupt("return",o.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"setUploadDownloadAuthSettings",value:function(e,t){return I(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"PUT",path:"/v1/accounts/".concat(e,"/security/upload_download_auth_settings"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}}],null&&A(t.prototype,null),r&&A(t,r),e}();function C(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var P=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function u(e){try{i(n.next(e))}catch(e){a(e)}}function c(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,c)}i((n=n.apply(e,t||[])).next())}))},D=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"beginUpload",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"POST",path:"/v1/files",body:e,errors:{401:"Unauthenticated."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"deleteFileBatch",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"DELETE",path:"/v1/files",body:e,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getFiles",value:function(e,t,r,n,o,a,u){return P(this,void 0,void 0,regeneratorRuntime.mark((function c(){var i;return regeneratorRuntime.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,O({method:"GET",path:"/v1/files",query:{accountId:e,pageSize:t,mimeType:r,fileTag:n,customUserId:o,backwardToken:a,forwardToken:u},errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return i=c.sent,c.abrupt("return",i.body);case 4:case"end":return c.stop()}}),c)})))}},{key:"completeUploadPart",value:function(e,t,r){return P(this,void 0,void 0,regeneratorRuntime.mark((function n(){var o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,O({method:"PUT",path:"/v1/files/".concat(e,"/upload_parts/").concat(t),body:r,errors:{401:"Unauthenticated.",403:"Unauthorized.",404:"File or upload part not found."}});case 2:return o=n.sent,n.abrupt("return",o.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"getUploadPart",value:function(e,t){return P(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"GET",path:"/v1/files/".concat(e,"/upload_parts/").concat(t),errors:{401:"Unauthenticated.",403:"Unauthorized.",404:"File or upload part not found."}});case 2:return n=r.sent,r.abrupt("return",n.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"deleteFile",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"DELETE",path:"/v1/files/".concat(e),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getFile",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/files/".concat(e,"/details"),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getStatistics",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/files/statistics",query:{accountId:e},errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getUploadParts",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/files/".concat(e,"/upload_parts"),errors:{401:"Unauthenticated.",403:"Unauthorized.",404:"File not found."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}}],null&&C(t.prototype,null),r&&C(t,r),e}();function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var j=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"getPackageVersions",value:function(e){return t=this,r=void 0,n=void 0,o=regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/npm/packages/".concat(e,"/versions"),errors:{401:"Unauthenticated.",403:"Unauthorized.",404:"Not found."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})),new(n||(n=Promise))((function(e,a){function u(e){try{i(o.next(e))}catch(e){a(e)}}function c(e){try{i(o.throw(e))}catch(e){a(e)}}function i(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(u,c)}i((o=o.apply(t,r||[])).next())}));var t,r,n,o}}],null&&z(t.prototype,null),r&&z(t,r),e}();function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var V=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function u(e){try{i(n.next(e))}catch(e){a(e)}}function c(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,c)}i((n=n.apply(e,t||[])).next())}))},N=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"context",value:function(){return V(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O({method:"GET",path:"/v1/users/current/context",errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return t=e.sent,e.abrupt("return",t.body);case 4:case"end":return e.stop()}}),e)})))}},{key:"deleteCurrentUser",value:function(){return V(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O({method:"DELETE",path:"/v1/users/current",errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return t=e.sent,e.abrupt("return",t.body);case 4:case"end":return e.stop()}}),e)})))}},{key:"updateBasicInformation",value:function(e){return V(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"PUT",path:"/v1/users/current/basic_information",body:e,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=t.sent,t.abrupt("return",r.body);case 4:case"end":return t.stop()}}),t)})))}}],null&&M(t.prototype,null),r&&M(t,r),e}()}},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(41)})();

@@ -0,4 +1,8 @@

import type { EpochMillis } from "./EpochMillis";
import type { FileSize } from "./FileSize";
export declare type StorageStatisticsSegment = {
firstFileCreated: EpochMillis | null;
lastFileCreated: EpochMillis | null;
totalFileCount: number;
totalFileSize: number;
totalFileSize: FileSize;
};
import type { CacheKey } from "./CacheKey";
import type { NonEmptyArray_TransformationDefinitionStepUnboxed_ } from "./NonEmptyArray_TransformationDefinitionStepUnboxed_";
import type { TransformationDefinitionId } from "./TransformationDefinitionId";
import type { TransformationDescription } from "./TransformationDescription";

@@ -9,2 +10,3 @@ import type { TransformationScope } from "./TransformationScope";

description: TransformationDescription;
id: TransformationDefinitionId;
scope: TransformationScope;

@@ -11,0 +13,0 @@ slug: TransformationUrlSlug;

@@ -6,5 +6,7 @@ import type { AccountId } from "./AccountId";

import type { ApiKeyDetails_SecretApiKeyUnboxed_ } from "./ApiKeyDetails_SecretApiKeyUnboxed_";
import type { EpochMillis } from "./EpochMillis";
import type { Plugin } from "./Plugin";
import type { SetDownloadAuthSettings } from "./SetDownloadAuthSettings";
import type { TransformationDefinition } from "./TransformationDefinition";
import type { TransformationDefinitionId } from "./TransformationDefinitionId";
import type { UserRoleType } from "./UserRoleType";

@@ -19,2 +21,6 @@ /**

};
caches: Record<string, {
firstUsedBy: TransformationDefinitionId;
created: EpochMillis;
}>;
plugins: {

@@ -21,0 +27,0 @@ official: Array<Plugin>;

{
"name": "upload-api-client-internal",
"version": "1.38.0",
"version": "1.39.0",
"description": "Upload API Client (Internal)",

@@ -5,0 +5,0 @@ "author": "Upload <hello@upload.io> (https://upload.io)",

@@ -21,3 +21,3 @@ /* istanbul ignore file */

BASE: "/",
VERSION: "0.1.502",
VERSION: "0.1.517",
WITH_CREDENTIALS: false,

@@ -24,0 +24,0 @@ TOKEN: undefined,

@@ -78,2 +78,3 @@ /* istanbul ignore file */

export type { TransformationDefinition } from "./models/TransformationDefinition";
export type { TransformationDefinitionId } from "./models/TransformationDefinitionId";
export type { TransformationDefinitionStep } from "./models/TransformationDefinitionStep";

@@ -80,0 +81,0 @@ export type { TransformationDescription } from "./models/TransformationDescription";

@@ -5,5 +5,10 @@ /* istanbul ignore file */

import type { EpochMillis } from "./EpochMillis";
import type { FileSize } from "./FileSize";
export type StorageStatisticsSegment = {
firstFileCreated: EpochMillis | null;
lastFileCreated: EpochMillis | null;
totalFileCount: number;
totalFileSize: number;
totalFileSize: FileSize;
};

@@ -7,2 +7,3 @@ /* istanbul ignore file */

import type { NonEmptyArray_TransformationDefinitionStepUnboxed_ } from "./NonEmptyArray_TransformationDefinitionStepUnboxed_";
import type { TransformationDefinitionId } from "./TransformationDefinitionId";
import type { TransformationDescription } from "./TransformationDescription";

@@ -15,2 +16,3 @@ import type { TransformationScope } from "./TransformationScope";

description: TransformationDescription;
id: TransformationDefinitionId;
scope: TransformationScope;

@@ -17,0 +19,0 @@ slug: TransformationUrlSlug;

@@ -10,5 +10,7 @@ /* istanbul ignore file */

import type { ApiKeyDetails_SecretApiKeyUnboxed_ } from "./ApiKeyDetails_SecretApiKeyUnboxed_";
import type { EpochMillis } from "./EpochMillis";
import type { Plugin } from "./Plugin";
import type { SetDownloadAuthSettings } from "./SetDownloadAuthSettings";
import type { TransformationDefinition } from "./TransformationDefinition";
import type { TransformationDefinitionId } from "./TransformationDefinitionId";
import type { UserRoleType } from "./UserRoleType";

@@ -24,2 +26,9 @@

};
caches: Record<
string,
{
firstUsedBy: TransformationDefinitionId;
created: EpochMillis;
}
>;
plugins: {

@@ -26,0 +35,0 @@ official: Array<Plugin>;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc