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.51.0 to 1.52.0

dist/models/JsonObject.d.ts

6

dist/index.d.ts

@@ -45,2 +45,4 @@ export { ApiError } from "./core/ApiError";

export type { InitializeAccountRequest } from "./models/InitializeAccountRequest";
export type { JsonObject } from "./models/JsonObject";
export type { JsonPrimitive } from "./models/JsonPrimitive";
export type { JsonSchema } from "./models/JsonSchema";

@@ -75,3 +77,2 @@ export type { JsonUISchema } from "./models/JsonUISchema";

export type { SemanticVersion } from "./models/SemanticVersion";
export type { Serializable } from "./models/Serializable";
export type { SetDownloadAuthSettings } from "./models/SetDownloadAuthSettings";

@@ -87,4 +88,6 @@ export type { SizeInBytes } from "./models/SizeInBytes";

export { TemplateIcon } from "./models/TemplateIcon";
export type { TemplateKey } from "./models/TemplateKey";
export type { TemplateName } from "./models/TemplateName";
export type { TemplatePrototypeVariable } from "./models/TemplatePrototypeVariable";
export type { TemplateRef } from "./models/TemplateRef";
export type { TemplateSummary } from "./models/TemplateSummary";

@@ -101,2 +104,3 @@ export type { TransformationDefinition } from "./models/TransformationDefinition";

export type { TransformationTagScope } from "./models/TransformationTagScope";
export type { TransformationTemplateConfig } from "./models/TransformationTemplateConfig";
export type { TransformationUrlSlug } from "./models/TransformationUrlSlug";

@@ -103,0 +107,0 @@ export type { UpdateCacheId } from "./models/UpdateCacheId";

2

dist/main.js

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

module.exports=(()=>{"use strict";var e={118:(e,t,n)=>{function r(e){return(r="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"!==r(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||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;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,r)}function r(){return u(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.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)}n.r(t),n.d(t,{AccountsService:()=>C,AllowedOriginsService:()=>z,ApiError:()=>l,ApiKeyType:()=>f,ApiKeysService:()=>M,FilesService:()=>G,NpmService:()=>B,OpenAPI:()=>v,PluginsService:()=>K,StatisticsService:()=>Q,TemplateIcon:()=>p,TransformationsService:()=>J,UserRoleType:()=>d,UsersService:()=>ee});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,n,r=(t=a,n=c(),function(){var e,r=s(t);if(n){var a=s(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return o(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=r.call(this,t)).url=e.url,n.status=e.status,n.statusText=e.statusText,n.body=e.body,n}return a}(a(Error)),v={BASE:"/",VERSION:"0.1.612",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,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.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 w(e){return e instanceof Blob}function g(e){var t,n,r=e.path.replace(/[:]/g,"_"),o="".concat(v.BASE).concat(r);return e.query?"".concat(o).concat((t=e.query,n=[],Object.keys(t).forEach((function(e){var r=t[e];y(r)&&(Array.isArray(r)?r.forEach((function(t){n.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(String(t))))})):n.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(String(r)))))})),n.length>0?"?".concat(n.join("&")):"")):o}function x(e,t){return h(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("function"!=typeof t){n.next=2;break}return n.abrupt("return",t(e));case 2:return n.abrupt("return",t);case 3:case"end":return n.stop()}}),n)})))}function R(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n,r,o,a,u,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,x(e,v.TOKEN);case 2:return n=t.sent,t.next=5,x(e,v.USERNAME);case 5:return r=t.sent,t.next=8,x(e,v.PASSWORD);case 8:return o=t.sent,t.next=11,x(e,v.HEADERS);case 11:return a=t.sent,u=new Headers(Object.assign(Object.assign({Accept:"application/json"},a),e.headers)),b(n)&&u.append("Authorization","Bearer ".concat(n)),b(r)&&b(o)&&(c=btoa("".concat(r,":").concat(o)),u.append("Authorization","Basic ".concat(c))),e.body&&(w(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 E(e){return e.formData?(t=e.formData,n=new FormData,Object.keys(t).forEach((function(e){var r=t[e];y(r)&&n.append(e,r)})),n):e.body?m(e.body)||w(e.body)?e.body:JSON.stringify(e.body):void 0;var t,n}function k(e,t){return h(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=e.method,n.next=3,R(e);case 3:return n.t1=n.sent,n.t2=E(e),r={method:n.t0,headers:n.t1,body:n.t2},v.WITH_CREDENTIALS&&(r.credentials="include"),n.next=9,fetch(t,r);case 9:return n.abrupt("return",n.sent);case 10:case"end":return n.stop()}}),n)})))}function T(e,t){if(t){var n=e.headers.get(t);if(m(n))return n}return null}function U(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(n=e.headers.get("Content-Type"))){t.next=13;break}if(!n.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 n=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(n)throw new l(t,n);if(!t.ok)throw new l(t,"Generic Error")}function O(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n,r,o,a,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=g(e),t.next=3,k(e,n);case 3:return r=t.sent,t.next=6,U(r);case 6:return o=t.sent,a=T(r,e.responseHeader),u={url:n,ok:r.ok,status:r.status,statusText:r.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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var P=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},C=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"initializeAccount",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"setUploadDownloadAuthSettings",value:function(e,t){return P(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/security/upload_download_auth_settings"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}}],null&&A(t.prototype,null),n&&A(t,n),e}();function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},z=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addAllowedOrigin",value:function(e,t){return _(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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/allowed_origins"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"removeAllowedOrigin",value:function(e,t){return _(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/security/allowed_origins"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}}],null&&I(t.prototype,null),n&&I(t,n),e}();function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var j=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},M=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"createApiKey",value:function(e,t,n){return j(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;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/api_keys/").concat(t),body:n,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"deleteApiKey",value:function(e,t){return j(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/security/api_keys/").concat(t),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"deleteApiKeyBatch",value:function(e,t){return j(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/security/api_keys"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}}],null&&D(t.prototype,null),n&&D(t,n),e}();function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var N=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},G=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"beginUpload",value:function(e){return N(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"deleteFileBatch",value:function(e){return N(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getFiles",value:function(e,t,n,r,o,a,u){return N(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:n,fileTag:r,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,n){return N(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"PUT",path:"/v1/files/".concat(e,"/upload_parts/").concat(t),body:n,errors:{401:"Unauthenticated.",403:"Unauthorized.",404:"File or upload part not found."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"getUploadPart",value:function(e,t){return N(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.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 r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"deleteFile",value:function(e){return N(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getFile",value:function(e){return N(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getUploadParts",value:function(e){return N(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}}],null&&V(t.prototype,null),n&&V(t,n),e}();function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var B=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getPackageVersions",value:function(e){return t=this,n=void 0,r=void 0,o=regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})),new(r||(r=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 n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(u,c)}i((o=o.apply(t,n||[])).next())}));var t,n,r,o}}],null&&L(t.prototype,null),n&&L(t,n),e}();function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var H=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},K=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"installCustomPlugin",value:function(e,t,n){return H(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;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,"/plugins/").concat(t,"/").concat(n),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"uninstallCustomPlugin",value:function(e,t,n){return H(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;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,"/plugins/").concat(t,"/").concat(n),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}}],null&&F(t.prototype,null),n&&F(t,n),e}();function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var q=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},Q=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getDownloadStatistics",value:function(e){return q(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/accounts/".concat(e,"/statistics/downloads"),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getStorageStatistics",value:function(e){return q(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/accounts/".concat(e,"/statistics/storage"),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getTransformationStatistics",value:function(e){return q(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/accounts/".concat(e,"/statistics/transformations"),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}}],null&&W(t.prototype,null),n&&W(t,n),e}();function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Z=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},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,n;return t=e,n=[{key:"createTransformation",value:function(e,t){return Z(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/transformations"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"deleteTransformationBatch",value:function(e,t){return Z(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/transformations"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"updateTransformation",value:function(e,t,n){return Z(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;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,"/transformations/").concat(t),body:n,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"deleteTransformation",value:function(e,t){return Z(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/transformations/").concat(t),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"switchToNewEmptyCache",value:function(e,t){return Z(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/transformations/").concat(t,"/cache"),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"switchToExistingCache",value:function(e,t,n){return Z(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;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,"/transformations/").concat(t,"/cache"),body:n,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}}],null&&Y(t.prototype,null),n&&Y(t,n),e}();function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},ee=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"context",value:function(){return $(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 $(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 $(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}}],null&&X(t.prototype,null),n&&X(t,n),e}()}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(118)})();
module.exports=(()=>{"use strict";var e={118:(e,t,n)=>{function r(e){return(r="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"!==r(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||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;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,r)}function r(){return u(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,e)})(e)}function u(e,t,n){return(u=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.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)}n.r(t),n.d(t,{AccountsService:()=>C,AllowedOriginsService:()=>z,ApiError:()=>l,ApiKeyType:()=>f,ApiKeysService:()=>M,FilesService:()=>G,NpmService:()=>B,OpenAPI:()=>v,PluginsService:()=>K,StatisticsService:()=>Q,TemplateIcon:()=>p,TransformationsService:()=>J,UserRoleType:()=>d,UsersService:()=>ee});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,n,r=(t=a,n=c(),function(){var e,r=s(t);if(n){var a=s(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return o(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=r.call(this,t)).url=e.url,n.status=e.status,n.statusText=e.statusText,n.body=e.body,n}return a}(a(Error)),v={BASE:"/",VERSION:"0.1.617",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,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.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 w(e){return e instanceof Blob}function g(e){var t,n,r=e.path.replace(/[:]/g,"_"),o="".concat(v.BASE).concat(r);return e.query?"".concat(o).concat((t=e.query,n=[],Object.keys(t).forEach((function(e){var r=t[e];y(r)&&(Array.isArray(r)?r.forEach((function(t){n.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(String(t))))})):n.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(String(r)))))})),n.length>0?"?".concat(n.join("&")):"")):o}function x(e,t){return h(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("function"!=typeof t){n.next=2;break}return n.abrupt("return",t(e));case 2:return n.abrupt("return",t);case 3:case"end":return n.stop()}}),n)})))}function R(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n,r,o,a,u,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,x(e,v.TOKEN);case 2:return n=t.sent,t.next=5,x(e,v.USERNAME);case 5:return r=t.sent,t.next=8,x(e,v.PASSWORD);case 8:return o=t.sent,t.next=11,x(e,v.HEADERS);case 11:return a=t.sent,u=new Headers(Object.assign(Object.assign({Accept:"application/json"},a),e.headers)),b(n)&&u.append("Authorization","Bearer ".concat(n)),b(r)&&b(o)&&(c=btoa("".concat(r,":").concat(o)),u.append("Authorization","Basic ".concat(c))),e.body&&(w(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 E(e){return e.formData?(t=e.formData,n=new FormData,Object.keys(t).forEach((function(e){var r=t[e];y(r)&&n.append(e,r)})),n):e.body?m(e.body)||w(e.body)?e.body:JSON.stringify(e.body):void 0;var t,n}function k(e,t){return h(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=e.method,n.next=3,R(e);case 3:return n.t1=n.sent,n.t2=E(e),r={method:n.t0,headers:n.t1,body:n.t2},v.WITH_CREDENTIALS&&(r.credentials="include"),n.next=9,fetch(t,r);case 9:return n.abrupt("return",n.sent);case 10:case"end":return n.stop()}}),n)})))}function T(e,t){if(t){var n=e.headers.get(t);if(m(n))return n}return null}function U(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(n=e.headers.get("Content-Type"))){t.next=13;break}if(!n.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 n=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(n)throw new l(t,n);if(!t.ok)throw new l(t,"Generic Error")}function O(e){return h(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n,r,o,a,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=g(e),t.next=3,k(e,n);case 3:return r=t.sent,t.next=6,U(r);case 6:return o=t.sent,a=T(r,e.responseHeader),u={url:n,ok:r.ok,status:r.status,statusText:r.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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var P=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},C=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"initializeAccount",value:function(e){return P(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"setUploadDownloadAuthSettings",value:function(e,t){return P(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/security/upload_download_auth_settings"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}}],null&&A(t.prototype,null),n&&A(t,n),e}();function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},z=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addAllowedOrigin",value:function(e,t){return _(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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/allowed_origins"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"removeAllowedOrigin",value:function(e,t){return _(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/security/allowed_origins"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}}],null&&I(t.prototype,null),n&&I(t,n),e}();function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var j=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},M=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"createApiKey",value:function(e,t,n){return j(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;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/api_keys/").concat(t),body:n,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"deleteApiKey",value:function(e,t){return j(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/security/api_keys/").concat(t),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"deleteApiKeyBatch",value:function(e,t){return j(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/security/api_keys"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}}],null&&D(t.prototype,null),n&&D(t,n),e}();function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var N=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},G=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"beginUpload",value:function(e){return N(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"deleteFileBatch",value:function(e){return N(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getFiles",value:function(e,t,n,r,o,a,u){return N(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:n,fileTag:r,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,n){return N(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,O({method:"PUT",path:"/v1/files/".concat(e,"/upload_parts/").concat(t),body:n,errors:{401:"Unauthenticated.",403:"Unauthorized.",404:"File or upload part not found."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"getUploadPart",value:function(e,t){return N(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.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 r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"deleteFile",value:function(e){return N(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getFile",value:function(e){return N(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getUploadParts",value:function(e){return N(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}}],null&&V(t.prototype,null),n&&V(t,n),e}();function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var B=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getPackageVersions",value:function(e){return t=this,n=void 0,r=void 0,o=regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})),new(r||(r=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 n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(u,c)}i((o=o.apply(t,n||[])).next())}));var t,n,r,o}}],null&&L(t.prototype,null),n&&L(t,n),e}();function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var H=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},K=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"installCustomPlugin",value:function(e,t,n){return H(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;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,"/plugins/").concat(t,"/").concat(n),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"uninstallCustomPlugin",value:function(e,t,n){return H(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;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,"/plugins/").concat(t,"/").concat(n),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}}],null&&F(t.prototype,null),n&&F(t,n),e}();function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var q=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},Q=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getDownloadStatistics",value:function(e){return q(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/accounts/".concat(e,"/statistics/downloads"),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getStorageStatistics",value:function(e){return q(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/accounts/".concat(e,"/statistics/storage"),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}},{key:"getTransformationStatistics",value:function(e){return q(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O({method:"GET",path:"/v1/accounts/".concat(e,"/statistics/transformations"),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}}],null&&W(t.prototype,null),n&&W(t,n),e}();function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Z=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},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,n;return t=e,n=[{key:"createTransformation",value:function(e,t){return Z(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/transformations"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"deleteTransformationBatch",value:function(e,t){return Z(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/transformations"),body:t,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"updateTransformation",value:function(e,t,n){return Z(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;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,"/transformations/").concat(t),body:n,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}},{key:"deleteTransformation",value:function(e,t){return Z(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/transformations/").concat(t),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"switchToNewEmptyCache",value:function(e,t){return Z(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;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,"/transformations/").concat(t,"/cache"),errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return r=n.sent,n.abrupt("return",r.body);case 4:case"end":return n.stop()}}),n)})))}},{key:"switchToExistingCache",value:function(e,t,n){return Z(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o;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,"/transformations/").concat(t,"/cache"),body:n,errors:{401:"Unauthenticated.",403:"Unauthorized."}});case 2:return o=r.sent,r.abrupt("return",o.body);case 4:case"end":return r.stop()}}),r)})))}}],null&&Y(t.prototype,null),n&&Y(t,n),e}();function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function u(e){try{i(r.next(e))}catch(e){a(e)}}function c(e){try{i(r.throw(e))}catch(e){a(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},ee=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"context",value:function(){return $(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 $(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 $(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n;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 n=t.sent,t.abrupt("return",n.body);case 4:case"end":return t.stop()}}),t)})))}}],null&&X(t.prototype,null),n&&X(t,n),e}()}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(118)})();
import type { TemplatePrototypeVariable } from "./TemplatePrototypeVariable";
export declare type DeepUnionPrimitives_TemplatePrototypeVariable_TransformationPrototypeDto_ = {
steps: Array<{
params: Record<string, any>;
params: Record<string, string | number | boolean | TemplatePrototypeVariable>;
isAsync: boolean | TemplatePrototypeVariable;

@@ -6,0 +6,0 @@ plugin: {

@@ -6,2 +6,3 @@ import type { CacheId } from "./CacheId";

import type { TransformationScope } from "./TransformationScope";
import type { TransformationTemplateConfig } from "./TransformationTemplateConfig";
import type { TransformationUrlSlug } from "./TransformationUrlSlug";

@@ -15,2 +16,3 @@ export declare type TransformationDefinition = {

steps: NonEmptyArray_TransformationDefinitionStepUnboxed_;
template: TransformationTemplateConfig | null;
};
import type { NonEmptyArray_TransformationDefinitionStepDataUnboxed_ } from "./NonEmptyArray_TransformationDefinitionStepDataUnboxed_";
import type { TransformationDescription } from "./TransformationDescription";
import type { TransformationScope } from "./TransformationScope";
import type { TransformationTemplateConfig } from "./TransformationTemplateConfig";
import type { TransformationUrlSlug } from "./TransformationUrlSlug";

@@ -10,2 +11,3 @@ export declare type TransformationDefinitionData = {

steps: NonEmptyArray_TransformationDefinitionStepDataUnboxed_;
template: TransformationTemplateConfig | null;
};

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

import type { JsonObject } from "./JsonObject";
import type { PluginPackage } from "./PluginPackage";
import type { Serializable } from "./Serializable";
export declare type TransformationDefinitionStep = {
isAsync: boolean;
params: Serializable;
params: JsonObject;
plugin: PluginPackage;
};

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

import type { JsonObject } from "./JsonObject";
import type { PluginReference } from "./PluginReference";
import type { Serializable } from "./Serializable";
export declare type TransformationDefinitionStepData = {
isAsync: boolean;
params: Serializable;
params: JsonObject;
plugin: PluginReference;
};
{
"name": "upload-api-client-internal",
"version": "1.51.0",
"version": "1.52.0",
"description": "Upload API Client (Internal)",

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

"scripts": {
"generate": "openapi --input ../upload/api/src/common/routing/generated/openapi-spec-v3-internal.json --output ./src --useUnionTypes --client fetch && prettier ./src --write --loglevel=silent",
"generate": "npm run stubs:generate && npm run stubs:override",
"stubs:generate": "openapi --input ../upload/api/src/common/routing/generated/openapi-spec-v3-internal.json --output ./src --useUnionTypes --client fetch && prettier ./src --write --loglevel=silent",
"stubs:override": "yes | cp -rf ./src-overrides/* ./src",
"typecheck": "tsc --noEmit",

@@ -24,0 +26,0 @@ "dist": "rm -rf dist && webpack",

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

BASE: "/",
VERSION: "0.1.612",
VERSION: "0.1.617",
WITH_CREDENTIALS: false,

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

@@ -49,2 +49,4 @@ /* istanbul ignore file */

export type { InitializeAccountRequest } from "./models/InitializeAccountRequest";
export type { JsonObject } from "./models/JsonObject";
export type { JsonPrimitive } from "./models/JsonPrimitive";
export type { JsonSchema } from "./models/JsonSchema";

@@ -79,3 +81,2 @@ export type { JsonUISchema } from "./models/JsonUISchema";

export type { SemanticVersion } from "./models/SemanticVersion";
export type { Serializable } from "./models/Serializable";
export type { SetDownloadAuthSettings } from "./models/SetDownloadAuthSettings";

@@ -91,4 +92,6 @@ export type { SizeInBytes } from "./models/SizeInBytes";

export { TemplateIcon } from "./models/TemplateIcon";
export type { TemplateKey } from "./models/TemplateKey";
export type { TemplateName } from "./models/TemplateName";
export type { TemplatePrototypeVariable } from "./models/TemplatePrototypeVariable";
export type { TemplateRef } from "./models/TemplateRef";
export type { TemplateSummary } from "./models/TemplateSummary";

@@ -105,2 +108,3 @@ export type { TransformationDefinition } from "./models/TransformationDefinition";

export type { TransformationTagScope } from "./models/TransformationTagScope";
export type { TransformationTemplateConfig } from "./models/TransformationTemplateConfig";
export type { TransformationUrlSlug } from "./models/TransformationUrlSlug";

@@ -107,0 +111,0 @@ export type { UpdateCacheId } from "./models/UpdateCacheId";

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

steps: Array<{
params: Record<string, any>;
params: Record<string, string | number | boolean | TemplatePrototypeVariable>;
isAsync: boolean | TemplatePrototypeVariable;

@@ -12,0 +12,0 @@ plugin: {

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

import type { TransformationScope } from "./TransformationScope";
import type { TransformationTemplateConfig } from "./TransformationTemplateConfig";
import type { TransformationUrlSlug } from "./TransformationUrlSlug";

@@ -20,2 +21,3 @@

steps: NonEmptyArray_TransformationDefinitionStepUnboxed_;
template: TransformationTemplateConfig | null;
};

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

import type { TransformationScope } from "./TransformationScope";
import type { TransformationTemplateConfig } from "./TransformationTemplateConfig";
import type { TransformationUrlSlug } from "./TransformationUrlSlug";

@@ -16,2 +17,3 @@

steps: NonEmptyArray_TransformationDefinitionStepDataUnboxed_;
template: TransformationTemplateConfig | null;
};

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

import type { JsonObject } from "./JsonObject";
import type { PluginPackage } from "./PluginPackage";
import type { Serializable } from "./Serializable";
export type TransformationDefinitionStep = {
isAsync: boolean;
params: Serializable;
params: JsonObject;
plugin: PluginPackage;
};

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

import type { JsonObject } from "./JsonObject";
import type { PluginReference } from "./PluginReference";
import type { Serializable } from "./Serializable";
export type TransformationDefinitionStepData = {
isAsync: boolean;
params: Serializable;
params: JsonObject;
plugin: PluginReference;
};

@@ -22,3 +22,3 @@ {

"include": ["./**/*"],
"exclude": ["./node_modules/**/*"]
"exclude": ["./node_modules/**/*", "./src-overrides/**/*"]
}
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