@vidispine/vdt-api 23.3.0-pre.1 → 23.3.0-pre.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
+ import { Buffer as b } from "buffer";
1
2
  import S from "axios";
2
- import { Buffer as b } from "buffer/";
3
3
  const f = S.create(), { CancelToken: L } = S;
4
4
  function x({ baseURL: e, token: t, username: n, password: a, bearerToken: s }) {
5
5
  e && (f.defaults.baseURL = e), t && (f.defaults.headers.Authorization = `token ${t}`), s && (f.defaults.headers.Authorization = `Bearer ${s}`), (n || a) && (f.defaults.auth = { username: n, password: a });
@@ -1 +1 @@
1
- (function(u,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("axios"),require("buffer/")):typeof define=="function"&&define.amd?define(["exports","axios","buffer/"],$):(u=typeof globalThis<"u"?globalThis:u||self,$(u["@vidispine/vdt-api"]={},u.axios,u.polyfillBuffer))})(this,function(u,$,G){"use strict";const P=$.create(),{CancelToken:D}=$;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 G.Buffer?e:G.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,v)=>`${g}${v>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((v,wd)=>{P(I).then(f=>{f.ok=f.status>=100&&f.status<=399,f.json=()=>f.data,f.text=()=>f.data,v(f)}).catch(f=>wd(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 vt={listAutoProjection:$t,listDisabledAutoProjection:gt,listEnabledAutoProjection:It,getAutoProjection:Et,createAutoProjection:At,removeAutoProjection:yt,enableAutoProjection:bt,disableAutoProjection:St};function Gt({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:Gt,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 ve({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:ve},{listEntityMetadataLock:Ge,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({collectionId:e=o(),searchDocument:t,...n}){const a=`/API/collection/${e}/item`;return r({path:a,method:"PUT",body:t,...n})}function qe({collectionDocument:e,queryParams:t,...n}){return r({path:"/API/collection",method:"POST",body:e,queryParams:t,...n})}function Be({collectionId:e=o(),...t}){const n=`/API/collection/${e}/`;return r({path:n,method:"DELETE",...t})}function Ne({queryParams:e=o(),...t}){return r({path:"/API/collection",method:"DELETE",queryParams:e,...t})}function Je({collectionId:e=o(),...t}){const n=`/API/collection/${e}/rename`;return r({path:n,method:"PUT",...t})}function Ve({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"PUT",...n})}function Ke({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function He({collectionId:e=o(),collectionDocument:t,...n}){const a=`/API/collection/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Qe({collectionId:e=o(),collectionReorderDocument:t,...n}){const a=`/API/collection/${e}/order`;return r({path:a,method:"POST",body:t,...n})}function _e({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"PUT",...t})}function We({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"DELETE",...t})}function Xe({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/folder-name`;return r({path:a,method:"PUT",queryParams:t,...n})}function Ye({collectionId:e=o(),...t}){return Ge({entity:"collection",entityId:e,...t})}function Ze({collectionId:e=o(),...t}){return ke({entity:"collection",entityId:e,...t})}function tn({collectionId:e=o(),...t}){return Ue({entity:"collection",entityId:e,...t})}function en({collectionId:e=o(),...t}){return Le({entity:"collection",entityId:e,...t})}function nn({collectionId:e=o(),...t}){return Ce({entity:"collection",entityId:e,...t})}function on({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}const an={listCollection:Me,getCollection:De,getCollectionMetadata:xe,updateCollectionMetadata:Oe,getCollectionAncestor:je,listCollectionHistory:Fe,getCollectionItem:Re,searchCollection:we,searchCollectionItem:ze,createCollection:qe,removeCollection:Be,removeCollectionList:Ne,renameCollection:Je,addCollectionEntity:Ve,removeCollectionEntity:Ke,updateCollection:He,orderCollection:Qe,markFolderCollection:_e,unMarkFolderCollection:We,updateFolderCollection:Xe,listCollectionMetadataLock:Ye,createCollectionMetadataLock:Ze,getCollectionMetadataLock:tn,updateCollectionMetadataLock:en,removeCollectionMetadataLock:nn,exportCollection:on};function rn({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/component`;return r({path:a,method:"GET",...n})}function sn({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 cn({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 un({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 hn({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 pn({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 dn({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 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}/copy/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}/copy/item/${a}/shape/${s}`;return r({path:h,method:"POST",...i})}function fn({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 Pn({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 Tn({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 $n={listComponent:rn,getComponent:sn,removeComponent:cn,createComponent:un,createComponentPlaceholder:hn,moveComponent:pn,moveComponentToShape:dn,copyComponent:mn,copyComponentToShape:ln,addComponentFile:fn,removeComponentFile:Pn,createComponentAnalyze:Tn};function gn({...e}={}){return r({path:"/API/configuration/",method:"GET",...e})}function In({...e}={}){return r({path:"/API/configuration/properties",method:"GET",...e})}function En({configurationPropertyDocument:e,...t}){return r({path:"/API/configuration/properties/",method:"PUT",body:e,...t})}function An({configurationPropertyListDocument:e=o(),...t}){return r({path:"/API/configuration/properties/",method:"POST",body:e,...t})}function yn({key:e=o(),...t}){const n=`/API/configuration/properties/${e}`;return r({path:n,method:"DELETE",...t})}function bn({...e}={}){return r({path:"/API/configuration/indexing",method:"GET",...e})}function Sn({indexingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/indexing",method:"PUT",body:e,...t})}function vn({...e}={}){return r({path:"/API/configuration/ftp-pool",method:"GET",...e})}function Gn({ftpPoolConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/ftp-pool",method:"PUT",body:e,...t})}function kn({...e}){return r({path:"/API/configuration/ftp-pool",method:"DELETE",...e})}function Un({...e}={}){return r({path:"/API/configuration/job-pool",method:"GET",...e})}function Ln({jobPoolListDocument:e=o(),...t}){return r({path:"/API/configuration/job-pool",method:"PUT",body:e,...t})}function Cn({...e}){return r({path:"/API/configuration/job-pool",method:"DELETE",...e})}function Mn({jobPoolPriority:e=o(),...t}){const n=`/API/configuration/job-pool/${e}`;return r({path:n,method:"DELETE",...t})}function Dn({...e}={}){return r({path:"/API/configuration/metrics",method:"GET",...e})}function xn({metricsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/metrics",method:"PUT",body:e,...t})}function On({...e}={}){return r({path:"/API/configuration/path-alias",method:"GET",...e})}function jn({pathAliasConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/path-alias",method:"PUT",body:e,...t})}function Fn({...e}={}){return r({path:"/API/configuration/logreport",method:"GET",...e})}function Rn({logReportConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/logreport",method:"PUT",body:e,...t})}function wn({...e}={}){return r({path:"/API/configuration/purging",method:"GET",...e})}function zn({databasePurgingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/purging",method:"PUT",body:e,...t})}function qn({...e}){return r({path:"/API/configuration/purging",method:"DELETE",...e})}function Bn({...e}={}){return r({path:"/API/configuration/cors",method:"GET",...e})}function Nn({corsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/cors",method:"PUT",body:e,...t})}function Jn({...e}={}){return r({path:"/API/configuration/auth",method:"GET",...e})}function Vn({oAuth2ConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/auth",method:"PUT",body:e,...t})}function Kn({...e}={}){return r({path:"/API/configuration/auth",method:"DELETE",...e})}function Hn({...e}={}){return r({path:"/API/configuration/job-priority",method:"GET",...e})}function Qn({jobPriorityConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/job-priority",method:"PUT",body:e,...t})}function _n({...e}={}){return r({path:"/API/configuration/job-priority",method:"DELETE",...e})}function Wn({...e}={}){return r({path:"/API/configuration/bulkymetadata",method:"GET",...e})}function Xn({bulkyMetadataConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/bulkymetadata",method:"PUT",body:e,...t})}const Yn={getConfiguration:gn,getPropertiesConfiguration:In,updatePropertiesConfiguration:En,updateAllPropertiesConfiguration:An,removePropertiesConfiguration:yn,getIndexingConfiguration:bn,updateIndexingConfiguration:Sn,getFtpPoolConfiguration:vn,updateFtpPoolConfiguration:Gn,removeFtpPoolConfiguration:kn,getJobPoolConfiguration:Un,updateJobPoolConfiguration:Ln,removeAllJobPoolConfiguration:Cn,removeJobPoolConfiguration:Mn,getMetricsConfiguration:Dn,updateMetricsConfiguration:xn,getPathAliasConfiguration:On,updatePathAliasConfiguration:jn,getLogReportConfiguration:Fn,updateLogReportConfiguration:Rn,getDatabasePurgingConfiguration:wn,updateDatabasePurgingConfiguration:zn,removeDatabasePurgingConfiguration:qn,getCorsConfiguration:Bn,updateCorsConfiguration:Nn,getAuthConfiguration:Jn,updateAuthConfiguration:Vn,removeAuthConfiguration:Kn,getJobPriorityConfiguration:Hn,updateJobPriorityConfiguration:Qn,removeJobPriorityConfiguration:_n,getBulkyMetadataConfiguration:Wn,updateBulkyMetadataConfiguration:Xn};function Zn({conformRequestDocument:e=o(),...t}){return r({path:"/API/conform",body:e,method:"POST",...t})}function to({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 eo={createConform:Zn,createConformItem:to};function no({xmlDocument:e=o(),headers:t={},...n}){return r({path:"/APInoauth/debug/echo",method:"PUT",body:e,headers:{contentType:"application/xml",...t},...n})}const oo={echo:no};function ao({...e}={}){return r({path:"/API/deletion-lock",method:"GET",...e})}function ro({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"GET",...t})}function so({lockId:e=o(),deletionLockDocument:t=o(),...n}){const a=`/API/deletion-lock/${e}`;return r({path:a,method:"PUT",body:t,...n})}function io({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"DELETE",...t})}function co({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/deletion-lock/`;return r({path:a,method:"GET",...n})}function uo({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 ho({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 po({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 mo({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 lo={listDeletionLock:ao,getDeletionLock:ro,updateDeletionLock:so,removeDeletionLock:io,listEntityDeletionLock:co,createEntityDeletionLock:uo,getEntityDeletionLock:ho,updateEntityDeletionLock:po,removeEntityDeletionLock:mo};function fo({...e}={}){return r({path:"/API/document/",method:"GET",...e})}function Po({itemSearchDocument:e,...t}={}){return r({path:"/API/document/",method:"PUT",body:e,...t})}function To({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"GET",...t})}function $o({documentMetadataName:e=o(),metadataDocument:t,...n}){const a=`/API/document/${e}`;return r({path:a,body:t,method:"PUT",...n})}function go({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}/changes`;return r({path:n,method:"GET",...t})}function Io({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"DELETE",...t})}const Eo={listDocumentMetadata:fo,searchDocumentMetadata:Po,getDocumentMetadata:To,updateDocumentMetadata:$o,getDocumentMetadataChanges:go,removeDocumentMetadata:Io};function Ao({...e}={}){return r({path:"/API/error",method:"GET",...e})}const yo={listErrorLogs:Ao};function bo({...e}={}){return r({path:"/API/export-location",method:"GET",...e})}function So({locationName:e=o(),...t}){return r({path:`/API/export-location/${e}`,method:"GET",...t})}function vo({locationName:e=o(),exportLocationDocument:t,...n}){const a=`/API/export-location/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Go({locationName:e=o(),...t}){const n=`/API/export-location/${e}`;return r({path:n,method:"DELETE",...t})}function ko({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 Uo({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 Lo={listExportLocation:bo,getExportLocation:So,updateExportLocation:vo,removeExportLocation:Go,getExportLocationScript:ko,updateExportLocationScript:Uo};function Co({...e}={}){return r({path:"/API/export-template",method:"GET",...e})}function Mo({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"GET",...t})}function Do({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"DELETE",...t})}function xo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function Oo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function jo({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 Fo({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 Ro({...e}){return r({path:"/API/export-template/test",method:"POST",...e})}function wo({...e}){return r({path:"/API/export-template/test",method:"PUT",...e})}const zo={listExportTemplete:Co,getExportTemplate:Mo,removeExportTemplate:Do,createExportTemplate:xo,updateExportTemplate:Oo,getExportTemplateGraph:jo,getExportTemplateGraphDot:Fo,createExportTemplateTest:Ro,createExportTemplateTestRender:wo};function y(e){return e==="field-group"?"metadata-field/field-group":e}function qo({...e}={}){return r({path:"/API/external-id",method:"GET",...e})}function Bo({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"GET",...t})}function No({idName:e=o(),externalIdentifierNamespaceDocument:t,...n}){const a=`/API/external-id/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Jo({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"DELETE",...t})}function Vo({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${y(e)}/${t}/external-id/`;return r({path:a,method:"GET",...n})}function Ko({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 Ho({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 Qo({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${y(e)}/${t}/external-id`;return r({path:a,method:"DELETE",...n})}const _o={listExternalIdNamespace:qo,getExternalIdNamespace:Bo,updateExternalIdNamespace:No,removeExternalIdNamespace:Jo,listExternalId:Vo,createExternalId:Ko,removeExternalId:Ho,removeAllExternalId:Qo},{getSimpleMetadata:Wo}=E;function Xo({...e}={}){return r({path:"/API/metadata-field/field-group/",method:"GET",...e})}function Yo({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/`;return r({path:n,method:"GET",...t})}function Zo({groupName:e=o(),metadataFieldGroupDocument:t,...n}){const a=`/API/metadata-field/field-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function ta({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}`;return r({path:n,method:"DELETE",...t})}function ea({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function na({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function oa({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 aa({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 ra({metadataFieldGroupSearchDocument:e,...t}){return r({path:"/API/metadata-field/field-group/",method:"PUT",body:e,...t})}function sa({groupName:e=o(),...t}){return Wo({entityType:"metadata-field/field-group",entityId:e,...t})}function ia({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/access`;return r({path:n,method:"GET",...t})}function ca({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 ua({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 ha({...e}={}){return r({path:"/API/metadata-field/field-group/merged-access",method:"GET",...e})}function pa({groupName:e=o(),...t}={}){const n=`/API/metadata-field/field-group/${e}/merged-access`;return r({path:n,method:"GET",...t})}const da={listFieldGroup:Xo,getFieldGroup:Yo,updateFieldGroup:Zo,removeFieldGroup:ta,updateFieldGroupField:ea,removeFieldGroupField:na,updateFieldGroupChild:oa,removeFieldGroupChild:aa,searchFieldGroup:ra,getSimpleMetadata:sa,listFieldGroupAccess:ia,createFieldGroupAccess:ca,removeFieldGroupAccess:ua,listFieldGroupMergedAccess:ha,getFieldGroupMergedAccess:pa};function ma({...e}={}){return r({path:"/API/storage/file/",method:"GET",...e})}function la({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/`;return r({path:n,method:"GET",...t})}function fa({...e}={}){return r({path:"/API/storage/file/importable/",method:"GET",...e})}function Pa({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/importable/`;return r({path:n,method:"GET",...t})}function Ta({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/`;return r({path:n,method:"GET",...t})}function $a({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 ga({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 Ia({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 Ea({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function Aa({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function ya({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/file/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function ba({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function Sa({fileId:e=o(),targetStorageId:t=o(),...n}){const a=`/API/storage/file/${e}/storage/${t}/`;return r({path:a,method:"POST",...n})}function va({fileId:e=o(),...t}){const n=`/API/storage/file/${e}`;return r({path:n,method:"DELETE",...t})}function Ga({storageId:e=o(),fileDocument:t,...n}){const a=`/API/storage/${e}/file/`;return r({path:a,method:"POST",body:t,...n})}function ka({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/entity`;return r({path:n,method:"DELETE",...t})}function Ua({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/path/`;return r({path:n,method:"POST",...t})}function La({fileId:e=o(),state:t=o(),...n}){const a=`/API/storage/file/${e}/state/${t}`;return r({path:a,method:"PUT",...n})}function Ca({fileId:e=o(),hash:t=o(),...n}){const a=`/API/storage/file/${e}/hash/${t}`;return r({path:a,method:"PUT",...n})}function Ma({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/abandon`;return r({path:n,method:"PUT",...t})}function Da({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/re-index`;return r({path:n,method:"PUT",...t})}function xa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/uri`;return r({path:n,method:"POST",...t})}function Oa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze`;return r({path:n,method:"POST",...t})}function ja({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze/imp`;return r({path:n,method:"POST",...t})}function Fa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/shape`;return r({path:n,method:"GET",...t})}const C={listFile:ma,listFileStorage:la,listFileImportable:fa,listFileStorageImportable:Pa,getFile:Ta,createFileRaw:$a,getFileRaw:ga,updateFileRaw:Ia,createFileImport:Ea,createFileImportAssetMap:Aa,createFilePathImportAssetMap:ya,createFileImportPath:ba,createFileMove:Sa,removeFile:va,createFileEntity:Ga,removeFileEntity:ka,createFilePath:Ua,updateFileState:La,updateFileHash:Ca,abandonFile:Ma,reindexFile:Da,createFileTemporaryCredentials:xa,analyzeFile:Oa,analyzeFileImp:ja,listFileShapes:Fa};function Ra({...e}={}){return r({path:"/API/metadata",method:"GET",...e})}function wa({metadataDocument:e=o(),...t}){return r({path:"/API/metadata",method:"PUT",body:e,...t})}function za({uuid:e=o(),...t}){const n=`/API/metadata/${e}`;return r({path:n,method:"GET",...t})}function qa({uuid:e=o(),...t}={}){const n=`/API/metadata/${e}`;return r({path:n,method:"DELETE",...t})}const Ba={listGlobalMetadata:Ra,updateGlobalMetadata:wa,getGlobalMetadata:za,removeGlobalMetadata:qa};function Na({...e}={}){return r({path:"/API/group/",method:"GET",...e})}function Ja({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"GET",...t})}function Va({groupName:e=o(),groupDocument:t,...n}){const a=`/API/group/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Ka({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"DELETE",...t})}function Ha({...e}){return r({path:"/API/group/",method:"DELETE",...e})}function Qa({groupSearchDocument:e,...t}){return r({path:"/API/group/",method:"PUT",body:e,...t})}function _a({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 Wa({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 Xa({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 Ya({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 Za({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 tr({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"PUT",...n})}function er({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"DELETE",...n})}function nr({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 or({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"PUT",...n})}function ar({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"DELETE",...n})}const rr={listGroup:Na,getGroup:Ja,updateGroup:Va,removeGroup:Ka,removeGroupList:Ha,searchGroup:Qa,getGroupRoleStatus:_a,getGroupDescription:Wa,updateGroupDescription:Xa,getGroupParents:Ya,getGroupChildren:Za,addGroupChildren:tr,removeGroupChildren:er,getGroupUser:nr,addGroupUser:or,removeGroupUser:ar},{createFileEntity:sr,createFileTemporaryCredentials:ir,updateFileState:cr,abandonFile:ur}=C;function hr({metadataDocument:e={},...t}={}){return r({path:"/API/import/",method:"POST",body:e,...t})}function pr({...e}={}){return r({path:"/API/import/storage",method:"GET",...e})}function dr({file:e=o(),headers:t={},...n}){return r({path:"/API/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function mr({file:e=o(),headers:t={},...n}){return r({path:"/APInoauth/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function lr({metadataDocument:e={},...t}={}){return r({path:"/API/import/raw-passkey/",method:"POST",body:e,...t})}function fr({metadataDocument:e={},...t}={}){return r({path:"/API/import/imp/",method:"POST",body:e,...t})}function Pr({metadataDocument:e={},...t}={}){return r({path:"/API/import/placeholder/",method:"POST",body:e,...t})}function Tr({itemId:e=o(),component:t=o(),...n}){const a=`/API/import/placeholder/${e}/${t}/`;return r({path:a,method:"POST",...n})}function $r({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 gr({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 Ir({itemId:e=o(),placeholderImportRequestDocument:t,...n}){const a=`/API/import/placeholder/${e}/`;return r({path:a,method:"POST",body:t,...n})}function Er({itemId:e=o(),...t}){const n=`/API/import/placeholder/${e}/raw-passkey/`;return r({path:n,method:"POST",...t})}function Ar({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 yr({itemId:e=o(),...t}){const n=`/API/import/sidecar/${e}/`;return r({path:n,method:"POST",...t})}function br({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 Sr({file:e=o(),storageId:t=o()}){return new Promise((n,a)=>{let s,i;sr({storageId:t,queryParams:{path:e.name}}).then(h=>(i=h.data,s=h.data.id,ir({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(()=>{cr({fileId:s,state:"CLOSED"})}).then(()=>{n(i)}).catch(h=>{s&&ur({fileId:s}),a(h.response)})})}const vr={createImportUri:hr,getImportStorage:pr,createImportRaw:dr,createImportRawNoAuth:mr,createImportRawPasskey:lr,createImportImp:fr,createImportPlaceholder:Pr,createImportComponent:Tr,createImportComponentRaw:$r,createImportComponentRawNoAuth:gr,createImportItem:Ir,createImportItemPasskey:Er,createImportItemAdoptFile:Ar,createImportItemSidecar:yr,createImportItemSidecarRaw:br,createImportS3Direct:Sr};function Gr({...e}={}){return r({path:"/API/import/settings",method:"GET",...e})}function kr({importSettingsDocument:e,...t}){return r({path:"/API/import/settings",method:"POST",body:e,...t})}function Ur({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"GET",...t})}function Lr({settingsId:e=o(),importSettingsDocument:t,...n}){const a=`/API/import/settings/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Cr({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"DELETE",...t})}const Mr={listImportSettings:Gr,createImportSettings:kr,getImportSettings:Ur,updateImportSettings:Lr,removeImportSettings:Cr},{updateEntityMetadata:Dr,getEntityMetadata:xr}=E,{listEntityMetadataLock:Or,createEntityMetadataLock:jr,getEntityMetadataLock:Fr,updateEntityMetadataLock:Rr,removeEntityMetadataLock:wr}=S;function zr({...e}={}){return r({path:"/API/item/",method:"GET",...e})}function qr({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"GET",...t})}function Br({itemId:e=o(),...t}){const n=`/API/item/${e}/uri`;return r({path:n,method:"GET",...t})}function Nr({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"DELETE",...t})}function Jr({...e}={}){return r({path:"/API/item/",method:"DELETE",...e})}function Vr({itemSearchDocument:e={},...t}={}){return r({path:"/API/item/",method:"PUT",body:e,...t})}function Kr({itemId:e=o(),metadataDocument:t,...n}){return Dr({entity:"item",entityId:e,metadataDocument:t,...n})}function Hr({itemId:e=o(),...t}){return xr({entity:"item",entityId:e,...t})}function Qr({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function _r({itemId:e=o(),...t}){const n=`/API/item/${e}/transcode`;return r({path:n,method:"POST",...t})}function Wr({itemId:e=o(),...t}){const n=`/API/item/${e}/export`;return r({path:n,method:"POST",...t})}function Xr({itemId:e=o(),...t}){const n=`/API/item/${e}/export/imp`;return r({path:n,method:"POST",...t})}function Yr({itemId:e=o(),...t}){const n=`/API/item/${e}/relation`;return r({path:n,method:"GET",...t})}function Zr({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"POST",...n})}function ts({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation/",method:"POST",body:e,...t})}function es({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"DELETE",...n})}function ns({itemId:e=o(),...t}){const n=`/API/item/${e}/relation/`;return r({path:n,method:"DELETE",...t})}function os({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation",method:"POST",body:e,...t})}function as({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"GET",...t})}function rs({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"PUT",...t})}function ss({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"DELETE",...t})}function is({...e}={}){return r({path:"/API/item/history",method:"GET",...e})}function cs({itemId:e=o(),...t}){const n=`/API/item/${e}/re-index`;return r({path:n,method:"PUT",...t})}function us({...e}={}){return r({path:"/API/item/list",method:"POST",...e})}function hs({itemId:e=o(),...t}){const n=`/API/item/${e}/collections`;return r({path:n,method:"GET",...t})}function ps({itemId:e=o(),...t}){const n=`/API/item/${e}/library`;return r({path:n,method:"GET",...t})}function ds({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"POST",...t})}function ms({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"GET",...t})}function ls({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"DELETE",...t})}function fs({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"PUT",...t})}function Ps({itemId:e=o(),...t}){return Or({entity:"item",entityId:e,...t})}function Ts({itemId:e=o(),...t}){return jr({entity:"item",entityId:e,...t})}function $s({itemId:e=o(),lockId:t=o(),...n}){return Fr({entity:"item",entityId:e,lockId:t,...n})}function gs({itemId:e=o(),lockId:t=o(),...n}){return Rr({entity:"item",entityId:e,lockId:t,...n})}function Is({itemId:e=o(),lockId:t=o(),...n}){return wr({entity:"item",entityId:e,lockId:t,...n})}function Es({itemId:e=o(),...t}){const n=`/API/item/${e}/loudness`;return r({path:n,method:"GET",...t})}function As({itemId:e=o(),...t}){const n=`/API/item/${e}/waveform/values`;return r({path:n,method:"GET",...t})}function ys({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 bs({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 Ss({itemId:e=o(),analyzeJobDocument:t,...n}){const a=`/API/item/${e}/analyze`;return r({path:a,method:"POST",body:t,...n})}const vs={listItem:zr,getItem:qr,getItemUri:Br,removeItem:Nr,removeItemList:Jr,searchItem:Vr,updateItemMetadata:Kr,getItemMetadata:Hr,createThumbnail:Qr,createTranscode:_r,createExport:Wr,createExportImp:Xr,listItemRelation:Yr,createItemRelation:Zr,createItemRelationList:ts,removeItemRelation:es,removeAllItemRelation:ns,createRelation:os,getRelation:as,updateRelation:rs,removeRelation:ss,getItemSearchHistory:is,reindexItem:cs,createItemList:us,listItemCollection:hs,listItemLibrary:ps,createItemLock:ds,getItemLock:ms,removeItemLock:ls,updateItemLock:fs,listItemMetadataLock:Ps,createItemMetadataLock:Ts,getItemMetadataLock:$s,updateItemMetadataLock:gs,removeItemMetadataLock:Is,getItemLoudness:Es,getItemWaveformValue:As,getItemWaveformImage:ys,getItemWaveformImageUri:bs,createItemAnalyze:Ss};function Gs({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 ks={test:Gs};function l(e){return e==="file"?"storage/file":["metadata","access"].includes(e)?"item":e}function Us({entityType:e=o(),...t}={}){const a=`/API/${l(e)}/notification/`;return r({path:a,method:"GET",...t})}function Ls({entityType:e=o(),entityId:t=o(),...n}={}){const s=`/API/${l(e)}/${t}/notification/`;return r({path:s,method:"GET",...n})}function Cs({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"GET",...n})}function Ms({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 Ds({entityType:e=o(),notificationDocument:t,...n}={}){const s=`/API/${l(e)}/notification/`;return r({path:s,method:"POST",body:t,...n})}function xs({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"DELETE",...n})}function Os({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 js({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 Fs({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 Rs({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:Us,listNotificationEntity:Ls,getNotification:Cs,updateNotification:Ms,createNotification:Ds,removeNotification:xs,getNotificationEntity:Os,updateNotificationEntity:js,createNotificationEntity:Fs,removeNotificationEntity:Rs},{listNotification:ws}=M;function zs({...e}={}){return r({path:"/API/job/",method:"GET",...e})}function qs({jobSearchDocument:e={},...t}={}){return r({path:"/API/job/search/",method:"PUT",body:e,...t})}function Bs({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"GET",...t})}function Ns({simpleMetadataDocument:e,...t}={}){return r({path:"/API/job",method:"POST",body:e,...t})}function Js({jobId:e=o(),...t}){const n=`/API/job/${e}/re-run`;return r({path:n,method:"POST",...t})}function Vs({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"PUT",...t})}function Ks({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"DELETE",...t})}function Hs({...e}={}){return r({path:"/API/job/",method:"DELETE",...e})}function Qs({...e}={}){return ws({entityType:"job",...e})}const _s={listJob:zs,searchJob:qs,getJob:Bs,createJob:Ns,duplicateJob:Js,modifyJob:Vs,abortJob:Ks,deleteJob:Hs,listJobNotification:Qs};function Ws({...e}={}){return r({path:"/API/library/",method:"GET",...e})}function Xs({itemListDocument:e={},...t}){return r({path:"/API/library",method:"POST",body:e,...t})}function Ys({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"DELETE",...t})}function Zs({...e}={}){return r({path:"/API/library",method:"DELETE",...e})}function ti({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"GET",...t})}function ei({libraryId:e=o(),itemListDocument:t,...n}){const a=`/API/library/${e}`;return r({path:a,method:"PUT",body:t,...n})}function ni({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function oi({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"PUT",...n})}function ai({libraryId:e=o(),metadataDocument:t,...n}){const a=`/API/library/${e}/item-metadata`;return r({path:a,method:"PUT",body:t,...n})}function ri({libraryId:e=o(),...t}){const n=`/API/library/${e}/settings`;return r({path:n,method:"GET",...t})}function si({libraryId:e=o(),librarySettingsDocument:t,...n}){const a=`/API/library/${e}/settings`;return r({path:a,method:"PUT",body:t,...n})}function ii({libraryId:e=o(),...t}){const n=`/API/library/${e}/list`;return r({path:n,method:"POST",...t})}function ci({libraryId:e=o(),queryParams:t=o(),...n}){const a=`/API/library/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}const ui={listLibrary:Ws,createLibrary:Xs,removeLibrary:Ys,removeLibraryList:Zs,getLibrary:ti,updateLibrary:ei,addLibraryItem:ni,removeLibraryItem:oi,updateLibraryItemMetadata:ai,getLibrarySettings:ri,updateLibrarySettings:si,getLibraryBatch:ii,exportLibrary:ci};function hi({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 pi={createLicense:hi};function di({...e}={}){return r({path:"/API/metadata/dataset",method:"GET",...e})}function mi({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"GET",...t})}function li({datasetId:e=o(),body:t=o(),...n}){const a=`/API/metadata/dataset/${e}`;return r({path:a,method:"PUT",body:t,...n})}function fi({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"DELETE",...t})}const Pi={listMetadataDataset:di,getMetadataDataset:mi,updateMetadataDataset:li,removeMetadataDataset:fi},{getSimpleMetadata:Ti}=E;function $i({...e}={}){return r({path:"/API/metadata-field/",method:"GET",...e})}function gi({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/`;return r({path:n,method:"GET",...t})}function Ii({fieldName:e=o(),metadataFieldDocument:t,...n}){const a=`/API/metadata-field/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Ei({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}`;return r({path:n,method:"DELETE",...t})}function Ai({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/values/`;return r({path:n,method:"GET",...t})}function yi({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 bi({fieldName:e=o(),simpleMetadataDocument:t,...n}){const a=`/API/metadata-field/${e}/values`;return r({path:a,method:"PUT",body:t,...n})}function Si({fieldName:e=o(),...t}){return Ti({entityType:"metadata-field",entityId:e,...t})}function vi({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/access`;return r({path:n,method:"GET",...t})}function Gi({fieldName:e=o(),metadataFieldAccessControlDocument:t=o(),...n}){const a=`/API/metadata-field/${e}/access`;return r({path:a,method:"POST",body:t,...n})}function ki({fieldName:e=o(),accessId:t=o(),...n}){const a=`/API/metadata-field/${e}/access/${t}`;return r({path:a,method:"DELETE",...n})}function Ui({...e}={}){return r({path:"/API/metadata-field/merged-access",method:"GET",...e})}function Li({fieldName:e=o(),...t}={}){const n=`/API/metadata-field/${e}/merged-access`;return r({path:n,method:"GET",...t})}const Ci={listMetadataField:$i,getMetadataField:gi,updateMetadataField:Ii,removeMetadataField:Ei,getMetadataFieldValues:Ai,getMetadataFieldAllowedValues:yi,updateMetadataFieldValues:bi,getSimpleMetadata:Si,listMetadataFieldAccess:vi,createMetadataFieldAccess:Gi,removeMetadataFieldAccess:ki,listMetadataFieldMergedAccess:Ui,getMetadataFieldMergedAccess:Li};function Mi({...e}={}){return r({path:"/API/metadata/migration",method:"GET",...e})}function Di({migrationId:e=o(),...t}){const n=`/API/metadata/migration/${e}`;return r({path:n,method:"GET",...t})}function xi({metadataSchemaMigrationDocument:e=o(),...t}){return r({path:"/API/metadata/migration",method:"POST",body:e,...t})}const Oi={listMetadataMigration:Mi,getMetadataMigration:Di,createMetadataMigration:xi};function ji({...e}={}){return r({path:"/API/metadata-schema",method:"GET",...e})}function Fi({metadataSchemaDocument:e=o(),...t}){return r({path:"/API/metadata-schema",method:"PUT",body:e,...t})}function Ri({...e}={}){return r({path:"/API/metadata-schema",method:"DELETE",...e})}function wi({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"GET",...t})}function zi({groupName:e=o(),metadataSchemaGroupDocument:t=o(),...n}={}){const a=`/API/metadata-schema${e}`;return r({path:a,method:"PUT",body:t,...n})}function qi({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"DELETE",...t})}function Bi({...e}={}){return r({path:"/API/metadata-field/terse-schema",method:"GET",...e})}const Ni={getMetadataSchema:ji,updateMetadataSchema:Fi,removeMetadataSchema:Ri,getMetadataSchemaGroup:wi,updateMetadataSchemaGroup:zi,removeMetadataSchemaGroup:qi,getTerseMetadataSchema:Bi};function Ji({...e}={}){return r({path:"/APInoauth/is-online/",method:"GET",...e})}function Vi({...e}={}){return r({path:"/APInoauth/selftest/",method:"GET",...e})}function Ki({headers:e={},...t}={}){const n={accept:"text/plain",...e};return r({path:"/APIinit/",method:"POST",headers:n,...t})}function Hi({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 Qi={getSelfTest:Vi,createInit:Ki,getFileRaw:Hi,isOnline:Ji};function _i({projectDocument:e=o(),...t}){return r({path:"/API/collection/project/",method:"POST",body:e,...t})}function Wi({collectionId:e=o(),projectVersionDocument:t=o(),...n}){const a=`/API/collection/${e}/version`;return r({path:a,method:"POST",body:t,...n})}function Xi({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 Yi({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 Zi({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 tc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}`;return r({path:a,method:"DELETE",...n})}function ec({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"GET",...n})}function nc({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 oc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"DELETE",...n})}function ac({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 rc({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 sc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/extradata`;return r({path:a,method:"DELETE",...n})}function ic({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/collection/project/inspect",method:"POST",body:t,queryParams:e,...n})}function cc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project",method:"POST",body:t,queryParams:e,...n})}function uc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project/sequence",method:"POST",body:t,queryParams:e,...n})}function hc({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 pc={createProject:_i,createProjectVersion:Wi,listProjectDefinition:Xi,updateProjectDefinition:Yi,getProjectDefinition:Zi,removeProjectDefinition:tc,getProjectDefinitionAsset:ec,updateProjectDefinitionAsset:nc,removeProjectDefinitionAsset:oc,getProjectDefinitionExtraData:ac,updateProjectDefinitionExtraData:rc,removeProjectDefinitionExtraData:sc,inspectProjectFile:ic,importProject:cc,importProjectSequence:uc,exportProjectVersionSequence:hc};function dc({...e}={}){return r({path:"/API/projection/",method:"GET",...e})}function mc({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 lc({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 fc({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 Pc({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 Tc({projectionId:e=o(),...t}){const n=`/API/projection/${e}`;return r({path:n,method:"DELETE",...t})}const $c={listProjection:dc,getProjectionOutgoing:mc,getProjectionIncoming:lc,updateProjectionOutgoing:fc,updateProjectionIncoming:Pc,removeProjection:Tc};function gc({...e}={}){return r({path:"/API/quota/",method:"GET",...e})}function Ic({quotaRuleDocument:e,...t}){return r({path:"/API/quota/",method:"POST",body:e,...t})}function Ec({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"GET",...t})}function Ac({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"PUT",...t})}function yc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"DELETE",...t})}const bc={listQuota:gc,createQuota:Ic,getQuota:Ec,evaluateQuota:Ac,removeQuota:yc};function Sc({indexName:e=o(),...t}){const n=`/API/reindex/${e}`;return r({path:n,method:"GET",...t})}function vc({indexName:e=o(),...t}){const n=`/API/reindex/${e}/`;return r({path:n,method:"PUT",...t})}const Gc={getReindex:Sc,updateReindex:vc};function kc({...e}={}){return r({path:"/API/resource/",method:"GET",...e})}function Uc({resourceType:e=o(),...t}){const n=`/API/resource/${e}`;return r({path:n,method:"GET",...t})}function Lc({resourceType:e=o(),resourceDocument:t,...n}){const a=`/API/resource/${e}`;return r({path:a,method:"POST",body:t,...n})}function Cc({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 Mc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"GET",...n})}function Dc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function xc({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 Oc={listResource:kc,listResourceType:Uc,createResource:Lc,modifyResource:Cc,getResource:Mc,removeResource:Dc,statusResource:xc};function jc({...e}){return r({path:"/API/scheduled-request/",method:"GET",...e})}function Fc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"GET",...t})}function Rc({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 wc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"DELETE",...t})}function zc({...e}){return r({path:"/API/scheduled-request",method:"DELETE",...e})}const qc={listScheduledRequest:jc,getScheduledRequest:Fc,getScheduledRequestResponse:Rc,removeScheduledRequest:wc,removeAllScheduledRequest:zc};function Bc({...e}={}){return r({path:"/API/search/",method:"GET",...e})}function Nc({itemSearchDocument:e,...t}){return r({path:"/API/search/",method:"PUT",body:e,...t})}function Jc({shapeSearchDocument:e,...t}){return r({path:"/API/search/shape/",method:"PUT",body:e,...t})}function Vc({fileSearchDocument:e,...t}){return r({path:"/API/search/file/",method:"PUT",body:e,...t})}function Kc({autocompleteRequestDocument:e,...t}){return r({path:"/API/search/autocomplete/",method:"PUT",body:e,...t})}const Hc={listItemCollection:Bc,searchItemCollection:Nc,searchShape:Jc,searchFile:Vc,searchAutoComplete:Kc};function Qc({noAuth:e=!1,...t}={}){return r({path:e?"/APInoauth/selftest/":"/API/selftest/",method:"GET",...t})}function _c({testName:e=o(),...t}={}){const n=`/API/selftest/${e}`;return r({path:n,method:"GET",...t})}const Wc={listSelfTest:Qc,getSelfTest:_c};function Xc({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 Yc({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence`;return r({path:n,method:"GET",...t})}function Zc({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 tu({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/conform-metadata`;return r({path:n,method:"POST",...t})}function eu({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/render`;return r({path:n,method:"POST",...t})}function nu({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/sequence/${t}`;return r({path:a,method:"DELETE",...n})}function ou({sequenceRenderRequestDocument:e=o(),...t}){return r({path:"/API/sequence/render",method:"POST",body:e,...t})}function au({queryParams:e=o(),exportRequestDocument:t,...n}){return r({path:"/API/sequence/export",method:"POST",body:t,queryParams:e,...n})}function ru({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 su={updateItemSequence:Xc,listItemSequence:Yc,getItemSequence:Zc,conformItemSequence:tu,renderItemSequence:eu,removeItemSequence:nu,renderSequence:ou,exportSequence:au,exportItemSequence:ru};function iu({...e}={}){return r({path:"/API/vidispine-service",method:"GET",...e})}function cu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}`;return r({path:n,method:"GET",...t})}function uu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}/enable`;return r({path:n,method:"PUT",...t})}function hu({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 du={getServiceList:iu,getService:cu,enableService:uu,disableService:hu,getStackTrace:pu};function mu({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 lu({itemId:e=o(),shapeDocument:t={},...n}){const a=`/API/item/${e}/shape/create`;return r({path:a,method:"POST",body:t,...n})}function fu({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 Pu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"POST",...t})}function Tu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/imp`;return r({path:n,method:"POST",...t})}function $u({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 gu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"GET",...t})}function Iu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/`;return r({path:a,method:"GET",...n})}function Eu({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 Au({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 yu({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 bu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function Su({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version`;return r({path:n,method:"GET",...t})}function vu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"GET",...n})}function Gu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"DELETE",...n})}function ku({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version/`;return r({path:n,method:"POST",...t})}function Uu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"POST",...n})}function Lu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/essence`;return r({path:n,method:"POST",...t})}function Cu({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 Mu({itemId:e=o(),shapeId:t=o(),...n}={}){const a=`/API/item/${e}/shape/${t}`;return r({path:a,method:"DELETE",...n})}function Du({itemId:e=o(),...t}={}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"DELETE",...t})}function xu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function Ou({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/thumbnail`;return r({path:a,method:"POST",...n})}function ju({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/update`;return r({path:a,method:"POST",...n})}function Fu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}file`;return r({path:a,method:"GET",...n})}function Ru({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/tag`;return r({path:a,method:"GET",...n})}function wu({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 zu({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 qu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/mime`;return r({path:a,method:"GET",...n})}function Bu({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 Nu({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 Ju({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/filename`;return r({path:a,method:"GET",...n})}function Vu({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 Ku({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 Hu({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 Qu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-render`;return r({path:a,method:"POST",...n})}function _u({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-edl`;return r({path:a,method:"GET",...n})}function Wu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlight-render`;return r({path:a,method:"POST",...n})}function Xu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlighter-edl`;return r({path:a,method:"GET",...n})}const Yu={createShapePlaceholder:mu,createShape:lu,updateShapePlaceholder:fu,createShapeImport:Pu,createShapeImportImp:Tu,createShapeImportRaw:$u,listShape:gu,getShape:Iu,getShapeGraph:Eu,getShapeGraphDot:Au,getShapeCpl:yu,createShapeTranscode:bu,listShapeEssence:Su,getShapeEssence:vu,removeShapeEssence:Gu,copyShapeEssence:ku,copyShapeEssenceSpecific:Uu,createShapeEssenceImport:Lu,createShapeEssenceImportRaw:Cu,removeShape:Mu,removeShapeAll:Du,createTranscode:xu,createThumbnail:Ou,createDeduction:ju,listShapeFile:Fu,getShapeTag:Ru,updateShapeTag:wu,removeShapeTag:zu,getShapeMime:qu,updateShapeMime:Bu,removeShapeMime:Nu,getShapeFileNameRule:Ju,createShapeFileNameRule:Vu,removeShapeFileNameRule:Ku,createShapeAnalyze:Hu,createSmartcrop:Qu,getSmartcrop:_u,createHighlight:Wu,getHighlight:Xu};function Zu({...e}={}){return r({path:"/API/shape-tag/",method:"GET",...e})}function th({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"GET",...t})}function eh({tagName:e=o(),transcodePresetDocument:t,...n}){const a=`/API/shape-tag/${e}`;return r({path:a,method:"PUT",body:t,...n})}function nh({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"DELETE",...t})}function oh({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 ah({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 rh({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}/script`;return r({path:n,method:"DELETE",...t})}function sh({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 ih({...e}={}){return r({path:"/APIinit/preset-templates",method:"PUT",...e})}const ch={listShapeTag:Zu,getShapeTag:th,updateShapeTag:eh,removeShapeTag:nh,getShapeTagScript:oh,updateShapeTagScript:ah,removeShapeTagScript:rh,testShapeTagScript:sh,createShapeTagPreset:ih};function uh({headers:e={},...t}={}){const n={accept:"image/png",...e};return r({path:"/APInoauth/stitch",method:"GET",headers:n,...t})}const hh={getStitch:uh};function ph({...e}={}){return r({path:"/API/storage/",method:"GET",...e})}function dh({storageDocument:e,...t}){return r({path:"/API/storage/",method:"POST",body:e,...t})}function mh({storageId:e=o(),...t}){const n=`/API/storage/${e}/`;return r({path:n,method:"GET",...t})}function lh({storageId:e=o(),storageDocument:t,...n}){const a=`/API/storage/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function fh({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/metadata`;return r({path:a,method:"PUT",body:t,...n})}function Ph({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 Th({storageId:e=o(),key:t=o(),...n}){const a=`/API/storage/${e}/metadata/${t}`;return r({path:a,method:"DELETE",...n})}function $h({storageId:e=o(),...t}){const n=`/API/storage/${e}/rescan`;return r({path:n,method:"POST",...t})}function gh({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 Ih({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 Eh({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 Ah({storageId:e=o(),storageMethodId:t=o(),...n}){const a=`/API/storage/${e}/method/${t}`;return r({path:a,method:"GET",...n})}function yh({storageId:e=o(),...t}){const n=`/API/storage/${e}/method/`;return r({path:n,method:"GET",...t})}function bh({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 Sh({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"PUT",...t})}function vh({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"DELETE",...t})}function Gh({storageId:e=o(),storageType:t=o(),...n}){const a=`/API/storage/${e}/type/${t}`;return r({path:a,method:"PUT",...n})}const kh={listStorage:ph,createStorage:dh,getStorage:mh,modifyStorage:lh,modifyStorageMetadata:fh,modifyStorageMetadataKey:Ph,removeStorageMetadata:Th,rescanStorage:$h,createStorageMethod:gh,modifyStorageMethod:Ih,removeStorageMethod:Eh,getStorageMethod:Ah,listStorageMethod:yh,removeStorage:bh,startEvacuateStorage:Sh,cancelEvacuateStorage:vh,updateStorageType:Gh};function Uh({...e}={}){return r({path:"/API/storage/storage-group/",method:"GET",...e})}function Lh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"PUT",...t})}function Ch({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"GET",...t})}function Mh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"DELETE",...t})}function Dh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function xh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}const Oh={listStorageGroup:Uh,createStorageGroup:Lh,getStorageGroup:Ch,removeStorageGroup:Mh,addStorageGroupStorage:Dh,removeStorageGroupStorage:xh};function jh({...e}={}){return r({path:"/API/storage-rule/",method:"GET",...e})}function Fh({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"GET",...n})}function Rh({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 wh({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"DELETE",...n})}function zh({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 qh({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 Bh({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 Nh({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"GET",...t})}function Jh({tagName:e=o(),storageRuleDocument:t,...n}){const a=`/API/shape-tag/storage-rule/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Vh({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"DELETE",...t})}const Kh={listStorageRule:jh,getEntityStorageRule:Fh,updateEntityStorageRule:Rh,removeEntityStorageRule:wh,getEntityStorageRuleTag:zh,updateEntityStorageRuleTag:qh,removeEntityStorageRuleTag:Bh,getStorageRuleShapeTag:Nh,updateStorageRuleShapeTag:Jh,removeStorageRuleShapeTag:Vh};function Hh({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 Qh({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 _h={getSubtitleSCC:Hh,getSubtitleTTML:Qh};function Wh({...e}={}){return r({path:"/API/jobtype",method:"GET",...e})}function Xh({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"POST",...t})}function Yh({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"DELETE",...t})}function Zh({...e}={}){return r({path:"/API/task-definition",method:"GET",...e})}function tp({taskDefinitionType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"GET",...t})}function ep({taskDefinitionListDocument:e,...t}){return r({path:"/API/task-definition",method:"POST",body:e,...t})}function np({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"GET",...t})}function op({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"GET",...n})}function ap({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"DELETE",...t})}function rp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"DELETE",...n})}function sp({taskDefinitionId:e=o(),taskDefinitionDocument:t=o(),...n}){const a=`/API/task-definition/${e}`;return r({path:a,method:"PUT",body:t,...n})}function ip({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 cp({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 up({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 hp({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},h=`/API/task-definition/jobtype/${e}/step/${t}/script`;return r({path:h,method:"PUT",body:n,headers:i,...s})}const dp={listJobType:Wh,createJobType:Xh,removeJobType:Yh,listTaskDefinition:Zh,getTaskDefinitionType:tp,createTaskDefinition:ep,getTaskDefinition:np,getTaskDefinitionStep:op,removeTaskDefinition:ap,removeTaskDefinitionStep:rp,modifyTaskDefinition:sp,modifyTaskDefinitionStep:ip,getTaskDefinitionScript:cp,getTaskDefinitionStepScript:up,updateTaskDefinitionScript:hp,updateTaskDefinitionStepScript:pp};function mp({...e}={}){return r({path:"/API/task-group",method:"GET",...e})}function lp({groupName:e=o(),taskGroupDocument:t,...n}){const a=`/API/task-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function fp({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"GET",...t})}function Pp({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"DELETE",...t})}function Tp({...e}={}){return r({path:"/API/task-group",method:"DELETE",...e})}function $p({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 gp({groupName:e=o(),transcoderId:t=o(),...n}){const a=`/API/task-group/${e}/transcoder/${t}`;return r({path:a,method:"DELETE",...n})}const Ip={listTaskGroup:mp,updateTaskGroup:lp,getTaskGroup:fp,removeTaskGroup:Pp,removeAllTaskGroup:Tp,updateTaskGroupTranscoder:$p,removeTaskGroupTranscoder:gp};function Ep({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function Ap({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"GET",...t})}function yp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"PUT",...t})}function bp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"GET",...n})}function Sp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function vp({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 Gp({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 kp({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 Up({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 Lp({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"GET",...t})}function Cp({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"PUT",...t})}function Mp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"GET",...n})}function Dp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function xp({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 Op({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 jp({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 Fp({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 Rp={createThumbnail:Ep,listThumbnailResource:Ap,createThumbnailResource:yp,listThumbnail:bp,removeAllThumbnail:Sp,updateThumbnail:vp,getThumbnail:Gp,exportThumbnail:kp,removeThumbnail:Up,listPosterResource:Lp,createPosterResource:Cp,listPoster:Mp,removeAllPoster:Dp,updatePoster:xp,getPoster:Op,exportPoster:jp,removePoster:Fp};function wp({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 zp({itemId:e=o(),...t}){const n=`/API/item/${e}/timeline`;return r({path:n,method:"DELETE",...t})}function qp({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"GET",...n})}function Bp({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 Np({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"DELETE",...n})}const Jp={getTimeline:wp,removeTimeline:zp,getTimelineFormat:qp,updateTimelineFormat:Bp,removeTimelineFormat:Np};function Vp({...e}={}){return r({path:"/API/transfer/",method:"GET",...e})}function Kp({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"GET",...t})}function Hp({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"PUT",...t})}function Qp({...e}={}){return r({path:"/API/log/transfer-log/",method:"GET",...e})}const _p={listTransfer:Vp,getTransfer:Kp,updateTransferPriority:Hp,listTransferLog:Qp};function Wp({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 Xp={createLicense:Wp};function Yp({headers:e={},...t}={}){const n="/API/whoami",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function Zp({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 td({...e}={}){return r({path:"/API/user/",method:"GET",...e})}function ed({userDocument:e,...t}){return r({path:"/API/user/",method:"POST",body:e,...t})}function nd({userName:e=o(),...t}){const n=`/API/user/${e}`;return r({path:n,method:"GET",...t})}function od({userName:e=o(),...t}){const n=`/API/user/${e}/graph`;return r({path:n,method:"GET",...t})}function ad({userName:e=o(),userDocument:t=o(),...n}){const a=`/API/user/${e}`;return r({path:a,method:"PUT",body:t,...n})}function rd({userName:e=o(),...t}){const n=`/API/user/${e}/`;return r({path:n,method:"DELETE",...t})}function sd({userName:e=o(),...t}){const n=`/API/user/${e}/enable`;return r({path:n,method:"PUT",...t})}function id({userSearchDocument:e,...t}){return r({path:"/API/user/",method:"PUT",body:e,...t})}function cd({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"PUT",...n})}function ud({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"DELETE",...n})}function hd({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 dd({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 md({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 ld({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 fd({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 Pd({userName:e=o(),...t}){const n=`/API/user/${e}/groups/`;return r({path:n,method:"GET",...t})}function Td({userName:e=o(),...t}){const n=`/API/user/${e}/roles`;return r({path:n,method:"GET",...t})}function $d({userName:e=o(),...t}){const n=`/API/user/${e}/allgroups`;return r({path:n,method:"GET",...t})}function gd({userName:e=o(),groupListDocument:t,...n}){const a=`/API/user/${e}/groups/`;return r({path:a,method:"PUT",body:t,...n})}function Id({headers:e={},...t}={}){const n="/API/token",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function Ed({userName:e=o(),...t}){const n=`/API/user/${e}/key`;return r({path:n,method:"GET",...t})}function Ad({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"GET",...n})}function yd({userName:e=o(),...t}){const n=`/API/user/${e}/key/`;return r({path:n,method:"POST",...t})}function bd({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 Sd({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"DELETE",...n})}function vd({userName:e=o(),...t}){const n=`/API/user/${e}/access`;return r({path:n,method:"GET",...t})}const Gd={whoAmI:Yp,getUserToken:Zp,listUser:td,createUser:ed,getUser:nd,getUserGraph:od,updateUser:ad,disableUser:rd,enableUser:sd,searchUser:id,createAlias:cd,removeAlias:ud,getUserRealName:hd,updateUserRealName:pd,updateUserPassword:dd,validateUserPassword:md,getUserSalt:ld,createUserSalt:fd,getUserGroup:Pd,getUserRole:Td,getUserGroupRole:$d,updateUserGroup:gd,getToken:Id,listKey:Ed,getKey:Ad,createKey:yd,updateKey:bd,removeKey:Sd,getAccess:vd};function kd({...e}={}){return r({path:"/API/version",method:"GET",...e})}const Ud={getVersion:kd};function Ld({path:e=o(),...t}){const n=`/API/cost/${e}`;return r({path:n,method:"GET",...t})}function Cd({costEstimateId:e=o(),...t}){const n=`/API/cost/estimate/${e}`;return r({path:n,method:"GET",...t})}const Md={createCostEstimate:Ld,getCostEstimate:Cd};function Dd({...e}={}){return r({path:"/API/vxa/",method:"GET",...e})}function xd({headers:e={},...t}={}){const n="/API/vxa/enable-ssh/",a={accept:"text/plain",...e};return r({path:n,method:"PUT",headers:a,...t})}function Od({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"GET",...t})}function jd({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}/configuration`;return r({path:n,method:"GET",...t})}function Fd({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"DELETE",...t})}const Rd={listVxa:Dd,createVxa:xd,getVxa:Od,getVxaConfiguration:jd,removeVxa:Fd};u.ChunkedTransferManager=L,u.ChunkedUpload=A,u.access=at,u.analyzepreset=it,u.auditlog=ht,u.autoimport=Tt,u.autoprojection=vt,u.bulkymetadata=Vt,u.collection=an,u.component=$n,u.configuration=Yn,u.conform=eo,u.debug=oo,u.deletionlock=lo,u.documentmetadata=Eo,u.errorlog=yo,u.exportlocation=Lo,u.exporttemplate=zo,u.externalid=_o,u.fieldgroup=da,u.file=C,u.globalmetadata=Ba,u.group=rr,u.importsettings=Mr,u.item=vs,u.javascript=ks,u.job=_s,u.library=ui,u.license=pi,u.metadata=E,u.metadatadataset=Pi,u.metadatafield=Ci,u.metadatalock=S,u.metadatamigration=Oi,u.metadataschema=Ni,u.noauth=Qi,u.notification=M,u.project=pc,u.projection=$c,u.quota=bc,u.reindex=Gc,u.resource=Oc,u.scheduledrequest=qc,u.search=Hc,u.selftest=Wc,u.sequence=su,u.service=du,u.shape=Yu,u.shapetag=ch,u.stitch=hh,u.storage=kh,u.storagegroup=Oh,u.storagerule=Kh,u.subtitle=_h,u.taskdefinition=dp,u.taskgroup=Ip,u.thumbnail=Rp,u.timeline=Jp,u.transfer=_p,u.uploadlicense=Xp,u.user=Gd,u.utils=q,u.version=Ud,u.vidinet=Md,u.vsimport=vr,u.vxa=Rd,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
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,$,G){"use strict";const P=G.create(),{CancelToken:D}=G;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,v)=>`${g}${v>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((v,wd)=>{P(I).then(f=>{f.ok=f.status>=100&&f.status<=399,f.json=()=>f.data,f.text=()=>f.data,v(f)}).catch(f=>wd(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 vt={listAutoProjection:$t,listDisabledAutoProjection:gt,listEnabledAutoProjection:It,getAutoProjection:Et,createAutoProjection:At,removeAutoProjection:yt,enableAutoProjection:bt,disableAutoProjection:St};function Gt({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:Gt,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 ve({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:ve},{listEntityMetadataLock:Ge,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({collectionId:e=o(),searchDocument:t,...n}){const a=`/API/collection/${e}/item`;return r({path:a,method:"PUT",body:t,...n})}function qe({collectionDocument:e,queryParams:t,...n}){return r({path:"/API/collection",method:"POST",body:e,queryParams:t,...n})}function Be({collectionId:e=o(),...t}){const n=`/API/collection/${e}/`;return r({path:n,method:"DELETE",...t})}function Ne({queryParams:e=o(),...t}){return r({path:"/API/collection",method:"DELETE",queryParams:e,...t})}function Je({collectionId:e=o(),...t}){const n=`/API/collection/${e}/rename`;return r({path:n,method:"PUT",...t})}function Ve({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"PUT",...n})}function Ke({collectionId:e=o(),entityId:t=o(),...n}){const a=`/API/collection/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function He({collectionId:e=o(),collectionDocument:t,...n}){const a=`/API/collection/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Qe({collectionId:e=o(),collectionReorderDocument:t,...n}){const a=`/API/collection/${e}/order`;return r({path:a,method:"POST",body:t,...n})}function _e({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"PUT",...t})}function We({collectionId:e=o(),...t}){const n=`/API/collection/${e}/map-to-folder`;return r({path:n,method:"DELETE",...t})}function Xe({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/folder-name`;return r({path:a,method:"PUT",queryParams:t,...n})}function Ye({collectionId:e=o(),...t}){return Ge({entity:"collection",entityId:e,...t})}function Ze({collectionId:e=o(),...t}){return ke({entity:"collection",entityId:e,...t})}function tn({collectionId:e=o(),...t}){return Ue({entity:"collection",entityId:e,...t})}function en({collectionId:e=o(),...t}){return Le({entity:"collection",entityId:e,...t})}function nn({collectionId:e=o(),...t}){return Ce({entity:"collection",entityId:e,...t})}function on({collectionId:e=o(),queryParams:t=o(),...n}){const a=`/API/collection/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}const an={listCollection:Me,getCollection:De,getCollectionMetadata:xe,updateCollectionMetadata:Oe,getCollectionAncestor:je,listCollectionHistory:Fe,getCollectionItem:Re,searchCollection:we,searchCollectionItem:ze,createCollection:qe,removeCollection:Be,removeCollectionList:Ne,renameCollection:Je,addCollectionEntity:Ve,removeCollectionEntity:Ke,updateCollection:He,orderCollection:Qe,markFolderCollection:_e,unMarkFolderCollection:We,updateFolderCollection:Xe,listCollectionMetadataLock:Ye,createCollectionMetadataLock:Ze,getCollectionMetadataLock:tn,updateCollectionMetadataLock:en,removeCollectionMetadataLock:nn,exportCollection:on};function rn({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/component`;return r({path:a,method:"GET",...n})}function sn({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 cn({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 un({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 hn({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 pn({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 dn({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 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}/copy/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}/copy/item/${a}/shape/${s}`;return r({path:h,method:"POST",...i})}function fn({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 Pn({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 Tn({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 $n={listComponent:rn,getComponent:sn,removeComponent:cn,createComponent:un,createComponentPlaceholder:hn,moveComponent:pn,moveComponentToShape:dn,copyComponent:mn,copyComponentToShape:ln,addComponentFile:fn,removeComponentFile:Pn,createComponentAnalyze:Tn};function gn({...e}={}){return r({path:"/API/configuration/",method:"GET",...e})}function In({...e}={}){return r({path:"/API/configuration/properties",method:"GET",...e})}function En({configurationPropertyDocument:e,...t}){return r({path:"/API/configuration/properties/",method:"PUT",body:e,...t})}function An({configurationPropertyListDocument:e=o(),...t}){return r({path:"/API/configuration/properties/",method:"POST",body:e,...t})}function yn({key:e=o(),...t}){const n=`/API/configuration/properties/${e}`;return r({path:n,method:"DELETE",...t})}function bn({...e}={}){return r({path:"/API/configuration/indexing",method:"GET",...e})}function Sn({indexingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/indexing",method:"PUT",body:e,...t})}function vn({...e}={}){return r({path:"/API/configuration/ftp-pool",method:"GET",...e})}function Gn({ftpPoolConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/ftp-pool",method:"PUT",body:e,...t})}function kn({...e}){return r({path:"/API/configuration/ftp-pool",method:"DELETE",...e})}function Un({...e}={}){return r({path:"/API/configuration/job-pool",method:"GET",...e})}function Ln({jobPoolListDocument:e=o(),...t}){return r({path:"/API/configuration/job-pool",method:"PUT",body:e,...t})}function Cn({...e}){return r({path:"/API/configuration/job-pool",method:"DELETE",...e})}function Mn({jobPoolPriority:e=o(),...t}){const n=`/API/configuration/job-pool/${e}`;return r({path:n,method:"DELETE",...t})}function Dn({...e}={}){return r({path:"/API/configuration/metrics",method:"GET",...e})}function xn({metricsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/metrics",method:"PUT",body:e,...t})}function On({...e}={}){return r({path:"/API/configuration/path-alias",method:"GET",...e})}function jn({pathAliasConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/path-alias",method:"PUT",body:e,...t})}function Fn({...e}={}){return r({path:"/API/configuration/logreport",method:"GET",...e})}function Rn({logReportConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/logreport",method:"PUT",body:e,...t})}function wn({...e}={}){return r({path:"/API/configuration/purging",method:"GET",...e})}function zn({databasePurgingConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/purging",method:"PUT",body:e,...t})}function qn({...e}){return r({path:"/API/configuration/purging",method:"DELETE",...e})}function Bn({...e}={}){return r({path:"/API/configuration/cors",method:"GET",...e})}function Nn({corsConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/cors",method:"PUT",body:e,...t})}function Jn({...e}={}){return r({path:"/API/configuration/auth",method:"GET",...e})}function Vn({oAuth2ConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/auth",method:"PUT",body:e,...t})}function Kn({...e}={}){return r({path:"/API/configuration/auth",method:"DELETE",...e})}function Hn({...e}={}){return r({path:"/API/configuration/job-priority",method:"GET",...e})}function Qn({jobPriorityConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/job-priority",method:"PUT",body:e,...t})}function _n({...e}={}){return r({path:"/API/configuration/job-priority",method:"DELETE",...e})}function Wn({...e}={}){return r({path:"/API/configuration/bulkymetadata",method:"GET",...e})}function Xn({bulkyMetadataConfigurationDocument:e=o(),...t}){return r({path:"/API/configuration/bulkymetadata",method:"PUT",body:e,...t})}const Yn={getConfiguration:gn,getPropertiesConfiguration:In,updatePropertiesConfiguration:En,updateAllPropertiesConfiguration:An,removePropertiesConfiguration:yn,getIndexingConfiguration:bn,updateIndexingConfiguration:Sn,getFtpPoolConfiguration:vn,updateFtpPoolConfiguration:Gn,removeFtpPoolConfiguration:kn,getJobPoolConfiguration:Un,updateJobPoolConfiguration:Ln,removeAllJobPoolConfiguration:Cn,removeJobPoolConfiguration:Mn,getMetricsConfiguration:Dn,updateMetricsConfiguration:xn,getPathAliasConfiguration:On,updatePathAliasConfiguration:jn,getLogReportConfiguration:Fn,updateLogReportConfiguration:Rn,getDatabasePurgingConfiguration:wn,updateDatabasePurgingConfiguration:zn,removeDatabasePurgingConfiguration:qn,getCorsConfiguration:Bn,updateCorsConfiguration:Nn,getAuthConfiguration:Jn,updateAuthConfiguration:Vn,removeAuthConfiguration:Kn,getJobPriorityConfiguration:Hn,updateJobPriorityConfiguration:Qn,removeJobPriorityConfiguration:_n,getBulkyMetadataConfiguration:Wn,updateBulkyMetadataConfiguration:Xn};function Zn({conformRequestDocument:e=o(),...t}){return r({path:"/API/conform",body:e,method:"POST",...t})}function to({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 eo={createConform:Zn,createConformItem:to};function no({xmlDocument:e=o(),headers:t={},...n}){return r({path:"/APInoauth/debug/echo",method:"PUT",body:e,headers:{contentType:"application/xml",...t},...n})}const oo={echo:no};function ao({...e}={}){return r({path:"/API/deletion-lock",method:"GET",...e})}function ro({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"GET",...t})}function so({lockId:e=o(),deletionLockDocument:t=o(),...n}){const a=`/API/deletion-lock/${e}`;return r({path:a,method:"PUT",body:t,...n})}function io({lockId:e=o(),...t}){const n=`/API/deletion-lock/${e}`;return r({path:n,method:"DELETE",...t})}function co({entity:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/deletion-lock/`;return r({path:a,method:"GET",...n})}function uo({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 ho({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 po({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 mo({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 lo={listDeletionLock:ao,getDeletionLock:ro,updateDeletionLock:so,removeDeletionLock:io,listEntityDeletionLock:co,createEntityDeletionLock:uo,getEntityDeletionLock:ho,updateEntityDeletionLock:po,removeEntityDeletionLock:mo};function fo({...e}={}){return r({path:"/API/document/",method:"GET",...e})}function Po({itemSearchDocument:e,...t}={}){return r({path:"/API/document/",method:"PUT",body:e,...t})}function To({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"GET",...t})}function $o({documentMetadataName:e=o(),metadataDocument:t,...n}){const a=`/API/document/${e}`;return r({path:a,body:t,method:"PUT",...n})}function go({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}/changes`;return r({path:n,method:"GET",...t})}function Io({documentMetadataName:e=o(),...t}){const n=`/API/document/${e}`;return r({path:n,method:"DELETE",...t})}const Eo={listDocumentMetadata:fo,searchDocumentMetadata:Po,getDocumentMetadata:To,updateDocumentMetadata:$o,getDocumentMetadataChanges:go,removeDocumentMetadata:Io};function Ao({...e}={}){return r({path:"/API/error",method:"GET",...e})}const yo={listErrorLogs:Ao};function bo({...e}={}){return r({path:"/API/export-location",method:"GET",...e})}function So({locationName:e=o(),...t}){return r({path:`/API/export-location/${e}`,method:"GET",...t})}function vo({locationName:e=o(),exportLocationDocument:t,...n}){const a=`/API/export-location/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Go({locationName:e=o(),...t}){const n=`/API/export-location/${e}`;return r({path:n,method:"DELETE",...t})}function ko({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 Uo({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 Lo={listExportLocation:bo,getExportLocation:So,updateExportLocation:vo,removeExportLocation:Go,getExportLocationScript:ko,updateExportLocationScript:Uo};function Co({...e}={}){return r({path:"/API/export-template",method:"GET",...e})}function Mo({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"GET",...t})}function Do({templateName:e=o(),...t}){return r({path:`/API/export-template/${e}`,method:"DELETE",...t})}function xo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function Oo({templateName:e=o(),exportTemplateDocument:t,...n}){return r({path:`/API/export-template/${e}`,method:"PUT",body:t,...n})}function jo({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 Fo({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 Ro({...e}){return r({path:"/API/export-template/test",method:"POST",...e})}function wo({...e}){return r({path:"/API/export-template/test",method:"PUT",...e})}const zo={listExportTemplete:Co,getExportTemplate:Mo,removeExportTemplate:Do,createExportTemplate:xo,updateExportTemplate:Oo,getExportTemplateGraph:jo,getExportTemplateGraphDot:Fo,createExportTemplateTest:Ro,createExportTemplateTestRender:wo};function y(e){return e==="field-group"?"metadata-field/field-group":e}function qo({...e}={}){return r({path:"/API/external-id",method:"GET",...e})}function Bo({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"GET",...t})}function No({idName:e=o(),externalIdentifierNamespaceDocument:t,...n}){const a=`/API/external-id/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Jo({idName:e=o(),...t}){const n=`/API/external-id/${e}`;return r({path:n,method:"DELETE",...t})}function Vo({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${y(e)}/${t}/external-id/`;return r({path:a,method:"GET",...n})}function Ko({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 Ho({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 Qo({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${y(e)}/${t}/external-id`;return r({path:a,method:"DELETE",...n})}const _o={listExternalIdNamespace:qo,getExternalIdNamespace:Bo,updateExternalIdNamespace:No,removeExternalIdNamespace:Jo,listExternalId:Vo,createExternalId:Ko,removeExternalId:Ho,removeAllExternalId:Qo},{getSimpleMetadata:Wo}=E;function Xo({...e}={}){return r({path:"/API/metadata-field/field-group/",method:"GET",...e})}function Yo({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/`;return r({path:n,method:"GET",...t})}function Zo({groupName:e=o(),metadataFieldGroupDocument:t,...n}){const a=`/API/metadata-field/field-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function ta({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}`;return r({path:n,method:"DELETE",...t})}function ea({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function na({groupName:e=o(),fieldName:t=o(),...n}){const a=`/API/metadata-field/field-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function oa({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 aa({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 ra({metadataFieldGroupSearchDocument:e,...t}){return r({path:"/API/metadata-field/field-group/",method:"PUT",body:e,...t})}function sa({groupName:e=o(),...t}){return Wo({entityType:"metadata-field/field-group",entityId:e,...t})}function ia({groupName:e=o(),...t}){const n=`/API/metadata-field/field-group/${e}/access`;return r({path:n,method:"GET",...t})}function ca({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 ua({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 ha({...e}={}){return r({path:"/API/metadata-field/field-group/merged-access",method:"GET",...e})}function pa({groupName:e=o(),...t}={}){const n=`/API/metadata-field/field-group/${e}/merged-access`;return r({path:n,method:"GET",...t})}const da={listFieldGroup:Xo,getFieldGroup:Yo,updateFieldGroup:Zo,removeFieldGroup:ta,updateFieldGroupField:ea,removeFieldGroupField:na,updateFieldGroupChild:oa,removeFieldGroupChild:aa,searchFieldGroup:ra,getSimpleMetadata:sa,listFieldGroupAccess:ia,createFieldGroupAccess:ca,removeFieldGroupAccess:ua,listFieldGroupMergedAccess:ha,getFieldGroupMergedAccess:pa};function ma({...e}={}){return r({path:"/API/storage/file/",method:"GET",...e})}function la({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/`;return r({path:n,method:"GET",...t})}function fa({...e}={}){return r({path:"/API/storage/file/importable/",method:"GET",...e})}function Pa({storageId:e=o(),...t}={}){const n=`/API/storage/${e}/file/importable/`;return r({path:n,method:"GET",...t})}function Ta({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/`;return r({path:n,method:"GET",...t})}function $a({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 ga({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 Ia({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 Ea({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function Aa({fileId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/file/${e}/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function ya({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/file/import/assetmap`;return r({path:a,method:"POST",body:t,...n})}function ba({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/import/`;return r({path:a,method:"POST",body:t,...n})}function Sa({fileId:e=o(),targetStorageId:t=o(),...n}){const a=`/API/storage/file/${e}/storage/${t}/`;return r({path:a,method:"POST",...n})}function va({fileId:e=o(),...t}){const n=`/API/storage/file/${e}`;return r({path:n,method:"DELETE",...t})}function Ga({storageId:e=o(),fileDocument:t,...n}){const a=`/API/storage/${e}/file/`;return r({path:a,method:"POST",body:t,...n})}function ka({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/entity`;return r({path:n,method:"DELETE",...t})}function Ua({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/path/`;return r({path:n,method:"POST",...t})}function La({fileId:e=o(),state:t=o(),...n}){const a=`/API/storage/file/${e}/state/${t}`;return r({path:a,method:"PUT",...n})}function Ca({fileId:e=o(),hash:t=o(),...n}){const a=`/API/storage/file/${e}/hash/${t}`;return r({path:a,method:"PUT",...n})}function Ma({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/abandon`;return r({path:n,method:"PUT",...t})}function Da({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/re-index`;return r({path:n,method:"PUT",...t})}function xa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/uri`;return r({path:n,method:"POST",...t})}function Oa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze`;return r({path:n,method:"POST",...t})}function ja({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/analyze/imp`;return r({path:n,method:"POST",...t})}function Fa({fileId:e=o(),...t}){const n=`/API/storage/file/${e}/shape`;return r({path:n,method:"GET",...t})}const C={listFile:ma,listFileStorage:la,listFileImportable:fa,listFileStorageImportable:Pa,getFile:Ta,createFileRaw:$a,getFileRaw:ga,updateFileRaw:Ia,createFileImport:Ea,createFileImportAssetMap:Aa,createFilePathImportAssetMap:ya,createFileImportPath:ba,createFileMove:Sa,removeFile:va,createFileEntity:Ga,removeFileEntity:ka,createFilePath:Ua,updateFileState:La,updateFileHash:Ca,abandonFile:Ma,reindexFile:Da,createFileTemporaryCredentials:xa,analyzeFile:Oa,analyzeFileImp:ja,listFileShapes:Fa};function Ra({...e}={}){return r({path:"/API/metadata",method:"GET",...e})}function wa({metadataDocument:e=o(),...t}){return r({path:"/API/metadata",method:"PUT",body:e,...t})}function za({uuid:e=o(),...t}){const n=`/API/metadata/${e}`;return r({path:n,method:"GET",...t})}function qa({uuid:e=o(),...t}={}){const n=`/API/metadata/${e}`;return r({path:n,method:"DELETE",...t})}const Ba={listGlobalMetadata:Ra,updateGlobalMetadata:wa,getGlobalMetadata:za,removeGlobalMetadata:qa};function Na({...e}={}){return r({path:"/API/group/",method:"GET",...e})}function Ja({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"GET",...t})}function Va({groupName:e=o(),groupDocument:t,...n}){const a=`/API/group/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function Ka({groupName:e=o(),...t}){const n=`/API/group/${e}`;return r({path:n,method:"DELETE",...t})}function Ha({...e}){return r({path:"/API/group/",method:"DELETE",...e})}function Qa({groupSearchDocument:e,...t}){return r({path:"/API/group/",method:"PUT",body:e,...t})}function _a({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 Wa({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 Xa({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 Ya({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 Za({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 tr({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"PUT",...n})}function er({groupName:e=o(),childGroupName:t=o(),...n}){const a=`/API/group/${e}/group/${t}`;return r({path:a,method:"DELETE",...n})}function nr({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 or({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"PUT",...n})}function ar({groupName:e=o(),userName:t=o(),...n}){const a=`/API/group/${e}/user/${t}`;return r({path:a,method:"DELETE",...n})}const rr={listGroup:Na,getGroup:Ja,updateGroup:Va,removeGroup:Ka,removeGroupList:Ha,searchGroup:Qa,getGroupRoleStatus:_a,getGroupDescription:Wa,updateGroupDescription:Xa,getGroupParents:Ya,getGroupChildren:Za,addGroupChildren:tr,removeGroupChildren:er,getGroupUser:nr,addGroupUser:or,removeGroupUser:ar},{createFileEntity:sr,createFileTemporaryCredentials:ir,updateFileState:cr,abandonFile:ur}=C;function hr({metadataDocument:e={},...t}={}){return r({path:"/API/import/",method:"POST",body:e,...t})}function pr({...e}={}){return r({path:"/API/import/storage",method:"GET",...e})}function dr({file:e=o(),headers:t={},...n}){return r({path:"/API/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function mr({file:e=o(),headers:t={},...n}){return r({path:"/APInoauth/import/raw/",method:"POST",body:e,headers:{contentType:"application/octet-stream",...t},...n})}function lr({metadataDocument:e={},...t}={}){return r({path:"/API/import/raw-passkey/",method:"POST",body:e,...t})}function fr({metadataDocument:e={},...t}={}){return r({path:"/API/import/imp/",method:"POST",body:e,...t})}function Pr({metadataDocument:e={},...t}={}){return r({path:"/API/import/placeholder/",method:"POST",body:e,...t})}function Tr({itemId:e=o(),component:t=o(),...n}){const a=`/API/import/placeholder/${e}/${t}/`;return r({path:a,method:"POST",...n})}function $r({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 gr({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 Ir({itemId:e=o(),placeholderImportRequestDocument:t,...n}){const a=`/API/import/placeholder/${e}/`;return r({path:a,method:"POST",body:t,...n})}function Er({itemId:e=o(),...t}){const n=`/API/import/placeholder/${e}/raw-passkey/`;return r({path:n,method:"POST",...t})}function Ar({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 yr({itemId:e=o(),...t}){const n=`/API/import/sidecar/${e}/`;return r({path:n,method:"POST",...t})}function br({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 Sr({file:e=o(),storageId:t=o()}){return new Promise((n,a)=>{let s,i;sr({storageId:t,queryParams:{path:e.name}}).then(h=>(i=h.data,s=h.data.id,ir({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(()=>{cr({fileId:s,state:"CLOSED"})}).then(()=>{n(i)}).catch(h=>{s&&ur({fileId:s}),a(h.response)})})}const vr={createImportUri:hr,getImportStorage:pr,createImportRaw:dr,createImportRawNoAuth:mr,createImportRawPasskey:lr,createImportImp:fr,createImportPlaceholder:Pr,createImportComponent:Tr,createImportComponentRaw:$r,createImportComponentRawNoAuth:gr,createImportItem:Ir,createImportItemPasskey:Er,createImportItemAdoptFile:Ar,createImportItemSidecar:yr,createImportItemSidecarRaw:br,createImportS3Direct:Sr};function Gr({...e}={}){return r({path:"/API/import/settings",method:"GET",...e})}function kr({importSettingsDocument:e,...t}){return r({path:"/API/import/settings",method:"POST",body:e,...t})}function Ur({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"GET",...t})}function Lr({settingsId:e=o(),importSettingsDocument:t,...n}){const a=`/API/import/settings/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Cr({settingsId:e=o(),...t}){const n=`/API/import/settings/${e}`;return r({path:n,method:"DELETE",...t})}const Mr={listImportSettings:Gr,createImportSettings:kr,getImportSettings:Ur,updateImportSettings:Lr,removeImportSettings:Cr},{updateEntityMetadata:Dr,getEntityMetadata:xr}=E,{listEntityMetadataLock:Or,createEntityMetadataLock:jr,getEntityMetadataLock:Fr,updateEntityMetadataLock:Rr,removeEntityMetadataLock:wr}=S;function zr({...e}={}){return r({path:"/API/item/",method:"GET",...e})}function qr({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"GET",...t})}function Br({itemId:e=o(),...t}){const n=`/API/item/${e}/uri`;return r({path:n,method:"GET",...t})}function Nr({itemId:e=o(),...t}){const n=`/API/item/${e}/`;return r({path:n,method:"DELETE",...t})}function Jr({...e}={}){return r({path:"/API/item/",method:"DELETE",...e})}function Vr({itemSearchDocument:e={},...t}={}){return r({path:"/API/item/",method:"PUT",body:e,...t})}function Kr({itemId:e=o(),metadataDocument:t,...n}){return Dr({entity:"item",entityId:e,metadataDocument:t,...n})}function Hr({itemId:e=o(),...t}){return xr({entity:"item",entityId:e,...t})}function Qr({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function _r({itemId:e=o(),...t}){const n=`/API/item/${e}/transcode`;return r({path:n,method:"POST",...t})}function Wr({itemId:e=o(),...t}){const n=`/API/item/${e}/export`;return r({path:n,method:"POST",...t})}function Xr({itemId:e=o(),...t}){const n=`/API/item/${e}/export/imp`;return r({path:n,method:"POST",...t})}function Yr({itemId:e=o(),...t}){const n=`/API/item/${e}/relation`;return r({path:n,method:"GET",...t})}function Zr({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"POST",...n})}function ts({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation/",method:"POST",body:e,...t})}function es({itemId:e=o(),relationItemId:t=o(),...n}){const a=`/API/item/${e}/relation/${t}`;return r({path:a,method:"DELETE",...n})}function ns({itemId:e=o(),...t}){const n=`/API/item/${e}/relation/`;return r({path:n,method:"DELETE",...t})}function os({itemRelationListDocument:e=o(),...t}){return r({path:"/API/relation",method:"POST",body:e,...t})}function as({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"GET",...t})}function rs({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"PUT",...t})}function ss({relationId:e=o(),...t}){const n=`/API/relation/${e}/`;return r({path:n,method:"DELETE",...t})}function is({...e}={}){return r({path:"/API/item/history",method:"GET",...e})}function cs({itemId:e=o(),...t}){const n=`/API/item/${e}/re-index`;return r({path:n,method:"PUT",...t})}function us({...e}={}){return r({path:"/API/item/list",method:"POST",...e})}function hs({itemId:e=o(),...t}){const n=`/API/item/${e}/collections`;return r({path:n,method:"GET",...t})}function ps({itemId:e=o(),...t}){const n=`/API/item/${e}/library`;return r({path:n,method:"GET",...t})}function ds({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"POST",...t})}function ms({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"GET",...t})}function ls({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"DELETE",...t})}function fs({itemId:e=o(),...t}){const n=`/API/item/${e}/lock`;return r({path:n,method:"PUT",...t})}function Ps({itemId:e=o(),...t}){return Or({entity:"item",entityId:e,...t})}function Ts({itemId:e=o(),...t}){return jr({entity:"item",entityId:e,...t})}function $s({itemId:e=o(),lockId:t=o(),...n}){return Fr({entity:"item",entityId:e,lockId:t,...n})}function gs({itemId:e=o(),lockId:t=o(),...n}){return Rr({entity:"item",entityId:e,lockId:t,...n})}function Is({itemId:e=o(),lockId:t=o(),...n}){return wr({entity:"item",entityId:e,lockId:t,...n})}function Es({itemId:e=o(),...t}){const n=`/API/item/${e}/loudness`;return r({path:n,method:"GET",...t})}function As({itemId:e=o(),...t}){const n=`/API/item/${e}/waveform/values`;return r({path:n,method:"GET",...t})}function ys({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 bs({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 Ss({itemId:e=o(),analyzeJobDocument:t,...n}){const a=`/API/item/${e}/analyze`;return r({path:a,method:"POST",body:t,...n})}const vs={listItem:zr,getItem:qr,getItemUri:Br,removeItem:Nr,removeItemList:Jr,searchItem:Vr,updateItemMetadata:Kr,getItemMetadata:Hr,createThumbnail:Qr,createTranscode:_r,createExport:Wr,createExportImp:Xr,listItemRelation:Yr,createItemRelation:Zr,createItemRelationList:ts,removeItemRelation:es,removeAllItemRelation:ns,createRelation:os,getRelation:as,updateRelation:rs,removeRelation:ss,getItemSearchHistory:is,reindexItem:cs,createItemList:us,listItemCollection:hs,listItemLibrary:ps,createItemLock:ds,getItemLock:ms,removeItemLock:ls,updateItemLock:fs,listItemMetadataLock:Ps,createItemMetadataLock:Ts,getItemMetadataLock:$s,updateItemMetadataLock:gs,removeItemMetadataLock:Is,getItemLoudness:Es,getItemWaveformValue:As,getItemWaveformImage:ys,getItemWaveformImageUri:bs,createItemAnalyze:Ss};function Gs({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 ks={test:Gs};function l(e){return e==="file"?"storage/file":["metadata","access"].includes(e)?"item":e}function Us({entityType:e=o(),...t}={}){const a=`/API/${l(e)}/notification/`;return r({path:a,method:"GET",...t})}function Ls({entityType:e=o(),entityId:t=o(),...n}={}){const s=`/API/${l(e)}/${t}/notification/`;return r({path:s,method:"GET",...n})}function Cs({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"GET",...n})}function Ms({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 Ds({entityType:e=o(),notificationDocument:t,...n}={}){const s=`/API/${l(e)}/notification/`;return r({path:s,method:"POST",body:t,...n})}function xs({notificationId:e=o(),entityType:t=o(),...n}={}){const s=`/API/${l(t)}/notification/${e}`;return r({path:s,method:"DELETE",...n})}function Os({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 js({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 Fs({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 Rs({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:Us,listNotificationEntity:Ls,getNotification:Cs,updateNotification:Ms,createNotification:Ds,removeNotification:xs,getNotificationEntity:Os,updateNotificationEntity:js,createNotificationEntity:Fs,removeNotificationEntity:Rs},{listNotification:ws}=M;function zs({...e}={}){return r({path:"/API/job/",method:"GET",...e})}function qs({jobSearchDocument:e={},...t}={}){return r({path:"/API/job/search/",method:"PUT",body:e,...t})}function Bs({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"GET",...t})}function Ns({simpleMetadataDocument:e,...t}={}){return r({path:"/API/job",method:"POST",body:e,...t})}function Js({jobId:e=o(),...t}){const n=`/API/job/${e}/re-run`;return r({path:n,method:"POST",...t})}function Vs({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"PUT",...t})}function Ks({jobId:e=o(),...t}){const n=`/API/job/${e}`;return r({path:n,method:"DELETE",...t})}function Hs({...e}={}){return r({path:"/API/job/",method:"DELETE",...e})}function Qs({...e}={}){return ws({entityType:"job",...e})}const _s={listJob:zs,searchJob:qs,getJob:Bs,createJob:Ns,duplicateJob:Js,modifyJob:Vs,abortJob:Ks,deleteJob:Hs,listJobNotification:Qs};function Ws({...e}={}){return r({path:"/API/library/",method:"GET",...e})}function Xs({itemListDocument:e={},...t}){return r({path:"/API/library",method:"POST",body:e,...t})}function Ys({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"DELETE",...t})}function Zs({...e}={}){return r({path:"/API/library",method:"DELETE",...e})}function ti({libraryId:e=o(),...t}){const n=`/API/library/${e}`;return r({path:n,method:"GET",...t})}function ei({libraryId:e=o(),itemListDocument:t,...n}){const a=`/API/library/${e}`;return r({path:a,method:"PUT",body:t,...n})}function ni({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function oi({libraryId:e=o(),itemId:t=o(),...n}){const a=`/API/library/${e}/${t}`;return r({path:a,method:"PUT",...n})}function ai({libraryId:e=o(),metadataDocument:t,...n}){const a=`/API/library/${e}/item-metadata`;return r({path:a,method:"PUT",body:t,...n})}function ri({libraryId:e=o(),...t}){const n=`/API/library/${e}/settings`;return r({path:n,method:"GET",...t})}function si({libraryId:e=o(),librarySettingsDocument:t,...n}){const a=`/API/library/${e}/settings`;return r({path:a,method:"PUT",body:t,...n})}function ii({libraryId:e=o(),...t}){const n=`/API/library/${e}/list`;return r({path:n,method:"POST",...t})}function ci({libraryId:e=o(),queryParams:t=o(),...n}){const a=`/API/library/${e}/export`;return r({path:a,method:"POST",queryParams:t,...n})}const ui={listLibrary:Ws,createLibrary:Xs,removeLibrary:Ys,removeLibraryList:Zs,getLibrary:ti,updateLibrary:ei,addLibraryItem:ni,removeLibraryItem:oi,updateLibraryItemMetadata:ai,getLibrarySettings:ri,updateLibrarySettings:si,getLibraryBatch:ii,exportLibrary:ci};function hi({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 pi={createLicense:hi};function di({...e}={}){return r({path:"/API/metadata/dataset",method:"GET",...e})}function mi({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"GET",...t})}function li({datasetId:e=o(),body:t=o(),...n}){const a=`/API/metadata/dataset/${e}`;return r({path:a,method:"PUT",body:t,...n})}function fi({datasetId:e=o(),...t}){const n=`/API/metadata/dataset/${e}`;return r({path:n,method:"DELETE",...t})}const Pi={listMetadataDataset:di,getMetadataDataset:mi,updateMetadataDataset:li,removeMetadataDataset:fi},{getSimpleMetadata:Ti}=E;function $i({...e}={}){return r({path:"/API/metadata-field/",method:"GET",...e})}function gi({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/`;return r({path:n,method:"GET",...t})}function Ii({fieldName:e=o(),metadataFieldDocument:t,...n}){const a=`/API/metadata-field/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Ei({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}`;return r({path:n,method:"DELETE",...t})}function Ai({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/values/`;return r({path:n,method:"GET",...t})}function yi({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 bi({fieldName:e=o(),simpleMetadataDocument:t,...n}){const a=`/API/metadata-field/${e}/values`;return r({path:a,method:"PUT",body:t,...n})}function Si({fieldName:e=o(),...t}){return Ti({entityType:"metadata-field",entityId:e,...t})}function vi({fieldName:e=o(),...t}){const n=`/API/metadata-field/${e}/access`;return r({path:n,method:"GET",...t})}function Gi({fieldName:e=o(),metadataFieldAccessControlDocument:t=o(),...n}){const a=`/API/metadata-field/${e}/access`;return r({path:a,method:"POST",body:t,...n})}function ki({fieldName:e=o(),accessId:t=o(),...n}){const a=`/API/metadata-field/${e}/access/${t}`;return r({path:a,method:"DELETE",...n})}function Ui({...e}={}){return r({path:"/API/metadata-field/merged-access",method:"GET",...e})}function Li({fieldName:e=o(),...t}={}){const n=`/API/metadata-field/${e}/merged-access`;return r({path:n,method:"GET",...t})}const Ci={listMetadataField:$i,getMetadataField:gi,updateMetadataField:Ii,removeMetadataField:Ei,getMetadataFieldValues:Ai,getMetadataFieldAllowedValues:yi,updateMetadataFieldValues:bi,getSimpleMetadata:Si,listMetadataFieldAccess:vi,createMetadataFieldAccess:Gi,removeMetadataFieldAccess:ki,listMetadataFieldMergedAccess:Ui,getMetadataFieldMergedAccess:Li};function Mi({...e}={}){return r({path:"/API/metadata/migration",method:"GET",...e})}function Di({migrationId:e=o(),...t}){const n=`/API/metadata/migration/${e}`;return r({path:n,method:"GET",...t})}function xi({metadataSchemaMigrationDocument:e=o(),...t}){return r({path:"/API/metadata/migration",method:"POST",body:e,...t})}const Oi={listMetadataMigration:Mi,getMetadataMigration:Di,createMetadataMigration:xi};function ji({...e}={}){return r({path:"/API/metadata-schema",method:"GET",...e})}function Fi({metadataSchemaDocument:e=o(),...t}){return r({path:"/API/metadata-schema",method:"PUT",body:e,...t})}function Ri({...e}={}){return r({path:"/API/metadata-schema",method:"DELETE",...e})}function wi({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"GET",...t})}function zi({groupName:e=o(),metadataSchemaGroupDocument:t=o(),...n}={}){const a=`/API/metadata-schema${e}`;return r({path:a,method:"PUT",body:t,...n})}function qi({groupName:e=o(),...t}={}){const n=`/API/metadata-schema${e}`;return r({path:n,method:"DELETE",...t})}function Bi({...e}={}){return r({path:"/API/metadata-field/terse-schema",method:"GET",...e})}const Ni={getMetadataSchema:ji,updateMetadataSchema:Fi,removeMetadataSchema:Ri,getMetadataSchemaGroup:wi,updateMetadataSchemaGroup:zi,removeMetadataSchemaGroup:qi,getTerseMetadataSchema:Bi};function Ji({...e}={}){return r({path:"/APInoauth/is-online/",method:"GET",...e})}function Vi({...e}={}){return r({path:"/APInoauth/selftest/",method:"GET",...e})}function Ki({headers:e={},...t}={}){const n={accept:"text/plain",...e};return r({path:"/APIinit/",method:"POST",headers:n,...t})}function Hi({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 Qi={getSelfTest:Vi,createInit:Ki,getFileRaw:Hi,isOnline:Ji};function _i({projectDocument:e=o(),...t}){return r({path:"/API/collection/project/",method:"POST",body:e,...t})}function Wi({collectionId:e=o(),projectVersionDocument:t=o(),...n}){const a=`/API/collection/${e}/version`;return r({path:a,method:"POST",body:t,...n})}function Xi({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 Yi({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 Zi({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 tc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}`;return r({path:a,method:"DELETE",...n})}function ec({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"GET",...n})}function nc({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 oc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/asset`;return r({path:a,method:"DELETE",...n})}function ac({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 rc({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 sc({collectionId:e=o(),format:t=o(),...n}){const a=`/API/collection/${e}/definition/${t}/extradata`;return r({path:a,method:"DELETE",...n})}function ic({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/collection/project/inspect",method:"POST",body:t,queryParams:e,...n})}function cc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project",method:"POST",body:t,queryParams:e,...n})}function uc({queryParams:e=o(),essenceMappingsDocument:t,...n}){return r({path:"/API/import/project/sequence",method:"POST",body:t,queryParams:e,...n})}function hc({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 pc={createProject:_i,createProjectVersion:Wi,listProjectDefinition:Xi,updateProjectDefinition:Yi,getProjectDefinition:Zi,removeProjectDefinition:tc,getProjectDefinitionAsset:ec,updateProjectDefinitionAsset:nc,removeProjectDefinitionAsset:oc,getProjectDefinitionExtraData:ac,updateProjectDefinitionExtraData:rc,removeProjectDefinitionExtraData:sc,inspectProjectFile:ic,importProject:cc,importProjectSequence:uc,exportProjectVersionSequence:hc};function dc({...e}={}){return r({path:"/API/projection/",method:"GET",...e})}function mc({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 lc({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 fc({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 Pc({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 Tc({projectionId:e=o(),...t}){const n=`/API/projection/${e}`;return r({path:n,method:"DELETE",...t})}const $c={listProjection:dc,getProjectionOutgoing:mc,getProjectionIncoming:lc,updateProjectionOutgoing:fc,updateProjectionIncoming:Pc,removeProjection:Tc};function gc({...e}={}){return r({path:"/API/quota/",method:"GET",...e})}function Ic({quotaRuleDocument:e,...t}){return r({path:"/API/quota/",method:"POST",body:e,...t})}function Ec({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"GET",...t})}function Ac({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"PUT",...t})}function yc({ruleId:e=o(),...t}){const n=`/API/quota/${e}`;return r({path:n,method:"DELETE",...t})}const bc={listQuota:gc,createQuota:Ic,getQuota:Ec,evaluateQuota:Ac,removeQuota:yc};function Sc({indexName:e=o(),...t}){const n=`/API/reindex/${e}`;return r({path:n,method:"GET",...t})}function vc({indexName:e=o(),...t}){const n=`/API/reindex/${e}/`;return r({path:n,method:"PUT",...t})}const Gc={getReindex:Sc,updateReindex:vc};function kc({...e}={}){return r({path:"/API/resource/",method:"GET",...e})}function Uc({resourceType:e=o(),...t}){const n=`/API/resource/${e}`;return r({path:n,method:"GET",...t})}function Lc({resourceType:e=o(),resourceDocument:t,...n}){const a=`/API/resource/${e}`;return r({path:a,method:"POST",body:t,...n})}function Cc({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 Mc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"GET",...n})}function Dc({resourceType:e=o(),resourceId:t=o(),...n}){const a=`/API/resource/${e}/${t}`;return r({path:a,method:"DELETE",...n})}function xc({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 Oc={listResource:kc,listResourceType:Uc,createResource:Lc,modifyResource:Cc,getResource:Mc,removeResource:Dc,statusResource:xc};function jc({...e}){return r({path:"/API/scheduled-request/",method:"GET",...e})}function Fc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"GET",...t})}function Rc({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 wc({requestId:e=o(),...t}){const n=`/API/scheduled-request/${e}`;return r({path:n,method:"DELETE",...t})}function zc({...e}){return r({path:"/API/scheduled-request",method:"DELETE",...e})}const qc={listScheduledRequest:jc,getScheduledRequest:Fc,getScheduledRequestResponse:Rc,removeScheduledRequest:wc,removeAllScheduledRequest:zc};function Bc({...e}={}){return r({path:"/API/search/",method:"GET",...e})}function Nc({itemSearchDocument:e,...t}){return r({path:"/API/search/",method:"PUT",body:e,...t})}function Jc({shapeSearchDocument:e,...t}){return r({path:"/API/search/shape/",method:"PUT",body:e,...t})}function Vc({fileSearchDocument:e,...t}){return r({path:"/API/search/file/",method:"PUT",body:e,...t})}function Kc({autocompleteRequestDocument:e,...t}){return r({path:"/API/search/autocomplete/",method:"PUT",body:e,...t})}const Hc={listItemCollection:Bc,searchItemCollection:Nc,searchShape:Jc,searchFile:Vc,searchAutoComplete:Kc};function Qc({noAuth:e=!1,...t}={}){return r({path:e?"/APInoauth/selftest/":"/API/selftest/",method:"GET",...t})}function _c({testName:e=o(),...t}={}){const n=`/API/selftest/${e}`;return r({path:n,method:"GET",...t})}const Wc={listSelfTest:Qc,getSelfTest:_c};function Xc({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 Yc({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence`;return r({path:n,method:"GET",...t})}function Zc({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 tu({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/conform-metadata`;return r({path:n,method:"POST",...t})}function eu({itemId:e=o(),...t}){const n=`/API/item/${e}/sequence/render`;return r({path:n,method:"POST",...t})}function nu({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/sequence/${t}`;return r({path:a,method:"DELETE",...n})}function ou({sequenceRenderRequestDocument:e=o(),...t}){return r({path:"/API/sequence/render",method:"POST",body:e,...t})}function au({queryParams:e=o(),exportRequestDocument:t,...n}){return r({path:"/API/sequence/export",method:"POST",body:t,queryParams:e,...n})}function ru({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 su={updateItemSequence:Xc,listItemSequence:Yc,getItemSequence:Zc,conformItemSequence:tu,renderItemSequence:eu,removeItemSequence:nu,renderSequence:ou,exportSequence:au,exportItemSequence:ru};function iu({...e}={}){return r({path:"/API/vidispine-service",method:"GET",...e})}function cu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}`;return r({path:n,method:"GET",...t})}function uu({serviceName:e=o(),...t}){const n=`/API/vidispine-service/service/${e}/enable`;return r({path:n,method:"PUT",...t})}function hu({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 du={getServiceList:iu,getService:cu,enableService:uu,disableService:hu,getStackTrace:pu};function mu({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 lu({itemId:e=o(),shapeDocument:t={},...n}){const a=`/API/item/${e}/shape/create`;return r({path:a,method:"POST",body:t,...n})}function fu({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 Pu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"POST",...t})}function Tu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/imp`;return r({path:n,method:"POST",...t})}function $u({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 gu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"GET",...t})}function Iu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/`;return r({path:a,method:"GET",...n})}function Eu({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 Au({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 yu({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 bu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function Su({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version`;return r({path:n,method:"GET",...t})}function vu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"GET",...n})}function Gu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"DELETE",...n})}function ku({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/version/`;return r({path:n,method:"POST",...t})}function Uu({itemId:e=o(),versionId:t=o(),...n}){const a=`/API/item/${e}/shape/version/${t}`;return r({path:a,method:"POST",...n})}function Lu({itemId:e=o(),...t}){const n=`/API/item/${e}/shape/essence`;return r({path:n,method:"POST",...t})}function Cu({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 Mu({itemId:e=o(),shapeId:t=o(),...n}={}){const a=`/API/item/${e}/shape/${t}`;return r({path:a,method:"DELETE",...n})}function Du({itemId:e=o(),...t}={}){const n=`/API/item/${e}/shape/`;return r({path:n,method:"DELETE",...t})}function xu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/transcode`;return r({path:a,method:"POST",...n})}function Ou({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/thumbnail`;return r({path:a,method:"POST",...n})}function ju({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/update`;return r({path:a,method:"POST",...n})}function Fu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}file`;return r({path:a,method:"GET",...n})}function Ru({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/tag`;return r({path:a,method:"GET",...n})}function wu({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 zu({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 qu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/mime`;return r({path:a,method:"GET",...n})}function Bu({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 Nu({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 Ju({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/filename`;return r({path:a,method:"GET",...n})}function Vu({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 Ku({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 Hu({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 Qu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-render`;return r({path:a,method:"POST",...n})}function _u({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/smartcrop-edl`;return r({path:a,method:"GET",...n})}function Wu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlight-render`;return r({path:a,method:"POST",...n})}function Xu({itemId:e=o(),shapeId:t=o(),...n}){const a=`/API/item/${e}/shape/${t}/highlighter-edl`;return r({path:a,method:"GET",...n})}const Yu={createShapePlaceholder:mu,createShape:lu,updateShapePlaceholder:fu,createShapeImport:Pu,createShapeImportImp:Tu,createShapeImportRaw:$u,listShape:gu,getShape:Iu,getShapeGraph:Eu,getShapeGraphDot:Au,getShapeCpl:yu,createShapeTranscode:bu,listShapeEssence:Su,getShapeEssence:vu,removeShapeEssence:Gu,copyShapeEssence:ku,copyShapeEssenceSpecific:Uu,createShapeEssenceImport:Lu,createShapeEssenceImportRaw:Cu,removeShape:Mu,removeShapeAll:Du,createTranscode:xu,createThumbnail:Ou,createDeduction:ju,listShapeFile:Fu,getShapeTag:Ru,updateShapeTag:wu,removeShapeTag:zu,getShapeMime:qu,updateShapeMime:Bu,removeShapeMime:Nu,getShapeFileNameRule:Ju,createShapeFileNameRule:Vu,removeShapeFileNameRule:Ku,createShapeAnalyze:Hu,createSmartcrop:Qu,getSmartcrop:_u,createHighlight:Wu,getHighlight:Xu};function Zu({...e}={}){return r({path:"/API/shape-tag/",method:"GET",...e})}function th({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"GET",...t})}function eh({tagName:e=o(),transcodePresetDocument:t,...n}){const a=`/API/shape-tag/${e}`;return r({path:a,method:"PUT",body:t,...n})}function nh({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}`;return r({path:n,method:"DELETE",...t})}function oh({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 ah({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 rh({tagName:e=o(),...t}){const n=`/API/shape-tag/${e}/script`;return r({path:n,method:"DELETE",...t})}function sh({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 ih({...e}={}){return r({path:"/APIinit/preset-templates",method:"PUT",...e})}const ch={listShapeTag:Zu,getShapeTag:th,updateShapeTag:eh,removeShapeTag:nh,getShapeTagScript:oh,updateShapeTagScript:ah,removeShapeTagScript:rh,testShapeTagScript:sh,createShapeTagPreset:ih};function uh({headers:e={},...t}={}){const n={accept:"image/png",...e};return r({path:"/APInoauth/stitch",method:"GET",headers:n,...t})}const hh={getStitch:uh};function ph({...e}={}){return r({path:"/API/storage/",method:"GET",...e})}function dh({storageDocument:e,...t}){return r({path:"/API/storage/",method:"POST",body:e,...t})}function mh({storageId:e=o(),...t}){const n=`/API/storage/${e}/`;return r({path:n,method:"GET",...t})}function lh({storageId:e=o(),storageDocument:t,...n}){const a=`/API/storage/${e}/`;return r({path:a,method:"PUT",body:t,...n})}function fh({storageId:e=o(),metadataDocument:t,...n}){const a=`/API/storage/${e}/metadata`;return r({path:a,method:"PUT",body:t,...n})}function Ph({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 Th({storageId:e=o(),key:t=o(),...n}){const a=`/API/storage/${e}/metadata/${t}`;return r({path:a,method:"DELETE",...n})}function $h({storageId:e=o(),...t}){const n=`/API/storage/${e}/rescan`;return r({path:n,method:"POST",...t})}function gh({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 Ih({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 Eh({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 Ah({storageId:e=o(),storageMethodId:t=o(),...n}){const a=`/API/storage/${e}/method/${t}`;return r({path:a,method:"GET",...n})}function yh({storageId:e=o(),...t}){const n=`/API/storage/${e}/method/`;return r({path:n,method:"GET",...t})}function bh({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 Sh({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"PUT",...t})}function vh({storageId:e=o(),...t}){const n=`/API/storage/${e}/evacuate`;return r({path:n,method:"DELETE",...t})}function Gh({storageId:e=o(),storageType:t=o(),...n}){const a=`/API/storage/${e}/type/${t}`;return r({path:a,method:"PUT",...n})}const kh={listStorage:ph,createStorage:dh,getStorage:mh,modifyStorage:lh,modifyStorageMetadata:fh,modifyStorageMetadataKey:Ph,removeStorageMetadata:Th,rescanStorage:$h,createStorageMethod:gh,modifyStorageMethod:Ih,removeStorageMethod:Eh,getStorageMethod:Ah,listStorageMethod:yh,removeStorage:bh,startEvacuateStorage:Sh,cancelEvacuateStorage:vh,updateStorageType:Gh};function Uh({...e}={}){return r({path:"/API/storage/storage-group/",method:"GET",...e})}function Lh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"PUT",...t})}function Ch({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"GET",...t})}function Mh({groupName:e=o(),...t}){const n=`/API/storage/storage-group/${e}`;return r({path:n,method:"DELETE",...t})}function Dh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"PUT",...n})}function xh({groupName:e=o(),storageId:t=o(),...n}){const a=`/API/storage/storage-group/${e}/${t}`;return r({path:a,method:"DELETE",...n})}const Oh={listStorageGroup:Uh,createStorageGroup:Lh,getStorageGroup:Ch,removeStorageGroup:Mh,addStorageGroupStorage:Dh,removeStorageGroupStorage:xh};function jh({...e}={}){return r({path:"/API/storage-rule/",method:"GET",...e})}function Fh({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"GET",...n})}function Rh({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 wh({entityType:e=o(),entityId:t=o(),...n}){const a=`/API/${e}/${t}/storage-rule`;return r({path:a,method:"DELETE",...n})}function zh({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 qh({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 Bh({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 Nh({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"GET",...t})}function Jh({tagName:e=o(),storageRuleDocument:t,...n}){const a=`/API/shape-tag/storage-rule/${e}`;return r({path:a,method:"PUT",body:t,...n})}function Vh({tagName:e=o(),...t}){const n=`/API/shape-tag/storage-rule/${e}`;return r({path:n,method:"DELETE",...t})}const Kh={listStorageRule:jh,getEntityStorageRule:Fh,updateEntityStorageRule:Rh,removeEntityStorageRule:wh,getEntityStorageRuleTag:zh,updateEntityStorageRuleTag:qh,removeEntityStorageRuleTag:Bh,getStorageRuleShapeTag:Nh,updateStorageRuleShapeTag:Jh,removeStorageRuleShapeTag:Vh};function Hh({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 Qh({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 _h={getSubtitleSCC:Hh,getSubtitleTTML:Qh};function Wh({...e}={}){return r({path:"/API/jobtype",method:"GET",...e})}function Xh({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"POST",...t})}function Yh({jobType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"DELETE",...t})}function Zh({...e}={}){return r({path:"/API/task-definition",method:"GET",...e})}function tp({taskDefinitionType:e=o(),...t}){const n=`/API/task-definition/jobtype/${e}/`;return r({path:n,method:"GET",...t})}function ep({taskDefinitionListDocument:e,...t}){return r({path:"/API/task-definition",method:"POST",body:e,...t})}function np({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"GET",...t})}function op({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"GET",...n})}function ap({taskDefinitionId:e=o(),...t}){const n=`/API/task-definition/${e}`;return r({path:n,method:"DELETE",...t})}function rp({taskDefinitionType:e=o(),taskDefinitionStep:t=o(),...n}){const a=`/API/task-definition/jobtype/${e}/step/${t}`;return r({path:a,method:"DELETE",...n})}function sp({taskDefinitionId:e=o(),taskDefinitionDocument:t=o(),...n}){const a=`/API/task-definition/${e}`;return r({path:a,method:"PUT",body:t,...n})}function ip({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 cp({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 up({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 hp({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},h=`/API/task-definition/jobtype/${e}/step/${t}/script`;return r({path:h,method:"PUT",body:n,headers:i,...s})}const dp={listJobType:Wh,createJobType:Xh,removeJobType:Yh,listTaskDefinition:Zh,getTaskDefinitionType:tp,createTaskDefinition:ep,getTaskDefinition:np,getTaskDefinitionStep:op,removeTaskDefinition:ap,removeTaskDefinitionStep:rp,modifyTaskDefinition:sp,modifyTaskDefinitionStep:ip,getTaskDefinitionScript:cp,getTaskDefinitionStepScript:up,updateTaskDefinitionScript:hp,updateTaskDefinitionStepScript:pp};function mp({...e}={}){return r({path:"/API/task-group",method:"GET",...e})}function lp({groupName:e=o(),taskGroupDocument:t,...n}){const a=`/API/task-group/${e}`;return r({path:a,method:"PUT",body:t,...n})}function fp({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"GET",...t})}function Pp({groupName:e=o(),...t}){const n=`/API/task-group/${e}`;return r({path:n,method:"DELETE",...t})}function Tp({...e}={}){return r({path:"/API/task-group",method:"DELETE",...e})}function $p({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 gp({groupName:e=o(),transcoderId:t=o(),...n}){const a=`/API/task-group/${e}/transcoder/${t}`;return r({path:a,method:"DELETE",...n})}const Ip={listTaskGroup:mp,updateTaskGroup:lp,getTaskGroup:fp,removeTaskGroup:Pp,removeAllTaskGroup:Tp,updateTaskGroupTranscoder:$p,removeTaskGroupTranscoder:gp};function Ep({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnail`;return r({path:n,method:"POST",...t})}function Ap({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"GET",...t})}function yp({itemId:e=o(),...t}){const n=`/API/item/${e}/thumbnailresource`;return r({path:n,method:"PUT",...t})}function bp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"GET",...n})}function Sp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/thumbnail/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function vp({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 Gp({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 kp({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 Up({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 Lp({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"GET",...t})}function Cp({itemId:e=o(),...t}){const n=`/API/item/${e}/posterresource`;return r({path:n,method:"PUT",...t})}function Mp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"GET",...n})}function Dp({itemId:e=o(),resourceId:t=o(),...n}){const a=`/API/poster/${t}/${e}`;return r({path:a,method:"DELETE",...n})}function xp({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 Op({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 jp({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 Fp({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 Rp={createThumbnail:Ep,listThumbnailResource:Ap,createThumbnailResource:yp,listThumbnail:bp,removeAllThumbnail:Sp,updateThumbnail:vp,getThumbnail:Gp,exportThumbnail:kp,removeThumbnail:Up,listPosterResource:Lp,createPosterResource:Cp,listPoster:Mp,removeAllPoster:Dp,updatePoster:xp,getPoster:Op,exportPoster:jp,removePoster:Fp};function wp({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 zp({itemId:e=o(),...t}){const n=`/API/item/${e}/timeline`;return r({path:n,method:"DELETE",...t})}function qp({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"GET",...n})}function Bp({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 Np({itemId:e=o(),format:t=o(),...n}){const a=`/API/item/${e}/timeline/${t}`;return r({path:a,method:"DELETE",...n})}const Jp={getTimeline:wp,removeTimeline:zp,getTimelineFormat:qp,updateTimelineFormat:Bp,removeTimelineFormat:Np};function Vp({...e}={}){return r({path:"/API/transfer/",method:"GET",...e})}function Kp({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"GET",...t})}function Hp({transferId:e=o(),...t}){const n=`/API/transfer/${e}`;return r({path:n,method:"PUT",...t})}function Qp({...e}={}){return r({path:"/API/log/transfer-log/",method:"GET",...e})}const _p={listTransfer:Vp,getTransfer:Kp,updateTransferPriority:Hp,listTransferLog:Qp};function Wp({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 Xp={createLicense:Wp};function Yp({headers:e={},...t}={}){const n="/API/whoami",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function Zp({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 td({...e}={}){return r({path:"/API/user/",method:"GET",...e})}function ed({userDocument:e,...t}){return r({path:"/API/user/",method:"POST",body:e,...t})}function nd({userName:e=o(),...t}){const n=`/API/user/${e}`;return r({path:n,method:"GET",...t})}function od({userName:e=o(),...t}){const n=`/API/user/${e}/graph`;return r({path:n,method:"GET",...t})}function ad({userName:e=o(),userDocument:t=o(),...n}){const a=`/API/user/${e}`;return r({path:a,method:"PUT",body:t,...n})}function rd({userName:e=o(),...t}){const n=`/API/user/${e}/`;return r({path:n,method:"DELETE",...t})}function sd({userName:e=o(),...t}){const n=`/API/user/${e}/enable`;return r({path:n,method:"PUT",...t})}function id({userSearchDocument:e,...t}){return r({path:"/API/user/",method:"PUT",body:e,...t})}function cd({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"PUT",...n})}function ud({userName:e=o(),alias:t=o(),...n}){const a=`/API/user/${e}/alias/${t}`;return r({path:a,method:"DELETE",...n})}function hd({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 dd({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 md({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 ld({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 fd({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 Pd({userName:e=o(),...t}){const n=`/API/user/${e}/groups/`;return r({path:n,method:"GET",...t})}function Td({userName:e=o(),...t}){const n=`/API/user/${e}/roles`;return r({path:n,method:"GET",...t})}function $d({userName:e=o(),...t}){const n=`/API/user/${e}/allgroups`;return r({path:n,method:"GET",...t})}function gd({userName:e=o(),groupListDocument:t,...n}){const a=`/API/user/${e}/groups/`;return r({path:a,method:"PUT",body:t,...n})}function Id({headers:e={},...t}={}){const n="/API/token",a={accept:"text/plain",...e};return r({path:n,method:"GET",headers:a,...t})}function Ed({userName:e=o(),...t}){const n=`/API/user/${e}/key`;return r({path:n,method:"GET",...t})}function Ad({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"GET",...n})}function yd({userName:e=o(),...t}){const n=`/API/user/${e}/key/`;return r({path:n,method:"POST",...t})}function bd({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 Sd({userName:e=o(),keyId:t=o(),...n}){const a=`/API/user/${e}/key/${t}`;return r({path:a,method:"DELETE",...n})}function vd({userName:e=o(),...t}){const n=`/API/user/${e}/access`;return r({path:n,method:"GET",...t})}const Gd={whoAmI:Yp,getUserToken:Zp,listUser:td,createUser:ed,getUser:nd,getUserGraph:od,updateUser:ad,disableUser:rd,enableUser:sd,searchUser:id,createAlias:cd,removeAlias:ud,getUserRealName:hd,updateUserRealName:pd,updateUserPassword:dd,validateUserPassword:md,getUserSalt:ld,createUserSalt:fd,getUserGroup:Pd,getUserRole:Td,getUserGroupRole:$d,updateUserGroup:gd,getToken:Id,listKey:Ed,getKey:Ad,createKey:yd,updateKey:bd,removeKey:Sd,getAccess:vd};function kd({...e}={}){return r({path:"/API/version",method:"GET",...e})}const Ud={getVersion:kd};function Ld({path:e=o(),...t}){const n=`/API/cost/${e}`;return r({path:n,method:"GET",...t})}function Cd({costEstimateId:e=o(),...t}){const n=`/API/cost/estimate/${e}`;return r({path:n,method:"GET",...t})}const Md={createCostEstimate:Ld,getCostEstimate:Cd};function Dd({...e}={}){return r({path:"/API/vxa/",method:"GET",...e})}function xd({headers:e={},...t}={}){const n="/API/vxa/enable-ssh/",a={accept:"text/plain",...e};return r({path:n,method:"PUT",headers:a,...t})}function Od({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"GET",...t})}function jd({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}/configuration`;return r({path:n,method:"GET",...t})}function Fd({vxaUuid:e=o(),...t}){const n=`/API/vxa/${e}`;return r({path:n,method:"DELETE",...t})}const Rd={listVxa:Dd,createVxa:xd,getVxa:Od,getVxaConfiguration:jd,removeVxa:Fd};u.ChunkedTransferManager=L,u.ChunkedUpload=A,u.access=at,u.analyzepreset=it,u.auditlog=ht,u.autoimport=Tt,u.autoprojection=vt,u.bulkymetadata=Vt,u.collection=an,u.component=$n,u.configuration=Yn,u.conform=eo,u.debug=oo,u.deletionlock=lo,u.documentmetadata=Eo,u.errorlog=yo,u.exportlocation=Lo,u.exporttemplate=zo,u.externalid=_o,u.fieldgroup=da,u.file=C,u.globalmetadata=Ba,u.group=rr,u.importsettings=Mr,u.item=vs,u.javascript=ks,u.job=_s,u.library=ui,u.license=pi,u.metadata=E,u.metadatadataset=Pi,u.metadatafield=Ci,u.metadatalock=S,u.metadatamigration=Oi,u.metadataschema=Ni,u.noauth=Qi,u.notification=M,u.project=pc,u.projection=$c,u.quota=bc,u.reindex=Gc,u.resource=Oc,u.scheduledrequest=qc,u.search=Hc,u.selftest=Wc,u.sequence=su,u.service=du,u.shape=Yu,u.shapetag=ch,u.stitch=hh,u.storage=kh,u.storagegroup=Oh,u.storagerule=Kh,u.subtitle=_h,u.taskdefinition=dp,u.taskgroup=Ip,u.thumbnail=Rp,u.timeline=Jp,u.transfer=_p,u.uploadlicense=Xp,u.user=Gd,u.utils=q,u.version=Ud,u.vidinet=Md,u.vsimport=vr,u.vxa=Rd,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidispine/vdt-api",
3
- "version": "23.3.0-pre.1",
3
+ "version": "23.3.0-pre.3",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,15 +37,15 @@
37
37
  "buffer": "^6.0.3"
38
38
  },
39
39
  "devDependencies": {
40
- "@vidispine/eslint-config-base": "23.3.0-pre.1",
41
- "@vidispine/eslint-config-mdx": "23.3.0-pre.1",
42
- "@vidispine/eslint-config-storybook": "23.3.0-pre.1",
43
- "@vidispine/prettier-config": "23.3.0-pre.1",
40
+ "@vidispine/eslint-config-base": "23.3.0-pre.3",
41
+ "@vidispine/eslint-config-mdx": "23.3.0-pre.3",
42
+ "@vidispine/eslint-config-storybook": "23.3.0-pre.3",
43
+ "@vidispine/prettier-config": "23.3.0-pre.3",
44
44
  "documentation": "13.2.5",
45
45
  "eslint": "8.34.0",
46
46
  "prettier": "2.8.4",
47
47
  "rimraf": "3.0.2",
48
- "vite": "4.3.1"
48
+ "vite": "4.3.9"
49
49
  },
50
50
  "eslintConfig": {
51
51
  "extends": [