tsarr 2.3.2 → 2.4.0

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,37 +1,37 @@
1
- var jS=Object.defineProperty;var JS=(e)=>e;function XS(e,A){this[e]=JS.bind(null,A)}var c=(e,A)=>{for(var a in A)jS(e,a,{get:A[a],enumerable:!0,configurable:!0,set:XS.bind(A,a)})};class J extends Error{code;statusCode;details;constructor(e,A,a,V){super(e);this.code=A;this.statusCode=a;this.details=V;this.name="TsarrError"}}class ye extends J{constructor(e="Invalid or missing API key"){super(e,"API_KEY_ERROR",401);this.name="ApiKeyError"}}class o extends J{constructor(e,A){super(e,"CONNECTION_ERROR",void 0,A);this.name="ConnectionError"}}class ee extends J{constructor(e,A){super(e,"VALIDATION_ERROR",void 0,A);this.name="ValidationError"}}class ZS extends J{constructor(e){super(`Resource not found: ${e}`,"NOT_FOUND",404);this.name="NotFoundError"}}function E(e){if(!e.apiKey)throw new ye;if(!e.baseUrl)throw new o("No base URL provided");let A={...e,baseUrl:e.baseUrl.replace(/\/$/,"")};return{config:A,getHeaders:()=>({"X-Api-Key":A.apiKey,"Content-Type":"application/json",...A.headers}),getBaseUrl:()=>A.baseUrl}}function ir(e){if(!e||e.trim()==="")throw new ye;return e.trim()}function Kr(e){if(!e||e.trim()==="")throw new o("No base URL provided");try{new URL(e)}catch{throw new o(`Failed to connect: Invalid URL: ${e}`)}return e.trim().replace(/\/$/,"")}var V3=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var Ge={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>V3(A,a,R));else V3(A,a,V)}),A}},lG={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var R3=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:d,sseMaxRetryAttempts:I,sseMaxRetryDelay:D,sseSleepFn:u,url:S,...m})=>{let B,x=u??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=d??3000,P=0,r=m.signal??new AbortController().signal;while(!0){if(r.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(B!==void 0)W.set("Last-Event-ID",B);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:r},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let s=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{s.cancel()}catch{}};r.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await s.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
1
+ var jS=Object.defineProperty;var JS=(e)=>e;function XS(e,A){this[e]=JS.bind(null,A)}var c=(e,A)=>{for(var a in A)jS(e,a,{get:A[a],enumerable:!0,configurable:!0,set:XS.bind(A,a)})};class J extends Error{code;statusCode;details;constructor(e,A,a,V){super(e);this.code=A;this.statusCode=a;this.details=V;this.name="TsarrError"}}class ye extends J{constructor(e="Invalid or missing API key"){super(e,"API_KEY_ERROR",401);this.name="ApiKeyError"}}class o extends J{constructor(e,A){super(e,"CONNECTION_ERROR",void 0,A);this.name="ConnectionError"}}class ee extends J{constructor(e,A){super(e,"VALIDATION_ERROR",void 0,A);this.name="ValidationError"}}class ZS extends J{constructor(e){super(`Resource not found: ${e}`,"NOT_FOUND",404);this.name="NotFoundError"}}function E(e){if(!e.apiKey)throw new ye;if(!e.baseUrl)throw new o("No base URL provided");let A={...e,baseUrl:e.baseUrl.replace(/\/$/,"")};return{config:A,getHeaders:()=>({"X-Api-Key":A.apiKey,"Content-Type":"application/json",...A.headers}),getBaseUrl:()=>A.baseUrl}}function Kx(e){if(!e||e.trim()==="")throw new ye;return e.trim()}function ix(e){if(!e||e.trim()==="")throw new o("No base URL provided");try{new URL(e)}catch{throw new o(`Failed to connect: Invalid URL: ${e}`)}return e.trim().replace(/\/$/,"")}var d3=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var Ge={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>d3(A,a,R));else d3(A,a,V)}),A}},SG={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var y3=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:t,sseMaxRetryAttempts:B,sseMaxRetryDelay:D,sseSleepFn:g,url:S,...m})=>{let I,r=g??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=t??3000,P=0,x=m.signal??new AbortController().signal;while(!0){if(x.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let C=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{C.cancel()}catch{}};x.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await C.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
3
  `);let F=f.split(`
4
4
 
5
5
  `);f=F.pop()??"";for(let Y of F){let h=Y.split(`
6
- `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))B=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
7
- `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:B,retry:L}),O.length)yield k}}}finally{r.removeEventListener("abort",U),s.releaseLock()}break}catch(Q){if(A?.(Q),I!==void 0&&P>=I)break;let N=Math.min(L*2**(P-1),D??30000);await x(N)}}}()}};var YS=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},hS=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},cS=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ge=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((u)=>encodeURIComponent(u))).join(hS(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let d=YS(V),I=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return i({allowReserved:e,name:a,value:D})}).join(d);return V==="label"||V==="matrix"?d+I:I},i=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},ue=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:d})=>{if(R instanceof Date)return d?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let u=[];Object.entries(R).forEach(([m,B])=>{u=[...u,m,e?B:encodeURIComponent(B)]});let S=u.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let I=cS(V),D=Object.entries(R).map(([u,S])=>i({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(I);return V==="label"||V==="matrix"?I+D:D};var iS=/\{[^{}]+\}/g,KS=({path:e,url:A})=>{let a=A,V=A.match(iS);if(V)for(let R of V){let d=!1,I=R.substring(1,R.length-1),D="simple";if(I.endsWith("*"))d=!0,I=I.substring(0,I.length-1);if(I.startsWith("."))I=I.substring(1),D="label";else if(I.startsWith(";"))I=I.substring(1),D="matrix";let u=e[I];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,ge({explode:d,name:I,style:D,value:u}));continue}if(typeof u==="object"){a=a.replace(R,ue({explode:d,name:I,style:D,value:u,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${i({name:I,value:u})}`);continue}let S=encodeURIComponent(D==="label"?`.${u}`:u);a=a.replace(R,S)}return a},B3=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let d=R.startsWith("/")?R:`/${R}`,I=(e??"")+d;if(A)I=KS({path:A,url:I});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)I+=`?${D}`;return I};function pG(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var I3=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var D3=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let d in V){let I=V[d];if(I===void 0||I===null)continue;let D=e[d]||A;if(Array.isArray(I)){let u=ge({allowReserved:D.allowReserved,explode:!0,name:d,style:"form",value:I,...D.array});if(u)R.push(u)}else if(typeof I==="object"){let u=ue({allowReserved:D.allowReserved,explode:!0,name:d,style:"deepObject",value:I,...D.object});if(u)R.push(u)}else{let u=i({allowReserved:D.allowReserved,name:d,value:I});if(u)R.push(u)}}return R.join("&")}},d3=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},zS=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},y3=async({security:e,...A})=>{for(let a of e){if(zS(A,a.name))continue;let V=await I3(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},fG=(e)=>B3({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:D3(e.querySerializer),url:e.url}),sG=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=Pe(e.headers,A.headers),a},_S=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},Pe=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?_S(a):Object.entries(a);for(let[R,d]of V)if(d===null)A.delete(R);else if(Array.isArray(d))for(let I of d)A.append(R,I);else if(d!==void 0)A.set(R,typeof d==="object"?JSON.stringify(d):d)}return A};class te{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var G3=()=>({error:new te,request:new te,response:new te}),vS=D3({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),qS={"Content-Type":"application/json"},Ae=(e={})=>({...lG,headers:qS,parseAs:"auto",querySerializer:vS,...e});var CG=(e={})=>{let A=sG(Ae(),e),a=()=>({...A}),V=(m)=>{return A=sG(A,m),a()},R=G3(),d=async(m)=>{let B={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:Pe(A.headers,m.headers),serializedBody:void 0};if(B.security)await y3({...B,security:B.security});if(B.requestValidator)await B.requestValidator(B);if(B.body!==void 0&&B.bodySerializer)B.serializedBody=B.bodySerializer(B.body);if(B.body===void 0||B.serializedBody==="")B.headers.delete("Content-Type");let x=fG(B);return{opts:B,url:x}},I=async(m)=>{let{opts:B,url:x}=await d(m),H={redirect:"follow",...B,body:pG(B)},M=new Request(x,H);for(let l of R.request.fns)if(l)M=await l(M,B);let L=B.fetch,P;try{P=await L(M)}catch(l){let s=l;for(let f of R.error.fns)if(f)s=await f(l,void 0,M,B);if(s=s||{},B.throwOnError)throw s;return B.responseStyle==="data"?void 0:{error:s,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,B);let r={request:M,response:P};if(P.ok){let l=(B.parseAs==="auto"?d3(P.headers.get("Content-Type")):B.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return B.responseStyle==="data"?f:{data:f,...r}}let s;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":s=await P[l]();break;case"json":{let f=await P.text();s=f?JSON.parse(f):{};break}case"stream":return B.responseStyle==="data"?P.body:{data:P.body,...r}}if(l==="json"){if(B.responseValidator)await B.responseValidator(s);if(B.responseTransformer)s=await B.responseTransformer(s)}return B.responseStyle==="data"?s:{data:s,...r}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,B);if(w=w||{},B.throwOnError)throw w;return B.responseStyle==="data"?void 0:{error:w,...r}},D=(m)=>(B)=>I({...B,method:m}),u=(m)=>async(B)=>{let{opts:x,url:H}=await d(B);return R3({...x,body:x.body,headers:x.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let r of R.request.fns)if(r)P=await r(P,x);return P},serializedBody:pG(x),url:H})};return{buildUrl:(m)=>fG({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:I,setConfig:V,sse:{connect:u("CONNECT"),delete:u("DELETE"),get:u("GET"),head:u("HEAD"),options:u("OPTIONS"),patch:u("PATCH"),post:u("POST"),put:u("PUT"),trace:u("TRACE")},trace:D("TRACE")}};var C=CG(Ae());var SG={};c(SG,{postWebHooksSonarr:()=>rA,postWebHooksRadarr:()=>SA,postWebHooksPlex:()=>CA,postSystemWebhookTest:()=>sA,postSystemTasks:()=>fA,postSystemJobs:()=>dA,postSystemBackups:()=>VA,postSystemAnnouncements:()=>oe,postSeries:()=>ze,postProviders:()=>Xe,postProviderMovies:()=>ce,postProviderEpisodes:()=>Ye,postPlexWebhookDelete:()=>L3,postPlexWebhookCreate:()=>T3,postPlexTestConnection:()=>M3,postPlexSelectServer:()=>r3,postPlexPin:()=>p3,postPlexLogout:()=>m3,postPlexEncryptApiKey:()=>t3,postPlexApiKey:()=>g3,postMoviesSubtitles:()=>be,postMoviesBlacklist:()=>Ee,postMovies:()=>We,postEpisodesSubtitles:()=>xe,postEpisodesBlacklist:()=>se,patchSystemJobs:()=>DA,patchSystemBackups:()=>aA,patchSubtitles:()=>ve,patchSeries:()=>Ke,patchMoviesSubtitles:()=>$e,patchMovies:()=>we,patchEpisodesSubtitles:()=>re,getSystemTasks:()=>pA,getSystemStatus:()=>lA,getSystemReleases:()=>PA,getSystemPing:()=>tA,getSystemLogs:()=>uA,getSystemJobs:()=>IA,getSystemHealth:()=>RA,getSystemBackups:()=>AA,getSystemAnnouncements:()=>ne,getSubtitles:()=>_e,getSubtitleNameInfo:()=>qe,getSeries:()=>ie,getSearches:()=>mA,getProviders:()=>Je,getProviderMovies:()=>he,getProviderEpisodes:()=>Ze,getPlexWebhookList:()=>Q3,getPlexValidate:()=>C3,getPlexTestConnection:()=>x3,getPlexServers:()=>s3,getPlexSelectServer:()=>S3,getPlexPinCheck:()=>f3,getPlexPin:()=>l3,getPlexLibraries:()=>P3,getPlexAutopulseConfig:()=>u3,getMoviesWanted:()=>je,getMoviesHistory:()=>Ue,getMoviesBlacklist:()=>Oe,getMovies:()=>ke,getLanguagesProfiles:()=>GA,getLanguages:()=>yA,getHistoryStats:()=>Ne,getEpisodesWanted:()=>Me,getEpisodesHistory:()=>Ce,getEpisodesBlacklist:()=>fe,getEpisodes:()=>le,getBrowseSonarrFs:()=>Qe,getBrowseRadarrFs:()=>Le,getBrowseBazarrFs:()=>Te,getBadges:()=>me,deleteSystemLogs:()=>gA,deleteSystemJobs:()=>BA,deleteSystemBackups:()=>eA,deleteMoviesSubtitles:()=>Fe,deleteMoviesBlacklist:()=>He,deleteEpisodesSubtitles:()=>Se,deleteEpisodesBlacklist:()=>pe});var me=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/badges",...e}),le=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes",...e}),pe=(e)=>(e?.client??C).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/blacklist",...e}),fe=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/blacklist",...e}),se=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/blacklist",...e}),Ce=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/history",...e}),Se=(e)=>(e.client??C).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/subtitles",...e}),re=(e)=>(e.client??C).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/subtitles",...e}),xe=(e)=>(e.client??C).post({...Ge,security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/subtitles",...e,headers:{"Content-Type":null,...e.headers}}),Me=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/wanted",...e}),Te=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/files",...e}),Le=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/files/radarr",...e}),Qe=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/files/sonarr",...e}),Ne=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/history/stats",...e}),ke=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies",...e}),we=(e)=>(e?.client??C).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies",...e}),We=(e)=>(e?.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies",...e}),He=(e)=>(e?.client??C).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/blacklist",...e}),Oe=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/blacklist",...e}),Ee=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/blacklist",...e}),Ue=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/history",...e}),Fe=(e)=>(e.client??C).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/subtitles",...e}),$e=(e)=>(e.client??C).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/subtitles",...e}),be=(e)=>(e.client??C).post({...Ge,security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/subtitles",...e,headers:{"Content-Type":null,...e.headers}}),je=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/wanted",...e}),g3=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/apikey",...e}),u3=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/autopulse/config",...e}),t3=(e)=>(e?.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/encrypt-apikey",...e}),P3=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/libraries",...e}),m3=(e)=>(e?.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/logout",...e}),l3=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/pin",...e}),p3=(e)=>(e?.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/pin",...e}),f3=(e)=>(e.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/pin/{pin_id}/check",...e}),s3=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/servers",...e}),C3=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/validate",...e}),S3=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/select-server",...e}),r3=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/select-server",...e,headers:{"Content-Type":"application/json",...e.headers}}),x3=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/test-connection",...e}),M3=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/test-connection",...e}),T3=(e)=>(e?.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/webhook/create",...e}),L3=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/webhook/delete",...e}),Q3=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/webhook/list",...e}),Je=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers",...e}),Xe=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers",...e}),Ze=(e)=>(e.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers/episodes",...e}),Ye=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers/episodes",...e}),he=(e)=>(e.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers/movies",...e}),ce=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers/movies",...e}),ie=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/series",...e}),Ke=(e)=>(e?.client??C).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/series",...e}),ze=(e)=>(e?.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/series",...e}),_e=(e)=>(e.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/subtitles",...e}),ve=(e)=>(e.client??C).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/subtitles",...e}),qe=(e)=>(e.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/subtitles/info",...e}),ne=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/announcements",...e}),oe=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/announcements",...e}),eA=(e)=>(e.client??C).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/backups",...e}),AA=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/backups",...e}),aA=(e)=>(e.client??C).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/backups",...e}),VA=(e)=>(e?.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/backups",...e}),RA=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/health",...e}),BA=(e)=>(e.client??C).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/jobs",...e}),IA=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/jobs",...e}),DA=(e)=>(e.client??C).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/jobs",...e}),dA=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/jobs",...e}),yA=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/languages",...e}),GA=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/languages/profiles",...e}),gA=(e)=>(e?.client??C).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/logs",...e}),uA=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/logs",...e}),tA=(e)=>(e?.client??C).get({url:"/api/system/ping",...e}),PA=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/releases",...e}),mA=(e)=>(e.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/searches",...e}),lA=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/status",...e}),pA=(e)=>(e?.client??C).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/tasks",...e}),fA=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/tasks",...e}),sA=(e)=>(e?.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/webhooks/test",...e}),CA=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/webhooks/plex",...e}),SA=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/webhooks/radarr",...e,headers:{"Content-Type":"application/json",...e.headers}}),rA=(e)=>(e.client??C).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/webhooks/sonarr",...e,headers:{"Content-Type":"application/json",...e.headers}});function N3(e){let A=e.replace(/\/$/,"");return A.endsWith("/api")?A:`${A}/api`}class k3{clientConfig;constructor(e){this.clientConfig=E(e),C.setConfig({baseUrl:N3(this.clientConfig.getBaseUrl()),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return lA()}async getSystemHealth(){return RA()}async ping(){return tA()}async getSystemReleases(){return PA()}async getSystemAnnouncements(){return ne()}async dismissAnnouncement(e){return oe({query:{hash:e}})}async getSystemLogs(){return uA()}async rotateLogs(){return gA()}async getSystemTasks(){return pA()}async runSystemTask(e){return fA({query:{taskid:e}})}async getBackups(){return AA()}async createBackup(){return VA()}async restoreBackup(e){return aA({query:{filename:e}})}async deleteBackup(e){return eA({query:{filename:e}})}async getJobs(e,A){let a={};if(e!==void 0)a.id=e;if(A)a.status=A;return IA(Object.keys(a).length>0?{query:a}:{})}async manageJob(e,A){return dA({query:{id:e,action:A}})}async deleteJob(e){return BA({query:{id:e}})}async emptyJobQueue(e){return DA({query:{queueName:e}})}async getLanguages(e){return yA(e?{query:{history:e}}:{})}async getLanguageProfiles(){return GA()}async getSeries(e,A,a){let V={};if(e)V["seriesid[]"]=e;if(A!==void 0)V.start=A;if(a!==void 0)V.length=a;return ie(Object.keys(V).length>0?{query:V}:{})}async updateSeriesLanguageProfile(e,A){let a={};if(e)a.seriesid=e;if(A)a.profileid=A;return ze(Object.keys(a).length>0?{query:a}:{})}async runSeriesAction(e,A){let a={};if(e!==void 0)a.seriesid=e;if(A)a.action=A;return Ke(Object.keys(a).length>0?{query:a}:{})}async getEpisodes(e,A){let a={};if(e)a["seriesid[]"]=e;if(A)a["episodeid[]"]=A;return le(Object.keys(a).length>0?{query:a}:{})}async getEpisodesWanted(e,A,a){let V={};if(e!==void 0)V.start=e;if(A!==void 0)V.length=A;if(a)V["episodeid[]"]=a;return Me(Object.keys(V).length>0?{query:V}:{})}async getEpisodesHistory(e,A,a){let V={};if(e!==void 0)V.start=e;if(A!==void 0)V.length=A;if(a!==void 0)V.episodeid=a;return Ce(Object.keys(V).length>0?{query:V}:{})}async downloadEpisodeSubtitles(e,A,a,V,R){return re({query:{seriesid:e,episodeid:A,language:a,forced:V,hi:R}})}async uploadEpisodeSubtitles(e,A,a,V,R,d){return xe({body:{file:d},query:{seriesid:e,episodeid:A,language:a,forced:V,hi:R}})}async deleteEpisodeSubtitles(e,A,a,V,R,d){return Se({query:{seriesid:e,episodeid:A,language:a,forced:V,hi:R,path:d}})}async getEpisodesBlacklist(e,A){let a={};if(e!==void 0)a.start=e;if(A!==void 0)a.length=A;return fe(Object.keys(a).length>0?{query:a}:{})}async addEpisodeToBlacklist(e,A,a,V,R,d){return se({query:{seriesid:e,episodeid:A,provider:a,subs_id:V,language:R,subtitles_path:d}})}async removeEpisodeFromBlacklist(e,A,a){let V={};if(e)V.all=e;if(A)V.provider=A;if(a)V.subs_id=a;return pe(Object.keys(V).length>0?{query:V}:{})}async getMovies(e,A,a){let V={};if(e)V["radarrid[]"]=e;if(A!==void 0)V.start=A;if(a!==void 0)V.length=a;return ke(Object.keys(V).length>0?{query:V}:{})}async updateMoviesLanguageProfile(e,A){let a={};if(e)a.radarrid=e;if(A)a.profileid=A;return We(Object.keys(a).length>0?{query:a}:{})}async runMovieAction(e,A){let a={};if(e!==void 0)a.radarrid=e;if(A)a.action=A;return we(Object.keys(a).length>0?{query:a}:{})}async getMoviesWanted(e,A,a){let V={};if(e!==void 0)V.start=e;if(A!==void 0)V.length=A;if(a)V["radarrid[]"]=a;return je(Object.keys(V).length>0?{query:V}:{})}async getMoviesHistory(e,A,a){let V={};if(e!==void 0)V.start=e;if(A!==void 0)V.length=A;if(a!==void 0)V.radarrid=a;return Ue(Object.keys(V).length>0?{query:V}:{})}async downloadMovieSubtitles(e,A,a,V){return $e({query:{radarrid:e,language:A,forced:a,hi:V}})}async uploadMovieSubtitles(e,A,a,V,R){return be({body:{file:R},query:{radarrid:e,language:A,forced:a,hi:V}})}async deleteMovieSubtitles(e,A,a,V,R){return Fe({query:{radarrid:e,language:A,forced:a,hi:V,path:R}})}async getMoviesBlacklist(e,A){let a={};if(e!==void 0)a.start=e;if(A!==void 0)a.length=A;return Oe(Object.keys(a).length>0?{query:a}:{})}async addMovieToBlacklist(e,A,a,V,R){return Ee({query:{radarrid:e,provider:A,subs_id:a,language:V,subtitles_path:R}})}async removeMovieFromBlacklist(e,A,a){let V={};if(e)V.all=e;if(A)V.provider=A;if(a)V.subs_id=a;return He(Object.keys(V).length>0?{query:V}:{})}async getProviders(){return Je()}async resetProviders(){return Xe({query:{action:"reset"}})}async searchEpisodeSubtitles(e){return Ze({query:{episodeid:e}})}async downloadProviderEpisodeSubtitles(e,A,a,V,R,d,I){return Ye({query:{seriesid:e,episodeid:A,hi:a,forced:V,original_format:R,provider:d,subtitle:I}})}async searchMovieSubtitles(e){return he({query:{radarrid:e}})}async downloadProviderMovieSubtitles(e,A,a,V,R,d){return ce({query:{radarrid:e,hi:A,forced:a,original_format:V,provider:R,subtitle:d}})}async getSubtitles(e){return _e(e)}async applySubtitleMods(e){return ve(e)}async getSubtitleNameInfo(e){return qe(e)}async getHistoryStats(){return Ne()}async getBadges(){return me()}async search(e){return mA(e)}async browseBazarrFs(e){return Te(e?{query:{path:e}}:{})}async browseRadarrFs(e){return Le(e?{query:{path:e}}:{})}async browseSonarrFs(e){return Qe(e?{query:{path:e}}:{})}async testWebhook(){return sA()}async triggerPlexWebhook(e){return CA({query:{payload:e}})}async triggerRadarrWebhook(e){return SA(e)}async triggerSonarrWebhook(e){return rA(e)}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),C.setConfig({baseUrl:N3(this.clientConfig.getBaseUrl()),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}var w3=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var rG={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>w3(A,a,R));else w3(A,a,V)}),A}},xG={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var W3=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:d,sseMaxRetryAttempts:I,sseMaxRetryDelay:D,sseSleepFn:u,url:S,...m})=>{let B,x=u??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=d??3000,P=0,r=m.signal??new AbortController().signal;while(!0){if(r.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(B!==void 0)W.set("Last-Event-ID",B);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:r},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let s=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{s.cancel()}catch{}};r.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await s.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
6
+ `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))I=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
7
+ `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:I,retry:L}),O.length)yield k}}}finally{x.removeEventListener("abort",U),C.releaseLock()}break}catch(Q){if(A?.(Q),B!==void 0&&P>=B)break;let N=Math.min(L*2**(P-1),D??30000);await r(N)}}}()}};var YS=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},hS=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},cS=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ge=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((g)=>encodeURIComponent(g))).join(hS(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let t=YS(V),B=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return K({allowReserved:e,name:a,value:D})}).join(t);return V==="label"||V==="matrix"?t+B:B},K=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},ue=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:t})=>{if(R instanceof Date)return t?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let g=[];Object.entries(R).forEach(([m,I])=>{g=[...g,m,e?I:encodeURIComponent(I)]});let S=g.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let B=cS(V),D=Object.entries(R).map(([g,S])=>K({allowReserved:e,name:V==="deepObject"?`${a}[${g}]`:g,value:S})).join(B);return V==="label"||V==="matrix"?B+D:D};var KS=/\{[^{}]+\}/g,iS=({path:e,url:A})=>{let a=A,V=A.match(KS);if(V)for(let R of V){let t=!1,B=R.substring(1,R.length-1),D="simple";if(B.endsWith("*"))t=!0,B=B.substring(0,B.length-1);if(B.startsWith("."))B=B.substring(1),D="label";else if(B.startsWith(";"))B=B.substring(1),D="matrix";let g=e[B];if(g===void 0||g===null)continue;if(Array.isArray(g)){a=a.replace(R,ge({explode:t,name:B,style:D,value:g}));continue}if(typeof g==="object"){a=a.replace(R,ue({explode:t,name:B,style:D,value:g,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${K({name:B,value:g})}`);continue}let S=encodeURIComponent(D==="label"?`.${g}`:g);a=a.replace(R,S)}return a},G3=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let t=R.startsWith("/")?R:`/${R}`,B=(e??"")+t;if(A)B=iS({path:A,url:B});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)B+=`?${D}`;return B};function xG(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var g3=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var u3=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let t in V){let B=V[t];if(B===void 0||B===null)continue;let D=e[t]||A;if(Array.isArray(B)){let g=ge({allowReserved:D.allowReserved,explode:!0,name:t,style:"form",value:B,...D.array});if(g)R.push(g)}else if(typeof B==="object"){let g=ue({allowReserved:D.allowReserved,explode:!0,name:t,style:"deepObject",value:B,...D.object});if(g)R.push(g)}else{let g=K({allowReserved:D.allowReserved,name:t,value:B});if(g)R.push(g)}}return R.join("&")}},t3=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},zS=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},P3=async({security:e,...A})=>{for(let a of e){if(zS(A,a.name))continue;let V=await g3(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},rG=(e)=>G3({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:u3(e.querySerializer),url:e.url}),MG=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=Pe(e.headers,A.headers),a},_S=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},Pe=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?_S(a):Object.entries(a);for(let[R,t]of V)if(t===null)A.delete(R);else if(Array.isArray(t))for(let B of t)A.append(R,B);else if(t!==void 0)A.set(R,typeof t==="object"?JSON.stringify(t):t)}return A};class te{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var m3=()=>({error:new te,request:new te,response:new te}),vS=u3({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),qS={"Content-Type":"application/json"},Ae=(e={})=>({...SG,headers:qS,parseAs:"auto",querySerializer:vS,...e});var TG=(e={})=>{let A=MG(Ae(),e),a=()=>({...A}),V=(m)=>{return A=MG(A,m),a()},R=m3(),t=async(m)=>{let I={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:Pe(A.headers,m.headers),serializedBody:void 0};if(I.security)await P3({...I,security:I.security});if(I.requestValidator)await I.requestValidator(I);if(I.body!==void 0&&I.bodySerializer)I.serializedBody=I.bodySerializer(I.body);if(I.body===void 0||I.serializedBody==="")I.headers.delete("Content-Type");let r=rG(I);return{opts:I,url:r}},B=async(m)=>{let{opts:I,url:r}=await t(m),H={redirect:"follow",...I,body:xG(I)},M=new Request(r,H);for(let l of R.request.fns)if(l)M=await l(M,I);let L=I.fetch,P;try{P=await L(M)}catch(l){let C=l;for(let f of R.error.fns)if(f)C=await f(l,void 0,M,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,I);let x={request:M,response:P};if(P.ok){let l=(I.parseAs==="auto"?t3(P.headers.get("Content-Type")):I.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":C=await P[l]();break;case"json":{let f=await P.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?P.body:{data:P.body,...x}}if(l==="json"){if(I.responseValidator)await I.responseValidator(C);if(I.responseTransformer)C=await I.responseTransformer(C)}return I.responseStyle==="data"?C:{data:C,...x}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},D=(m)=>(I)=>B({...I,method:m}),g=(m)=>async(I)=>{let{opts:r,url:H}=await t(I);return y3({...r,body:r.body,headers:r.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let x of R.request.fns)if(x)P=await x(P,r);return P},serializedBody:xG(r),url:H})};return{buildUrl:(m)=>rG({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:B,setConfig:V,sse:{connect:g("CONNECT"),delete:g("DELETE"),get:g("GET"),head:g("HEAD"),options:g("OPTIONS"),patch:g("PATCH"),post:g("POST"),put:g("PUT"),trace:g("TRACE")},trace:D("TRACE")}};var s=TG(Ae());var LG={};c(LG,{postWebHooksSonarr:()=>xA,postWebHooksRadarr:()=>SA,postWebHooksPlex:()=>sA,postSystemWebhookTest:()=>CA,postSystemTasks:()=>fA,postSystemJobs:()=>dA,postSystemBackups:()=>VA,postSystemAnnouncements:()=>oe,postSeries:()=>ze,postProviders:()=>Xe,postProviderMovies:()=>ce,postProviderEpisodes:()=>Ye,postPlexWebhookDelete:()=>W3,postPlexWebhookCreate:()=>w3,postPlexTestConnection:()=>k3,postPlexSelectServer:()=>Q3,postPlexPin:()=>x3,postPlexLogout:()=>s3,postPlexEncryptApiKey:()=>f3,postPlexApiKey:()=>l3,postMoviesSubtitles:()=>be,postMoviesBlacklist:()=>Ee,postMovies:()=>We,postEpisodesSubtitles:()=>re,postEpisodesBlacklist:()=>Ce,patchSystemJobs:()=>DA,patchSystemBackups:()=>aA,patchSubtitles:()=>ve,patchSeries:()=>ie,patchMoviesSubtitles:()=>$e,patchMovies:()=>we,patchEpisodesSubtitles:()=>xe,getSystemTasks:()=>pA,getSystemStatus:()=>lA,getSystemReleases:()=>PA,getSystemPing:()=>tA,getSystemLogs:()=>uA,getSystemJobs:()=>IA,getSystemHealth:()=>RA,getSystemBackups:()=>AA,getSystemAnnouncements:()=>ne,getSubtitles:()=>_e,getSubtitleNameInfo:()=>qe,getSeries:()=>Ke,getSearches:()=>mA,getProviders:()=>Je,getProviderMovies:()=>he,getProviderEpisodes:()=>Ze,getPlexWebhookList:()=>H3,getPlexValidate:()=>T3,getPlexTestConnection:()=>N3,getPlexServers:()=>M3,getPlexSelectServer:()=>L3,getPlexPinCheck:()=>r3,getPlexPin:()=>S3,getPlexLibraries:()=>C3,getPlexAutopulseConfig:()=>p3,getMoviesWanted:()=>je,getMoviesHistory:()=>Ue,getMoviesBlacklist:()=>Oe,getMovies:()=>ke,getLanguagesProfiles:()=>GA,getLanguages:()=>yA,getHistoryStats:()=>Ne,getEpisodesWanted:()=>Me,getEpisodesHistory:()=>se,getEpisodesBlacklist:()=>fe,getEpisodes:()=>le,getBrowseSonarrFs:()=>Qe,getBrowseRadarrFs:()=>Le,getBrowseBazarrFs:()=>Te,getBadges:()=>me,deleteSystemLogs:()=>gA,deleteSystemJobs:()=>BA,deleteSystemBackups:()=>eA,deleteMoviesSubtitles:()=>Fe,deleteMoviesBlacklist:()=>He,deleteEpisodesSubtitles:()=>Se,deleteEpisodesBlacklist:()=>pe});var me=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/badges",...e}),le=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes",...e}),pe=(e)=>(e?.client??s).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/blacklist",...e}),fe=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/blacklist",...e}),Ce=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/blacklist",...e}),se=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/history",...e}),Se=(e)=>(e.client??s).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/subtitles",...e}),xe=(e)=>(e.client??s).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/subtitles",...e}),re=(e)=>(e.client??s).post({...Ge,security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/subtitles",...e,headers:{"Content-Type":null,...e.headers}}),Me=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/wanted",...e}),Te=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/files",...e}),Le=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/files/radarr",...e}),Qe=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/files/sonarr",...e}),Ne=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/history/stats",...e}),ke=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies",...e}),we=(e)=>(e?.client??s).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies",...e}),We=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies",...e}),He=(e)=>(e?.client??s).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/blacklist",...e}),Oe=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/blacklist",...e}),Ee=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/blacklist",...e}),Ue=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/history",...e}),Fe=(e)=>(e.client??s).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/subtitles",...e}),$e=(e)=>(e.client??s).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/subtitles",...e}),be=(e)=>(e.client??s).post({...Ge,security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/subtitles",...e,headers:{"Content-Type":null,...e.headers}}),je=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/movies/wanted",...e}),l3=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/apikey",...e}),p3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/autopulse/config",...e}),f3=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/encrypt-apikey",...e}),C3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/libraries",...e}),s3=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/logout",...e}),S3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/pin",...e}),x3=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/pin",...e}),r3=(e)=>(e.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/pin/{pin_id}/check",...e}),M3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/servers",...e}),T3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/validate",...e}),L3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/select-server",...e}),Q3=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/select-server",...e,headers:{"Content-Type":"application/json",...e.headers}}),N3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/test-connection",...e}),k3=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/test-connection",...e}),w3=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/webhook/create",...e}),W3=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/webhook/delete",...e}),H3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/webhook/list",...e}),Je=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers",...e}),Xe=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers",...e}),Ze=(e)=>(e.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers/episodes",...e}),Ye=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers/episodes",...e}),he=(e)=>(e.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers/movies",...e}),ce=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/providers/movies",...e}),Ke=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/series",...e}),ie=(e)=>(e?.client??s).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/series",...e}),ze=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/series",...e}),_e=(e)=>(e.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/subtitles",...e}),ve=(e)=>(e.client??s).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/subtitles",...e}),qe=(e)=>(e.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/subtitles/info",...e}),ne=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/announcements",...e}),oe=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/announcements",...e}),eA=(e)=>(e.client??s).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/backups",...e}),AA=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/backups",...e}),aA=(e)=>(e.client??s).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/backups",...e}),VA=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/backups",...e}),RA=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/health",...e}),BA=(e)=>(e.client??s).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/jobs",...e}),IA=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/jobs",...e}),DA=(e)=>(e.client??s).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/jobs",...e}),dA=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/jobs",...e}),yA=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/languages",...e}),GA=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/languages/profiles",...e}),gA=(e)=>(e?.client??s).delete({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/logs",...e}),uA=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/logs",...e}),tA=(e)=>(e?.client??s).get({url:"/api/system/ping",...e}),PA=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/releases",...e}),mA=(e)=>(e.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/searches",...e}),lA=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/status",...e}),pA=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/tasks",...e}),fA=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/tasks",...e}),CA=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/webhooks/test",...e}),sA=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/webhooks/plex",...e}),SA=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/webhooks/radarr",...e,headers:{"Content-Type":"application/json",...e.headers}}),xA=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/webhooks/sonarr",...e,headers:{"Content-Type":"application/json",...e.headers}});function O3(e){let A=e.replace(/\/$/,"");return A.endsWith("/api")?A:`${A}/api`}class E3{clientConfig;constructor(e){this.clientConfig=E(e),s.setConfig({baseUrl:O3(this.clientConfig.getBaseUrl()),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return lA()}async getSystemHealth(){return RA()}async ping(){return tA()}async getSystemReleases(){return PA()}async getSystemAnnouncements(){return ne()}async dismissAnnouncement(e){return oe({query:{hash:e}})}async getSystemLogs(){return uA()}async rotateLogs(){return gA()}async getSystemTasks(){return pA()}async runSystemTask(e){return fA({query:{taskid:e}})}async getBackups(){return AA()}async createBackup(){return VA()}async restoreBackup(e){return aA({query:{filename:e}})}async deleteBackup(e){return eA({query:{filename:e}})}async getJobs(e,A){let a={};if(e!==void 0)a.id=e;if(A)a.status=A;return IA(Object.keys(a).length>0?{query:a}:{})}async manageJob(e,A){return dA({query:{id:e,action:A}})}async deleteJob(e){return BA({query:{id:e}})}async emptyJobQueue(e){return DA({query:{queueName:e}})}async getLanguages(e){return yA(e?{query:{history:e}}:{})}async getLanguageProfiles(){return GA()}async getSeries(e,A,a){let V={};if(e)V["seriesid[]"]=e;if(A!==void 0)V.start=A;if(a!==void 0)V.length=a;return Ke(Object.keys(V).length>0?{query:V}:{})}async updateSeriesLanguageProfile(e,A){let a={};if(e)a.seriesid=e;if(A)a.profileid=A;return ze(Object.keys(a).length>0?{query:a}:{})}async runSeriesAction(e,A){let a={};if(e!==void 0)a.seriesid=e;if(A)a.action=A;return ie(Object.keys(a).length>0?{query:a}:{})}async getEpisodes(e,A){let a={};if(e)a["seriesid[]"]=e;if(A)a["episodeid[]"]=A;return le(Object.keys(a).length>0?{query:a}:{})}async getEpisodesWanted(e,A,a){let V={};if(e!==void 0)V.start=e;if(A!==void 0)V.length=A;if(a)V["episodeid[]"]=a;return Me(Object.keys(V).length>0?{query:V}:{})}async getEpisodesHistory(e,A,a){let V={};if(e!==void 0)V.start=e;if(A!==void 0)V.length=A;if(a!==void 0)V.episodeid=a;return se(Object.keys(V).length>0?{query:V}:{})}async downloadEpisodeSubtitles(e,A,a,V,R){return xe({query:{seriesid:e,episodeid:A,language:a,forced:V,hi:R}})}async uploadEpisodeSubtitles(e,A,a,V,R,t){return re({body:{file:t},query:{seriesid:e,episodeid:A,language:a,forced:V,hi:R}})}async deleteEpisodeSubtitles(e,A,a,V,R,t){return Se({query:{seriesid:e,episodeid:A,language:a,forced:V,hi:R,path:t}})}async getEpisodesBlacklist(e,A){let a={};if(e!==void 0)a.start=e;if(A!==void 0)a.length=A;return fe(Object.keys(a).length>0?{query:a}:{})}async addEpisodeToBlacklist(e,A,a,V,R,t){return Ce({query:{seriesid:e,episodeid:A,provider:a,subs_id:V,language:R,subtitles_path:t}})}async removeEpisodeFromBlacklist(e,A,a){let V={};if(e)V.all=e;if(A)V.provider=A;if(a)V.subs_id=a;return pe(Object.keys(V).length>0?{query:V}:{})}async getMovies(e,A,a){let V={};if(e)V["radarrid[]"]=e;if(A!==void 0)V.start=A;if(a!==void 0)V.length=a;return ke(Object.keys(V).length>0?{query:V}:{})}async updateMoviesLanguageProfile(e,A){let a={};if(e)a.radarrid=e;if(A)a.profileid=A;return We(Object.keys(a).length>0?{query:a}:{})}async runMovieAction(e,A){let a={};if(e!==void 0)a.radarrid=e;if(A)a.action=A;return we(Object.keys(a).length>0?{query:a}:{})}async getMoviesWanted(e,A,a){let V={};if(e!==void 0)V.start=e;if(A!==void 0)V.length=A;if(a)V["radarrid[]"]=a;return je(Object.keys(V).length>0?{query:V}:{})}async getMoviesHistory(e,A,a){let V={};if(e!==void 0)V.start=e;if(A!==void 0)V.length=A;if(a!==void 0)V.radarrid=a;return Ue(Object.keys(V).length>0?{query:V}:{})}async downloadMovieSubtitles(e,A,a,V){return $e({query:{radarrid:e,language:A,forced:a,hi:V}})}async uploadMovieSubtitles(e,A,a,V,R){return be({body:{file:R},query:{radarrid:e,language:A,forced:a,hi:V}})}async deleteMovieSubtitles(e,A,a,V,R){return Fe({query:{radarrid:e,language:A,forced:a,hi:V,path:R}})}async getMoviesBlacklist(e,A){let a={};if(e!==void 0)a.start=e;if(A!==void 0)a.length=A;return Oe(Object.keys(a).length>0?{query:a}:{})}async addMovieToBlacklist(e,A,a,V,R){return Ee({query:{radarrid:e,provider:A,subs_id:a,language:V,subtitles_path:R}})}async removeMovieFromBlacklist(e,A,a){let V={};if(e)V.all=e;if(A)V.provider=A;if(a)V.subs_id=a;return He(Object.keys(V).length>0?{query:V}:{})}async getProviders(){return Je()}async resetProviders(){return Xe({query:{action:"reset"}})}async searchEpisodeSubtitles(e){return Ze({query:{episodeid:e}})}async downloadProviderEpisodeSubtitles(e,A,a,V,R,t,B){return Ye({query:{seriesid:e,episodeid:A,hi:a,forced:V,original_format:R,provider:t,subtitle:B}})}async searchMovieSubtitles(e){return he({query:{radarrid:e}})}async downloadProviderMovieSubtitles(e,A,a,V,R,t){return ce({query:{radarrid:e,hi:A,forced:a,original_format:V,provider:R,subtitle:t}})}async getSubtitles(e){return _e(e)}async applySubtitleMods(e){return ve(e)}async getSubtitleNameInfo(e){return qe(e)}async getHistoryStats(){return Ne()}async getBadges(){return me()}async search(e){return mA(e)}async browseBazarrFs(e){return Te(e?{query:{path:e}}:{})}async browseRadarrFs(e){return Le(e?{query:{path:e}}:{})}async browseSonarrFs(e){return Qe(e?{query:{path:e}}:{})}async testWebhook(){return CA()}async triggerPlexWebhook(e){return sA({query:{payload:e}})}async triggerRadarrWebhook(e){return SA(e)}async triggerSonarrWebhook(e){return xA(e)}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),s.setConfig({baseUrl:O3(this.clientConfig.getBaseUrl()),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}var U3=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var QG={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>U3(A,a,R));else U3(A,a,V)}),A}},NG={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var F3=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:t,sseMaxRetryAttempts:B,sseMaxRetryDelay:D,sseSleepFn:g,url:S,...m})=>{let I,r=g??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=t??3000,P=0,x=m.signal??new AbortController().signal;while(!0){if(x.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let C=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{C.cancel()}catch{}};x.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await C.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
8
8
  `).replace(/\r/g,`
9
9
  `);let F=f.split(`
10
10
 
11
11
  `);f=F.pop()??"";for(let Y of F){let h=Y.split(`
12
- `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))B=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
13
- `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:B,retry:L}),O.length)yield k}}}finally{r.removeEventListener("abort",U),s.releaseLock()}break}catch(Q){if(A?.(Q),I!==void 0&&P>=I)break;let N=Math.min(L*2**(P-1),D??30000);await x(N)}}}()}};var nS=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},oS=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},er=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},xA=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((u)=>encodeURIComponent(u))).join(oS(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let d=nS(V),I=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return K({allowReserved:e,name:a,value:D})}).join(d);return V==="label"||V==="matrix"?d+I:I},K=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},MA=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:d})=>{if(R instanceof Date)return d?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let u=[];Object.entries(R).forEach(([m,B])=>{u=[...u,m,e?B:encodeURIComponent(B)]});let S=u.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let I=er(V),D=Object.entries(R).map(([u,S])=>K({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(I);return V==="label"||V==="matrix"?I+D:D};var Ar=/\{[^{}]+\}/g,ar=({path:e,url:A})=>{let a=A,V=A.match(Ar);if(V)for(let R of V){let d=!1,I=R.substring(1,R.length-1),D="simple";if(I.endsWith("*"))d=!0,I=I.substring(0,I.length-1);if(I.startsWith("."))I=I.substring(1),D="label";else if(I.startsWith(";"))I=I.substring(1),D="matrix";let u=e[I];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,xA({explode:d,name:I,style:D,value:u}));continue}if(typeof u==="object"){a=a.replace(R,MA({explode:d,name:I,style:D,value:u,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${K({name:I,value:u})}`);continue}let S=encodeURIComponent(D==="label"?`.${u}`:u);a=a.replace(R,S)}return a},H3=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let d=R.startsWith("/")?R:`/${R}`,I=(e??"")+d;if(A)I=ar({path:A,url:I});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)I+=`?${D}`;return I};function MG(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var O3=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var E3=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let d in V){let I=V[d];if(I===void 0||I===null)continue;let D=e[d]||A;if(Array.isArray(I)){let u=xA({allowReserved:D.allowReserved,explode:!0,name:d,style:"form",value:I,...D.array});if(u)R.push(u)}else if(typeof I==="object"){let u=MA({allowReserved:D.allowReserved,explode:!0,name:d,style:"deepObject",value:I,...D.object});if(u)R.push(u)}else{let u=K({allowReserved:D.allowReserved,name:d,value:I});if(u)R.push(u)}}return R.join("&")}},U3=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},Vr=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},F3=async({security:e,...A})=>{for(let a of e){if(Vr(A,a.name))continue;let V=await O3(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},TG=(e)=>H3({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:E3(e.querySerializer),url:e.url}),LG=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=LA(e.headers,A.headers),a},Rr=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},LA=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?Rr(a):Object.entries(a);for(let[R,d]of V)if(d===null)A.delete(R);else if(Array.isArray(d))for(let I of d)A.append(R,I);else if(d!==void 0)A.set(R,typeof d==="object"?JSON.stringify(d):d)}return A};class TA{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var $3=()=>({error:new TA,request:new TA,response:new TA}),Br=E3({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Ir={"Content-Type":"application/json"},ae=(e={})=>({...xG,headers:Ir,parseAs:"auto",querySerializer:Br,...e});var QG=(e={})=>{let A=LG(ae(),e),a=()=>({...A}),V=(m)=>{return A=LG(A,m),a()},R=$3(),d=async(m)=>{let B={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:LA(A.headers,m.headers),serializedBody:void 0};if(B.security)await F3({...B,security:B.security});if(B.requestValidator)await B.requestValidator(B);if(B.body!==void 0&&B.bodySerializer)B.serializedBody=B.bodySerializer(B.body);if(B.body===void 0||B.serializedBody==="")B.headers.delete("Content-Type");let x=TG(B);return{opts:B,url:x}},I=async(m)=>{let{opts:B,url:x}=await d(m),H={redirect:"follow",...B,body:MG(B)},M=new Request(x,H);for(let l of R.request.fns)if(l)M=await l(M,B);let L=B.fetch,P;try{P=await L(M)}catch(l){let s=l;for(let f of R.error.fns)if(f)s=await f(l,void 0,M,B);if(s=s||{},B.throwOnError)throw s;return B.responseStyle==="data"?void 0:{error:s,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,B);let r={request:M,response:P};if(P.ok){let l=(B.parseAs==="auto"?U3(P.headers.get("Content-Type")):B.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return B.responseStyle==="data"?f:{data:f,...r}}let s;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":s=await P[l]();break;case"json":{let f=await P.text();s=f?JSON.parse(f):{};break}case"stream":return B.responseStyle==="data"?P.body:{data:P.body,...r}}if(l==="json"){if(B.responseValidator)await B.responseValidator(s);if(B.responseTransformer)s=await B.responseTransformer(s)}return B.responseStyle==="data"?s:{data:s,...r}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,B);if(w=w||{},B.throwOnError)throw w;return B.responseStyle==="data"?void 0:{error:w,...r}},D=(m)=>(B)=>I({...B,method:m}),u=(m)=>async(B)=>{let{opts:x,url:H}=await d(B);return W3({...x,body:x.body,headers:x.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let r of R.request.fns)if(r)P=await r(P,x);return P},serializedBody:MG(x),url:H})};return{buildUrl:(m)=>TG({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:I,setConfig:V,sse:{connect:u("CONNECT"),delete:u("DELETE"),get:u("GET"),head:u("HEAD"),options:u("OPTIONS"),patch:u("PATCH"),post:u("POST"),put:u("PUT"),trace:u("TRACE")},trace:D("TRACE")}};var g=QG(ae());var NG={};c(NG,{putApiV1TrackfileEditor:()=>iu,putApiV1TrackfileById:()=>hu,putApiV1TagById:()=>LV,putApiV1RootfolderById:()=>Wu,putApiV1RemotepathmappingById:()=>Mu,putApiV1ReleaseprofileById:()=>fu,putApiV1QualityprofileById:()=>GV,putApiV1QualitydefinitionUpdate:()=>tu,putApiV1QualitydefinitionById:()=>gu,putApiV1NotificationById:()=>eV,putApiV1MetadataprofileById:()=>au,putApiV1MetadataById:()=>cg,putApiV1IndexerById:()=>Oa,putApiV1IndexerBulk:()=>wg,putApiV1ImportlistexclusionById:()=>Lg,putApiV1ImportlistById:()=>Ta,putApiV1ImportlistBulk:()=>rg,putApiV1DownloadclientById:()=>Da,putApiV1DownloadclientBulk:()=>ga,putApiV1DelayprofileReorderById:()=>tg,putApiV1DelayprofileById:()=>ug,putApiV1CustomformatById:()=>nA,putApiV1CustomformatBulk:()=>aa,putApiV1CustomfilterById:()=>Vg,putApiV1ConfigUiById:()=>HV,putApiV1ConfigNamingById:()=>_a,putApiV1ConfigMetadataproviderById:()=>ia,putApiV1ConfigMediamanagementById:()=>Ya,putApiV1ConfigIndexerById:()=>Og,putApiV1ConfigHostById:()=>Sa,putApiV1ConfigDownloadclientById:()=>lg,putApiV1AutotaggingById:()=>z3,putApiV1ArtistEditor:()=>Z3,putApiV1ArtistById:()=>UA,putApiV1AlbumMonitor:()=>b3,putApiV1AlbumById:()=>WA,postLogin:()=>h3,postApiV1Tag:()=>NV,postApiV1SystemShutdown:()=>rV,postApiV1SystemRestart:()=>xV,postApiV1SystemBackupRestoreUpload:()=>ZA,postApiV1SystemBackupRestoreById:()=>XA,postApiV1Rootfolder:()=>CV,postApiV1Remotepathmapping:()=>Lu,postApiV1Releaseprofile:()=>Cu,postApiV1ReleasePush:()=>Su,postApiV1Release:()=>mu,postApiV1QueueGrabById:()=>mV,postApiV1QueueGrabBulk:()=>lV,postApiV1Qualityprofile:()=>DV,postApiV1NotificationTestall:()=>BV,postApiV1NotificationTest:()=>RV,postApiV1NotificationActionByName:()=>Iu,postApiV1Notification:()=>aV,postApiV1Metadataprofile:()=>og,postApiV1MetadataTestall:()=>vg,postApiV1MetadataTest:()=>_g,postApiV1MetadataActionByName:()=>qg,postApiV1Metadata:()=>Kg,postApiV1Manualimport:()=>Jg,postApiV1IndexerTestall:()=>ba,postApiV1IndexerTest:()=>$a,postApiV1IndexerActionByName:()=>Wg,postApiV1Indexer:()=>Ua,postApiV1Importlistexclusion:()=>Ng,postApiV1ImportlistTestall:()=>wa,postApiV1ImportlistTest:()=>ka,postApiV1ImportlistActionByName:()=>xg,postApiV1Importlist:()=>Qa,postApiV1HistoryFailedById:()=>sa,postApiV1DownloadclientTestall:()=>Pa,postApiV1DownloadclientTest:()=>ta,postApiV1DownloadclientActionByName:()=>Pg,postApiV1Downloadclient:()=>ya,postApiV1Delayprofile:()=>yg,postApiV1Customformat:()=>ea,postApiV1Customfilter:()=>Bg,postApiV1Command:()=>_A,postApiV1Autotagging:()=>v3,postApiV1Artist:()=>$A,postApiV1Albumstudio:()=>j3,postApiV1Album:()=>NA,headPing:()=>yu,getPing:()=>du,getLogout:()=>c3,getLogin:()=>Y3,getFeedV1CalendarLidarrIcs:()=>KA,getContentByPath:()=>Ou,getByPath:()=>Uu,getApiV1WantedMissingById:()=>Bu,getApiV1WantedMissing:()=>Ru,getApiV1WantedCutoffById:()=>Dg,getApiV1WantedCutoff:()=>Ig,getApiV1Update:()=>zu,getApiV1TrackfileById:()=>Yu,getApiV1Trackfile:()=>cu,getApiV1TrackById:()=>Xu,getApiV1Track:()=>Ju,getApiV1TagDetailById:()=>kV,getApiV1TagDetail:()=>wV,getApiV1TagById:()=>TV,getApiV1Tag:()=>QV,getApiV1SystemTaskById:()=>ju,getApiV1SystemTask:()=>bu,getApiV1SystemStatus:()=>SV,getApiV1SystemRoutesDuplicate:()=>$u,getApiV1SystemRoutes:()=>Fu,getApiV1SystemBackup:()=>jA,getApiV1Search:()=>Hu,getApiV1RootfolderById:()=>wu,getApiV1Rootfolder:()=>sV,getApiV1Retag:()=>Nu,getApiV1Rename:()=>Qu,getApiV1RemotepathmappingById:()=>xu,getApiV1Remotepathmapping:()=>Tu,getApiV1ReleaseprofileById:()=>pu,getApiV1Releaseprofile:()=>su,getApiV1Release:()=>Pu,getApiV1QueueStatus:()=>fV,getApiV1QueueDetails:()=>pV,getApiV1Queue:()=>PV,getApiV1QualityprofileSchema:()=>gV,getApiV1QualityprofileById:()=>yV,getApiV1Qualityprofile:()=>IV,getApiV1QualitydefinitionById:()=>Gu,getApiV1Qualitydefinition:()=>uu,getApiV1Parse:()=>Du,getApiV1NotificationSchema:()=>VV,getApiV1NotificationById:()=>oa,getApiV1Notification:()=>AV,getApiV1MetadataprofileSchema:()=>Vu,getApiV1MetadataprofileById:()=>Au,getApiV1Metadataprofile:()=>ng,getApiV1MetadataSchema:()=>zg,getApiV1MetadataById:()=>hg,getApiV1Metadata:()=>ig,getApiV1MediacoverArtistByArtistIdByFilename:()=>Xg,getApiV1MediacoverAlbumByAlbumIdByFilename:()=>Zg,getApiV1Manualimport:()=>jg,getApiV1LogFileUpdateByFilename:()=>vu,getApiV1LogFileUpdate:()=>_u,getApiV1LogFileByFilename:()=>Xa,getApiV1LogFile:()=>Ja,getApiV1Log:()=>ja,getApiV1Localization:()=>bg,getApiV1LanguageById:()=>Fg,getApiV1Language:()=>$g,getApiV1Indexerflag:()=>Ug,getApiV1IndexerSchema:()=>Fa,getApiV1IndexerById:()=>Ha,getApiV1Indexer:()=>Ea,getApiV1ImportlistexclusionById:()=>Tg,getApiV1Importlistexclusion:()=>Qg,getApiV1ImportlistSchema:()=>Na,getApiV1ImportlistById:()=>Ma,getApiV1Importlist:()=>La,getApiV1HistorySince:()=>pa,getApiV1HistoryArtist:()=>fa,getApiV1History:()=>la,getApiV1Health:()=>ma,getApiV1FilesystemType:()=>sg,getApiV1FilesystemMediafiles:()=>Cg,getApiV1Filesystem:()=>fg,getApiV1DownloadclientSchema:()=>ua,getApiV1DownloadclientById:()=>Ia,getApiV1Downloadclient:()=>da,getApiV1Diskspace:()=>Ra,getApiV1DelayprofileById:()=>gg,getApiV1Delayprofile:()=>dg,getApiV1CustomformatSchema:()=>Va,getApiV1CustomformatById:()=>qA,getApiV1Customformat:()=>oA,getApiV1CustomfilterById:()=>ag,getApiV1Customfilter:()=>Rg,getApiV1ConfigUiById:()=>WV,getApiV1ConfigUi:()=>OV,getApiV1ConfigNamingExamples:()=>qa,getApiV1ConfigNamingById:()=>za,getApiV1ConfigNaming:()=>va,getApiV1ConfigMetadataproviderById:()=>ca,getApiV1ConfigMetadataprovider:()=>Ka,getApiV1ConfigMediamanagementById:()=>Za,getApiV1ConfigMediamanagement:()=>ha,getApiV1ConfigIndexerById:()=>Hg,getApiV1ConfigIndexer:()=>Eg,getApiV1ConfigHostById:()=>Ca,getApiV1ConfigHost:()=>ra,getApiV1ConfigDownloadclientById:()=>mg,getApiV1ConfigDownloadclient:()=>pg,getApiV1CommandById:()=>eg,getApiV1Command:()=>zA,getApiV1CalendarById:()=>n3,getApiV1Calendar:()=>iA,getApiV1Blocklist:()=>YA,getApiV1AutotaggingSchema:()=>q3,getApiV1AutotaggingById:()=>K3,getApiV1Autotagging:()=>_3,getApiV1ArtistLookup:()=>bA,getApiV1ArtistById:()=>EA,getApiV1Artist:()=>FA,getApiV1AlbumLookup:()=>HA,getApiV1AlbumById:()=>wA,getApiV1Album:()=>QA,getApi:()=>J3,get:()=>Eu,deleteApiV1TrackfileById:()=>Zu,deleteApiV1TrackfileBulk:()=>Ku,deleteApiV1TagById:()=>MV,deleteApiV1SystemBackupById:()=>JA,deleteApiV1RootfolderById:()=>ku,deleteApiV1RemotepathmappingById:()=>ru,deleteApiV1ReleaseprofileById:()=>lu,deleteApiV1QueueById:()=>uV,deleteApiV1QueueBulk:()=>tV,deleteApiV1QualityprofileById:()=>dV,deleteApiV1NotificationById:()=>na,deleteApiV1MetadataprofileById:()=>eu,deleteApiV1MetadataById:()=>Yg,deleteApiV1IndexerById:()=>Wa,deleteApiV1IndexerBulk:()=>kg,deleteApiV1ImportlistexclusionById:()=>Mg,deleteApiV1ImportlistById:()=>xa,deleteApiV1ImportlistBulk:()=>Sg,deleteApiV1DownloadclientById:()=>Ba,deleteApiV1DownloadclientBulk:()=>Ga,deleteApiV1DelayprofileById:()=>Gg,deleteApiV1CustomformatById:()=>vA,deleteApiV1CustomformatBulk:()=>Aa,deleteApiV1CustomfilterById:()=>Ag,deleteApiV1CommandById:()=>o3,deleteApiV1BlocklistById:()=>hA,deleteApiV1BlocklistBulk:()=>cA,deleteApiV1AutotaggingById:()=>i3,deleteApiV1ArtistEditor:()=>X3,deleteApiV1ArtistById:()=>OA,deleteApiV1AlbumById:()=>kA});var QA=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album",...e}),NA=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kA=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/{id}",...e}),wA=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/{id}",...e}),WA=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),b3=(e)=>(e?.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/monitor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),HA=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/lookup",...e}),j3=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/albumstudio",...e,headers:{"Content-Type":"application/json",...e?.headers}}),J3=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),OA=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/{id}",...e}),EA=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/{id}",...e}),UA=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),FA=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist",...e}),$A=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist",...e,headers:{"Content-Type":"application/json",...e?.headers}}),X3=(e)=>(e?.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Z3=(e)=>(e?.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),bA=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/lookup",...e}),Y3=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),h3=(e)=>(e?.client??g).post({...rG,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),c3=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),i3=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/{id}",...e}),K3=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/{id}",...e}),z3=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),_3=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging",...e}),v3=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging",...e,headers:{"Content-Type":"application/json",...e?.headers}}),q3=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/schema",...e}),jA=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup",...e}),JA=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/{id}",...e}),XA=(e)=>(e.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/{id}",...e}),ZA=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/upload",...e}),YA=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist",...e}),hA=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/{id}",...e}),cA=(e)=>(e?.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),iA=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar",...e}),n3=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar/{id}",...e}),KA=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v1/calendar/lidarr.ics",...e}),o3=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),eg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),zA=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e}),_A=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ag=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),ag=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),Vg=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Rg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e}),Bg=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e,headers:{"Content-Type":"application/json",...e?.headers}}),vA=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e}),qA=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e}),nA=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),oA=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...e}),ea=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Aa=(e)=>(e?.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),aa=(e)=>(e?.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Va=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/schema",...e}),Ig=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff",...e}),Dg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff/{id}",...e}),dg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...e}),yg=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Gg=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),gg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),ug=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),tg=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/reorder/{id}",...e}),Ra=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/diskspace",...e}),Ba=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),Ia=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),Da=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),da=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e}),ya=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ga=(e)=>(e?.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ga=(e)=>(e?.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ua=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...e}),ta=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pa=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...e}),Pg=(e)=>(e.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),mg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e}),lg=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),pg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...e}),fg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...e}),sg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...e}),Cg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/mediafiles",...e}),ma=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...e}),la=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...e}),pa=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...e}),fa=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/artist",...e}),sa=(e)=>(e.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/failed/{id}",...e}),Ca=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e}),Sa=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ra=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host",...e}),xa=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),Ma=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),Ta=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),La=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...e}),Qa=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Sg=(e)=>(e?.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),rg=(e)=>(e?.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Na=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/schema",...e}),ka=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wa=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/testall",...e}),xg=(e)=>(e.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Mg=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),Tg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),Lg=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...e}),Ng=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Wa=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),Ha=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),Oa=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ea=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e}),Ua=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kg=(e)=>(e?.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wg=(e)=>(e?.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Fa=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...e}),$a=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ba=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...e}),Wg=(e)=>(e.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Hg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...e}),Og=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Eg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer",...e}),Ug=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerflag",...e}),Fg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language/{id}",...e}),$g=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language",...e}),bg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization",...e}),ja=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log",...e}),Ja=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...e}),Xa=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/{filename}",...e}),jg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...e}),Jg=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Xg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/artist/{artistId}/{filename}",...e}),Zg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/album/{albumId}/{filename}",...e}),Za=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...e}),Ya=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ha=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement",...e}),Yg=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),hg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),cg=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ig=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...e}),Kg=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...e,headers:{"Content-Type":"application/json",...e?.headers}}),zg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/schema",...e}),_g=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),vg=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/testall",...e}),qg=(e)=>(e.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ng=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...e}),og=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),eu=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),Au=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),au=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/schema",...e}),ca=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...e}),ia=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ka=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider",...e}),Ru=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing",...e}),Bu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing/{id}",...e}),za=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...e}),_a=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),va=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming",...e}),qa=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/examples",...e}),na=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),oa=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),eV=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),AV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e}),aV=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e,headers:{"Content-Type":"application/json",...e?.headers}}),VV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...e}),RV=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),BV=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...e}),Iu=(e)=>(e.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Du=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/parse",...e}),du=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),yu=(e)=>(e?.client??g).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),Gu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...e}),gu=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),uu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition",...e}),tu=(e)=>(e?.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/update",...e,headers:{"Content-Type":"application/json",...e?.headers}}),IV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...e}),DV=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),dV=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),yV=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),GV=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),gV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/schema",...e}),uV=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/{id}",...e}),tV=(e)=>(e?.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),PV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue",...e}),mV=(e)=>(e.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/{id}",...e}),lV=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/details",...e}),fV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/status",...e}),Pu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...e}),mu=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lu=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e}),pu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e}),fu=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),su=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...e}),Cu=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Su=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release/push",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ru=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),xu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),Mu=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Tu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...e}),Lu=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Qu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rename",...e}),Nu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/retag",...e}),ku=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),wu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),Wu=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),sV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...e}),CV=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Hu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...e}),Ou=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),Eu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),Uu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),SV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...e}),Fu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...e}),$u=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes/duplicate",...e}),rV=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/shutdown",...e}),xV=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...e}),MV=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),TV=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),LV=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),QV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e}),NV=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kV=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail/{id}",...e}),wV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail",...e}),bu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task",...e}),ju=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task/{id}",...e}),Ju=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/track",...e}),Xu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/track/{id}",...e}),Zu=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/{id}",...e}),Yu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/{id}",...e}),hu=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),cu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile",...e}),iu=(e)=>(e?.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ku=(e)=>(e?.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),WV=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e}),HV=(e)=>(e.client??g).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),OV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui",...e}),zu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...e}),_u=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update",...e}),vu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update/{filename}",...e});class qu{clientConfig;constructor(e){this.clientConfig=E(e),g.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return SV()}async getHealth(){return ma()}async getArtists(){return FA()}async getArtist(e){return EA({path:{id:e}})}async addArtist(e){return $A({body:e})}async updateArtist(e,A){return UA({path:{id:String(e)},body:A})}async deleteArtist(e){return OA({path:{id:e}})}async getAlbums(){return QA()}async getAlbum(e){return wA({path:{id:e}})}async searchArtists(e){return bA({query:{term:e}})}async runCommand(e){return _A({body:e})}async getCommands(){return zA()}async getRootFolders(){return sV()}async addRootFolder(e){return CV({body:{path:e}})}async addAlbum(e){return NA({body:e})}async updateAlbum(e,A){return WA({path:{id:String(e)},body:A})}async deleteAlbum(e){return kA({path:{id:e}})}async searchAlbums(e){return HA({query:{term:e}})}async getCalendar(e,A,a){let V={};if(e)V.start=e;if(A)V.end=A;if(a!==void 0)V.unmonitored=a;return iA(Object.keys(V).length>0?{query:V}:{})}async getCalendarFeed(e,A,a){let V={};if(e!==void 0)V.pastDays=e;if(A!==void 0)V.futureDays=A;if(a)V.tags=a;return KA(Object.keys(V).length>0?{query:V}:{})}async getQualityProfiles(){return IV()}async getQualityProfile(e){return yV({path:{id:e}})}async addQualityProfile(e){return DV({body:e})}async updateQualityProfile(e,A){return GV({path:{id:String(e)},body:A})}async deleteQualityProfile(e){return dV({path:{id:e}})}async getQualityProfileSchema(){return gV()}async getCustomFormats(){return oA()}async getCustomFormat(e){return qA({path:{id:e}})}async addCustomFormat(e){return ea({body:e})}async updateCustomFormat(e,A){return nA({path:{id:String(e)},body:A})}async deleteCustomFormat(e){return vA({path:{id:e}})}async updateCustomFormatsBulk(e){return aa({body:e})}async deleteCustomFormatsBulk(e){return Aa({body:{ids:e}})}async getCustomFormatSchema(){return Va()}async getHostConfig(){return ra()}async getHostConfigById(e){return Ca({path:{id:e}})}async updateHostConfig(e,A){return Sa({path:{id:String(e)},body:A})}async getNamingConfig(){return va()}async getNamingConfigById(e){return za({path:{id:e}})}async updateNamingConfig(e,A){return _a({path:{id:String(e)},body:A})}async getNamingConfigExamples(){return qa()}async getMediaManagementConfig(){return ha()}async getMediaManagementConfigById(e){return Za({path:{id:e}})}async updateMediaManagementConfig(e,A){return Ya({path:{id:String(e)},body:A})}async getUiConfig(){return OV()}async getUiConfigById(e){return WV({path:{id:e}})}async updateUiConfig(e,A){return HV({path:{id:String(e)},body:A})}async getMetadataProviderConfig(){return Ka()}async getMetadataProviderConfigById(e){return ca({path:{id:e}})}async updateMetadataProviderConfig(e,A){return ia({path:{id:String(e)},body:A})}async restartSystem(){return xV()}async shutdownSystem(){return rV()}async getSystemBackups(){return jA()}async deleteSystemBackup(e){return JA({path:{id:e}})}async restoreSystemBackup(e){return XA({path:{id:e}})}async uploadSystemBackup(){return ZA()}async getSystemLogs(){return ja()}async getLogFiles(){return Ja()}async getLogFileByName(e){return Xa({path:{filename:e}})}async getDiskSpace(){return Ra()}async getTags(){return QV()}async addTag(e){return NV({body:e})}async getTag(e){return TV({path:{id:e}})}async updateTag(e,A){return LV({path:{id:String(e)},body:A})}async deleteTag(e){return MV({path:{id:e}})}async getTagDetails(){return wV()}async getTagDetailById(e){return kV({path:{id:e}})}async getDownloadClients(){return da()}async getDownloadClient(e){return Ia({path:{id:e}})}async addDownloadClient(e){return ya({body:e})}async updateDownloadClient(e,A){return Da({path:{id:e},body:A})}async deleteDownloadClient(e){return Ba({path:{id:e}})}async updateDownloadClientsBulk(e){return ga({body:e})}async deleteDownloadClientsBulk(e){return Ga({body:{ids:e}})}async getDownloadClientSchema(){return ua()}async testDownloadClient(e){return ta({body:e})}async testAllDownloadClients(){return Pa()}async getIndexers(){return Ea()}async getIndexer(e){return Ha({path:{id:e}})}async addIndexer(e){return Ua({body:e})}async updateIndexer(e,A){return Oa({path:{id:e},body:A})}async deleteIndexer(e){return Wa({path:{id:e}})}async getIndexerSchema(){return Fa()}async testIndexer(e){return $a({body:e})}async testAllIndexers(){return ba()}async getImportLists(){return La()}async getImportList(e){return Ma({path:{id:e}})}async addImportList(e){return Qa({body:e})}async updateImportList(e,A){return Ta({path:{id:e},body:A})}async deleteImportList(e){return xa({path:{id:e}})}async getImportListSchema(){return Na()}async testImportList(e){return ka({body:e})}async testAllImportLists(){return wa()}async getNotifications(){return AV()}async getNotification(e){return oa({path:{id:e}})}async addNotification(e){return aV({body:e})}async updateNotification(e,A){return eV({path:{id:e},body:A})}async deleteNotification(e){return na({path:{id:e}})}async getNotificationSchema(){return VV()}async testNotification(e){return RV({body:e})}async testAllNotifications(){return BV()}async getHistory(e,A,a,V,R,d){let I={};if(e!==void 0)I.page=e;if(A!==void 0)I.pageSize=A;if(a)I.sortKey=a;if(V)I.sortDirection=V;if(R!==void 0)I.artistId=R;if(d)I.downloadId=d;return la(Object.keys(I).length>0?{query:I}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.artistId=A;return pa({query:a})}async getArtistHistory(e,A){let a={artistId:e};if(A!==void 0)a.eventType=A;return fa({query:a})}async markHistoryItemFailed(e){return sa({path:{id:e}})}async getQueue(e,A,a,V,R){let d={};if(e!==void 0)d.page=e;if(A!==void 0)d.pageSize=A;if(a)d.sortKey=a;if(V)d.sortDirection=V;if(R!==void 0)d.includeUnknownArtistItems=R;return PV(Object.keys(d).length>0?{query:d}:{})}async removeQueueItem(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return uV({path:{id:e},...Object.keys(V).length>0?{query:V}:{}})}async removeQueueItemsBulk(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return tV({body:{ids:e},...Object.keys(V).length>0?{query:V}:{}})}async grabQueueItem(e){return mV({path:{id:e}})}async grabQueueItemsBulk(e){return lV({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.artistId=e;if(A!==void 0)a.includeUnknownArtistItems=A;return pV(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return fV()}async getBlocklist(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return YA(Object.keys(R).length>0?{query:R}:{})}async removeBlocklistItem(e){return hA({path:{id:e}})}async removeBlocklistItemsBulk(e){return cA({body:{ids:e}})}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),g.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}var nu=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var kG={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>nu(A,a,R));else nu(A,a,V)}),A}},wG={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var ou=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:d,sseMaxRetryAttempts:I,sseMaxRetryDelay:D,sseSleepFn:u,url:S,...m})=>{let B,x=u??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=d??3000,P=0,r=m.signal??new AbortController().signal;while(!0){if(r.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(B!==void 0)W.set("Last-Event-ID",B);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:r},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let s=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{s.cancel()}catch{}};r.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await s.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
12
+ `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))I=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
13
+ `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:I,retry:L}),O.length)yield k}}}finally{x.removeEventListener("abort",U),C.releaseLock()}break}catch(Q){if(A?.(Q),B!==void 0&&P>=B)break;let N=Math.min(L*2**(P-1),D??30000);await r(N)}}}()}};var nS=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},oS=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ex=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},rA=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((g)=>encodeURIComponent(g))).join(oS(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let t=nS(V),B=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return i({allowReserved:e,name:a,value:D})}).join(t);return V==="label"||V==="matrix"?t+B:B},i=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},MA=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:t})=>{if(R instanceof Date)return t?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let g=[];Object.entries(R).forEach(([m,I])=>{g=[...g,m,e?I:encodeURIComponent(I)]});let S=g.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let B=ex(V),D=Object.entries(R).map(([g,S])=>i({allowReserved:e,name:V==="deepObject"?`${a}[${g}]`:g,value:S})).join(B);return V==="label"||V==="matrix"?B+D:D};var Ax=/\{[^{}]+\}/g,ax=({path:e,url:A})=>{let a=A,V=A.match(Ax);if(V)for(let R of V){let t=!1,B=R.substring(1,R.length-1),D="simple";if(B.endsWith("*"))t=!0,B=B.substring(0,B.length-1);if(B.startsWith("."))B=B.substring(1),D="label";else if(B.startsWith(";"))B=B.substring(1),D="matrix";let g=e[B];if(g===void 0||g===null)continue;if(Array.isArray(g)){a=a.replace(R,rA({explode:t,name:B,style:D,value:g}));continue}if(typeof g==="object"){a=a.replace(R,MA({explode:t,name:B,style:D,value:g,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${i({name:B,value:g})}`);continue}let S=encodeURIComponent(D==="label"?`.${g}`:g);a=a.replace(R,S)}return a},$3=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let t=R.startsWith("/")?R:`/${R}`,B=(e??"")+t;if(A)B=ax({path:A,url:B});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)B+=`?${D}`;return B};function kG(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var b3=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var j3=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let t in V){let B=V[t];if(B===void 0||B===null)continue;let D=e[t]||A;if(Array.isArray(B)){let g=rA({allowReserved:D.allowReserved,explode:!0,name:t,style:"form",value:B,...D.array});if(g)R.push(g)}else if(typeof B==="object"){let g=MA({allowReserved:D.allowReserved,explode:!0,name:t,style:"deepObject",value:B,...D.object});if(g)R.push(g)}else{let g=i({allowReserved:D.allowReserved,name:t,value:B});if(g)R.push(g)}}return R.join("&")}},J3=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},Vx=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},X3=async({security:e,...A})=>{for(let a of e){if(Vx(A,a.name))continue;let V=await b3(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},wG=(e)=>$3({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:j3(e.querySerializer),url:e.url}),WG=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=LA(e.headers,A.headers),a},Rx=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},LA=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?Rx(a):Object.entries(a);for(let[R,t]of V)if(t===null)A.delete(R);else if(Array.isArray(t))for(let B of t)A.append(R,B);else if(t!==void 0)A.set(R,typeof t==="object"?JSON.stringify(t):t)}return A};class TA{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var Z3=()=>({error:new TA,request:new TA,response:new TA}),Bx=j3({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Ix={"Content-Type":"application/json"},ae=(e={})=>({...NG,headers:Ix,parseAs:"auto",querySerializer:Bx,...e});var HG=(e={})=>{let A=WG(ae(),e),a=()=>({...A}),V=(m)=>{return A=WG(A,m),a()},R=Z3(),t=async(m)=>{let I={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:LA(A.headers,m.headers),serializedBody:void 0};if(I.security)await X3({...I,security:I.security});if(I.requestValidator)await I.requestValidator(I);if(I.body!==void 0&&I.bodySerializer)I.serializedBody=I.bodySerializer(I.body);if(I.body===void 0||I.serializedBody==="")I.headers.delete("Content-Type");let r=wG(I);return{opts:I,url:r}},B=async(m)=>{let{opts:I,url:r}=await t(m),H={redirect:"follow",...I,body:kG(I)},M=new Request(r,H);for(let l of R.request.fns)if(l)M=await l(M,I);let L=I.fetch,P;try{P=await L(M)}catch(l){let C=l;for(let f of R.error.fns)if(f)C=await f(l,void 0,M,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,I);let x={request:M,response:P};if(P.ok){let l=(I.parseAs==="auto"?J3(P.headers.get("Content-Type")):I.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":C=await P[l]();break;case"json":{let f=await P.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?P.body:{data:P.body,...x}}if(l==="json"){if(I.responseValidator)await I.responseValidator(C);if(I.responseTransformer)C=await I.responseTransformer(C)}return I.responseStyle==="data"?C:{data:C,...x}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},D=(m)=>(I)=>B({...I,method:m}),g=(m)=>async(I)=>{let{opts:r,url:H}=await t(I);return F3({...r,body:r.body,headers:r.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let x of R.request.fns)if(x)P=await x(P,r);return P},serializedBody:kG(r),url:H})};return{buildUrl:(m)=>wG({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:B,setConfig:V,sse:{connect:g("CONNECT"),delete:g("DELETE"),get:g("GET"),head:g("HEAD"),options:g("OPTIONS"),patch:g("PATCH"),post:g("POST"),put:g("PUT"),trace:g("TRACE")},trace:D("TRACE")}};var G=HG(ae());var OG={};c(OG,{putApiV1TrackfileEditor:()=>vu,putApiV1TrackfileById:()=>zu,putApiV1TagById:()=>QV,putApiV1RootfolderById:()=>Uu,putApiV1RemotepathmappingById:()=>ku,putApiV1ReleaseprofileById:()=>ru,putApiV1QualityprofileById:()=>GV,putApiV1QualitydefinitionUpdate:()=>fu,putApiV1QualitydefinitionById:()=>lu,putApiV1NotificationById:()=>eV,putApiV1MetadataprofileById:()=>Du,putApiV1MetadataById:()=>vg,putApiV1IndexerById:()=>Oa,putApiV1IndexerBulk:()=>Ug,putApiV1ImportlistexclusionById:()=>Wg,putApiV1ImportlistById:()=>Ta,putApiV1ImportlistBulk:()=>Qg,putApiV1DownloadclientById:()=>Da,putApiV1DownloadclientBulk:()=>ga,putApiV1DelayprofileReorderById:()=>fg,putApiV1DelayprofileById:()=>pg,putApiV1CustomformatById:()=>nA,putApiV1CustomformatBulk:()=>aa,putApiV1CustomfilterById:()=>dg,putApiV1ConfigUiById:()=>OV,putApiV1ConfigNamingById:()=>_a,putApiV1ConfigMetadataproviderById:()=>Ka,putApiV1ConfigMediamanagementById:()=>Ya,putApiV1ConfigIndexerById:()=>bg,putApiV1ConfigHostById:()=>Sa,putApiV1ConfigDownloadclientById:()=>Sg,putApiV1AutotaggingById:()=>o3,putApiV1ArtistEditor:()=>i3,putApiV1ArtistById:()=>UA,putApiV1AlbumMonitor:()=>Y3,putApiV1AlbumById:()=>WA,postLogin:()=>_3,postApiV1Tag:()=>kV,postApiV1SystemShutdown:()=>rV,postApiV1SystemRestart:()=>MV,postApiV1SystemBackupRestoreUpload:()=>ZA,postApiV1SystemBackupRestoreById:()=>XA,postApiV1Rootfolder:()=>SV,postApiV1Remotepathmapping:()=>Wu,postApiV1Releaseprofile:()=>Tu,postApiV1ReleasePush:()=>Lu,postApiV1Release:()=>su,postApiV1QueueGrabById:()=>mV,postApiV1QueueGrabBulk:()=>lV,postApiV1Qualityprofile:()=>DV,postApiV1NotificationTestall:()=>BV,postApiV1NotificationTest:()=>RV,postApiV1NotificationActionByName:()=>gu,postApiV1Notification:()=>aV,postApiV1Metadataprofile:()=>Ru,postApiV1MetadataTestall:()=>Au,postApiV1MetadataTest:()=>eu,postApiV1MetadataActionByName:()=>au,postApiV1Metadata:()=>ng,postApiV1Manualimport:()=>cg,postApiV1IndexerTestall:()=>ba,postApiV1IndexerTest:()=>$a,postApiV1IndexerActionByName:()=>Fg,postApiV1Indexer:()=>Ua,postApiV1Importlistexclusion:()=>Og,postApiV1ImportlistTestall:()=>wa,postApiV1ImportlistTest:()=>ka,postApiV1ImportlistActionByName:()=>Ng,postApiV1Importlist:()=>Qa,postApiV1HistoryFailedById:()=>Ca,postApiV1DownloadclientTestall:()=>Pa,postApiV1DownloadclientTest:()=>ta,postApiV1DownloadclientActionByName:()=>Cg,postApiV1Downloadclient:()=>ya,postApiV1Delayprofile:()=>Pg,postApiV1Customformat:()=>ea,postApiV1Customfilter:()=>Gg,postApiV1Command:()=>_A,postApiV1Autotagging:()=>Ag,postApiV1Artist:()=>$A,postApiV1Albumstudio:()=>h3,postApiV1Album:()=>NA,headPing:()=>Pu,getPing:()=>tu,getLogout:()=>v3,getLogin:()=>z3,getFeedV1CalendarLidarrIcs:()=>iA,getContentByPath:()=>$u,getByPath:()=>ju,getApiV1WantedMissingById:()=>Gu,getApiV1WantedMissing:()=>yu,getApiV1WantedCutoffById:()=>ug,getApiV1WantedCutoff:()=>gg,getApiV1Update:()=>nu,getApiV1TrackfileById:()=>iu,getApiV1Trackfile:()=>_u,getApiV1TrackById:()=>cu,getApiV1Track:()=>hu,getApiV1TagDetailById:()=>wV,getApiV1TagDetail:()=>WV,getApiV1TagById:()=>LV,getApiV1Tag:()=>NV,getApiV1SystemTaskById:()=>Yu,getApiV1SystemTask:()=>Zu,getApiV1SystemStatus:()=>xV,getApiV1SystemRoutesDuplicate:()=>Xu,getApiV1SystemRoutes:()=>Ju,getApiV1SystemBackup:()=>jA,getApiV1Search:()=>Fu,getApiV1RootfolderById:()=>Eu,getApiV1Rootfolder:()=>sV,getApiV1Retag:()=>Ou,getApiV1Rename:()=>Hu,getApiV1RemotepathmappingById:()=>Nu,getApiV1Remotepathmapping:()=>wu,getApiV1ReleaseprofileById:()=>xu,getApiV1Releaseprofile:()=>Mu,getApiV1Release:()=>Cu,getApiV1QueueStatus:()=>fV,getApiV1QueueDetails:()=>pV,getApiV1Queue:()=>PV,getApiV1QualityprofileSchema:()=>gV,getApiV1QualityprofileById:()=>yV,getApiV1Qualityprofile:()=>IV,getApiV1QualitydefinitionById:()=>mu,getApiV1Qualitydefinition:()=>pu,getApiV1Parse:()=>uu,getApiV1NotificationSchema:()=>VV,getApiV1NotificationById:()=>oa,getApiV1Notification:()=>AV,getApiV1MetadataprofileSchema:()=>du,getApiV1MetadataprofileById:()=>Iu,getApiV1Metadataprofile:()=>Vu,getApiV1MetadataSchema:()=>og,getApiV1MetadataById:()=>_g,getApiV1Metadata:()=>qg,getApiV1MediacoverArtistByArtistIdByFilename:()=>Kg,getApiV1MediacoverAlbumByAlbumIdByFilename:()=>ig,getApiV1Manualimport:()=>hg,getApiV1LogFileUpdateByFilename:()=>et,getApiV1LogFileUpdate:()=>ou,getApiV1LogFileByFilename:()=>Xa,getApiV1LogFile:()=>Ja,getApiV1Log:()=>ja,getApiV1Localization:()=>Yg,getApiV1LanguageById:()=>Xg,getApiV1Language:()=>Zg,getApiV1Indexerflag:()=>Jg,getApiV1IndexerSchema:()=>Fa,getApiV1IndexerById:()=>Ha,getApiV1Indexer:()=>Ea,getApiV1ImportlistexclusionById:()=>wg,getApiV1Importlistexclusion:()=>Hg,getApiV1ImportlistSchema:()=>Na,getApiV1ImportlistById:()=>Ma,getApiV1Importlist:()=>La,getApiV1HistorySince:()=>pa,getApiV1HistoryArtist:()=>fa,getApiV1History:()=>la,getApiV1Health:()=>ma,getApiV1FilesystemType:()=>Mg,getApiV1FilesystemMediafiles:()=>Tg,getApiV1Filesystem:()=>rg,getApiV1DownloadclientSchema:()=>ua,getApiV1DownloadclientById:()=>Ia,getApiV1Downloadclient:()=>da,getApiV1Diskspace:()=>Ra,getApiV1DelayprofileById:()=>lg,getApiV1Delayprofile:()=>tg,getApiV1CustomformatSchema:()=>Va,getApiV1CustomformatById:()=>qA,getApiV1Customformat:()=>oA,getApiV1CustomfilterById:()=>Dg,getApiV1Customfilter:()=>yg,getApiV1ConfigUiById:()=>HV,getApiV1ConfigUi:()=>EV,getApiV1ConfigNamingExamples:()=>qa,getApiV1ConfigNamingById:()=>za,getApiV1ConfigNaming:()=>va,getApiV1ConfigMetadataproviderById:()=>ca,getApiV1ConfigMetadataprovider:()=>ia,getApiV1ConfigMediamanagementById:()=>Za,getApiV1ConfigMediamanagement:()=>ha,getApiV1ConfigIndexerById:()=>$g,getApiV1ConfigIndexer:()=>jg,getApiV1ConfigHostById:()=>sa,getApiV1ConfigHost:()=>xa,getApiV1ConfigDownloadclientById:()=>sg,getApiV1ConfigDownloadclient:()=>xg,getApiV1CommandById:()=>Bg,getApiV1Command:()=>zA,getApiV1CalendarById:()=>Vg,getApiV1Calendar:()=>KA,getApiV1Blocklist:()=>YA,getApiV1AutotaggingSchema:()=>ag,getApiV1AutotaggingById:()=>n3,getApiV1Autotagging:()=>eg,getApiV1ArtistLookup:()=>bA,getApiV1ArtistById:()=>EA,getApiV1Artist:()=>FA,getApiV1AlbumLookup:()=>HA,getApiV1AlbumById:()=>wA,getApiV1Album:()=>QA,getApi:()=>c3,get:()=>bu,deleteApiV1TrackfileById:()=>Ku,deleteApiV1TrackfileBulk:()=>qu,deleteApiV1TagById:()=>TV,deleteApiV1SystemBackupById:()=>JA,deleteApiV1RootfolderById:()=>CV,deleteApiV1RemotepathmappingById:()=>Qu,deleteApiV1ReleaseprofileById:()=>Su,deleteApiV1QueueById:()=>uV,deleteApiV1QueueBulk:()=>tV,deleteApiV1QualityprofileById:()=>dV,deleteApiV1NotificationById:()=>na,deleteApiV1MetadataprofileById:()=>Bu,deleteApiV1MetadataById:()=>zg,deleteApiV1IndexerById:()=>Wa,deleteApiV1IndexerBulk:()=>Eg,deleteApiV1ImportlistexclusionById:()=>kg,deleteApiV1ImportlistById:()=>ra,deleteApiV1ImportlistBulk:()=>Lg,deleteApiV1DownloadclientById:()=>Ba,deleteApiV1DownloadclientBulk:()=>Ga,deleteApiV1DelayprofileById:()=>mg,deleteApiV1CustomformatById:()=>vA,deleteApiV1CustomformatBulk:()=>Aa,deleteApiV1CustomfilterById:()=>Ig,deleteApiV1CommandById:()=>Rg,deleteApiV1BlocklistById:()=>hA,deleteApiV1BlocklistBulk:()=>cA,deleteApiV1AutotaggingById:()=>q3,deleteApiV1ArtistEditor:()=>K3,deleteApiV1ArtistById:()=>OA,deleteApiV1AlbumById:()=>kA});var QA=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album",...e}),NA=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kA=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/{id}",...e}),wA=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/{id}",...e}),WA=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Y3=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/monitor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),HA=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/lookup",...e}),h3=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/albumstudio",...e,headers:{"Content-Type":"application/json",...e?.headers}}),c3=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),OA=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/{id}",...e}),EA=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/{id}",...e}),UA=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),FA=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist",...e}),$A=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist",...e,headers:{"Content-Type":"application/json",...e?.headers}}),K3=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),i3=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),bA=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/lookup",...e}),z3=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),_3=(e)=>(e?.client??G).post({...QG,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),v3=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),q3=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/{id}",...e}),n3=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/{id}",...e}),o3=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),eg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging",...e}),Ag=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ag=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/schema",...e}),jA=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup",...e}),JA=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/{id}",...e}),XA=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/{id}",...e}),ZA=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/upload",...e}),YA=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist",...e}),hA=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/{id}",...e}),cA=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),KA=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar",...e}),Vg=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar/{id}",...e}),iA=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v1/calendar/lidarr.ics",...e}),Rg=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),Bg=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),zA=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e}),_A=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ig=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),Dg=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),dg=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),yg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e}),Gg=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e,headers:{"Content-Type":"application/json",...e?.headers}}),vA=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e}),qA=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e}),nA=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),oA=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...e}),ea=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Aa=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),aa=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Va=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/schema",...e}),gg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff",...e}),ug=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff/{id}",...e}),tg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...e}),Pg=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),mg=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),lg=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),pg=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),fg=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/reorder/{id}",...e}),Ra=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/diskspace",...e}),Ba=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),Ia=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),Da=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),da=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e}),ya=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ga=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ga=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ua=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...e}),ta=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pa=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...e}),Cg=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),sg=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e}),Sg=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),xg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...e}),rg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...e}),Mg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...e}),Tg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/mediafiles",...e}),ma=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...e}),la=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...e}),pa=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...e}),fa=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/artist",...e}),Ca=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/failed/{id}",...e}),sa=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e}),Sa=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),xa=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host",...e}),ra=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),Ma=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),Ta=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),La=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...e}),Qa=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Lg=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Qg=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Na=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/schema",...e}),ka=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wa=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/testall",...e}),Ng=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),kg=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),wg=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),Wg=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Hg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...e}),Og=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Wa=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),Ha=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),Oa=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ea=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e}),Ua=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Eg=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ug=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Fa=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...e}),$a=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ba=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...e}),Fg=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),$g=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...e}),bg=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),jg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer",...e}),Jg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerflag",...e}),Xg=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language/{id}",...e}),Zg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language",...e}),Yg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization",...e}),ja=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log",...e}),Ja=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...e}),Xa=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/{filename}",...e}),hg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...e}),cg=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Kg=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/artist/{artistId}/{filename}",...e}),ig=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/album/{albumId}/{filename}",...e}),Za=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...e}),Ya=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ha=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement",...e}),zg=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),_g=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),vg=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),qg=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...e}),ng=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...e,headers:{"Content-Type":"application/json",...e?.headers}}),og=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/schema",...e}),eu=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Au=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/testall",...e}),au=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...e}),Ru=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Bu=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),Iu=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),Du=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),du=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/schema",...e}),ca=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...e}),Ka=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ia=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider",...e}),yu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing",...e}),Gu=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing/{id}",...e}),za=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...e}),_a=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),va=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming",...e}),qa=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/examples",...e}),na=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),oa=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),eV=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),AV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e}),aV=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e,headers:{"Content-Type":"application/json",...e?.headers}}),VV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...e}),RV=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),BV=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...e}),gu=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),uu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/parse",...e}),tu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),Pu=(e)=>(e?.client??G).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),mu=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...e}),lu=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),pu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition",...e}),fu=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/update",...e,headers:{"Content-Type":"application/json",...e?.headers}}),IV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...e}),DV=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),dV=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),yV=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),GV=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),gV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/schema",...e}),uV=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/{id}",...e}),tV=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),PV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue",...e}),mV=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/{id}",...e}),lV=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/details",...e}),fV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/status",...e}),Cu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...e}),su=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Su=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e}),xu=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e}),ru=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Mu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...e}),Tu=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Lu=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release/push",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Qu=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),Nu=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),ku=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),wu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...e}),Wu=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Hu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rename",...e}),Ou=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/retag",...e}),CV=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),Eu=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),Uu=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),sV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...e}),SV=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Fu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...e}),$u=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),bu=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),ju=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),xV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...e}),Ju=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...e}),Xu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes/duplicate",...e}),rV=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/shutdown",...e}),MV=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...e}),TV=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),LV=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),QV=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),NV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e}),kV=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wV=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail/{id}",...e}),WV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail",...e}),Zu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task",...e}),Yu=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task/{id}",...e}),hu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/track",...e}),cu=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/track/{id}",...e}),Ku=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/{id}",...e}),iu=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/{id}",...e}),zu=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),_u=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile",...e}),vu=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qu=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),HV=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e}),OV=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),EV=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui",...e}),nu=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...e}),ou=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update",...e}),et=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update/{filename}",...e});class At{clientConfig;constructor(e){this.clientConfig=E(e),G.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return xV()}async getHealth(){return ma()}async getArtists(){return FA()}async getArtist(e){return EA({path:{id:e}})}async addArtist(e){return $A({body:e})}async updateArtist(e,A){return UA({path:{id:String(e)},body:A})}async deleteArtist(e){return OA({path:{id:e}})}async getAlbums(){return QA()}async getAlbum(e){return wA({path:{id:e}})}async searchArtists(e){return bA({query:{term:e}})}async runCommand(e){return _A({body:e})}async getCommands(){return zA()}async getRootFolders(){return sV()}async addRootFolder(e){return SV({body:{path:e}})}async deleteRootFolder(e){return CV({path:{id:e}})}async addAlbum(e){return NA({body:e})}async updateAlbum(e,A){return WA({path:{id:String(e)},body:A})}async deleteAlbum(e){return kA({path:{id:e}})}async searchAlbums(e){return HA({query:{term:e}})}async getCalendar(e,A,a){let V={};if(e)V.start=e;if(A)V.end=A;if(a!==void 0)V.unmonitored=a;return KA(Object.keys(V).length>0?{query:V}:{})}async getCalendarFeed(e,A,a){let V={};if(e!==void 0)V.pastDays=e;if(A!==void 0)V.futureDays=A;if(a)V.tags=a;return iA(Object.keys(V).length>0?{query:V}:{})}async getQualityProfiles(){return IV()}async getQualityProfile(e){return yV({path:{id:e}})}async addQualityProfile(e){return DV({body:e})}async updateQualityProfile(e,A){return GV({path:{id:String(e)},body:A})}async deleteQualityProfile(e){return dV({path:{id:e}})}async getQualityProfileSchema(){return gV()}async getCustomFormats(){return oA()}async getCustomFormat(e){return qA({path:{id:e}})}async addCustomFormat(e){return ea({body:e})}async updateCustomFormat(e,A){return nA({path:{id:String(e)},body:A})}async deleteCustomFormat(e){return vA({path:{id:e}})}async updateCustomFormatsBulk(e){return aa({body:e})}async deleteCustomFormatsBulk(e){return Aa({body:{ids:e}})}async getCustomFormatSchema(){return Va()}async getHostConfig(){return xa()}async getHostConfigById(e){return sa({path:{id:e}})}async updateHostConfig(e,A){return Sa({path:{id:String(e)},body:A})}async getNamingConfig(){return va()}async getNamingConfigById(e){return za({path:{id:e}})}async updateNamingConfig(e,A){return _a({path:{id:String(e)},body:A})}async getNamingConfigExamples(){return qa()}async getMediaManagementConfig(){return ha()}async getMediaManagementConfigById(e){return Za({path:{id:e}})}async updateMediaManagementConfig(e,A){return Ya({path:{id:String(e)},body:A})}async getUiConfig(){return EV()}async getUiConfigById(e){return HV({path:{id:e}})}async updateUiConfig(e,A){return OV({path:{id:String(e)},body:A})}async getMetadataProviderConfig(){return ia()}async getMetadataProviderConfigById(e){return ca({path:{id:e}})}async updateMetadataProviderConfig(e,A){return Ka({path:{id:String(e)},body:A})}async restartSystem(){return MV()}async shutdownSystem(){return rV()}async getSystemBackups(){return jA()}async deleteSystemBackup(e){return JA({path:{id:e}})}async restoreSystemBackup(e){return XA({path:{id:e}})}async uploadSystemBackup(){return ZA()}async getSystemLogs(){return ja()}async getLogFiles(){return Ja()}async getLogFileByName(e){return Xa({path:{filename:e}})}async getDiskSpace(){return Ra()}async getTags(){return NV()}async addTag(e){return kV({body:e})}async getTag(e){return LV({path:{id:e}})}async updateTag(e,A){return QV({path:{id:String(e)},body:A})}async deleteTag(e){return TV({path:{id:e}})}async getTagDetails(){return WV()}async getTagDetailById(e){return wV({path:{id:e}})}async getDownloadClients(){return da()}async getDownloadClient(e){return Ia({path:{id:e}})}async addDownloadClient(e){return ya({body:e})}async updateDownloadClient(e,A){return Da({path:{id:e},body:A})}async deleteDownloadClient(e){return Ba({path:{id:e}})}async updateDownloadClientsBulk(e){return ga({body:e})}async deleteDownloadClientsBulk(e){return Ga({body:{ids:e}})}async getDownloadClientSchema(){return ua()}async testDownloadClient(e){return ta({body:e})}async testAllDownloadClients(){return Pa()}async getIndexers(){return Ea()}async getIndexer(e){return Ha({path:{id:e}})}async addIndexer(e){return Ua({body:e})}async updateIndexer(e,A){return Oa({path:{id:e},body:A})}async deleteIndexer(e){return Wa({path:{id:e}})}async getIndexerSchema(){return Fa()}async testIndexer(e){return $a({body:e})}async testAllIndexers(){return ba()}async getImportLists(){return La()}async getImportList(e){return Ma({path:{id:e}})}async addImportList(e){return Qa({body:e})}async updateImportList(e,A){return Ta({path:{id:e},body:A})}async deleteImportList(e){return ra({path:{id:e}})}async getImportListSchema(){return Na()}async testImportList(e){return ka({body:e})}async testAllImportLists(){return wa()}async getNotifications(){return AV()}async getNotification(e){return oa({path:{id:e}})}async addNotification(e){return aV({body:e})}async updateNotification(e,A){return eV({path:{id:e},body:A})}async deleteNotification(e){return na({path:{id:e}})}async getNotificationSchema(){return VV()}async testNotification(e){return RV({body:e})}async testAllNotifications(){return BV()}async getHistory(e,A,a,V,R,t){let B={};if(e!==void 0)B.page=e;if(A!==void 0)B.pageSize=A;if(a)B.sortKey=a;if(V)B.sortDirection=V;if(R!==void 0)B.artistId=R;if(t)B.downloadId=t;return la(Object.keys(B).length>0?{query:B}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.artistId=A;return pa({query:a})}async getArtistHistory(e,A){let a={artistId:e};if(A!==void 0)a.eventType=A;return fa({query:a})}async markHistoryItemFailed(e){return Ca({path:{id:e}})}async getQueue(e,A,a,V,R){let t={};if(e!==void 0)t.page=e;if(A!==void 0)t.pageSize=A;if(a)t.sortKey=a;if(V)t.sortDirection=V;if(R!==void 0)t.includeUnknownArtistItems=R;return PV(Object.keys(t).length>0?{query:t}:{})}async removeQueueItem(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return uV({path:{id:e},...Object.keys(V).length>0?{query:V}:{}})}async removeQueueItemsBulk(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return tV({body:{ids:e},...Object.keys(V).length>0?{query:V}:{}})}async grabQueueItem(e){return mV({path:{id:e}})}async grabQueueItemsBulk(e){return lV({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.artistId=e;if(A!==void 0)a.includeUnknownArtistItems=A;return pV(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return fV()}async getBlocklist(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return YA(Object.keys(R).length>0?{query:R}:{})}async removeBlocklistItem(e){return hA({path:{id:e}})}async removeBlocklistItemsBulk(e){return cA({body:{ids:e}})}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),G.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}var at=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var EG={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>at(A,a,R));else at(A,a,V)}),A}},UG={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var Vt=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:t,sseMaxRetryAttempts:B,sseMaxRetryDelay:D,sseSleepFn:g,url:S,...m})=>{let I,r=g??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=t??3000,P=0,x=m.signal??new AbortController().signal;while(!0){if(x.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let C=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{C.cancel()}catch{}};x.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await C.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
14
14
  `).replace(/\r/g,`
15
15
  `);let F=f.split(`
16
16
 
17
17
  `);f=F.pop()??"";for(let Y of F){let h=Y.split(`
18
- `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))B=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
19
- `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:B,retry:L}),O.length)yield k}}}finally{r.removeEventListener("abort",U),s.releaseLock()}break}catch(Q){if(A?.(Q),I!==void 0&&P>=I)break;let N=Math.min(L*2**(P-1),D??30000);await x(N)}}}()}};var Dr=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},dr=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},yr=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},EV=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((u)=>encodeURIComponent(u))).join(dr(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let d=Dr(V),I=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return z({allowReserved:e,name:a,value:D})}).join(d);return V==="label"||V==="matrix"?d+I:I},z=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},UV=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:d})=>{if(R instanceof Date)return d?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let u=[];Object.entries(R).forEach(([m,B])=>{u=[...u,m,e?B:encodeURIComponent(B)]});let S=u.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let I=yr(V),D=Object.entries(R).map(([u,S])=>z({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(I);return V==="label"||V==="matrix"?I+D:D};var Gr=/\{[^{}]+\}/g,gr=({path:e,url:A})=>{let a=A,V=A.match(Gr);if(V)for(let R of V){let d=!1,I=R.substring(1,R.length-1),D="simple";if(I.endsWith("*"))d=!0,I=I.substring(0,I.length-1);if(I.startsWith("."))I=I.substring(1),D="label";else if(I.startsWith(";"))I=I.substring(1),D="matrix";let u=e[I];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,EV({explode:d,name:I,style:D,value:u}));continue}if(typeof u==="object"){a=a.replace(R,UV({explode:d,name:I,style:D,value:u,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${z({name:I,value:u})}`);continue}let S=encodeURIComponent(D==="label"?`.${u}`:u);a=a.replace(R,S)}return a},et=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let d=R.startsWith("/")?R:`/${R}`,I=(e??"")+d;if(A)I=gr({path:A,url:I});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)I+=`?${D}`;return I};function WG(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var At=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var at=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let d in V){let I=V[d];if(I===void 0||I===null)continue;let D=e[d]||A;if(Array.isArray(I)){let u=EV({allowReserved:D.allowReserved,explode:!0,name:d,style:"form",value:I,...D.array});if(u)R.push(u)}else if(typeof I==="object"){let u=UV({allowReserved:D.allowReserved,explode:!0,name:d,style:"deepObject",value:I,...D.object});if(u)R.push(u)}else{let u=z({allowReserved:D.allowReserved,name:d,value:I});if(u)R.push(u)}}return R.join("&")}},Vt=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},ur=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},Rt=async({security:e,...A})=>{for(let a of e){if(ur(A,a.name))continue;let V=await At(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},HG=(e)=>et({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:at(e.querySerializer),url:e.url}),OG=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=$V(e.headers,A.headers),a},tr=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},$V=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?tr(a):Object.entries(a);for(let[R,d]of V)if(d===null)A.delete(R);else if(Array.isArray(d))for(let I of d)A.append(R,I);else if(d!==void 0)A.set(R,typeof d==="object"?JSON.stringify(d):d)}return A};class FV{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var Bt=()=>({error:new FV,request:new FV,response:new FV}),Pr=at({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),mr={"Content-Type":"application/json"},Ve=(e={})=>({...wG,headers:mr,parseAs:"auto",querySerializer:Pr,...e});var EG=(e={})=>{let A=OG(Ve(),e),a=()=>({...A}),V=(m)=>{return A=OG(A,m),a()},R=Bt(),d=async(m)=>{let B={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:$V(A.headers,m.headers),serializedBody:void 0};if(B.security)await Rt({...B,security:B.security});if(B.requestValidator)await B.requestValidator(B);if(B.body!==void 0&&B.bodySerializer)B.serializedBody=B.bodySerializer(B.body);if(B.body===void 0||B.serializedBody==="")B.headers.delete("Content-Type");let x=HG(B);return{opts:B,url:x}},I=async(m)=>{let{opts:B,url:x}=await d(m),H={redirect:"follow",...B,body:WG(B)},M=new Request(x,H);for(let l of R.request.fns)if(l)M=await l(M,B);let L=B.fetch,P;try{P=await L(M)}catch(l){let s=l;for(let f of R.error.fns)if(f)s=await f(l,void 0,M,B);if(s=s||{},B.throwOnError)throw s;return B.responseStyle==="data"?void 0:{error:s,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,B);let r={request:M,response:P};if(P.ok){let l=(B.parseAs==="auto"?Vt(P.headers.get("Content-Type")):B.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return B.responseStyle==="data"?f:{data:f,...r}}let s;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":s=await P[l]();break;case"json":{let f=await P.text();s=f?JSON.parse(f):{};break}case"stream":return B.responseStyle==="data"?P.body:{data:P.body,...r}}if(l==="json"){if(B.responseValidator)await B.responseValidator(s);if(B.responseTransformer)s=await B.responseTransformer(s)}return B.responseStyle==="data"?s:{data:s,...r}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,B);if(w=w||{},B.throwOnError)throw w;return B.responseStyle==="data"?void 0:{error:w,...r}},D=(m)=>(B)=>I({...B,method:m}),u=(m)=>async(B)=>{let{opts:x,url:H}=await d(B);return ou({...x,body:x.body,headers:x.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let r of R.request.fns)if(r)P=await r(P,x);return P},serializedBody:WG(x),url:H})};return{buildUrl:(m)=>HG({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:I,setConfig:V,sse:{connect:u("CONNECT"),delete:u("DELETE"),get:u("GET"),head:u("HEAD"),options:u("OPTIONS"),patch:u("PATCH"),post:u("POST"),put:u("PUT"),trace:u("TRACE")},trace:D("TRACE")}};var p=EG(Ve());var UG={};c(UG,{putApiV1TagById:()=>bR,putApiV1NotificationById:()=>LR,putApiV1IndexerproxyById:()=>Yt,putApiV1IndexerById:()=>mR,putApiV1IndexerBulk:()=>bt,putApiV1DownloadclientById:()=>VR,putApiV1DownloadclientBulk:()=>Qt,putApiV1CustomfilterById:()=>xt,putApiV1ConfigUiById:()=>hR,putApiV1ConfigHostById:()=>gR,putApiV1ConfigDownloadclientById:()=>wt,putApiV1ConfigDevelopmentById:()=>oV,putApiV1AppprofileById:()=>Pt,putApiV1ApplicationsById:()=>JV,putApiV1ApplicationsBulk:()=>dt,postLogin:()=>pt,postApiV1Tag:()=>JR,postApiV1SystemShutdown:()=>ER,postApiV1SystemRestart:()=>UR,postApiV1SystemBackupRestoreUpload:()=>_V,postApiV1SystemBackupRestoreById:()=>zV,postApiV1SearchBulk:()=>dP,postApiV1Search:()=>DP,postApiV1NotificationTestall:()=>WR,postApiV1NotificationTest:()=>wR,postApiV1NotificationActionByName:()=>RP,postApiV1Notification:()=>NR,postApiV1IndexerproxyTestall:()=>zt,postApiV1IndexerproxyTest:()=>Kt,postApiV1IndexerproxyActionByName:()=>_t,postApiV1Indexerproxy:()=>ct,postApiV1IndexerTestall:()=>CR,postApiV1IndexerTest:()=>sR,postApiV1IndexerActionByName:()=>jt,postApiV1Indexer:()=>pR,postApiV1DownloadclientTestall:()=>dR,postApiV1DownloadclientTest:()=>DR,postApiV1DownloadclientActionByName:()=>Nt,postApiV1Downloadclient:()=>BR,postApiV1Customfilter:()=>Tt,postApiV1Command:()=>qV,postApiV1Appprofile:()=>gt,postApiV1ApplicationsTestall:()=>cV,postApiV1ApplicationsTest:()=>hV,postApiV1ApplicationsActionByName:()=>yt,postApiV1Applications:()=>ZV,headPing:()=>IP,getPing:()=>BP,getLogout:()=>ft,getLogin:()=>lt,getContentByPath:()=>yP,getByPath:()=>gP,getByIdDownload:()=>VP,getByIdApi:()=>AP,getApiV1Update:()=>lP,getApiV1TagDetailById:()=>XR,getApiV1TagDetail:()=>ZR,getApiV1TagById:()=>$R,getApiV1Tag:()=>jR,getApiV1SystemTaskById:()=>mP,getApiV1SystemTask:()=>PP,getApiV1SystemStatus:()=>OR,getApiV1SystemRoutesDuplicate:()=>tP,getApiV1SystemRoutes:()=>uP,getApiV1SystemBackup:()=>iV,getApiV1Search:()=>HR,getApiV1NotificationSchema:()=>kR,getApiV1NotificationById:()=>TR,getApiV1Notification:()=>QR,getApiV1LogFileUpdateByFilename:()=>fP,getApiV1LogFileUpdate:()=>pP,getApiV1LogFileByFilename:()=>xR,getApiV1LogFile:()=>rR,getApiV1Log:()=>SR,getApiV1LocalizationOptions:()=>ot,getApiV1Localization:()=>nt,getApiV1Indexerstatus:()=>qt,getApiV1Indexerstats:()=>vt,getApiV1IndexerproxySchema:()=>it,getApiV1IndexerproxyById:()=>Zt,getApiV1Indexerproxy:()=>ht,getApiV1IndexerSchema:()=>fR,getApiV1IndexerCategories:()=>Jt,getApiV1IndexerByIdNewznab:()=>eP,getApiV1IndexerByIdDownload:()=>aP,getApiV1IndexerById:()=>PR,getApiV1Indexer:()=>lR,getApiV1HistorySince:()=>Ut,getApiV1HistoryIndexer:()=>Ft,getApiV1History:()=>Et,getApiV1Health:()=>yR,getApiV1FilesystemType:()=>Ot,getApiV1Filesystem:()=>Ht,getApiV1DownloadclientSchema:()=>IR,getApiV1DownloadclientById:()=>aR,getApiV1Downloadclient:()=>RR,getApiV1CustomfilterById:()=>rt,getApiV1Customfilter:()=>Mt,getApiV1ConfigUiById:()=>YR,getApiV1ConfigUi:()=>cR,getApiV1ConfigHostById:()=>GR,getApiV1ConfigHost:()=>uR,getApiV1ConfigDownloadclientById:()=>kt,getApiV1ConfigDownloadclient:()=>Wt,getApiV1ConfigDevelopmentById:()=>nV,getApiV1ConfigDevelopment:()=>eR,getApiV1CommandById:()=>Ct,getApiV1Command:()=>vV,getApiV1AppprofileSchema:()=>mt,getApiV1AppprofileById:()=>tt,getApiV1Appprofile:()=>Gt,getApiV1ApplicationsSchema:()=>YV,getApiV1ApplicationsById:()=>jV,getApiV1Applications:()=>XV,getApi:()=>It,get:()=>GP,deleteApiV1TagById:()=>FR,deleteApiV1SystemBackupById:()=>KV,deleteApiV1NotificationById:()=>MR,deleteApiV1IndexerproxyById:()=>Xt,deleteApiV1IndexerById:()=>tR,deleteApiV1IndexerBulk:()=>$t,deleteApiV1DownloadclientById:()=>AR,deleteApiV1DownloadclientBulk:()=>Lt,deleteApiV1CustomfilterById:()=>St,deleteApiV1CommandById:()=>st,deleteApiV1AppprofileById:()=>ut,deleteApiV1ApplicationsById:()=>bV,deleteApiV1ApplicationsBulk:()=>Dt});var It=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),bV=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/{id}",...e}),jV=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/{id}",...e}),JV=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),XV=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications",...e}),ZV=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Dt=(e)=>(e?.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),dt=(e)=>(e?.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),YV=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/schema",...e}),hV=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),cV=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/testall",...e}),yt=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Gt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile",...e}),gt=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ut=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/{id}",...e}),tt=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/{id}",...e}),Pt=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/schema",...e}),lt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),pt=(e)=>(e?.client??p).post({...kG,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),ft=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),iV=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup",...e}),KV=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/{id}",...e}),zV=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/{id}",...e}),_V=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/upload",...e}),st=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),Ct=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),vV=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e}),qV=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e,headers:{"Content-Type":"application/json",...e?.headers}}),St=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),rt=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),xt=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Mt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e}),Tt=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e,headers:{"Content-Type":"application/json",...e?.headers}}),nV=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...e}),oV=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),eR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development",...e}),AR=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),aR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),VR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),RR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e}),BR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Lt=(e)=>(e?.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Qt=(e)=>(e?.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),IR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...e}),DR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),dR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...e}),Nt=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),kt=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e}),wt=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Wt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...e}),Ht=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...e}),Ot=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...e}),yR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...e}),Et=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...e}),Ut=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...e}),Ft=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/indexer",...e}),GR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e}),gR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),uR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host",...e}),tR=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),PR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),mR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),lR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e}),pR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),$t=(e)=>(e?.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),bt=(e)=>(e?.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...e}),sR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),CR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...e}),jt=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Jt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/categories",...e}),Xt=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/{id}",...e}),Zt=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/{id}",...e}),Yt=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ht=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy",...e}),ct=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),it=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/schema",...e}),Kt=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),zt=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/testall",...e}),_t=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),vt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerstats",...e}),qt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerstatus",...e}),nt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization",...e}),ot=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization/options",...e}),SR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log",...e}),rR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...e}),xR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/{filename}",...e}),eP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}/newznab",...e}),AP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{id}/api",...e}),aP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}/download",...e}),VP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{id}/download",...e}),MR=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),TR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),LR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),QR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e}),NR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...e}),wR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),WR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...e}),RP=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),BP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),IP=(e)=>(e?.client??p).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),HR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...e}),DP=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),dP=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),yP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),GP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),gP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),OR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...e}),uP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...e}),tP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes/duplicate",...e}),ER=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/shutdown",...e}),UR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...e}),FR=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),$R=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),bR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),jR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e}),JR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e,headers:{"Content-Type":"application/json",...e?.headers}}),XR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail/{id}",...e}),ZR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail",...e}),PP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task",...e}),mP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task/{id}",...e}),YR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e}),hR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),cR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui",...e}),lP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...e}),pP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update",...e}),fP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update/{filename}",...e});class sP{clientConfig;constructor(e){this.clientConfig=E(e),p.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return OR()}async getHealth(){return yR()}async getIndexers(){return lR()}async getIndexer(e){return PR({path:{id:e}})}async addIndexer(e){return pR({body:e})}async updateIndexer(e,A){return mR({path:{id:String(e)},body:A})}async deleteIndexer(e){return tR({path:{id:e}})}async getDownloadClients(){return RR()}async getDownloadClient(e){return aR({path:{id:e}})}async addDownloadClient(e){return BR({body:e})}async updateDownloadClient(e,A){return VR({path:{id:String(e)},body:A})}async deleteDownloadClient(e){return AR({path:{id:e}})}async testDownloadClient(e){return DR({body:e})}async testAllDownloadClients(){return dR()}async getDownloadClientSchema(){return IR()}async search(e,A){return HR({query:{query:e,...A&&{indexerIds:A}}})}async getApplications(){return XV()}async runCommand(e){return qV({body:e})}async getCommands(){return vV()}async getHostConfig(){return uR()}async getHostConfigById(e){return GR({path:{id:e}})}async updateHostConfig(e,A){return gR({path:{id:String(e)},body:A})}async getUiConfig(){return cR()}async getUiConfigById(e){return YR({path:{id:e}})}async updateUiConfig(e,A){return hR({path:{id:String(e)},body:A})}async getDevelopmentConfig(){return eR()}async getDevelopmentConfigById(e){return nV({path:{id:e}})}async updateDevelopmentConfig(e,A){return oV({path:{id:String(e)},body:A})}async restartSystem(){return UR()}async shutdownSystem(){return ER()}async getSystemBackups(){return iV()}async deleteSystemBackup(e){return KV({path:{id:e}})}async restoreSystemBackup(e){return zV({path:{id:e}})}async uploadSystemBackup(){return _V()}async getSystemLogs(){return SR()}async getLogFiles(){return rR()}async getLogFileByName(e){return xR({path:{filename:e}})}async getTags(){return jR()}async addTag(e){return JR({body:e})}async getTag(e){return $R({path:{id:e}})}async updateTag(e,A){return bR({path:{id:String(e)},body:A})}async deleteTag(e){return FR({path:{id:e}})}async getTagDetails(){return ZR()}async getTagDetailById(e){return XR({path:{id:e}})}async getApplication(e){return jV({path:{id:e}})}async addApplication(e){return ZV({body:e})}async updateApplication(e,A){return JV({path:{id:String(e)},body:A})}async deleteApplication(e){return bV({path:{id:e}})}async testApplication(e){return hV({body:e})}async testAllApplications(){return cV()}async getApplicationSchema(){return YV()}async getIndexerSchema(){return fR()}async testIndexer(e){return sR({body:e})}async testAllIndexers(){return CR()}async getNotifications(){return QR()}async getNotification(e){return TR({path:{id:e}})}async addNotification(e){return NR({body:e})}async updateNotification(e,A){return LR({path:{id:String(e)},body:A})}async deleteNotification(e){return MR({path:{id:e}})}async getNotificationSchema(){return kR()}async testNotification(e){return wR({body:e})}async testAllNotifications(){return WR()}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),p.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}var CP=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var FG={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>CP(A,a,R));else CP(A,a,V)}),A}},$G={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var SP=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:d,sseMaxRetryAttempts:I,sseMaxRetryDelay:D,sseSleepFn:u,url:S,...m})=>{let B,x=u??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=d??3000,P=0,r=m.signal??new AbortController().signal;while(!0){if(r.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(B!==void 0)W.set("Last-Event-ID",B);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:r},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let s=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{s.cancel()}catch{}};r.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await s.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
18
+ `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))I=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
19
+ `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:I,retry:L}),O.length)yield k}}}finally{x.removeEventListener("abort",U),C.releaseLock()}break}catch(Q){if(A?.(Q),B!==void 0&&P>=B)break;let N=Math.min(L*2**(P-1),D??30000);await r(N)}}}()}};var Dx=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},dx=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},yx=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},UV=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((g)=>encodeURIComponent(g))).join(dx(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let t=Dx(V),B=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return z({allowReserved:e,name:a,value:D})}).join(t);return V==="label"||V==="matrix"?t+B:B},z=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},FV=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:t})=>{if(R instanceof Date)return t?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let g=[];Object.entries(R).forEach(([m,I])=>{g=[...g,m,e?I:encodeURIComponent(I)]});let S=g.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let B=yx(V),D=Object.entries(R).map(([g,S])=>z({allowReserved:e,name:V==="deepObject"?`${a}[${g}]`:g,value:S})).join(B);return V==="label"||V==="matrix"?B+D:D};var Gx=/\{[^{}]+\}/g,gx=({path:e,url:A})=>{let a=A,V=A.match(Gx);if(V)for(let R of V){let t=!1,B=R.substring(1,R.length-1),D="simple";if(B.endsWith("*"))t=!0,B=B.substring(0,B.length-1);if(B.startsWith("."))B=B.substring(1),D="label";else if(B.startsWith(";"))B=B.substring(1),D="matrix";let g=e[B];if(g===void 0||g===null)continue;if(Array.isArray(g)){a=a.replace(R,UV({explode:t,name:B,style:D,value:g}));continue}if(typeof g==="object"){a=a.replace(R,FV({explode:t,name:B,style:D,value:g,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${z({name:B,value:g})}`);continue}let S=encodeURIComponent(D==="label"?`.${g}`:g);a=a.replace(R,S)}return a},Rt=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let t=R.startsWith("/")?R:`/${R}`,B=(e??"")+t;if(A)B=gx({path:A,url:B});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)B+=`?${D}`;return B};function FG(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var Bt=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var It=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let t in V){let B=V[t];if(B===void 0||B===null)continue;let D=e[t]||A;if(Array.isArray(B)){let g=UV({allowReserved:D.allowReserved,explode:!0,name:t,style:"form",value:B,...D.array});if(g)R.push(g)}else if(typeof B==="object"){let g=FV({allowReserved:D.allowReserved,explode:!0,name:t,style:"deepObject",value:B,...D.object});if(g)R.push(g)}else{let g=z({allowReserved:D.allowReserved,name:t,value:B});if(g)R.push(g)}}return R.join("&")}},Dt=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},ux=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},dt=async({security:e,...A})=>{for(let a of e){if(ux(A,a.name))continue;let V=await Bt(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},$G=(e)=>Rt({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:It(e.querySerializer),url:e.url}),bG=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=bV(e.headers,A.headers),a},tx=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},bV=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?tx(a):Object.entries(a);for(let[R,t]of V)if(t===null)A.delete(R);else if(Array.isArray(t))for(let B of t)A.append(R,B);else if(t!==void 0)A.set(R,typeof t==="object"?JSON.stringify(t):t)}return A};class $V{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var yt=()=>({error:new $V,request:new $V,response:new $V}),Px=It({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),mx={"Content-Type":"application/json"},Ve=(e={})=>({...UG,headers:mx,parseAs:"auto",querySerializer:Px,...e});var jG=(e={})=>{let A=bG(Ve(),e),a=()=>({...A}),V=(m)=>{return A=bG(A,m),a()},R=yt(),t=async(m)=>{let I={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:bV(A.headers,m.headers),serializedBody:void 0};if(I.security)await dt({...I,security:I.security});if(I.requestValidator)await I.requestValidator(I);if(I.body!==void 0&&I.bodySerializer)I.serializedBody=I.bodySerializer(I.body);if(I.body===void 0||I.serializedBody==="")I.headers.delete("Content-Type");let r=$G(I);return{opts:I,url:r}},B=async(m)=>{let{opts:I,url:r}=await t(m),H={redirect:"follow",...I,body:FG(I)},M=new Request(r,H);for(let l of R.request.fns)if(l)M=await l(M,I);let L=I.fetch,P;try{P=await L(M)}catch(l){let C=l;for(let f of R.error.fns)if(f)C=await f(l,void 0,M,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,I);let x={request:M,response:P};if(P.ok){let l=(I.parseAs==="auto"?Dt(P.headers.get("Content-Type")):I.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":C=await P[l]();break;case"json":{let f=await P.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?P.body:{data:P.body,...x}}if(l==="json"){if(I.responseValidator)await I.responseValidator(C);if(I.responseTransformer)C=await I.responseTransformer(C)}return I.responseStyle==="data"?C:{data:C,...x}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},D=(m)=>(I)=>B({...I,method:m}),g=(m)=>async(I)=>{let{opts:r,url:H}=await t(I);return Vt({...r,body:r.body,headers:r.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let x of R.request.fns)if(x)P=await x(P,r);return P},serializedBody:FG(r),url:H})};return{buildUrl:(m)=>$G({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:B,setConfig:V,sse:{connect:g("CONNECT"),delete:g("DELETE"),get:g("GET"),head:g("HEAD"),options:g("OPTIONS"),patch:g("PATCH"),post:g("POST"),put:g("PUT"),trace:g("TRACE")},trace:D("TRACE")}};var p=jG(Ve());var JG={};c(JG,{putApiV1TagById:()=>JR,putApiV1NotificationById:()=>NR,putApiV1IndexerproxyById:()=>it,putApiV1IndexerById:()=>lR,putApiV1IndexerBulk:()=>Zt,putApiV1DownloadclientById:()=>RR,putApiV1DownloadclientBulk:()=>Wt,putApiV1CustomfilterById:()=>Qt,putApiV1ConfigUiById:()=>KR,putApiV1ConfigHostById:()=>uR,putApiV1ConfigDownloadclientById:()=>Et,putApiV1ConfigDevelopmentById:()=>eR,putApiV1AppprofileById:()=>ft,putApiV1ApplicationsById:()=>XV,putApiV1ApplicationsBulk:()=>ut,postLogin:()=>St,postApiV1Tag:()=>ZR,postApiV1SystemShutdown:()=>FR,postApiV1SystemRestart:()=>$R,postApiV1SystemBackupRestoreUpload:()=>vV,postApiV1SystemBackupRestoreById:()=>_V,postApiV1SearchBulk:()=>gP,postApiV1Search:()=>GP,postApiV1NotificationTestall:()=>OR,postApiV1NotificationTest:()=>HR,postApiV1NotificationActionByName:()=>DP,postApiV1Notification:()=>wR,postApiV1IndexerproxyTestall:()=>nt,postApiV1IndexerproxyTest:()=>qt,postApiV1IndexerproxyActionByName:()=>ot,postApiV1Indexerproxy:()=>_t,postApiV1IndexerTestall:()=>SR,postApiV1IndexerTest:()=>sR,postApiV1IndexerActionByName:()=>Yt,postApiV1Indexer:()=>fR,postApiV1DownloadclientTestall:()=>yR,postApiV1DownloadclientTest:()=>dR,postApiV1DownloadclientActionByName:()=>Ht,postApiV1Downloadclient:()=>IR,postApiV1Customfilter:()=>kt,postApiV1Command:()=>nV,postApiV1Appprofile:()=>mt,postApiV1ApplicationsTestall:()=>KV,postApiV1ApplicationsTest:()=>cV,postApiV1ApplicationsActionByName:()=>tt,postApiV1Applications:()=>YV,headPing:()=>yP,getPing:()=>dP,getLogout:()=>xt,getLogin:()=>st,getContentByPath:()=>uP,getByPath:()=>PP,getByIdDownload:()=>IP,getByIdApi:()=>RP,getApiV1Update:()=>CP,getApiV1TagDetailById:()=>YR,getApiV1TagDetail:()=>hR,getApiV1TagById:()=>jR,getApiV1Tag:()=>XR,getApiV1SystemTaskById:()=>fP,getApiV1SystemTask:()=>pP,getApiV1SystemStatus:()=>UR,getApiV1SystemRoutesDuplicate:()=>lP,getApiV1SystemRoutes:()=>mP,getApiV1SystemBackup:()=>iV,getApiV1Search:()=>ER,getApiV1NotificationSchema:()=>WR,getApiV1NotificationById:()=>QR,getApiV1Notification:()=>kR,getApiV1LogFileUpdateByFilename:()=>SP,getApiV1LogFileUpdate:()=>sP,getApiV1LogFileByFilename:()=>TR,getApiV1LogFile:()=>MR,getApiV1Log:()=>rR,getApiV1LocalizationOptions:()=>aP,getApiV1Localization:()=>AP,getApiV1Indexerstatus:()=>eP,getApiV1Indexerstats:()=>xR,getApiV1IndexerproxySchema:()=>vt,getApiV1IndexerproxyById:()=>Kt,getApiV1Indexerproxy:()=>zt,getApiV1IndexerSchema:()=>CR,getApiV1IndexerCategories:()=>ht,getApiV1IndexerByIdNewznab:()=>VP,getApiV1IndexerByIdDownload:()=>BP,getApiV1IndexerById:()=>mR,getApiV1Indexer:()=>pR,getApiV1HistorySince:()=>jt,getApiV1HistoryIndexer:()=>Jt,getApiV1History:()=>bt,getApiV1Health:()=>GR,getApiV1FilesystemType:()=>$t,getApiV1Filesystem:()=>Ft,getApiV1DownloadclientSchema:()=>DR,getApiV1DownloadclientById:()=>VR,getApiV1Downloadclient:()=>BR,getApiV1CustomfilterById:()=>Lt,getApiV1Customfilter:()=>Nt,getApiV1ConfigUiById:()=>cR,getApiV1ConfigUi:()=>iR,getApiV1ConfigHostById:()=>gR,getApiV1ConfigHost:()=>tR,getApiV1ConfigDownloadclientById:()=>Ot,getApiV1ConfigDownloadclient:()=>Ut,getApiV1ConfigDevelopmentById:()=>oV,getApiV1ConfigDevelopment:()=>AR,getApiV1CommandById:()=>Mt,getApiV1Command:()=>qV,getApiV1AppprofileSchema:()=>Ct,getApiV1AppprofileById:()=>pt,getApiV1Appprofile:()=>Pt,getApiV1ApplicationsSchema:()=>hV,getApiV1ApplicationsById:()=>JV,getApiV1Applications:()=>ZV,getApi:()=>Gt,get:()=>tP,deleteApiV1TagById:()=>bR,deleteApiV1SystemBackupById:()=>zV,deleteApiV1NotificationById:()=>LR,deleteApiV1IndexerproxyById:()=>ct,deleteApiV1IndexerById:()=>PR,deleteApiV1IndexerBulk:()=>Xt,deleteApiV1DownloadclientById:()=>aR,deleteApiV1DownloadclientBulk:()=>wt,deleteApiV1CustomfilterById:()=>Tt,deleteApiV1CommandById:()=>rt,deleteApiV1AppprofileById:()=>lt,deleteApiV1ApplicationsById:()=>jV,deleteApiV1ApplicationsBulk:()=>gt});var Gt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),jV=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/{id}",...e}),JV=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/{id}",...e}),XV=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ZV=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications",...e}),YV=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gt=(e)=>(e?.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ut=(e)=>(e?.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),hV=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/schema",...e}),cV=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),KV=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/testall",...e}),tt=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile",...e}),mt=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lt=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/{id}",...e}),pt=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/{id}",...e}),ft=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ct=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/schema",...e}),st=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),St=(e)=>(e?.client??p).post({...EG,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),xt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),iV=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup",...e}),zV=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/{id}",...e}),_V=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/{id}",...e}),vV=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/upload",...e}),rt=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),Mt=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),qV=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e}),nV=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Tt=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),Lt=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),Qt=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Nt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e}),kt=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e,headers:{"Content-Type":"application/json",...e?.headers}}),oV=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...e}),eR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),AR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development",...e}),aR=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),VR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),RR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),BR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e}),IR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wt=(e)=>(e?.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Wt=(e)=>(e?.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),DR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...e}),dR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),yR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...e}),Ht=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ot=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e}),Et=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ut=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...e}),Ft=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...e}),$t=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...e}),GR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...e}),bt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...e}),jt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...e}),Jt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/indexer",...e}),gR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e}),uR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),tR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host",...e}),PR=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),mR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),lR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),pR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e}),fR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Xt=(e)=>(e?.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Zt=(e)=>(e?.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),CR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...e}),sR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),SR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...e}),Yt=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ht=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/categories",...e}),ct=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/{id}",...e}),Kt=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/{id}",...e}),it=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),zt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy",...e}),_t=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),vt=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/schema",...e}),qt=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),nt=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/testall",...e}),ot=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),xR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerstats",...e}),eP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerstatus",...e}),AP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization",...e}),aP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization/options",...e}),rR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log",...e}),MR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...e}),TR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/{filename}",...e}),VP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}/newznab",...e}),RP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{id}/api",...e}),BP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}/download",...e}),IP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{id}/download",...e}),LR=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),QR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),NR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),kR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e}),wR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e,headers:{"Content-Type":"application/json",...e?.headers}}),WR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...e}),HR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),OR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...e}),DP=(e)=>(e.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),dP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),yP=(e)=>(e?.client??p).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),ER=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...e}),GP=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gP=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),uP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),tP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),PP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),UR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...e}),mP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...e}),lP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes/duplicate",...e}),FR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/shutdown",...e}),$R=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...e}),bR=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),jR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),JR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),XR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e}),ZR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e,headers:{"Content-Type":"application/json",...e?.headers}}),YR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail/{id}",...e}),hR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail",...e}),pP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task",...e}),fP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task/{id}",...e}),cR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e}),KR=(e)=>(e.client??p).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),iR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui",...e}),CP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...e}),sP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update",...e}),SP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update/{filename}",...e});class xP{clientConfig;constructor(e){this.clientConfig=E(e),p.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return UR()}async getHealth(){return GR()}async getIndexers(){return pR()}async getIndexer(e){return mR({path:{id:e}})}async addIndexer(e){return fR({body:e})}async updateIndexer(e,A){return lR({path:{id:String(e)},body:A})}async deleteIndexer(e){return PR({path:{id:e}})}async getIndexerStats(){return xR()}async getDownloadClients(){return BR()}async getDownloadClient(e){return VR({path:{id:e}})}async addDownloadClient(e){return IR({body:e})}async updateDownloadClient(e,A){return RR({path:{id:String(e)},body:A})}async deleteDownloadClient(e){return aR({path:{id:e}})}async testDownloadClient(e){return dR({body:e})}async testAllDownloadClients(){return yR()}async getDownloadClientSchema(){return DR()}async search(e,A){return ER({query:{query:e,...A&&{indexerIds:A}}})}async getApplications(){return ZV()}async runCommand(e){return nV({body:e})}async getCommands(){return qV()}async getHostConfig(){return tR()}async getHostConfigById(e){return gR({path:{id:e}})}async updateHostConfig(e,A){return uR({path:{id:String(e)},body:A})}async getUiConfig(){return iR()}async getUiConfigById(e){return cR({path:{id:e}})}async updateUiConfig(e,A){return KR({path:{id:String(e)},body:A})}async getDevelopmentConfig(){return AR()}async getDevelopmentConfigById(e){return oV({path:{id:e}})}async updateDevelopmentConfig(e,A){return eR({path:{id:String(e)},body:A})}async restartSystem(){return $R()}async shutdownSystem(){return FR()}async getSystemBackups(){return iV()}async deleteSystemBackup(e){return zV({path:{id:e}})}async restoreSystemBackup(e){return _V({path:{id:e}})}async uploadSystemBackup(){return vV()}async getSystemLogs(){return rR()}async getLogFiles(){return MR()}async getLogFileByName(e){return TR({path:{filename:e}})}async getTags(){return XR()}async addTag(e){return ZR({body:e})}async getTag(e){return jR({path:{id:e}})}async updateTag(e,A){return JR({path:{id:String(e)},body:A})}async deleteTag(e){return bR({path:{id:e}})}async getTagDetails(){return hR()}async getTagDetailById(e){return YR({path:{id:e}})}async getApplication(e){return JV({path:{id:e}})}async addApplication(e){return YV({body:e})}async updateApplication(e,A){return XV({path:{id:String(e)},body:A})}async deleteApplication(e){return jV({path:{id:e}})}async testApplication(e){return cV({body:e})}async testAllApplications(){return KV()}async getApplicationSchema(){return hV()}async getIndexerSchema(){return CR()}async testIndexer(e){return sR({body:e})}async testAllIndexers(){return SR()}async getNotifications(){return kR()}async getNotification(e){return QR({path:{id:e}})}async addNotification(e){return wR({body:e})}async updateNotification(e,A){return NR({path:{id:String(e)},body:A})}async deleteNotification(e){return LR({path:{id:e}})}async getNotificationSchema(){return WR()}async testNotification(e){return HR({body:e})}async testAllNotifications(){return OR()}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),p.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}var rP=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var XG={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>rP(A,a,R));else rP(A,a,V)}),A}},ZG={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var MP=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:t,sseMaxRetryAttempts:B,sseMaxRetryDelay:D,sseSleepFn:g,url:S,...m})=>{let I,r=g??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=t??3000,P=0,x=m.signal??new AbortController().signal;while(!0){if(x.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let C=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{C.cancel()}catch{}};x.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await C.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
20
20
  `).replace(/\r/g,`
21
21
  `);let F=f.split(`
22
22
 
23
23
  `);f=F.pop()??"";for(let Y of F){let h=Y.split(`
24
- `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))B=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
25
- `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:B,retry:L}),O.length)yield k}}}finally{r.removeEventListener("abort",U),s.releaseLock()}break}catch(Q){if(A?.(Q),I!==void 0&&P>=I)break;let N=Math.min(L*2**(P-1),D??30000);await x(N)}}}()}};var lr=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},pr=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},fr=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},iR=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((u)=>encodeURIComponent(u))).join(pr(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let d=lr(V),I=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return _({allowReserved:e,name:a,value:D})}).join(d);return V==="label"||V==="matrix"?d+I:I},_=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},KR=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:d})=>{if(R instanceof Date)return d?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let u=[];Object.entries(R).forEach(([m,B])=>{u=[...u,m,e?B:encodeURIComponent(B)]});let S=u.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let I=fr(V),D=Object.entries(R).map(([u,S])=>_({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(I);return V==="label"||V==="matrix"?I+D:D};var sr=/\{[^{}]+\}/g,Cr=({path:e,url:A})=>{let a=A,V=A.match(sr);if(V)for(let R of V){let d=!1,I=R.substring(1,R.length-1),D="simple";if(I.endsWith("*"))d=!0,I=I.substring(0,I.length-1);if(I.startsWith("."))I=I.substring(1),D="label";else if(I.startsWith(";"))I=I.substring(1),D="matrix";let u=e[I];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,iR({explode:d,name:I,style:D,value:u}));continue}if(typeof u==="object"){a=a.replace(R,KR({explode:d,name:I,style:D,value:u,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${_({name:I,value:u})}`);continue}let S=encodeURIComponent(D==="label"?`.${u}`:u);a=a.replace(R,S)}return a},rP=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let d=R.startsWith("/")?R:`/${R}`,I=(e??"")+d;if(A)I=Cr({path:A,url:I});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)I+=`?${D}`;return I};function bG(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var xP=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var MP=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let d in V){let I=V[d];if(I===void 0||I===null)continue;let D=e[d]||A;if(Array.isArray(I)){let u=iR({allowReserved:D.allowReserved,explode:!0,name:d,style:"form",value:I,...D.array});if(u)R.push(u)}else if(typeof I==="object"){let u=KR({allowReserved:D.allowReserved,explode:!0,name:d,style:"deepObject",value:I,...D.object});if(u)R.push(u)}else{let u=_({allowReserved:D.allowReserved,name:d,value:I});if(u)R.push(u)}}return R.join("&")}},TP=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},Sr=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},LP=async({security:e,...A})=>{for(let a of e){if(Sr(A,a.name))continue;let V=await xP(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},jG=(e)=>rP({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:MP(e.querySerializer),url:e.url}),JG=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=_R(e.headers,A.headers),a},rr=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},_R=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?rr(a):Object.entries(a);for(let[R,d]of V)if(d===null)A.delete(R);else if(Array.isArray(d))for(let I of d)A.append(R,I);else if(d!==void 0)A.set(R,typeof d==="object"?JSON.stringify(d):d)}return A};class zR{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var QP=()=>({error:new zR,request:new zR,response:new zR}),xr=MP({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Mr={"Content-Type":"application/json"},Re=(e={})=>({...$G,headers:Mr,parseAs:"auto",querySerializer:xr,...e});var XG=(e={})=>{let A=JG(Re(),e),a=()=>({...A}),V=(m)=>{return A=JG(A,m),a()},R=QP(),d=async(m)=>{let B={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:_R(A.headers,m.headers),serializedBody:void 0};if(B.security)await LP({...B,security:B.security});if(B.requestValidator)await B.requestValidator(B);if(B.body!==void 0&&B.bodySerializer)B.serializedBody=B.bodySerializer(B.body);if(B.body===void 0||B.serializedBody==="")B.headers.delete("Content-Type");let x=jG(B);return{opts:B,url:x}},I=async(m)=>{let{opts:B,url:x}=await d(m),H={redirect:"follow",...B,body:bG(B)},M=new Request(x,H);for(let l of R.request.fns)if(l)M=await l(M,B);let L=B.fetch,P;try{P=await L(M)}catch(l){let s=l;for(let f of R.error.fns)if(f)s=await f(l,void 0,M,B);if(s=s||{},B.throwOnError)throw s;return B.responseStyle==="data"?void 0:{error:s,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,B);let r={request:M,response:P};if(P.ok){let l=(B.parseAs==="auto"?TP(P.headers.get("Content-Type")):B.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return B.responseStyle==="data"?f:{data:f,...r}}let s;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":s=await P[l]();break;case"json":{let f=await P.text();s=f?JSON.parse(f):{};break}case"stream":return B.responseStyle==="data"?P.body:{data:P.body,...r}}if(l==="json"){if(B.responseValidator)await B.responseValidator(s);if(B.responseTransformer)s=await B.responseTransformer(s)}return B.responseStyle==="data"?s:{data:s,...r}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,B);if(w=w||{},B.throwOnError)throw w;return B.responseStyle==="data"?void 0:{error:w,...r}},D=(m)=>(B)=>I({...B,method:m}),u=(m)=>async(B)=>{let{opts:x,url:H}=await d(B);return SP({...x,body:x.body,headers:x.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let r of R.request.fns)if(r)P=await r(P,x);return P},serializedBody:bG(x),url:H})};return{buildUrl:(m)=>jG({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:I,setConfig:V,sse:{connect:u("CONNECT"),delete:u("DELETE"),get:u("GET"),head:u("HEAD"),options:u("OPTIONS"),patch:u("PATCH"),post:u("POST"),put:u("PUT"),trace:u("TRACE")},trace:D("TRACE")}};var y=XG(Re());var ZG={};c(ZG,{putApiV3TagById:()=>i1,putApiV3RemotepathmappingById:()=>Ol,putApiV3ReleaseprofileById:()=>Ql,putApiV3QualityprofileById:()=>Q1,putApiV3QualitydefinitionUpdate:()=>sl,putApiV3QualitydefinitionById:()=>pl,putApiV3NotificationById:()=>s1,putApiV3MoviefileEditor:()=>dl,putApiV3MoviefileById:()=>Dl,putApiV3MoviefileBulk:()=>Gl,putApiV3MovieEditor:()=>Vl,putApiV3MovieById:()=>d1,putApiV3MetadataById:()=>Km,putApiV3IndexerById:()=>zB,putApiV3IndexerBulk:()=>wm,putApiV3ImportlistById:()=>JB,putApiV3ImportlistBulk:()=>Pm,putApiV3ExclusionsById:()=>Mm,putApiV3DownloadclientById:()=>CB,putApiV3DownloadclientBulk:()=>rB,putApiV3DelayprofileReorderById:()=>Im,putApiV3DelayprofileById:()=>Bm,putApiV3CustomformatById:()=>gB,putApiV3CustomformatBulk:()=>tB,putApiV3CustomfilterById:()=>oP,putApiV3ConfigUiById:()=>v1,putApiV3ConfigNamingById:()=>t1,putApiV3ConfigMetadataById:()=>el,putApiV3ConfigMediamanagementById:()=>V1,putApiV3ConfigIndexerById:()=>Em,putApiV3ConfigImportlistById:()=>fm,putApiV3ConfigHostById:()=>UB,putApiV3ConfigDownloadclientById:()=>Gm,putApiV3CollectionById:()=>hP,putApiV3Collection:()=>ZP,putApiV3AutotaggingById:()=>bP,postLogin:()=>HP,postApiV3Tag:()=>Y1,postApiV3SystemShutdown:()=>J1,postApiV3SystemRestart:()=>X1,postApiV3SystemBackupRestoreUpload:()=>oR,postApiV3SystemBackupRestoreById:()=>nR,postApiV3Rootfolder:()=>$1,postApiV3Remotepathmapping:()=>wl,postApiV3Releaseprofile:()=>Ml,postApiV3ReleasePush:()=>Nl,postApiV3Release:()=>rl,postApiV3QueueGrabById:()=>H1,postApiV3QueueGrabBulk:()=>O1,postApiV3Qualityprofile:()=>M1,postApiV3NotificationTestall:()=>r1,postApiV3NotificationTest:()=>S1,postApiV3NotificationActionByName:()=>ul,postApiV3Notification:()=>l1,postApiV3MovieImport:()=>y1,postApiV3Movie:()=>B1,postApiV3MetadataTestall:()=>vm,postApiV3MetadataTest:()=>_m,postApiV3MetadataActionByName:()=>qm,postApiV3Metadata:()=>hm,postApiV3Manualimport:()=>Xm,postApiV3IndexerTestall:()=>qB,postApiV3IndexerTest:()=>vB,postApiV3IndexerActionByName:()=>Wm,postApiV3Indexer:()=>cB,postApiV3ImportlistTestall:()=>YB,postApiV3ImportlistTest:()=>ZB,postApiV3ImportlistMovie:()=>Nm,postApiV3ImportlistActionByName:()=>mm,postApiV3Importlist:()=>$B,postApiV3HistoryFailedById:()=>HB,postApiV3ExclusionsBulk:()=>Lm,postApiV3Exclusions:()=>Cm,postApiV3DownloadclientTestall:()=>TB,postApiV3DownloadclientTest:()=>MB,postApiV3DownloadclientActionByName:()=>Dm,postApiV3Downloadclient:()=>pB,postApiV3Delayprofile:()=>am,postApiV3Customformat:()=>dB,postApiV3Customfilter:()=>vP,postApiV3Command:()=>IB,postApiV3Autotagging:()=>UP,headPing:()=>ml,getPing:()=>Pl,getLogout:()=>OP,getLogin:()=>WP,getFeedV3CalendarRadarrIcs:()=>RB,getContentByPath:()=>Fl,getByPath:()=>bl,getApiV3WantedMissing:()=>Al,getApiV3WantedCutoff:()=>em,getApiV3Update:()=>Yl,getApiV3TagDetailById:()=>z1,getApiV3TagDetail:()=>K1,getApiV3TagById:()=>c1,getApiV3Tag:()=>Z1,getApiV3SystemTaskById:()=>Zl,getApiV3SystemTask:()=>Xl,getApiV3SystemStatus:()=>j1,getApiV3SystemRoutesDuplicate:()=>Jl,getApiV3SystemRoutes:()=>jl,getApiV3SystemBackup:()=>vR,getApiV3RootfolderById:()=>Ul,getApiV3Rootfolder:()=>F1,getApiV3Rename:()=>El,getApiV3RemotepathmappingById:()=>Hl,getApiV3Remotepathmapping:()=>kl,getApiV3ReleaseprofileById:()=>Ll,getApiV3Releaseprofile:()=>xl,getApiV3Release:()=>Sl,getApiV3QueueStatus:()=>U1,getApiV3QueueDetails:()=>E1,getApiV3Queue:()=>W1,getApiV3QualityprofileSchema:()=>N1,getApiV3QualityprofileById:()=>L1,getApiV3Qualityprofile:()=>x1,getApiV3QualitydefinitionLimits:()=>Cl,getApiV3QualitydefinitionById:()=>ll,getApiV3Qualitydefinition:()=>fl,getApiV3Parse:()=>tl,getApiV3NotificationSchema:()=>C1,getApiV3NotificationById:()=>f1,getApiV3Notification:()=>m1,getApiV3MoviefileById:()=>Il,getApiV3Moviefile:()=>Rl,getApiV3MovieLookupTmdb:()=>Be,getApiV3MovieLookupImdb:()=>Ie,getApiV3MovieLookup:()=>G1,getApiV3MovieByIdFolder:()=>gl,getApiV3MovieById:()=>D1,getApiV3Movie:()=>R1,getApiV3MetadataSchema:()=>zm,getApiV3MetadataById:()=>im,getApiV3Metadata:()=>Ym,getApiV3MediacoverByMovieIdByFilename:()=>Zm,getApiV3Manualimport:()=>Jm,getApiV3LogFileUpdateByFilename:()=>cl,getApiV3LogFileUpdate:()=>hl,getApiV3LogFileByFilename:()=>e1,getApiV3LogFile:()=>oB,getApiV3Log:()=>nB,getApiV3LocalizationLanguage:()=>jm,getApiV3Localization:()=>bm,getApiV3LanguageById:()=>$m,getApiV3Language:()=>Fm,getApiV3Indexerflag:()=>Um,getApiV3IndexerSchema:()=>_B,getApiV3IndexerById:()=>KB,getApiV3Indexer:()=>hB,getApiV3ImportlistSchema:()=>XB,getApiV3ImportlistMovie:()=>Qm,getApiV3ImportlistById:()=>jB,getApiV3Importlist:()=>FB,getApiV3HistorySince:()=>wB,getApiV3HistoryMovie:()=>WB,getApiV3History:()=>kB,getApiV3Health:()=>NB,getApiV3FilesystemType:()=>um,getApiV3FilesystemMediafiles:()=>QB,getApiV3Filesystem:()=>LB,getApiV3Extrafile:()=>gm,getApiV3ExclusionsPaged:()=>Sm,getApiV3ExclusionsById:()=>xm,getApiV3Exclusions:()=>sm,getApiV3DownloadclientSchema:()=>xB,getApiV3DownloadclientById:()=>sB,getApiV3Downloadclient:()=>lB,getApiV3Diskspace:()=>mB,getApiV3DelayprofileById:()=>Rm,getApiV3Delayprofile:()=>Am,getApiV3CustomformatSchema:()=>PB,getApiV3CustomformatById:()=>GB,getApiV3Customformat:()=>DB,getApiV3CustomfilterById:()=>nP,getApiV3Customfilter:()=>_P,getApiV3CreditById:()=>zP,getApiV3Credit:()=>KP,getApiV3ConfigUiById:()=>_1,getApiV3ConfigUi:()=>q1,getApiV3ConfigNamingExamples:()=>P1,getApiV3ConfigNamingById:()=>u1,getApiV3ConfigNaming:()=>g1,getApiV3ConfigMetadataById:()=>om,getApiV3ConfigMetadata:()=>nm,getApiV3ConfigMediamanagementById:()=>a1,getApiV3ConfigMediamanagement:()=>A1,getApiV3ConfigIndexerById:()=>Om,getApiV3ConfigIndexer:()=>Hm,getApiV3ConfigImportlistById:()=>pm,getApiV3ConfigImportlist:()=>lm,getApiV3ConfigHostById:()=>EB,getApiV3ConfigHost:()=>OB,getApiV3ConfigDownloadclientById:()=>ym,getApiV3ConfigDownloadclient:()=>dm,getApiV3CommandById:()=>iP,getApiV3Command:()=>BB,getApiV3CollectionById:()=>YP,getApiV3Collection:()=>XP,getApiV3Calendar:()=>VB,getApiV3BlocklistMovie:()=>JP,getApiV3Blocklist:()=>eB,getApiV3AutotaggingSchema:()=>jP,getApiV3AutotaggingById:()=>$P,getApiV3Autotagging:()=>EP,getApiV3AlttitleById:()=>kP,getApiV3Alttitle:()=>NP,getApi:()=>wP,get:()=>$l,deleteApiV3TagById:()=>h1,deleteApiV3SystemBackupById:()=>qR,deleteApiV3RootfolderById:()=>b1,deleteApiV3RemotepathmappingById:()=>Wl,deleteApiV3ReleaseprofileById:()=>Tl,deleteApiV3QueueById:()=>k1,deleteApiV3QueueBulk:()=>w1,deleteApiV3QualityprofileById:()=>T1,deleteApiV3NotificationById:()=>p1,deleteApiV3MoviefileById:()=>Bl,deleteApiV3MoviefileBulk:()=>yl,deleteApiV3MovieEditor:()=>al,deleteApiV3MovieById:()=>I1,deleteApiV3MetadataById:()=>cm,deleteApiV3IndexerById:()=>iB,deleteApiV3IndexerBulk:()=>km,deleteApiV3ImportlistById:()=>bB,deleteApiV3ImportlistBulk:()=>tm,deleteApiV3ExclusionsById:()=>rm,deleteApiV3ExclusionsBulk:()=>Tm,deleteApiV3DownloadclientById:()=>fB,deleteApiV3DownloadclientBulk:()=>SB,deleteApiV3DelayprofileById:()=>Vm,deleteApiV3CustomformatById:()=>yB,deleteApiV3CustomformatBulk:()=>uB,deleteApiV3CustomfilterById:()=>qP,deleteApiV3CommandById:()=>cP,deleteApiV3BlocklistById:()=>AB,deleteApiV3BlocklistBulk:()=>aB,deleteApiV3AutotaggingById:()=>FP});var NP=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/alttitle",...e}),kP=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/alttitle/{id}",...e}),wP=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),WP=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),HP=(e)=>(e?.client??y).post({...FG,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),OP=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),EP=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...e}),UP=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...e,headers:{"Content-Type":"application/json",...e?.headers}}),FP=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e}),$P=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e}),bP=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),jP=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/schema",...e}),vR=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup",...e}),qR=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/{id}",...e}),nR=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/restore/{id}",...e}),oR=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/restore/upload",...e}),eB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist",...e}),JP=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/movie",...e}),AB=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/{id}",...e}),aB=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),VB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/calendar",...e}),RB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v3/calendar/radarr.ics",...e}),XP=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection",...e}),ZP=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection",...e,headers:{"Content-Type":"application/json",...e?.headers}}),YP=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection/{id}",...e}),hP=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),BB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...e}),IB=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...e,headers:{"Content-Type":"application/json",...e?.headers}}),cP=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),iP=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),KP=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/credit",...e}),zP=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/credit/{id}",...e}),_P=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...e}),vP=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qP=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e}),nP=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e}),oP=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),DB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...e}),dB=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...e,headers:{"Content-Type":"application/json",...e?.headers}}),yB=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),GB=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),gB=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),uB=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),tB=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),PB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/schema",...e}),em=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/cutoff",...e}),Am=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...e}),am=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Vm=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),Rm=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),Bm=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Im=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/reorder/{id}",...e}),mB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/diskspace",...e}),lB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...e}),pB=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fB=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),sB=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),CB=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),SB=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),rB=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),xB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/schema",...e}),MB=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),TB=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/testall",...e}),Dm=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),dm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient",...e}),ym=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient/{id}",...e}),Gm=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),gm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/extrafile",...e}),LB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem",...e}),um=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/type",...e}),QB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/mediafiles",...e}),NB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/health",...e}),kB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history",...e}),wB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/since",...e}),WB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/movie",...e}),HB=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/failed/{id}",...e}),OB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host",...e}),EB=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host/{id}",...e}),UB=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),FB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...e}),$B=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...e,headers:{"Content-Type":"application/json",...e?.headers}}),bB=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),jB=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),JB=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),tm=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pm=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),XB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/schema",...e}),ZB=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),YB=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/testall",...e}),mm=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),lm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist",...e}),pm=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist/{id}",...e}),fm=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),sm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions",...e}),Cm=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Sm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/paged",...e}),rm=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/{id}",...e}),xm=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/{id}",...e}),Mm=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Tm=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Lm=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Qm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/movie",...e}),Nm=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/movie",...e,headers:{"Content-Type":"application/json",...e?.headers}}),hB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...e}),cB=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),iB=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),KB=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),zB=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),km=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wm=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_B=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/schema",...e}),vB=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qB=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/testall",...e}),Wm=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Hm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer",...e}),Om=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer/{id}",...e}),Em=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Um=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexerflag",...e}),Fm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language",...e}),$m=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language/{id}",...e}),bm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization",...e}),jm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization/language",...e}),nB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log",...e}),oB=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file",...e}),e1=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/{filename}",...e}),Jm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...e}),Xm=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Zm=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/mediacover/{movieId}/{filename}",...e}),A1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement",...e}),a1=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement/{id}",...e}),V1=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ym=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...e}),hm=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...e,headers:{"Content-Type":"application/json",...e?.headers}}),cm=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),im=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),Km=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),zm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/schema",...e}),_m=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),vm=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/testall",...e}),qm=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),nm=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/metadata",...e}),om=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/metadata/{id}",...e}),el=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/metadata/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Al=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/missing",...e}),R1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie",...e}),B1=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie",...e,headers:{"Content-Type":"application/json",...e?.headers}}),I1=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}",...e}),D1=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}",...e}),d1=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),al=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Vl=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Rl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile",...e}),Bl=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/{id}",...e}),Il=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/{id}",...e}),Dl=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),dl=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),yl=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Gl=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gl=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}/folder",...e}),y1=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/import",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Be=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/lookup/tmdb",...e}),Ie=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/lookup/imdb",...e}),G1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/lookup",...e}),g1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming",...e}),u1=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/{id}",...e}),t1=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),P1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/examples",...e}),m1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...e}),l1=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...e,headers:{"Content-Type":"application/json",...e?.headers}}),p1=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),f1=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),s1=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),C1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/schema",...e}),S1=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),r1=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/testall",...e}),ul=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),tl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/parse",...e}),Pl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),ml=(e)=>(e?.client??y).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),ll=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...e}),pl=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),fl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition",...e}),sl=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/update",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Cl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/limits",...e}),x1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...e}),M1=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),T1=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),L1=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),Q1=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),N1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/schema",...e}),k1=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/{id}",...e}),w1=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),W1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue",...e}),H1=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/grab/{id}",...e}),O1=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/grab/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),E1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/details",...e}),U1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/status",...e}),Sl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release",...e}),rl=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release",...e,headers:{"Content-Type":"application/json",...e?.headers}}),xl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile",...e}),Ml=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Tl=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),Ll=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),Ql=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Nl=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release/push",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...e}),wl=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Wl=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e}),Hl=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e}),Ol=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),El=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rename",...e}),F1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...e}),$1=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...e,headers:{"Content-Type":"application/json",...e?.headers}}),b1=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),Ul=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),Fl=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),$l=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),bl=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),j1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/status",...e}),jl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes",...e}),Jl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes/duplicate",...e}),J1=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/shutdown",...e}),X1=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/restart",...e}),Z1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...e}),Y1=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...e,headers:{"Content-Type":"application/json",...e?.headers}}),h1=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),c1=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),i1=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),K1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail",...e}),z1=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail/{id}",...e}),Xl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task",...e}),Zl=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task/{id}",...e}),_1=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui/{id}",...e}),v1=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),q1=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui",...e}),Yl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/update",...e}),hl=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/update",...e}),cl=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/update/{filename}",...e});class il{clientConfig;constructor(e){this.clientConfig=E(e),y.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return j1()}async getHealth(){return NB()}async getMovies(){return R1()}async getMovie(e){return D1({path:{id:e}})}async addMovie(e){return B1({body:e})}async updateMovie(e,A){return d1({path:{id:String(e)},body:A})}async deleteMovie(e){return I1({path:{id:e}})}async searchMovies(e){return G1({query:{term:e}})}async lookupMovieByTmdbId(e){return Be({query:{tmdbId:e}})}async lookupMovieByImdbId(e){return Ie({query:{imdbId:e}})}async lookupMovieById(e){let A=e.split(":");if(A.length!==2)throw Error('Invalid ID format. Must contain exactly one colon. Use "tmdb:123" or "imdb:tt0175142"');let[a,V]=A;if(!a||!V)throw Error('Invalid ID format. Both provider and value must be non-empty. Use "tmdb:123" or "imdb:tt0175142"');let R=a.toLowerCase();if(R!=="tmdb"&&R!=="imdb")throw Error(`Invalid provider "${a}". Must be either "tmdb" or "imdb"`);if(R==="tmdb"){let I=Number.parseInt(V,10);if(Number.isNaN(I))throw Error(`Invalid TMDB ID "${V}". Must be a numeric value`);if(!Number.isInteger(I)||I<=0)throw Error(`Invalid TMDB ID "${V}". Must be a positive integer`);return Be({query:{tmdbId:I}})}if(!/^tt\d+$/.test(V))throw Error(`Invalid IMDB ID "${V}". Must match pattern "tt" followed by digits (e.g., "tt0175142")`);return Ie({query:{imdbId:V}})}async runCommand(e){return IB({body:e})}async getCommands(){return BB()}async getRootFolders(){return F1()}async addRootFolder(e){return $1({body:{path:e}})}async deleteRootFolder(e){return b1({path:{id:e}})}async getFilesystem(e){return LB(e?{query:{path:e}}:{})}async getMediaFiles(e){return QB({query:{path:e}})}async importMovies(e){return y1({body:e})}async getQualityProfiles(){return x1()}async getQualityProfile(e){return L1({path:{id:e}})}async addQualityProfile(e){return M1({body:e})}async updateQualityProfile(e,A){return Q1({path:{id:String(e)},body:A})}async deleteQualityProfile(e){return T1({path:{id:e}})}async getQualityProfileSchema(){return N1()}async getCustomFormats(){return DB()}async getCustomFormat(e){return GB({path:{id:e}})}async addCustomFormat(e){return dB({body:e})}async updateCustomFormat(e,A){return gB({path:{id:String(e)},body:A})}async deleteCustomFormat(e){return yB({path:{id:e}})}async updateCustomFormatsBulk(e){return tB({body:e})}async deleteCustomFormatsBulk(e){return uB({body:{ids:e}})}async getCustomFormatSchema(){return PB()}async getDownloadClients(){return lB()}async getDownloadClient(e){return sB({path:{id:e}})}async addDownloadClient(e){return pB({body:e})}async updateDownloadClient(e,A){return CB({path:{id:e},body:A})}async deleteDownloadClient(e){return fB({path:{id:e}})}async updateDownloadClientsBulk(e){return rB({body:e})}async deleteDownloadClientsBulk(e){return SB({body:{ids:e}})}async getDownloadClientSchema(){return xB()}async testDownloadClient(e){return MB({body:e})}async testAllDownloadClients(){return TB()}async getNotifications(){return m1()}async getNotification(e){return f1({path:{id:e}})}async addNotification(e){return l1({body:e})}async updateNotification(e,A){return s1({path:{id:e},body:A})}async deleteNotification(e){return p1({path:{id:e}})}async getNotificationSchema(){return C1()}async testNotification(e){return S1({body:e})}async testAllNotifications(){return r1()}async getCalendar(e,A,a){let V={};if(e)V.start=e;if(A)V.end=A;if(a!==void 0)V.unmonitored=a;return VB(Object.keys(V).length>0?{query:V}:{})}async getCalendarFeed(e,A,a){let V={};if(e!==void 0)V.pastDays=e;if(A!==void 0)V.futureDays=A;if(a)V.tags=a;return RB(Object.keys(V).length>0?{query:V}:{})}async getQueue(e,A,a,V,R){let d={};if(e!==void 0)d.page=e;if(A!==void 0)d.pageSize=A;if(a)d.sortKey=a;if(V)d.sortDirection=V;if(R!==void 0)d.includeUnknownMovieItems=R;return W1(Object.keys(d).length>0?{query:d}:{})}async removeQueueItem(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return k1({path:{id:e},...Object.keys(V).length>0?{query:V}:{}})}async removeQueueItemsBulk(e,A,a){let V={ids:e};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return w1({body:V})}async grabQueueItem(e){return H1({path:{id:e}})}async grabQueueItemsBulk(e){return O1({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.movieId=e;if(A!==void 0)a.includeMovie=A;return E1(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return U1()}async getImportLists(){return FB()}async getImportList(e){return jB({path:{id:e}})}async addImportList(e){return $B({body:e})}async updateImportList(e,A){return JB({path:{id:e},body:A})}async deleteImportList(e){return bB({path:{id:e}})}async getImportListSchema(){return XB()}async testImportList(e){return ZB({body:e})}async testAllImportLists(){return YB()}async getIndexers(){return hB()}async getIndexer(e){return KB({path:{id:e}})}async addIndexer(e){return cB({body:e})}async updateIndexer(e,A){return zB({path:{id:e},body:A})}async deleteIndexer(e){return iB({path:{id:e}})}async getIndexerSchema(){return _B()}async testIndexer(e){return vB({body:e})}async testAllIndexers(){return qB()}async getHistory(e,A,a,V,R,d){let I={};if(e!==void 0)I.page=e;if(A!==void 0)I.pageSize=A;if(a)I.sortKey=a;if(V)I.sortDirection=V;if(R!==void 0)I.movieId=R;if(d)I.downloadId=d;return kB(Object.keys(I).length>0?{query:I}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.movieId=A;return wB({query:a})}async getMovieHistory(e,A){let a={movieId:e};if(A!==void 0)a.eventType=A;return WB({query:a})}async markHistoryItemFailed(e){return HB({path:{id:e}})}async getBlocklist(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return eB(Object.keys(R).length>0?{query:R}:{})}async removeBlocklistItem(e){return AB({path:{id:e}})}async removeBlocklistItemsBulk(e){return aB({body:{ids:e}})}async getHostConfig(){return OB()}async getHostConfigById(e){return EB({path:{id:e}})}async updateHostConfig(e,A){return UB({path:{id:String(e)},body:A})}async getNamingConfig(){return g1()}async getNamingConfigById(e){return u1({path:{id:e}})}async updateNamingConfig(e,A){return t1({path:{id:String(e)},body:A})}async getNamingConfigExamples(){return P1()}async getMediaManagementConfig(){return A1()}async getMediaManagementConfigById(e){return a1({path:{id:e}})}async updateMediaManagementConfig(e,A){return V1({path:{id:String(e)},body:A})}async getUiConfig(){return q1()}async getUiConfigById(e){return _1({path:{id:e}})}async updateUiConfig(e,A){return v1({path:{id:String(e)},body:A})}async restartSystem(){return X1()}async shutdownSystem(){return J1()}async getSystemBackups(){return vR()}async deleteSystemBackup(e){return qR({path:{id:e}})}async restoreSystemBackup(e){return nR({path:{id:e}})}async uploadSystemBackup(){return oR()}async getSystemLogs(){return nB()}async getLogFiles(){return oB()}async getLogFileByName(e){return e1({path:{filename:e}})}async getDiskSpace(){return mB()}async getTags(){return Z1()}async addTag(e){return Y1({body:e})}async getTag(e){return c1({path:{id:e}})}async updateTag(e,A){return i1({path:{id:String(e)},body:A})}async deleteTag(e){return h1({path:{id:e}})}async getTagDetails(){return K1()}async getTagDetailById(e){return z1({path:{id:e}})}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),y.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}var Kl=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var YG={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>Kl(A,a,R));else Kl(A,a,V)}),A}},hG={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var zl=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:d,sseMaxRetryAttempts:I,sseMaxRetryDelay:D,sseSleepFn:u,url:S,...m})=>{let B,x=u??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=d??3000,P=0,r=m.signal??new AbortController().signal;while(!0){if(r.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(B!==void 0)W.set("Last-Event-ID",B);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:r},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let s=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{s.cancel()}catch{}};r.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await s.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
24
+ `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))I=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
25
+ `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:I,retry:L}),O.length)yield k}}}finally{x.removeEventListener("abort",U),C.releaseLock()}break}catch(Q){if(A?.(Q),B!==void 0&&P>=B)break;let N=Math.min(L*2**(P-1),D??30000);await r(N)}}}()}};var lx=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},px=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},fx=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},zR=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((g)=>encodeURIComponent(g))).join(px(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let t=lx(V),B=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return _({allowReserved:e,name:a,value:D})}).join(t);return V==="label"||V==="matrix"?t+B:B},_=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},_R=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:t})=>{if(R instanceof Date)return t?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let g=[];Object.entries(R).forEach(([m,I])=>{g=[...g,m,e?I:encodeURIComponent(I)]});let S=g.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let B=fx(V),D=Object.entries(R).map(([g,S])=>_({allowReserved:e,name:V==="deepObject"?`${a}[${g}]`:g,value:S})).join(B);return V==="label"||V==="matrix"?B+D:D};var Cx=/\{[^{}]+\}/g,sx=({path:e,url:A})=>{let a=A,V=A.match(Cx);if(V)for(let R of V){let t=!1,B=R.substring(1,R.length-1),D="simple";if(B.endsWith("*"))t=!0,B=B.substring(0,B.length-1);if(B.startsWith("."))B=B.substring(1),D="label";else if(B.startsWith(";"))B=B.substring(1),D="matrix";let g=e[B];if(g===void 0||g===null)continue;if(Array.isArray(g)){a=a.replace(R,zR({explode:t,name:B,style:D,value:g}));continue}if(typeof g==="object"){a=a.replace(R,_R({explode:t,name:B,style:D,value:g,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${_({name:B,value:g})}`);continue}let S=encodeURIComponent(D==="label"?`.${g}`:g);a=a.replace(R,S)}return a},TP=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let t=R.startsWith("/")?R:`/${R}`,B=(e??"")+t;if(A)B=sx({path:A,url:B});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)B+=`?${D}`;return B};function YG(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var LP=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var QP=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let t in V){let B=V[t];if(B===void 0||B===null)continue;let D=e[t]||A;if(Array.isArray(B)){let g=zR({allowReserved:D.allowReserved,explode:!0,name:t,style:"form",value:B,...D.array});if(g)R.push(g)}else if(typeof B==="object"){let g=_R({allowReserved:D.allowReserved,explode:!0,name:t,style:"deepObject",value:B,...D.object});if(g)R.push(g)}else{let g=_({allowReserved:D.allowReserved,name:t,value:B});if(g)R.push(g)}}return R.join("&")}},NP=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},Sx=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},kP=async({security:e,...A})=>{for(let a of e){if(Sx(A,a.name))continue;let V=await LP(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},hG=(e)=>TP({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:QP(e.querySerializer),url:e.url}),cG=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=qR(e.headers,A.headers),a},xx=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},qR=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?xx(a):Object.entries(a);for(let[R,t]of V)if(t===null)A.delete(R);else if(Array.isArray(t))for(let B of t)A.append(R,B);else if(t!==void 0)A.set(R,typeof t==="object"?JSON.stringify(t):t)}return A};class vR{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var wP=()=>({error:new vR,request:new vR,response:new vR}),rx=QP({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Mx={"Content-Type":"application/json"},Re=(e={})=>({...ZG,headers:Mx,parseAs:"auto",querySerializer:rx,...e});var KG=(e={})=>{let A=cG(Re(),e),a=()=>({...A}),V=(m)=>{return A=cG(A,m),a()},R=wP(),t=async(m)=>{let I={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:qR(A.headers,m.headers),serializedBody:void 0};if(I.security)await kP({...I,security:I.security});if(I.requestValidator)await I.requestValidator(I);if(I.body!==void 0&&I.bodySerializer)I.serializedBody=I.bodySerializer(I.body);if(I.body===void 0||I.serializedBody==="")I.headers.delete("Content-Type");let r=hG(I);return{opts:I,url:r}},B=async(m)=>{let{opts:I,url:r}=await t(m),H={redirect:"follow",...I,body:YG(I)},M=new Request(r,H);for(let l of R.request.fns)if(l)M=await l(M,I);let L=I.fetch,P;try{P=await L(M)}catch(l){let C=l;for(let f of R.error.fns)if(f)C=await f(l,void 0,M,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,I);let x={request:M,response:P};if(P.ok){let l=(I.parseAs==="auto"?NP(P.headers.get("Content-Type")):I.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":C=await P[l]();break;case"json":{let f=await P.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?P.body:{data:P.body,...x}}if(l==="json"){if(I.responseValidator)await I.responseValidator(C);if(I.responseTransformer)C=await I.responseTransformer(C)}return I.responseStyle==="data"?C:{data:C,...x}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},D=(m)=>(I)=>B({...I,method:m}),g=(m)=>async(I)=>{let{opts:r,url:H}=await t(I);return MP({...r,body:r.body,headers:r.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let x of R.request.fns)if(x)P=await x(P,r);return P},serializedBody:YG(r),url:H})};return{buildUrl:(m)=>hG({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:B,setConfig:V,sse:{connect:g("CONNECT"),delete:g("DELETE"),get:g("GET"),head:g("HEAD"),options:g("OPTIONS"),patch:g("PATCH"),post:g("POST"),put:g("PUT"),trace:g("TRACE")},trace:D("TRACE")}};var d=KG(Re());var iG={};c(iG,{putApiV3TagById:()=>v1,putApiV3RemotepathmappingById:()=>El,putApiV3ReleaseprofileById:()=>Nl,putApiV3QualityprofileById:()=>W1,putApiV3QualitydefinitionUpdate:()=>sl,putApiV3QualitydefinitionById:()=>fl,putApiV3NotificationById:()=>r1,putApiV3MoviefileEditor:()=>yl,putApiV3MoviefileById:()=>dl,putApiV3MoviefileBulk:()=>gl,putApiV3MovieEditor:()=>Rl,putApiV3MovieById:()=>u1,putApiV3MetadataById:()=>_m,putApiV3IndexerById:()=>qB,putApiV3IndexerBulk:()=>Hm,putApiV3ImportlistById:()=>YB,putApiV3ImportlistBulk:()=>lm,putApiV3ExclusionsById:()=>Lm,putApiV3DownloadclientById:()=>rB,putApiV3DownloadclientBulk:()=>TB,putApiV3DelayprofileReorderById:()=>dm,putApiV3DelayprofileById:()=>Dm,putApiV3CustomformatById:()=>tB,putApiV3CustomformatBulk:()=>mB,putApiV3CustomfilterById:()=>am,putApiV3ConfigUiById:()=>eI,putApiV3ConfigNamingById:()=>p1,putApiV3ConfigMetadataById:()=>al,putApiV3ConfigMediamanagementById:()=>I1,putApiV3ConfigIndexerById:()=>Fm,putApiV3ConfigImportlistById:()=>sm,putApiV3ConfigHostById:()=>bB,putApiV3ConfigDownloadclientById:()=>um,putApiV3CollectionById:()=>iP,putApiV3Collection:()=>cP,putApiV3AutotaggingById:()=>XP,postLogin:()=>UP,postApiV3Tag:()=>i1,postApiV3SystemShutdown:()=>h1,postApiV3SystemRestart:()=>c1,postApiV3SystemBackupRestoreUpload:()=>AB,postApiV3SystemBackupRestoreById:()=>eB,postApiV3Rootfolder:()=>X1,postApiV3Remotepathmapping:()=>Wl,postApiV3Releaseprofile:()=>Tl,postApiV3ReleasePush:()=>kl,postApiV3Release:()=>rl,postApiV3QueueGrabById:()=>F1,postApiV3QueueGrabBulk:()=>$1,postApiV3Qualityprofile:()=>N1,postApiV3NotificationTestall:()=>L1,postApiV3NotificationTest:()=>T1,postApiV3NotificationActionByName:()=>tl,postApiV3Notification:()=>s1,postApiV3MovieImport:()=>t1,postApiV3Movie:()=>y1,postApiV3MetadataTestall:()=>nm,postApiV3MetadataTest:()=>qm,postApiV3MetadataActionByName:()=>om,postApiV3Metadata:()=>Km,postApiV3Manualimport:()=>Ym,postApiV3IndexerTestall:()=>e1,postApiV3IndexerTest:()=>oB,postApiV3IndexerActionByName:()=>Om,postApiV3Indexer:()=>zB,postApiV3ImportlistTestall:()=>KB,postApiV3ImportlistTest:()=>cB,postApiV3ImportlistMovie:()=>wm,postApiV3ImportlistActionByName:()=>pm,postApiV3Importlist:()=>JB,postApiV3HistoryFailedById:()=>UB,postApiV3ExclusionsBulk:()=>Nm,postApiV3Exclusions:()=>xm,postApiV3DownloadclientTestall:()=>NB,postApiV3DownloadclientTest:()=>QB,postApiV3DownloadclientActionByName:()=>ym,postApiV3Downloadclient:()=>sB,postApiV3Delayprofile:()=>Rm,postApiV3Customformat:()=>GB,postApiV3Customfilter:()=>oP,postApiV3Command:()=>dB,postApiV3Autotagging:()=>bP,headPing:()=>ll,getPing:()=>ml,getLogout:()=>FP,getLogin:()=>EP,getFeedV3CalendarRadarrIcs:()=>IB,getContentByPath:()=>$l,getByPath:()=>jl,getApiV3WantedMissing:()=>D1,getApiV3WantedCutoff:()=>pB,getApiV3Update:()=>hl,getApiV3TagDetailById:()=>n1,getApiV3TagDetail:()=>q1,getApiV3TagById:()=>_1,getApiV3Tag:()=>K1,getApiV3SystemTaskById:()=>Yl,getApiV3SystemTask:()=>Zl,getApiV3SystemStatus:()=>Y1,getApiV3SystemRoutesDuplicate:()=>Xl,getApiV3SystemRoutes:()=>Jl,getApiV3SystemBackup:()=>nR,getApiV3RootfolderById:()=>Fl,getApiV3Rootfolder:()=>J1,getApiV3Rename:()=>Ul,getApiV3RemotepathmappingById:()=>Ol,getApiV3Remotepathmapping:()=>wl,getApiV3ReleaseprofileById:()=>Ql,getApiV3Releaseprofile:()=>Ml,getApiV3Release:()=>xl,getApiV3QueueStatus:()=>j1,getApiV3QueueDetails:()=>b1,getApiV3Queue:()=>U1,getApiV3QualityprofileSchema:()=>H1,getApiV3QualityprofileById:()=>w1,getApiV3Qualityprofile:()=>Q1,getApiV3QualitydefinitionLimits:()=>Sl,getApiV3QualitydefinitionById:()=>pl,getApiV3Qualitydefinition:()=>Cl,getApiV3Parse:()=>Pl,getApiV3NotificationSchema:()=>M1,getApiV3NotificationById:()=>x1,getApiV3Notification:()=>C1,getApiV3MoviefileById:()=>Dl,getApiV3Moviefile:()=>Bl,getApiV3MovieLookupTmdb:()=>Be,getApiV3MovieLookupImdb:()=>Ie,getApiV3MovieLookup:()=>P1,getApiV3MovieByIdFolder:()=>ul,getApiV3MovieById:()=>g1,getApiV3Movie:()=>d1,getApiV3MetadataSchema:()=>vm,getApiV3MetadataById:()=>zm,getApiV3Metadata:()=>cm,getApiV3MediacoverByMovieIdByFilename:()=>hm,getApiV3Manualimport:()=>Zm,getApiV3LogFileUpdateByFilename:()=>Kl,getApiV3LogFileUpdate:()=>cl,getApiV3LogFileByFilename:()=>V1,getApiV3LogFile:()=>a1,getApiV3Log:()=>A1,getApiV3LocalizationLanguage:()=>Xm,getApiV3Localization:()=>Jm,getApiV3LanguageById:()=>jm,getApiV3Language:()=>bm,getApiV3Indexerflag:()=>$m,getApiV3IndexerSchema:()=>nB,getApiV3IndexerById:()=>vB,getApiV3Indexer:()=>iB,getApiV3ImportlistSchema:()=>hB,getApiV3ImportlistMovie:()=>km,getApiV3ImportlistById:()=>ZB,getApiV3Importlist:()=>jB,getApiV3HistorySince:()=>OB,getApiV3HistoryMovie:()=>EB,getApiV3History:()=>HB,getApiV3Health:()=>WB,getApiV3FilesystemType:()=>Pm,getApiV3FilesystemMediafiles:()=>wB,getApiV3Filesystem:()=>kB,getApiV3Extrafile:()=>tm,getApiV3ExclusionsPaged:()=>rm,getApiV3ExclusionsById:()=>Tm,getApiV3Exclusions:()=>Sm,getApiV3DownloadclientSchema:()=>LB,getApiV3DownloadclientById:()=>xB,getApiV3Downloadclient:()=>CB,getApiV3Diskspace:()=>fB,getApiV3DelayprofileById:()=>Im,getApiV3Delayprofile:()=>Vm,getApiV3CustomformatSchema:()=>lB,getApiV3CustomformatById:()=>uB,getApiV3Customformat:()=>yB,getApiV3CustomfilterById:()=>Am,getApiV3Customfilter:()=>nP,getApiV3CreditById:()=>qP,getApiV3Credit:()=>vP,getApiV3ConfigUiById:()=>o1,getApiV3ConfigUi:()=>AI,getApiV3ConfigNamingExamples:()=>f1,getApiV3ConfigNamingById:()=>l1,getApiV3ConfigNaming:()=>m1,getApiV3ConfigMetadataById:()=>Al,getApiV3ConfigMetadata:()=>el,getApiV3ConfigMediamanagementById:()=>B1,getApiV3ConfigMediamanagement:()=>R1,getApiV3ConfigIndexerById:()=>Um,getApiV3ConfigIndexer:()=>Em,getApiV3ConfigImportlistById:()=>Cm,getApiV3ConfigImportlist:()=>fm,getApiV3ConfigHostById:()=>$B,getApiV3ConfigHost:()=>FB,getApiV3ConfigDownloadclientById:()=>gm,getApiV3ConfigDownloadclient:()=>Gm,getApiV3CommandById:()=>_P,getApiV3Command:()=>DB,getApiV3CollectionById:()=>KP,getApiV3Collection:()=>hP,getApiV3Calendar:()=>BB,getApiV3BlocklistMovie:()=>YP,getApiV3Blocklist:()=>aB,getApiV3AutotaggingSchema:()=>ZP,getApiV3AutotaggingById:()=>JP,getApiV3Autotagging:()=>$P,getApiV3AlttitleById:()=>HP,getApiV3Alttitle:()=>WP,getApi:()=>OP,get:()=>bl,deleteApiV3TagById:()=>z1,deleteApiV3SystemBackupById:()=>oR,deleteApiV3RootfolderById:()=>Z1,deleteApiV3RemotepathmappingById:()=>Hl,deleteApiV3ReleaseprofileById:()=>Ll,deleteApiV3QueueById:()=>O1,deleteApiV3QueueBulk:()=>E1,deleteApiV3QualityprofileById:()=>k1,deleteApiV3NotificationById:()=>S1,deleteApiV3MoviefileById:()=>Il,deleteApiV3MoviefileBulk:()=>Gl,deleteApiV3MovieEditor:()=>Vl,deleteApiV3MovieById:()=>G1,deleteApiV3MetadataById:()=>im,deleteApiV3IndexerById:()=>_B,deleteApiV3IndexerBulk:()=>Wm,deleteApiV3ImportlistById:()=>XB,deleteApiV3ImportlistBulk:()=>mm,deleteApiV3ExclusionsById:()=>Mm,deleteApiV3ExclusionsBulk:()=>Qm,deleteApiV3DownloadclientById:()=>SB,deleteApiV3DownloadclientBulk:()=>MB,deleteApiV3DelayprofileById:()=>Bm,deleteApiV3CustomformatById:()=>gB,deleteApiV3CustomformatBulk:()=>PB,deleteApiV3CustomfilterById:()=>em,deleteApiV3CommandById:()=>zP,deleteApiV3BlocklistById:()=>VB,deleteApiV3BlocklistBulk:()=>RB,deleteApiV3AutotaggingById:()=>jP});var WP=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/alttitle",...e}),HP=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/alttitle/{id}",...e}),OP=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),EP=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),UP=(e)=>(e?.client??d).post({...XG,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),FP=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),$P=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...e}),bP=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...e,headers:{"Content-Type":"application/json",...e?.headers}}),jP=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e}),JP=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e}),XP=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ZP=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/schema",...e}),nR=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup",...e}),oR=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/{id}",...e}),eB=(e)=>(e.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/restore/{id}",...e}),AB=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/restore/upload",...e}),aB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist",...e}),YP=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/movie",...e}),VB=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/{id}",...e}),RB=(e)=>(e?.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),BB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/calendar",...e}),IB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v3/calendar/radarr.ics",...e}),hP=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection",...e}),cP=(e)=>(e?.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection",...e,headers:{"Content-Type":"application/json",...e?.headers}}),KP=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection/{id}",...e}),iP=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),DB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...e}),dB=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...e,headers:{"Content-Type":"application/json",...e?.headers}}),zP=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),_P=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),vP=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/credit",...e}),qP=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/credit/{id}",...e}),nP=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...e}),oP=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...e,headers:{"Content-Type":"application/json",...e?.headers}}),em=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e}),Am=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e}),am=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),yB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...e}),GB=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gB=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),uB=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),tB=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),PB=(e)=>(e?.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),mB=(e)=>(e?.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/schema",...e}),pB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/cutoff",...e}),Vm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...e}),Rm=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Bm=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),Im=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),Dm=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),dm=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/reorder/{id}",...e}),fB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/diskspace",...e}),CB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...e}),sB=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...e,headers:{"Content-Type":"application/json",...e?.headers}}),SB=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),xB=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),rB=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),MB=(e)=>(e?.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),TB=(e)=>(e?.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),LB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/schema",...e}),QB=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),NB=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/testall",...e}),ym=(e)=>(e.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Gm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient",...e}),gm=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient/{id}",...e}),um=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),tm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/extrafile",...e}),kB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem",...e}),Pm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/type",...e}),wB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/mediafiles",...e}),WB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/health",...e}),HB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history",...e}),OB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/since",...e}),EB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/movie",...e}),UB=(e)=>(e.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/failed/{id}",...e}),FB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host",...e}),$B=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host/{id}",...e}),bB=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),jB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...e}),JB=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...e,headers:{"Content-Type":"application/json",...e?.headers}}),XB=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),ZB=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),YB=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),mm=(e)=>(e?.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lm=(e)=>(e?.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),hB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/schema",...e}),cB=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),KB=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/testall",...e}),pm=(e)=>(e.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),fm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist",...e}),Cm=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist/{id}",...e}),sm=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Sm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions",...e}),xm=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions",...e,headers:{"Content-Type":"application/json",...e?.headers}}),rm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/paged",...e}),Mm=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/{id}",...e}),Tm=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/{id}",...e}),Lm=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qm=(e)=>(e?.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Nm=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),km=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/movie",...e}),wm=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/movie",...e,headers:{"Content-Type":"application/json",...e?.headers}}),iB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...e}),zB=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_B=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),vB=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),qB=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Wm=(e)=>(e?.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Hm=(e)=>(e?.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),nB=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/schema",...e}),oB=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),e1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/testall",...e}),Om=(e)=>(e.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Em=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer",...e}),Um=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer/{id}",...e}),Fm=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),$m=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexerflag",...e}),bm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language",...e}),jm=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language/{id}",...e}),Jm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization",...e}),Xm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization/language",...e}),A1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log",...e}),a1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file",...e}),V1=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/{filename}",...e}),Zm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...e}),Ym=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...e,headers:{"Content-Type":"application/json",...e?.headers}}),hm=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/mediacover/{movieId}/{filename}",...e}),R1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement",...e}),B1=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement/{id}",...e}),I1=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),cm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...e}),Km=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...e,headers:{"Content-Type":"application/json",...e?.headers}}),im=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),zm=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),_m=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),vm=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/schema",...e}),qm=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),nm=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/testall",...e}),om=(e)=>(e.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),el=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/metadata",...e}),Al=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/metadata/{id}",...e}),al=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/metadata/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),D1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/missing",...e}),d1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie",...e}),y1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie",...e,headers:{"Content-Type":"application/json",...e?.headers}}),G1=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}",...e}),g1=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}",...e}),u1=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vl=(e)=>(e?.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Rl=(e)=>(e?.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Bl=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile",...e}),Il=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/{id}",...e}),Dl=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/{id}",...e}),dl=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),yl=(e)=>(e?.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Gl=(e)=>(e?.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gl=(e)=>(e?.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ul=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}/folder",...e}),t1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/import",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Be=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/lookup/tmdb",...e}),Ie=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/lookup/imdb",...e}),P1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/lookup",...e}),m1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming",...e}),l1=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/{id}",...e}),p1=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),f1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/examples",...e}),C1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...e}),s1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...e,headers:{"Content-Type":"application/json",...e?.headers}}),S1=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),x1=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),r1=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),M1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/schema",...e}),T1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),L1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/testall",...e}),tl=(e)=>(e.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pl=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/parse",...e}),ml=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),ll=(e)=>(e?.client??d).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),pl=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...e}),fl=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Cl=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition",...e}),sl=(e)=>(e?.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/update",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Sl=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/limits",...e}),Q1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...e}),N1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),k1=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),w1=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),W1=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),H1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/schema",...e}),O1=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/{id}",...e}),E1=(e)=>(e?.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),U1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue",...e}),F1=(e)=>(e.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/grab/{id}",...e}),$1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/grab/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),b1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/details",...e}),j1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/status",...e}),xl=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release",...e}),rl=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ml=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile",...e}),Tl=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ll=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),Ql=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),Nl=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),kl=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release/push",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wl=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...e}),Wl=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Hl=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e}),Ol=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e}),El=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ul=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rename",...e}),J1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...e}),X1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Z1=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),Fl=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),$l=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),bl=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),jl=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),Y1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/status",...e}),Jl=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes",...e}),Xl=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes/duplicate",...e}),h1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/shutdown",...e}),c1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/restart",...e}),K1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...e}),i1=(e)=>(e?.client??d).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...e,headers:{"Content-Type":"application/json",...e?.headers}}),z1=(e)=>(e.client??d).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),_1=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),v1=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),q1=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail",...e}),n1=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail/{id}",...e}),Zl=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task",...e}),Yl=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task/{id}",...e}),o1=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui/{id}",...e}),eI=(e)=>(e.client??d).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),AI=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui",...e}),hl=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/update",...e}),cl=(e)=>(e?.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/update",...e}),Kl=(e)=>(e.client??d).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/update/{filename}",...e});class il{clientConfig;constructor(e){this.clientConfig=E(e),d.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return Y1()}async getHealth(){return WB()}async getMovies(){return d1()}async getMovie(e){return g1({path:{id:e}})}async addMovie(e){return y1({body:e})}async updateMovie(e,A){return u1({path:{id:String(e)},body:A})}async deleteMovie(e,A){return G1({path:{id:e},...A?{query:A}:{}})}async searchMovies(e){return P1({query:{term:e}})}async lookupMovieByTmdbId(e){return Be({query:{tmdbId:e}})}async lookupMovieByImdbId(e){return Ie({query:{imdbId:e}})}async lookupMovieById(e){let A=e.split(":");if(A.length!==2)throw Error('Invalid ID format. Must contain exactly one colon. Use "tmdb:123" or "imdb:tt0175142"');let[a,V]=A;if(!a||!V)throw Error('Invalid ID format. Both provider and value must be non-empty. Use "tmdb:123" or "imdb:tt0175142"');let R=a.toLowerCase();if(R!=="tmdb"&&R!=="imdb")throw Error(`Invalid provider "${a}". Must be either "tmdb" or "imdb"`);if(R==="tmdb"){let B=Number.parseInt(V,10);if(Number.isNaN(B))throw Error(`Invalid TMDB ID "${V}". Must be a numeric value`);if(!Number.isInteger(B)||B<=0)throw Error(`Invalid TMDB ID "${V}". Must be a positive integer`);return Be({query:{tmdbId:B}})}if(!/^tt\d+$/.test(V))throw Error(`Invalid IMDB ID "${V}". Must match pattern "tt" followed by digits (e.g., "tt0175142")`);return Ie({query:{imdbId:V}})}async runCommand(e){return dB({body:e})}async getCommands(){return DB()}async getRootFolders(){return J1()}async addRootFolder(e){return X1({body:{path:e}})}async deleteRootFolder(e){return Z1({path:{id:e}})}async getFilesystem(e){return kB(e?{query:{path:e}}:{})}async getMediaFiles(e){return wB({query:{path:e}})}async importMovies(e){return t1({body:e})}async getQualityProfiles(){return Q1()}async getQualityProfile(e){return w1({path:{id:e}})}async addQualityProfile(e){return N1({body:e})}async updateQualityProfile(e,A){return W1({path:{id:String(e)},body:A})}async deleteQualityProfile(e){return k1({path:{id:e}})}async getQualityProfileSchema(){return H1()}async getCustomFormats(){return yB()}async getCustomFormat(e){return uB({path:{id:e}})}async addCustomFormat(e){return GB({body:e})}async updateCustomFormat(e,A){return tB({path:{id:String(e)},body:A})}async deleteCustomFormat(e){return gB({path:{id:e}})}async updateCustomFormatsBulk(e){return mB({body:e})}async deleteCustomFormatsBulk(e){return PB({body:{ids:e}})}async getCustomFormatSchema(){return lB()}async getDownloadClients(){return CB()}async getDownloadClient(e){return xB({path:{id:e}})}async addDownloadClient(e){return sB({body:e})}async updateDownloadClient(e,A){return rB({path:{id:e},body:A})}async deleteDownloadClient(e){return SB({path:{id:e}})}async updateDownloadClientsBulk(e){return TB({body:e})}async deleteDownloadClientsBulk(e){return MB({body:{ids:e}})}async getDownloadClientSchema(){return LB()}async testDownloadClient(e){return QB({body:e})}async testAllDownloadClients(){return NB()}async getNotifications(){return C1()}async getNotification(e){return x1({path:{id:e}})}async addNotification(e){return s1({body:e})}async updateNotification(e,A){return r1({path:{id:e},body:A})}async deleteNotification(e){return S1({path:{id:e}})}async getNotificationSchema(){return M1()}async testNotification(e){return T1({body:e})}async testAllNotifications(){return L1()}async getCalendar(e,A,a){let V={};if(e)V.start=e;if(A)V.end=A;if(a!==void 0)V.unmonitored=a;return BB(Object.keys(V).length>0?{query:V}:{})}async getCalendarFeed(e,A,a){let V={};if(e!==void 0)V.pastDays=e;if(A!==void 0)V.futureDays=A;if(a)V.tags=a;return IB(Object.keys(V).length>0?{query:V}:{})}async getQueue(e,A,a,V,R){let t={};if(e!==void 0)t.page=e;if(A!==void 0)t.pageSize=A;if(a)t.sortKey=a;if(V)t.sortDirection=V;if(R!==void 0)t.includeUnknownMovieItems=R;return U1(Object.keys(t).length>0?{query:t}:{})}async removeQueueItem(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return O1({path:{id:e},...Object.keys(V).length>0?{query:V}:{}})}async removeQueueItemsBulk(e,A,a){let V={ids:e};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return E1({body:V})}async grabQueueItem(e){return F1({path:{id:e}})}async grabQueueItemsBulk(e){return $1({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.movieId=e;if(A!==void 0)a.includeMovie=A;return b1(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return j1()}async getImportLists(){return jB()}async getImportList(e){return ZB({path:{id:e}})}async addImportList(e){return JB({body:e})}async updateImportList(e,A){return YB({path:{id:e},body:A})}async deleteImportList(e){return XB({path:{id:e}})}async getImportListSchema(){return hB()}async testImportList(e){return cB({body:e})}async testAllImportLists(){return KB()}async getIndexers(){return iB()}async getIndexer(e){return vB({path:{id:e}})}async addIndexer(e){return zB({body:e})}async updateIndexer(e,A){return qB({path:{id:e},body:A})}async deleteIndexer(e){return _B({path:{id:e}})}async getIndexerSchema(){return nB()}async testIndexer(e){return oB({body:e})}async testAllIndexers(){return e1()}async getHistory(e,A,a,V,R,t){let B={};if(e!==void 0)B.page=e;if(A!==void 0)B.pageSize=A;if(a)B.sortKey=a;if(V)B.sortDirection=V;if(R!==void 0)B.movieId=R;if(t)B.downloadId=t;return HB(Object.keys(B).length>0?{query:B}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.movieId=A;return OB({query:a})}async getMovieHistory(e,A){let a={movieId:e};if(A!==void 0)a.eventType=A;return EB({query:a})}async markHistoryItemFailed(e){return UB({path:{id:e}})}async getBlocklist(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return aB(Object.keys(R).length>0?{query:R}:{})}async removeBlocklistItem(e){return VB({path:{id:e}})}async removeBlocklistItemsBulk(e){return RB({body:{ids:e}})}async getWantedMissing(e,A){let a={};if(e!==void 0)a.page=e;if(A!==void 0)a.pageSize=A;return D1(Object.keys(a).length>0?{query:a}:{})}async getWantedCutoff(e,A){let a={};if(e!==void 0)a.page=e;if(A!==void 0)a.pageSize=A;return pB(Object.keys(a).length>0?{query:a}:{})}async getHostConfig(){return FB()}async getHostConfigById(e){return $B({path:{id:e}})}async updateHostConfig(e,A){return bB({path:{id:String(e)},body:A})}async getNamingConfig(){return m1()}async getNamingConfigById(e){return l1({path:{id:e}})}async updateNamingConfig(e,A){return p1({path:{id:String(e)},body:A})}async getNamingConfigExamples(){return f1()}async getMediaManagementConfig(){return R1()}async getMediaManagementConfigById(e){return B1({path:{id:e}})}async updateMediaManagementConfig(e,A){return I1({path:{id:String(e)},body:A})}async getUiConfig(){return AI()}async getUiConfigById(e){return o1({path:{id:e}})}async updateUiConfig(e,A){return eI({path:{id:String(e)},body:A})}async restartSystem(){return c1()}async shutdownSystem(){return h1()}async getSystemBackups(){return nR()}async deleteSystemBackup(e){return oR({path:{id:e}})}async restoreSystemBackup(e){return eB({path:{id:e}})}async uploadSystemBackup(){return AB()}async getSystemLogs(){return A1()}async getLogFiles(){return a1()}async getLogFileByName(e){return V1({path:{filename:e}})}async getDiskSpace(){return fB()}async getTags(){return K1()}async addTag(e){return i1({body:e})}async getTag(e){return _1({path:{id:e}})}async updateTag(e,A){return v1({path:{id:String(e)},body:A})}async deleteTag(e){return z1({path:{id:e}})}async getTagDetails(){return q1()}async getTagDetailById(e){return n1({path:{id:e}})}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),d.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}var zl=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var zG={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>zl(A,a,R));else zl(A,a,V)}),A}},_G={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var _l=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:t,sseMaxRetryAttempts:B,sseMaxRetryDelay:D,sseSleepFn:g,url:S,...m})=>{let I,r=g??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=t??3000,P=0,x=m.signal??new AbortController().signal;while(!0){if(x.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let C=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{C.cancel()}catch{}};x.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await C.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
26
26
  `).replace(/\r/g,`
27
27
  `);let F=f.split(`
28
28
 
29
29
  `);f=F.pop()??"";for(let Y of F){let h=Y.split(`
30
- `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))B=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
31
- `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:B,retry:L}),O.length)yield k}}}finally{r.removeEventListener("abort",U),s.releaseLock()}break}catch(Q){if(A?.(Q),I!==void 0&&P>=I)break;let N=Math.min(L*2**(P-1),D??30000);await x(N)}}}()}};var Tr=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Lr=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Qr=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},n1=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((u)=>encodeURIComponent(u))).join(Lr(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let d=Tr(V),I=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return v({allowReserved:e,name:a,value:D})}).join(d);return V==="label"||V==="matrix"?d+I:I},v=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},o1=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:d})=>{if(R instanceof Date)return d?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let u=[];Object.entries(R).forEach(([m,B])=>{u=[...u,m,e?B:encodeURIComponent(B)]});let S=u.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let I=Qr(V),D=Object.entries(R).map(([u,S])=>v({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(I);return V==="label"||V==="matrix"?I+D:D};var Nr=/\{[^{}]+\}/g,kr=({path:e,url:A})=>{let a=A,V=A.match(Nr);if(V)for(let R of V){let d=!1,I=R.substring(1,R.length-1),D="simple";if(I.endsWith("*"))d=!0,I=I.substring(0,I.length-1);if(I.startsWith("."))I=I.substring(1),D="label";else if(I.startsWith(";"))I=I.substring(1),D="matrix";let u=e[I];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,n1({explode:d,name:I,style:D,value:u}));continue}if(typeof u==="object"){a=a.replace(R,o1({explode:d,name:I,style:D,value:u,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${v({name:I,value:u})}`);continue}let S=encodeURIComponent(D==="label"?`.${u}`:u);a=a.replace(R,S)}return a},_l=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let d=R.startsWith("/")?R:`/${R}`,I=(e??"")+d;if(A)I=kr({path:A,url:I});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)I+=`?${D}`;return I};function cG(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var vl=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var ql=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let d in V){let I=V[d];if(I===void 0||I===null)continue;let D=e[d]||A;if(Array.isArray(I)){let u=n1({allowReserved:D.allowReserved,explode:!0,name:d,style:"form",value:I,...D.array});if(u)R.push(u)}else if(typeof I==="object"){let u=o1({allowReserved:D.allowReserved,explode:!0,name:d,style:"deepObject",value:I,...D.object});if(u)R.push(u)}else{let u=v({allowReserved:D.allowReserved,name:d,value:I});if(u)R.push(u)}}return R.join("&")}},nl=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},wr=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},ol=async({security:e,...A})=>{for(let a of e){if(wr(A,a.name))continue;let V=await vl(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},iG=(e)=>_l({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:ql(e.querySerializer),url:e.url}),KG=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=AI(e.headers,A.headers),a},Wr=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},AI=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?Wr(a):Object.entries(a);for(let[R,d]of V)if(d===null)A.delete(R);else if(Array.isArray(d))for(let I of d)A.append(R,I);else if(d!==void 0)A.set(R,typeof d==="object"?JSON.stringify(d):d)}return A};class eI{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var ep=()=>({error:new eI,request:new eI,response:new eI}),Hr=ql({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Or={"Content-Type":"application/json"},De=(e={})=>({...hG,headers:Or,parseAs:"auto",querySerializer:Hr,...e});var zG=(e={})=>{let A=KG(De(),e),a=()=>({...A}),V=(m)=>{return A=KG(A,m),a()},R=ep(),d=async(m)=>{let B={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:AI(A.headers,m.headers),serializedBody:void 0};if(B.security)await ol({...B,security:B.security});if(B.requestValidator)await B.requestValidator(B);if(B.body!==void 0&&B.bodySerializer)B.serializedBody=B.bodySerializer(B.body);if(B.body===void 0||B.serializedBody==="")B.headers.delete("Content-Type");let x=iG(B);return{opts:B,url:x}},I=async(m)=>{let{opts:B,url:x}=await d(m),H={redirect:"follow",...B,body:cG(B)},M=new Request(x,H);for(let l of R.request.fns)if(l)M=await l(M,B);let L=B.fetch,P;try{P=await L(M)}catch(l){let s=l;for(let f of R.error.fns)if(f)s=await f(l,void 0,M,B);if(s=s||{},B.throwOnError)throw s;return B.responseStyle==="data"?void 0:{error:s,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,B);let r={request:M,response:P};if(P.ok){let l=(B.parseAs==="auto"?nl(P.headers.get("Content-Type")):B.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return B.responseStyle==="data"?f:{data:f,...r}}let s;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":s=await P[l]();break;case"json":{let f=await P.text();s=f?JSON.parse(f):{};break}case"stream":return B.responseStyle==="data"?P.body:{data:P.body,...r}}if(l==="json"){if(B.responseValidator)await B.responseValidator(s);if(B.responseTransformer)s=await B.responseTransformer(s)}return B.responseStyle==="data"?s:{data:s,...r}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,B);if(w=w||{},B.throwOnError)throw w;return B.responseStyle==="data"?void 0:{error:w,...r}},D=(m)=>(B)=>I({...B,method:m}),u=(m)=>async(B)=>{let{opts:x,url:H}=await d(B);return zl({...x,body:x.body,headers:x.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let r of R.request.fns)if(r)P=await r(P,x);return P},serializedBody:cG(x),url:H})};return{buildUrl:(m)=>iG({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:I,setConfig:V,sse:{connect:u("CONNECT"),delete:u("DELETE"),get:u("GET"),head:u("HEAD"),options:u("OPTIONS"),patch:u("PATCH"),post:u("POST"),put:u("PUT"),trace:u("TRACE")},trace:D("TRACE")}};var t=zG(De());var _G={};c(_G,{putApiV1TagById:()=>ed,putApiV1RootfolderById:()=>Vs,putApiV1RemotepathmappingById:()=>nf,putApiV1ReleaseprofileById:()=>cf,putApiV1QualityprofileById:()=>FD,putApiV1QualitydefinitionUpdate:()=>bf,putApiV1QualitydefinitionById:()=>Ff,putApiV1NotificationById:()=>ND,putApiV1MetadataprofileById:()=>Qf,putApiV1MetadataById:()=>ff,putApiV1IndexerById:()=>DD,putApiV1IndexerBulk:()=>Af,putApiV1ImportlistexclusionById:()=>op,putApiV1ImportlistById:()=>oI,putApiV1ImportlistBulk:()=>Kp,putApiV1DownloadclientById:()=>$I,putApiV1DownloadclientBulk:()=>$p,putApiV1DelayprofileReorderById:()=>Up,putApiV1DelayprofileById:()=>Ep,putApiV1CustomformatById:()=>QI,putApiV1CustomfilterById:()=>Qp,putApiV1ConfigUiById:()=>Rd,putApiV1ConfigNamingById:()=>rD,putApiV1ConfigMetadataproviderById:()=>sD,putApiV1ConfigMediamanagementById:()=>lD,putApiV1ConfigIndexerById:()=>Bf,putApiV1ConfigHostById:()=>zI,putApiV1ConfigDownloadclientById:()=>Xp,putApiV1ConfigDevelopmentById:()=>WI,putApiV1BookfileEditor:()=>mp,putApiV1BookfileById:()=>Pp,putApiV1BookMonitor:()=>dp,putApiV1BookEditor:()=>Gp,putApiV1BookById:()=>sI,putApiV1AuthorEditor:()=>Ip,putApiV1AuthorById:()=>II,postLogin:()=>Vp,postApiV1Tag:()=>qD,postApiV1SystemShutdown:()=>zD,postApiV1SystemRestart:()=>_D,postApiV1SystemBackupRestoreUpload:()=>gI,postApiV1SystemBackupRestoreById:()=>GI,postApiV1Rootfolder:()=>iD,postApiV1Remotepathmapping:()=>_f,postApiV1Releaseprofile:()=>Zf,postApiV1ReleasePush:()=>Kf,postApiV1Release:()=>Jf,postApiV1QueueGrabById:()=>XD,postApiV1QueueGrabBulk:()=>ZD,postApiV1Qualityprofile:()=>OD,postApiV1NotificationTestall:()=>WD,postApiV1NotificationTest:()=>wD,postApiV1NotificationActionByName:()=>Wf,postApiV1Notification:()=>TD,postApiV1Metadataprofile:()=>Mf,postApiV1MetadataTestall:()=>Sf,postApiV1MetadataTest:()=>Cf,postApiV1MetadataActionByName:()=>rf,postApiV1Metadata:()=>mf,postApiV1Manualimport:()=>gf,postApiV1IndexerTestall:()=>GD,postApiV1IndexerTest:()=>yD,postApiV1IndexerActionByName:()=>af,postApiV1Indexer:()=>RD,postApiV1Importlistexclusion:()=>vp,postApiV1ImportlistTestall:()=>aD,postApiV1ImportlistTest:()=>AD,postApiV1ImportlistActionByName:()=>zp,postApiV1Importlist:()=>vI,postApiV1HistoryFailedById:()=>cI,postApiV1DownloadclientTestall:()=>JI,postApiV1DownloadclientTest:()=>jI,postApiV1DownloadclientActionByName:()=>bp,postApiV1Downloadclient:()=>EI,postApiV1Delayprofile:()=>Wp,postApiV1Customformat:()=>MI,postApiV1Customfilter:()=>Mp,postApiV1Command:()=>rI,postApiV1Bookshelf:()=>pp,postApiV1Book:()=>lI,postApiV1Author:()=>VI,headPing:()=>Ef,getPing:()=>Of,getLogout:()=>Rp,getLogin:()=>ap,getFeedV1CalendarReadarrIcs:()=>Cp,getContentByPath:()=>Is,getByPath:()=>ds,getApiV1WantedMissingById:()=>wf,getApiV1WantedMissing:()=>kf,getApiV1WantedCutoffById:()=>kp,getApiV1WantedCutoff:()=>Np,getApiV1Update:()=>ts,getApiV1TagDetailById:()=>ad,getApiV1TagDetail:()=>Ad,getApiV1TagById:()=>oD,getApiV1Tag:()=>vD,getApiV1SystemTaskById:()=>us,getApiV1SystemTask:()=>gs,getApiV1SystemStatus:()=>KD,getApiV1SystemRoutesDuplicate:()=>Gs,getApiV1SystemRoutes:()=>ys,getApiV1SystemBackup:()=>dI,getApiV1Series:()=>Bs,getApiV1Search:()=>Rs,getApiV1RootfolderById:()=>as,getApiV1Rootfolder:()=>cD,getApiV1Retag:()=>es,getApiV1Rename:()=>of,getApiV1RemotepathmappingById:()=>qf,getApiV1Remotepathmapping:()=>zf,getApiV1ReleaseprofileById:()=>hf,getApiV1Releaseprofile:()=>Xf,getApiV1Release:()=>jf,getApiV1QueueStatus:()=>hD,getApiV1QueueDetails:()=>YD,getApiV1Queue:()=>JD,getApiV1QualityprofileSchema:()=>$D,getApiV1QualityprofileById:()=>UD,getApiV1Qualityprofile:()=>HD,getApiV1QualitydefinitionById:()=>Uf,getApiV1Qualitydefinition:()=>$f,getApiV1Parse:()=>Hf,getApiV1NotificationSchema:()=>kD,getApiV1NotificationById:()=>QD,getApiV1Notification:()=>MD,getApiV1MetadataprofileSchema:()=>Nf,getApiV1MetadataprofileById:()=>Lf,getApiV1Metadataprofile:()=>xf,getApiV1MetadataSchema:()=>sf,getApiV1MetadataById:()=>pf,getApiV1Metadata:()=>Pf,getApiV1MediacoverBookByBookIdByFilename:()=>tf,getApiV1MediacoverAuthorByAuthorIdByFilename:()=>uf,getApiV1Manualimport:()=>Gf,getApiV1LogFileUpdateByFilename:()=>ms,getApiV1LogFileUpdate:()=>Ps,getApiV1LogFileByFilename:()=>tD,getApiV1LogFile:()=>uD,getApiV1Log:()=>gD,getApiV1Localization:()=>yf,getApiV1LanguageById:()=>df,getApiV1Language:()=>Df,getApiV1Indexerflag:()=>If,getApiV1IndexerSchema:()=>dD,getApiV1IndexerById:()=>ID,getApiV1Indexer:()=>VD,getApiV1ImportlistexclusionById:()=>np,getApiV1Importlistexclusion:()=>_p,getApiV1ImportlistSchema:()=>eD,getApiV1ImportlistById:()=>nI,getApiV1Importlist:()=>_I,getApiV1HistorySince:()=>YI,getApiV1HistoryAuthor:()=>hI,getApiV1History:()=>ZI,getApiV1Health:()=>XI,getApiV1FilesystemType:()=>hp,getApiV1FilesystemMediafiles:()=>cp,getApiV1Filesystem:()=>Yp,getApiV1Edition:()=>Zp,getApiV1DownloadclientSchema:()=>bI,getApiV1DownloadclientById:()=>FI,getApiV1Downloadclient:()=>OI,getApiV1Diskspace:()=>HI,getApiV1DelayprofileById:()=>Op,getApiV1Delayprofile:()=>wp,getApiV1CustomformatSchema:()=>NI,getApiV1CustomformatById:()=>LI,getApiV1Customformat:()=>xI,getApiV1CustomfilterById:()=>Lp,getApiV1Customfilter:()=>xp,getApiV1ConfigUiById:()=>Vd,getApiV1ConfigUi:()=>Bd,getApiV1ConfigNamingExamples:()=>xD,getApiV1ConfigNamingById:()=>SD,getApiV1ConfigNaming:()=>CD,getApiV1ConfigMetadataproviderById:()=>fD,getApiV1ConfigMetadataprovider:()=>pD,getApiV1ConfigMediamanagementById:()=>mD,getApiV1ConfigMediamanagement:()=>PD,getApiV1ConfigIndexerById:()=>Rf,getApiV1ConfigIndexer:()=>Vf,getApiV1ConfigHostById:()=>KI,getApiV1ConfigHost:()=>iI,getApiV1ConfigDownloadclientById:()=>Jp,getApiV1ConfigDownloadclient:()=>jp,getApiV1ConfigDevelopmentById:()=>wI,getApiV1ConfigDevelopment:()=>kI,getApiV1CommandById:()=>rp,getApiV1Command:()=>SI,getApiV1CalendarById:()=>sp,getApiV1Calendar:()=>fp,getApiV1BookfileById:()=>tp,getApiV1Bookfile:()=>gp,getApiV1BookLookup:()=>CI,getApiV1BookByIdOverview:()=>Dp,getApiV1BookById:()=>fI,getApiV1Book:()=>mI,getApiV1Blocklist:()=>uI,getApiV1AuthorLookup:()=>DI,getApiV1AuthorById:()=>BI,getApiV1Author:()=>aI,getApi:()=>Ap,get:()=>Ds,deleteApiV1TagById:()=>nD,deleteApiV1SystemBackupById:()=>yI,deleteApiV1RootfolderById:()=>As,deleteApiV1RemotepathmappingById:()=>vf,deleteApiV1ReleaseprofileById:()=>Yf,deleteApiV1QueueById:()=>bD,deleteApiV1QueueBulk:()=>jD,deleteApiV1QualityprofileById:()=>ED,deleteApiV1NotificationById:()=>LD,deleteApiV1MetadataprofileById:()=>Tf,deleteApiV1MetadataById:()=>lf,deleteApiV1IndexerById:()=>BD,deleteApiV1IndexerBulk:()=>ef,deleteApiV1ImportlistexclusionById:()=>qp,deleteApiV1ImportlistById:()=>qI,deleteApiV1ImportlistBulk:()=>ip,deleteApiV1DownloadclientById:()=>UI,deleteApiV1DownloadclientBulk:()=>Fp,deleteApiV1DelayprofileById:()=>Hp,deleteApiV1CustomformatById:()=>TI,deleteApiV1CustomfilterById:()=>Tp,deleteApiV1CommandById:()=>Sp,deleteApiV1BookfileById:()=>up,deleteApiV1BookfileBulk:()=>lp,deleteApiV1BookEditor:()=>yp,deleteApiV1BookById:()=>pI,deleteApiV1BlocklistById:()=>tI,deleteApiV1BlocklistBulk:()=>PI,deleteApiV1AuthorEditor:()=>Bp,deleteApiV1AuthorById:()=>RI});var Ap=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),ap=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),Vp=(e)=>(e?.client??t).post({...YG,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),Rp=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),aI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author",...e}),VI=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author",...e,headers:{"Content-Type":"application/json",...e?.headers}}),RI=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/{id}",...e}),BI=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/{id}",...e}),II=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Bp=(e)=>(e?.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ip=(e)=>(e?.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),DI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/lookup",...e}),dI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup",...e}),yI=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/{id}",...e}),GI=(e)=>(e.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/{id}",...e}),gI=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/upload",...e}),uI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist",...e}),tI=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/{id}",...e}),PI=(e)=>(e?.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),mI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book",...e}),lI=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Dp=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}/overview",...e}),pI=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}",...e}),fI=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}",...e}),sI=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),dp=(e)=>(e?.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/monitor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),yp=(e)=>(e?.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Gp=(e)=>(e?.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gp=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile",...e}),up=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/{id}",...e}),tp=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/{id}",...e}),Pp=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),mp=(e)=>(e?.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lp=(e)=>(e?.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),CI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/lookup",...e}),pp=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookshelf",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fp=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar",...e}),sp=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar/{id}",...e}),Cp=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v1/calendar/readarr.ics",...e}),SI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e}),rI=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Sp=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),rp=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),xp=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e}),Mp=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Tp=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),Lp=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),Qp=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),xI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...e}),MI=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...e,headers:{"Content-Type":"application/json",...e?.headers}}),TI=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e}),LI=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e}),QI=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),NI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/schema",...e}),Np=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff",...e}),kp=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff/{id}",...e}),wp=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...e}),Wp=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Hp=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),Op=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),Ep=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Up=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/reorder/{id}",...e}),kI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development",...e}),wI=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...e}),WI=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),HI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/diskspace",...e}),OI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e}),EI=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e,headers:{"Content-Type":"application/json",...e?.headers}}),UI=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),FI=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),$I=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fp=(e)=>(e?.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),$p=(e)=>(e?.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),bI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...e}),jI=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),JI=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...e}),bp=(e)=>(e.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),jp=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...e}),Jp=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e}),Xp=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Zp=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/edition",...e}),Yp=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...e}),hp=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...e}),cp=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/mediafiles",...e}),XI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...e}),ZI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...e}),YI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...e}),hI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/author",...e}),cI=(e)=>(e.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/failed/{id}",...e}),iI=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host",...e}),KI=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e}),zI=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),_I=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...e}),vI=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qI=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),nI=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),oI=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ip=(e)=>(e?.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Kp=(e)=>(e?.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),eD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/schema",...e}),AD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),aD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/testall",...e}),zp=(e)=>(e.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),_p=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...e}),vp=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qp=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),np=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),op=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),VD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e}),RD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),BD=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),ID=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),DD=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ef=(e)=>(e?.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Af=(e)=>(e?.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),dD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...e}),yD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),GD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...e}),af=(e)=>(e.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer",...e}),Rf=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...e}),Bf=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),If=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerflag",...e}),Df=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language",...e}),df=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language/{id}",...e}),yf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization",...e}),gD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log",...e}),uD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...e}),tD=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/{filename}",...e}),Gf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...e}),gf=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...e,headers:{"Content-Type":"application/json",...e?.headers}}),uf=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/author/{authorId}/{filename}",...e}),tf=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/book/{bookId}/{filename}",...e}),PD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement",...e}),mD=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...e}),lD=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...e}),mf=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lf=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),pf=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),ff=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),sf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/schema",...e}),Cf=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Sf=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/testall",...e}),rf=(e)=>(e.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),xf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...e}),Mf=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Tf=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),Lf=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),Qf=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Nf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/schema",...e}),pD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider",...e}),fD=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...e}),sD=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),kf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing",...e}),wf=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing/{id}",...e}),CD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming",...e}),SD=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...e}),rD=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),xD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/examples",...e}),MD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e}),TD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e,headers:{"Content-Type":"application/json",...e?.headers}}),LD=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),QD=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),ND=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),kD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...e}),wD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),WD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...e}),Wf=(e)=>(e.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Hf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/parse",...e}),Of=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),Ef=(e)=>(e?.client??t).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),Uf=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...e}),Ff=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),$f=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition",...e}),bf=(e)=>(e?.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/update",...e,headers:{"Content-Type":"application/json",...e?.headers}}),HD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...e}),OD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ED=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),UD=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),FD=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),$D=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/schema",...e}),bD=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/{id}",...e}),jD=(e)=>(e?.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),JD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue",...e}),XD=(e)=>(e.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/{id}",...e}),ZD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),YD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/details",...e}),hD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/status",...e}),jf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...e}),Jf=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Xf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...e}),Zf=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Yf=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e}),hf=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e}),cf=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Kf=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release/push",...e,headers:{"Content-Type":"application/json",...e?.headers}}),zf=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...e}),_f=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...e,headers:{"Content-Type":"application/json",...e?.headers}}),vf=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),qf=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),nf=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),of=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rename",...e}),es=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/retag",...e}),cD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...e}),iD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...e,headers:{"Content-Type":"application/json",...e?.headers}}),As=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),as=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),Vs=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Rs=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...e}),Bs=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/series",...e}),Is=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),Ds=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),ds=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),KD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...e}),ys=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...e}),Gs=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes/duplicate",...e}),zD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/shutdown",...e}),_D=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...e}),vD=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e}),qD=(e)=>(e?.client??t).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e,headers:{"Content-Type":"application/json",...e?.headers}}),nD=(e)=>(e.client??t).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),oD=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),ed=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ad=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail",...e}),ad=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail/{id}",...e}),gs=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task",...e}),us=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task/{id}",...e}),Vd=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e}),Rd=(e)=>(e.client??t).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Bd=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui",...e}),ts=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...e}),Ps=(e)=>(e?.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update",...e}),ms=(e)=>(e.client??t).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update/{filename}",...e});class ls{clientConfig;constructor(e){this.clientConfig=E(e),t.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return KD()}async getHealth(){return XI()}async getAuthors(){return aI()}async getAuthor(e){return BI({path:{id:e}})}async addAuthor(e){return VI({body:e})}async updateAuthor(e,A){return II({path:{id:String(e)},body:A})}async deleteAuthor(e){return RI({path:{id:e}})}async getBooks(){return mI()}async getBook(e){return fI({path:{id:e}})}async searchAuthors(e){return DI({query:{term:e}})}async runCommand(e){return rI({body:e})}async getCommands(){return SI()}async getRootFolders(){return cD()}async addRootFolder(e){return iD({body:{path:e}})}async getHostConfig(){return iI()}async getHostConfigById(e){return KI({path:{id:e}})}async updateHostConfig(e,A){return zI({path:{id:String(e)},body:A})}async getNamingConfig(){return CD()}async getNamingConfigById(e){return SD({path:{id:e}})}async updateNamingConfig(e,A){return rD({path:{id:String(e)},body:A})}async getNamingConfigExamples(){return xD()}async getMediaManagementConfig(){return PD()}async getMediaManagementConfigById(e){return mD({path:{id:e}})}async updateMediaManagementConfig(e,A){return lD({path:{id:String(e)},body:A})}async getUiConfig(){return Bd()}async getUiConfigById(e){return Vd({path:{id:e}})}async updateUiConfig(e,A){return Rd({path:{id:String(e)},body:A})}async getDevelopmentConfig(){return kI()}async getDevelopmentConfigById(e){return wI({path:{id:e}})}async updateDevelopmentConfig(e,A){return WI({path:{id:String(e)},body:A})}async getMetadataProviderConfig(){return pD()}async getMetadataProviderConfigById(e){return fD({path:{id:e}})}async updateMetadataProviderConfig(e,A){return sD({path:{id:String(e)},body:A})}async restartSystem(){return _D()}async shutdownSystem(){return zD()}async getSystemBackups(){return dI()}async deleteSystemBackup(e){return yI({path:{id:e}})}async restoreSystemBackup(e){return GI({path:{id:e}})}async uploadSystemBackup(){return gI()}async getSystemLogs(){return gD()}async getLogFiles(){return uD()}async getLogFileByName(e){return tD({path:{filename:e}})}async getDiskSpace(){return HI()}async getTags(){return vD()}async addTag(e){return qD({body:e})}async getTag(e){return oD({path:{id:e}})}async updateTag(e,A){return ed({path:{id:String(e)},body:A})}async deleteTag(e){return nD({path:{id:e}})}async getTagDetails(){return Ad()}async getTagDetailById(e){return ad({path:{id:e}})}async addBook(e){return lI({body:e})}async updateBook(e,A){return sI({path:{id:String(e)},body:A})}async deleteBook(e){return pI({path:{id:e}})}async searchBooks(e){return CI({query:{term:e}})}async getQualityProfiles(){return HD()}async getQualityProfile(e){return UD({path:{id:e}})}async addQualityProfile(e){return OD({body:e})}async updateQualityProfile(e,A){return FD({path:{id:String(e)},body:A})}async deleteQualityProfile(e){return ED({path:{id:e}})}async getQualityProfileSchema(){return $D()}async getCustomFormats(){return xI()}async getCustomFormat(e){return LI({path:{id:e}})}async addCustomFormat(e){return MI({body:e})}async updateCustomFormat(e,A){return QI({path:{id:String(e)},body:A})}async deleteCustomFormat(e){return TI({path:{id:e}})}async getCustomFormatSchema(){return NI()}async getDownloadClients(){return OI()}async getDownloadClient(e){return FI({path:{id:e}})}async addDownloadClient(e){return EI({body:e})}async updateDownloadClient(e,A){return $I({path:{id:String(e)},body:A})}async deleteDownloadClient(e){return UI({path:{id:e}})}async getDownloadClientSchema(){return bI()}async testDownloadClient(e){return jI({body:e})}async testAllDownloadClients(){return JI()}async getIndexers(){return VD()}async getIndexer(e){return ID({path:{id:e}})}async addIndexer(e){return RD({body:e})}async updateIndexer(e,A){return DD({path:{id:String(e)},body:A})}async deleteIndexer(e){return BD({path:{id:e}})}async getIndexerSchema(){return dD()}async testIndexer(e){return yD({body:e})}async testAllIndexers(){return GD()}async getImportLists(){return _I()}async getImportList(e){return nI({path:{id:e}})}async addImportList(e){return vI({body:e})}async updateImportList(e,A){return oI({path:{id:String(e)},body:A})}async deleteImportList(e){return qI({path:{id:e}})}async getImportListSchema(){return eD()}async testImportList(e){return AD({body:e})}async testAllImportLists(){return aD()}async getNotifications(){return MD()}async getNotification(e){return QD({path:{id:e}})}async addNotification(e){return TD({body:e})}async updateNotification(e,A){return ND({path:{id:String(e)},body:A})}async deleteNotification(e){return LD({path:{id:e}})}async getNotificationSchema(){return kD()}async testNotification(e){return wD({body:e})}async testAllNotifications(){return WD()}async getHistory(e,A,a,V,R,d){let I={};if(e!==void 0)I.page=e;if(A!==void 0)I.pageSize=A;if(a)I.sortKey=a;if(V)I.sortDirection=V;if(R!==void 0)I.authorId=R;if(d)I.downloadId=d;return ZI(Object.keys(I).length>0?{query:I}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.authorId=A;return YI({query:a})}async getAuthorHistory(e,A,a){let V={authorId:e};if(A!==void 0)V.bookId=A;if(a!==void 0)V.eventType=a;return hI({query:V})}async markHistoryItemFailed(e){return cI({path:{id:e}})}async getQueue(e,A,a,V,R){let d={};if(e!==void 0)d.page=e;if(A!==void 0)d.pageSize=A;if(a)d.sortKey=a;if(V)d.sortDirection=V;if(R!==void 0)d.includeUnknownAuthorItems=R;return JD(Object.keys(d).length>0?{query:d}:{})}async removeQueueItem(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return bD({path:{id:e},...Object.keys(V).length>0?{query:V}:{}})}async removeQueueItemsBulk(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return jD({body:{ids:e},...Object.keys(V).length>0?{query:V}:{}})}async grabQueueItem(e){return XD({path:{id:e}})}async grabQueueItemsBulk(e){return ZD({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.authorId=e;if(A!==void 0)a.includeUnknownAuthorItems=A;return YD(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return hD()}async getBlocklist(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return uI(Object.keys(R).length>0?{query:R}:{})}async removeBlocklistItem(e){return tI({path:{id:e}})}async removeBlocklistItemsBulk(e){return PI({body:{ids:e}})}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),t.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}var ps=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var vG={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>ps(A,a,R));else ps(A,a,V)}),A}},qG={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var fs=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:d,sseMaxRetryAttempts:I,sseMaxRetryDelay:D,sseSleepFn:u,url:S,...m})=>{let B,x=u??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=d??3000,P=0,r=m.signal??new AbortController().signal;while(!0){if(r.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(B!==void 0)W.set("Last-Event-ID",B);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:r},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let s=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{s.cancel()}catch{}};r.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await s.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
30
+ `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))I=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
31
+ `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:I,retry:L}),O.length)yield k}}}finally{x.removeEventListener("abort",U),C.releaseLock()}break}catch(Q){if(A?.(Q),B!==void 0&&P>=B)break;let N=Math.min(L*2**(P-1),D??30000);await r(N)}}}()}};var Tx=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Lx=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Qx=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},aI=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((g)=>encodeURIComponent(g))).join(Lx(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let t=Tx(V),B=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return v({allowReserved:e,name:a,value:D})}).join(t);return V==="label"||V==="matrix"?t+B:B},v=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},VI=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:t})=>{if(R instanceof Date)return t?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let g=[];Object.entries(R).forEach(([m,I])=>{g=[...g,m,e?I:encodeURIComponent(I)]});let S=g.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let B=Qx(V),D=Object.entries(R).map(([g,S])=>v({allowReserved:e,name:V==="deepObject"?`${a}[${g}]`:g,value:S})).join(B);return V==="label"||V==="matrix"?B+D:D};var Nx=/\{[^{}]+\}/g,kx=({path:e,url:A})=>{let a=A,V=A.match(Nx);if(V)for(let R of V){let t=!1,B=R.substring(1,R.length-1),D="simple";if(B.endsWith("*"))t=!0,B=B.substring(0,B.length-1);if(B.startsWith("."))B=B.substring(1),D="label";else if(B.startsWith(";"))B=B.substring(1),D="matrix";let g=e[B];if(g===void 0||g===null)continue;if(Array.isArray(g)){a=a.replace(R,aI({explode:t,name:B,style:D,value:g}));continue}if(typeof g==="object"){a=a.replace(R,VI({explode:t,name:B,style:D,value:g,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${v({name:B,value:g})}`);continue}let S=encodeURIComponent(D==="label"?`.${g}`:g);a=a.replace(R,S)}return a},vl=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let t=R.startsWith("/")?R:`/${R}`,B=(e??"")+t;if(A)B=kx({path:A,url:B});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)B+=`?${D}`;return B};function vG(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var ql=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var nl=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let t in V){let B=V[t];if(B===void 0||B===null)continue;let D=e[t]||A;if(Array.isArray(B)){let g=aI({allowReserved:D.allowReserved,explode:!0,name:t,style:"form",value:B,...D.array});if(g)R.push(g)}else if(typeof B==="object"){let g=VI({allowReserved:D.allowReserved,explode:!0,name:t,style:"deepObject",value:B,...D.object});if(g)R.push(g)}else{let g=v({allowReserved:D.allowReserved,name:t,value:B});if(g)R.push(g)}}return R.join("&")}},ol=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},wx=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},ep=async({security:e,...A})=>{for(let a of e){if(wx(A,a.name))continue;let V=await ql(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},qG=(e)=>vl({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:nl(e.querySerializer),url:e.url}),nG=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=BI(e.headers,A.headers),a},Wx=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},BI=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?Wx(a):Object.entries(a);for(let[R,t]of V)if(t===null)A.delete(R);else if(Array.isArray(t))for(let B of t)A.append(R,B);else if(t!==void 0)A.set(R,typeof t==="object"?JSON.stringify(t):t)}return A};class RI{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var Ap=()=>({error:new RI,request:new RI,response:new RI}),Hx=nl({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Ox={"Content-Type":"application/json"},De=(e={})=>({..._G,headers:Ox,parseAs:"auto",querySerializer:Hx,...e});var oG=(e={})=>{let A=nG(De(),e),a=()=>({...A}),V=(m)=>{return A=nG(A,m),a()},R=Ap(),t=async(m)=>{let I={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:BI(A.headers,m.headers),serializedBody:void 0};if(I.security)await ep({...I,security:I.security});if(I.requestValidator)await I.requestValidator(I);if(I.body!==void 0&&I.bodySerializer)I.serializedBody=I.bodySerializer(I.body);if(I.body===void 0||I.serializedBody==="")I.headers.delete("Content-Type");let r=qG(I);return{opts:I,url:r}},B=async(m)=>{let{opts:I,url:r}=await t(m),H={redirect:"follow",...I,body:vG(I)},M=new Request(r,H);for(let l of R.request.fns)if(l)M=await l(M,I);let L=I.fetch,P;try{P=await L(M)}catch(l){let C=l;for(let f of R.error.fns)if(f)C=await f(l,void 0,M,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,I);let x={request:M,response:P};if(P.ok){let l=(I.parseAs==="auto"?ol(P.headers.get("Content-Type")):I.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":C=await P[l]();break;case"json":{let f=await P.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?P.body:{data:P.body,...x}}if(l==="json"){if(I.responseValidator)await I.responseValidator(C);if(I.responseTransformer)C=await I.responseTransformer(C)}return I.responseStyle==="data"?C:{data:C,...x}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},D=(m)=>(I)=>B({...I,method:m}),g=(m)=>async(I)=>{let{opts:r,url:H}=await t(I);return _l({...r,body:r.body,headers:r.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let x of R.request.fns)if(x)P=await x(P,r);return P},serializedBody:vG(r),url:H})};return{buildUrl:(m)=>qG({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:B,setConfig:V,sse:{connect:g("CONNECT"),delete:g("DELETE"),get:g("GET"),head:g("HEAD"),options:g("OPTIONS"),patch:g("PATCH"),post:g("POST"),put:g("PUT"),trace:g("TRACE")},trace:D("TRACE")}};var u=oG(De());var e3={};c(e3,{putApiV1TagById:()=>Bd,putApiV1RootfolderById:()=>VC,putApiV1RemotepathmappingById:()=>of,putApiV1ReleaseprofileById:()=>Kf,putApiV1QualityprofileById:()=>JD,putApiV1QualitydefinitionUpdate:()=>jf,putApiV1QualitydefinitionById:()=>$f,putApiV1NotificationById:()=>HD,putApiV1MetadataprofileById:()=>Nf,putApiV1MetadataById:()=>Cf,putApiV1IndexerById:()=>gD,putApiV1IndexerBulk:()=>af,putApiV1ImportlistexclusionById:()=>ef,putApiV1ImportlistById:()=>VD,putApiV1ImportlistBulk:()=>zp,putApiV1DownloadclientById:()=>XI,putApiV1DownloadclientBulk:()=>bp,putApiV1DelayprofileReorderById:()=>Fp,putApiV1DelayprofileById:()=>Up,putApiV1CustomformatById:()=>WI,putApiV1CustomfilterById:()=>Np,putApiV1ConfigUiById:()=>yd,putApiV1ConfigNamingById:()=>LD,putApiV1ConfigMetadataproviderById:()=>rD,putApiV1ConfigMediamanagementById:()=>sD,putApiV1ConfigIndexerById:()=>If,putApiV1ConfigHostById:()=>nI,putApiV1ConfigDownloadclientById:()=>Zp,putApiV1ConfigDevelopmentById:()=>UI,putApiV1BookfileEditor:()=>lp,putApiV1BookfileById:()=>mp,putApiV1BookMonitor:()=>yp,putApiV1BookEditor:()=>gp,putApiV1BookById:()=>rI,putApiV1AuthorEditor:()=>Dp,putApiV1AuthorById:()=>GI,postLogin:()=>Rp,postApiV1Tag:()=>ad,postApiV1SystemShutdown:()=>oD,postApiV1SystemRestart:()=>ed,postApiV1SystemBackupRestoreUpload:()=>mI,postApiV1SystemBackupRestoreById:()=>PI,postApiV1Rootfolder:()=>vD,postApiV1Remotepathmapping:()=>vf,postApiV1Releaseprofile:()=>Yf,postApiV1ReleasePush:()=>zf,postApiV1Release:()=>Xf,postApiV1QueueGrabById:()=>cD,postApiV1QueueGrabBulk:()=>KD,postApiV1Qualityprofile:()=>$D,postApiV1NotificationTestall:()=>UD,postApiV1NotificationTest:()=>ED,postApiV1NotificationActionByName:()=>Hf,postApiV1Notification:()=>kD,postApiV1Metadataprofile:()=>Tf,postApiV1MetadataTestall:()=>xf,postApiV1MetadataTest:()=>Sf,postApiV1MetadataActionByName:()=>rf,postApiV1Metadata:()=>lf,postApiV1Manualimport:()=>uf,postApiV1IndexerTestall:()=>PD,postApiV1IndexerTest:()=>tD,postApiV1IndexerActionByName:()=>Vf,postApiV1Indexer:()=>dD,postApiV1Importlistexclusion:()=>qp,postApiV1ImportlistTestall:()=>ID,postApiV1ImportlistTest:()=>BD,postApiV1ImportlistActionByName:()=>_p,postApiV1Importlist:()=>eD,postApiV1HistoryFailedById:()=>_I,postApiV1DownloadclientTestall:()=>hI,postApiV1DownloadclientTest:()=>YI,postApiV1DownloadclientActionByName:()=>jp,postApiV1Downloadclient:()=>bI,postApiV1Delayprofile:()=>Hp,postApiV1Customformat:()=>NI,postApiV1Customfilter:()=>Tp,postApiV1Command:()=>LI,postApiV1Bookshelf:()=>fp,postApiV1Book:()=>sI,postApiV1Author:()=>DI,headPing:()=>Uf,getPing:()=>Ef,getLogout:()=>Bp,getLogin:()=>Vp,getFeedV1CalendarReadarrIcs:()=>Sp,getContentByPath:()=>IC,getByPath:()=>dC,getApiV1WantedMissingById:()=>Wf,getApiV1WantedMissing:()=>wf,getApiV1WantedCutoffById:()=>wp,getApiV1WantedCutoff:()=>kp,getApiV1Update:()=>tC,getApiV1TagDetailById:()=>Dd,getApiV1TagDetail:()=>Id,getApiV1TagById:()=>Rd,getApiV1Tag:()=>Ad,getApiV1SystemTaskById:()=>uC,getApiV1SystemTask:()=>gC,getApiV1SystemStatus:()=>nD,getApiV1SystemRoutesDuplicate:()=>GC,getApiV1SystemRoutes:()=>yC,getApiV1SystemBackup:()=>uI,getApiV1Series:()=>BC,getApiV1Search:()=>RC,getApiV1RootfolderById:()=>aC,getApiV1Rootfolder:()=>_D,getApiV1Retag:()=>AC,getApiV1Rename:()=>eC,getApiV1RemotepathmappingById:()=>nf,getApiV1Remotepathmapping:()=>_f,getApiV1ReleaseprofileById:()=>cf,getApiV1Releaseprofile:()=>Zf,getApiV1Release:()=>Jf,getApiV1QueueStatus:()=>zD,getApiV1QueueDetails:()=>iD,getApiV1Queue:()=>hD,getApiV1QualityprofileSchema:()=>XD,getApiV1QualityprofileById:()=>jD,getApiV1Qualityprofile:()=>FD,getApiV1QualitydefinitionById:()=>Ff,getApiV1Qualitydefinition:()=>bf,getApiV1Parse:()=>Of,getApiV1NotificationSchema:()=>OD,getApiV1NotificationById:()=>WD,getApiV1Notification:()=>ND,getApiV1MetadataprofileSchema:()=>kf,getApiV1MetadataprofileById:()=>Qf,getApiV1Metadataprofile:()=>Mf,getApiV1MetadataSchema:()=>sf,getApiV1MetadataById:()=>ff,getApiV1Metadata:()=>mf,getApiV1MediacoverBookByBookIdByFilename:()=>Pf,getApiV1MediacoverAuthorByAuthorIdByFilename:()=>tf,getApiV1Manualimport:()=>gf,getApiV1LogFileUpdateByFilename:()=>mC,getApiV1LogFileUpdate:()=>PC,getApiV1LogFileByFilename:()=>pD,getApiV1LogFile:()=>lD,getApiV1Log:()=>mD,getApiV1Localization:()=>Gf,getApiV1LanguageById:()=>yf,getApiV1Language:()=>df,getApiV1Indexerflag:()=>Df,getApiV1IndexerSchema:()=>uD,getApiV1IndexerById:()=>GD,getApiV1Indexer:()=>DD,getApiV1ImportlistexclusionById:()=>op,getApiV1Importlistexclusion:()=>vp,getApiV1ImportlistSchema:()=>RD,getApiV1ImportlistById:()=>aD,getApiV1Importlist:()=>oI,getApiV1HistorySince:()=>iI,getApiV1HistoryAuthor:()=>zI,getApiV1History:()=>KI,getApiV1Health:()=>cI,getApiV1FilesystemType:()=>cp,getApiV1FilesystemMediafiles:()=>Kp,getApiV1Filesystem:()=>hp,getApiV1Edition:()=>Yp,getApiV1DownloadclientSchema:()=>ZI,getApiV1DownloadclientById:()=>JI,getApiV1Downloadclient:()=>$I,getApiV1Diskspace:()=>FI,getApiV1DelayprofileById:()=>Ep,getApiV1Delayprofile:()=>Wp,getApiV1CustomformatSchema:()=>HI,getApiV1CustomformatById:()=>wI,getApiV1Customformat:()=>QI,getApiV1CustomfilterById:()=>Qp,getApiV1Customfilter:()=>Mp,getApiV1ConfigUiById:()=>dd,getApiV1ConfigUi:()=>Gd,getApiV1ConfigNamingExamples:()=>QD,getApiV1ConfigNamingById:()=>TD,getApiV1ConfigNaming:()=>MD,getApiV1ConfigMetadataproviderById:()=>xD,getApiV1ConfigMetadataprovider:()=>SD,getApiV1ConfigMediamanagementById:()=>CD,getApiV1ConfigMediamanagement:()=>fD,getApiV1ConfigIndexerById:()=>Bf,getApiV1ConfigIndexer:()=>Rf,getApiV1ConfigHostById:()=>qI,getApiV1ConfigHost:()=>vI,getApiV1ConfigDownloadclientById:()=>Xp,getApiV1ConfigDownloadclient:()=>Jp,getApiV1ConfigDevelopmentById:()=>EI,getApiV1ConfigDevelopment:()=>OI,getApiV1CommandById:()=>rp,getApiV1Command:()=>TI,getApiV1CalendarById:()=>sp,getApiV1Calendar:()=>Cp,getApiV1BookfileById:()=>Pp,getApiV1Bookfile:()=>up,getApiV1BookLookup:()=>MI,getApiV1BookByIdOverview:()=>dp,getApiV1BookById:()=>xI,getApiV1Book:()=>CI,getApiV1Blocklist:()=>lI,getApiV1AuthorLookup:()=>gI,getApiV1AuthorById:()=>yI,getApiV1Author:()=>II,getApi:()=>ap,get:()=>DC,deleteApiV1TagById:()=>Vd,deleteApiV1SystemBackupById:()=>tI,deleteApiV1RootfolderById:()=>qD,deleteApiV1RemotepathmappingById:()=>qf,deleteApiV1ReleaseprofileById:()=>hf,deleteApiV1QueueById:()=>ZD,deleteApiV1QueueBulk:()=>YD,deleteApiV1QualityprofileById:()=>bD,deleteApiV1NotificationById:()=>wD,deleteApiV1MetadataprofileById:()=>Lf,deleteApiV1MetadataById:()=>pf,deleteApiV1IndexerById:()=>yD,deleteApiV1IndexerBulk:()=>Af,deleteApiV1ImportlistexclusionById:()=>np,deleteApiV1ImportlistById:()=>AD,deleteApiV1ImportlistBulk:()=>ip,deleteApiV1DownloadclientById:()=>jI,deleteApiV1DownloadclientBulk:()=>$p,deleteApiV1DelayprofileById:()=>Op,deleteApiV1CustomformatById:()=>kI,deleteApiV1CustomfilterById:()=>Lp,deleteApiV1CommandById:()=>xp,deleteApiV1BookfileById:()=>tp,deleteApiV1BookfileBulk:()=>pp,deleteApiV1BookEditor:()=>Gp,deleteApiV1BookById:()=>SI,deleteApiV1BlocklistById:()=>pI,deleteApiV1BlocklistBulk:()=>fI,deleteApiV1AuthorEditor:()=>Ip,deleteApiV1AuthorById:()=>dI});var ap=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),Vp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),Rp=(e)=>(e?.client??u).post({...zG,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),Bp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),II=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author",...e}),DI=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author",...e,headers:{"Content-Type":"application/json",...e?.headers}}),dI=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/{id}",...e}),yI=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/{id}",...e}),GI=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ip=(e)=>(e?.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Dp=(e)=>(e?.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/lookup",...e}),uI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup",...e}),tI=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/{id}",...e}),PI=(e)=>(e.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/{id}",...e}),mI=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/upload",...e}),lI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist",...e}),pI=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/{id}",...e}),fI=(e)=>(e?.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),CI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book",...e}),sI=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book",...e,headers:{"Content-Type":"application/json",...e?.headers}}),dp=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}/overview",...e}),SI=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}",...e}),xI=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}",...e}),rI=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),yp=(e)=>(e?.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/monitor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Gp=(e)=>(e?.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gp=(e)=>(e?.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),up=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile",...e}),tp=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/{id}",...e}),Pp=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/{id}",...e}),mp=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),lp=(e)=>(e?.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pp=(e)=>(e?.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),MI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/lookup",...e}),fp=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookshelf",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Cp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar",...e}),sp=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar/{id}",...e}),Sp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v1/calendar/readarr.ics",...e}),TI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e}),LI=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e,headers:{"Content-Type":"application/json",...e?.headers}}),xp=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),rp=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),Mp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e}),Tp=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Lp=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),Qp=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),Np=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),QI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...e}),NI=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kI=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e}),wI=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e}),WI=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),HI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/schema",...e}),kp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff",...e}),wp=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff/{id}",...e}),Wp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...e}),Hp=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Op=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),Ep=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),Up=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fp=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/reorder/{id}",...e}),OI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development",...e}),EI=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...e}),UI=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),FI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/diskspace",...e}),$I=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e}),bI=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e,headers:{"Content-Type":"application/json",...e?.headers}}),jI=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),JI=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),XI=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),$p=(e)=>(e?.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),bp=(e)=>(e?.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ZI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...e}),YI=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),hI=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...e}),jp=(e)=>(e.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Jp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...e}),Xp=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e}),Zp=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Yp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/edition",...e}),hp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...e}),cp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...e}),Kp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/mediafiles",...e}),cI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...e}),KI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...e}),iI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...e}),zI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/author",...e}),_I=(e)=>(e.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/failed/{id}",...e}),vI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host",...e}),qI=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e}),nI=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),oI=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...e}),eD=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...e,headers:{"Content-Type":"application/json",...e?.headers}}),AD=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),aD=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),VD=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ip=(e)=>(e?.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),zp=(e)=>(e?.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),RD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/schema",...e}),BD=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ID=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/testall",...e}),_p=(e)=>(e.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),vp=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...e}),qp=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...e,headers:{"Content-Type":"application/json",...e?.headers}}),np=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),op=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),ef=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),DD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e}),dD=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),yD=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),GD=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),gD=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Af=(e)=>(e?.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),af=(e)=>(e?.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),uD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...e}),tD=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),PD=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...e}),Vf=(e)=>(e.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Rf=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer",...e}),Bf=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...e}),If=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Df=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerflag",...e}),df=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language",...e}),yf=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language/{id}",...e}),Gf=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization",...e}),mD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log",...e}),lD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...e}),pD=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/{filename}",...e}),gf=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...e}),uf=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...e,headers:{"Content-Type":"application/json",...e?.headers}}),tf=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/author/{authorId}/{filename}",...e}),Pf=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/book/{bookId}/{filename}",...e}),fD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement",...e}),CD=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...e}),sD=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),mf=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...e}),lf=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pf=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),ff=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),Cf=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),sf=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/schema",...e}),Sf=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),xf=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/testall",...e}),rf=(e)=>(e.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Mf=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...e}),Tf=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Lf=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),Qf=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),Nf=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),kf=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/schema",...e}),SD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider",...e}),xD=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...e}),rD=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),wf=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing",...e}),Wf=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing/{id}",...e}),MD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming",...e}),TD=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...e}),LD=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),QD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/examples",...e}),ND=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e}),kD=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wD=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),WD=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),HD=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),OD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...e}),ED=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),UD=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...e}),Hf=(e)=>(e.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Of=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/parse",...e}),Ef=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),Uf=(e)=>(e?.client??u).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),Ff=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...e}),$f=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),bf=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition",...e}),jf=(e)=>(e?.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/update",...e,headers:{"Content-Type":"application/json",...e?.headers}}),FD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...e}),$D=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),bD=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),jD=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),JD=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),XD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/schema",...e}),ZD=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/{id}",...e}),YD=(e)=>(e?.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),hD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue",...e}),cD=(e)=>(e.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/{id}",...e}),KD=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),iD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/details",...e}),zD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/status",...e}),Jf=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...e}),Xf=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Zf=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...e}),Yf=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),hf=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e}),cf=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e}),Kf=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),zf=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release/push",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_f=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...e}),vf=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qf=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),nf=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),of=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),eC=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rename",...e}),AC=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/retag",...e}),_D=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...e}),vD=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qD=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),aC=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),VC=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),RC=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...e}),BC=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/series",...e}),IC=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),DC=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),dC=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),nD=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...e}),yC=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...e}),GC=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes/duplicate",...e}),oD=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/shutdown",...e}),ed=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...e}),Ad=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e}),ad=(e)=>(e?.client??u).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Vd=(e)=>(e.client??u).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),Rd=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),Bd=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Id=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail",...e}),Dd=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail/{id}",...e}),gC=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task",...e}),uC=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task/{id}",...e}),dd=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e}),yd=(e)=>(e.client??u).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Gd=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui",...e}),tC=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...e}),PC=(e)=>(e?.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update",...e}),mC=(e)=>(e.client??u).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update/{filename}",...e});class lC{clientConfig;constructor(e){this.clientConfig=E(e),u.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return nD()}async getHealth(){return cI()}async getAuthors(){return II()}async getAuthor(e){return yI({path:{id:e}})}async addAuthor(e){return DI({body:e})}async updateAuthor(e,A){return GI({path:{id:String(e)},body:A})}async deleteAuthor(e){return dI({path:{id:e}})}async getBooks(){return CI()}async getBook(e){return xI({path:{id:e}})}async searchAuthors(e){return gI({query:{term:e}})}async runCommand(e){return LI({body:e})}async getCommands(){return TI()}async getRootFolders(){return _D()}async addRootFolder(e){return vD({body:{path:e}})}async deleteRootFolder(e){return qD({path:{id:e}})}async getHostConfig(){return vI()}async getHostConfigById(e){return qI({path:{id:e}})}async updateHostConfig(e,A){return nI({path:{id:String(e)},body:A})}async getNamingConfig(){return MD()}async getNamingConfigById(e){return TD({path:{id:e}})}async updateNamingConfig(e,A){return LD({path:{id:String(e)},body:A})}async getNamingConfigExamples(){return QD()}async getMediaManagementConfig(){return fD()}async getMediaManagementConfigById(e){return CD({path:{id:e}})}async updateMediaManagementConfig(e,A){return sD({path:{id:String(e)},body:A})}async getUiConfig(){return Gd()}async getUiConfigById(e){return dd({path:{id:e}})}async updateUiConfig(e,A){return yd({path:{id:String(e)},body:A})}async getDevelopmentConfig(){return OI()}async getDevelopmentConfigById(e){return EI({path:{id:e}})}async updateDevelopmentConfig(e,A){return UI({path:{id:String(e)},body:A})}async getMetadataProviderConfig(){return SD()}async getMetadataProviderConfigById(e){return xD({path:{id:e}})}async updateMetadataProviderConfig(e,A){return rD({path:{id:String(e)},body:A})}async restartSystem(){return ed()}async shutdownSystem(){return oD()}async getSystemBackups(){return uI()}async deleteSystemBackup(e){return tI({path:{id:e}})}async restoreSystemBackup(e){return PI({path:{id:e}})}async uploadSystemBackup(){return mI()}async getSystemLogs(){return mD()}async getLogFiles(){return lD()}async getLogFileByName(e){return pD({path:{filename:e}})}async getDiskSpace(){return FI()}async getTags(){return Ad()}async addTag(e){return ad({body:e})}async getTag(e){return Rd({path:{id:e}})}async updateTag(e,A){return Bd({path:{id:String(e)},body:A})}async deleteTag(e){return Vd({path:{id:e}})}async getTagDetails(){return Id()}async getTagDetailById(e){return Dd({path:{id:e}})}async addBook(e){return sI({body:e})}async updateBook(e,A){return rI({path:{id:String(e)},body:A})}async deleteBook(e){return SI({path:{id:e}})}async searchBooks(e){return MI({query:{term:e}})}async getQualityProfiles(){return FD()}async getQualityProfile(e){return jD({path:{id:e}})}async addQualityProfile(e){return $D({body:e})}async updateQualityProfile(e,A){return JD({path:{id:String(e)},body:A})}async deleteQualityProfile(e){return bD({path:{id:e}})}async getQualityProfileSchema(){return XD()}async getCustomFormats(){return QI()}async getCustomFormat(e){return wI({path:{id:e}})}async addCustomFormat(e){return NI({body:e})}async updateCustomFormat(e,A){return WI({path:{id:String(e)},body:A})}async deleteCustomFormat(e){return kI({path:{id:e}})}async getCustomFormatSchema(){return HI()}async getDownloadClients(){return $I()}async getDownloadClient(e){return JI({path:{id:e}})}async addDownloadClient(e){return bI({body:e})}async updateDownloadClient(e,A){return XI({path:{id:String(e)},body:A})}async deleteDownloadClient(e){return jI({path:{id:e}})}async getDownloadClientSchema(){return ZI()}async testDownloadClient(e){return YI({body:e})}async testAllDownloadClients(){return hI()}async getIndexers(){return DD()}async getIndexer(e){return GD({path:{id:e}})}async addIndexer(e){return dD({body:e})}async updateIndexer(e,A){return gD({path:{id:String(e)},body:A})}async deleteIndexer(e){return yD({path:{id:e}})}async getIndexerSchema(){return uD()}async testIndexer(e){return tD({body:e})}async testAllIndexers(){return PD()}async getImportLists(){return oI()}async getImportList(e){return aD({path:{id:e}})}async addImportList(e){return eD({body:e})}async updateImportList(e,A){return VD({path:{id:String(e)},body:A})}async deleteImportList(e){return AD({path:{id:e}})}async getImportListSchema(){return RD()}async testImportList(e){return BD({body:e})}async testAllImportLists(){return ID()}async getNotifications(){return ND()}async getNotification(e){return WD({path:{id:e}})}async addNotification(e){return kD({body:e})}async updateNotification(e,A){return HD({path:{id:String(e)},body:A})}async deleteNotification(e){return wD({path:{id:e}})}async getNotificationSchema(){return OD()}async testNotification(e){return ED({body:e})}async testAllNotifications(){return UD()}async getHistory(e,A,a,V,R,t){let B={};if(e!==void 0)B.page=e;if(A!==void 0)B.pageSize=A;if(a)B.sortKey=a;if(V)B.sortDirection=V;if(R!==void 0)B.authorId=R;if(t)B.downloadId=t;return KI(Object.keys(B).length>0?{query:B}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.authorId=A;return iI({query:a})}async getAuthorHistory(e,A,a){let V={authorId:e};if(A!==void 0)V.bookId=A;if(a!==void 0)V.eventType=a;return zI({query:V})}async markHistoryItemFailed(e){return _I({path:{id:e}})}async getQueue(e,A,a,V,R){let t={};if(e!==void 0)t.page=e;if(A!==void 0)t.pageSize=A;if(a)t.sortKey=a;if(V)t.sortDirection=V;if(R!==void 0)t.includeUnknownAuthorItems=R;return hD(Object.keys(t).length>0?{query:t}:{})}async removeQueueItem(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return ZD({path:{id:e},...Object.keys(V).length>0?{query:V}:{}})}async removeQueueItemsBulk(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return YD({body:{ids:e},...Object.keys(V).length>0?{query:V}:{}})}async grabQueueItem(e){return cD({path:{id:e}})}async grabQueueItemsBulk(e){return KD({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.authorId=e;if(A!==void 0)a.includeUnknownAuthorItems=A;return iD(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return zD()}async getBlocklist(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return lI(Object.keys(R).length>0?{query:R}:{})}async removeBlocklistItem(e){return pI({path:{id:e}})}async removeBlocklistItemsBulk(e){return fI({body:{ids:e}})}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),u.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}var pC=(e,A,a)=>{if(typeof a==="string"||a instanceof Blob)e.append(A,a);else if(a instanceof Date)e.append(A,a.toISOString());else e.append(A,JSON.stringify(a))};var A3={bodySerializer:(e)=>{let A=new FormData;return Object.entries(e).forEach(([a,V])=>{if(V===void 0||V===null)return;if(Array.isArray(V))V.forEach((R)=>pC(A,a,R));else pC(A,a,V)}),A}},a3={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var fC=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:t,sseMaxRetryAttempts:B,sseMaxRetryDelay:D,sseSleepFn:g,url:S,...m})=>{let I,r=g??((L)=>new Promise((P)=>setTimeout(P,L)));return{stream:async function*(){let L=t??3000,P=0,x=m.signal??new AbortController().signal;while(!0){if(x.aborted)break;P++;let W=m.headers instanceof Headers?m.headers:new Headers(m.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...m,body:m.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let l=await(m.fetch??globalThis.fetch)(N);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let C=l.body.pipeThrough(new TextDecoderStream).getReader(),f="",U=()=>{try{C.cancel()}catch{}};x.addEventListener("abort",U);try{while(!0){let{done:X,value:Z}=await C.read();if(X)break;f+=Z,f=f.replace(/\r\n/g,`
32
32
  `).replace(/\r/g,`
33
33
  `);let F=f.split(`
34
34
 
35
35
  `);f=F.pop()??"";for(let Y of F){let h=Y.split(`
36
- `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))B=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
37
- `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:B,retry:L}),O.length)yield k}}}finally{r.removeEventListener("abort",U),s.releaseLock()}break}catch(Q){if(A?.(Q),I!==void 0&&P>=I)break;let N=Math.min(L*2**(P-1),D??30000);await x(N)}}}()}};var Er=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ur=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Fr=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Id=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((u)=>encodeURIComponent(u))).join(Ur(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let d=Er(V),I=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return q({allowReserved:e,name:a,value:D})}).join(d);return V==="label"||V==="matrix"?d+I:I},q=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},Dd=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:d})=>{if(R instanceof Date)return d?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let u=[];Object.entries(R).forEach(([m,B])=>{u=[...u,m,e?B:encodeURIComponent(B)]});let S=u.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let I=Fr(V),D=Object.entries(R).map(([u,S])=>q({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(I);return V==="label"||V==="matrix"?I+D:D};var $r=/\{[^{}]+\}/g,br=({path:e,url:A})=>{let a=A,V=A.match($r);if(V)for(let R of V){let d=!1,I=R.substring(1,R.length-1),D="simple";if(I.endsWith("*"))d=!0,I=I.substring(0,I.length-1);if(I.startsWith("."))I=I.substring(1),D="label";else if(I.startsWith(";"))I=I.substring(1),D="matrix";let u=e[I];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,Id({explode:d,name:I,style:D,value:u}));continue}if(typeof u==="object"){a=a.replace(R,Dd({explode:d,name:I,style:D,value:u,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${q({name:I,value:u})}`);continue}let S=encodeURIComponent(D==="label"?`.${u}`:u);a=a.replace(R,S)}return a},ss=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let d=R.startsWith("/")?R:`/${R}`,I=(e??"")+d;if(A)I=br({path:A,url:I});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)I+=`?${D}`;return I};function nG(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var Cs=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var Ss=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let d in V){let I=V[d];if(I===void 0||I===null)continue;let D=e[d]||A;if(Array.isArray(I)){let u=Id({allowReserved:D.allowReserved,explode:!0,name:d,style:"form",value:I,...D.array});if(u)R.push(u)}else if(typeof I==="object"){let u=Dd({allowReserved:D.allowReserved,explode:!0,name:d,style:"deepObject",value:I,...D.object});if(u)R.push(u)}else{let u=q({allowReserved:D.allowReserved,name:d,value:I});if(u)R.push(u)}}return R.join("&")}},rs=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},jr=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},xs=async({security:e,...A})=>{for(let a of e){if(jr(A,a.name))continue;let V=await Cs(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},oG=(e)=>ss({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:Ss(e.querySerializer),url:e.url}),e3=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=yd(e.headers,A.headers),a},Jr=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},yd=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?Jr(a):Object.entries(a);for(let[R,d]of V)if(d===null)A.delete(R);else if(Array.isArray(d))for(let I of d)A.append(R,I);else if(d!==void 0)A.set(R,typeof d==="object"?JSON.stringify(d):d)}return A};class dd{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var Ms=()=>({error:new dd,request:new dd,response:new dd}),Xr=Ss({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Zr={"Content-Type":"application/json"},de=(e={})=>({...qG,headers:Zr,parseAs:"auto",querySerializer:Xr,...e});var A3=(e={})=>{let A=e3(de(),e),a=()=>({...A}),V=(m)=>{return A=e3(A,m),a()},R=Ms(),d=async(m)=>{let B={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:yd(A.headers,m.headers),serializedBody:void 0};if(B.security)await xs({...B,security:B.security});if(B.requestValidator)await B.requestValidator(B);if(B.body!==void 0&&B.bodySerializer)B.serializedBody=B.bodySerializer(B.body);if(B.body===void 0||B.serializedBody==="")B.headers.delete("Content-Type");let x=oG(B);return{opts:B,url:x}},I=async(m)=>{let{opts:B,url:x}=await d(m),H={redirect:"follow",...B,body:nG(B)},M=new Request(x,H);for(let l of R.request.fns)if(l)M=await l(M,B);let L=B.fetch,P;try{P=await L(M)}catch(l){let s=l;for(let f of R.error.fns)if(f)s=await f(l,void 0,M,B);if(s=s||{},B.throwOnError)throw s;return B.responseStyle==="data"?void 0:{error:s,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,B);let r={request:M,response:P};if(P.ok){let l=(B.parseAs==="auto"?rs(P.headers.get("Content-Type")):B.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return B.responseStyle==="data"?f:{data:f,...r}}let s;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":s=await P[l]();break;case"json":{let f=await P.text();s=f?JSON.parse(f):{};break}case"stream":return B.responseStyle==="data"?P.body:{data:P.body,...r}}if(l==="json"){if(B.responseValidator)await B.responseValidator(s);if(B.responseTransformer)s=await B.responseTransformer(s)}return B.responseStyle==="data"?s:{data:s,...r}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,B);if(w=w||{},B.throwOnError)throw w;return B.responseStyle==="data"?void 0:{error:w,...r}},D=(m)=>(B)=>I({...B,method:m}),u=(m)=>async(B)=>{let{opts:x,url:H}=await d(B);return fs({...x,body:x.body,headers:x.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let r of R.request.fns)if(r)P=await r(P,x);return P},serializedBody:nG(x),url:H})};return{buildUrl:(m)=>oG({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:I,setConfig:V,sse:{connect:u("CONNECT"),delete:u("DELETE"),get:u("GET"),head:u("HEAD"),options:u("OPTIONS"),patch:u("PATCH"),post:u("POST"),put:u("PUT"),trace:u("TRACE")},trace:D("TRACE")}};var G=A3(de());var a3={};c(a3,{putApiV3TagById:()=>GG,putApiV3SeriesEditor:()=>TS,putApiV3SeriesById:()=>AG,putApiV3RemotepathmappingById:()=>CS,putApiV3ReleaseprofileById:()=>PS,putApiV3QualityprofileById:()=>jy,putApiV3QualitydefinitionUpdate:()=>IS,putApiV3QualitydefinitionById:()=>RS,putApiV3NotificationById:()=>wy,putApiV3MetadataById:()=>zC,putApiV3LanguageprofileById:()=>FC,putApiV3IndexerById:()=>gy,putApiV3IndexerBulk:()=>MC,putApiV3ImportlistexclusionById:()=>SC,putApiV3ImportlistById:()=>Vy,putApiV3ImportlistBulk:()=>gC,putApiV3EpisodefileEditor:()=>VC,putApiV3EpisodefileById:()=>aC,putApiV3EpisodefileBulk:()=>BC,putApiV3EpisodeMonitor:()=>ns,putApiV3EpisodeById:()=>cd,putApiV3DownloadclientById:()=>$d,putApiV3DownloadclientBulk:()=>jd,putApiV3DelayprofileReorderById:()=>Ks,putApiV3DelayprofileById:()=>is,putApiV3CustomformatById:()=>Qd,putApiV3CustomformatBulk:()=>kd,putApiV3CustomfilterById:()=>Js,putApiV3ConfigUiById:()=>PG,putApiV3ConfigNamingById:()=>My,putApiV3ConfigMediamanagementById:()=>Cy,putApiV3ConfigIndexerById:()=>NC,putApiV3ConfigImportlistById:()=>mC,putApiV3ConfigHostById:()=>nd,putApiV3ConfigDownloadclientById:()=>qs,putApiV3AutotaggingById:()=>Hs,postLogin:()=>Ls,postApiV3Tag:()=>DG,postApiV3SystemShutdown:()=>RG,postApiV3SystemRestart:()=>BG,postApiV3SystemBackupRestoreUpload:()=>Pd,postApiV3SystemBackupRestoreById:()=>td,postApiV3SeriesImport:()=>LS,postApiV3Series:()=>ny,postApiV3Seasonpass:()=>xS,postApiV3Rootfolder:()=>_y,postApiV3Remotepathmapping:()=>pS,postApiV3Releaseprofile:()=>gS,postApiV3ReleasePush:()=>mS,postApiV3Release:()=>yS,postApiV3QueueGrabById:()=>hy,postApiV3QueueGrabBulk:()=>cy,postApiV3Qualityprofile:()=>Fy,postApiV3NotificationTestall:()=>Oy,postApiV3NotificationTest:()=>Hy,postApiV3NotificationActionByName:()=>eS,postApiV3Notification:()=>Qy,postApiV3MetadataTestall:()=>qC,postApiV3MetadataTest:()=>vC,postApiV3MetadataActionByName:()=>nC,postApiV3Metadata:()=>cC,postApiV3Manualimport:()=>py,postApiV3Languageprofile:()=>OC,postApiV3IndexerTestall:()=>Py,postApiV3IndexerTest:()=>ty,postApiV3IndexerActionByName:()=>TC,postApiV3Indexer:()=>dy,postApiV3Importlistexclusion:()=>pC,postApiV3ImportlistTestall:()=>Iy,postApiV3ImportlistTest:()=>By,postApiV3ImportlistActionByName:()=>uC,postApiV3Importlist:()=>ey,postApiV3HistoryFailedById:()=>_d,postApiV3DownloadclientTestall:()=>Zd,postApiV3DownloadclientTest:()=>Xd,postApiV3DownloadclientActionByName:()=>zs,postApiV3Downloadclient:()=>Ed,postApiV3Delayprofile:()=>Ys,postApiV3Customformat:()=>Md,postApiV3Customfilter:()=>$s,postApiV3Command:()=>Sd,postApiV3Autotagging:()=>ks,headPing:()=>aS,getPing:()=>AS,getLogout:()=>Qs,getLogin:()=>Ts,getFeedV3CalendarSonarrIcs:()=>sd,getContentByPath:()=>QS,getByPath:()=>kS,getApiV3WantedMissingById:()=>oC,getApiV3WantedMissing:()=>Sy,getApiV3WantedCutoffById:()=>Xs,getApiV3WantedCutoff:()=>Wd,getApiV3Update:()=>n,getApiV3TagDetailById:()=>uG,getApiV3TagDetail:()=>gG,getApiV3TagById:()=>yG,getApiV3Tag:()=>IG,getApiV3SystemTaskById:()=>ES,getApiV3SystemTask:()=>OS,getApiV3SystemStatus:()=>wS,getApiV3SystemRoutesDuplicate:()=>HS,getApiV3SystemRoutes:()=>WS,getApiV3SystemBackup:()=>gd,getApiV3SeriesLookup:()=>VG,getApiV3SeriesByIdFolder:()=>aG,getApiV3SeriesById:()=>eG,getApiV3Series:()=>qy,getApiV3RootfolderById:()=>rS,getApiV3Rootfolder:()=>zy,getApiV3Rename:()=>SS,getApiV3RemotepathmappingById:()=>sS,getApiV3Remotepathmapping:()=>lS,getApiV3ReleaseprofileById:()=>tS,getApiV3Releaseprofile:()=>GS,getApiV3Release:()=>dS,getApiV3QueueStatus:()=>Ky,getApiV3QueueDetails:()=>iy,getApiV3Queue:()=>Yy,getApiV3QualityprofileSchema:()=>Jy,getApiV3QualityprofileById:()=>by,getApiV3Qualityprofile:()=>Uy,getApiV3QualitydefinitionLimits:()=>DS,getApiV3QualitydefinitionById:()=>VS,getApiV3Qualitydefinition:()=>BS,getApiV3Parse:()=>Ey,getApiV3NotificationSchema:()=>Wy,getApiV3NotificationById:()=>ky,getApiV3Notification:()=>Ly,getApiV3MetadataSchema:()=>_C,getApiV3MetadataById:()=>KC,getApiV3Metadata:()=>hC,getApiV3MediacoverBySeriesIdByFilename:()=>YC,getApiV3Manualimport:()=>ly,getApiV3LogFileUpdateByFilename:()=>FS,getApiV3LogFileUpdate:()=>US,getApiV3LogFileByFilename:()=>ZC,getApiV3LogFile:()=>XC,getApiV3Log:()=>my,getApiV3LocalizationLanguage:()=>jC,getApiV3LocalizationById:()=>JC,getApiV3Localization:()=>bC,getApiV3LanguageprofileSchema:()=>$C,getApiV3LanguageprofileById:()=>UC,getApiV3Languageprofile:()=>HC,getApiV3LanguageById:()=>WC,getApiV3Language:()=>wC,getApiV3Indexerflag:()=>kC,getApiV3IndexerSchema:()=>uy,getApiV3IndexerById:()=>Gy,getApiV3Indexer:()=>Dy,getApiV3ImportlistexclusionPaged:()=>fC,getApiV3ImportlistexclusionById:()=>CC,getApiV3Importlistexclusion:()=>lC,getApiV3ImportlistSchema:()=>Ry,getApiV3ImportlistById:()=>ay,getApiV3Importlist:()=>od,getApiV3HistorySince:()=>Kd,getApiV3HistorySeries:()=>zd,getApiV3History:()=>id,getApiV3Health:()=>yC,getApiV3FilesystemType:()=>DC,getApiV3FilesystemMediafiles:()=>dC,getApiV3Filesystem:()=>IC,getApiV3EpisodefileById:()=>AC,getApiV3Episodefile:()=>os,getApiV3EpisodeById:()=>hd,getApiV3Episode:()=>Yd,getApiV3DownloadclientSchema:()=>Jd,getApiV3DownloadclientById:()=>Fd,getApiV3Downloadclient:()=>Od,getApiV3Diskspace:()=>Hd,getApiV3DelayprofileById:()=>cs,getApiV3Delayprofile:()=>Zs,getApiV3CustomformatSchema:()=>wd,getApiV3CustomformatById:()=>Ld,getApiV3Customformat:()=>xd,getApiV3CustomfilterById:()=>js,getApiV3Customfilter:()=>Fs,getApiV3ConfigUiById:()=>tG,getApiV3ConfigUi:()=>mG,getApiV3ConfigNamingExamples:()=>Ty,getApiV3ConfigNamingById:()=>xy,getApiV3ConfigNaming:()=>ry,getApiV3ConfigMediamanagementById:()=>sy,getApiV3ConfigMediamanagement:()=>fy,getApiV3ConfigIndexerById:()=>QC,getApiV3ConfigIndexer:()=>LC,getApiV3ConfigImportlistById:()=>PC,getApiV3ConfigImportlist:()=>tC,getApiV3ConfigHostById:()=>qd,getApiV3ConfigHost:()=>vd,getApiV3ConfigDownloadclientById:()=>vs,getApiV3ConfigDownloadclient:()=>_s,getApiV3CommandById:()=>rd,getApiV3Command:()=>Cd,getApiV3CalendarById:()=>Es,getApiV3Calendar:()=>fd,getApiV3Blocklist:()=>md,getApiV3AutotaggingSchema:()=>Os,getApiV3AutotaggingById:()=>Ws,getApiV3Autotagging:()=>Ns,getApi:()=>Gd,get:()=>NS,deleteApiV3TagById:()=>dG,deleteApiV3SystemBackupById:()=>ud,deleteApiV3SeriesEditor:()=>MS,deleteApiV3SeriesById:()=>oy,deleteApiV3RootfolderById:()=>vy,deleteApiV3RemotepathmappingById:()=>fS,deleteApiV3ReleaseprofileById:()=>uS,deleteApiV3QueueById:()=>Xy,deleteApiV3QueueBulk:()=>Zy,deleteApiV3QualityprofileById:()=>$y,deleteApiV3NotificationById:()=>Ny,deleteApiV3MetadataById:()=>iC,deleteApiV3LanguageprofileById:()=>EC,deleteApiV3IndexerById:()=>yy,deleteApiV3IndexerBulk:()=>xC,deleteApiV3ImportlistexclusionById:()=>sC,deleteApiV3ImportlistexclusionBulk:()=>rC,deleteApiV3ImportlistById:()=>Ay,deleteApiV3ImportlistBulk:()=>GC,deleteApiV3EpisodefileById:()=>eC,deleteApiV3EpisodefileBulk:()=>RC,deleteApiV3DownloadclientById:()=>Ud,deleteApiV3DownloadclientBulk:()=>bd,deleteApiV3DelayprofileById:()=>hs,deleteApiV3CustomformatById:()=>Td,deleteApiV3CustomformatBulk:()=>Nd,deleteApiV3CustomfilterById:()=>bs,deleteApiV3CommandById:()=>Us,deleteApiV3BlocklistById:()=>ld,deleteApiV3BlocklistBulk:()=>pd,deleteApiV3AutotaggingById:()=>ws});var Gd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),Ts=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),Ls=(e)=>(e?.client??G).post({...vG,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),Qs=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),Ns=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...e}),ks=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ws=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e}),Ws=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e}),Hs=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Os=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/schema",...e}),gd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup",...e}),ud=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/{id}",...e}),td=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/restore/{id}",...e}),Pd=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/restore/upload",...e}),md=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist",...e}),ld=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/{id}",...e}),pd=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/calendar",...e}),Es=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/calendar/{id}",...e}),sd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v3/calendar/sonarr.ics",...e}),Cd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...e}),Sd=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Us=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),rd=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),Fs=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...e}),$s=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...e,headers:{"Content-Type":"application/json",...e?.headers}}),bs=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e}),js=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e}),Js=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),xd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...e}),Md=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Td=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),Ld=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),Qd=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Nd=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kd=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/schema",...e}),Wd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/cutoff",...e}),Xs=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/cutoff/{id}",...e}),Zs=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...e}),Ys=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),hs=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),cs=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),is=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ks=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/reorder/{id}",...e}),Hd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/diskspace",...e}),Od=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...e}),Ed=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ud=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),Fd=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),$d=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),bd=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),jd=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Jd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/schema",...e}),Xd=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Zd=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/testall",...e}),zs=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),_s=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient",...e}),vs=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient/{id}",...e}),qs=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Yd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episode",...e}),hd=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episode/{id}",...e}),cd=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episode/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ns=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episode/monitor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),os=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile",...e}),eC=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/{id}",...e}),AC=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/{id}",...e}),aC=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),VC=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),RC=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),BC=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),IC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem",...e}),DC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/type",...e}),dC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/mediafiles",...e}),yC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/health",...e}),id=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history",...e}),Kd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/since",...e}),zd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/series",...e}),_d=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/failed/{id}",...e}),vd=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host",...e}),qd=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host/{id}",...e}),nd=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),od=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...e}),ey=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ay=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),ay=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),Vy=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),GC=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gC=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ry=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/schema",...e}),By=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Iy=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/testall",...e}),uC=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),tC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist",...e}),PC=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist/{id}",...e}),mC=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),lC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion",...e}),pC=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion/paged",...e}),sC=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion/{id}",...e}),CC=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion/{id}",...e}),SC=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),rC=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Dy=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...e}),dy=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),yy=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),Gy=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),gy=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),xC=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),MC=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),uy=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/schema",...e}),ty=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Py=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/testall",...e}),TC=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),LC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer",...e}),QC=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer/{id}",...e}),NC=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),kC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexerflag",...e}),wC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language",...e}),WC=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language/{id}",...e}),HC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile",...e}),OC=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),EC=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile/{id}",...e}),UC=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile/{id}",...e}),FC=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),$C=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile/schema",...e}),bC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization",...e}),jC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization/language",...e}),JC=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization/{id}",...e}),my=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log",...e}),XC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file",...e}),ZC=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/{filename}",...e}),ly=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...e}),py=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...e,headers:{"Content-Type":"application/json",...e?.headers}}),YC=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/mediacover/{seriesId}/{filename}",...e}),fy=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement",...e}),sy=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement/{id}",...e}),Cy=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),hC=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...e}),cC=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...e,headers:{"Content-Type":"application/json",...e?.headers}}),iC=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),KC=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),zC=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),_C=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/schema",...e}),vC=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qC=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/testall",...e}),nC=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Sy=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/missing",...e}),oC=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/missing/{id}",...e}),ry=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming",...e}),xy=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/{id}",...e}),My=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ty=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/examples",...e}),Ly=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...e}),Qy=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ny=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),ky=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),wy=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Wy=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/schema",...e}),Hy=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Oy=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/testall",...e}),eS=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ey=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/parse",...e}),AS=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),aS=(e)=>(e?.client??G).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),VS=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...e}),RS=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),BS=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition",...e}),IS=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/update",...e,headers:{"Content-Type":"application/json",...e?.headers}}),DS=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/limits",...e}),Uy=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...e}),Fy=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),$y=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),by=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),jy=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Jy=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/schema",...e}),Xy=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/{id}",...e}),Zy=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Yy=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue",...e}),hy=(e)=>(e.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/grab/{id}",...e}),cy=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/grab/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),iy=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/details",...e}),Ky=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/status",...e}),dS=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release",...e}),yS=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release",...e,headers:{"Content-Type":"application/json",...e?.headers}}),GS=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile",...e}),gS=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),uS=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),tS=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),PS=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),mS=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release/push",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lS=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...e}),pS=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fS=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e}),sS=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e}),CS=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),SS=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rename",...e}),zy=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...e}),_y=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...e,headers:{"Content-Type":"application/json",...e?.headers}}),vy=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),rS=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),xS=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/seasonpass",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qy=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series",...e}),ny=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series",...e,headers:{"Content-Type":"application/json",...e?.headers}}),oy=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/{id}",...e}),eG=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/{id}",...e}),AG=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),MS=(e)=>(e?.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),TS=(e)=>(e?.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),aG=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/{id}/folder",...e}),LS=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/import",...e,headers:{"Content-Type":"application/json",...e?.headers}}),VG=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/lookup",...e}),QS=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),NS=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),kS=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),wS=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/status",...e}),WS=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes",...e}),HS=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes/duplicate",...e}),RG=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/shutdown",...e}),BG=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/restart",...e}),IG=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...e}),DG=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...e,headers:{"Content-Type":"application/json",...e?.headers}}),dG=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),yG=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),GG=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),gG=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail",...e}),uG=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail/{id}",...e}),OS=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task",...e}),ES=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task/{id}",...e}),tG=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui/{id}",...e}),PG=(e)=>(e.client??G).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),mG=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui",...e}),n=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/update",...e}),US=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/update",...e}),FS=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/update/{filename}",...e});class $S{clientConfig;constructor(e){this.clientConfig=E(e),G.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getApi(){return Gd()}async getSystemStatus(){return G.get({url:"/api/v3/system/status",headers:this.clientConfig.getHeaders(),baseUrl:this.clientConfig.getBaseUrl()})}async getHealth(){return G.get({url:"/api/v3/health",headers:this.clientConfig.getHeaders(),baseUrl:this.clientConfig.getBaseUrl()})}async getSeries(){return qy()}async getSeriesById(e){return eG({path:{id:e}})}async addSeries(e){return ny({body:e})}async updateSeries(e,A){return AG({path:{id:e},body:A})}async deleteSeries(e){return oy({path:{id:e}})}async getSeriesFolder(e){return aG({path:{id:e}})}async searchSeries(e){return VG({query:{term:e}})}async getRootFolders(){return zy()}async addRootFolder(e){return _y({body:{path:e}})}async deleteRootFolder(e){return vy({path:{id:e}})}async getLogs(e,A,a,V,R){let d={};if(e!==void 0)d.page=e;if(A!==void 0)d.pageSize=A;if(a)d.sortKey=a;if(V)d.sortDirection=V;if(R)d.level=R;return my(Object.keys(d).length>0?{query:d}:{})}async getUpdates(){return n()}async getUpdateSettings(){return n()}async getUpdateSetting(){return n()}async getHostConfig(){return vd()}async getHostConfigById(e){return qd({path:{id:e}})}async updateHostConfig(e,A){return nd({path:{id:e},body:A})}async getNamingConfig(){return ry()}async getNamingConfigById(e){return xy({path:{id:e}})}async updateNamingConfig(e,A){return My({path:{id:e},body:A})}async getNamingConfigExamples(){return Ty()}async getMediaManagementConfig(){return fy()}async getMediaManagementConfigById(e){return sy({path:{id:e}})}async updateMediaManagementConfig(e,A){return Cy({path:{id:e},body:A})}async getUiConfig(){return mG()}async getUiConfigById(e){return tG({path:{id:e}})}async updateUiConfig(e,A){return PG({path:{id:e},body:A})}async restartSystem(){return BG()}async shutdownSystem(){return RG()}async getSystemBackups(){return gd()}async deleteSystemBackup(e){return ud({path:{id:e}})}async restoreSystemBackup(e){return td({path:{id:e}})}async uploadSystemBackup(){return Pd()}async getDiskSpace(){return Hd()}async getTags(){return IG()}async addTag(e){return DG({body:e})}async getTag(e){return yG({path:{id:e}})}async updateTag(e,A){return GG({path:{id:e},body:A})}async deleteTag(e){return dG({path:{id:e}})}async getTagDetails(){return gG()}async getTagDetailById(e){return uG({path:{id:e}})}async getEpisodes(){return Yd()}async getEpisode(e){return hd({path:{id:e}})}async updateEpisode(e,A){return cd({path:{id:e},body:A})}async getQualityProfiles(){return Uy()}async getQualityProfile(e){return by({path:{id:e}})}async addQualityProfile(e){return Fy({body:e})}async updateQualityProfile(e,A){return jy({path:{id:e},body:A})}async deleteQualityProfile(e){return $y({path:{id:e}})}async getQualityProfileSchema(){return Jy()}async getCustomFormats(){return xd()}async getCustomFormat(e){return Ld({path:{id:e}})}async addCustomFormat(e){return Md({body:e})}async updateCustomFormat(e,A){return Qd({path:{id:e},body:A})}async deleteCustomFormat(e){return Td({path:{id:e}})}async updateCustomFormatsBulk(e){return kd({body:e})}async deleteCustomFormatsBulk(e){return Nd({body:{ids:e}})}async getCustomFormatSchema(){return wd()}async getDownloadClients(){return Od()}async getDownloadClient(e){return Fd({path:{id:e}})}async addDownloadClient(e){return Ed({body:e})}async updateDownloadClient(e,A){return $d({path:{id:e},body:A})}async deleteDownloadClient(e){return Ud({path:{id:e}})}async updateDownloadClientsBulk(e){return jd({body:e})}async deleteDownloadClientsBulk(e){return bd({body:{ids:e}})}async getDownloadClientSchema(){return Jd()}async testDownloadClient(e){return Xd({body:e})}async testAllDownloadClients(){return Zd()}async getIndexers(){return Dy()}async getIndexer(e){return Gy({path:{id:e}})}async addIndexer(e){return dy({body:e})}async updateIndexer(e,A){return gy({path:{id:e},body:A})}async deleteIndexer(e){return yy({path:{id:e}})}async getIndexerSchema(){return uy()}async testIndexer(e){return ty({body:e})}async testAllIndexers(){return Py()}async getImportLists(){return od()}async getImportList(e){return ay({path:{id:e}})}async addImportList(e){return ey({body:e})}async updateImportList(e,A){return Vy({path:{id:e},body:A})}async deleteImportList(e){return Ay({path:{id:e}})}async getImportListSchema(){return Ry()}async testImportList(e){return By({body:e})}async testAllImportLists(){return Iy()}async getNotifications(){return Ly()}async getNotification(e){return ky({path:{id:e}})}async addNotification(e){return Qy({body:e})}async updateNotification(e,A){return wy({path:{id:e},body:A})}async deleteNotification(e){return Ny({path:{id:e}})}async getNotificationSchema(){return Wy()}async testNotification(e){return Hy({body:e})}async testAllNotifications(){return Oy()}async runCommand(e){return Sd({body:e})}async getCommands(){return Cd()}async getCommand(e){return rd({path:{id:e}})}async getHistory(e,A,a,V,R,d){let I={};if(e!==void 0)I.page=e;if(A!==void 0)I.pageSize=A;if(a)I.sortKey=a;if(V)I.sortDirection=V;if(R!==void 0)I.seriesIds=[R];if(d)I.downloadId=d;return id(Object.keys(I).length>0?{query:I}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.seriesId=A;return Kd({query:a})}async getSeriesHistory(e,A,a){let V={seriesId:e};if(A!==void 0)V.seasonNumber=A;if(a!==void 0)V.eventType=a;return zd({query:V})}async markHistoryItemFailed(e){return _d({path:{id:e}})}async getCalendar(e,A,a){let V={};if(e)V.start=e;if(A)V.end=A;if(a!==void 0)V.unmonitored=a;return fd(Object.keys(V).length>0?{query:V}:{})}async getCalendarFeed(e,A,a){let V={};if(e!==void 0)V.pastDays=e;if(A!==void 0)V.futureDays=A;if(a)V.tags=a;return sd(Object.keys(V).length>0?{query:V}:{})}async getQueue(e,A,a,V,R){let d={};if(e!==void 0)d.page=e;if(A!==void 0)d.pageSize=A;if(a)d.sortKey=a;if(V)d.sortDirection=V;if(R!==void 0)d.includeUnknownSeriesItems=R;return Yy(Object.keys(d).length>0?{query:d}:{})}async removeQueueItem(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return Xy({path:{id:e},...Object.keys(V).length>0?{query:V}:{}})}async removeQueueItemsBulk(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return Zy({body:{ids:e},...Object.keys(V).length>0?{query:V}:{}})}async grabQueueItem(e){return hy({path:{id:e}})}async grabQueueItemsBulk(e){return cy({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.seriesId=e;if(A!==void 0)a.includeUnknownSeriesItems=A;return iy(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return Ky()}async getBlocklist(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return md(Object.keys(R).length>0?{query:R}:{})}async removeBlocklistItem(e){return ld({path:{id:e}})}async removeBlocklistItemsBulk(e){return pd({body:{ids:e}})}async getWantedMissing(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return Sy(Object.keys(R).length>0?{query:R}:{})}async getWantedCutoff(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return Wd(Object.keys(R).length>0?{query:R}:{})}async parseEpisodeInfo(e){return Ey({query:{title:e}})}async getManualImport(e,A,a,V){let R={};if(e)R.folder=e;if(A)R.downloadId=A;if(a!==void 0)R.seriesId=a;if(V!==void 0)R.filterExistingFiles=V;return ly(Object.keys(R).length>0?{query:R}:{})}async processManualImport(e){return py({body:e})}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),G.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}async function bL(e){try{let A=await e;if(A.error)return{success:!1,error:bS(A.error,A.response)};return{success:!0,data:A.data}}catch(A){return{success:!1,error:bS(A)}}}function bS(e,A){if(e instanceof J)return e;if(A){let{status:a,statusText:V}=A;if(a===401)return new J("Unauthorized - check your API key","UNAUTHORIZED",401);if(a===404)return new J("Resource not found","NOT_FOUND",404);if(a>=500)return new J(`Server error: ${V}`,"SERVER_ERROR",a);if(a>=400)return new J(`Client error: ${V}`,"CLIENT_ERROR",a)}if(e?.message?.includes("fetch"))return new J("Network error - unable to connect to server","NETWORK_ERROR");return new J(e?.message||"Unknown error occurred","UNKNOWN_ERROR",void 0,e)}function jL(e,A){if(!e)throw new ee("No data returned from API");if(typeof e==="object"&&e!==null){if(Array.isArray(e))e.forEach((a,V)=>{if(a===null||a===void 0)throw new ee(`Invalid null/undefined item at index ${V}`)});if("id"in e&&typeof e.id!=="number")throw new ee("Resource ID must be a number")}return e}var XL="1.0.0";export{jL as validateResponse,Kr as validateBaseUrl,ir as validateApiKey,bL as handleApiResponse,E as createServarrClient,ee as ValidationError,XL as VERSION,J as TsarrError,$S as SonarrClient,a3 as Sonarr,ls as ReadarrClient,_G as Readarr,il as RadarrClient,ZG as Radarr,sP as ProwlarrClient,UG as Prowlarr,ZS as NotFoundError,qu as LidarrClient,NG as Lidarr,o as ConnectionError,k3 as BazarrClient,SG as Bazarr,ye as ApiKeyError};
36
+ `),O=[],$;for(let T of h)if(T.startsWith("data:"))O.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))I=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let j=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let T=O.join(`
37
+ `);try{k=JSON.parse(T),b=!0}catch{k=T}}if(b){if(R)await R(k);if(V)k=await V(k)}if(a?.({data:k,event:$,id:I,retry:L}),O.length)yield k}}}finally{x.removeEventListener("abort",U),C.releaseLock()}break}catch(Q){if(A?.(Q),B!==void 0&&P>=B)break;let N=Math.min(L*2**(P-1),D??30000);await r(N)}}}()}};var Ex=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ux=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Fx=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},gd=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let D=(e?R:R.map((g)=>encodeURIComponent(g))).join(Ux(V));switch(V){case"label":return`.${D}`;case"matrix":return`;${a}=${D}`;case"simple":return D;default:return`${a}=${D}`}}let t=Ex(V),B=R.map((D)=>{if(V==="label"||V==="simple")return e?D:encodeURIComponent(D);return q({allowReserved:e,name:a,value:D})}).join(t);return V==="label"||V==="matrix"?t+B:B},q=({allowReserved:e,name:A,value:a})=>{if(a===void 0||a===null)return"";if(typeof a==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${A}=${e?a:encodeURIComponent(a)}`},ud=({allowReserved:e,explode:A,name:a,style:V,value:R,valueOnly:t})=>{if(R instanceof Date)return t?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let g=[];Object.entries(R).forEach(([m,I])=>{g=[...g,m,e?I:encodeURIComponent(I)]});let S=g.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let B=Fx(V),D=Object.entries(R).map(([g,S])=>q({allowReserved:e,name:V==="deepObject"?`${a}[${g}]`:g,value:S})).join(B);return V==="label"||V==="matrix"?B+D:D};var $x=/\{[^{}]+\}/g,bx=({path:e,url:A})=>{let a=A,V=A.match($x);if(V)for(let R of V){let t=!1,B=R.substring(1,R.length-1),D="simple";if(B.endsWith("*"))t=!0,B=B.substring(0,B.length-1);if(B.startsWith("."))B=B.substring(1),D="label";else if(B.startsWith(";"))B=B.substring(1),D="matrix";let g=e[B];if(g===void 0||g===null)continue;if(Array.isArray(g)){a=a.replace(R,gd({explode:t,name:B,style:D,value:g}));continue}if(typeof g==="object"){a=a.replace(R,ud({explode:t,name:B,style:D,value:g,valueOnly:!0}));continue}if(D==="matrix"){a=a.replace(R,`;${q({name:B,value:g})}`);continue}let S=encodeURIComponent(D==="label"?`.${g}`:g);a=a.replace(R,S)}return a},CC=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let t=R.startsWith("/")?R:`/${R}`,B=(e??"")+t;if(A)B=bx({path:A,url:B});let D=a?V(a):"";if(D.startsWith("?"))D=D.substring(1);if(D)B+=`?${D}`;return B};function V3(e){let A=e.body!==void 0;if(A&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(A)return e.body;return}var sC=async(e,A)=>{let a=typeof A==="function"?await A(e):A;if(!a)return;if(e.scheme==="bearer")return`Bearer ${a}`;if(e.scheme==="basic")return`Basic ${btoa(a)}`;return a};var SC=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let t in V){let B=V[t];if(B===void 0||B===null)continue;let D=e[t]||A;if(Array.isArray(B)){let g=gd({allowReserved:D.allowReserved,explode:!0,name:t,style:"form",value:B,...D.array});if(g)R.push(g)}else if(typeof B==="object"){let g=ud({allowReserved:D.allowReserved,explode:!0,name:t,style:"deepObject",value:B,...D.object});if(g)R.push(g)}else{let g=q({allowReserved:D.allowReserved,name:t,value:B});if(g)R.push(g)}}return R.join("&")}},xC=(e)=>{if(!e)return"stream";let A=e.split(";")[0]?.trim();if(!A)return;if(A.startsWith("application/json")||A.endsWith("+json"))return"json";if(A==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>A.startsWith(a)))return"blob";if(A.startsWith("text/"))return"text";return},jx=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},rC=async({security:e,...A})=>{for(let a of e){if(jx(A,a.name))continue;let V=await sC(a,A.auth);if(!V)continue;let R=a.name??"Authorization";switch(a.in){case"query":if(!A.query)A.query={};A.query[R]=V;break;case"cookie":A.headers.append("Cookie",`${R}=${V}`);break;case"header":default:A.headers.set(R,V);break}}},R3=(e)=>CC({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:SC(e.querySerializer),url:e.url}),B3=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=Pd(e.headers,A.headers),a},Jx=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},Pd=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?Jx(a):Object.entries(a);for(let[R,t]of V)if(t===null)A.delete(R);else if(Array.isArray(t))for(let B of t)A.append(R,B);else if(t!==void 0)A.set(R,typeof t==="object"?JSON.stringify(t):t)}return A};class td{fns=[];clear(){this.fns=[]}eject(e){let A=this.getInterceptorIndex(e);if(this.fns[A])this.fns[A]=null}exists(e){let A=this.getInterceptorIndex(e);return Boolean(this.fns[A])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,A){let a=this.getInterceptorIndex(e);if(this.fns[a])return this.fns[a]=A,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var MC=()=>({error:new td,request:new td,response:new td}),Xx=SC({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Zx={"Content-Type":"application/json"},de=(e={})=>({...a3,headers:Zx,parseAs:"auto",querySerializer:Xx,...e});var I3=(e={})=>{let A=B3(de(),e),a=()=>({...A}),V=(m)=>{return A=B3(A,m),a()},R=MC(),t=async(m)=>{let I={...A,...m,fetch:m.fetch??A.fetch??globalThis.fetch,headers:Pd(A.headers,m.headers),serializedBody:void 0};if(I.security)await rC({...I,security:I.security});if(I.requestValidator)await I.requestValidator(I);if(I.body!==void 0&&I.bodySerializer)I.serializedBody=I.bodySerializer(I.body);if(I.body===void 0||I.serializedBody==="")I.headers.delete("Content-Type");let r=R3(I);return{opts:I,url:r}},B=async(m)=>{let{opts:I,url:r}=await t(m),H={redirect:"follow",...I,body:V3(I)},M=new Request(r,H);for(let l of R.request.fns)if(l)M=await l(M,I);let L=I.fetch,P;try{P=await L(M)}catch(l){let C=l;for(let f of R.error.fns)if(f)C=await f(l,void 0,M,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:M,response:void 0}}for(let l of R.response.fns)if(l)P=await l(P,M,I);let x={request:M,response:P};if(P.ok){let l=(I.parseAs==="auto"?xC(P.headers.get("Content-Type")):I.parseAs)??"json";if(P.status===204||P.headers.get("Content-Length")==="0"){let f;switch(l){case"arrayBuffer":case"blob":case"text":f=await P[l]();break;case"formData":f=new FormData;break;case"stream":f=P.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":C=await P[l]();break;case"json":{let f=await P.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?P.body:{data:P.body,...x}}if(l==="json"){if(I.responseValidator)await I.responseValidator(C);if(I.responseTransformer)C=await I.responseTransformer(C)}return I.responseStyle==="data"?C:{data:C,...x}}let W=await P.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let l of R.error.fns)if(l)w=await l(N,P,M,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},D=(m)=>(I)=>B({...I,method:m}),g=(m)=>async(I)=>{let{opts:r,url:H}=await t(I);return fC({...r,body:r.body,headers:r.headers,method:m,onRequest:async(M,L)=>{let P=new Request(M,L);for(let x of R.request.fns)if(x)P=await x(P,r);return P},serializedBody:V3(r),url:H})};return{buildUrl:(m)=>R3({...A,...m}),connect:D("CONNECT"),delete:D("DELETE"),get:D("GET"),getConfig:a,head:D("HEAD"),interceptors:R,options:D("OPTIONS"),patch:D("PATCH"),post:D("POST"),put:D("PUT"),request:B,setConfig:V,sse:{connect:g("CONNECT"),delete:g("DELETE"),get:g("GET"),head:g("HEAD"),options:g("OPTIONS"),patch:g("PATCH"),post:g("POST"),put:g("PUT"),trace:g("TRACE")},trace:D("TRACE")}};var y=I3(de());var D3={};c(D3,{putApiV3TagById:()=>mG,putApiV3SeriesEditor:()=>TS,putApiV3SeriesById:()=>IG,putApiV3RemotepathmappingById:()=>sS,putApiV3ReleaseprofileById:()=>PS,putApiV3QualityprofileById:()=>hy,putApiV3QualitydefinitionUpdate:()=>IS,putApiV3QualitydefinitionById:()=>RS,putApiV3NotificationById:()=>Uy,putApiV3MetadataById:()=>zs,putApiV3LanguageprofileById:()=>Fs,putApiV3IndexerById:()=>ly,putApiV3IndexerBulk:()=>Ms,putApiV3ImportlistexclusionById:()=>Ss,putApiV3ImportlistById:()=>dy,putApiV3ImportlistBulk:()=>gs,putApiV3EpisodefileEditor:()=>Vs,putApiV3EpisodefileById:()=>as,putApiV3EpisodefileBulk:()=>Bs,putApiV3EpisodeMonitor:()=>nC,putApiV3EpisodeById:()=>vd,putApiV3DownloadclientById:()=>Zd,putApiV3DownloadclientBulk:()=>hd,putApiV3DelayprofileReorderById:()=>iC,putApiV3DelayprofileById:()=>KC,putApiV3CustomformatById:()=>Hd,putApiV3CustomformatBulk:()=>Ed,putApiV3CustomfilterById:()=>JC,putApiV3ConfigUiById:()=>CG,putApiV3ConfigNamingById:()=>ky,putApiV3ConfigMediamanagementById:()=>Ty,putApiV3ConfigIndexerById:()=>Ns,putApiV3ConfigImportlistById:()=>ms,putApiV3ConfigHostById:()=>Vy,putApiV3ConfigDownloadclientById:()=>qC,putApiV3AutotaggingById:()=>HC,postLogin:()=>LC,postApiV3Tag:()=>uG,postApiV3SystemShutdown:()=>yG,postApiV3SystemRestart:()=>GG,postApiV3SystemBackupRestoreUpload:()=>Cd,postApiV3SystemBackupRestoreById:()=>fd,postApiV3SeriesImport:()=>LS,postApiV3Series:()=>VG,postApiV3Seasonpass:()=>rS,postApiV3Rootfolder:()=>eG,postApiV3Remotepathmapping:()=>pS,postApiV3Releaseprofile:()=>gS,postApiV3ReleasePush:()=>mS,postApiV3Release:()=>yS,postApiV3QueueGrabById:()=>_y,postApiV3QueueGrabBulk:()=>vy,postApiV3Qualityprofile:()=>Xy,postApiV3NotificationTestall:()=>by,postApiV3NotificationTest:()=>$y,postApiV3NotificationActionByName:()=>eS,postApiV3Notification:()=>Hy,postApiV3MetadataTestall:()=>qs,postApiV3MetadataTest:()=>vs,postApiV3MetadataActionByName:()=>ns,postApiV3Metadata:()=>cs,postApiV3Manualimport:()=>xy,postApiV3Languageprofile:()=>Os,postApiV3IndexerTestall:()=>Cy,postApiV3IndexerTest:()=>fy,postApiV3IndexerActionByName:()=>Ts,postApiV3Indexer:()=>ty,postApiV3Importlistexclusion:()=>ps,postApiV3ImportlistTestall:()=>gy,postApiV3ImportlistTest:()=>Gy,postApiV3ImportlistActionByName:()=>us,postApiV3Importlist:()=>By,postApiV3HistoryFailedById:()=>ey,postApiV3DownloadclientTestall:()=>id,postApiV3DownloadclientTest:()=>Kd,postApiV3DownloadclientActionByName:()=>zC,postApiV3Downloadclient:()=>jd,postApiV3Delayprofile:()=>YC,postApiV3Customformat:()=>kd,postApiV3Customfilter:()=>$C,postApiV3Command:()=>Ld,postApiV3Autotagging:()=>kC,headPing:()=>aS,getPing:()=>AS,getLogout:()=>QC,getLogin:()=>TC,getFeedV3CalendarSonarrIcs:()=>Md,getContentByPath:()=>QS,getByPath:()=>kS,getApiV3WantedMissingById:()=>os,getApiV3WantedMissing:()=>Ly,getApiV3WantedCutoffById:()=>XC,getApiV3WantedCutoff:()=>Fd,getApiV3Update:()=>n,getApiV3TagDetailById:()=>pG,getApiV3TagDetail:()=>lG,getApiV3TagById:()=>PG,getApiV3Tag:()=>gG,getApiV3SystemTaskById:()=>ES,getApiV3SystemTask:()=>OS,getApiV3SystemStatus:()=>wS,getApiV3SystemRoutesDuplicate:()=>HS,getApiV3SystemRoutes:()=>WS,getApiV3SystemBackup:()=>ld,getApiV3SeriesLookup:()=>dG,getApiV3SeriesByIdFolder:()=>DG,getApiV3SeriesById:()=>BG,getApiV3Series:()=>aG,getApiV3RootfolderById:()=>xS,getApiV3Rootfolder:()=>oy,getApiV3Rename:()=>SS,getApiV3RemotepathmappingById:()=>CS,getApiV3Remotepathmapping:()=>lS,getApiV3ReleaseprofileById:()=>tS,getApiV3Releaseprofile:()=>GS,getApiV3Release:()=>dS,getApiV3QueueStatus:()=>ny,getApiV3QueueDetails:()=>qy,getApiV3Queue:()=>zy,getApiV3QualityprofileSchema:()=>cy,getApiV3QualityprofileById:()=>Yy,getApiV3Qualityprofile:()=>Jy,getApiV3QualitydefinitionLimits:()=>DS,getApiV3QualitydefinitionById:()=>VS,getApiV3Qualitydefinition:()=>BS,getApiV3Parse:()=>jy,getApiV3NotificationSchema:()=>Fy,getApiV3NotificationById:()=>Ey,getApiV3Notification:()=>Wy,getApiV3MetadataSchema:()=>_s,getApiV3MetadataById:()=>is,getApiV3Metadata:()=>hs,getApiV3MediacoverBySeriesIdByFilename:()=>Ys,getApiV3Manualimport:()=>Sy,getApiV3LogFileUpdateByFilename:()=>FS,getApiV3LogFileUpdate:()=>US,getApiV3LogFileByFilename:()=>Zs,getApiV3LogFile:()=>Xs,getApiV3Log:()=>sy,getApiV3LocalizationLanguage:()=>js,getApiV3LocalizationById:()=>Js,getApiV3Localization:()=>bs,getApiV3LanguageprofileSchema:()=>$s,getApiV3LanguageprofileById:()=>Us,getApiV3Languageprofile:()=>Hs,getApiV3LanguageById:()=>Ws,getApiV3Language:()=>ws,getApiV3Indexerflag:()=>ks,getApiV3IndexerSchema:()=>py,getApiV3IndexerById:()=>my,getApiV3Indexer:()=>uy,getApiV3ImportlistexclusionPaged:()=>fs,getApiV3ImportlistexclusionById:()=>ss,getApiV3Importlistexclusion:()=>ls,getApiV3ImportlistSchema:()=>yy,getApiV3ImportlistById:()=>Dy,getApiV3Importlist:()=>Ry,getApiV3HistorySince:()=>nd,getApiV3HistorySeries:()=>od,getApiV3History:()=>qd,getApiV3Health:()=>ys,getApiV3FilesystemType:()=>Ds,getApiV3FilesystemMediafiles:()=>ds,getApiV3Filesystem:()=>Is,getApiV3EpisodefileById:()=>As,getApiV3Episodefile:()=>oC,getApiV3EpisodeById:()=>_d,getApiV3Episode:()=>zd,getApiV3DownloadclientSchema:()=>cd,getApiV3DownloadclientById:()=>Xd,getApiV3Downloadclient:()=>bd,getApiV3Diskspace:()=>$d,getApiV3DelayprofileById:()=>cC,getApiV3Delayprofile:()=>ZC,getApiV3CustomformatSchema:()=>Ud,getApiV3CustomformatById:()=>Wd,getApiV3Customformat:()=>Nd,getApiV3CustomfilterById:()=>jC,getApiV3Customfilter:()=>FC,getApiV3ConfigUiById:()=>fG,getApiV3ConfigUi:()=>sG,getApiV3ConfigNamingExamples:()=>wy,getApiV3ConfigNamingById:()=>Ny,getApiV3ConfigNaming:()=>Qy,getApiV3ConfigMediamanagementById:()=>My,getApiV3ConfigMediamanagement:()=>ry,getApiV3ConfigIndexerById:()=>Qs,getApiV3ConfigIndexer:()=>Ls,getApiV3ConfigImportlistById:()=>Ps,getApiV3ConfigImportlist:()=>ts,getApiV3ConfigHostById:()=>ay,getApiV3ConfigHost:()=>Ay,getApiV3ConfigDownloadclientById:()=>vC,getApiV3ConfigDownloadclient:()=>_C,getApiV3CommandById:()=>Qd,getApiV3Command:()=>Td,getApiV3CalendarById:()=>EC,getApiV3Calendar:()=>rd,getApiV3Blocklist:()=>sd,getApiV3AutotaggingSchema:()=>OC,getApiV3AutotaggingById:()=>WC,getApiV3Autotagging:()=>NC,getApi:()=>md,get:()=>NS,deleteApiV3TagById:()=>tG,deleteApiV3SystemBackupById:()=>pd,deleteApiV3SeriesEditor:()=>MS,deleteApiV3SeriesById:()=>RG,deleteApiV3RootfolderById:()=>AG,deleteApiV3RemotepathmappingById:()=>fS,deleteApiV3ReleaseprofileById:()=>uS,deleteApiV3QueueById:()=>Ky,deleteApiV3QueueBulk:()=>iy,deleteApiV3QualityprofileById:()=>Zy,deleteApiV3NotificationById:()=>Oy,deleteApiV3MetadataById:()=>Ks,deleteApiV3LanguageprofileById:()=>Es,deleteApiV3IndexerById:()=>Py,deleteApiV3IndexerBulk:()=>rs,deleteApiV3ImportlistexclusionById:()=>Cs,deleteApiV3ImportlistexclusionBulk:()=>xs,deleteApiV3ImportlistById:()=>Iy,deleteApiV3ImportlistBulk:()=>Gs,deleteApiV3EpisodefileById:()=>es,deleteApiV3EpisodefileBulk:()=>Rs,deleteApiV3DownloadclientById:()=>Jd,deleteApiV3DownloadclientBulk:()=>Yd,deleteApiV3DelayprofileById:()=>hC,deleteApiV3CustomformatById:()=>wd,deleteApiV3CustomformatBulk:()=>Od,deleteApiV3CustomfilterById:()=>bC,deleteApiV3CommandById:()=>UC,deleteApiV3BlocklistById:()=>Sd,deleteApiV3BlocklistBulk:()=>xd,deleteApiV3AutotaggingById:()=>wC});var md=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),TC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),LC=(e)=>(e?.client??y).post({...A3,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),QC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),NC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...e}),kC=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wC=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e}),WC=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e}),HC=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),OC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/schema",...e}),ld=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup",...e}),pd=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/{id}",...e}),fd=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/restore/{id}",...e}),Cd=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/restore/upload",...e}),sd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist",...e}),Sd=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/{id}",...e}),xd=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),rd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/calendar",...e}),EC=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/calendar/{id}",...e}),Md=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v3/calendar/sonarr.ics",...e}),Td=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...e}),Ld=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...e,headers:{"Content-Type":"application/json",...e?.headers}}),UC=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),Qd=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),FC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...e}),$C=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...e,headers:{"Content-Type":"application/json",...e?.headers}}),bC=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e}),jC=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e}),JC=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Nd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...e}),kd=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wd=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),Wd=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),Hd=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Od=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ed=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ud=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/schema",...e}),Fd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/cutoff",...e}),XC=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/cutoff/{id}",...e}),ZC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...e}),YC=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),hC=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),cC=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),KC=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),iC=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/reorder/{id}",...e}),$d=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/diskspace",...e}),bd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...e}),jd=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Jd=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),Xd=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),Zd=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Yd=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),hd=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),cd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/schema",...e}),Kd=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),id=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/testall",...e}),zC=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),_C=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient",...e}),vC=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient/{id}",...e}),qC=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),zd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episode",...e}),_d=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episode/{id}",...e}),vd=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episode/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),nC=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episode/monitor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),oC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile",...e}),es=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/{id}",...e}),As=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/{id}",...e}),as=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vs=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Rs=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Bs=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Is=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem",...e}),Ds=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/type",...e}),ds=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/mediafiles",...e}),ys=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/health",...e}),qd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history",...e}),nd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/since",...e}),od=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/series",...e}),ey=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/failed/{id}",...e}),Ay=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host",...e}),ay=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host/{id}",...e}),Vy=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ry=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...e}),By=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Iy=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),Dy=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),dy=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Gs=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gs=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),yy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/schema",...e}),Gy=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gy=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/testall",...e}),us=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ts=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist",...e}),Ps=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist/{id}",...e}),ms=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ls=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion",...e}),ps=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fs=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion/paged",...e}),Cs=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion/{id}",...e}),ss=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion/{id}",...e}),Ss=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),xs=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),uy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...e}),ty=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Py=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),my=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),ly=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),rs=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ms=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),py=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/schema",...e}),fy=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Cy=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/testall",...e}),Ts=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ls=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer",...e}),Qs=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer/{id}",...e}),Ns=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ks=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexerflag",...e}),ws=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language",...e}),Ws=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language/{id}",...e}),Hs=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile",...e}),Os=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Es=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile/{id}",...e}),Us=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile/{id}",...e}),Fs=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),$s=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile/schema",...e}),bs=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization",...e}),js=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization/language",...e}),Js=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization/{id}",...e}),sy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log",...e}),Xs=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file",...e}),Zs=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/{filename}",...e}),Sy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...e}),xy=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ys=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/mediacover/{seriesId}/{filename}",...e}),ry=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement",...e}),My=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement/{id}",...e}),Ty=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),hs=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...e}),cs=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ks=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),is=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),zs=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),_s=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/schema",...e}),vs=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qs=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/testall",...e}),ns=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ly=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/missing",...e}),os=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/missing/{id}",...e}),Qy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming",...e}),Ny=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/{id}",...e}),ky=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),wy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/examples",...e}),Wy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...e}),Hy=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Oy=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),Ey=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),Uy=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/schema",...e}),$y=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/test",...e,headers:{"Content-Type":"application/json",...e?.headers}}),by=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/testall",...e}),eS=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/action/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),jy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/parse",...e}),AS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),aS=(e)=>(e?.client??y).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),VS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...e}),RS=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),BS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition",...e}),IS=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/update",...e,headers:{"Content-Type":"application/json",...e?.headers}}),DS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/limits",...e}),Jy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...e}),Xy=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Zy=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),Yy=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),hy=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),cy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/schema",...e}),Ky=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/{id}",...e}),iy=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),zy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue",...e}),_y=(e)=>(e.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/grab/{id}",...e}),vy=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/grab/bulk",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/details",...e}),ny=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/status",...e}),dS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release",...e}),yS=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release",...e,headers:{"Content-Type":"application/json",...e?.headers}}),GS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile",...e}),gS=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile",...e,headers:{"Content-Type":"application/json",...e?.headers}}),uS=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),tS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),PS=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),mS=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release/push",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...e}),pS=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fS=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e}),CS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e}),sS=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),SS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rename",...e}),oy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...e}),eG=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...e,headers:{"Content-Type":"application/json",...e?.headers}}),AG=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),xS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),rS=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/seasonpass",...e,headers:{"Content-Type":"application/json",...e?.headers}}),aG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series",...e}),VG=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series",...e,headers:{"Content-Type":"application/json",...e?.headers}}),RG=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/{id}",...e}),BG=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/{id}",...e}),IG=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),MS=(e)=>(e?.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),TS=(e)=>(e?.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/editor",...e,headers:{"Content-Type":"application/json",...e?.headers}}),DG=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/{id}/folder",...e}),LS=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/import",...e,headers:{"Content-Type":"application/json",...e?.headers}}),dG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/lookup",...e}),QS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),NS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),kS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),wS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/status",...e}),WS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes",...e}),HS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes/duplicate",...e}),yG=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/shutdown",...e}),GG=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/restart",...e}),gG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...e}),uG=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...e,headers:{"Content-Type":"application/json",...e?.headers}}),tG=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),PG=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),mG=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),lG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail",...e}),pG=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail/{id}",...e}),OS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task",...e}),ES=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task/{id}",...e}),fG=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui/{id}",...e}),CG=(e)=>(e.client??y).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),sG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui",...e}),n=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/update",...e}),US=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/update",...e}),FS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/update/{filename}",...e});class $S{clientConfig;constructor(e){this.clientConfig=E(e),y.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getApi(){return md()}async getSystemStatus(){return y.get({url:"/api/v3/system/status",headers:this.clientConfig.getHeaders(),baseUrl:this.clientConfig.getBaseUrl()})}async getHealth(){return y.get({url:"/api/v3/health",headers:this.clientConfig.getHeaders(),baseUrl:this.clientConfig.getBaseUrl()})}async getSeries(){return aG()}async getSeriesById(e){return BG({path:{id:e}})}async addSeries(e){return VG({body:e})}async updateSeries(e,A){return IG({path:{id:e},body:A})}async deleteSeries(e,A){return RG({path:{id:e},...A?{query:A}:{}})}async getSeriesFolder(e){return DG({path:{id:e}})}async searchSeries(e){return dG({query:{term:e}})}async getRootFolders(){return oy()}async addRootFolder(e){return eG({body:{path:e}})}async deleteRootFolder(e){return AG({path:{id:e}})}async getLogs(e,A,a,V,R){let t={};if(e!==void 0)t.page=e;if(A!==void 0)t.pageSize=A;if(a)t.sortKey=a;if(V)t.sortDirection=V;if(R)t.level=R;return sy(Object.keys(t).length>0?{query:t}:{})}async getUpdates(){return n()}async getUpdateSettings(){return n()}async getUpdateSetting(){return n()}async getHostConfig(){return Ay()}async getHostConfigById(e){return ay({path:{id:e}})}async updateHostConfig(e,A){return Vy({path:{id:e},body:A})}async getNamingConfig(){return Qy()}async getNamingConfigById(e){return Ny({path:{id:e}})}async updateNamingConfig(e,A){return ky({path:{id:e},body:A})}async getNamingConfigExamples(){return wy()}async getMediaManagementConfig(){return ry()}async getMediaManagementConfigById(e){return My({path:{id:e}})}async updateMediaManagementConfig(e,A){return Ty({path:{id:e},body:A})}async getUiConfig(){return sG()}async getUiConfigById(e){return fG({path:{id:e}})}async updateUiConfig(e,A){return CG({path:{id:e},body:A})}async restartSystem(){return GG()}async shutdownSystem(){return yG()}async getSystemBackups(){return ld()}async deleteSystemBackup(e){return pd({path:{id:e}})}async restoreSystemBackup(e){return fd({path:{id:e}})}async uploadSystemBackup(){return Cd()}async getDiskSpace(){return $d()}async getTags(){return gG()}async addTag(e){return uG({body:e})}async getTag(e){return PG({path:{id:e}})}async updateTag(e,A){return mG({path:{id:e},body:A})}async deleteTag(e){return tG({path:{id:e}})}async getTagDetails(){return lG()}async getTagDetailById(e){return pG({path:{id:e}})}async getEpisodes(e,A){let a={};if(e!==void 0)a.seriesId=e;if(A!==void 0)a.episodeIds=A;return zd(Object.keys(a).length>0?{query:a}:{})}async getEpisode(e){return _d({path:{id:e}})}async updateEpisode(e,A){return vd({path:{id:e},body:A})}async getQualityProfiles(){return Jy()}async getQualityProfile(e){return Yy({path:{id:e}})}async addQualityProfile(e){return Xy({body:e})}async updateQualityProfile(e,A){return hy({path:{id:e},body:A})}async deleteQualityProfile(e){return Zy({path:{id:e}})}async getQualityProfileSchema(){return cy()}async getCustomFormats(){return Nd()}async getCustomFormat(e){return Wd({path:{id:e}})}async addCustomFormat(e){return kd({body:e})}async updateCustomFormat(e,A){return Hd({path:{id:e},body:A})}async deleteCustomFormat(e){return wd({path:{id:e}})}async updateCustomFormatsBulk(e){return Ed({body:e})}async deleteCustomFormatsBulk(e){return Od({body:{ids:e}})}async getCustomFormatSchema(){return Ud()}async getDownloadClients(){return bd()}async getDownloadClient(e){return Xd({path:{id:e}})}async addDownloadClient(e){return jd({body:e})}async updateDownloadClient(e,A){return Zd({path:{id:e},body:A})}async deleteDownloadClient(e){return Jd({path:{id:e}})}async updateDownloadClientsBulk(e){return hd({body:e})}async deleteDownloadClientsBulk(e){return Yd({body:{ids:e}})}async getDownloadClientSchema(){return cd()}async testDownloadClient(e){return Kd({body:e})}async testAllDownloadClients(){return id()}async getIndexers(){return uy()}async getIndexer(e){return my({path:{id:e}})}async addIndexer(e){return ty({body:e})}async updateIndexer(e,A){return ly({path:{id:e},body:A})}async deleteIndexer(e){return Py({path:{id:e}})}async getIndexerSchema(){return py()}async testIndexer(e){return fy({body:e})}async testAllIndexers(){return Cy()}async getImportLists(){return Ry()}async getImportList(e){return Dy({path:{id:e}})}async addImportList(e){return By({body:e})}async updateImportList(e,A){return dy({path:{id:e},body:A})}async deleteImportList(e){return Iy({path:{id:e}})}async getImportListSchema(){return yy()}async testImportList(e){return Gy({body:e})}async testAllImportLists(){return gy()}async getNotifications(){return Wy()}async getNotification(e){return Ey({path:{id:e}})}async addNotification(e){return Hy({body:e})}async updateNotification(e,A){return Uy({path:{id:e},body:A})}async deleteNotification(e){return Oy({path:{id:e}})}async getNotificationSchema(){return Fy()}async testNotification(e){return $y({body:e})}async testAllNotifications(){return by()}async runCommand(e){return Ld({body:e})}async getCommands(){return Td()}async getCommand(e){return Qd({path:{id:e}})}async getHistory(e,A,a,V,R,t){let B={};if(e!==void 0)B.page=e;if(A!==void 0)B.pageSize=A;if(a)B.sortKey=a;if(V)B.sortDirection=V;if(R!==void 0)B.seriesIds=[R];if(t)B.downloadId=t;return qd(Object.keys(B).length>0?{query:B}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.seriesId=A;return nd({query:a})}async getSeriesHistory(e,A,a){let V={seriesId:e};if(A!==void 0)V.seasonNumber=A;if(a!==void 0)V.eventType=a;return od({query:V})}async markHistoryItemFailed(e){return ey({path:{id:e}})}async getCalendar(e,A,a){let V={};if(e)V.start=e;if(A)V.end=A;if(a!==void 0)V.unmonitored=a;return rd(Object.keys(V).length>0?{query:V}:{})}async getCalendarFeed(e,A,a){let V={};if(e!==void 0)V.pastDays=e;if(A!==void 0)V.futureDays=A;if(a)V.tags=a;return Md(Object.keys(V).length>0?{query:V}:{})}async getQueue(e,A,a,V,R,t){let B={};if(e!==void 0)B.page=e;if(A!==void 0)B.pageSize=A;if(a)B.sortKey=a;if(V)B.sortDirection=V;if(R!==void 0)B.includeUnknownSeriesItems=R;if(t!==void 0)B.seriesIds=[t];return zy(Object.keys(B).length>0?{query:B}:{})}async removeQueueItem(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return Ky({path:{id:e},...Object.keys(V).length>0?{query:V}:{}})}async removeQueueItemsBulk(e,A,a){let V={};if(A!==void 0)V.removeFromClient=A;if(a!==void 0)V.blocklist=a;return iy({body:{ids:e},...Object.keys(V).length>0?{query:V}:{}})}async grabQueueItem(e){return _y({path:{id:e}})}async grabQueueItemsBulk(e){return vy({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.seriesId=e;if(A!==void 0)a.includeUnknownSeriesItems=A;return qy(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return ny()}async getBlocklist(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return sd(Object.keys(R).length>0?{query:R}:{})}async removeBlocklistItem(e){return Sd({path:{id:e}})}async removeBlocklistItemsBulk(e){return xd({body:{ids:e}})}async getWantedMissing(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return Ly(Object.keys(R).length>0?{query:R}:{})}async getWantedCutoff(e,A,a,V){let R={};if(e!==void 0)R.page=e;if(A!==void 0)R.pageSize=A;if(a)R.sortKey=a;if(V)R.sortDirection=V;return Fd(Object.keys(R).length>0?{query:R}:{})}async parseEpisodeInfo(e){return jy({query:{title:e}})}async getManualImport(e,A,a,V){let R={};if(e)R.folder=e;if(A)R.downloadId=A;if(a!==void 0)R.seriesId=a;if(V!==void 0)R.filterExistingFiles=V;return Sy(Object.keys(R).length>0?{query:R}:{})}async processManualImport(e){return xy({body:e})}updateConfig(e){let A={...this.clientConfig.config,...e};return this.clientConfig=E(A),y.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}async function bL(e){try{let A=await e;if(A.error)return{success:!1,error:bS(A.error,A.response)};return{success:!0,data:A.data}}catch(A){return{success:!1,error:bS(A)}}}function bS(e,A){if(e instanceof J)return e;if(A){let{status:a,statusText:V}=A;if(a===401)return new J("Unauthorized - check your API key","UNAUTHORIZED",401);if(a===404)return new J("Resource not found","NOT_FOUND",404);if(a>=500)return new J(`Server error: ${V}`,"SERVER_ERROR",a);if(a>=400)return new J(`Client error: ${V}`,"CLIENT_ERROR",a)}if(e?.message?.includes("fetch"))return new J("Network error - unable to connect to server","NETWORK_ERROR");return new J(e?.message||"Unknown error occurred","UNKNOWN_ERROR",void 0,e)}function jL(e,A){if(!e)throw new ee("No data returned from API");if(typeof e==="object"&&e!==null){if(Array.isArray(e))e.forEach((a,V)=>{if(a===null||a===void 0)throw new ee(`Invalid null/undefined item at index ${V}`)});if("id"in e&&typeof e.id!=="number")throw new ee("Resource ID must be a number")}return e}var XL="1.0.0";export{jL as validateResponse,ix as validateBaseUrl,Kx as validateApiKey,bL as handleApiResponse,E as createServarrClient,ee as ValidationError,XL as VERSION,J as TsarrError,$S as SonarrClient,D3 as Sonarr,lC as ReadarrClient,e3 as Readarr,il as RadarrClient,iG as Radarr,xP as ProwlarrClient,JG as Prowlarr,ZS as NotFoundError,At as LidarrClient,OG as Lidarr,o as ConnectionError,E3 as BazarrClient,LG as Bazarr,ye as ApiKeyError};