@vidispine/vdt-api 24.2.0 → 24.3.0-pre.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(u,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("buffer"),require("axios")):typeof define=="function"&&define.amd?define(["exports","buffer","axios"],$):(u=typeof globalThis<"u"?globalThis:u||self,$(u["@vidispine/vdt-api"]={},u.buffer,u.axios))})(this,function(u,$,v){"use strict";const P=v.create(),{CancelToken:D}=v;function x({baseURL:e,token:t,username:n,password:a,bearerToken:s}){e&&(P.defaults.baseURL=e),t&&(P.defaults.headers.Authorization=`token ${t}`),s&&(P.defaults.headers.Authorization=`Bearer ${s}`),(n||a)&&(P.defaults.auth={username:n,password:a})}function O(){delete P.defaults.headers.Authorization,delete P.defaults.auth}function j(e){return(e instanceof $.Buffer?e:$.Buffer.from(e.toString(),"binary")).toString("base64")}function k(e,t,n){let a;return s=>{const i=this,h=()=>{a=null,n||e.apply(i,s)},p=n&&!a;clearTimeout(a),a=setTimeout(h,t),p&&e.apply(i,s)}}function U(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function F({username:e=!1,password:t=!1,token:n,contentType:a="application/json",accept:s="application/json",...i}={}){const h={"content-type":a,Accept:s};if(e){const p=j(`${e}:${t}`);h.Authorization=`Basic ${p}`}else n&&(h.Authorization=`token ${n}`);return{...i,...h}}const R=["jobmetadata","jobMetadata","notificationdata","notificationData","methodMetadata"];function w(e){const t=Object.keys(e);if(t.length===0)return"";const n=(s,i,h)=>{if(typeof e[i]>"u")return s;const p=e[i],d=h>0?"&":"";if(R.includes(i)){const m=(g,I,G)=>`${g}${G>0?"&":""}${i}=${I.key}%3D${I.value}`,T=p.reduce(m,"");return`${s}${d}${T}`}return Array.isArray(p)?`${s}${d}${i}=${p.join(",")}`:`${s}${d}${i}=${p}`};return t.reduce(n,"?")}function z(e){let t=e;if(Array.isArray(e)||(t=Object.entries(e)),t.length===0)return"";const n=(s,i)=>{let h,p;return Array.isArray(i)?[h,p]=i:([h]=Object.keys(i),[p]=Object.values(i)),p===""||p===void 0?s:`${s};${h}=${encodeURIComponent(p)}`};return t.reduce(n,"")}function o(){throw new Error("Missing property")}function r({path:e,method:t="GET",body:n,headers:a={},queryParams:s={},matrixParams:i=[],costEstimate:h=!1,...p}={}){const d=w(s),m=z(i),T=F(a);let g=`${e}${m}${d}`;h&&(g=g.replace("/API/","/API/cost/"));const I={method:t,url:g,headers:T,data:n,...p};return new Promise((G,Nd)=>{P(I).then(f=>{f.ok=f.status>=100&&f.status<=399,f.json=()=>f.data,f.text=()=>f.data,G(f)}).catch(f=>Nd(f))})}const q=Object.freeze(Object.defineProperty({__proto__:null,CancelToken:D,debounce:k,default:r,defaultClient:P,isRequired:o,login:x,logout:O,uuidv4:U,vFetch:r},Symbol.toStringTag,{value:"Module"}));function B({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/access/`;return r({path:a,method:"GET",...n})}function N({entityType:e=o(),entityId:t=o(),accessControlDocument:n,...a}){const s=`/API/${e}/${t}/access/`;return r({path:s,method:"POST",body:n,...a})}function J({entityType:e=o(),entityId:t=o(),accessId:n=o(),...a}){const s=`/API/${e}/${t}/access/${n}`;return r({path:s,method:"GET",...a})}function V({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/merged-access/`;return r({path:a,method:"GET",...n})}function K({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/merged-access/group`;return r({path:a,method:"GET",...n})}function H({entityType:e=o(),entityId:t=o(),accessId:n=o(),...a}){const s=`/API/${e}/${t}/access/${n}`;return r({path:s,method:"DELETE",...a})}function Q({entityType:e=o(),entityId:t=o(),userName:n=o(),...a}){const s=`/API/${e}/${t}/access/owner/${n}`;return r({path:s,method:"PUT",...a})}function _({entityType:e=o(),entityId:t=o(),accessControlListDocument:n,...a}){const s=`/API/${e}/${t}/access/bulk`;return r({path:s,method:"POST",body:n,...a})}function W({entityType:e=o(),entityId:t=o(),accessControlListDocument:n,...a}){const s=`/API/${e}/${t}/access/bulk`;return r({path:s,method:"DELETE",body:n,...a})}function X({entityType:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/access/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function Y({entityType:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/access/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function Z({accessControlDocument:e,...t}){return r({path:"/API/item/access/",method:"POST",body:e,...t})}function tt({...e}={}){return r({path:"/API/item/access/",method:"DELETE",...e})}function et({...e}={}){return r({path:"/API/import/access/",method:"GET",...e})}function nt({groupName:e=o(),...t}){const n=`/API/import/access/group/${e}`;return r({path:n,method:"PUT",...t})}function ot({groupName:e=o(),...t}){const n=`/API/import/access/group/${e}`;return r({path:n,method:"DELETE",...t})}const at={listEntityAccess:B,createEntityAccess:N,getEntityAccess:J,getEntityAccessMerged:V,getEntityAccessMergedGroup:K,removeEntityAccess:H,updateEntityOwner:Q,createEntityAccessBulk:_,removeEntityAccessBulk:W,getEntityAccessGraph:X,getEntityAccessGraphDot:Y,createItemAllAccess:Z,removeItemAllAccess:tt,getImportAccess:et,updateImportAccessGroup:nt,removeImportAccessGroup:ot};function rt({...e}={}){return r({path:"/API/analyze-preset",method:"GET",...e})}function st({preset:e=o(),...t}={}){const n=`/API/analyze-preset/${e}`;return r({path:n,method:"GET",...t})}const it={listAnalyzePreset:rt,getAnalyzePreset:st};function ct({...e}={}){return r({path:"/API/log/",method:"GET",...e})}function ut({...e}={}){return r({path:"/API/log/export",method:"GET",...e})}const ht={listAuditLog:ct,exportAuditLog:ut};function pt({...e}={}){return r({path:"/API/storage/auto-import/",method:"GET",...e})}function dt({storageId:e=o(),autoImportRuleDocument:t,...n}){const a=`/API/storage/${e}/auto-import/`;return r({path:a,method:"PUT",body:t,...n})}function mt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/`;return r({path:n,method:"GET",...t})}function lt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/`;return r({path:n,method:"DELETE",...t})}function ft({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/enable`;return r({path:n,method:"PUT",...t})}function Pt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/disable`;return r({path:n,method:"PUT",...t})}const Tt={listAutoImport:pt,updateAutoImport:dt,getAutoImport:mt,removeAutoImport:lt,enableAutoImport:ft,disableAutoImport:Pt};function $t({...e}={}){return r({path:"/API/auto-projection",method:"GET",...e})}function gt({...e}={}){return r({path:"/API/auto-projection/disable",method:"GET",...e})}function It({...e}={}){return r({path:"/API/auto-projection/enable",method:"GET",...e})}function Et({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}`;return r({path:n,method:"GET",...t})}function At({projectionName:e=o(),autoProjectionRuleDocument:t=o(),...n}){const a=`/API/auto-projection/${e}`;return r({path:a,method:"PUT",body:t,...n})}function yt({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}`;return r({path:n,method:"DELETE",...t})}function bt({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}/enable`;return r({path:n,method:"PUT",...t})}function St({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}/disable`;return r({path:n,method:"PUT",...t})}const Gt={listAutoProjection:$t,listDisabledAutoProjection:gt,listEnabledAutoProjection:It,getAutoProjection:Et,createAutoProjection:At,removeAutoProjection:yt,enableAutoProjection:bt,disableAutoProjection:St};function vt({itemId:e=o(),...t}){const n=`/API/item/${e}/metadata/bulky`;return r({path:n,method:"GET",...t})}function kt({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:a,method:"GET",...n})}function Ut({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:s,method:"GET",...a})}function Lt({itemId:e=o(),bulkyMetadataDocument:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky`;return r({path:a,method:"PUT",body:t,...n})}function Ct({itemId:e=o(),shapeId:t=o(),bulkyMetadataDocument:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:s,method:"PUT",body:n,...a})}function Mt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),bulkyMetadataDocument:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:i,method:"PUT",body:a,...s})}function Dt({itemId:e=o(),...t}){const n=`/API/item/${e}/metadata/bulky`;return r({path:n,method:"DELETE",...t})}function xt({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:a,method:"DELETE",...n})}function Ot({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:s,method:"DELETE",...a})}function jt({itemId:e=o(),key:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky/${t}`;return r({path:a,method:"GET",...n})}function Ft({itemId:e=o(),shapeId:t=o(),key:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`;return r({path:s,method:"GET",...a})}function Rt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`;return r({path:i,method:"GET",...s})}function wt({itemId:e=o(),key:t=o(),value:n=o(),headers:a={},...s}){const i=`/API/item/${e}/metadata/bulky/${t}`,h={contentType:"text/plain",...a};return r({path:i,method:"PUT",body:n,headers:h,...s})}function zt({itemId:e=o(),shapeId:t=o(),key:n=o(),value:a=o(),headers:s={},...i}){const h=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`,p={contentType:"text/plain",...s};return r({path:h,method:"PUT",body:a,headers:p,...i})}function qt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),value:s=o(),headers:i={},...h}){const p=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`,d={contentType:"text/plain",...i};return r({path:p,method:"PUT",body:s,headers:d,...h})}function Bt({itemId:e=o(),key:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky/${t}`;return r({path:a,method:"DELETE",...n})}function Nt({itemId:e=o(),shapeId:t=o(),key:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`;return r({path:s,method:"DELETE",...a})}function Jt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`;return r({path:i,method:"DELETE",...s})}const Vt={listItemBulkyMetadata:vt,listShapeBulkyMetadata:kt,listComponentBulkyMetadata:Ut,updateAllItemBulkyMetadata:Lt,updateAllShapeBulkyMetadata:Ct,updateAllComponentBulkyMetadata:Mt,removeAllItemBulkyMetadata:Dt,removeAllShapeBulkyMetadata:xt,removeAllComponentBulkyMetadata:Ot,getItemBulkyMetadata:jt,getShapeBulkyMetadata:Ft,getComponentBulkyMetadata:Rt,updateItemBulkyMetadata:wt,updateShapeBulkyMetadata:zt,updateComponentBulkyMetadata:qt,removeItemBulkyMetadata:Bt,removeShapeBulkyMetadata:Nt,removeComponentBulkyMetadata:Jt};function Kt(e,t){return e===0||t===0?0:Math.floor(e/t*100)}const c=Object.freeze({statuses:{transfering:1,paused:2,complete:3,failed:4,unstarted:5,canceled:6,offline:7},events:{progress:"progress",update:"update",complete:"complete",error:"error",added:"upload-added",removed:"upload-removed",retry:"retry",pausing:"pausing",paused:"paused",resuming:"resuming",offline:"offline",online:"online"},defaults:{targetRate:4e6,chunkSize:1e7,minChunkSize:8388608,maxConcurrentTransfers:1,maxConcurrentFileTransfers:1,autoMaxConcurrentTransfers:!1,autoResume:!0,api:{props:{}},minFileSize:104857600}});class b{constructor(){this.events={}}on(t,n){const a=this.events[t]||[];a.push(n),this.events[t]=a}off(t){this.events[t]&&(this.events[t]=[])}trigger(t,n){const a=this.events[t];!a||a.length<1||a.forEach(s=>{s(n)})}}class Ht{constructor(t={}){Object.assign(this,{blobSlice:null,fileSize:null,start:null,end:null,api:null},t),this.state={retries:0,status:c.statuses.unstarted,startTime:null,completeTime:null,response:null,bytesTransfered:null},this.events=new b}try(){return this.state.status=c.statuses.transfering,this.state.startTime=performance.now(),new Promise((t,n)=>{const a=()=>{this.transfer().then(s=>{this.state.response=s,this.onComplete(),t()}).catch(()=>{this.state.retries>3?(this.state.status=c.statuses.failed,n(new Error(`Chunk ${this.start}-${this.end} failed`))):this.state.status!==c.statuses.paused?(this.state.retries+=1,this.tryTimeout=setTimeout(()=>{a()},1e3)):clearTimeout(this.tryTimeout)})};a(),window.addEventListener(c.events.online,()=>{this.resume()}),window.addEventListener(c.events.offline,()=>{this.pause()})})}transfer(){let t={file:this.blobSlice,onUploadProgress:n=>{(this.state.status!==c.statuses.complete||this.state.status!==c.statuses.offline)&&(this.state.bytesTransfered=n.loaded,this.events.trigger(c.events.progress,this.state))}};return this.end-this.start!==this.fileSize&&(t.headers={index:this.start,size:this.fileSize}),t={...t,...this.api.props},this.transferPromise=this.api.method(t),this.state.status=c.statuses.transfering,this.transferPromise}onComplete(){this.state.status=c.statuses.complete,this.state.bytesTransfered=this.end-this.start,this.state.completeTime=performance.now(),this.events.trigger(c.events.complete)}pause(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.paused)}resume(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.transfering)}cancel(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.canceled)}get transferRate(){if(this.state.bytesTransfered){const t=(this.state.completeTime-this.state.startTime)/1e3;return this.state.bytesTransfered/t}return 0}}class A{constructor(t,n){if(this.events=new b,!n.api.method)throw new Error("No api method specified");this.defaultOptions={...c.defaults,targetRate:4e6,chunkSize:c.defaults.minChunkSize,autoMaxConcurrentTransfers:!1,api:{props:{...c.defaults.api.props,queryParams:{transferId:U()},...n.api.props}}},this.options={...this.defaultOptions,...n},this.state={blob:null,chunks:[],transferPromises:[],targetRate:this.options.targetRate,rate:0,autoMaxConcurrentTransfers:this.options.autoMaxConcurrentTransfers,maxConcurrentTransfers:this.options.maxConcurrentTransfers,mime:"",status:c.statuses.unstarted,transferId:n.api.props.queryParams.transferId,lastStats:{}},typeof t=="object"?(this.state.blob=t,this.state.mime=t.type,this.addChunksFromBlob(t)):console.error(new Error(`Expected a File or a Blob object, but got ${typeof t}`))}upload(){const{status:t}=this.state;if(t!==c.statuses.complete)if(t===c.statuses.unstarted||t===c.statuses.transfering){this.state.transferPromises=[];const n=()=>{const a=this.state.chunks[0].state.status;return this.state.transferPromises.length<this.state.maxConcurrentTransfers&&(a!==c.statuses.transfering||a===c.statuses.unstarted)};n()&&(this.state.chunks.forEach(a=>{a.state.status!==c.statuses.complete&&a.state.status!==c.statuses.transfering&&n()&&(this.state.status=c.statuses.transfering,this.state.transferPromises.push(a.try()))}),this.state.transferPromises.length>0&&Promise.all(this.state.transferPromises).then(()=>{this.upload()}).catch(a=>{console.log("Failed on this upload() cycle, check connectivity and try to resume :(",a),this.state.status!==c.statuses.offline?(this.state.status=c.statuses.failed,this.events.trigger(c.events.failed,{error:a,transfer:this})):setTimeout(()=>this.retry(),5e3)}))}else this.retry()}getByteRangesForChunks(t,n=this.options.chunkSize){const a=[],{minChunkSize:s}=this.options;let h=n>=s?n:s,p=Math.floor(t.size/h);if(t.size-(t.size-t.size/p)>=s||(p-=1,h=Math.floor(t.size/p)),p<2||t.size<this.options.minFileSize)a.push({start:0,end:t.size});else for(let d=0;d<=p;d+=1){const m=h*d;let T=h*d+h;t.size-h*d<=s&&(T=t.size);const I={start:m,end:T};if(a.push(I),T===t.size)break}return a}addChunksFromBlob(t){this.getByteRangesForChunks(t).forEach(a=>{const s=new Ht({start:a.start,end:a.end,blobSlice:t.slice(a.start,a.end),fileSize:t.size,api:this.options.api});s.events.on(c.events.progress,()=>{this.onProgress()}),s.events.on(c.events.complete,()=>{this.onProgress()}),this.state.chunks.push(s)})}retry(){this.state.status===c.statuses.failed&&(this.resume(),this.events.trigger(c.events.retry))}resume(){this.state.status=c.statuses.transfering,this.events.trigger(c.events.resuming),this.state.chunks.length>0&&this.state.chunks.forEach(t=>{t.resume()})}pause(){this.state.status=c.statuses.paused,this.state.chunks.length>0&&this.state.chunks.forEach(n=>{n.pause()});const t=Promise.all(this.state.transferPromises);return this.events.trigger(c.events.pausing),t.then(()=>{this.events.trigger(c.events.paused)}),Promise.all(this.state.transferPromises)}cancel(){this.state.status=c.statuses.canceled,this.state.chunks.length>0&&this.state.chunks.forEach(n=>{n.cancel()}),this.upload=()=>{};const t=Promise.all(this.state.transferPromises);return t.then(()=>{this.events.trigger(c.events.removed,this)}),t}autoAdjustMaxConcurrentTransfers(t){if(this.state.autoMaxConcurrentTransfers&&this.state.status!==c.statuses.complete){const n=t.avgTransferRate/this.state.targetRate;if(n>1.2)this.state.maxConcurrentTransfers+=1;else if(n<.3)this.state.maxConcurrentTransfers=1;else{const a=this.options.maxConcurrentTransfers-1;this.state.maxConcurrentTransfers=Math.max(this.options.maxConcurrentTransfers,Math.min(a,c.defaults.maxConcurrentTransfers))}}}onProgress(){try{const t=this.getStats();t!==this.state.lastStats&&(this.state.lastStats=t,k(()=>{this.autoAdjustMaxConcurrentTransfers(t)},1e3)(),this.state.status!==c.statuses.complete&&(t.totalChunks===t.completedChunks?this.onComplete():(this.events.trigger(c.events.progress,t),this.options.onProgress&&this.options.onProgress(t))))}catch(t){console.error(t)}}onComplete(){const t=this.getStats();this.state.lastStats=t,this.state.status=c.statuses.complete,this.events.trigger(c.events.complete),this.options.onComplete&&this.options.onComplete(this.finalResponse)}getStats(){const t=this.state.chunks.length,n=this.state.chunks.filter(m=>m.state.status===c.statuses.complete),a=this.state.chunks.filter(m=>m.state.status===c.statuses.transfering),s=n.length;let i=0,h=0;n.forEach(m=>{i+=m.transferRate,h+=m.blobSlice.size}),a.forEach(m=>{h+=m.state.bytesTransfered});const p=i/s,d={totalChunks:t,completedChunks:s,totalBytes:this.state.blob.size,transferedBytes:h,avgTransferRate:p,concurrentTransfers:this.state.maxConcurrentTransfers};return this.state.rate=d.avgTransferRate,d}set concurrentTransfers(t){this.state.autoMaxConcurrentTransfers=!1,this.state.maxConcurrentTransfers=t}set rate(t){this.state.targetRate=t}get rate(){return this.state.rate}get finalResponse(){const t=this.state.chunks.length-1,n=!1;for(let a=t;a>=0;a-=1){const s=this.state.chunks[a];if(typeof s.state.response.data=="object")return s.state.response}return n}get transferId(){return this.state.transferId}}class L{constructor(t){this.initialState=Object.freeze({status:c.statuses.unstarted,transfers:{},bytesDone:0,bytesTotal:0,lastStats:{bytesDone:0,bytesTotal:0}}),this.state={...this.initialState},this.options={maxConcurrentFileTransfers:c.defaults.maxConcurrentFileTransfers,autoResume:c.defaults.autoResume,...t},this.events=new b,this.bindNetworkEvents()}bindNetworkEvents(){typeof window>"u"||(window.addEventListener(c.events.online,()=>{this.events.trigger(c.events.online,this.state),this.state.status=c.statuses.transfering,this.options.autoResume&&setTimeout(()=>{this.retry()},1500)}),window.addEventListener(c.events.offline,()=>{this.events.trigger(c.events.offline,this.state),this.state.status=c.statuses.offline}))}addChunkedUpload(t){t.transferId!==null&&(this.state.transfers[t.transferId]=t,t.events.on(c.events.progress,()=>{this.onProgress()}),t.events.on(c.events.complete,()=>{this.upload(),this.onProgress()}),t.events.on(c.events.failed,({error:n,transfer:a})=>{this.onFail(n,a)}),t.events.on(c.events.retry,()=>{this.events.trigger(c.events.retry,this.state)}),t.events.on(c.events.paused,()=>{this.paused&&this.events.trigger(c.events.paused)}),this.updateStats(),this.events.trigger(c.events.added,this.state),this.events.trigger(c.events.update,this.state))}removeChunkedUpload(t,n=!1){const a=s=>s?s.state.status===c.statuses.complete&&!n?(console.error("Can't cancel complete transfers, pass true as a second argument in .removeChunkedUpload() to force removal."),!1):(Object.keys(this.state.transfers).forEach(i=>{s===this.state.transfers[i]&&delete this.state.transfers[i]}),this.events.trigger(c.events.removed),s.cancel(),!0):(console.error("Could not find a matching transfer to cancel."),!1);switch(t.constructor.name){case A.name:a(t);break;case"File":a(this.exists(t));break}}onProgress(){this.updateStats(),this.hasCompleted?this.onComplete():this.state.bytesDone!==this.state.lastStats.bytesDone&&(this.state.status=c.statuses.transfering,this.events.trigger(c.events.progress,this.state))}onComplete(){this.state.status=c.statuses.complete,this.events.trigger(c.events.complete,this.state)}exists(t){let n=!1;for(let a=0;a<this.transfers.length;a+=1){const s=this.transfers[a];if(s.state.blob.name===t.name&&s.state.blob.lastModified===t.lastModified&&s.state.blob.size&&t.size)return n=s,n}return n}isTransferAvailable(t){return t.state.status!==c.statuses.complete&&t.state.status!==c.statuses.transfering||t.state.status===c.statuses.unstarted}pause(){let t=Promise.resolve(!0);if(!this.paused){this.events.trigger(c.events.pausing,this.state);const n=[];this.transfers.forEach(a=>{n.push(a.pause())}),t=Promise.all(n),t.then(()=>{this.events.trigger(c.events.paused,this.state)})}return t}resume(){this.events.trigger(c.events.update,this.state),this.transfers.forEach(t=>{this.isTransferAvailable(t)&&t.state.status!==c.statuses.unstarted&&t.resume()})}retry(){this.status===c.statuses.failed&&(this.resume(),this.events.trigger(c.events.retry,this.state))}upload(){let t=0;this.transfers.forEach(n=>{this.isTransferAvailable(n)?t<this.options.maxConcurrentFileTransfers&&(this.events.trigger(c.events.update,this.state),n.upload(),t+=1):n.state.status!==c.statuses.complete&&(t+=1)}),t>0&&(this.status=c.statuses.transfering),t<this.options.maxConcurrentFileTransfers&&this.transfers.length<t&&this.upload()}onFail(t,n){this.status=c.statuses.failed,this.events.trigger(c.events.error,{error:t,transfer:n,file:n.state.blob})}reset(){this.transfers.forEach(t=>{t.constructor.name===A.name&&this.removeChunkedUpload(t,!0)}),this.state={...this.initialState},this.events.trigger(c.statuses.update,this.state),this.events.trigger(c.statuses.complete,this.state)}destroy(){this.reset()}get hasCompleted(){let t=!0;return this.transfers.forEach(n=>{n.state.status!==c.statuses.complete&&(t=!1)}),t}get transfers(){return Object.values(this.state.transfers)||[]}get status(){return this.state.status}set status(t){this.events.trigger(c.statuses.update,this.state),this.state.status=t}get bytesTotal(){let t=0;return this.transfers.forEach(n=>{t+=n.state.blob.size}),t}get bytesDone(){let t=0;return this.transfers.forEach(n=>{t+=n.getStats().transferedBytes}),t}updateStats(){this.state.lastStats.bytesDone=this.state.bytesDone,this.state.lastStats.bytesTotal=this.state.bytesTotal,this.state.bytesTotal=this.bytesTotal,this.state.bytesDone=this.bytesDone}get percentDone(){return Kt(this.state.bytesDone,this.state.bytesTotal)}get fileList(){const t=[];return this.transfers.forEach(n=>{const a=n.getStats(),{totalChunks:s,completedChunks:i}=a,h={name:n.state.blob.name,bytesDone:a.transferedBytes,bytesTotal:n.state.blob.size,totalChunks:s,completedChunks:i,transfer:n};t.push(h)}),t}get isUploading(){return this.state.status===c.statuses.transfering}get paused(){let t=!0;return this.transfers.forEach(n=>{n.state.status!==c.statuses.paused&&(t=!1)}),t}}L.constants=c,A.constants=c;function Qt({entity:e=o(),entityId:t=o(),metadataDocument:n,...a}){const s=`/API/${e}/${t}/metadata`;return r({path:s,method:"PUT",body:n,...a})}function _t({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/move`;return r({path:a,method:"PUT",...n})}function Wt({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/changes`;return r({path:a,method:"GET",...n})}function Xt({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}`;return r({path:s,method:"GET",...a})}function Yt({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}/compareTo/previous`;return r({path:s,method:"GET",...a})}function Zt({entity:e=o(),entityId:t=o(),changesetId:n=o(),fromChangesetId:a=o(),...s}){const i=`/API/${e}/${t}/metadata/changes/${n}/compareTo/${a}`;return r({path:i,method:"GET",...s})}function te({entity:e=o(),entityId:t=o(),changesetId:n=o(),metadataDocument:a=o(),...s}){const i=`/API/${e}/${t}/metadata/changes/${n}/`;return r({path:i,method:"PUT",body:a,...s})}function ee({entity:e=o(),entityId:t=o(),metadataChangeSetDocument:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes`;return r({path:s,method:"PUT",body:n,...a})}function ne({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/changes/trim`;return r({path:a,method:"PUT",...n})}function oe({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}/trim`;return r({path:s,method:"PUT",...a})}function ae({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}`;return r({path:s,method:"DELETE",...a})}function re({entity:e=o(),entityId:t=o(),uuid:n=o(),metadataEntryDocument:a=o(),...s}){const i=`/API/${e}/${t}/metadata/entry/${n}`;return r({path:i,method:"PUT",body:a,...s})}function se({entity:e=o(),entityId:t=o(),metadataEntryListDocument:n=o(),...a}){const s=`/API/${e}/${t}/metadata/entry/`;return r({path:s,method:"PUT",body:n,...a})}function ie({entity:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/metadata/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function ce({entity:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/metadata/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function ue({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"GET",...n,...n})}function he({metadataUuid:e=o(),...t}){const n=`/API/metadata/${e}/`;return r({path:n,method:"GET",...t})}function pe({metadataUuid:e=o(),...t}){const n=`/API/metadata/${e}/`;return r({path:n,method:"DELETE",...t})}function de({...e}={}){return r({path:"/API/metadata/",method:"GET",...e})}function me({metadataDocument:e,...t}={}){return r({path:"/API/metadata/",method:"PUT",body:e,...t})}function le({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"GET",...n})}function fe({entityType:e=o(),entityId:t=o(),subpath:n,...a}){const s=`/API/${e}/${t}/metadata/${n}`;return r({path:s,method:"GET",...a})}function Pe({simpleMetadataDocument:e,entityType:t=o(),entityId:n=o(),...a}={}){const s=`/API/${t}/${n}/metadata`;return r({path:s,method:"PUT",body:e,...a})}function Te({simpleMetadataDocument:e,entityType:t=o(),entityId:n=o(),subpath:a,...s}={}){const i=`/API/${t}/${n}/metadata/${a}`;return r({path:i,method:"PUT",body:e,...s})}function $e({entityType:e=o(),entityId:t=o(),...n}={}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"DELETE",...n})}function ge({entityType:e=o(),entityId:t=o(),key:n=o(),headers:a={},...s}){const i=`/API/${e}/${t}/metadata/${n}`,h={accept:"text/plain",...a};return r({path:i,method:"GET",headers:h,...s})}function Ie({entityType:e=o(),entityId:t=o(),key:n=o(),headers:a={},...s}){const i=`/API/${e}/${t}/metadata/${n}`,h={accept:"text/plain",...a};return r({path:i,method:"DELETE",headers:h,...s})}function Ee({entityType:e=o(),entityId:t=o(),key:n=o(),value:a,headers:s={},...i}){const h=`/API/${e}/${t}/metadata/${n}`,p={contentType:"text/plain",...s};return r({path:h,method:"PUT",body:a,headers:p,...i})}const E={updateEntityMetadata:Qt,moveEntityMetadata:_t,listEntityMetadataChange:Wt,getEntityMetadataChange:Xt,previousEntityMetadataChange:Yt,compareEntityMetadataChange:Zt,updateEntityMetadataChange:te,updateAllEntityMetadataChange:ee,trimAllEntityMetadataChange:ne,trimEntityMetadataChange:oe,removeEntityMetadataChange:ae,updateEntityMetadataEntry:re,updateAllEntityMetadataEntry:se,getEntityMetadataGraph:ie,getEntityMetadataGraphDot:ce,getEntityMetadata:ue,getMetadata:he,removeMetadata:pe,getMetadataGlobal:de,updateMetadataGlobal:me,getSimpleMetadata:le,getSimpleMetadataSubpath:fe,updateSimpleMetadata:Pe,updateSimpleMetadataSubpath:Te,removeSimpleMetadata:$e,getSimpleMetadataKey:ge,removeSimpleMetadataKey:Ie,updateSimpleMetadataKey:Ee};function Ae({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata-lock`;return r({path:a,method:"GET",...n})}function ye({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata-lock`;return r({path:a,method:"POST",...n})}function be({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"GET",...a})}function Se({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"PUT",...a})}function Ge({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"DELETE",...a})}const S={listEntityMetadataLock:Ae,createEntityMetadataLock:ye,getEntityMetadataLock:be,updateEntityMetadataLock:Se,removeEntityMetadataLock:Ge},{listEntityMetadataLock:ve,createEntityMetadataLock:ke,getEntityMetadataLock:Ue,updateEntityMetadataLock:Le,removeEntityMetadataLock:Ce}=S;function Me({...e}={}){return r({path:"/API/collection/",method:"GET",...e})}function De({collectionId:e=o(),...t}){const n=`/API/collection/${e}/`;return r({path:n,method:"GET",...t})}function xe({collectionId:e=o(),...t}){const n=`/API/collection/${e}/metadata`;return r({path:n,method:"GET",...t})}function Oe({collectionId:e,metadataDocument:t,...n}){return E.updateEntityMetadata({entity:"collection",entityId:e,metadataDocument:t,...n})}function je({collectionId:e=o(),...t}){const n=`/API/collection/${e}/ancestor`;return r({path:n,method:"GET",...t})}function Fe({...e}={}){return r({path:"/API/collection/history",method:"GET",...e})}function Re({collectionId:e=o(),...t}){const n=`/API/collection/${e}/item`;return r({path:n,method:"GET",...t})}function we({itemSearchDocument:e,...t}){return r({path:"/API/collection/",method:"PUT",body:e,...t})}function ze({metadataGroupSearchDocument:e,...t}){return r({path:"/API/collection/metadata-group",method:"PUT",body:e,...t})}function qe({collectionId:e=o(),searchDocument:t,...n}){const a=`/API/collection/${e}/item`;return r({path:a,method:"PUT",body:t,...n})}function Be({collectionDocument:e,queryParams:t,...n}){return r({path:"/API/collection",method:"POST",body:e,queryParams:t,...n})}function Ne({collectionId:e=o(),...t}){const n=`/API/collection/${e}/`;return r({path:n,method:"DELETE",...t})}function Je({queryParams:e=o(),...t}){return r({path:"/API/collection",method:"DELETE",queryParams:e,...t})}function Ve({collectionId:e=o(),...t}){const n=`/API/collection/${e}/rename`;return r({path:n,method:"PUT",...t})}function Ke({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"PUT",...n})}function He({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function Qe({collectionId:e=o(),collectionDocument:t,...n}){const a=`/API/collection/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function _e({collectionId:e=o(),collectionReorderDocument:t,...n}){const a=`/API/collection/${e}/order`;return r({path:a,method:"POST",body:t,...n})}function We({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"PUT",...t})}function Xe({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"DELETE",...t})}function Ye({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/folder-name`;return r({path:a,method:"PUT",queryParams:t,...n})}function Ze({collectionId:e=o(),...t}){return ve({entity:"collection",entityId:e,...t})}function tn({collectionId:e=o(),...t}){return ke({entity:"collection",entityId:e,...t})}function en({collectionId:e=o(),...t}){return Ue({entity:"collection",entityId:e,...t})}function nn({collectionId:e=o(),...t}){return Le({entity:"collection",entityId:e,...t})}function on({collectionId:e=o(),...t}){return Ce({entity:"collection",entityId:e,...t})}function an({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}function rn({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/sequence-document`;return r({path:a,method:"GET",queryParams:t,...n})}const sn={listCollection:Me,getCollection:De,getCollectionMetadata:xe,updateCollectionMetadata:Oe,getCollectionAncestor:je,listCollectionHistory:Fe,getCollectionItem:Re,searchCollection:we,searchCollectionMetadataGroup:ze,searchCollectionItem:qe,createCollection:Be,removeCollection:Ne,removeCollectionList:Je,renameCollection:Ve,addCollectionEntity:Ke,removeCollectionEntity:He,updateCollection:Qe,orderCollection:_e,markFolderCollection:We,unMarkFolderCollection:Xe,updateFolderCollection:Ye,listCollectionMetadataLock:Ze,createCollectionMetadataLock:tn,getCollectionMetadataLock:en,updateCollectionMetadataLock:nn,removeCollectionMetadataLock:on,exportCollection:an,collectionSequence:rn};function cn({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/component`;return r({path:a,method:"GET",...n})}function un({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}`;return r({path:s,method:"GET",...a})}function hn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}`;return r({path:s,method:"DELETE",...a})}function pn({itemId:e=o(),shapeId:t=o(),queryParams:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component`;return r({path:s,method:"POST",queryParams:n,...a})}function dn({itemId:e=o(),shapeId:t=o(),queryParams:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/placeholder`;return r({path:s,method:"POST",queryParams:n,...a})}function mn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),targetComponentId:i=o(),...h}){const p=`/API/item/${e}/shape/${t}/component/${n}/move/item/${a}/shape/${s}/component/${i}`;return r({path:p,method:"POST",...h})}function ln({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),...i}){const h=`/API/item/${e}/shape/${t}/component/${n}/move/item/${a}/shape/${s}`;return r({path:h,method:"POST",...i})}function fn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),targetComponentId:i=o(),...h}){const p=`/API/item/${e}/shape/${t}/component/${n}/copy/item/${a}/shape/${s}/component/${i}`;return r({path:p,method:"POST",...h})}function Pn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),...i}){const h=`/API/item/${e}/shape/${t}/component/${n}/copy/item/${a}/shape/${s}`;return r({path:h,method:"POST",...i})}function Tn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),fileId:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/file/${a}`;return r({path:i,method:"PUT",...s})}function $n({itemId:e=o(),shapeId:t=o(),componentId:n=o(),fileId:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/file/${a}`;return r({path:i,method:"PUT",...s})}function gn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),analyzeJobDocument:a,...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/analyze`;return r({path:i,method:"POST",body:a,...s})}const In={listComponent:cn,getComponent:un,removeComponent:hn,createComponent:pn,createComponentPlaceholder:dn,moveComponent:mn,moveComponentToShape:ln,copyComponent:fn,copyComponentToShape:Pn,addComponentFile:Tn,removeComponentFile:$n,createComponentAnalyze:gn};function En({...e}={}){return r({path:"/API/configuration/",method:"GET",...e})}function An({...e}={}){return r({path:"/API/configuration/properties",method:"GET",...e})}function yn({configurationPropertyDocument:e,...t}){return r({path:"/API/configuration/properties/",method:"PUT",body:e,...t})}function bn({configurationPropertyListDocument:e=o(),...t}){return r({path:"/API/configuration/properties/",method:"POST",body:e,...t})}function Sn({key:e=o(),...t}){const n=`/API/configuration/properties/${e}`;return r({path:n,method:"DELETE",...t})}function Gn({...e}={}){return r({path:"/API/configuration/indexing",method:"GET",...e})}function vn({indexingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/indexing",method:"PUT",body:e,...t})}function kn({...e}={}){return r({path:"/API/configuration/ftp-pool",method:"GET",...e})}function Un({ftpPoolConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/ftp-pool",method:"PUT",body:e,...t})}function Ln({...e}){return r({path:"/API/configuration/ftp-pool",method:"DELETE",...e})}function Cn({...e}={}){return r({path:"/API/configuration/job-pool",method:"GET",...e})}function Mn({jobPoolListDocument:e=o(),...t}){return r({path:"/API/configuration/job-pool",method:"PUT",body:e,...t})}function Dn({...e}){return r({path:"/API/configuration/job-pool",method:"DELETE",...e})}function xn({jobPoolPriority:e=o(),...t}){const n=`/API/configuration/job-pool/${e}`;return r({path:n,method:"DELETE",...t})}function On({...e}={}){return r({path:"/API/configuration/metrics",method:"GET",...e})}function jn({metricsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/metrics",method:"PUT",body:e,...t})}function Fn({...e}={}){return r({path:"/API/configuration/path-alias",method:"GET",...e})}function Rn({pathAliasConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/path-alias",method:"PUT",body:e,...t})}function wn({...e}={}){return r({path:"/API/configuration/logreport",method:"GET",...e})}function zn({logReportConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/logreport",method:"PUT",body:e,...t})}function qn({...e}={}){return r({path:"/API/configuration/purging",method:"GET",...e})}function Bn({databasePurgingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/purging",method:"PUT",body:e,...t})}function Nn({...e}){return r({path:"/API/configuration/purging",method:"DELETE",...e})}function Jn({...e}={}){return r({path:"/API/configuration/cors",method:"GET",...e})}function Vn({corsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/cors",method:"PUT",body:e,...t})}function Kn({...e}={}){return r({path:"/API/configuration/auth",method:"GET",...e})}function Hn({oAuth2ConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/auth",method:"PUT",body:e,...t})}function Qn({...e}={}){return r({path:"/API/configuration/auth",method:"DELETE",...e})}function _n({...e}={}){return r({path:"/API/configuration/job-priority",method:"GET",...e})}function Wn({jobPriorityConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/job-priority",method:"PUT",body:e,...t})}function Xn({...e}={}){return r({path:"/API/configuration/job-priority",method:"DELETE",...e})}function Yn({...e}={}){return r({path:"/API/configuration/bulkymetadata",method:"GET",...e})}function Zn({bulkyMetadataConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/bulkymetadata",method:"PUT",body:e,...t})}const to={getConfiguration:En,getPropertiesConfiguration:An,updatePropertiesConfiguration:yn,updateAllPropertiesConfiguration:bn,removePropertiesConfiguration:Sn,getIndexingConfiguration:Gn,updateIndexingConfiguration:vn,getFtpPoolConfiguration:kn,updateFtpPoolConfiguration:Un,removeFtpPoolConfiguration:Ln,getJobPoolConfiguration:Cn,updateJobPoolConfiguration:Mn,removeAllJobPoolConfiguration:Dn,removeJobPoolConfiguration:xn,getMetricsConfiguration:On,updateMetricsConfiguration:jn,getPathAliasConfiguration:Fn,updatePathAliasConfiguration:Rn,getLogReportConfiguration:wn,updateLogReportConfiguration:zn,getDatabasePurgingConfiguration:qn,updateDatabasePurgingConfiguration:Bn,removeDatabasePurgingConfiguration:Nn,getCorsConfiguration:Jn,updateCorsConfiguration:Vn,getAuthConfiguration:Kn,updateAuthConfiguration:Hn,removeAuthConfiguration:Qn,getJobPriorityConfiguration:_n,updateJobPriorityConfiguration:Wn,removeJobPriorityConfiguration:Xn,getBulkyMetadataConfiguration:Yn,updateBulkyMetadataConfiguration:Zn};function eo({conformRequestDocument:e=o(),...t}){return r({path:"/API/conform",body:e,method:"POST",...t})}function no({itemId:e=o(),timelineFormat:t=o(),conformRequestDocument:n=o(),...a}){const s=`/API/item/${e}/timeline/${t}/conform`;return r({path:s,body:n,method:"POST",...a})}const oo={createConform:eo,createConformItem:no};function ao({xmlDocument:e=o(),headers:t={},...n}){return r({path:"/APInoauth/debug/echo",method:"PUT",body:e,headers:{contentType:"application/xml",...t},...n})}const ro={echo:ao};function so({...e}={}){return r({path:"/API/deletion-lock",method:"GET",...e})}function io({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"GET",...t})}function co({lockId:e=o(),deletionLockDocument:t=o(),...n}){const a=`/API/deletion-lock/${e}`;return r({path:a,method:"PUT",body:t,...n})}function uo({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"DELETE",...t})}function ho({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/deletion-lock/`;return r({path:a,method:"GET",...n})}function po({entity:e=o(),entityId:t=o(),deletionLockDocument:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/`;return r({path:s,method:"POST",body:n,...a})}function mo({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:s,method:"GET",...a})}function lo({entity:e=o(),entityId:t=o(),lockId:n=o(),deletionLockDocument:a=o(),...s}){const i=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:i,method:"PUT",body:a,...s})}function fo({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:s,method:"DELETE",...a})}const Po={listDeletionLock:so,getDeletionLock:io,updateDeletionLock:co,removeDeletionLock:uo,listEntityDeletionLock:ho,createEntityDeletionLock:po,getEntityDeletionLock:mo,updateEntityDeletionLock:lo,removeEntityDeletionLock:fo};function To({...e}={}){return r({path:"/API/document/",method:"GET",...e})}function $o({itemSearchDocument:e,...t}={}){return r({path:"/API/document/",method:"PUT",body:e,...t})}function go({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"GET",...t})}function Io({documentMetadataName:e=o(),metadataDocument:t,...n}){const a=`/API/document/${e}`;return r({path:a,body:t,method:"PUT",...n})}function Eo({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}/changes`;return r({path:n,method:"GET",...t})}function Ao({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"DELETE",...t})}const yo={listDocumentMetadata:To,searchDocumentMetadata:$o,getDocumentMetadata:go,updateDocumentMetadata:Io,getDocumentMetadataChanges:Eo,removeDocumentMetadata:Ao};function bo({...e}={}){return r({path:"/API/error",method:"GET",...e})}const So={listErrorLogs:bo};function Go({...e}={}){return r({path:"/API/export-location",method:"GET",...e})}function vo({locationName:e=o(),...t}){return r({path:`/API/export-location/${e}`,method:"GET",...t})}function ko({locationName:e=o(),exportLocationDocument:t,...n}){const a=`/API/export-location/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Uo({locationName:e=o(),...t}){const n=`/API/export-location/${e}`;return r({path:n,method:"DELETE",...t})}function Lo({locationName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/export-location/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function Co({locationName:e=o(),exportScript:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/export-location/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}const Mo={listExportLocation:Go,getExportLocation:vo,updateExportLocation:ko,removeExportLocation:Uo,getExportLocationScript:Lo,updateExportLocationScript:Co};function Do({...e}={}){return r({path:"/API/export-template",method:"GET",...e})}function xo({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"GET",...t})}function Oo({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"DELETE",...t})}function jo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function Fo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function Ro({templateName:e=o(),headers:t={},...n}){const a=`/API/export-template/${e}/graph`,s={accept:"image/png",...t};return r({path:a,method:"GET",headers:s,...n})}function wo({templateName:e=o(),headers:t={},...n}){const a=`/API/export-template/${e}/graph/dot`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function zo({...e}){return r({path:"/API/export-template/test",method:"POST",...e})}function qo({...e}){return r({path:"/API/export-template/test",method:"PUT",...e})}const Bo={listExportTemplete:Do,getExportTemplate:xo,removeExportTemplate:Oo,createExportTemplate:jo,updateExportTemplate:Fo,getExportTemplateGraph:Ro,getExportTemplateGraphDot:wo,createExportTemplateTest:zo,createExportTemplateTestRender:qo};function y(e){return e==="field-group"?"metadata-field/field-group":e}function No({...e}={}){return r({path:"/API/external-id",method:"GET",...e})}function Jo({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"GET",...t})}function Vo({idName:e=o(),externalIdentifierNamespaceDocument:t,...n}){const a=`/API/external-id/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Ko({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"DELETE",...t})}function Ho({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${y(e)}/${t}/external-id/`;return r({path:a,method:"GET",...n})}function Qo({entityType:e=o(),entityId:t=o(),externalId:n=o(),...a}){const s=`/API/${y(e)}/${t}/external-id/${n}`;return r({path:s,method:"PUT",...a})}function _o({entityType:e=o(),entityId:t=o(),externalId:n=o(),...a}){const s=`/API/${y(e)}/${t}/external-id/${n}`;return r({path:s,method:"DELETE",...a})}function Wo({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${y(e)}/${t}/external-id`;return r({path:a,method:"DELETE",...n})}const Xo={listExternalIdNamespace:No,getExternalIdNamespace:Jo,updateExternalIdNamespace:Vo,removeExternalIdNamespace:Ko,listExternalId:Ho,createExternalId:Qo,removeExternalId:_o,removeAllExternalId:Wo},{getSimpleMetadata:Yo}=E;function Zo({...e}={}){return r({path:"/API/metadata-field/field-group/",method:"GET",...e})}function ta({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/`;return r({path:n,method:"GET",...t})}function ea({groupName:e=o(),metadataFieldGroupDocument:t,...n}){const a=`/API/metadata-field/field-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function na({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}`;return r({path:n,method:"DELETE",...t})}function oa({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function aa({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function ra({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/group/${t}`;return r({path:a,method:"PUT",...n})}function sa({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/group/${t}`;return r({path:a,method:"DELETE",...n})}function ia({metadataFieldGroupSearchDocument:e,...t}){return r({path:"/API/metadata-field/field-group/",method:"PUT",body:e,...t})}function ca({groupName:e=o(),...t}){return Yo({entityType:"metadata-field/field-group",entityId:e,...t})}function ua({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/access`;return r({path:n,method:"GET",...t})}function ha({groupName:e=o(),metadataFieldAccessControlDocument:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/access`;return r({path:a,method:"POST",body:t,...n})}function pa({groupName:e=o(),accessId:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/access/${t}`;return r({path:a,method:"DELETE",...n})}function da({...e}={}){return r({path:"/API/metadata-field/field-group/merged-access",method:"GET",...e})}function ma({groupName:e=o(),...t}={}){const n=`/API/metadata-field/field-group/${e}/merged-access`;return r({path:n,method:"GET",...t})}const la={listFieldGroup:Zo,getFieldGroup:ta,updateFieldGroup:ea,removeFieldGroup:na,updateFieldGroupField:oa,removeFieldGroupField:aa,updateFieldGroupChild:ra,removeFieldGroupChild:sa,searchFieldGroup:ia,getSimpleMetadata:ca,listFieldGroupAccess:ua,createFieldGroupAccess:ha,removeFieldGroupAccess:pa,listFieldGroupMergedAccess:da,getFieldGroupMergedAccess:ma};function fa({...e}={}){return r({path:"/API/storage/file/",method:"GET",...e})}function Pa({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/`;return r({path:n,method:"GET",...t})}function Ta({...e}={}){return r({path:"/API/storage/file/importable/",method:"GET",...e})}function $a({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/importable/`;return r({path:n,method:"GET",...t})}function ga({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/`;return r({path:n,method:"GET",...t})}function Ia({storageId:e=o(),file:t=o(),headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/storage/${e}/file/data`;return r({path:i,method:"POST",body:t,headers:s,...a})}function Ea({fileId:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/storage/file/${e}/data`;return r({path:s,method:"GET",headers:a,responseType:"blob",...n})}function Aa({fileId:e=o(),file:t,headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/storage/file/${e}/data/`;return r({path:i,method:"POST",body:t,headers:s,...a})}function ya({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function ba({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function Sa({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/file/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function Ga({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function va({fileId:e=o(),targetStorageId:t=o(),...n}){const a=`/API/storage/file/${e}/storage/${t}/`;return r({path:a,method:"POST",...n})}function ka({fileId:e=o(),...t}){const n=`/API/storage/file/${e}`;return r({path:n,method:"DELETE",...t})}function Ua({storageId:e=o(),fileDocument:t,...n}){const a=`/API/storage/${e}/file/`;return r({path:a,method:"POST",body:t,...n})}function La({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/entity`;return r({path:n,method:"DELETE",...t})}function Ca({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/path/`;return r({path:n,method:"POST",...t})}function Ma({fileId:e=o(),state:t=o(),...n}){const a=`/API/storage/file/${e}/state/${t}`;return r({path:a,method:"PUT",...n})}function Da({fileId:e=o(),hash:t=o(),...n}){const a=`/API/storage/file/${e}/hash/${t}`;return r({path:a,method:"PUT",...n})}function xa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/abandon`;return r({path:n,method:"PUT",...t})}function Oa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/re-index`;return r({path:n,method:"PUT",...t})}function ja({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/uri`;return r({path:n,method:"POST",...t})}function Fa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze`;return r({path:n,method:"POST",...t})}function Ra({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze/imp`;return r({path:n,method:"POST",...t})}function wa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/shape`;return r({path:n,method:"GET",...t})}const C={listFile:fa,listFileStorage:Pa,listFileImportable:Ta,listFileStorageImportable:$a,getFile:ga,createFileRaw:Ia,getFileRaw:Ea,updateFileRaw:Aa,createFileImport:ya,createFileImportAssetMap:ba,createFilePathImportAssetMap:Sa,createFileImportPath:Ga,createFileMove:va,removeFile:ka,createFileEntity:Ua,removeFileEntity:La,createFilePath:Ca,updateFileState:Ma,updateFileHash:Da,abandonFile:xa,reindexFile:Oa,createFileTemporaryCredentials:ja,analyzeFile:Fa,analyzeFileImp:Ra,listFileShapes:wa};function za({...e}={}){return r({path:"/API/metadata",method:"GET",...e})}function qa({metadataDocument:e=o(),...t}){return r({path:"/API/metadata",method:"PUT",body:e,...t})}function Ba({uuid:e=o(),...t}){const n=`/API/metadata/${e}`;return r({path:n,method:"GET",...t})}function Na({uuid:e=o(),...t}={}){const n=`/API/metadata/${e}`;return r({path:n,method:"DELETE",...t})}const Ja={listGlobalMetadata:za,updateGlobalMetadata:qa,getGlobalMetadata:Ba,removeGlobalMetadata:Na};function Va({...e}={}){return r({path:"/API/group/",method:"GET",...e})}function Ka({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"GET",...t})}function Ha({groupName:e=o(),groupDocument:t,...n}){const a=`/API/group/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Qa({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"DELETE",...t})}function _a({...e}){return r({path:"/API/group/",method:"DELETE",...e})}function Wa({groupSearchDocument:e,...t}){return r({path:"/API/group/",method:"PUT",body:e,...t})}function Xa({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/role`;return r({path:s,method:"GET",headers:a,...n})}function Ya({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/description`;return r({path:s,method:"GET",headers:a,...n})}function Za({groupName:e=o(),description:t,headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/group/${e}/description`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function tr({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/parents/`;return r({path:s,method:"GET",headers:a,...n})}function er({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/children/`;return r({path:s,method:"GET",headers:a,...n})}function nr({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"PUT",...n})}function or({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"DELETE",...n})}function ar({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/users/`;return r({path:s,method:"GET",headers:a,...n})}function rr({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"PUT",...n})}function sr({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"DELETE",...n})}const ir={listGroup:Va,getGroup:Ka,updateGroup:Ha,removeGroup:Qa,removeGroupList:_a,searchGroup:Wa,getGroupRoleStatus:Xa,getGroupDescription:Ya,updateGroupDescription:Za,getGroupParents:tr,getGroupChildren:er,addGroupChildren:nr,removeGroupChildren:or,getGroupUser:ar,addGroupUser:rr,removeGroupUser:sr},{createFileEntity:cr,createFileTemporaryCredentials:ur,updateFileState:hr,abandonFile:pr}=C;function dr({metadataDocument:e={},...t}={}){return r({path:"/API/import/",method:"POST",body:e,...t})}function mr({...e}={}){return r({path:"/API/import/storage",method:"GET",...e})}function lr({file:e=o(),headers:t={},...n}){return r({path:"/API/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function fr({file:e=o(),headers:t={},...n}){return r({path:"/APInoauth/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function Pr({metadataDocument:e={},...t}={}){return r({path:"/API/import/raw-passkey/",method:"POST",body:e,...t})}function Tr({metadataDocument:e={},...t}={}){return r({path:"/API/import/imp/",method:"POST",body:e,...t})}function $r({metadataDocument:e={},...t}={}){return r({path:"/API/import/placeholder/",method:"POST",body:e,...t})}function gr({itemId:e=o(),component:t=o(),...n}){const a=`/API/import/placeholder/${e}/${t}/`;return r({path:a,method:"POST",...n})}function Ir({itemId:e=o(),component:t=o(),file:n=o(),headers:a={},...s}){const i=`/API/import/placeholder/${e}/${t}/raw/`;return r({path:i,method:"POST",body:n,headers:{contentType:"application/octet-stream",...a},...s})}function Er({itemId:e=o(),component:t=o(),file:n=o(),headers:a={},...s}){const i=`/APInoauth/import/placeholder/${e}/${t}/raw/`;return r({path:i,method:"POST",body:n,headers:{contentType:"application/octet-stream",...a},...s})}function Ar({itemId:e=o(),placeholderImportRequestDocument:t,...n}){const a=`/API/import/placeholder/${e}/`;return r({path:a,method:"POST",body:t,...n})}function yr({itemId:e=o(),...t}){const n=`/API/import/placeholder/${e}/raw-passkey/`;return r({path:n,method:"POST",...t})}function br({itemId:e=o(),component:t=o(),fileId:n=o(),...a}){const s=`/API/import/placeholder/${e}/${t}/adopt/${n}/`;return r({path:s,method:"POST",...a})}function Sr({itemId:e=o(),...t}){const n=`/API/import/sidecar/${e}/`;return r({path:n,method:"POST",...t})}function Gr({itemId:e=o(),file:t,headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/import/sidecar/${e}/raw/`;return r({path:i,method:"POST",body:t,headers:s,...a})}function vr({file:e=o(),storageId:t=o()}){return new Promise((n,a)=>{let s,i;cr({storageId:t,queryParams:{path:e.name}}).then(h=>(i=h.data,s=h.data.id,ur({fileId:s,queryParams:{write:!0,scheme:"https",duration:720}}))).then(h=>{const p=h.data.uri[0];return fetch(p,{method:"PUT",headers:{"Content-Type":"application/octet-stream"},body:e})}).then(()=>{hr({fileId:s,state:"CLOSED"})}).then(()=>{n(i)}).catch(h=>{s&&pr({fileId:s}),a(h.response)})})}const kr={createImportUri:dr,getImportStorage:mr,createImportRaw:lr,createImportRawNoAuth:fr,createImportRawPasskey:Pr,createImportImp:Tr,createImportPlaceholder:$r,createImportComponent:gr,createImportComponentRaw:Ir,createImportComponentRawNoAuth:Er,createImportItem:Ar,createImportItemPasskey:yr,createImportItemAdoptFile:br,createImportItemSidecar:Sr,createImportItemSidecarRaw:Gr,createImportS3Direct:vr};function Ur({...e}={}){return r({path:"/API/import/settings",method:"GET",...e})}function Lr({importSettingsDocument:e,...t}){return r({path:"/API/import/settings",method:"POST",body:e,...t})}function Cr({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"GET",...t})}function Mr({settingsId:e=o(),importSettingsDocument:t,...n}){const a=`/API/import/settings/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Dr({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"DELETE",...t})}const xr={listImportSettings:Ur,createImportSettings:Lr,getImportSettings:Cr,updateImportSettings:Mr,removeImportSettings:Dr},{updateEntityMetadata:Or,getEntityMetadata:jr}=E,{listEntityMetadataLock:Fr,createEntityMetadataLock:Rr,getEntityMetadataLock:wr,updateEntityMetadataLock:zr,removeEntityMetadataLock:qr}=S;function Br({...e}={}){return r({path:"/API/item/",method:"GET",...e})}function Nr({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"GET",...t})}function Jr({itemId:e=o(),...t}){const n=`/API/item/${e}/uri`;return r({path:n,method:"GET",...t})}function Vr({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"DELETE",...t})}function Kr({...e}={}){return r({path:"/API/item/",method:"DELETE",...e})}function Hr({itemSearchDocument:e={},...t}={}){return r({path:"/API/item/",method:"PUT",body:e,...t})}function Qr({metadataGroupSearchDocument:e,...t}){return r({path:"/API/item/metadata-group",method:"PUT",body:e,...t})}function _r({itemId:e=o(),metadataDocument:t,...n}){return Or({entity:"item",entityId:e,metadataDocument:t,...n})}function Wr({itemId:e=o(),...t}){return jr({entity:"item",entityId:e,...t})}function Xr({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function Yr({itemId:e=o(),...t}){const n=`/API/item/${e}/transcode`;return r({path:n,method:"POST",...t})}function Zr({itemId:e=o(),...t}){const n=`/API/item/${e}/export`;return r({path:n,method:"POST",...t})}function ts({itemId:e=o(),...t}){const n=`/API/item/${e}/export/imp`;return r({path:n,method:"POST",...t})}function es({itemId:e=o(),...t}){const n=`/API/item/${e}/relation`;return r({path:n,method:"GET",...t})}function ns({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"POST",...n})}function os({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation/",method:"POST",body:e,...t})}function as({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"DELETE",...n})}function rs({itemId:e=o(),...t}){const n=`/API/item/${e}/relation/`;return r({path:n,method:"DELETE",...t})}function ss({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation",method:"POST",body:e,...t})}function is({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"GET",...t})}function cs({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"PUT",...t})}function us({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"DELETE",...t})}function hs({...e}={}){return r({path:"/API/item/history",method:"GET",...e})}function ps({itemId:e=o(),...t}){const n=`/API/item/${e}/re-index`;return r({path:n,method:"PUT",...t})}function ds({...e}={}){return r({path:"/API/item/list",method:"POST",...e})}function ms({itemId:e=o(),...t}){const n=`/API/item/${e}/collections`;return r({path:n,method:"GET",...t})}function ls({itemId:e=o(),...t}){const n=`/API/item/${e}/library`;return r({path:n,method:"GET",...t})}function fs({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"POST",...t})}function Ps({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"GET",...t})}function Ts({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"DELETE",...t})}function $s({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"PUT",...t})}function gs({itemId:e=o(),...t}){return Fr({entity:"item",entityId:e,...t})}function Is({itemId:e=o(),...t}){return Rr({entity:"item",entityId:e,...t})}function Es({itemId:e=o(),lockId:t=o(),...n}){return wr({entity:"item",entityId:e,lockId:t,...n})}function As({itemId:e=o(),lockId:t=o(),...n}){return zr({entity:"item",entityId:e,lockId:t,...n})}function ys({itemId:e=o(),lockId:t=o(),...n}){return qr({entity:"item",entityId:e,lockId:t,...n})}function bs({itemId:e=o(),...t}){const n=`/API/item/${e}/loudness`;return r({path:n,method:"GET",...t})}function Ss({itemId:e=o(),...t}){const n=`/API/item/${e}/waveform/values`;return r({path:n,method:"GET",...t})}function Gs({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/waveform/image`,s={accept:"image/png",...t};return r({path:a,method:"GET",headers:s,...n})}function vs({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/waveform/imageURI`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function ks({itemId:e=o(),analyzeJobDocument:t,...n}){const a=`/API/item/${e}/analyze`;return r({path:a,method:"POST",body:t,...n})}const Us={listItem:Br,getItem:Nr,getItemUri:Jr,removeItem:Vr,removeItemList:Kr,searchItem:Hr,searchItemMetadataGroup:Qr,updateItemMetadata:_r,getItemMetadata:Wr,createThumbnail:Xr,createTranscode:Yr,createExport:Zr,createExportImp:ts,listItemRelation:es,createItemRelation:ns,createItemRelationList:os,removeItemRelation:as,removeAllItemRelation:rs,createRelation:ss,getRelation:is,updateRelation:cs,removeRelation:us,getItemSearchHistory:hs,reindexItem:ps,createItemList:ds,listItemCollection:ms,listItemLibrary:ls,createItemLock:fs,getItemLock:Ps,removeItemLock:Ts,updateItemLock:$s,listItemMetadataLock:gs,createItemMetadataLock:Is,getItemMetadataLock:Es,updateItemMetadataLock:As,removeItemMetadataLock:ys,getItemLoudness:bs,getItemWaveformValue:Ss,getItemWaveformImage:Gs,getItemWaveformImageUri:vs,createItemAnalyze:ks};function Ls({javascriptDocument:e,headers:t={},...n}){const a={contentType:"application/javascript",...t};return r({path:"/API/javascript/test",method:"POST",body:e,headers:a,...n})}const Cs={test:Ls};function l(e){return e==="file"?"storage/file":["metadata","access"].includes(e)?"item":e}function Ms({entityType:e=o(),...t}={}){const a=`/API/${l(e)}/notification/`;return r({path:a,method:"GET",...t})}function Ds({entityType:e=o(),entityId:t=o(),...n}={}){const s=`/API/${l(e)}/${t}/notification/`;return r({path:s,method:"GET",...n})}function xs({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"GET",...n})}function Os({notificationId:e=o(),entityType:t=o(),notificationDocument:n,...a}={}){const i=`/API/${l(t)}/notification/${e}`;return r({path:i,method:"PUT",body:n,...a})}function js({entityType:e=o(),notificationDocument:t,...n}={}){const s=`/API/${l(e)}/notification/`;return r({path:s,method:"POST",body:t,...n})}function Fs({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"DELETE",...n})}function Rs({notificationId:e=o(),entityType:t=o(),entityId:n=o(),...a}={}){const i=`/API/${l(t)}/${n}/notification/${e}`;return r({path:i,method:"GET",...a})}function ws({notificationId:e=o(),entityType:t=o(),entityId:n=o(),notificationDocument:a,...s}={}){const h=`/API/${l(t)}/${n}/notification/${e}`;return r({path:h,method:"PUT",body:a,...s})}function zs({entityType:e=o(),notificationDocument:t,entityId:n,...a}={}){const i=`/API/${l(e)}/${n}/notification/`;return r({path:i,method:"POST",body:t,...a})}function qs({notificationId:e=o(),entityType:t=o(),entityId:n=o(),...a}={}){const i=`/API/${l(t)}/${n}/notification/${e}`;return r({path:i,method:"DELETE",...a})}const M={listNotification:Ms,listNotificationEntity:Ds,getNotification:xs,updateNotification:Os,createNotification:js,removeNotification:Fs,getNotificationEntity:Rs,updateNotificationEntity:ws,createNotificationEntity:zs,removeNotificationEntity:qs},{listNotification:Bs}=M;function Ns({...e}={}){return r({path:"/API/job/",method:"GET",...e})}function Js({jobSearchDocument:e={},...t}={}){return r({path:"/API/job/search/",method:"PUT",body:e,...t})}function Vs({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"GET",...t})}function Ks({simpleMetadataDocument:e,...t}={}){return r({path:"/API/job",method:"POST",body:e,...t})}function Hs({jobId:e=o(),...t}){const n=`/API/job/${e}/re-run`;return r({path:n,method:"POST",...t})}function Qs({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"PUT",...t})}function _s({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"DELETE",...t})}function Ws({...e}={}){return r({path:"/API/job/",method:"DELETE",...e})}function Xs({...e}={}){return Bs({entityType:"job",...e})}const Ys={listJob:Ns,searchJob:Js,getJob:Vs,createJob:Ks,duplicateJob:Hs,modifyJob:Qs,abortJob:_s,deleteJob:Ws,listJobNotification:Xs};function Zs({...e}={}){return r({path:"/API/library/",method:"GET",...e})}function ti({itemListDocument:e={},...t}){return r({path:"/API/library",method:"POST",body:e,...t})}function ei({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"DELETE",...t})}function ni({...e}={}){return r({path:"/API/library",method:"DELETE",...e})}function oi({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"GET",...t})}function ai({libraryId:e=o(),itemListDocument:t,...n}){const a=`/API/library/${e}`;return r({path:a,method:"PUT",body:t,...n})}function ri({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"PUT",...n})}function si({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function ii({libraryId:e=o(),metadataDocument:t,...n}){const a=`/API/library/${e}/item-metadata`;return r({path:a,method:"PUT",body:t,...n})}function ci({libraryId:e=o(),...t}){const n=`/API/library/${e}/settings`;return r({path:n,method:"GET",...t})}function ui({libraryId:e=o(),librarySettingsDocument:t,...n}){const a=`/API/library/${e}/settings`;return r({path:a,method:"PUT",body:t,...n})}function hi({libraryId:e=o(),...t}){const n=`/API/library/${e}/list`;return r({path:n,method:"POST",...t})}function pi({libraryId:e=o(),queryParams:t=o(),...n}){const a=`/API/library/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}const di={listLibrary:Zs,createLibrary:ti,removeLibrary:ei,removeLibraryList:ni,getLibrary:oi,updateLibrary:ai,addLibraryItem:ri,removeLibraryItem:si,updateLibraryItemMetadata:ii,getLibrarySettings:ci,updateLibrarySettings:ui,getLibraryBatch:hi,exportLibrary:pi};function mi({file:e=o(),headers:t={},...n}){const a={contentType:"application/octet-stream",...t};return r({path:"/API/license",method:"POST",body:e,headers:a,...n})}const li={createLicense:mi};function fi({...e}={}){return r({path:"/API/metadata/dataset",method:"GET",...e})}function Pi({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"GET",...t})}function Ti({datasetId:e=o(),body:t=o(),...n}){const a=`/API/metadata/dataset/${e}`;return r({path:a,method:"PUT",body:t,...n})}function $i({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"DELETE",...t})}const gi={listMetadataDataset:fi,getMetadataDataset:Pi,updateMetadataDataset:Ti,removeMetadataDataset:$i},{getSimpleMetadata:Ii}=E;function Ei({...e}={}){return r({path:"/API/metadata-field/",method:"GET",...e})}function Ai({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/`;return r({path:n,method:"GET",...t})}function yi({fieldName:e=o(),metadataFieldDocument:t,...n}){const a=`/API/metadata-field/${e}`;return r({path:a,method:"PUT",body:t,...n})}function bi({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}`;return r({path:n,method:"DELETE",...t})}function Si({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/values/`;return r({path:n,method:"GET",...t})}function Gi({fieldName:e=o(),metadataFieldValueConstraintListDocument:t,...n}){const a=`/API/metadata-field/${e}/allowed-values/`;let s="GET";return t&&(s="POST"),r({path:a,method:s,body:t,...n})}function vi({fieldName:e=o(),simpleMetadataDocument:t,...n}){const a=`/API/metadata-field/${e}/values`;return r({path:a,method:"PUT",body:t,...n})}function ki({fieldName:e=o(),...t}){return Ii({entityType:"metadata-field",entityId:e,...t})}function Ui({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/access`;return r({path:n,method:"GET",...t})}function Li({fieldName:e=o(),metadataFieldAccessControlDocument:t=o(),...n}){const a=`/API/metadata-field/${e}/access`;return r({path:a,method:"POST",body:t,...n})}function Ci({fieldName:e=o(),accessId:t=o(),...n}){const a=`/API/metadata-field/${e}/access/${t}`;return r({path:a,method:"DELETE",...n})}function Mi({...e}={}){return r({path:"/API/metadata-field/merged-access",method:"GET",...e})}function Di({fieldName:e=o(),...t}={}){const n=`/API/metadata-field/${e}/merged-access`;return r({path:n,method:"GET",...t})}const xi={listMetadataField:Ei,getMetadataField:Ai,updateMetadataField:yi,removeMetadataField:bi,getMetadataFieldValues:Si,getMetadataFieldAllowedValues:Gi,updateMetadataFieldValues:vi,getSimpleMetadata:ki,listMetadataFieldAccess:Ui,createMetadataFieldAccess:Li,removeMetadataFieldAccess:Ci,listMetadataFieldMergedAccess:Mi,getMetadataFieldMergedAccess:Di};function Oi({...e}={}){return r({path:"/API/metadata/migration",method:"GET",...e})}function ji({migrationId:e=o(),...t}){const n=`/API/metadata/migration/${e}`;return r({path:n,method:"GET",...t})}function Fi({metadataSchemaMigrationDocument:e=o(),...t}){return r({path:"/API/metadata/migration",method:"POST",body:e,...t})}const Ri={listMetadataMigration:Oi,getMetadataMigration:ji,createMetadataMigration:Fi};function wi({...e}={}){return r({path:"/API/metadata-schema",method:"GET",...e})}function zi({metadataSchemaDocument:e=o(),...t}){return r({path:"/API/metadata-schema",method:"PUT",body:e,...t})}function qi({...e}={}){return r({path:"/API/metadata-schema",method:"DELETE",...e})}function Bi({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"GET",...t})}function Ni({groupName:e=o(),metadataSchemaGroupDocument:t=o(),...n}={}){const a=`/API/metadata-schema${e}`;return r({path:a,method:"PUT",body:t,...n})}function Ji({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"DELETE",...t})}function Vi({...e}={}){return r({path:"/API/metadata-field/terse-schema",method:"GET",...e})}const Ki={getMetadataSchema:wi,updateMetadataSchema:zi,removeMetadataSchema:qi,getMetadataSchemaGroup:Bi,updateMetadataSchemaGroup:Ni,removeMetadataSchemaGroup:Ji,getTerseMetadataSchema:Vi};function Hi({...e}={}){return r({path:"/APInoauth/is-online/",method:"GET",...e})}function Qi({...e}={}){return r({path:"/APInoauth/selftest/",method:"GET",...e})}function _i({headers:e={},...t}={}){const n={accept:"text/plain",...e};return r({path:"/APIinit/",method:"POST",headers:n,...t})}function Wi({path:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t};return r({path:e,method:"GET",headers:a,responseType:"blob",...n})}const Xi={getSelfTest:Qi,createInit:_i,getFileRaw:Wi,isOnline:Hi};function Yi({projectDocument:e=o(),...t}){return r({path:"/API/collection/project/",method:"POST",body:e,...t})}function Zi({collectionId:e=o(),projectVersionDocument:t=o(),...n}){const a=`/API/collection/${e}/version`;return r({path:a,method:"POST",body:t,...n})}function tc({collectionId:e=o(),headers:t={},...n}){const a=`/API/collection/${e}/definition`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function ec({collectionId:e=o(),format:t=o(),body:n=o(),headers:a={},...s}){const i=`/API/collection/${e}/definition/${t}`,h={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",body:n,headers:h,...s})}function nc({collectionId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/collection/${e}/definition/${t}`,i={accept:"application/octet-stream",...n};return r({path:s,method:"GET",headers:i,...a})}function oc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}`;return r({path:a,method:"DELETE",...n})}function ac({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"GET",...n})}function rc({collectionId:e=o(),format:t=o(),essenceMappingsDocument:n=o(),...a}){const s=`/API/collection/${e}/definition/${t}/asset`;return r({path:s,method:"PUT",body:n,...a})}function sc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"DELETE",...n})}function ic({collectionId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/collection/${e}/definition/${t}/extradata`,i={accept:"application/octet-stream",...n};return r({path:s,method:"GET",headers:i,...a})}function cc({collectionId:e=o(),format:t=o(),body:n=o(),headers:a={},...s}){const i=`/API/collection/${e}/definition/${t}/extradata`,h={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",headers:h,body:n,...s})}function uc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/extradata`;return r({path:a,method:"DELETE",...n})}function hc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/collection/project/inspect",method:"POST",body:t,queryParams:e,...n})}function pc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project",method:"POST",body:t,queryParams:e,...n})}function dc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project/sequence",method:"POST",body:t,queryParams:e,...n})}function mc({collectionId:e=o(),queryParams:t=o(),exportRequestDocument:n,...a}){const s=`/API/collection/${e}/version/export`;let i="GET";return n&&(i="POST"),r({path:s,method:i,body:n,queryParams:t,...a})}const lc={createProject:Yi,createProjectVersion:Zi,listProjectDefinition:tc,updateProjectDefinition:ec,getProjectDefinition:nc,removeProjectDefinition:oc,getProjectDefinitionAsset:ac,updateProjectDefinitionAsset:rc,removeProjectDefinitionAsset:sc,getProjectDefinitionExtraData:ic,updateProjectDefinitionExtraData:cc,removeProjectDefinitionExtraData:uc,inspectProjectFile:hc,importProject:pc,importProjectSequence:dc,exportProjectVersionSequence:mc};function fc({...e}={}){return r({path:"/API/projection/",method:"GET",...e})}function Pc({projectionId:e=o(),headers:t={},...n}){const a=`/API/projection/${e}/outgoing`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}function Tc({projectionId:e=o(),headers:t={},...n}){const a=`/API/projection/${e}/incoming`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}function $c({projectionId:e=o(),projectionDocument:t,headers:n={},...a}){const s=`/API/projection/${e}/outgoing`,i={contentType:"application/xml",accept:"application/xml",...n};return r({path:s,method:"PUT",body:t,headers:i,...a})}function gc({projectionId:e=o(),projectionDocument:t,headers:n={},...a}){const s=`/API/projection/${e}/incoming`,i={contentType:"application/xml",accept:"application/xml",...n};return r({path:s,method:"PUT",body:t,headers:i,...a})}function Ic({projectionId:e=o(),...t}){const n=`/API/projection/${e}`;return r({path:n,method:"DELETE",...t})}const Ec={listProjection:fc,getProjectionOutgoing:Pc,getProjectionIncoming:Tc,updateProjectionOutgoing:$c,updateProjectionIncoming:gc,removeProjection:Ic};function Ac({...e}={}){return r({path:"/API/quota/",method:"GET",...e})}function yc({quotaRuleDocument:e,...t}){return r({path:"/API/quota/",method:"POST",body:e,...t})}function bc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"GET",...t})}function Sc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"PUT",...t})}function Gc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"DELETE",...t})}const vc={listQuota:Ac,createQuota:yc,getQuota:bc,evaluateQuota:Sc,removeQuota:Gc};function kc({indexName:e=o(),...t}){const n=`/API/reindex/${e}`;return r({path:n,method:"GET",...t})}function Uc({indexName:e=o(),...t}){const n=`/API/reindex/${e}/`;return r({path:n,method:"PUT",...t})}const Lc={getReindex:kc,updateReindex:Uc};function Cc({...e}={}){return r({path:"/API/resource/",method:"GET",...e})}function Mc({resourceType:e=o(),...t}){const n=`/API/resource/${e}`;return r({path:n,method:"GET",...t})}function Dc({resourceType:e=o(),resourceDocument:t,...n}){const a=`/API/resource/${e}`;return r({path:a,method:"POST",body:t,...n})}function xc({resourceType:e=o(),resourceId:t=o(),resourceDocument:n,...a}){const s=`/API/resource/${e}/${t}`;return r({path:s,method:"PUT",body:n,...a})}function Oc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"GET",...n})}function jc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function Fc({resourceType:e=o(),resourceId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/resource/${e}/${t}/status`;return r({path:i,method:"GET",headers:s,...a})}const Rc={listResource:Cc,listResourceType:Mc,createResource:Dc,modifyResource:xc,getResource:Oc,removeResource:jc,statusResource:Fc};function wc({...e}){return r({path:"/API/scheduled-request/",method:"GET",...e})}function zc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"GET",...t})}function qc({requestId:e=o(),headers:t={},...n}){const a=`/API/scheduled-request/${e}/response`,s={accept:"*/*",...t};return r({path:a,headers:s,method:"GET",...n})}function Bc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"DELETE",...t})}function Nc({...e}){return r({path:"/API/scheduled-request",method:"DELETE",...e})}const Jc={listScheduledRequest:wc,getScheduledRequest:zc,getScheduledRequestResponse:qc,removeScheduledRequest:Bc,removeAllScheduledRequest:Nc};function Vc({...e}={}){return r({path:"/API/search/",method:"GET",...e})}function Kc({itemSearchDocument:e,...t}){return r({path:"/API/search/",method:"PUT",body:e,...t})}function Hc({metadataGroupSearchDocument:e,...t}){return r({path:"/API/search/metadata-group",method:"PUT",body:e,...t})}function Qc({shapeSearchDocument:e,...t}){return r({path:"/API/search/shape/",method:"PUT",body:e,...t})}function _c({fileSearchDocument:e,...t}){return r({path:"/API/search/file/",method:"PUT",body:e,...t})}function Wc({autocompleteRequestDocument:e,...t}){return r({path:"/API/search/autocomplete/",method:"PUT",body:e,...t})}const Xc={listItemCollection:Vc,searchItemCollection:Kc,searchItemCollectionMetadataGroup:Hc,searchShape:Qc,searchFile:_c,searchAutoComplete:Wc};function Yc({noAuth:e=!1,...t}={}){return r({path:e?"/APInoauth/selftest/":"/API/selftest/",method:"GET",...t})}function Zc({testName:e=o(),...t}={}){const n=`/API/selftest/${e}`;return r({path:n,method:"GET",...t})}const tu={listSelfTest:Yc,getSelfTest:Zc};function eu({itemId:e=o(),format:t=o(),sequenceDefinition:n,headers:a={},...s}){const i=`/API/item/${e}/sequence/${t}`,h={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",body:n,headers:h,...s})}function nu({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence`;return r({path:n,method:"GET",...t})}function ou({itemId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/item/${e}/sequence/${t}`,i={accept:"*/*",...n};return r({path:s,method:"GET",headers:i,...a})}function au({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/conform-metadata`;return r({path:n,method:"POST",...t})}function ru({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/render`;return r({path:n,method:"POST",...t})}function su({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/sequence/${t}`;return r({path:a,method:"DELETE",...n})}function iu({sequenceRenderRequestDocument:e=o(),...t}){return r({path:"/API/sequence/render",method:"POST",body:e,...t})}function cu({queryParams:e=o(),exportRequestDocument:t,...n}){return r({path:"/API/sequence/export",method:"POST",body:t,queryParams:e,...n})}function uu({itemId:e=o(),queryParams:t=o(),exportRequestDocument:n,...a}){const s=`/API/item/${e}/sequence/export`;let i="GET";return n&&(i="POST"),r({path:s,method:i,body:n,queryParams:t,...a})}const hu={updateItemSequence:eu,listItemSequence:nu,getItemSequence:ou,conformItemSequence:au,renderItemSequence:ru,removeItemSequence:su,renderSequence:iu,exportSequence:cu,exportItemSequence:uu};function pu({...e}={}){return r({path:"/API/vidispine-service",method:"GET",...e})}function du({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}`;return r({path:n,method:"GET",...t})}function mu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}/enable`;return r({path:n,method:"PUT",...t})}function lu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}/disable`;return r({path:n,method:"PUT",...t})}function fu({headers:e={},...t}={}){const n="/API/vidispine-service/stacktrace",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}const Pu={getServiceList:pu,getService:du,enableService:mu,disableService:lu,getStackTrace:fu};function Tu({itemId:e=o(),metadataDocument:t={},headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/item/${e}/shape/placeholder`;return r({path:i,method:"POST",body:t,headers:s,...a})}function $u({itemId:e=o(),shapeDocument:t={},...n}){const a=`/API/item/${e}/shape/create`;return r({path:a,method:"POST",body:t,...n})}function gu({itemId:e=o(),shapeId:t=o(),simpleMetadataDocument:n={},...a}){const s=`/API/item/${e}/shape/${t}/placeholder`;return r({path:s,method:"PUT",body:n,...a})}function Iu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"POST",...t})}function Eu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/imp`;return r({path:n,method:"POST",...t})}function Au({itemId:e=o(),headers:t={},file:n,...a}){const s=`/API/item/${e}/shape/raw`,i={contentType:"application/octet-stream",...t};return r({path:s,method:"POST",body:n,headers:i,...a})}function yu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"GET",...t})}function bu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/`;return r({path:a,method:"GET",...n})}function Su({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function Gu({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function vu({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/cpl`,i={accept:"application/xml",...n};return r({path:s,method:"GET",headers:i,...a})}function ku({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function Uu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version`;return r({path:n,method:"GET",...t})}function Lu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"GET",...n})}function Cu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"DELETE",...n})}function Mu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version/`;return r({path:n,method:"POST",...t})}function Du({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"POST",...n})}function xu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/essence`;return r({path:n,method:"POST",...t})}function Ou({itemId:e=o(),headers:t={},file:n,...a}){const s=`/API/item/${e}/shape/essence/raw`,i={contentType:"application/octet-stream",...t};return r({path:s,body:n,method:"POST",headers:i,...a})}function ju({itemId:e=o(),shapeId:t=o(),...n}={}){const a=`/API/item/${e}/shape/${t}`;return r({path:a,method:"DELETE",...n})}function Fu({itemId:e=o(),...t}={}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"DELETE",...t})}function Ru({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function wu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/thumbnail`;return r({path:a,method:"POST",...n})}function zu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/update`;return r({path:a,method:"POST",...n})}function qu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}file`;return r({path:a,method:"GET",...n})}function Bu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/tag`;return r({path:a,method:"GET",...n})}function Nu({itemId:e=o(),shapeId:t=o(),tagName:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/tag/${n}`;return r({path:s,method:"PUT",...a})}function Ju({itemId:e=o(),shapeId:t=o(),tagName:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/tag/${n}`;return r({path:s,method:"DELETE",...a})}function Vu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/mime`;return r({path:a,method:"GET",...n})}function Ku({itemId:e=o(),shapeId:t=o(),mimeType:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/mime/${n}`;return r({path:s,method:"PUT",...a})}function Hu({itemId:e=o(),shapeId:t=o(),mimeType:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/mime/${n}`;return r({path:s,method:"DELETE",...a})}function Qu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/filename`;return r({path:a,method:"GET",...n})}function _u({itemId:e=o(),shapeId:t=o(),storageId:n=o(),queryParams:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/filename/${n}`;return r({path:i,method:"PUT",queryParams:a,...s})}function Wu({itemId:e=o(),shapeId:t=o(),storageId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/filename/${n}`;return r({path:s,method:"DELETE",...a})}function Xu({itemId:e=o(),shapeId:t=o(),analyzeJobDocument:n,...a}){const s=`/API/item/${e}/shape/${t}/analyze`;return r({path:s,method:"POST",body:n,...a})}function Yu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-render`;return r({path:a,method:"POST",...n})}function Zu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-edl`;return r({path:a,method:"GET",...n})}function th({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlight-render`;return r({path:a,method:"POST",...n})}function eh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlighter-edl`;return r({path:a,method:"GET",...n})}const nh={createShapePlaceholder:Tu,createShape:$u,updateShapePlaceholder:gu,createShapeImport:Iu,createShapeImportImp:Eu,createShapeImportRaw:Au,listShape:yu,getShape:bu,getShapeGraph:Su,getShapeGraphDot:Gu,getShapeCpl:vu,createShapeTranscode:ku,listShapeEssence:Uu,getShapeEssence:Lu,removeShapeEssence:Cu,copyShapeEssence:Mu,copyShapeEssenceSpecific:Du,createShapeEssenceImport:xu,createShapeEssenceImportRaw:Ou,removeShape:ju,removeShapeAll:Fu,createTranscode:Ru,createThumbnail:wu,createDeduction:zu,listShapeFile:qu,getShapeTag:Bu,updateShapeTag:Nu,removeShapeTag:Ju,getShapeMime:Vu,updateShapeMime:Ku,removeShapeMime:Hu,getShapeFileNameRule:Qu,createShapeFileNameRule:_u,removeShapeFileNameRule:Wu,createShapeAnalyze:Xu,createSmartcrop:Yu,getSmartcrop:Zu,createHighlight:th,getHighlight:eh};function oh({...e}={}){return r({path:"/API/shape-tag/",method:"GET",...e})}function ah({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"GET",...t})}function rh({tagName:e=o(),transcodePresetDocument:t,...n}){const a=`/API/shape-tag/${e}`;return r({path:a,method:"PUT",body:t,...n})}function sh({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"DELETE",...t})}function ih({tagName:e=o(),headers:t={},...n}){const a={accept:"application/javascript",...t},s=`/API/shape-tag/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function ch({tagName:e=o(),shapeTagScript:t,headers:n={},...a}){const s={contentType:"application/javascript",...n},i=`/API/shape-tag/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function uh({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}/script`;return r({path:n,method:"DELETE",...t})}function hh({tagName:e=o(),itemId:t=o(),shapeId:n=o(),...a}){const s=`/API/shape-tag/${e}/item/${t}/shape/${n}/`;return r({path:s,method:"GET",...a})}function ph({...e}={}){return r({path:"/APIinit/preset-templates",method:"PUT",...e})}const dh={listShapeTag:oh,getShapeTag:ah,updateShapeTag:rh,removeShapeTag:sh,getShapeTagScript:ih,updateShapeTagScript:ch,removeShapeTagScript:uh,testShapeTagScript:hh,createShapeTagPreset:ph};function mh({headers:e={},...t}={}){const n={accept:"image/png",...e};return r({path:"/APInoauth/stitch",method:"GET",headers:n,...t})}const lh={getStitch:mh};function fh({...e}={}){return r({path:"/API/storage/",method:"GET",...e})}function Ph({storageDocument:e,...t}){return r({path:"/API/storage/",method:"POST",body:e,...t})}function Th({storageId:e=o(),...t}){const n=`/API/storage/${e}/`;return r({path:n,method:"GET",...t})}function $h({storageId:e=o(),storageDocument:t,...n}){const a=`/API/storage/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function gh({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/metadata`;return r({path:a,method:"PUT",body:t,...n})}function Ih({storageId:e=o(),key:t=o(),metadataValue:n,headers:a={},...s}){const i={contentType:"text/plain",...a},h=`/API/storage/${e}/metadata/${t}`;return r({path:h,method:"PUT",body:n,headers:i,...s})}function Eh({storageId:e=o(),key:t=o(),...n}){const a=`/API/storage/${e}/metadata/${t}`;return r({path:a,method:"DELETE",...n})}function Ah({storageId:e=o(),...t}){const n=`/API/storage/${e}/rescan`;return r({path:n,method:"POST",...t})}function yh({storageId:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/storage/${e}/method/`;return r({path:s,method:"PUT",headers:a,...n})}function bh({storageId:e=o(),storageMethodId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/storage/${e}/method/${t}/`;return r({path:i,method:"PUT",headers:s,...a})}function Sh({storageId:e=o(),storageMethodId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/storage/${e}/method/${t}`;return r({path:i,method:"DELETE",headers:s,...a})}function Gh({storageId:e=o(),storageMethodId:t=o(),...n}){const a=`/API/storage/${e}/method/${t}`;return r({path:a,method:"GET",...n})}function vh({storageId:e=o(),...t}){const n=`/API/storage/${e}/method/`;return r({path:n,method:"GET",...t})}function kh({storageId:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/storage/${e}/`;return r({path:s,method:"DELETE",headers:a,...n})}function Uh({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"PUT",...t})}function Lh({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"DELETE",...t})}function Ch({storageId:e=o(),storageType:t=o(),...n}){const a=`/API/storage/${e}/type/${t}`;return r({path:a,method:"PUT",...n})}const Mh={listStorage:fh,createStorage:Ph,getStorage:Th,modifyStorage:$h,modifyStorageMetadata:gh,modifyStorageMetadataKey:Ih,removeStorageMetadata:Eh,rescanStorage:Ah,createStorageMethod:yh,modifyStorageMethod:bh,removeStorageMethod:Sh,getStorageMethod:Gh,listStorageMethod:vh,removeStorage:kh,startEvacuateStorage:Uh,cancelEvacuateStorage:Lh,updateStorageType:Ch};function Dh({...e}={}){return r({path:"/API/storage/storage-group/",method:"GET",...e})}function xh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"PUT",...t})}function Oh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"GET",...t})}function jh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"DELETE",...t})}function Fh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function Rh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}const wh={listStorageGroup:Dh,createStorageGroup:xh,getStorageGroup:Oh,removeStorageGroup:jh,addStorageGroupStorage:Fh,removeStorageGroupStorage:Rh};function zh({...e}={}){return r({path:"/API/storage-rule/",method:"GET",...e})}function qh({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"GET",...n})}function Bh({entityType:e=o(),entityId:t=o(),storageRuleDocument:n,...a}){const s=`/API/${e}/${t}/storage-rule`;return r({path:s,method:"PUT",body:n,...a})}function Nh({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"DELETE",...n})}function Jh({entityType:e=o(),entityId:t=o(),tagName:n=o(),...a}){const s=`/API/${e}/${t}/storage-rule/${n}`;return r({path:s,method:"GET",...a})}function Vh({entityType:e=o(),entityId:t=o(),tagName:n=o(),storageRuleDocument:a,...s}){const i=`/API/${e}/${t}/storage-rule/${n}`;return r({path:i,method:"PUT",body:a,...s})}function Kh({entityType:e=o(),entityId:t=o(),tagName:n=o(),...a}){const s=`/API/${e}/${t}/storage-rule/${n}`;return r({path:s,method:"DELETE",...a})}function Hh({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"GET",...t})}function Qh({tagName:e=o(),storageRuleDocument:t,...n}){const a=`/API/shape-tag/storage-rule/${e}`;return r({path:a,method:"PUT",body:t,...n})}function _h({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"DELETE",...t})}const Wh={listStorageRule:zh,getEntityStorageRule:qh,updateEntityStorageRule:Bh,removeEntityStorageRule:Nh,getEntityStorageRuleTag:Jh,updateEntityStorageRuleTag:Vh,removeEntityStorageRuleTag:Kh,getStorageRuleShapeTag:Hh,updateStorageRuleShapeTag:Qh,removeStorageRuleShapeTag:_h};function Xh({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/metadata/export/scc`,s={accept:"text/plain ",...t};return r({path:a,method:"GET",headers:s,...n})}function Yh({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/metadata/export/ttml`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}const Zh={getSubtitleSCC:Xh,getSubtitleTTML:Yh};function tp({...e}={}){return r({path:"/API/jobtype",method:"GET",...e})}function ep({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"POST",...t})}function np({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"DELETE",...t})}function op({...e}={}){return r({path:"/API/task-definition",method:"GET",...e})}function ap({taskDefinitionType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"GET",...t})}function rp({taskDefinitionListDocument:e,...t}){return r({path:"/API/task-definition",method:"POST",body:e,...t})}function sp({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"GET",...t})}function ip({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"GET",...n})}function cp({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"DELETE",...t})}function up({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"DELETE",...n})}function hp({taskDefinitionId:e=o(),taskDefinitionDocument:t=o(),...n}){const a=`/API/task-definition/${e}`;return r({path:a,method:"PUT",body:t,...n})}function pp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),taskDefinitionDocument:n,...a}){const s=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:s,method:"PUT",body:n,...a})}function dp({taskDefinitionId:e=o(),headers:t={},...n}){const a={accept:"application/javascript",...t},s=`/API/task-definition/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function mp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),headers:n={},...a}){const s={accept:"application/javascript",...n},i=`/API/task-definition/jobtype/${e}/step/${t}/script`;return r({path:i,method:"GET",headers:s,...a})}function lp({taskDefinitionId:e=o(),scriptDocument:t,headers:n={},...a}){const s={contentType:"application/javascript",accept:"application/javascript",...n},i=`/API/task-definition/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function fp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),scriptDocument:n,headers:a={},...s}){const i={contentType:"application/javascript",accept:"application/javascript",...a},h=`/API/task-definition/jobtype/${e}/step/${t}/script`;return r({path:h,method:"PUT",body:n,headers:i,...s})}const Pp={listJobType:tp,createJobType:ep,removeJobType:np,listTaskDefinition:op,getTaskDefinitionType:ap,createTaskDefinition:rp,getTaskDefinition:sp,getTaskDefinitionStep:ip,removeTaskDefinition:cp,removeTaskDefinitionStep:up,modifyTaskDefinition:hp,modifyTaskDefinitionStep:pp,getTaskDefinitionScript:dp,getTaskDefinitionStepScript:mp,updateTaskDefinitionScript:lp,updateTaskDefinitionStepScript:fp};function Tp({...e}={}){return r({path:"/API/task-group",method:"GET",...e})}function $p({groupName:e=o(),taskGroupDocument:t,...n}){const a=`/API/task-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function gp({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"GET",...t})}function Ip({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"DELETE",...t})}function Ep({...e}={}){return r({path:"/API/task-group",method:"DELETE",...e})}function Ap({groupName:e=o(),transcoderId:t=o(),taskGroupDocument:n,...a}){const s=`/API/task-group/${e}/transcoder/${t}`;return r({path:s,method:"PUT",...a})}function yp({groupName:e=o(),transcoderId:t=o(),...n}){const a=`/API/task-group/${e}/transcoder/${t}`;return r({path:a,method:"DELETE",...n})}const bp={listTaskGroup:Tp,updateTaskGroup:$p,getTaskGroup:gp,removeTaskGroup:Ip,removeAllTaskGroup:Ep,updateTaskGroupTranscoder:Ap,removeTaskGroupTranscoder:yp};function Sp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function Gp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"GET",...t})}function vp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"PUT",...t})}function kp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"GET",...n})}function Up({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function Lp({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},file:s,...i}){const h=`/API/thumbnail/${t}/${e}/${n}`,p={accept:"text/plain",...a};return r({path:h,method:"PUT",body:s,headers:p,...i})}function Cp({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},...s}){const i=`/API/thumbnail/${t}/${e}/${n}`,h={accept:"image/png, image/jpeg",...a};return r({path:i,method:"GET",headers:h,...s})}function Mp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/thumbnail/${t}/${e}/${n}/export`;return r({path:s,method:"GET",...a})}function Dp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/thumbnail/${t}/${e}/${n}`;return r({path:s,method:"DELETE",...a})}function xp({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"GET",...t})}function Op({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"PUT",...t})}function jp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"GET",...n})}function Fp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function Rp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}`;return r({path:s,method:"PUT",...a})}function wp({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},...s}){const i=`/API/poster/${t}/${e}/${n}`,h={accept:"image/png, image/jpeg",...a};return r({path:i,method:"GET",headers:h,...s})}function zp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}/export`;return r({path:s,method:"GET",...a})}function qp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}`;return r({path:s,method:"DELETE",...a})}const Bp={createThumbnail:Sp,listThumbnailResource:Gp,createThumbnailResource:vp,listThumbnail:kp,removeAllThumbnail:Up,updateThumbnail:Lp,getThumbnail:Cp,exportThumbnail:Mp,removeThumbnail:Dp,listPosterResource:xp,createPosterResource:Op,listPoster:jp,removeAllPoster:Fp,updatePoster:Rp,getPoster:wp,exportPoster:zp,removePoster:qp};function Np({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/timeline`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function Jp({itemId:e=o(),...t}){const n=`/API/item/${e}/timeline`;return r({path:n,method:"DELETE",...t})}function Vp({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"GET",...n})}function Kp({itemId:e=o(),format:t=o(),body:n=o(),...a}){const s=`/API/item/${e}/timeline/${t}`;return r({path:s,method:"PUT",body:n,...a})}function Hp({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"DELETE",...n})}const Qp={getTimeline:Np,removeTimeline:Jp,getTimelineFormat:Vp,updateTimelineFormat:Kp,removeTimelineFormat:Hp};function _p({...e}={}){return r({path:"/API/transfer/",method:"GET",...e})}function Wp({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"GET",...t})}function Xp({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"PUT",...t})}function Yp({...e}={}){return r({path:"/API/log/transfer-log/",method:"GET",...e})}const Zp={listTransfer:_p,getTransfer:Wp,updateTransferPriority:Xp,listTransferLog:Yp};function td({username:e=o(),password:t=o(),file:n=o(),headers:a={},...s}){const i={accept:"text/html",...a};i.delete("content-type");const h="/UploadLicense/getlic",p=new FormData;return p.append("user",e),p.append("pass",t),p.append("file",n),r({path:h,body:p,method:"POST",headers:i,...s})}const ed={createLicense:td};function nd({headers:e={},...t}={}){const n="/API/whoami",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function od({username:e=o(),password:t,headers:n={},...a}){const s={username:e,password:t,accept:"text/plain",...n},i=`/API/user/${e}/token`;return r({path:i,method:"GET",headers:s,...a})}function ad({...e}={}){return r({path:"/API/user/",method:"GET",...e})}function rd({userDocument:e,...t}){return r({path:"/API/user/",method:"POST",body:e,...t})}function sd({userName:e=o(),...t}){const n=`/API/user/${e}`;return r({path:n,method:"GET",...t})}function id({userName:e=o(),...t}){const n=`/API/user/${e}/graph`;return r({path:n,method:"GET",...t})}function cd({userName:e=o(),userDocument:t=o(),...n}){const a=`/API/user/${e}`;return r({path:a,method:"PUT",body:t,...n})}function ud({userName:e=o(),...t}){const n=`/API/user/${e}/`;return r({path:n,method:"DELETE",...t})}function hd({userName:e=o(),...t}){const n=`/API/user/${e}/enable`;return r({path:n,method:"PUT",...t})}function pd({userSearchDocument:e,...t}){return r({path:"/API/user/",method:"PUT",body:e,...t})}function dd({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"PUT",...n})}function md({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"DELETE",...n})}function ld({userName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/user/${e}/realname`;return r({path:s,method:"GET",headers:a,...n})}function fd({userName:e=o(),realName:t,headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/realname`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function Pd({userName:e=o(),password:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/password/`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function Td({userName:e=o(),password:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/validate/`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function $d({userName:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/user/${e}/password/salt`;return r({path:s,method:"GET",headers:a,...n})}function gd({userName:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/user/${e}/password/salt`;return r({path:s,method:"POST",headers:a,...n})}function Id({userName:e=o(),...t}){const n=`/API/user/${e}/groups/`;return r({path:n,method:"GET",...t})}function Ed({userName:e=o(),...t}){const n=`/API/user/${e}/roles`;return r({path:n,method:"GET",...t})}function Ad({userName:e=o(),...t}){const n=`/API/user/${e}/allgroups`;return r({path:n,method:"GET",...t})}function yd({userName:e=o(),groupListDocument:t,...n}){const a=`/API/user/${e}/groups/`;return r({path:a,method:"PUT",body:t,...n})}function bd({headers:e={},...t}={}){const n="/API/token",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function Sd({userName:e=o(),...t}){const n=`/API/user/${e}/key`;return r({path:n,method:"GET",...t})}function Gd({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"GET",...n})}function vd({userName:e=o(),...t}){const n=`/API/user/${e}/key/`;return r({path:n,method:"POST",...t})}function kd({userName:e=o(),keyId:t=o(),accessKeyDocument:n,...a}){const s=`/API/user/${e}/key/${t}`;return r({path:s,method:"PUT",body:n,...a})}function Ud({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"DELETE",...n})}function Ld({userName:e=o(),...t}){const n=`/API/user/${e}/access`;return r({path:n,method:"GET",...t})}const Cd={whoAmI:nd,getUserToken:od,listUser:ad,createUser:rd,getUser:sd,getUserGraph:id,updateUser:cd,disableUser:ud,enableUser:hd,searchUser:pd,createAlias:dd,removeAlias:md,getUserRealName:ld,updateUserRealName:fd,updateUserPassword:Pd,validateUserPassword:Td,getUserSalt:$d,createUserSalt:gd,getUserGroup:Id,getUserRole:Ed,getUserGroupRole:Ad,updateUserGroup:yd,getToken:bd,listKey:Sd,getKey:Gd,createKey:vd,updateKey:kd,removeKey:Ud,getAccess:Ld};function Md({...e}={}){return r({path:"/API/version",method:"GET",...e})}const Dd={getVersion:Md};function xd({path:e=o(),...t}){const n=`/API/cost/${e}`;return r({path:n,method:"GET",...t})}function Od({costEstimateId:e=o(),...t}){const n=`/API/cost/estimate/${e}`;return r({path:n,method:"GET",...t})}const jd={createCostEstimate:xd,getCostEstimate:Od};function Fd({...e}={}){return r({path:"/API/vxa/",method:"GET",...e})}function Rd({headers:e={},...t}={}){const n="/API/vxa/enable-ssh/",a={accept:"text/plain",...e};return r({path:n,method:"PUT",headers:a,...t})}function wd({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"GET",...t})}function zd({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}/configuration`;return r({path:n,method:"GET",...t})}function qd({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"DELETE",...t})}const Bd={listVxa:Fd,createVxa:Rd,getVxa:wd,getVxaConfiguration:zd,removeVxa:qd};u.ChunkedTransferManager=L,u.ChunkedUpload=A,u.access=at,u.analyzepreset=it,u.auditlog=ht,u.autoimport=Tt,u.autoprojection=Gt,u.bulkymetadata=Vt,u.collection=sn,u.component=In,u.configuration=to,u.conform=oo,u.debug=ro,u.deletionlock=Po,u.documentmetadata=yo,u.errorlog=So,u.exportlocation=Mo,u.exporttemplate=Bo,u.externalid=Xo,u.fieldgroup=la,u.file=C,u.globalmetadata=Ja,u.group=ir,u.importsettings=xr,u.item=Us,u.javascript=Cs,u.job=Ys,u.library=di,u.license=li,u.metadata=E,u.metadatadataset=gi,u.metadatafield=xi,u.metadatalock=S,u.metadatamigration=Ri,u.metadataschema=Ki,u.noauth=Xi,u.notification=M,u.project=lc,u.projection=Ec,u.quota=vc,u.reindex=Lc,u.resource=Rc,u.scheduledrequest=Jc,u.search=Xc,u.selftest=tu,u.sequence=hu,u.service=Pu,u.shape=nh,u.shapetag=dh,u.stitch=lh,u.storage=Mh,u.storagegroup=wh,u.storagerule=Wh,u.subtitle=Zh,u.taskdefinition=Pp,u.taskgroup=bp,u.thumbnail=Bp,u.timeline=Qp,u.transfer=Zp,u.uploadlicense=ed,u.user=Cd,u.utils=q,u.version=Dd,u.vidinet=jd,u.vsimport=kr,u.vxa=Bd,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
1
+ (function(h,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("buffer"),require("axios")):typeof define=="function"&&define.amd?define(["exports","buffer","axios"],$):(h=typeof globalThis<"u"?globalThis:h||self,$(h["@vidispine/vdt-api"]={},h.buffer,h.axios))})(this,function(h,$,G){"use strict";const P=G.create(),{CancelToken:x}=G;function O({baseURL:e,token:t,username:n,password:a,bearerToken:s}){e&&(P.defaults.baseURL=e),t&&(P.defaults.headers.Authorization=`token ${t}`),s&&(P.defaults.headers.Authorization=`Bearer ${s}`),(n||a)&&(P.defaults.auth={username:n,password:a})}function j(){delete P.defaults.headers.Authorization,delete P.defaults.auth}function F(e){return(e instanceof $.Buffer?e:$.Buffer.from(e.toString(),"binary")).toString("base64")}function v(e,t,n){let a;return s=>{const i=this,u=()=>{a=null,n||e.apply(i,s)},p=n&&!a;clearTimeout(a),a=setTimeout(u,t),p&&e.apply(i,s)}}function k(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function R({username:e=!1,password:t=!1,token:n,contentType:a="application/json",accept:s="application/json",...i}={}){const u={"content-type":a,Accept:s};if(e){const p=F(`${e}:${t}`);u.Authorization=`Basic ${p}`}else n&&(u.Authorization=`token ${n}`);return{...i,...u}}const w=["jobmetadata","jobMetadata","notificationdata","notificationData","methodMetadata"];function z(e,t=!0){const n=t?encodeURIComponent:u=>u,a=Object.keys(e);if(a.length===0)return"";const s=(u,p,m)=>{if(typeof e[p]>"u")return u;const d=e[p],f=m>0?"&":"";if(w.includes(p)&&Array.isArray(d)){const E=(S,D,Kd)=>`${S}${Kd>0?"&":""}${p}=${encodeURIComponent(`${D.key}=${D.value}`)}`,T=d.reduce(E,"");return`${u}${f}${T}`}return Array.isArray(d)?`${u}${f}${p}=${n(d.join(","))}`:`${u}${f}${p}=${n(d)}`};return a.reduce(s,"?")}function q(e){let t=e;if(Array.isArray(e)||(t=Object.entries(e)),t.length===0)return"";const n=(s,i)=>{let u,p;return Array.isArray(i)?[u,p]=i:([u]=Object.keys(i),[p]=Object.values(i)),p===""||p===void 0?s:`${s};${u}=${encodeURIComponent(p)}`};return t.reduce(n,"")}function o(){throw new Error("Missing property")}function r({path:e,method:t="GET",body:n,headers:a={},queryParams:s={},matrixParams:i=[],costEstimate:u=!1,encodeParams:p=!0,...m}={}){const d=z(s,p),f=q(i),E=R(a);let T=`${e}${f}${d}`;u&&(T=T.replace("/API/","/API/cost/"));const S={method:t,url:T,headers:E,data:n,...m};return P(S)}const U=Object.freeze(Object.defineProperty({__proto__:null,CancelToken:x,debounce:v,default:r,defaultClient:P,isRequired:o,login:O,logout:j,uuidv4:k,vFetch:r},Symbol.toStringTag,{value:"Module"}));function B({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/access/`;return r({path:a,method:"GET",...n})}function N({entityType:e=o(),entityId:t=o(),accessControlDocument:n,...a}){const s=`/API/${e}/${t}/access/`;return r({path:s,method:"POST",body:n,...a})}function J({entityType:e=o(),entityId:t=o(),accessId:n=o(),...a}){const s=`/API/${e}/${t}/access/${n}`;return r({path:s,method:"GET",...a})}function V({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/merged-access/`;return r({path:a,method:"GET",...n})}function K({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/merged-access/group`;return r({path:a,method:"GET",...n})}function H({entityType:e=o(),entityId:t=o(),accessId:n=o(),...a}){const s=`/API/${e}/${t}/access/${n}`;return r({path:s,method:"DELETE",...a})}function Q({entityType:e=o(),entityId:t=o(),userName:n=o(),...a}){const s=`/API/${e}/${t}/access/owner/${n}`;return r({path:s,method:"PUT",...a})}function _({entityType:e=o(),entityId:t=o(),accessControlListDocument:n,...a}){const s=`/API/${e}/${t}/access/bulk`;return r({path:s,method:"POST",body:n,...a})}function W({entityType:e=o(),entityId:t=o(),accessControlListDocument:n,...a}){const s=`/API/${e}/${t}/access/bulk`;return r({path:s,method:"DELETE",body:n,...a})}function X({entityType:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/access/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function Y({entityType:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/access/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function Z({accessControlDocument:e,...t}){return r({path:"/API/item/access/",method:"POST",body:e,...t})}function tt({...e}={}){return r({path:"/API/item/access/",method:"DELETE",...e})}function et({...e}={}){return r({path:"/API/import/access/",method:"GET",...e})}function nt({groupName:e=o(),...t}){const n=`/API/import/access/group/${e}`;return r({path:n,method:"PUT",...t})}function ot({groupName:e=o(),...t}){const n=`/API/import/access/group/${e}`;return r({path:n,method:"DELETE",...t})}const at={listEntityAccess:B,createEntityAccess:N,getEntityAccess:J,getEntityAccessMerged:V,getEntityAccessMergedGroup:K,removeEntityAccess:H,updateEntityOwner:Q,createEntityAccessBulk:_,removeEntityAccessBulk:W,getEntityAccessGraph:X,getEntityAccessGraphDot:Y,createItemAllAccess:Z,removeItemAllAccess:tt,getImportAccess:et,updateImportAccessGroup:nt,removeImportAccessGroup:ot};function rt({...e}={}){return r({path:"/API/analyze-preset",method:"GET",...e})}function st({preset:e=o(),...t}={}){const n=`/API/analyze-preset/${e}`;return r({path:n,method:"GET",...t})}const it={listAnalyzePreset:rt,getAnalyzePreset:st};function ct({...e}={}){return r({path:"/API/log/",method:"GET",...e})}function ut({...e}={}){return r({path:"/API/log/export",method:"GET",...e})}const ht={listAuditLog:ct,exportAuditLog:ut};function pt({...e}={}){return r({path:"/API/storage/auto-import/",method:"GET",...e})}function dt({storageId:e=o(),autoImportRuleDocument:t,...n}){const a=`/API/storage/${e}/auto-import/`;return r({path:a,method:"PUT",body:t,...n})}function mt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/`;return r({path:n,method:"GET",...t})}function lt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/`;return r({path:n,method:"DELETE",...t})}function ft({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/enable`;return r({path:n,method:"PUT",...t})}function Pt({storageId:e=o(),...t}){const n=`/API/storage/${e}/auto-import/disable`;return r({path:n,method:"PUT",...t})}const Tt={listAutoImport:pt,updateAutoImport:dt,getAutoImport:mt,removeAutoImport:lt,enableAutoImport:ft,disableAutoImport:Pt};function $t({...e}={}){return r({path:"/API/auto-projection",method:"GET",...e})}function gt({...e}={}){return r({path:"/API/auto-projection/disable",method:"GET",...e})}function It({...e}={}){return r({path:"/API/auto-projection/enable",method:"GET",...e})}function At({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}`;return r({path:n,method:"GET",...t})}function Et({projectionName:e=o(),autoProjectionRuleDocument:t=o(),...n}){const a=`/API/auto-projection/${e}`;return r({path:a,method:"PUT",body:t,...n})}function yt({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}`;return r({path:n,method:"DELETE",...t})}function bt({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}/enable`;return r({path:n,method:"PUT",...t})}function St({projectionName:e=o(),...t}){const n=`/API/auto-projection/${e}/disable`;return r({path:n,method:"PUT",...t})}const Gt={listAutoProjection:$t,listDisabledAutoProjection:gt,listEnabledAutoProjection:It,getAutoProjection:At,createAutoProjection:Et,removeAutoProjection:yt,enableAutoProjection:bt,disableAutoProjection:St};function vt({itemId:e=o(),...t}){const n=`/API/item/${e}/metadata/bulky`;return r({path:n,method:"GET",...t})}function kt({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:a,method:"GET",...n})}function Ut({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:s,method:"GET",...a})}function Lt({itemId:e=o(),bulkyMetadataDocument:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky`;return r({path:a,method:"PUT",body:t,...n})}function Ct({itemId:e=o(),shapeId:t=o(),bulkyMetadataDocument:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:s,method:"PUT",body:n,...a})}function Mt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),bulkyMetadataDocument:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:i,method:"PUT",body:a,...s})}function Dt({itemId:e=o(),...t}){const n=`/API/item/${e}/metadata/bulky`;return r({path:n,method:"DELETE",...t})}function xt({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/metadata/bulky`;return r({path:a,method:"DELETE",...n})}function Ot({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky`;return r({path:s,method:"DELETE",...a})}function jt({itemId:e=o(),key:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky/${t}`;return r({path:a,method:"GET",...n})}function Ft({itemId:e=o(),shapeId:t=o(),key:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`;return r({path:s,method:"GET",...a})}function Rt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`;return r({path:i,method:"GET",...s})}function wt({itemId:e=o(),key:t=o(),value:n=o(),headers:a={},...s}){const i=`/API/item/${e}/metadata/bulky/${t}`,u={contentType:"text/plain",...a};return r({path:i,method:"PUT",body:n,headers:u,...s})}function zt({itemId:e=o(),shapeId:t=o(),key:n=o(),value:a=o(),headers:s={},...i}){const u=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`,p={contentType:"text/plain",...s};return r({path:u,method:"PUT",body:a,headers:p,...i})}function qt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),value:s=o(),headers:i={},...u}){const p=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`,m={contentType:"text/plain",...i};return r({path:p,method:"PUT",body:s,headers:m,...u})}function Bt({itemId:e=o(),key:t=o(),...n}){const a=`/API/item/${e}/metadata/bulky/${t}`;return r({path:a,method:"DELETE",...n})}function Nt({itemId:e=o(),shapeId:t=o(),key:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/metadata/bulky/${n}`;return r({path:s,method:"DELETE",...a})}function Jt({itemId:e=o(),shapeId:t=o(),componentId:n=o(),key:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/metadata/bulky/${a}`;return r({path:i,method:"DELETE",...s})}const Vt={listItemBulkyMetadata:vt,listShapeBulkyMetadata:kt,listComponentBulkyMetadata:Ut,updateAllItemBulkyMetadata:Lt,updateAllShapeBulkyMetadata:Ct,updateAllComponentBulkyMetadata:Mt,removeAllItemBulkyMetadata:Dt,removeAllShapeBulkyMetadata:xt,removeAllComponentBulkyMetadata:Ot,getItemBulkyMetadata:jt,getShapeBulkyMetadata:Ft,getComponentBulkyMetadata:Rt,updateItemBulkyMetadata:wt,updateShapeBulkyMetadata:zt,updateComponentBulkyMetadata:qt,removeItemBulkyMetadata:Bt,removeShapeBulkyMetadata:Nt,removeComponentBulkyMetadata:Jt};function Kt(e,t){return e===0||t===0?0:Math.floor(e/t*100)}const c=Object.freeze({statuses:{transfering:1,paused:2,complete:3,failed:4,unstarted:5,canceled:6,offline:7},events:{progress:"progress",update:"update",complete:"complete",error:"error",added:"upload-added",removed:"upload-removed",retry:"retry",pausing:"pausing",paused:"paused",resuming:"resuming",offline:"offline",online:"online"},defaults:{targetRate:4e6,chunkSize:1e7,minChunkSize:8388608,maxConcurrentTransfers:1,maxConcurrentFileTransfers:1,autoMaxConcurrentTransfers:!1,autoResume:!0,api:{props:{}},minFileSize:104857600}});class y{constructor(){this.events={}}on(t,n){const a=this.events[t]||[];a.push(n),this.events[t]=a}off(t){this.events[t]&&(this.events[t]=[])}trigger(t,n){const a=this.events[t];!a||a.length<1||a.forEach(s=>{s(n)})}}class Ht{constructor(t={}){Object.assign(this,{blobSlice:null,fileSize:null,start:null,end:null,api:null},t),this.state={retries:0,status:c.statuses.unstarted,startTime:null,completeTime:null,response:null,bytesTransfered:null},this.events=new y}try(){return this.state.status=c.statuses.transfering,this.state.startTime=performance.now(),new Promise((t,n)=>{const a=()=>{this.transfer().then(s=>{this.state.response=s,this.onComplete(),t()}).catch(()=>{this.state.retries>3?(this.state.status=c.statuses.failed,n(new Error(`Chunk ${this.start}-${this.end} failed`))):this.state.status!==c.statuses.paused?(this.state.retries+=1,this.tryTimeout=setTimeout(()=>{a()},1e3)):clearTimeout(this.tryTimeout)})};a(),window.addEventListener(c.events.online,()=>{this.resume()}),window.addEventListener(c.events.offline,()=>{this.pause()})})}transfer(){let t={file:this.blobSlice,onUploadProgress:n=>{(this.state.status!==c.statuses.complete||this.state.status!==c.statuses.offline)&&(this.state.bytesTransfered=n.loaded,this.events.trigger(c.events.progress,this.state))}};return this.end-this.start!==this.fileSize&&(t.headers={index:this.start,size:this.fileSize}),t={...t,...this.api.props},this.transferPromise=this.api.method(t),this.state.status=c.statuses.transfering,this.transferPromise}onComplete(){this.state.status=c.statuses.complete,this.state.bytesTransfered=this.end-this.start,this.state.completeTime=performance.now(),this.events.trigger(c.events.complete)}pause(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.paused)}resume(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.transfering)}cancel(){this.state.status!==c.statuses.complete&&(this.state.status=c.statuses.canceled)}get transferRate(){if(this.state.bytesTransfered){const t=(this.state.completeTime-this.state.startTime)/1e3;return this.state.bytesTransfered/t}return 0}}class I{constructor(t,n){if(this.events=new y,!n.api.method)throw new Error("No api method specified");this.defaultOptions={...c.defaults,targetRate:4e6,chunkSize:c.defaults.minChunkSize,autoMaxConcurrentTransfers:!1,api:{props:{...c.defaults.api.props,queryParams:{transferId:k()},...n.api.props}}},this.options={...this.defaultOptions,...n},this.state={blob:null,chunks:[],transferPromises:[],targetRate:this.options.targetRate,rate:0,autoMaxConcurrentTransfers:this.options.autoMaxConcurrentTransfers,maxConcurrentTransfers:this.options.maxConcurrentTransfers,mime:"",status:c.statuses.unstarted,transferId:n.api.props.queryParams.transferId,lastStats:{}},typeof t=="object"?(this.state.blob=t,this.state.mime=t.type,this.addChunksFromBlob(t)):console.error(new Error(`Expected a File or a Blob object, but got ${typeof t}`))}upload(){const{status:t}=this.state;if(t!==c.statuses.complete)if(t===c.statuses.unstarted||t===c.statuses.transfering){this.state.transferPromises=[];const n=()=>{const a=this.state.chunks[0].state.status;return this.state.transferPromises.length<this.state.maxConcurrentTransfers&&(a!==c.statuses.transfering||a===c.statuses.unstarted)};n()&&(this.state.chunks.forEach(a=>{a.state.status!==c.statuses.complete&&a.state.status!==c.statuses.transfering&&n()&&(this.state.status=c.statuses.transfering,this.state.transferPromises.push(a.try()))}),this.state.transferPromises.length>0&&Promise.all(this.state.transferPromises).then(()=>{this.upload()}).catch(a=>{console.log("Failed on this upload() cycle, check connectivity and try to resume :(",a),this.state.status!==c.statuses.offline?(this.state.status=c.statuses.failed,this.events.trigger(c.events.failed,{error:a,transfer:this})):setTimeout(()=>this.retry(),5e3)}))}else this.retry()}getByteRangesForChunks(t,n=this.options.chunkSize){const a=[],{minChunkSize:s}=this.options;let u=n>=s?n:s,p=Math.floor(t.size/u);if(t.size-(t.size-t.size/p)>=s||(p-=1,u=Math.floor(t.size/p)),p<2||t.size<this.options.minFileSize)a.push({start:0,end:t.size});else for(let m=0;m<=p;m+=1){const d=u*m;let f=u*m+u;t.size-u*m<=s&&(f=t.size);const T={start:d,end:f};if(a.push(T),f===t.size)break}return a}addChunksFromBlob(t){this.getByteRangesForChunks(t).forEach(a=>{const s=new Ht({start:a.start,end:a.end,blobSlice:t.slice(a.start,a.end),fileSize:t.size,api:this.options.api});s.events.on(c.events.progress,()=>{this.onProgress()}),s.events.on(c.events.complete,()=>{this.onProgress()}),this.state.chunks.push(s)})}retry(){this.state.status===c.statuses.failed&&(this.resume(),this.events.trigger(c.events.retry))}resume(){this.state.status=c.statuses.transfering,this.events.trigger(c.events.resuming),this.state.chunks.length>0&&this.state.chunks.forEach(t=>{t.resume()})}pause(){this.state.status=c.statuses.paused,this.state.chunks.length>0&&this.state.chunks.forEach(n=>{n.pause()});const t=Promise.all(this.state.transferPromises);return this.events.trigger(c.events.pausing),t.then(()=>{this.events.trigger(c.events.paused)}),Promise.all(this.state.transferPromises)}cancel(){this.state.status=c.statuses.canceled,this.state.chunks.length>0&&this.state.chunks.forEach(n=>{n.cancel()}),this.upload=()=>{};const t=Promise.all(this.state.transferPromises);return t.then(()=>{this.events.trigger(c.events.removed,this)}),t}autoAdjustMaxConcurrentTransfers(t){if(this.state.autoMaxConcurrentTransfers&&this.state.status!==c.statuses.complete){const n=t.avgTransferRate/this.state.targetRate;if(n>1.2)this.state.maxConcurrentTransfers+=1;else if(n<.3)this.state.maxConcurrentTransfers=1;else{const a=this.options.maxConcurrentTransfers-1;this.state.maxConcurrentTransfers=Math.max(this.options.maxConcurrentTransfers,Math.min(a,c.defaults.maxConcurrentTransfers))}}}onProgress(){try{const t=this.getStats();t!==this.state.lastStats&&(this.state.lastStats=t,v(()=>{this.autoAdjustMaxConcurrentTransfers(t)},1e3)(),this.state.status!==c.statuses.complete&&(t.totalChunks===t.completedChunks?this.onComplete():(this.events.trigger(c.events.progress,t),this.options.onProgress&&this.options.onProgress(t))))}catch(t){console.error(t)}}onComplete(){const t=this.getStats();this.state.lastStats=t,this.state.status=c.statuses.complete,this.events.trigger(c.events.complete),this.options.onComplete&&this.options.onComplete(this.finalResponse)}getStats(){const t=this.state.chunks.length,n=this.state.chunks.filter(d=>d.state.status===c.statuses.complete),a=this.state.chunks.filter(d=>d.state.status===c.statuses.transfering),s=n.length;let i=0,u=0;n.forEach(d=>{i+=d.transferRate,u+=d.blobSlice.size}),a.forEach(d=>{u+=d.state.bytesTransfered});const p=i/s,m={totalChunks:t,completedChunks:s,totalBytes:this.state.blob.size,transferedBytes:u,avgTransferRate:p,concurrentTransfers:this.state.maxConcurrentTransfers};return this.state.rate=m.avgTransferRate,m}set concurrentTransfers(t){this.state.autoMaxConcurrentTransfers=!1,this.state.maxConcurrentTransfers=t}set rate(t){this.state.targetRate=t}get rate(){return this.state.rate}get finalResponse(){const t=this.state.chunks.length-1,n=!1;for(let a=t;a>=0;a-=1){const s=this.state.chunks[a];if(typeof s.state.response.data=="object")return s.state.response}return n}get transferId(){return this.state.transferId}}class L{constructor(t){this.initialState=Object.freeze({status:c.statuses.unstarted,transfers:{},bytesDone:0,bytesTotal:0,lastStats:{bytesDone:0,bytesTotal:0}}),this.state={...this.initialState},this.options={maxConcurrentFileTransfers:c.defaults.maxConcurrentFileTransfers,autoResume:c.defaults.autoResume,...t},this.events=new y,this.bindNetworkEvents()}bindNetworkEvents(){typeof window>"u"||(window.addEventListener(c.events.online,()=>{this.events.trigger(c.events.online,this.state),this.state.status=c.statuses.transfering,this.options.autoResume&&setTimeout(()=>{this.retry()},1500)}),window.addEventListener(c.events.offline,()=>{this.events.trigger(c.events.offline,this.state),this.state.status=c.statuses.offline}))}addChunkedUpload(t){t.transferId!==null&&(this.state.transfers[t.transferId]=t,t.events.on(c.events.progress,()=>{this.onProgress()}),t.events.on(c.events.complete,()=>{this.upload(),this.onProgress()}),t.events.on(c.events.failed,({error:n,transfer:a})=>{this.onFail(n,a)}),t.events.on(c.events.retry,()=>{this.events.trigger(c.events.retry,this.state)}),t.events.on(c.events.paused,()=>{this.paused&&this.events.trigger(c.events.paused)}),this.updateStats(),this.events.trigger(c.events.added,this.state),this.events.trigger(c.events.update,this.state))}removeChunkedUpload(t,n=!1){const a=s=>s?s.state.status===c.statuses.complete&&!n?(console.error("Can't cancel complete transfers, pass true as a second argument in .removeChunkedUpload() to force removal."),!1):(Object.keys(this.state.transfers).forEach(i=>{s===this.state.transfers[i]&&delete this.state.transfers[i]}),this.events.trigger(c.events.removed),s.cancel(),!0):(console.error("Could not find a matching transfer to cancel."),!1);switch(t.constructor.name){case I.name:a(t);break;case"File":a(this.exists(t));break}}onProgress(){this.updateStats(),this.hasCompleted?this.onComplete():this.state.bytesDone!==this.state.lastStats.bytesDone&&(this.state.status=c.statuses.transfering,this.events.trigger(c.events.progress,this.state))}onComplete(){this.state.status=c.statuses.complete,this.events.trigger(c.events.complete,this.state)}exists(t){let n=!1;for(let a=0;a<this.transfers.length;a+=1){const s=this.transfers[a];if(s.state.blob.name===t.name&&s.state.blob.lastModified===t.lastModified&&s.state.blob.size&&t.size)return n=s,n}return n}isTransferAvailable(t){return t.state.status!==c.statuses.complete&&t.state.status!==c.statuses.transfering||t.state.status===c.statuses.unstarted}pause(){let t=Promise.resolve(!0);if(!this.paused){this.events.trigger(c.events.pausing,this.state);const n=[];this.transfers.forEach(a=>{n.push(a.pause())}),t=Promise.all(n),t.then(()=>{this.events.trigger(c.events.paused,this.state)})}return t}resume(){this.events.trigger(c.events.update,this.state),this.transfers.forEach(t=>{this.isTransferAvailable(t)&&t.state.status!==c.statuses.unstarted&&t.resume()})}retry(){this.status===c.statuses.failed&&(this.resume(),this.events.trigger(c.events.retry,this.state))}upload(){let t=0;this.transfers.forEach(n=>{this.isTransferAvailable(n)?t<this.options.maxConcurrentFileTransfers&&(this.events.trigger(c.events.update,this.state),n.upload(),t+=1):n.state.status!==c.statuses.complete&&(t+=1)}),t>0&&(this.status=c.statuses.transfering),t<this.options.maxConcurrentFileTransfers&&this.transfers.length<t&&this.upload()}onFail(t,n){this.status=c.statuses.failed,this.events.trigger(c.events.error,{error:t,transfer:n,file:n.state.blob})}reset(){this.transfers.forEach(t=>{t.constructor.name===I.name&&this.removeChunkedUpload(t,!0)}),this.state={...this.initialState},this.events.trigger(c.statuses.update,this.state),this.events.trigger(c.statuses.complete,this.state)}destroy(){this.reset()}get hasCompleted(){let t=!0;return this.transfers.forEach(n=>{n.state.status!==c.statuses.complete&&(t=!1)}),t}get transfers(){return Object.values(this.state.transfers)||[]}get status(){return this.state.status}set status(t){this.events.trigger(c.statuses.update,this.state),this.state.status=t}get bytesTotal(){let t=0;return this.transfers.forEach(n=>{t+=n.state.blob.size}),t}get bytesDone(){let t=0;return this.transfers.forEach(n=>{t+=n.getStats().transferedBytes}),t}updateStats(){this.state.lastStats.bytesDone=this.state.bytesDone,this.state.lastStats.bytesTotal=this.state.bytesTotal,this.state.bytesTotal=this.bytesTotal,this.state.bytesDone=this.bytesDone}get percentDone(){return Kt(this.state.bytesDone,this.state.bytesTotal)}get fileList(){const t=[];return this.transfers.forEach(n=>{const a=n.getStats(),{totalChunks:s,completedChunks:i}=a,u={name:n.state.blob.name,bytesDone:a.transferedBytes,bytesTotal:n.state.blob.size,totalChunks:s,completedChunks:i,transfer:n};t.push(u)}),t}get isUploading(){return this.state.status===c.statuses.transfering}get paused(){let t=!0;return this.transfers.forEach(n=>{n.state.status!==c.statuses.paused&&(t=!1)}),t}}L.constants=c,I.constants=c;function Qt({entity:e=o(),entityId:t=o(),metadataDocument:n,...a}){const s=`/API/${e}/${t}/metadata`;return r({path:s,method:"PUT",body:n,...a})}function _t({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/move`;return r({path:a,method:"PUT",...n})}function Wt({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/changes`;return r({path:a,method:"GET",...n})}function Xt({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}`;return r({path:s,method:"GET",...a})}function Yt({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}/compareTo/previous`;return r({path:s,method:"GET",...a})}function Zt({entity:e=o(),entityId:t=o(),changesetId:n=o(),fromChangesetId:a=o(),...s}){const i=`/API/${e}/${t}/metadata/changes/${n}/compareTo/${a}`;return r({path:i,method:"GET",...s})}function te({entity:e=o(),entityId:t=o(),changesetId:n=o(),metadataDocument:a=o(),...s}){const i=`/API/${e}/${t}/metadata/changes/${n}/`;return r({path:i,method:"PUT",body:a,...s})}function ee({entity:e=o(),entityId:t=o(),metadataChangeSetDocument:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes`;return r({path:s,method:"PUT",body:n,...a})}function ne({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata/changes/trim`;return r({path:a,method:"PUT",...n})}function oe({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}/trim`;return r({path:s,method:"PUT",...a})}function ae({entity:e=o(),entityId:t=o(),changesetId:n=o(),...a}){const s=`/API/${e}/${t}/metadata/changes/${n}`;return r({path:s,method:"DELETE",...a})}function re({entity:e=o(),entityId:t=o(),uuid:n=o(),metadataEntryDocument:a=o(),...s}){const i=`/API/${e}/${t}/metadata/entry/${n}`;return r({path:i,method:"PUT",body:a,...s})}function se({entity:e=o(),entityId:t=o(),metadataEntryListDocument:n=o(),...a}){const s=`/API/${e}/${t}/metadata/entry/`;return r({path:s,method:"PUT",body:n,...a})}function ie({entity:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/metadata/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function ce({entity:e=o(),entityId:t=o(),headers:n={},...a}){const s=`/API/${e}/${t}/metadata/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function ue({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"GET",...n,...n})}function he({metadataUuid:e=o(),...t}){const n=`/API/metadata/${e}/`;return r({path:n,method:"GET",...t})}function pe({metadataUuid:e=o(),...t}){const n=`/API/metadata/${e}/`;return r({path:n,method:"DELETE",...t})}function de({...e}={}){return r({path:"/API/metadata/",method:"GET",...e})}function me({metadataDocument:e,...t}={}){return r({path:"/API/metadata/",method:"PUT",body:e,...t})}function le({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"GET",...n})}function fe({entityType:e=o(),entityId:t=o(),subpath:n,...a}){const s=`/API/${e}/${t}/metadata/${n}`;return r({path:s,method:"GET",...a})}function Pe({simpleMetadataDocument:e,entityType:t=o(),entityId:n=o(),...a}={}){const s=`/API/${t}/${n}/metadata`;return r({path:s,method:"PUT",body:e,...a})}function Te({simpleMetadataDocument:e,entityType:t=o(),entityId:n=o(),subpath:a,...s}={}){const i=`/API/${t}/${n}/metadata/${a}`;return r({path:i,method:"PUT",body:e,...s})}function $e({entityType:e=o(),entityId:t=o(),...n}={}){const a=`/API/${e}/${t}/metadata`;return r({path:a,method:"DELETE",...n})}function ge({entityType:e=o(),entityId:t=o(),key:n=o(),headers:a={},...s}){const i=`/API/${e}/${t}/metadata/${n}`,u={accept:"text/plain",...a};return r({path:i,method:"GET",headers:u,...s})}function Ie({entityType:e=o(),entityId:t=o(),key:n=o(),headers:a={},...s}){const i=`/API/${e}/${t}/metadata/${n}`,u={accept:"text/plain",...a};return r({path:i,method:"DELETE",headers:u,...s})}function Ae({entityType:e=o(),entityId:t=o(),key:n=o(),value:a,headers:s={},...i}){const u=`/API/${e}/${t}/metadata/${n}`,p={contentType:"text/plain",...s};return r({path:u,method:"PUT",body:a,headers:p,...i})}const g={updateEntityMetadata:Qt,moveEntityMetadata:_t,listEntityMetadataChange:Wt,getEntityMetadataChange:Xt,previousEntityMetadataChange:Yt,compareEntityMetadataChange:Zt,updateEntityMetadataChange:te,updateAllEntityMetadataChange:ee,trimAllEntityMetadataChange:ne,trimEntityMetadataChange:oe,removeEntityMetadataChange:ae,updateEntityMetadataEntry:re,updateAllEntityMetadataEntry:se,getEntityMetadataGraph:ie,getEntityMetadataGraphDot:ce,getEntityMetadata:ue,getMetadata:he,removeMetadata:pe,getMetadataGlobal:de,updateMetadataGlobal:me,getSimpleMetadata:le,getSimpleMetadataSubpath:fe,updateSimpleMetadata:Pe,updateSimpleMetadataSubpath:Te,removeSimpleMetadata:$e,getSimpleMetadataKey:ge,removeSimpleMetadataKey:Ie,updateSimpleMetadataKey:Ae};function Ee({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata-lock`;return r({path:a,method:"GET",...n})}function ye({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/metadata-lock`;return r({path:a,method:"POST",...n})}function be({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"GET",...a})}function Se({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"PUT",...a})}function Ge({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/metadata-lock/${n}`;return r({path:s,method:"DELETE",...a})}const b={listEntityMetadataLock:Ee,createEntityMetadataLock:ye,getEntityMetadataLock:be,updateEntityMetadataLock:Se,removeEntityMetadataLock:Ge},{listEntityMetadataLock:ve,createEntityMetadataLock:ke,getEntityMetadataLock:Ue,updateEntityMetadataLock:Le,removeEntityMetadataLock:Ce}=b;function Me({...e}={}){return r({path:"/API/collection/",method:"GET",...e})}function De({collectionId:e=o(),...t}){const n=`/API/collection/${e}/`;return r({path:n,method:"GET",...t})}function xe({collectionId:e=o(),...t}){const n=`/API/collection/${e}/metadata`;return r({path:n,method:"GET",...t})}function Oe({collectionId:e,metadataDocument:t,...n}){return g.updateEntityMetadata({entity:"collection",entityId:e,metadataDocument:t,...n})}function je({collectionId:e=o(),...t}){const n=`/API/collection/${e}/ancestor`;return r({path:n,method:"GET",...t})}function Fe({...e}={}){return r({path:"/API/collection/history",method:"GET",...e})}function Re({collectionId:e=o(),...t}){const n=`/API/collection/${e}/item`;return r({path:n,method:"GET",...t})}function we({itemSearchDocument:e,...t}){return r({path:"/API/collection/",method:"PUT",body:e,...t})}function ze({metadataGroupSearchDocument:e,...t}){return r({path:"/API/collection/metadata-group",method:"PUT",body:e,...t})}function qe({collectionId:e=o(),searchDocument:t,...n}){const a=`/API/collection/${e}/item`;return r({path:a,method:"PUT",body:t,...n})}function Be({collectionDocument:e,queryParams:t,...n}){return r({path:"/API/collection",method:"POST",body:e,queryParams:t,...n})}function Ne({collectionId:e=o(),...t}){const n=`/API/collection/${e}/`;return r({path:n,method:"DELETE",...t})}function Je({queryParams:e=o(),...t}){return r({path:"/API/collection",method:"DELETE",queryParams:e,...t})}function Ve({collectionId:e=o(),...t}){const n=`/API/collection/${e}/rename`;return r({path:n,method:"PUT",...t})}function Ke({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"PUT",...n})}function He({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function Qe({collectionId:e=o(),collectionDocument:t,...n}){const a=`/API/collection/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function _e({collectionId:e=o(),collectionReorderDocument:t,...n}){const a=`/API/collection/${e}/order`;return r({path:a,method:"POST",body:t,...n})}function We({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"PUT",...t})}function Xe({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"DELETE",...t})}function Ye({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/folder-name`;return r({path:a,method:"PUT",queryParams:t,...n})}function Ze({collectionId:e=o(),...t}){return ve({entity:"collection",entityId:e,...t})}function tn({collectionId:e=o(),...t}){return ke({entity:"collection",entityId:e,...t})}function en({collectionId:e=o(),...t}){return Ue({entity:"collection",entityId:e,...t})}function nn({collectionId:e=o(),...t}){return Le({entity:"collection",entityId:e,...t})}function on({collectionId:e=o(),...t}){return Ce({entity:"collection",entityId:e,...t})}function an({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}function rn({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/sequence-document`;return r({path:a,method:"GET",queryParams:t,...n})}const sn={listCollection:Me,getCollection:De,getCollectionMetadata:xe,updateCollectionMetadata:Oe,getCollectionAncestor:je,listCollectionHistory:Fe,getCollectionItem:Re,searchCollection:we,searchCollectionMetadataGroup:ze,searchCollectionItem:qe,createCollection:Be,removeCollection:Ne,removeCollectionList:Je,renameCollection:Ve,addCollectionEntity:Ke,removeCollectionEntity:He,updateCollection:Qe,orderCollection:_e,markFolderCollection:We,unMarkFolderCollection:Xe,updateFolderCollection:Ye,listCollectionMetadataLock:Ze,createCollectionMetadataLock:tn,getCollectionMetadataLock:en,updateCollectionMetadataLock:nn,removeCollectionMetadataLock:on,exportCollection:an,collectionSequence:rn};function cn({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/component`;return r({path:a,method:"GET",...n})}function un({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}`;return r({path:s,method:"GET",...a})}function hn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/${n}`;return r({path:s,method:"DELETE",...a})}function pn({itemId:e=o(),shapeId:t=o(),queryParams:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component`;return r({path:s,method:"POST",queryParams:n,...a})}function dn({itemId:e=o(),shapeId:t=o(),queryParams:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/component/placeholder`;return r({path:s,method:"POST",queryParams:n,...a})}function mn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),targetComponentId:i=o(),...u}){const p=`/API/item/${e}/shape/${t}/component/${n}/move/item/${a}/shape/${s}/component/${i}`;return r({path:p,method:"POST",...u})}function ln({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),...i}){const u=`/API/item/${e}/shape/${t}/component/${n}/move/item/${a}/shape/${s}`;return r({path:u,method:"POST",...i})}function fn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),targetComponentId:i=o(),...u}){const p=`/API/item/${e}/shape/${t}/component/${n}/copy/item/${a}/shape/${s}/component/${i}`;return r({path:p,method:"POST",...u})}function Pn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),targetItemId:a=o(),targetShapeId:s=o(),...i}){const u=`/API/item/${e}/shape/${t}/component/${n}/copy/item/${a}/shape/${s}`;return r({path:u,method:"POST",...i})}function Tn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),fileId:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/file/${a}`;return r({path:i,method:"PUT",...s})}function $n({itemId:e=o(),shapeId:t=o(),componentId:n=o(),fileId:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/file/${a}`;return r({path:i,method:"PUT",...s})}function gn({itemId:e=o(),shapeId:t=o(),componentId:n=o(),analyzeJobDocument:a,...s}){const i=`/API/item/${e}/shape/${t}/component/${n}/analyze`;return r({path:i,method:"POST",body:a,...s})}const In={listComponent:cn,getComponent:un,removeComponent:hn,createComponent:pn,createComponentPlaceholder:dn,moveComponent:mn,moveComponentToShape:ln,copyComponent:fn,copyComponentToShape:Pn,addComponentFile:Tn,removeComponentFile:$n,createComponentAnalyze:gn};function An({...e}={}){return r({path:"/API/configuration/",method:"GET",...e})}function En({...e}={}){return r({path:"/API/configuration/properties",method:"GET",...e})}function yn({configurationPropertyDocument:e,...t}){return r({path:"/API/configuration/properties/",method:"PUT",body:e,...t})}function bn({configurationPropertyListDocument:e=o(),...t}){return r({path:"/API/configuration/properties/",method:"POST",body:e,...t})}function Sn({key:e=o(),...t}){const n=`/API/configuration/properties/${e}`;return r({path:n,method:"DELETE",...t})}function Gn({...e}={}){return r({path:"/API/configuration/indexing",method:"GET",...e})}function vn({indexingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/indexing",method:"PUT",body:e,...t})}function kn({...e}={}){return r({path:"/API/configuration/ftp-pool",method:"GET",...e})}function Un({ftpPoolConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/ftp-pool",method:"PUT",body:e,...t})}function Ln({...e}){return r({path:"/API/configuration/ftp-pool",method:"DELETE",...e})}function Cn({...e}={}){return r({path:"/API/configuration/job-pool",method:"GET",...e})}function Mn({jobPoolListDocument:e=o(),...t}){return r({path:"/API/configuration/job-pool",method:"PUT",body:e,...t})}function Dn({...e}){return r({path:"/API/configuration/job-pool",method:"DELETE",...e})}function xn({jobPoolPriority:e=o(),...t}){const n=`/API/configuration/job-pool/${e}`;return r({path:n,method:"DELETE",...t})}function On({...e}={}){return r({path:"/API/configuration/metrics",method:"GET",...e})}function jn({metricsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/metrics",method:"PUT",body:e,...t})}function Fn({...e}={}){return r({path:"/API/configuration/path-alias",method:"GET",...e})}function Rn({pathAliasConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/path-alias",method:"PUT",body:e,...t})}function wn({...e}={}){return r({path:"/API/configuration/logreport",method:"GET",...e})}function zn({logReportConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/logreport",method:"PUT",body:e,...t})}function qn({...e}={}){return r({path:"/API/configuration/purging",method:"GET",...e})}function Bn({databasePurgingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/purging",method:"PUT",body:e,...t})}function Nn({...e}){return r({path:"/API/configuration/purging",method:"DELETE",...e})}function Jn({...e}={}){return r({path:"/API/configuration/cors",method:"GET",...e})}function Vn({corsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/cors",method:"PUT",body:e,...t})}function Kn({...e}={}){return r({path:"/API/configuration/auth",method:"GET",...e})}function Hn({oAuth2ConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/auth",method:"PUT",body:e,...t})}function Qn({...e}={}){return r({path:"/API/configuration/auth",method:"DELETE",...e})}function _n({...e}={}){return r({path:"/API/configuration/job-priority",method:"GET",...e})}function Wn({jobPriorityConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/job-priority",method:"PUT",body:e,...t})}function Xn({...e}={}){return r({path:"/API/configuration/job-priority",method:"DELETE",...e})}function Yn({...e}={}){return r({path:"/API/configuration/bulkymetadata",method:"GET",...e})}function Zn({bulkyMetadataConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/bulkymetadata",method:"PUT",body:e,...t})}const to={getConfiguration:An,getPropertiesConfiguration:En,updatePropertiesConfiguration:yn,updateAllPropertiesConfiguration:bn,removePropertiesConfiguration:Sn,getIndexingConfiguration:Gn,updateIndexingConfiguration:vn,getFtpPoolConfiguration:kn,updateFtpPoolConfiguration:Un,removeFtpPoolConfiguration:Ln,getJobPoolConfiguration:Cn,updateJobPoolConfiguration:Mn,removeAllJobPoolConfiguration:Dn,removeJobPoolConfiguration:xn,getMetricsConfiguration:On,updateMetricsConfiguration:jn,getPathAliasConfiguration:Fn,updatePathAliasConfiguration:Rn,getLogReportConfiguration:wn,updateLogReportConfiguration:zn,getDatabasePurgingConfiguration:qn,updateDatabasePurgingConfiguration:Bn,removeDatabasePurgingConfiguration:Nn,getCorsConfiguration:Jn,updateCorsConfiguration:Vn,getAuthConfiguration:Kn,updateAuthConfiguration:Hn,removeAuthConfiguration:Qn,getJobPriorityConfiguration:_n,updateJobPriorityConfiguration:Wn,removeJobPriorityConfiguration:Xn,getBulkyMetadataConfiguration:Yn,updateBulkyMetadataConfiguration:Zn};function eo({conformRequestDocument:e=o(),...t}){return r({path:"/API/conform",body:e,method:"POST",...t})}function no({itemId:e=o(),timelineFormat:t=o(),conformRequestDocument:n=o(),...a}){const s=`/API/item/${e}/timeline/${t}/conform`;return r({path:s,body:n,method:"POST",...a})}const oo={createConform:eo,createConformItem:no};function ao({xmlDocument:e=o(),headers:t={},...n}){return r({path:"/APInoauth/debug/echo",method:"PUT",body:e,headers:{contentType:"application/xml",...t},...n})}const ro={echo:ao};function so({...e}={}){return r({path:"/API/deletion-lock",method:"GET",...e})}function io({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"GET",...t})}function co({lockId:e=o(),deletionLockDocument:t=o(),...n}){const a=`/API/deletion-lock/${e}`;return r({path:a,method:"PUT",body:t,...n})}function uo({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"DELETE",...t})}function ho({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/deletion-lock/`;return r({path:a,method:"GET",...n})}function po({entity:e=o(),entityId:t=o(),deletionLockDocument:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/`;return r({path:s,method:"POST",body:n,...a})}function mo({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:s,method:"GET",...a})}function lo({entity:e=o(),entityId:t=o(),lockId:n=o(),deletionLockDocument:a=o(),...s}){const i=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:i,method:"PUT",body:a,...s})}function fo({entity:e=o(),entityId:t=o(),lockId:n=o(),...a}){const s=`/API/${e}/${t}/deletion-lock/${n}`;return r({path:s,method:"DELETE",...a})}const Po={listDeletionLock:so,getDeletionLock:io,updateDeletionLock:co,removeDeletionLock:uo,listEntityDeletionLock:ho,createEntityDeletionLock:po,getEntityDeletionLock:mo,updateEntityDeletionLock:lo,removeEntityDeletionLock:fo};function To({...e}={}){return r({path:"/API/document/",method:"GET",...e})}function $o({itemSearchDocument:e,...t}={}){return r({path:"/API/document/",method:"PUT",body:e,...t})}function go({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"GET",...t})}function Io({documentMetadataName:e=o(),metadataDocument:t,...n}){const a=`/API/document/${e}`;return r({path:a,body:t,method:"PUT",...n})}function Ao({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}/changes`;return r({path:n,method:"GET",...t})}function Eo({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"DELETE",...t})}const yo={listDocumentMetadata:To,searchDocumentMetadata:$o,getDocumentMetadata:go,updateDocumentMetadata:Io,getDocumentMetadataChanges:Ao,removeDocumentMetadata:Eo};function bo({...e}={}){return r({path:"/API/error",method:"GET",...e})}const So={listErrorLogs:bo};function Go({...e}={}){return r({path:"/API/export-location",method:"GET",...e})}function vo({locationName:e=o(),...t}){return r({path:`/API/export-location/${e}`,method:"GET",...t})}function ko({locationName:e=o(),exportLocationDocument:t,...n}){const a=`/API/export-location/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Uo({locationName:e=o(),...t}){const n=`/API/export-location/${e}`;return r({path:n,method:"DELETE",...t})}function Lo({locationName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/export-location/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function Co({locationName:e=o(),exportScript:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/export-location/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}const Mo={listExportLocation:Go,getExportLocation:vo,updateExportLocation:ko,removeExportLocation:Uo,getExportLocationScript:Lo,updateExportLocationScript:Co};function Do({...e}={}){return r({path:"/API/export-template",method:"GET",...e})}function xo({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"GET",...t})}function Oo({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"DELETE",...t})}function jo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function Fo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function Ro({templateName:e=o(),headers:t={},...n}){const a=`/API/export-template/${e}/graph`,s={accept:"image/png",...t};return r({path:a,method:"GET",headers:s,...n})}function wo({templateName:e=o(),headers:t={},...n}){const a=`/API/export-template/${e}/graph/dot`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function zo({...e}){return r({path:"/API/export-template/test",method:"POST",...e})}function qo({...e}){return r({path:"/API/export-template/test",method:"PUT",...e})}const Bo={listExportTemplete:Do,getExportTemplate:xo,removeExportTemplate:Oo,createExportTemplate:jo,updateExportTemplate:Fo,getExportTemplateGraph:Ro,getExportTemplateGraphDot:wo,createExportTemplateTest:zo,createExportTemplateTestRender:qo};function A(e){return e==="field-group"?"metadata-field/field-group":e}function No({...e}={}){return r({path:"/API/external-id",method:"GET",...e})}function Jo({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"GET",...t})}function Vo({idName:e=o(),externalIdentifierNamespaceDocument:t,...n}){const a=`/API/external-id/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Ko({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"DELETE",...t})}function Ho({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${A(e)}/${t}/external-id/`;return r({path:a,method:"GET",...n})}function Qo({entityType:e=o(),entityId:t=o(),externalId:n=o(),...a}){const s=`/API/${A(e)}/${t}/external-id/${n}`;return r({path:s,method:"PUT",...a})}function _o({entityType:e=o(),entityId:t=o(),externalId:n=o(),...a}){const s=`/API/${A(e)}/${t}/external-id/${n}`;return r({path:s,method:"DELETE",...a})}function Wo({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${A(e)}/${t}/external-id`;return r({path:a,method:"DELETE",...n})}const Xo={listExternalIdNamespace:No,getExternalIdNamespace:Jo,updateExternalIdNamespace:Vo,removeExternalIdNamespace:Ko,listExternalId:Ho,createExternalId:Qo,removeExternalId:_o,removeAllExternalId:Wo},{getSimpleMetadata:Yo}=g;function Zo({...e}={}){return r({path:"/API/metadata-field/field-group/",method:"GET",...e})}function ta({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/`;return r({path:n,method:"GET",...t})}function ea({groupName:e=o(),metadataFieldGroupDocument:t,...n}){const a=`/API/metadata-field/field-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function na({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}`;return r({path:n,method:"DELETE",...t})}function oa({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function aa({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function ra({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/group/${t}`;return r({path:a,method:"PUT",...n})}function sa({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/group/${t}`;return r({path:a,method:"DELETE",...n})}function ia({metadataFieldGroupSearchDocument:e,...t}){return r({path:"/API/metadata-field/field-group/",method:"PUT",body:e,...t})}function ca({groupName:e=o(),...t}){return Yo({entityType:"metadata-field/field-group",entityId:e,...t})}function ua({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/access`;return r({path:n,method:"GET",...t})}function ha({groupName:e=o(),metadataFieldAccessControlDocument:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/access`;return r({path:a,method:"POST",body:t,...n})}function pa({groupName:e=o(),accessId:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/access/${t}`;return r({path:a,method:"DELETE",...n})}function da({...e}={}){return r({path:"/API/metadata-field/field-group/merged-access",method:"GET",...e})}function ma({groupName:e=o(),...t}={}){const n=`/API/metadata-field/field-group/${e}/merged-access`;return r({path:n,method:"GET",...t})}const la={listFieldGroup:Zo,getFieldGroup:ta,updateFieldGroup:ea,removeFieldGroup:na,updateFieldGroupField:oa,removeFieldGroupField:aa,updateFieldGroupChild:ra,removeFieldGroupChild:sa,searchFieldGroup:ia,getSimpleMetadata:ca,listFieldGroupAccess:ua,createFieldGroupAccess:ha,removeFieldGroupAccess:pa,listFieldGroupMergedAccess:da,getFieldGroupMergedAccess:ma};function fa({...e}={}){return r({path:"/API/storage/file/",method:"GET",...e})}function Pa({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/`;return r({path:n,method:"GET",...t})}function Ta({...e}={}){return r({path:"/API/storage/file/importable/",method:"GET",...e})}function $a({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/importable/`;return r({path:n,method:"GET",...t})}function ga({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/`;return r({path:n,method:"GET",...t})}function Ia({storageId:e=o(),file:t=o(),headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/storage/${e}/file/data`;return r({path:i,method:"POST",body:t,headers:s,...a})}function Aa({fileId:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/storage/file/${e}/data`;return r({path:s,method:"GET",headers:a,responseType:"blob",...n})}function Ea({fileId:e=o(),file:t,headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/storage/file/${e}/data/`;return r({path:i,method:"POST",body:t,headers:s,...a})}function ya({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function ba({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function Sa({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/file/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function Ga({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function va({fileId:e=o(),targetStorageId:t=o(),...n}){const a=`/API/storage/file/${e}/storage/${t}/`;return r({path:a,method:"POST",...n})}function ka({fileId:e=o(),...t}){const n=`/API/storage/file/${e}`;return r({path:n,method:"DELETE",...t})}function Ua({storageId:e=o(),fileDocument:t,...n}){const a=`/API/storage/${e}/file/`;return r({path:a,method:"POST",body:t,...n})}function La({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/entity`;return r({path:n,method:"DELETE",...t})}function Ca({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/path/`;return r({path:n,method:"POST",...t})}function Ma({fileId:e=o(),state:t=o(),...n}){const a=`/API/storage/file/${e}/state/${t}`;return r({path:a,method:"PUT",...n})}function Da({fileId:e=o(),hash:t=o(),...n}){const a=`/API/storage/file/${e}/hash/${t}`;return r({path:a,method:"PUT",...n})}function xa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/abandon`;return r({path:n,method:"PUT",...t})}function Oa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/re-index`;return r({path:n,method:"PUT",...t})}function ja({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/uri`;return r({path:n,method:"POST",...t})}function Fa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze`;return r({path:n,method:"POST",...t})}function Ra({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze/imp`;return r({path:n,method:"POST",...t})}function wa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/shape`;return r({path:n,method:"GET",...t})}const C={listFile:fa,listFileStorage:Pa,listFileImportable:Ta,listFileStorageImportable:$a,getFile:ga,createFileRaw:Ia,getFileRaw:Aa,updateFileRaw:Ea,createFileImport:ya,createFileImportAssetMap:ba,createFilePathImportAssetMap:Sa,createFileImportPath:Ga,createFileMove:va,removeFile:ka,createFileEntity:Ua,removeFileEntity:La,createFilePath:Ca,updateFileState:Ma,updateFileHash:Da,abandonFile:xa,reindexFile:Oa,createFileTemporaryCredentials:ja,analyzeFile:Fa,analyzeFileImp:Ra,listFileShapes:wa};function za({...e}={}){return r({path:"/API/metadata",method:"GET",...e})}function qa({metadataDocument:e=o(),...t}){return r({path:"/API/metadata",method:"PUT",body:e,...t})}function Ba({uuid:e=o(),...t}){const n=`/API/metadata/${e}`;return r({path:n,method:"GET",...t})}function Na({uuid:e=o(),...t}={}){const n=`/API/metadata/${e}`;return r({path:n,method:"DELETE",...t})}const Ja={listGlobalMetadata:za,updateGlobalMetadata:qa,getGlobalMetadata:Ba,removeGlobalMetadata:Na};function Va({...e}={}){return r({path:"/API/group/",method:"GET",...e})}function Ka({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"GET",...t})}function Ha({groupName:e=o(),groupDocument:t,...n}){const a=`/API/group/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Qa({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"DELETE",...t})}function _a({...e}){return r({path:"/API/group/",method:"DELETE",...e})}function Wa({groupSearchDocument:e,...t}){return r({path:"/API/group/",method:"PUT",body:e,...t})}function Xa({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/role`;return r({path:s,method:"GET",headers:a,...n})}function Ya({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/description`;return r({path:s,method:"GET",headers:a,...n})}function Za({groupName:e=o(),description:t,headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/group/${e}/description`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function tr({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/parents/`;return r({path:s,method:"GET",headers:a,...n})}function er({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/children/`;return r({path:s,method:"GET",headers:a,...n})}function nr({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"PUT",...n})}function or({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"DELETE",...n})}function ar({groupName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/group/${e}/users/`;return r({path:s,method:"GET",headers:a,...n})}function rr({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"PUT",...n})}function sr({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"DELETE",...n})}const ir={listGroup:Va,getGroup:Ka,updateGroup:Ha,removeGroup:Qa,removeGroupList:_a,searchGroup:Wa,getGroupRoleStatus:Xa,getGroupDescription:Ya,updateGroupDescription:Za,getGroupParents:tr,getGroupChildren:er,addGroupChildren:nr,removeGroupChildren:or,getGroupUser:ar,addGroupUser:rr,removeGroupUser:sr},{createFileEntity:cr,createFileTemporaryCredentials:ur,updateFileState:hr,abandonFile:pr}=C;function dr({metadataDocument:e={},...t}={}){return r({path:"/API/import/",method:"POST",body:e,...t})}function mr({...e}={}){return r({path:"/API/import/storage",method:"GET",...e})}function lr({file:e=o(),headers:t={},...n}){return r({path:"/API/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function fr({file:e=o(),headers:t={},...n}){return r({path:"/APInoauth/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function Pr({metadataDocument:e={},...t}={}){return r({path:"/API/import/raw-passkey/",method:"POST",body:e,...t})}function Tr({itemId:e=o(),component:t=o(),...n}={}){const a=`/import/placeholder/${e}/${t}/raw-passkey`;return r({path:a,method:"POST",...n})}function $r({metadataDocument:e={},...t}={}){return r({path:"/API/import/imp/",method:"POST",body:e,...t})}function gr({metadataDocument:e={},...t}={}){return r({path:"/API/import/placeholder/",method:"POST",body:e,...t})}function Ir({itemId:e=o(),component:t=o(),...n}){const a=`/API/import/placeholder/${e}/${t}/`;return r({path:a,method:"POST",...n})}function Ar({itemId:e=o(),component:t=o(),file:n=o(),headers:a={},...s}){const i=`/API/import/placeholder/${e}/${t}/raw/`;return r({path:i,method:"POST",body:n,headers:{contentType:"application/octet-stream",...a},...s})}function Er({itemId:e=o(),component:t=o(),file:n=o(),headers:a={},...s}){const i=`/APInoauth/import/placeholder/${e}/${t}/raw/`;return r({path:i,method:"POST",body:n,headers:{contentType:"application/octet-stream",...a},...s})}function yr({itemId:e=o(),placeholderImportRequestDocument:t,...n}){const a=`/API/import/placeholder/${e}/`;return r({path:a,method:"POST",body:t,...n})}function br({itemId:e=o(),...t}){const n=`/API/import/placeholder/${e}/raw-passkey/`;return r({path:n,method:"POST",...t})}function Sr({itemId:e=o(),component:t=o(),fileId:n=o(),...a}){const s=`/API/import/placeholder/${e}/${t}/adopt/${n}/`;return r({path:s,method:"POST",...a})}function Gr({itemId:e=o(),...t}){const n=`/API/import/sidecar/${e}/`;return r({path:n,method:"POST",...t})}function vr({itemId:e=o(),file:t,headers:n={},...a}){const s={contentType:"application/octet-stream",...n},i=`/API/import/sidecar/${e}/raw/`;return r({path:i,method:"POST",body:t,headers:s,...a})}function kr({file:e=o(),storageId:t=o()}){return new Promise((n,a)=>{let s,i;cr({storageId:t,queryParams:{path:e.name}}).then(u=>(i=u.data,s=u.data.id,ur({fileId:s,queryParams:{write:!0,scheme:"https",duration:720}}))).then(u=>{const p=u.data.uri[0];return fetch(p,{method:"PUT",headers:{"Content-Type":"application/octet-stream"},body:e})}).then(()=>{hr({fileId:s,state:"CLOSED"})}).then(()=>{n(i)}).catch(u=>{s&&pr({fileId:s}),a(u.response)})})}const Ur={createImportUri:dr,getImportStorage:mr,createImportRaw:lr,createImportRawNoAuth:fr,createImportRawPasskey:Pr,createImportComponentRawPasskey:Tr,createImportImp:$r,createImportPlaceholder:gr,createImportComponent:Ir,createImportComponentRaw:Ar,createImportComponentRawNoAuth:Er,createImportItem:yr,createImportItemPasskey:br,createImportItemAdoptFile:Sr,createImportItemSidecar:Gr,createImportItemSidecarRaw:vr,createImportS3Direct:kr};function Lr({...e}={}){return r({path:"/API/import/settings",method:"GET",...e})}function Cr({importSettingsDocument:e,...t}){return r({path:"/API/import/settings",method:"POST",body:e,...t})}function Mr({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"GET",...t})}function Dr({settingsId:e=o(),importSettingsDocument:t,...n}){const a=`/API/import/settings/${e}`;return r({path:a,method:"PUT",body:t,...n})}function xr({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"DELETE",...t})}const Or={listImportSettings:Lr,createImportSettings:Cr,getImportSettings:Mr,updateImportSettings:Dr,removeImportSettings:xr},{updateEntityMetadata:jr,getEntityMetadata:Fr}=g,{listEntityMetadataLock:Rr,createEntityMetadataLock:wr,getEntityMetadataLock:zr,updateEntityMetadataLock:qr,removeEntityMetadataLock:Br}=b;function Nr({...e}={}){return r({path:"/API/item/",method:"GET",...e})}function Jr({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"GET",...t})}function Vr({itemId:e=o(),...t}){const n=`/API/item/${e}/uri`;return r({path:n,method:"GET",...t})}function Kr({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"DELETE",...t})}function Hr({...e}={}){return r({path:"/API/item/",method:"DELETE",...e})}function Qr({itemSearchDocument:e={},...t}={}){return r({path:"/API/item/",method:"PUT",body:e,...t})}function _r({metadataGroupSearchDocument:e,...t}){return r({path:"/API/item/metadata-group",method:"PUT",body:e,...t})}function Wr({itemId:e=o(),metadataDocument:t,...n}){return jr({entity:"item",entityId:e,metadataDocument:t,...n})}function Xr({itemId:e=o(),...t}){return Fr({entity:"item",entityId:e,...t})}function Yr({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function Zr({itemId:e=o(),...t}){const n=`/API/item/${e}/transcode`;return r({path:n,method:"POST",...t})}function ts({itemId:e=o(),...t}){const n=`/API/item/${e}/export`;return r({path:n,method:"POST",...t})}function es({itemId:e=o(),...t}){const n=`/API/item/${e}/export/imp`;return r({path:n,method:"POST",...t})}function ns({itemId:e=o(),...t}){const n=`/API/item/${e}/relation`;return r({path:n,method:"GET",...t})}function os({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"POST",...n})}function as({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation/",method:"POST",body:e,...t})}function rs({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"DELETE",...n})}function ss({itemId:e=o(),...t}){const n=`/API/item/${e}/relation/`;return r({path:n,method:"DELETE",...t})}function is({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation",method:"POST",body:e,...t})}function cs({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"GET",...t})}function us({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"PUT",...t})}function hs({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"DELETE",...t})}function ps({...e}={}){return r({path:"/API/item/history",method:"GET",...e})}function ds({itemId:e=o(),...t}){const n=`/API/item/${e}/re-index`;return r({path:n,method:"PUT",...t})}function ms({...e}={}){return r({path:"/API/item/list",method:"POST",...e})}function ls({itemId:e=o(),...t}){const n=`/API/item/${e}/collections`;return r({path:n,method:"GET",...t})}function fs({itemId:e=o(),...t}){const n=`/API/item/${e}/library`;return r({path:n,method:"GET",...t})}function Ps({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"POST",...t})}function Ts({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"GET",...t})}function $s({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"DELETE",...t})}function gs({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"PUT",...t})}function Is({itemId:e=o(),...t}){return Rr({entity:"item",entityId:e,...t})}function As({itemId:e=o(),...t}){return wr({entity:"item",entityId:e,...t})}function Es({itemId:e=o(),lockId:t=o(),...n}){return zr({entity:"item",entityId:e,lockId:t,...n})}function ys({itemId:e=o(),lockId:t=o(),...n}){return qr({entity:"item",entityId:e,lockId:t,...n})}function bs({itemId:e=o(),lockId:t=o(),...n}){return Br({entity:"item",entityId:e,lockId:t,...n})}function Ss({itemId:e=o(),...t}){const n=`/API/item/${e}/loudness`;return r({path:n,method:"GET",...t})}function Gs({itemId:e=o(),...t}){const n=`/API/item/${e}/waveform/values`;return r({path:n,method:"GET",...t})}function vs({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/waveform/image`,s={accept:"image/png",...t};return r({path:a,method:"GET",headers:s,...n})}function ks({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/waveform/imageURI`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function Us({itemId:e=o(),analyzeJobDocument:t,...n}){const a=`/API/item/${e}/analyze`;return r({path:a,method:"POST",body:t,...n})}const Ls={listItem:Nr,getItem:Jr,getItemUri:Vr,removeItem:Kr,removeItemList:Hr,searchItem:Qr,searchItemMetadataGroup:_r,updateItemMetadata:Wr,getItemMetadata:Xr,createThumbnail:Yr,createTranscode:Zr,createExport:ts,createExportImp:es,listItemRelation:ns,createItemRelation:os,createItemRelationList:as,removeItemRelation:rs,removeAllItemRelation:ss,createRelation:is,getRelation:cs,updateRelation:us,removeRelation:hs,getItemSearchHistory:ps,reindexItem:ds,createItemList:ms,listItemCollection:ls,listItemLibrary:fs,createItemLock:Ps,getItemLock:Ts,removeItemLock:$s,updateItemLock:gs,listItemMetadataLock:Is,createItemMetadataLock:As,getItemMetadataLock:Es,updateItemMetadataLock:ys,removeItemMetadataLock:bs,getItemLoudness:Ss,getItemWaveformValue:Gs,getItemWaveformImage:vs,getItemWaveformImageUri:ks,createItemAnalyze:Us};function Cs({javascriptDocument:e,headers:t={},...n}){const a={contentType:"application/javascript",...t};return r({path:"/API/javascript/test",method:"POST",body:e,headers:a,...n})}const Ms={test:Cs};function l(e){return e==="file"?"storage/file":["metadata","access"].includes(e)?"item":e}function Ds({entityType:e=o(),...t}={}){const a=`/API/${l(e)}/notification/`;return r({path:a,method:"GET",...t})}function xs({entityType:e=o(),entityId:t=o(),...n}={}){const s=`/API/${l(e)}/${t}/notification/`;return r({path:s,method:"GET",...n})}function Os({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"GET",...n})}function js({notificationId:e=o(),entityType:t=o(),notificationDocument:n,...a}={}){const i=`/API/${l(t)}/notification/${e}`;return r({path:i,method:"PUT",body:n,...a})}function Fs({entityType:e=o(),notificationDocument:t,...n}={}){const s=`/API/${l(e)}/notification/`;return r({path:s,method:"POST",body:t,...n})}function Rs({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"DELETE",...n})}function ws({notificationId:e=o(),entityType:t=o(),entityId:n=o(),...a}={}){const i=`/API/${l(t)}/${n}/notification/${e}`;return r({path:i,method:"GET",...a})}function zs({notificationId:e=o(),entityType:t=o(),entityId:n=o(),notificationDocument:a,...s}={}){const u=`/API/${l(t)}/${n}/notification/${e}`;return r({path:u,method:"PUT",body:a,...s})}function qs({entityType:e=o(),notificationDocument:t,entityId:n,...a}={}){const i=`/API/${l(e)}/${n}/notification/`;return r({path:i,method:"POST",body:t,...a})}function Bs({notificationId:e=o(),entityType:t=o(),entityId:n=o(),...a}={}){const i=`/API/${l(t)}/${n}/notification/${e}`;return r({path:i,method:"DELETE",...a})}const M={listNotification:Ds,listNotificationEntity:xs,getNotification:Os,updateNotification:js,createNotification:Fs,removeNotification:Rs,getNotificationEntity:ws,updateNotificationEntity:zs,createNotificationEntity:qs,removeNotificationEntity:Bs},{listNotification:Ns}=M;function Js({...e}={}){return r({path:"/API/job/",method:"GET",...e})}function Vs({jobSearchDocument:e={},...t}={}){return r({path:"/API/job/search/",method:"PUT",body:e,...t})}function Ks({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"GET",...t})}function Hs({simpleMetadataDocument:e,...t}={}){return r({path:"/API/job",method:"POST",body:e,...t})}function Qs({jobId:e=o(),...t}){const n=`/API/job/${e}/re-run`;return r({path:n,method:"POST",...t})}function _s({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"PUT",...t})}function Ws({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"DELETE",...t})}function Xs({...e}={}){return r({path:"/API/job/",method:"DELETE",...e})}function Ys({...e}={}){return Ns({entityType:"job",...e})}const Zs={listJob:Js,searchJob:Vs,getJob:Ks,createJob:Hs,duplicateJob:Qs,modifyJob:_s,abortJob:Ws,deleteJob:Xs,listJobNotification:Ys};function ti({...e}={}){return r({path:"/API/library/",method:"GET",...e})}function ei({itemListDocument:e={},...t}){return r({path:"/API/library",method:"POST",body:e,...t})}function ni({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"DELETE",...t})}function oi({...e}={}){return r({path:"/API/library",method:"DELETE",...e})}function ai({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"GET",...t})}function ri({libraryId:e=o(),itemListDocument:t,...n}){const a=`/API/library/${e}`;return r({path:a,method:"PUT",body:t,...n})}function si({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"PUT",...n})}function ii({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function ci({libraryId:e=o(),metadataDocument:t,...n}){const a=`/API/library/${e}/item-metadata`;return r({path:a,method:"PUT",body:t,...n})}function ui({libraryId:e=o(),...t}){const n=`/API/library/${e}/settings`;return r({path:n,method:"GET",...t})}function hi({libraryId:e=o(),librarySettingsDocument:t,...n}){const a=`/API/library/${e}/settings`;return r({path:a,method:"PUT",body:t,...n})}function pi({libraryId:e=o(),...t}){const n=`/API/library/${e}/list`;return r({path:n,method:"POST",...t})}function di({libraryId:e=o(),queryParams:t=o(),...n}){const a=`/API/library/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}const mi={listLibrary:ti,createLibrary:ei,removeLibrary:ni,removeLibraryList:oi,getLibrary:ai,updateLibrary:ri,addLibraryItem:si,removeLibraryItem:ii,updateLibraryItemMetadata:ci,getLibrarySettings:ui,updateLibrarySettings:hi,getLibraryBatch:pi,exportLibrary:di};function li({file:e=o(),headers:t={},...n}){const a={contentType:"application/octet-stream",...t};return r({path:"/API/license",method:"POST",body:e,headers:a,...n})}const fi={createLicense:li};function Pi({...e}={}){return r({path:"/API/metadata/dataset",method:"GET",...e})}function Ti({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"GET",...t})}function $i({datasetId:e=o(),body:t=o(),...n}){const a=`/API/metadata/dataset/${e}`;return r({path:a,method:"PUT",body:t,...n})}function gi({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"DELETE",...t})}const Ii={listMetadataDataset:Pi,getMetadataDataset:Ti,updateMetadataDataset:$i,removeMetadataDataset:gi},{getSimpleMetadata:Ai}=g;function Ei({...e}={}){return r({path:"/API/metadata-field/",method:"GET",...e})}function yi({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/`;return r({path:n,method:"GET",...t})}function bi({fieldName:e=o(),metadataFieldDocument:t,...n}){const a=`/API/metadata-field/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Si({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}`;return r({path:n,method:"DELETE",...t})}function Gi({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/values/`;return r({path:n,method:"GET",...t})}function vi({fieldName:e=o(),metadataFieldValueConstraintListDocument:t,...n}){const a=`/API/metadata-field/${e}/allowed-values/`;let s="GET";return t&&(s="POST"),r({path:a,method:s,body:t,...n})}function ki({fieldName:e=o(),simpleMetadataDocument:t,...n}){const a=`/API/metadata-field/${e}/values`;return r({path:a,method:"PUT",body:t,...n})}function Ui({fieldName:e=o(),...t}){return Ai({entityType:"metadata-field",entityId:e,...t})}function Li({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/access`;return r({path:n,method:"GET",...t})}function Ci({fieldName:e=o(),metadataFieldAccessControlDocument:t=o(),...n}){const a=`/API/metadata-field/${e}/access`;return r({path:a,method:"POST",body:t,...n})}function Mi({fieldName:e=o(),accessId:t=o(),...n}){const a=`/API/metadata-field/${e}/access/${t}`;return r({path:a,method:"DELETE",...n})}function Di({...e}={}){return r({path:"/API/metadata-field/merged-access",method:"GET",...e})}function xi({fieldName:e=o(),...t}={}){const n=`/API/metadata-field/${e}/merged-access`;return r({path:n,method:"GET",...t})}const Oi={listMetadataField:Ei,getMetadataField:yi,updateMetadataField:bi,removeMetadataField:Si,getMetadataFieldValues:Gi,getMetadataFieldAllowedValues:vi,updateMetadataFieldValues:ki,getSimpleMetadata:Ui,listMetadataFieldAccess:Li,createMetadataFieldAccess:Ci,removeMetadataFieldAccess:Mi,listMetadataFieldMergedAccess:Di,getMetadataFieldMergedAccess:xi};function ji({...e}={}){return r({path:"/API/metadata/migration",method:"GET",...e})}function Fi({migrationId:e=o(),...t}){const n=`/API/metadata/migration/${e}`;return r({path:n,method:"GET",...t})}function Ri({metadataSchemaMigrationDocument:e=o(),...t}){return r({path:"/API/metadata/migration",method:"POST",body:e,...t})}const wi={listMetadataMigration:ji,getMetadataMigration:Fi,createMetadataMigration:Ri};function zi({...e}={}){return r({path:"/API/metadata-schema",method:"GET",...e})}function qi({metadataSchemaDocument:e=o(),...t}){return r({path:"/API/metadata-schema",method:"PUT",body:e,...t})}function Bi({...e}={}){return r({path:"/API/metadata-schema",method:"DELETE",...e})}function Ni({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"GET",...t})}function Ji({groupName:e=o(),metadataSchemaGroupDocument:t=o(),...n}={}){const a=`/API/metadata-schema${e}`;return r({path:a,method:"PUT",body:t,...n})}function Vi({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"DELETE",...t})}function Ki({...e}={}){return r({path:"/API/metadata-field/terse-schema",method:"GET",...e})}const Hi={getMetadataSchema:zi,updateMetadataSchema:qi,removeMetadataSchema:Bi,getMetadataSchemaGroup:Ni,updateMetadataSchemaGroup:Ji,removeMetadataSchemaGroup:Vi,getTerseMetadataSchema:Ki};function Qi({...e}={}){return r({path:"/APInoauth/is-online/",method:"GET",...e})}function _i({...e}={}){return r({path:"/APInoauth/selftest/",method:"GET",...e})}function Wi({headers:e={},...t}={}){const n={accept:"text/plain",...e};return r({path:"/APIinit/",method:"POST",headers:n,...t})}function Xi({path:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t};return r({path:e,method:"GET",headers:a,responseType:"blob",...n})}const Yi={getSelfTest:_i,createInit:Wi,getFileRaw:Xi,isOnline:Qi};function Zi({projectDocument:e=o(),...t}){return r({path:"/API/collection/project/",method:"POST",body:e,...t})}function tc({collectionId:e=o(),projectVersionDocument:t=o(),...n}){const a=`/API/collection/${e}/version`;return r({path:a,method:"POST",body:t,...n})}function ec({collectionId:e=o(),headers:t={},...n}){const a=`/API/collection/${e}/definition`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function nc({collectionId:e=o(),format:t=o(),body:n=o(),headers:a={},...s}){const i=`/API/collection/${e}/definition/${t}`,u={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",body:n,headers:u,...s})}function oc({collectionId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/collection/${e}/definition/${t}`,i={accept:"application/octet-stream",...n};return r({path:s,method:"GET",headers:i,...a})}function ac({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}`;return r({path:a,method:"DELETE",...n})}function rc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"GET",...n})}function sc({collectionId:e=o(),format:t=o(),essenceMappingsDocument:n=o(),...a}){const s=`/API/collection/${e}/definition/${t}/asset`;return r({path:s,method:"PUT",body:n,...a})}function ic({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"DELETE",...n})}function cc({collectionId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/collection/${e}/definition/${t}/extradata`,i={accept:"application/octet-stream",...n};return r({path:s,method:"GET",headers:i,...a})}function uc({collectionId:e=o(),format:t=o(),body:n=o(),headers:a={},...s}){const i=`/API/collection/${e}/definition/${t}/extradata`,u={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",headers:u,body:n,...s})}function hc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/extradata`;return r({path:a,method:"DELETE",...n})}function pc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/collection/project/inspect",method:"POST",body:t,queryParams:e,...n})}function dc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project",method:"POST",body:t,queryParams:e,...n})}function mc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project/sequence",method:"POST",body:t,queryParams:e,...n})}function lc({collectionId:e=o(),queryParams:t=o(),exportRequestDocument:n,...a}){const s=`/API/collection/${e}/version/export`;let i="GET";return n&&(i="POST"),r({path:s,method:i,body:n,queryParams:t,...a})}const fc={createProject:Zi,createProjectVersion:tc,listProjectDefinition:ec,updateProjectDefinition:nc,getProjectDefinition:oc,removeProjectDefinition:ac,getProjectDefinitionAsset:rc,updateProjectDefinitionAsset:sc,removeProjectDefinitionAsset:ic,getProjectDefinitionExtraData:cc,updateProjectDefinitionExtraData:uc,removeProjectDefinitionExtraData:hc,inspectProjectFile:pc,importProject:dc,importProjectSequence:mc,exportProjectVersionSequence:lc};function Pc({...e}={}){return r({path:"/API/projection/",method:"GET",...e})}function Tc({projectionId:e=o(),headers:t={},...n}){const a=`/API/projection/${e}/outgoing`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}function $c({projectionId:e=o(),headers:t={},...n}){const a=`/API/projection/${e}/incoming`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}function gc({projectionId:e=o(),projectionDocument:t,headers:n={},...a}){const s=`/API/projection/${e}/outgoing`,i={contentType:"application/xml",accept:"application/xml",...n};return r({path:s,method:"PUT",body:t,headers:i,...a})}function Ic({projectionId:e=o(),projectionDocument:t,headers:n={},...a}){const s=`/API/projection/${e}/incoming`,i={contentType:"application/xml",accept:"application/xml",...n};return r({path:s,method:"PUT",body:t,headers:i,...a})}function Ac({projectionId:e=o(),...t}){const n=`/API/projection/${e}`;return r({path:n,method:"DELETE",...t})}const Ec={listProjection:Pc,getProjectionOutgoing:Tc,getProjectionIncoming:$c,updateProjectionOutgoing:gc,updateProjectionIncoming:Ic,removeProjection:Ac};function yc({...e}={}){return r({path:"/API/quota/",method:"GET",...e})}function bc({quotaRuleDocument:e,...t}){return r({path:"/API/quota/",method:"POST",body:e,...t})}function Sc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"GET",...t})}function Gc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"PUT",...t})}function vc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"DELETE",...t})}const kc={listQuota:yc,createQuota:bc,getQuota:Sc,evaluateQuota:Gc,removeQuota:vc};function Uc({indexName:e=o(),...t}){const n=`/API/reindex/${e}`;return r({path:n,method:"GET",...t})}function Lc({indexName:e=o(),...t}){const n=`/API/reindex/${e}/`;return r({path:n,method:"PUT",...t})}const Cc={getReindex:Uc,updateReindex:Lc};function Mc({...e}={}){return r({path:"/API/resource/",method:"GET",...e})}function Dc({resourceType:e=o(),...t}){const n=`/API/resource/${e}`;return r({path:n,method:"GET",...t})}function xc({resourceType:e=o(),resourceDocument:t,...n}){const a=`/API/resource/${e}`;return r({path:a,method:"POST",body:t,...n})}function Oc({resourceType:e=o(),resourceId:t=o(),resourceDocument:n,...a}){const s=`/API/resource/${e}/${t}`;return r({path:s,method:"PUT",body:n,...a})}function jc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"GET",...n})}function Fc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function Rc({resourceType:e=o(),resourceId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/resource/${e}/${t}/status`;return r({path:i,method:"GET",headers:s,...a})}const wc={listResource:Mc,listResourceType:Dc,createResource:xc,modifyResource:Oc,getResource:jc,removeResource:Fc,statusResource:Rc};function zc({...e}){return r({path:"/API/scheduled-request/",method:"GET",...e})}function qc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"GET",...t})}function Bc({requestId:e=o(),headers:t={},...n}){const a=`/API/scheduled-request/${e}/response`,s={accept:"*/*",...t};return r({path:a,headers:s,method:"GET",...n})}function Nc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"DELETE",...t})}function Jc({...e}){return r({path:"/API/scheduled-request",method:"DELETE",...e})}const Vc={listScheduledRequest:zc,getScheduledRequest:qc,getScheduledRequestResponse:Bc,removeScheduledRequest:Nc,removeAllScheduledRequest:Jc};function Kc({...e}={}){return r({path:"/API/search/",method:"GET",...e})}function Hc({itemSearchDocument:e,...t}){return r({path:"/API/search/",method:"PUT",body:e,...t})}function Qc({metadataGroupSearchDocument:e,...t}){return r({path:"/API/search/metadata-group",method:"PUT",body:e,...t})}function _c({shapeSearchDocument:e,...t}){return r({path:"/API/search/shape/",method:"PUT",body:e,...t})}function Wc({fileSearchDocument:e,...t}){return r({path:"/API/search/file/",method:"PUT",body:e,...t})}function Xc({autocompleteRequestDocument:e,...t}){return r({path:"/API/search/autocomplete/",method:"PUT",body:e,...t})}const Yc={listItemCollection:Kc,searchItemCollection:Hc,searchItemCollectionMetadataGroup:Qc,searchShape:_c,searchFile:Wc,searchAutoComplete:Xc};function Zc({noAuth:e=!1,...t}={}){return r({path:e?"/APInoauth/selftest/":"/API/selftest/",method:"GET",...t})}function tu({testName:e=o(),...t}={}){const n=`/API/selftest/${e}`;return r({path:n,method:"GET",...t})}const eu={listSelfTest:Zc,getSelfTest:tu};function nu({itemId:e=o(),format:t=o(),sequenceDefinition:n,headers:a={},...s}){const i=`/API/item/${e}/sequence/${t}`,u={contentType:"application/octet-stream",...a};return r({path:i,method:"PUT",body:n,headers:u,...s})}function ou({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence`;return r({path:n,method:"GET",...t})}function au({itemId:e=o(),format:t=o(),headers:n={},...a}){const s=`/API/item/${e}/sequence/${t}`,i={accept:"*/*",...n};return r({path:s,method:"GET",headers:i,...a})}function ru({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/conform-metadata`;return r({path:n,method:"POST",...t})}function su({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/render`;return r({path:n,method:"POST",...t})}function iu({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/sequence/${t}`;return r({path:a,method:"DELETE",...n})}function cu({sequenceRenderRequestDocument:e=o(),...t}){return r({path:"/API/sequence/render",method:"POST",body:e,...t})}function uu({queryParams:e=o(),exportRequestDocument:t,...n}){return r({path:"/API/sequence/export",method:"POST",body:t,queryParams:e,...n})}function hu({itemId:e=o(),queryParams:t=o(),exportRequestDocument:n,...a}){const s=`/API/item/${e}/sequence/export`;let i="GET";return n&&(i="POST"),r({path:s,method:i,body:n,queryParams:t,...a})}const pu={updateItemSequence:nu,listItemSequence:ou,getItemSequence:au,conformItemSequence:ru,renderItemSequence:su,removeItemSequence:iu,renderSequence:cu,exportSequence:uu,exportItemSequence:hu};function du({...e}={}){return r({path:"/API/vidispine-service",method:"GET",...e})}function mu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}`;return r({path:n,method:"GET",...t})}function lu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}/enable`;return r({path:n,method:"PUT",...t})}function fu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}/disable`;return r({path:n,method:"PUT",...t})}function Pu({headers:e={},...t}={}){const n="/API/vidispine-service/stacktrace",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}const Tu={getServiceList:du,getService:mu,enableService:lu,disableService:fu,getStackTrace:Pu};function $u({itemId:e=o(),metadataDocument:t={},headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/item/${e}/shape/placeholder`;return r({path:i,method:"POST",body:t,headers:s,...a})}function gu({itemId:e=o(),shapeDocument:t={},...n}){const a=`/API/item/${e}/shape/create`;return r({path:a,method:"POST",body:t,...n})}function Iu({itemId:e=o(),shapeId:t=o(),simpleMetadataDocument:n={},...a}){const s=`/API/item/${e}/shape/${t}/placeholder`;return r({path:s,method:"PUT",body:n,...a})}function Au({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"POST",...t})}function Eu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/imp`;return r({path:n,method:"POST",...t})}function yu({itemId:e=o(),headers:t={},file:n,...a}){const s=`/API/item/${e}/shape/raw`,i={contentType:"application/octet-stream",...t};return r({path:s,method:"POST",body:n,headers:i,...a})}function bu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"GET",...t})}function Su({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/`;return r({path:a,method:"GET",...n})}function Gu({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/graph`,i={accept:"image/png",...n};return r({path:s,method:"GET",headers:i,...a})}function vu({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/graph/dot`,i={accept:"text/plain",...n};return r({path:s,method:"GET",headers:i,...a})}function ku({itemId:e=o(),shapeId:t=o(),headers:n={},...a}){const s=`/API/item/${e}/shape/${t}/cpl`,i={accept:"application/xml",...n};return r({path:s,method:"GET",headers:i,...a})}function Uu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function Lu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version`;return r({path:n,method:"GET",...t})}function Cu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"GET",...n})}function Mu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"DELETE",...n})}function Du({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version/`;return r({path:n,method:"POST",...t})}function xu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"POST",...n})}function Ou({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/essence`;return r({path:n,method:"POST",...t})}function ju({itemId:e=o(),headers:t={},file:n,...a}){const s=`/API/item/${e}/shape/essence/raw`,i={contentType:"application/octet-stream",...t};return r({path:s,body:n,method:"POST",headers:i,...a})}function Fu({itemId:e=o(),shapeId:t=o(),...n}={}){const a=`/API/item/${e}/shape/${t}`;return r({path:a,method:"DELETE",...n})}function Ru({itemId:e=o(),...t}={}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"DELETE",...t})}function wu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function zu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/thumbnail`;return r({path:a,method:"POST",...n})}function qu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/update`;return r({path:a,method:"POST",...n})}function Bu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}file`;return r({path:a,method:"GET",...n})}function Nu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/tag`;return r({path:a,method:"GET",...n})}function Ju({itemId:e=o(),shapeId:t=o(),tagName:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/tag/${n}`;return r({path:s,method:"PUT",...a})}function Vu({itemId:e=o(),shapeId:t=o(),tagName:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/tag/${n}`;return r({path:s,method:"DELETE",...a})}function Ku({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/mime`;return r({path:a,method:"GET",...n})}function Hu({itemId:e=o(),shapeId:t=o(),mimeType:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/mime/${n}`;return r({path:s,method:"PUT",...a})}function Qu({itemId:e=o(),shapeId:t=o(),mimeType:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/mime/${n}`;return r({path:s,method:"DELETE",...a})}function _u({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/filename`;return r({path:a,method:"GET",...n})}function Wu({itemId:e=o(),shapeId:t=o(),storageId:n=o(),queryParams:a=o(),...s}){const i=`/API/item/${e}/shape/${t}/filename/${n}`;return r({path:i,method:"PUT",queryParams:a,...s})}function Xu({itemId:e=o(),shapeId:t=o(),storageId:n=o(),...a}){const s=`/API/item/${e}/shape/${t}/filename/${n}`;return r({path:s,method:"DELETE",...a})}function Yu({itemId:e=o(),shapeId:t=o(),analyzeJobDocument:n,...a}){const s=`/API/item/${e}/shape/${t}/analyze`;return r({path:s,method:"POST",body:n,...a})}function Zu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-render`;return r({path:a,method:"POST",...n})}function th({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-edl`;return r({path:a,method:"GET",...n})}function eh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlight-render`;return r({path:a,method:"POST",...n})}function nh({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlighter-edl`;return r({path:a,method:"GET",...n})}const oh={createShapePlaceholder:$u,createShape:gu,updateShapePlaceholder:Iu,createShapeImport:Au,createShapeImportImp:Eu,createShapeImportRaw:yu,listShape:bu,getShape:Su,getShapeGraph:Gu,getShapeGraphDot:vu,getShapeCpl:ku,createShapeTranscode:Uu,listShapeEssence:Lu,getShapeEssence:Cu,removeShapeEssence:Mu,copyShapeEssence:Du,copyShapeEssenceSpecific:xu,createShapeEssenceImport:Ou,createShapeEssenceImportRaw:ju,removeShape:Fu,removeShapeAll:Ru,createTranscode:wu,createThumbnail:zu,createDeduction:qu,listShapeFile:Bu,getShapeTag:Nu,updateShapeTag:Ju,removeShapeTag:Vu,getShapeMime:Ku,updateShapeMime:Hu,removeShapeMime:Qu,getShapeFileNameRule:_u,createShapeFileNameRule:Wu,removeShapeFileNameRule:Xu,createShapeAnalyze:Yu,createSmartcrop:Zu,getSmartcrop:th,createHighlight:eh,getHighlight:nh};function ah({...e}={}){return r({path:"/API/shape-tag/",method:"GET",...e})}function rh({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"GET",...t})}function sh({tagName:e=o(),transcodePresetDocument:t,...n}){const a=`/API/shape-tag/${e}`;return r({path:a,method:"PUT",body:t,...n})}function ih({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"DELETE",...t})}function ch({tagName:e=o(),headers:t={},...n}){const a={accept:"application/javascript",...t},s=`/API/shape-tag/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function uh({tagName:e=o(),shapeTagScript:t,headers:n={},...a}){const s={contentType:"application/javascript",...n},i=`/API/shape-tag/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function hh({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}/script`;return r({path:n,method:"DELETE",...t})}function ph({tagName:e=o(),itemId:t=o(),shapeId:n=o(),...a}){const s=`/API/shape-tag/${e}/item/${t}/shape/${n}/`;return r({path:s,method:"GET",...a})}function dh({...e}={}){return r({path:"/APIinit/preset-templates",method:"PUT",...e})}const mh={listShapeTag:ah,getShapeTag:rh,updateShapeTag:sh,removeShapeTag:ih,getShapeTagScript:ch,updateShapeTagScript:uh,removeShapeTagScript:hh,testShapeTagScript:ph,createShapeTagPreset:dh};function lh({headers:e={},...t}={}){const n={accept:"image/png",...e};return r({path:"/APInoauth/stitch",method:"GET",headers:n,...t})}const fh={getStitch:lh};function Ph({...e}={}){return r({path:"/API/storage/",method:"GET",...e})}function Th({storageDocument:e,...t}){return r({path:"/API/storage/",method:"POST",body:e,...t})}function $h({storageId:e=o(),...t}){const n=`/API/storage/${e}/`;return r({path:n,method:"GET",...t})}function gh({storageId:e=o(),storageDocument:t,...n}){const a=`/API/storage/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Ih({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/metadata`;return r({path:a,method:"PUT",body:t,...n})}function Ah({storageId:e=o(),key:t=o(),metadataValue:n,headers:a={},...s}){const i={contentType:"text/plain",...a},u=`/API/storage/${e}/metadata/${t}`;return r({path:u,method:"PUT",body:n,headers:i,...s})}function Eh({storageId:e=o(),key:t=o(),...n}){const a=`/API/storage/${e}/metadata/${t}`;return r({path:a,method:"DELETE",...n})}function yh({storageId:e=o(),...t}){const n=`/API/storage/${e}/rescan`;return r({path:n,method:"POST",...t})}function bh({storageId:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/storage/${e}/method/`;return r({path:s,method:"PUT",headers:a,...n})}function Sh({storageId:e=o(),storageMethodId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/storage/${e}/method/${t}/`;return r({path:i,method:"PUT",headers:s,...a})}function Gh({storageId:e=o(),storageMethodId:t=o(),headers:n={},...a}){const s={accept:"text/plain",...n},i=`/API/storage/${e}/method/${t}`;return r({path:i,method:"DELETE",headers:s,...a})}function vh({storageId:e=o(),storageMethodId:t=o(),...n}){const a=`/API/storage/${e}/method/${t}`;return r({path:a,method:"GET",...n})}function kh({storageId:e=o(),...t}){const n=`/API/storage/${e}/method/`;return r({path:n,method:"GET",...t})}function Uh({storageId:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/storage/${e}/`;return r({path:s,method:"DELETE",headers:a,...n})}function Lh({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"PUT",...t})}function Ch({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"DELETE",...t})}function Mh({storageId:e=o(),storageType:t=o(),...n}){const a=`/API/storage/${e}/type/${t}`;return r({path:a,method:"PUT",...n})}const Dh={listStorage:Ph,createStorage:Th,getStorage:$h,modifyStorage:gh,modifyStorageMetadata:Ih,modifyStorageMetadataKey:Ah,removeStorageMetadata:Eh,rescanStorage:yh,createStorageMethod:bh,modifyStorageMethod:Sh,removeStorageMethod:Gh,getStorageMethod:vh,listStorageMethod:kh,removeStorage:Uh,startEvacuateStorage:Lh,cancelEvacuateStorage:Ch,updateStorageType:Mh};function xh({...e}={}){return r({path:"/API/storage/storage-group/",method:"GET",...e})}function Oh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"PUT",...t})}function jh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"GET",...t})}function Fh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"DELETE",...t})}function Rh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function wh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}const zh={listStorageGroup:xh,createStorageGroup:Oh,getStorageGroup:jh,removeStorageGroup:Fh,addStorageGroupStorage:Rh,removeStorageGroupStorage:wh};function qh({...e}={}){return r({path:"/API/storage-rule/",method:"GET",...e})}function Bh({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"GET",...n})}function Nh({entityType:e=o(),entityId:t=o(),storageRuleDocument:n,...a}){const s=`/API/${e}/${t}/storage-rule`;return r({path:s,method:"PUT",body:n,...a})}function Jh({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"DELETE",...n})}function Vh({entityType:e=o(),entityId:t=o(),tagName:n=o(),...a}){const s=`/API/${e}/${t}/storage-rule/${n}`;return r({path:s,method:"GET",...a})}function Kh({entityType:e=o(),entityId:t=o(),tagName:n=o(),storageRuleDocument:a,...s}){const i=`/API/${e}/${t}/storage-rule/${n}`;return r({path:i,method:"PUT",body:a,...s})}function Hh({entityType:e=o(),entityId:t=o(),tagName:n=o(),...a}){const s=`/API/${e}/${t}/storage-rule/${n}`;return r({path:s,method:"DELETE",...a})}function Qh({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"GET",...t})}function _h({tagName:e=o(),storageRuleDocument:t,...n}){const a=`/API/shape-tag/storage-rule/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Wh({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"DELETE",...t})}const Xh={listStorageRule:qh,getEntityStorageRule:Bh,updateEntityStorageRule:Nh,removeEntityStorageRule:Jh,getEntityStorageRuleTag:Vh,updateEntityStorageRuleTag:Kh,removeEntityStorageRuleTag:Hh,getStorageRuleShapeTag:Qh,updateStorageRuleShapeTag:_h,removeStorageRuleShapeTag:Wh};function Yh({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/metadata/export/scc`,s={accept:"text/plain ",...t};return r({path:a,method:"GET",headers:s,...n})}function Zh({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/metadata/export/ttml`,s={accept:"application/xml",...t};return r({path:a,method:"GET",headers:s,...n})}const tp={getSubtitleSCC:Yh,getSubtitleTTML:Zh};function ep({...e}={}){return r({path:"/API/jobtype",method:"GET",...e})}function np({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"POST",...t})}function op({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"DELETE",...t})}function ap({...e}={}){return r({path:"/API/task-definition",method:"GET",...e})}function rp({taskDefinitionType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"GET",...t})}function sp({taskDefinitionListDocument:e,...t}){return r({path:"/API/task-definition",method:"POST",body:e,...t})}function ip({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"GET",...t})}function cp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"GET",...n})}function up({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"DELETE",...t})}function hp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"DELETE",...n})}function pp({taskDefinitionId:e=o(),taskDefinitionDocument:t=o(),...n}){const a=`/API/task-definition/${e}`;return r({path:a,method:"PUT",body:t,...n})}function dp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),taskDefinitionDocument:n,...a}){const s=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:s,method:"PUT",body:n,...a})}function mp({taskDefinitionId:e=o(),headers:t={},...n}){const a={accept:"application/javascript",...t},s=`/API/task-definition/${e}/script`;return r({path:s,method:"GET",headers:a,...n})}function lp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),headers:n={},...a}){const s={accept:"application/javascript",...n},i=`/API/task-definition/jobtype/${e}/step/${t}/script`;return r({path:i,method:"GET",headers:s,...a})}function fp({taskDefinitionId:e=o(),scriptDocument:t,headers:n={},...a}){const s={contentType:"application/javascript",accept:"application/javascript",...n},i=`/API/task-definition/${e}/script`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function Pp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),scriptDocument:n,headers:a={},...s}){const i={contentType:"application/javascript",accept:"application/javascript",...a},u=`/API/task-definition/jobtype/${e}/step/${t}/script`;return r({path:u,method:"PUT",body:n,headers:i,...s})}const Tp={listJobType:ep,createJobType:np,removeJobType:op,listTaskDefinition:ap,getTaskDefinitionType:rp,createTaskDefinition:sp,getTaskDefinition:ip,getTaskDefinitionStep:cp,removeTaskDefinition:up,removeTaskDefinitionStep:hp,modifyTaskDefinition:pp,modifyTaskDefinitionStep:dp,getTaskDefinitionScript:mp,getTaskDefinitionStepScript:lp,updateTaskDefinitionScript:fp,updateTaskDefinitionStepScript:Pp};function $p({...e}={}){return r({path:"/API/task-group",method:"GET",...e})}function gp({groupName:e=o(),taskGroupDocument:t,...n}){const a=`/API/task-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Ip({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"GET",...t})}function Ap({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"DELETE",...t})}function Ep({...e}={}){return r({path:"/API/task-group",method:"DELETE",...e})}function yp({groupName:e=o(),transcoderId:t=o(),taskGroupDocument:n,...a}){const s=`/API/task-group/${e}/transcoder/${t}`;return r({path:s,method:"PUT",...a})}function bp({groupName:e=o(),transcoderId:t=o(),...n}){const a=`/API/task-group/${e}/transcoder/${t}`;return r({path:a,method:"DELETE",...n})}const Sp={listTaskGroup:$p,updateTaskGroup:gp,getTaskGroup:Ip,removeTaskGroup:Ap,removeAllTaskGroup:Ep,updateTaskGroupTranscoder:yp,removeTaskGroupTranscoder:bp};function Gp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function vp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"GET",...t})}function kp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"PUT",...t})}function Up({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"GET",...n})}function Lp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function Cp({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},file:s,...i}){const u=`/API/thumbnail/${t}/${e}/${n}`,p={accept:"text/plain",...a};return r({path:u,method:"PUT",body:s,headers:p,...i})}function Mp({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},...s}){const i=`/API/thumbnail/${t}/${e}/${n}`,u={accept:"image/png, image/jpeg",...a};return r({path:i,method:"GET",headers:u,...s})}function Dp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/thumbnail/${t}/${e}/${n}/export`;return r({path:s,method:"GET",...a})}function xp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/thumbnail/${t}/${e}/${n}`;return r({path:s,method:"DELETE",...a})}function Op({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"GET",...t})}function jp({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"PUT",...t})}function Fp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"GET",...n})}function Rp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function wp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}`;return r({path:s,method:"PUT",...a})}function zp({itemId:e=o(),resourceId:t=o(),time:n=o(),headers:a={},...s}){const i=`/API/poster/${t}/${e}/${n}`,u={accept:"image/png, image/jpeg",...a};return r({path:i,method:"GET",headers:u,...s})}function qp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}/export`;return r({path:s,method:"GET",...a})}function Bp({itemId:e=o(),resourceId:t=o(),time:n=o(),...a}){const s=`/API/poster/${t}/${e}/${n}`;return r({path:s,method:"DELETE",...a})}const Np={createThumbnail:Gp,listThumbnailResource:vp,createThumbnailResource:kp,listThumbnail:Up,removeAllThumbnail:Lp,updateThumbnail:Cp,getThumbnail:Mp,exportThumbnail:Dp,removeThumbnail:xp,listPosterResource:Op,createPosterResource:jp,listPoster:Fp,removeAllPoster:Rp,updatePoster:wp,getPoster:zp,exportPoster:qp,removePoster:Bp};function Jp({itemId:e=o(),headers:t={},...n}){const a=`/API/item/${e}/timeline`,s={accept:"text/plain",...t};return r({path:a,method:"GET",headers:s,...n})}function Vp({itemId:e=o(),...t}){const n=`/API/item/${e}/timeline`;return r({path:n,method:"DELETE",...t})}function Kp({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"GET",...n})}function Hp({itemId:e=o(),format:t=o(),body:n=o(),...a}){const s=`/API/item/${e}/timeline/${t}`;return r({path:s,method:"PUT",body:n,...a})}function Qp({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"DELETE",...n})}const _p={getTimeline:Jp,removeTimeline:Vp,getTimelineFormat:Kp,updateTimelineFormat:Hp,removeTimelineFormat:Qp};function Wp({...e}={}){return r({path:"/API/transfer/",method:"GET",...e})}function Xp({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"GET",...t})}function Yp({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"PUT",...t})}function Zp({...e}={}){return r({path:"/API/log/transfer-log/",method:"GET",...e})}const td={listTransfer:Wp,getTransfer:Xp,updateTransferPriority:Yp,listTransferLog:Zp};function ed({username:e=o(),password:t=o(),file:n=o(),headers:a={},...s}){const i={accept:"text/html",...a};i.delete("content-type");const u="/UploadLicense/getlic",p=new FormData;return p.append("user",e),p.append("pass",t),p.append("file",n),r({path:u,body:p,method:"POST",headers:i,...s})}const nd={createLicense:ed};function od({headers:e={},...t}={}){const n="/API/whoami",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function ad({username:e=o(),password:t,headers:n={},...a}){const s={username:e,password:t,accept:"text/plain",...n},i=`/API/user/${e}/token`;return r({path:i,method:"GET",headers:s,...a})}function rd({...e}={}){return r({path:"/API/user/",method:"GET",...e})}function sd({userDocument:e,...t}){return r({path:"/API/user/",method:"POST",body:e,...t})}function id({userName:e=o(),...t}){const n=`/API/user/${e}`;return r({path:n,method:"GET",...t})}function cd({userName:e=o(),...t}){const n=`/API/user/${e}/graph`;return r({path:n,method:"GET",...t})}function ud({userName:e=o(),userDocument:t=o(),...n}){const a=`/API/user/${e}`;return r({path:a,method:"PUT",body:t,...n})}function hd({userName:e=o(),...t}){const n=`/API/user/${e}/`;return r({path:n,method:"DELETE",...t})}function pd({userName:e=o(),...t}){const n=`/API/user/${e}/enable`;return r({path:n,method:"PUT",...t})}function dd({userSearchDocument:e,...t}){return r({path:"/API/user/",method:"PUT",body:e,...t})}function md({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"PUT",...n})}function ld({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"DELETE",...n})}function fd({userName:e=o(),headers:t={},...n}){const a={accept:"text/plain",...t},s=`/API/user/${e}/realname`;return r({path:s,method:"GET",headers:a,...n})}function Pd({userName:e=o(),realName:t,headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/realname`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function Td({userName:e=o(),password:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/password/`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function $d({userName:e=o(),password:t=o(),headers:n={},...a}){const s={accept:"text/plain",contentType:"text/plain",...n},i=`/API/user/${e}/validate/`;return r({path:i,method:"PUT",body:t,headers:s,...a})}function gd({userName:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/user/${e}/password/salt`;return r({path:s,method:"GET",headers:a,...n})}function Id({userName:e=o(),headers:t={},...n}){const a={accept:"application/octet-stream",...t},s=`/API/user/${e}/password/salt`;return r({path:s,method:"POST",headers:a,...n})}function Ad({userName:e=o(),...t}){const n=`/API/user/${e}/groups/`;return r({path:n,method:"GET",...t})}function Ed({userName:e=o(),...t}){const n=`/API/user/${e}/roles`;return r({path:n,method:"GET",...t})}function yd({userName:e=o(),...t}){const n=`/API/user/${e}/allgroups`;return r({path:n,method:"GET",...t})}function bd({userName:e=o(),groupListDocument:t,...n}){const a=`/API/user/${e}/groups/`;return r({path:a,method:"PUT",body:t,...n})}function Sd({headers:e={},...t}={}){const n="/API/token",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function Gd({userName:e=o(),...t}){const n=`/API/user/${e}/key`;return r({path:n,method:"GET",...t})}function vd({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"GET",...n})}function kd({userName:e=o(),...t}){const n=`/API/user/${e}/key/`;return r({path:n,method:"POST",...t})}function Ud({userName:e=o(),keyId:t=o(),accessKeyDocument:n,...a}){const s=`/API/user/${e}/key/${t}`;return r({path:s,method:"PUT",body:n,...a})}function Ld({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"DELETE",...n})}function Cd({userName:e=o(),...t}){const n=`/API/user/${e}/access`;return r({path:n,method:"GET",...t})}const Md={whoAmI:od,getUserToken:ad,listUser:rd,createUser:sd,getUser:id,getUserGraph:cd,updateUser:ud,disableUser:hd,enableUser:pd,searchUser:dd,createAlias:md,removeAlias:ld,getUserRealName:fd,updateUserRealName:Pd,updateUserPassword:Td,validateUserPassword:$d,getUserSalt:gd,createUserSalt:Id,getUserGroup:Ad,getUserRole:Ed,getUserGroupRole:yd,updateUserGroup:bd,getToken:Sd,listKey:Gd,getKey:vd,createKey:kd,updateKey:Ud,removeKey:Ld,getAccess:Cd};function Dd({...e}={}){return r({path:"/API/version",method:"GET",...e})}const xd={getVersion:Dd};function Od({path:e=o(),...t}){const n=`/API/cost/${e}`;return r({path:n,method:"GET",...t})}function jd({costEstimateId:e=o(),...t}){const n=`/API/cost/estimate/${e}`;return r({path:n,method:"GET",...t})}const Fd={createCostEstimate:Od,getCostEstimate:jd};function Rd({...e}={}){return r({path:"/API/vxa/",method:"GET",...e})}function wd({headers:e={},...t}={}){const n="/API/vxa/enable-ssh/",a={accept:"text/plain",...e};return r({path:n,method:"PUT",headers:a,...t})}function zd({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"GET",...t})}function qd({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}/configuration`;return r({path:n,method:"GET",...t})}function Bd({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"DELETE",...t})}const Nd={listVxa:Rd,createVxa:wd,getVxa:zd,getVxaConfiguration:qd,removeVxa:Bd},{login:Jd,logout:Vd}=U;h.ChunkedTransferManager=L,h.ChunkedUpload=I,h.access=at,h.analyzepreset=it,h.auditlog=ht,h.autoimport=Tt,h.autoprojection=Gt,h.bulkymetadata=Vt,h.collection=sn,h.component=In,h.configuration=to,h.conform=oo,h.debug=ro,h.deletionlock=Po,h.documentmetadata=yo,h.errorlog=So,h.exportlocation=Mo,h.exporttemplate=Bo,h.externalid=Xo,h.fieldgroup=la,h.file=C,h.globalmetadata=Ja,h.group=ir,h.importsettings=Or,h.item=Ls,h.javascript=Ms,h.job=Zs,h.library=mi,h.license=fi,h.login=Jd,h.logout=Vd,h.metadata=g,h.metadatadataset=Ii,h.metadatafield=Oi,h.metadatalock=b,h.metadatamigration=wi,h.metadataschema=Hi,h.noauth=Yi,h.notification=M,h.project=fc,h.projection=Ec,h.quota=kc,h.reindex=Cc,h.resource=wc,h.scheduledrequest=Vc,h.search=Yc,h.selftest=eu,h.sequence=pu,h.service=Tu,h.shape=oh,h.shapetag=mh,h.stitch=fh,h.storage=Dh,h.storagegroup=zh,h.storagerule=Xh,h.subtitle=tp,h.taskdefinition=Tp,h.taskgroup=Sp,h.thumbnail=Np,h.timeline=_p,h.transfer=td,h.uploadlicense=nd,h.user=Md,h.utils=U,h.version=xd,h.vidinet=Fd,h.vsimport=Ur,h.vxa=Nd,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});