tsarr 2.4.0 → 2.4.2

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 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,`
1
+ var JS=Object.defineProperty;var XS=(e)=>e;function ZS(e,A){this[e]=XS.bind(null,A)}var c=(e,A)=>{for(var a in A)JS(e,a,{get:A[a],enumerable:!0,configurable:!0,set:ZS.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 Ge 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 YS extends J{constructor(e){super(`Resource not found: ${e}`,"NOT_FOUND",404);this.name="NotFoundError"}}function E(e){if(!e.apiKey)throw new Ge;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 zx(e){if(!e||e.trim()==="")throw new Ge;return e.trim()}function _x(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 m3=(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 ye={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)=>m3(A,a,R));else m3(A,a,V)}),A}},Qy={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var l3=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:D,sseMaxRetryAttempts:B,sseMaxRetryDelay:d,sseSleepFn:u,url:S,...l})=>{let I,M=u??((L)=>new Promise((m)=>setTimeout(m,L)));return{stream:async function*(){let L=D??3000,m=0,x=l.signal??new AbortController().signal;while(!0){if(x.aborted)break;m++;let W=l.headers instanceof Headers?l.headers:new Headers(l.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...l,body:l.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let t=await(l.fetch??globalThis.fetch)(N);if(!t.ok)throw Error(`SSE failed: ${t.status} ${t.statusText}`);if(!t.body)throw Error("No body in SSE response");let C=t.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:"))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,`
6
+ `),O=[],$;for(let r of h)if(r.startsWith("data:"))O.push(r.replace(/^data:\s*/,""));else if(r.startsWith("event:"))$=r.replace(/^event:\s*/,"");else if(r.startsWith("id:"))I=r.replace(/^id:\s*/,"");else if(r.startsWith("retry:")){let j=Number.parseInt(r.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let r=O.join(`
7
+ `);try{k=JSON.parse(r),b=!0}catch{k=r}}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&&m>=B)break;let N=Math.min(L*2**(m-1),d??30000);await M(N)}}}()}};var hS=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},cS=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},KS=(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(cS(V));switch(V){case"label":return`.${d}`;case"matrix":return`;${a}=${d}`;case"simple":return d;default:return`${a}=${d}`}}let D=hS(V),B=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+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:D})=>{if(R instanceof Date)return D?R.toISOString():`${a}=${R.toISOString()}`;if(V!=="deepObject"&&!A){let u=[];Object.entries(R).forEach(([l,I])=>{u=[...u,l,e?I:encodeURIComponent(I)]});let S=u.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let B=KS(V),d=Object.entries(R).map(([u,S])=>K({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(B);return V==="label"||V==="matrix"?B+d:d};var zS=/\{[^{}]+\}/g,_S=({path:e,url:A})=>{let a=A,V=A.match(zS);if(V)for(let R of V){let D=!1,B=R.substring(1,R.length-1),d="simple";if(B.endsWith("*"))D=!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 u=e[B];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,ge({explode:D,name:B,style:d,value:u}));continue}if(typeof u==="object"){a=a.replace(R,ue({explode:D,name:B,style:d,value:u,valueOnly:!0}));continue}if(d==="matrix"){a=a.replace(R,`;${K({name:B,value:u})}`);continue}let S=encodeURIComponent(d==="label"?`.${u}`:u);a=a.replace(R,S)}return a},t3=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let D=R.startsWith("/")?R:`/${R}`,B=(e??"")+D;if(A)B=_S({path:A,url:B});let d=a?V(a):"";if(d.startsWith("?"))d=d.substring(1);if(d)B+=`?${d}`;return B};function Ny(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 p3=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 f3=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let D in V){let B=V[D];if(B===void 0||B===null)continue;let d=e[D]||A;if(Array.isArray(B)){let u=ge({allowReserved:d.allowReserved,explode:!0,name:D,style:"form",value:B,...d.array});if(u)R.push(u)}else if(typeof B==="object"){let u=ue({allowReserved:d.allowReserved,explode:!0,name:D,style:"deepObject",value:B,...d.object});if(u)R.push(u)}else{let u=K({allowReserved:d.allowReserved,name:D,value:B});if(u)R.push(u)}}return R.join("&")}},C3=(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},iS=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},s3=async({security:e,...A})=>{for(let a of e){if(iS(A,a.name))continue;let V=await p3(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}}},ky=(e)=>t3({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:f3(e.querySerializer),url:e.url}),wy=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=me(e.headers,A.headers),a},vS=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},me=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?vS(a):Object.entries(a);for(let[R,D]of V)if(D===null)A.delete(R);else if(Array.isArray(D))for(let B of D)A.append(R,B);else if(D!==void 0)A.set(R,typeof D==="object"?JSON.stringify(D):D)}return A};class Pe{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 S3=()=>({error:new Pe,request:new Pe,response:new Pe}),qS=f3({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),nS={"Content-Type":"application/json"},Ae=(e={})=>({...Qy,headers:nS,parseAs:"auto",querySerializer:qS,...e});var Wy=(e={})=>{let A=wy(Ae(),e),a=()=>({...A}),V=(l)=>{return A=wy(A,l),a()},R=S3(),D=async(l)=>{let I={...A,...l,fetch:l.fetch??A.fetch??globalThis.fetch,headers:me(A.headers,l.headers),serializedBody:void 0};if(I.security)await s3({...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 M=ky(I);return{opts:I,url:M}},B=async(l)=>{let{opts:I,url:M}=await D(l),H={redirect:"follow",...I,body:Ny(I)},T=new Request(M,H);for(let t of R.request.fns)if(t)T=await t(T,I);let L=I.fetch,m;try{m=await L(T)}catch(t){let C=t;for(let f of R.error.fns)if(f)C=await f(t,void 0,T,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:T,response:void 0}}for(let t of R.response.fns)if(t)m=await t(m,T,I);let x={request:T,response:m};if(m.ok){let t=(I.parseAs==="auto"?C3(m.headers.get("Content-Type")):I.parseAs)??"json";if(m.status===204||m.headers.get("Content-Length")==="0"){let f;switch(t){case"arrayBuffer":case"blob":case"text":f=await m[t]();break;case"formData":f=new FormData;break;case"stream":f=m.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(t){case"arrayBuffer":case"blob":case"formData":case"text":C=await m[t]();break;case"json":{let f=await m.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?m.body:{data:m.body,...x}}if(t==="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 m.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let t of R.error.fns)if(t)w=await t(N,m,T,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},d=(l)=>(I)=>B({...I,method:l}),u=(l)=>async(I)=>{let{opts:M,url:H}=await D(I);return l3({...M,body:M.body,headers:M.headers,method:l,onRequest:async(T,L)=>{let m=new Request(T,L);for(let x of R.request.fns)if(x)m=await x(m,M);return m},serializedBody:Ny(M),url:H})};return{buildUrl:(l)=>ky({...A,...l}),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: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 s=Wy(Ae());var Hy={};c(Hy,{postWebHooksSonarr:()=>xA,postWebHooksRadarr:()=>SA,postWebHooksPlex:()=>sA,postSystemWebhookTest:()=>CA,postSystemTasks:()=>fA,postSystemJobs:()=>dA,postSystemBackups:()=>VA,postSystemAnnouncements:()=>oe,postSeries:()=>_e,postProviders:()=>Xe,postProviderMovies:()=>ce,postProviderEpisodes:()=>Ye,postPlexWebhookDelete:()=>$3,postPlexWebhookCreate:()=>F3,postPlexTestConnection:()=>U3,postPlexSelectServer:()=>O3,postPlexPin:()=>N3,postPlexLogout:()=>L3,postPlexEncryptApiKey:()=>T3,postPlexApiKey:()=>x3,postMoviesSubtitles:()=>be,postMoviesBlacklist:()=>Ee,postMovies:()=>We,postEpisodesSubtitles:()=>Me,postEpisodesBlacklist:()=>Ce,patchSystemJobs:()=>DA,patchSystemBackups:()=>aA,patchSubtitles:()=>ve,patchSeries:()=>ze,patchMoviesSubtitles:()=>$e,patchMovies:()=>we,patchEpisodesSubtitles:()=>xe,getSystemTasks:()=>pA,getSystemStatus:()=>tA,getSystemReleases:()=>mA,getSystemPing:()=>PA,getSystemLogs:()=>uA,getSystemJobs:()=>IA,getSystemHealth:()=>RA,getSystemBackups:()=>AA,getSystemAnnouncements:()=>ne,getSubtitles:()=>ie,getSubtitleNameInfo:()=>qe,getSeries:()=>Ke,getSearches:()=>lA,getProviders:()=>Je,getProviderMovies:()=>he,getProviderEpisodes:()=>Ze,getPlexWebhookList:()=>b3,getPlexValidate:()=>W3,getPlexTestConnection:()=>E3,getPlexServers:()=>w3,getPlexSelectServer:()=>H3,getPlexPinCheck:()=>k3,getPlexPin:()=>Q3,getPlexLibraries:()=>r3,getPlexAutopulseConfig:()=>M3,getMoviesWanted:()=>je,getMoviesHistory:()=>Ue,getMoviesBlacklist:()=>Oe,getMovies:()=>ke,getLanguagesProfiles:()=>yA,getLanguages:()=>GA,getHistoryStats:()=>Ne,getEpisodesWanted:()=>Te,getEpisodesHistory:()=>se,getEpisodesBlacklist:()=>fe,getEpisodes:()=>te,getBrowseSonarrFs:()=>Qe,getBrowseRadarrFs:()=>Le,getBrowseBazarrFs:()=>re,getBadges:()=>le,deleteSystemLogs:()=>gA,deleteSystemJobs:()=>BA,deleteSystemBackups:()=>eA,deleteMoviesSubtitles:()=>Fe,deleteMoviesBlacklist:()=>He,deleteEpisodesSubtitles:()=>Se,deleteEpisodesBlacklist:()=>pe});var le=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/badges",...e}),te=(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}),Me=(e)=>(e.client??s).post({...ye,security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/subtitles",...e,headers:{"Content-Type":null,...e.headers}}),Te=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/episodes/wanted",...e}),re=(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({...ye,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}),x3=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/apikey",...e}),M3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/autopulse/config",...e}),T3=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/encrypt-apikey",...e}),r3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/libraries",...e}),L3=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/logout",...e}),Q3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/pin",...e}),N3=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/pin",...e}),k3=(e)=>(e.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/pin/{pin_id}/check",...e}),w3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/servers",...e}),W3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/oauth/validate",...e}),H3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/select-server",...e}),O3=(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}}),E3=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/test-connection",...e}),U3=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/test-connection",...e}),F3=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/webhook/create",...e}),$3=(e)=>(e.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/plex/webhook/delete",...e}),b3=(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}),ze=(e)=>(e?.client??s).patch({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/series",...e}),_e=(e)=>(e?.client??s).post({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/series",...e}),ie=(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}),GA=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/languages",...e}),yA=(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}),PA=(e)=>(e?.client??s).get({url:"/api/system/ping",...e}),mA=(e)=>(e?.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/releases",...e}),lA=(e)=>(e.client??s).get({security:[{name:"X-API-KEY",type:"apiKey"}],url:"/api/system/searches",...e}),tA=(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 j3(e){let A=e.replace(/\/$/,"");return A.endsWith("/api")?A:`${A}/api`}function J3(e){return{"Content-Type":"application/json",...e.config.headers??{}}}class X3{clientConfig;constructor(e){this.clientConfig=E(e),s.setConfig({baseUrl:j3(this.clientConfig.getBaseUrl()),headers:J3(this.clientConfig),auth:this.clientConfig.config.apiKey})}async getSystemStatus(){return tA()}async getSystemHealth(){return RA()}async ping(){return PA()}async getSystemReleases(){return mA()}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 GA(e?{query:{history:e}}:{})}async getLanguageProfiles(){return yA()}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 _e(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 ze(Object.keys(a).length>0?{query:a}:{})}async getEpisodes(e,A){let a={};if(e)a["seriesid[]"]=e;if(A)a["episodeid[]"]=A;return te(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 Te(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,D){return Me({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 Ce({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,B){return Ye({query:{seriesid:e,episodeid:A,hi:a,forced:V,original_format:R,provider:D,subtitle:B}})}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 ie(e)}async applySubtitleMods(e){return ve(e)}async getSubtitleNameInfo(e){return qe(e)}async getHistoryStats(){return Ne()}async getBadges(){return le()}async search(e){return lA(e)}async browseBazarrFs(e){return re(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:j3(this.clientConfig.getBaseUrl()),headers:J3(this.clientConfig),auth:this.clientConfig.config.apiKey}),this.clientConfig.config}}var Z3=(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 Oy={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)=>Z3(A,a,R));else Z3(A,a,V)}),A}},Ey={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:D,sseMaxRetryAttempts:B,sseMaxRetryDelay:d,sseSleepFn:u,url:S,...l})=>{let I,M=u??((L)=>new Promise((m)=>setTimeout(m,L)));return{stream:async function*(){let L=D??3000,m=0,x=l.signal??new AbortController().signal;while(!0){if(x.aborted)break;m++;let W=l.headers instanceof Headers?l.headers:new Headers(l.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...l,body:l.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let t=await(l.fetch??globalThis.fetch)(N);if(!t.ok)throw Error(`SSE failed: ${t.status} ${t.statusText}`);if(!t.body)throw Error("No body in SSE response");let C=t.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:"))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,`
12
+ `),O=[],$;for(let r of h)if(r.startsWith("data:"))O.push(r.replace(/^data:\s*/,""));else if(r.startsWith("event:"))$=r.replace(/^event:\s*/,"");else if(r.startsWith("id:"))I=r.replace(/^id:\s*/,"");else if(r.startsWith("retry:")){let j=Number.parseInt(r.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let r=O.join(`
13
+ `);try{k=JSON.parse(r),b=!0}catch{k=r}}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&&m>=B)break;let N=Math.min(L*2**(m-1),d??30000);await M(N)}}}()}};var oS=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ex=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Ax=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},MA=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let d=(e?R:R.map((u)=>encodeURIComponent(u))).join(ex(V));switch(V){case"label":return`.${d}`;case"matrix":return`;${a}=${d}`;case"simple":return d;default:return`${a}=${d}`}}let D=oS(V),B=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+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)}`},TA=({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(([l,I])=>{u=[...u,l,e?I:encodeURIComponent(I)]});let S=u.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let B=Ax(V),d=Object.entries(R).map(([u,S])=>z({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(B);return V==="label"||V==="matrix"?B+d:d};var ax=/\{[^{}]+\}/g,Vx=({path:e,url:A})=>{let a=A,V=A.match(ax);if(V)for(let R of V){let D=!1,B=R.substring(1,R.length-1),d="simple";if(B.endsWith("*"))D=!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 u=e[B];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,MA({explode:D,name:B,style:d,value:u}));continue}if(typeof u==="object"){a=a.replace(R,TA({explode:D,name:B,style:d,value:u,valueOnly:!0}));continue}if(d==="matrix"){a=a.replace(R,`;${z({name:B,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}`,B=(e??"")+D;if(A)B=Vx({path:A,url:B});let d=a?V(a):"";if(d.startsWith("?"))d=d.substring(1);if(d)B+=`?${d}`;return B};function Uy(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 c3=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 K3=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let D in V){let B=V[D];if(B===void 0||B===null)continue;let d=e[D]||A;if(Array.isArray(B)){let u=MA({allowReserved:d.allowReserved,explode:!0,name:D,style:"form",value:B,...d.array});if(u)R.push(u)}else if(typeof B==="object"){let u=TA({allowReserved:d.allowReserved,explode:!0,name:D,style:"deepObject",value:B,...d.object});if(u)R.push(u)}else{let u=z({allowReserved:d.allowReserved,name:D,value:B});if(u)R.push(u)}}return R.join("&")}},z3=(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},Rx=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},_3=async({security:e,...A})=>{for(let a of e){if(Rx(A,a.name))continue;let V=await c3(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}}},Fy=(e)=>h3({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:K3(e.querySerializer),url:e.url}),$y=(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},Bx=(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?Bx(a):Object.entries(a);for(let[R,D]of V)if(D===null)A.delete(R);else if(Array.isArray(D))for(let B of D)A.append(R,B);else if(D!==void 0)A.set(R,typeof D==="object"?JSON.stringify(D):D)}return A};class rA{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 i3=()=>({error:new rA,request:new rA,response:new rA}),Ix=K3({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Dx={"Content-Type":"application/json"},ae=(e={})=>({...Ey,headers:Dx,parseAs:"auto",querySerializer:Ix,...e});var by=(e={})=>{let A=$y(ae(),e),a=()=>({...A}),V=(l)=>{return A=$y(A,l),a()},R=i3(),D=async(l)=>{let I={...A,...l,fetch:l.fetch??A.fetch??globalThis.fetch,headers:LA(A.headers,l.headers),serializedBody:void 0};if(I.security)await _3({...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 M=Fy(I);return{opts:I,url:M}},B=async(l)=>{let{opts:I,url:M}=await D(l),H={redirect:"follow",...I,body:Uy(I)},T=new Request(M,H);for(let t of R.request.fns)if(t)T=await t(T,I);let L=I.fetch,m;try{m=await L(T)}catch(t){let C=t;for(let f of R.error.fns)if(f)C=await f(t,void 0,T,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:T,response:void 0}}for(let t of R.response.fns)if(t)m=await t(m,T,I);let x={request:T,response:m};if(m.ok){let t=(I.parseAs==="auto"?z3(m.headers.get("Content-Type")):I.parseAs)??"json";if(m.status===204||m.headers.get("Content-Length")==="0"){let f;switch(t){case"arrayBuffer":case"blob":case"text":f=await m[t]();break;case"formData":f=new FormData;break;case"stream":f=m.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(t){case"arrayBuffer":case"blob":case"formData":case"text":C=await m[t]();break;case"json":{let f=await m.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?m.body:{data:m.body,...x}}if(t==="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 m.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let t of R.error.fns)if(t)w=await t(N,m,T,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},d=(l)=>(I)=>B({...I,method:l}),u=(l)=>async(I)=>{let{opts:M,url:H}=await D(I);return Y3({...M,body:M.body,headers:M.headers,method:l,onRequest:async(T,L)=>{let m=new Request(T,L);for(let x of R.request.fns)if(x)m=await x(m,M);return m},serializedBody:Uy(M),url:H})};return{buildUrl:(l)=>Fy({...A,...l}),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: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=by(ae());var jy={};c(jy,{putApiV1TrackfileEditor:()=>AP,putApiV1TrackfileById:()=>ou,putApiV1TagById:()=>kV,putApiV1RootfolderById:()=>Ju,putApiV1RemotepathmappingById:()=>Eu,putApiV1ReleaseprofileById:()=>Nu,putApiV1QualityprofileById:()=>uV,putApiV1QualitydefinitionUpdate:()=>Mu,putApiV1QualitydefinitionById:()=>Su,putApiV1NotificationById:()=>aV,putApiV1MetadataprofileById:()=>Pu,putApiV1MetadataById:()=>au,putApiV1IndexerById:()=>Ea,putApiV1IndexerBulk:()=>Xg,putApiV1ImportlistexclusionById:()=>$g,putApiV1ImportlistById:()=>La,putApiV1ImportlistBulk:()=>Og,putApiV1DownloadclientById:()=>da,putApiV1DownloadclientBulk:()=>ua,putApiV1DelayprofileReorderById:()=>Tg,putApiV1DelayprofileById:()=>Mg,putApiV1CustomformatById:()=>nA,putApiV1CustomformatBulk:()=>aa,putApiV1CustomfilterById:()=>lg,putApiV1ConfigUiById:()=>UV,putApiV1ConfigNamingById:()=>qa,putApiV1ConfigMetadataproviderById:()=>za,putApiV1ConfigMediamanagementById:()=>ha,putApiV1ConfigIndexerById:()=>hg,putApiV1ConfigHostById:()=>xa,putApiV1ConfigDownloadclientById:()=>Qg,putApiV1AutotaggingById:()=>Ig,putApiV1ArtistEditor:()=>eg,putApiV1ArtistById:()=>UA,putApiV1AlbumMonitor:()=>v3,putApiV1AlbumById:()=>WA,postLogin:()=>ag,postApiV1Tag:()=>WV,postApiV1SystemShutdown:()=>rV,postApiV1SystemRestart:()=>LV,postApiV1SystemBackupRestoreUpload:()=>ZA,postApiV1SystemBackupRestoreById:()=>XA,postApiV1Rootfolder:()=>MV,postApiV1Remotepathmapping:()=>Fu,postApiV1Releaseprofile:()=>wu,postApiV1ReleasePush:()=>Wu,postApiV1Release:()=>ru,postApiV1QueueGrabById:()=>pV,postApiV1QueueGrabBulk:()=>fV,postApiV1Qualityprofile:()=>GV,postApiV1NotificationTestall:()=>DV,postApiV1NotificationTest:()=>IV,postApiV1NotificationActionByName:()=>tu,postApiV1Notification:()=>RV,postApiV1Metadataprofile:()=>yu,postApiV1MetadataTestall:()=>Du,postApiV1MetadataTest:()=>Iu,postApiV1MetadataActionByName:()=>du,postApiV1Metadata:()=>Ru,postApiV1Manualimport:()=>qg,postApiV1IndexerTestall:()=>ja,postApiV1IndexerTest:()=>ba,postApiV1IndexerActionByName:()=>Zg,postApiV1Indexer:()=>Fa,postApiV1Importlistexclusion:()=>jg,postApiV1ImportlistTestall:()=>Wa,postApiV1ImportlistTest:()=>wa,postApiV1ImportlistActionByName:()=>Eg,postApiV1Importlist:()=>Na,postApiV1HistoryFailedById:()=>sa,postApiV1DownloadclientTestall:()=>la,postApiV1DownloadclientTest:()=>ma,postApiV1DownloadclientActionByName:()=>rg,postApiV1Downloadclient:()=>ya,postApiV1Delayprofile:()=>sg,postApiV1Customformat:()=>ea,postApiV1Customfilter:()=>pg,postApiV1Command:()=>iA,postApiV1Autotagging:()=>dg,postApiV1Artist:()=>$A,postApiV1Albumstudio:()=>q3,postApiV1Album:()=>NA,headPing:()=>Cu,getPing:()=>fu,getLogout:()=>Vg,getLogin:()=>Ag,getFeedV1CalendarLidarrIcs:()=>zA,getContentByPath:()=>Zu,getByPath:()=>hu,getApiV1WantedMissingById:()=>lu,getApiV1WantedMissing:()=>ia,getApiV1WantedCutoffById:()=>fg,getApiV1WantedCutoff:()=>Ra,getApiV1Update:()=>VP,getApiV1TrackfileById:()=>nu,getApiV1Trackfile:()=>eP,getApiV1TrackById:()=>vu,getApiV1Track:()=>iu,getApiV1TagDetailById:()=>HV,getApiV1TagDetail:()=>OV,getApiV1TagById:()=>NV,getApiV1Tag:()=>wV,getApiV1SystemTaskById:()=>_u,getApiV1SystemTask:()=>zu,getApiV1SystemStatus:()=>TV,getApiV1SystemRoutesDuplicate:()=>Ku,getApiV1SystemRoutes:()=>cu,getApiV1SystemBackup:()=>jA,getApiV1Search:()=>Xu,getApiV1RootfolderById:()=>ju,getApiV1Rootfolder:()=>xV,getApiV1Retag:()=>bu,getApiV1Rename:()=>$u,getApiV1RemotepathmappingById:()=>Ou,getApiV1Remotepathmapping:()=>Uu,getApiV1ReleaseprofileById:()=>Qu,getApiV1Releaseprofile:()=>ku,getApiV1Release:()=>Tu,getApiV1QueueStatus:()=>sV,getApiV1QueueDetails:()=>CV,getApiV1Queue:()=>tV,getApiV1QualityprofileSchema:()=>PV,getApiV1QualityprofileById:()=>gV,getApiV1Qualityprofile:()=>dV,getApiV1QualitydefinitionById:()=>su,getApiV1Qualitydefinition:()=>xu,getApiV1Parse:()=>pu,getApiV1NotificationSchema:()=>BV,getApiV1NotificationById:()=>AV,getApiV1Notification:()=>VV,getApiV1MetadataprofileSchema:()=>mu,getApiV1MetadataprofileById:()=>uu,getApiV1Metadataprofile:()=>Gu,getApiV1MetadataSchema:()=>Bu,getApiV1MetadataById:()=>Au,getApiV1Metadata:()=>Vu,getApiV1MediacoverArtistByArtistIdByFilename:()=>ng,getApiV1MediacoverAlbumByAlbumIdByFilename:()=>og,getApiV1Manualimport:()=>vg,getApiV1LogFileUpdateByFilename:()=>BP,getApiV1LogFileUpdate:()=>RP,getApiV1LogFileByFilename:()=>Za,getApiV1LogFile:()=>Xa,getApiV1Log:()=>Ja,getApiV1Localization:()=>ig,getApiV1LanguageById:()=>zg,getApiV1Language:()=>_g,getApiV1Indexerflag:()=>Kg,getApiV1IndexerSchema:()=>$a,getApiV1IndexerById:()=>Oa,getApiV1Indexer:()=>Ua,getApiV1ImportlistexclusionById:()=>Fg,getApiV1Importlistexclusion:()=>bg,getApiV1ImportlistSchema:()=>ka,getApiV1ImportlistById:()=>ra,getApiV1Importlist:()=>Qa,getApiV1HistorySince:()=>fa,getApiV1HistoryArtist:()=>Ca,getApiV1History:()=>pa,getApiV1Health:()=>ta,getApiV1FilesystemType:()=>wg,getApiV1FilesystemMediafiles:()=>Wg,getApiV1Filesystem:()=>kg,getApiV1DownloadclientSchema:()=>Pa,getApiV1DownloadclientById:()=>Da,getApiV1Downloadclient:()=>Ga,getApiV1Diskspace:()=>Ba,getApiV1DelayprofileById:()=>xg,getApiV1Delayprofile:()=>Cg,getApiV1CustomformatSchema:()=>Va,getApiV1CustomformatById:()=>qA,getApiV1Customformat:()=>oA,getApiV1CustomfilterById:()=>mg,getApiV1Customfilter:()=>tg,getApiV1ConfigUiById:()=>EV,getApiV1ConfigUi:()=>FV,getApiV1ConfigNamingExamples:()=>oa,getApiV1ConfigNamingById:()=>va,getApiV1ConfigNaming:()=>na,getApiV1ConfigMetadataproviderById:()=>Ka,getApiV1ConfigMetadataprovider:()=>_a,getApiV1ConfigMediamanagementById:()=>Ya,getApiV1ConfigMediamanagement:()=>ca,getApiV1ConfigIndexerById:()=>Yg,getApiV1ConfigIndexer:()=>cg,getApiV1ConfigHostById:()=>Sa,getApiV1ConfigHost:()=>Ma,getApiV1ConfigDownloadclientById:()=>Lg,getApiV1ConfigDownloadclient:()=>Ng,getApiV1CommandById:()=>ug,getApiV1Command:()=>_A,getApiV1CalendarById:()=>yg,getApiV1Calendar:()=>KA,getApiV1Blocklist:()=>YA,getApiV1AutotaggingSchema:()=>Gg,getApiV1AutotaggingById:()=>Bg,getApiV1Autotagging:()=>Dg,getApiV1ArtistLookup:()=>bA,getApiV1ArtistById:()=>EA,getApiV1Artist:()=>FA,getApiV1AlbumLookup:()=>HA,getApiV1AlbumById:()=>wA,getApiV1Album:()=>QA,getApi:()=>n3,get:()=>Yu,deleteApiV1TrackfileById:()=>qu,deleteApiV1TrackfileBulk:()=>aP,deleteApiV1TagById:()=>QV,deleteApiV1SystemBackupById:()=>JA,deleteApiV1RootfolderById:()=>SV,deleteApiV1RemotepathmappingById:()=>Hu,deleteApiV1ReleaseprofileById:()=>Lu,deleteApiV1QueueById:()=>mV,deleteApiV1QueueBulk:()=>lV,deleteApiV1QualityprofileById:()=>yV,deleteApiV1NotificationById:()=>eV,deleteApiV1MetadataprofileById:()=>gu,deleteApiV1MetadataById:()=>eu,deleteApiV1IndexerById:()=>Ha,deleteApiV1IndexerBulk:()=>Jg,deleteApiV1ImportlistexclusionById:()=>Ug,deleteApiV1ImportlistById:()=>Ta,deleteApiV1ImportlistBulk:()=>Hg,deleteApiV1DownloadclientById:()=>Ia,deleteApiV1DownloadclientBulk:()=>ga,deleteApiV1DelayprofileById:()=>Sg,deleteApiV1CustomformatById:()=>vA,deleteApiV1CustomformatBulk:()=>Aa,deleteApiV1CustomfilterById:()=>Pg,deleteApiV1CommandById:()=>gg,deleteApiV1BlocklistById:()=>hA,deleteApiV1BlocklistBulk:()=>cA,deleteApiV1AutotaggingById:()=>Rg,deleteApiV1ArtistEditor:()=>o3,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}}),v3=(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}),q3=(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}}),n3=(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}}),o3=(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}}),eg=(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}),Ag=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),ag=(e)=>(e?.client??g).post({...Oy,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),Vg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),Rg=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/{id}",...e}),Bg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/{id}",...e}),Ig=(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}}),Dg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging",...e}),dg=(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}}),Gg=(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}),yg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar/{id}",...e}),zA=(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}),gg=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),ug=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),_A=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e}),iA=(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}}),Pg=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),mg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),lg=(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}}),tg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e}),pg=(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}),Ra=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff",...e}),fg=(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}),Cg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...e}),sg=(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}}),Sg=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),xg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),Mg=(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}),Ba=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/diskspace",...e}),Ia=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),Da=(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}}),Ga=(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}}),ua=(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}}),Pa=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...e}),ma=(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}}),la=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...e}),rg=(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}}),Lg=(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}),Qg=(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}}),Ng=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...e}),kg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...e}),wg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...e}),Wg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/mediafiles",...e}),ta=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...e}),pa=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...e}),fa=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...e}),Ca=(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}),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}),xa=(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}}),Ma=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host",...e}),Ta=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),ra=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),La=(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}}),Qa=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...e}),Na=(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}}),Hg=(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}}),Og=(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}}),ka=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/schema",...e}),wa=(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}),Eg=(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}}),Ug=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),Fg=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),$g=(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}}),bg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...e}),jg=(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}}),Ha=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),Oa=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),Ea=(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}}),Ua=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e}),Fa=(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}}),Jg=(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}}),Xg=(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}}),$a=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...e}),ba=(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}}),ja=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...e}),Zg=(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}}),Yg=(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}),hg=(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}}),cg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer",...e}),Kg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerflag",...e}),zg=(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}),ig=(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}),Xa=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...e}),Za=(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}),vg=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...e}),qg=(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}}),ng=(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}),og=(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}),Ya=(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}),ha=(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}}),ca=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement",...e}),eu=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),Au=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),au=(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}}),Vu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...e}),Ru=(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}}),Bu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/schema",...e}),Iu=(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}}),Du=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/testall",...e}),du=(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}}),Gu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...e}),yu=(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}}),gu=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),uu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),Pu=(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}}),mu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/schema",...e}),Ka=(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}),za=(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}}),_a=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider",...e}),ia=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing",...e}),lu=(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}),va=(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}),qa=(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}}),na=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming",...e}),oa=(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}),eV=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),AV=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),aV=(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}}),VV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e}),RV=(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}}),BV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...e}),IV=(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}}),DV=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...e}),tu=(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}}),pu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/parse",...e}),fu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),Cu=(e)=>(e?.client??g).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),su=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...e}),Su=(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}}),xu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition",...e}),Mu=(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}}),dV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...e}),GV=(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}}),yV=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),gV=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),uV=(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}}),PV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/schema",...e}),mV=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/{id}",...e}),lV=(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}}),tV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue",...e}),pV=(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}),fV=(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}}),CV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/details",...e}),sV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/status",...e}),Tu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...e}),ru=(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}),Qu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e}),Nu=(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}}),ku=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...e}),wu=(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}}),Wu=(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}}),Hu=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),Ou=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),Eu=(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}}),Uu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...e}),Fu=(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}}),$u=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rename",...e}),bu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/retag",...e}),SV=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),ju=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),Ju=(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}}),xV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...e}),MV=(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}}),Xu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...e}),Zu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),Yu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),hu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),TV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...e}),cu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...e}),Ku=(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}),LV=(e)=>(e?.client??g).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...e}),QV=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),NV=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),kV=(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}}),wV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e}),WV=(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}}),HV=(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}),OV=(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}),_u=(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}),iu=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/track",...e}),vu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/track/{id}",...e}),qu=(e)=>(e.client??g).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/{id}",...e}),nu=(e)=>(e.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/{id}",...e}),ou=(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}}),eP=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile",...e}),AP=(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}}),aP=(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}}),EV=(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}),UV=(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}}),FV=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui",...e}),VP=(e)=>(e?.client??g).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...e}),RP=(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}),BP=(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 IP{clientConfig;constructor(e){this.clientConfig=E(e),g.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return TV()}async getHealth(){return ta()}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 iA({body:e})}async getCommands(){return _A()}async getRootFolders(){return xV()}async addRootFolder(e){return MV({body:{path:e}})}async deleteRootFolder(e){return SV({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 V.includeArtist=!0,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 zA(Object.keys(V).length>0?{query:V}:{})}async getQualityProfiles(){return dV()}async getQualityProfile(e){return gV({path:{id:e}})}async addQualityProfile(e){return GV({body:e})}async updateQualityProfile(e,A){return uV({path:{id:String(e)},body:A})}async deleteQualityProfile(e){return yV({path:{id:e}})}async getQualityProfileSchema(){return PV()}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 Ma()}async getHostConfigById(e){return Sa({path:{id:e}})}async updateHostConfig(e,A){return xa({path:{id:String(e)},body:A})}async getNamingConfig(){return na()}async getNamingConfigById(e){return va({path:{id:e}})}async updateNamingConfig(e,A){return qa({path:{id:String(e)},body:A})}async getNamingConfigExamples(){return oa()}async getMediaManagementConfig(){return ca()}async getMediaManagementConfigById(e){return Ya({path:{id:e}})}async updateMediaManagementConfig(e,A){return ha({path:{id:String(e)},body:A})}async getUiConfig(){return FV()}async getUiConfigById(e){return EV({path:{id:e}})}async updateUiConfig(e,A){return UV({path:{id:String(e)},body:A})}async getMetadataProviderConfig(){return _a()}async getMetadataProviderConfigById(e){return Ka({path:{id:e}})}async updateMetadataProviderConfig(e,A){return za({path:{id:String(e)},body:A})}async restartSystem(){return LV()}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 Xa()}async getLogFileByName(e){return Za({path:{filename:e}})}async getDiskSpace(){return Ba()}async getTags(){return wV()}async addTag(e){return WV({body:e})}async getTag(e){return NV({path:{id:e}})}async updateTag(e,A){return kV({path:{id:String(e)},body:A})}async deleteTag(e){return QV({path:{id:e}})}async getTagDetails(){return OV()}async getTagDetailById(e){return HV({path:{id:e}})}async getDownloadClients(){return Ga()}async getDownloadClient(e){return Da({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 Ia({path:{id:e}})}async updateDownloadClientsBulk(e){return ua({body:e})}async deleteDownloadClientsBulk(e){return ga({body:{ids:e}})}async getDownloadClientSchema(){return Pa()}async testDownloadClient(e){return ma({body:e})}async testAllDownloadClients(){return la()}async getIndexers(){return Ua()}async getIndexer(e){return Oa({path:{id:e}})}async addIndexer(e){return Fa({body:e})}async updateIndexer(e,A){return Ea({path:{id:e},body:A})}async deleteIndexer(e){return Ha({path:{id:e}})}async getIndexerSchema(){return $a()}async testIndexer(e){return ba({body:e})}async testAllIndexers(){return ja()}async getImportLists(){return Qa()}async getImportList(e){return ra({path:{id:e}})}async addImportList(e){return Na({body:e})}async updateImportList(e,A){return La({path:{id:e},body:A})}async deleteImportList(e){return Ta({path:{id:e}})}async getImportListSchema(){return ka()}async testImportList(e){return wa({body:e})}async testAllImportLists(){return Wa()}async getNotifications(){return VV()}async getNotification(e){return AV({path:{id:e}})}async addNotification(e){return RV({body:e})}async updateNotification(e,A){return aV({path:{id:e},body:A})}async deleteNotification(e){return eV({path:{id:e}})}async getNotificationSchema(){return BV()}async testNotification(e){return IV({body:e})}async testAllNotifications(){return DV()}async getHistory(e,A,a,V,R,D){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(D)B.downloadId=D;return pa(Object.keys(B).length>0?{query:B}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.artistId=A;return fa({query:a})}async getArtistHistory(e,A){let a={artistId:e};if(A!==void 0)a.eventType=A;return Ca({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 tV(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 mV({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 lV({body:{ids:e},...Object.keys(V).length>0?{query:V}:{}})}async grabQueueItem(e){return pV({path:{id:e}})}async grabQueueItemsBulk(e){return fV({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.artistId=e;if(A!==void 0)a.includeUnknownArtistItems=A;return CV(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return sV()}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}})}async getWantedMissing(e,A,a,V,R){let D={includeArtist:!0};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.monitored=R;return ia(Object.keys(D).length>0?{query:D}:{})}async getWantedCutoff(e,A,a,V,R){let D={includeArtist:!0};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.monitored=R;return Ra(Object.keys(D).length>0?{query:D}:{})}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 DP=(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 Jy={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)=>DP(A,a,R));else DP(A,a,V)}),A}},Xy={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var dP=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:D,sseMaxRetryAttempts:B,sseMaxRetryDelay:d,sseSleepFn:u,url:S,...l})=>{let I,M=u??((L)=>new Promise((m)=>setTimeout(m,L)));return{stream:async function*(){let L=D??3000,m=0,x=l.signal??new AbortController().signal;while(!0){if(x.aborted)break;m++;let W=l.headers instanceof Headers?l.headers:new Headers(l.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...l,body:l.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let t=await(l.fetch??globalThis.fetch)(N);if(!t.ok)throw Error(`SSE failed: ${t.status} ${t.statusText}`);if(!t.body)throw Error("No body in SSE response");let C=t.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:"))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,`
18
+ `),O=[],$;for(let r of h)if(r.startsWith("data:"))O.push(r.replace(/^data:\s*/,""));else if(r.startsWith("event:"))$=r.replace(/^event:\s*/,"");else if(r.startsWith("id:"))I=r.replace(/^id:\s*/,"");else if(r.startsWith("retry:")){let j=Number.parseInt(r.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let r=O.join(`
19
+ `);try{k=JSON.parse(r),b=!0}catch{k=r}}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&&m>=B)break;let N=Math.min(L*2**(m-1),d??30000);await M(N)}}}()}};var dx=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Gx=(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"&"}},$V=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let d=(e?R:R.map((u)=>encodeURIComponent(u))).join(Gx(V));switch(V){case"label":return`.${d}`;case"matrix":return`;${a}=${d}`;case"simple":return d;default:return`${a}=${d}`}}let D=dx(V),B=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+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)}`},bV=({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(([l,I])=>{u=[...u,l,e?I:encodeURIComponent(I)]});let S=u.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(([u,S])=>_({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(B);return V==="label"||V==="matrix"?B+d:d};var gx=/\{[^{}]+\}/g,ux=({path:e,url:A})=>{let a=A,V=A.match(gx);if(V)for(let R of V){let D=!1,B=R.substring(1,R.length-1),d="simple";if(B.endsWith("*"))D=!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 u=e[B];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,$V({explode:D,name:B,style:d,value:u}));continue}if(typeof u==="object"){a=a.replace(R,bV({explode:D,name:B,style:d,value:u,valueOnly:!0}));continue}if(d==="matrix"){a=a.replace(R,`;${_({name:B,value:u})}`);continue}let S=encodeURIComponent(d==="label"?`.${u}`:u);a=a.replace(R,S)}return a},GP=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let D=R.startsWith("/")?R:`/${R}`,B=(e??"")+D;if(A)B=ux({path:A,url:B});let d=a?V(a):"";if(d.startsWith("?"))d=d.substring(1);if(d)B+=`?${d}`;return B};function Zy(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 yP=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 gP=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let D in V){let B=V[D];if(B===void 0||B===null)continue;let d=e[D]||A;if(Array.isArray(B)){let u=$V({allowReserved:d.allowReserved,explode:!0,name:D,style:"form",value:B,...d.array});if(u)R.push(u)}else if(typeof B==="object"){let u=bV({allowReserved:d.allowReserved,explode:!0,name:D,style:"deepObject",value:B,...d.object});if(u)R.push(u)}else{let u=_({allowReserved:d.allowReserved,name:D,value:B});if(u)R.push(u)}}return R.join("&")}},uP=(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},Px=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},PP=async({security:e,...A})=>{for(let a of e){if(Px(A,a.name))continue;let V=await yP(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}}},Yy=(e)=>GP({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:gP(e.querySerializer),url:e.url}),hy=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=JV(e.headers,A.headers),a},mx=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},JV=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?mx(a):Object.entries(a);for(let[R,D]of V)if(D===null)A.delete(R);else if(Array.isArray(D))for(let B of D)A.append(R,B);else if(D!==void 0)A.set(R,typeof D==="object"?JSON.stringify(D):D)}return A};class jV{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 mP=()=>({error:new jV,request:new jV,response:new jV}),lx=gP({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),tx={"Content-Type":"application/json"},Ve=(e={})=>({...Xy,headers:tx,parseAs:"auto",querySerializer:lx,...e});var cy=(e={})=>{let A=hy(Ve(),e),a=()=>({...A}),V=(l)=>{return A=hy(A,l),a()},R=mP(),D=async(l)=>{let I={...A,...l,fetch:l.fetch??A.fetch??globalThis.fetch,headers:JV(A.headers,l.headers),serializedBody:void 0};if(I.security)await PP({...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 M=Yy(I);return{opts:I,url:M}},B=async(l)=>{let{opts:I,url:M}=await D(l),H={redirect:"follow",...I,body:Zy(I)},T=new Request(M,H);for(let t of R.request.fns)if(t)T=await t(T,I);let L=I.fetch,m;try{m=await L(T)}catch(t){let C=t;for(let f of R.error.fns)if(f)C=await f(t,void 0,T,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:T,response:void 0}}for(let t of R.response.fns)if(t)m=await t(m,T,I);let x={request:T,response:m};if(m.ok){let t=(I.parseAs==="auto"?uP(m.headers.get("Content-Type")):I.parseAs)??"json";if(m.status===204||m.headers.get("Content-Length")==="0"){let f;switch(t){case"arrayBuffer":case"blob":case"text":f=await m[t]();break;case"formData":f=new FormData;break;case"stream":f=m.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(t){case"arrayBuffer":case"blob":case"formData":case"text":C=await m[t]();break;case"json":{let f=await m.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?m.body:{data:m.body,...x}}if(t==="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 m.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let t of R.error.fns)if(t)w=await t(N,m,T,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},d=(l)=>(I)=>B({...I,method:l}),u=(l)=>async(I)=>{let{opts:M,url:H}=await D(I);return dP({...M,body:M.body,headers:M.headers,method:l,onRequest:async(T,L)=>{let m=new Request(T,L);for(let x of R.request.fns)if(x)m=await x(m,M);return m},serializedBody:Zy(M),url:H})};return{buildUrl:(l)=>Yy({...A,...l}),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: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=cy(Ve());var Ky={};c(Ky,{putApiV1TagById:()=>ZR,putApiV1NotificationById:()=>wR,putApiV1IndexerproxyById:()=>nP,putApiV1IndexerById:()=>fR,putApiV1IndexerBulk:()=>zP,putApiV1DownloadclientById:()=>IR,putApiV1DownloadclientBulk:()=>FP,putApiV1CustomfilterById:()=>HP,putApiV1ConfigUiById:()=>_R,putApiV1ConfigHostById:()=>mR,putApiV1ConfigDownloadclientById:()=>jP,putApiV1ConfigDevelopmentById:()=>aR,putApiV1AppprofileById:()=>MP,putApiV1ApplicationsById:()=>YV,putApiV1ApplicationsBulk:()=>pP,postLogin:()=>LP,postApiV1Tag:()=>hR,postApiV1SystemShutdown:()=>bR,postApiV1SystemRestart:()=>jR,postApiV1SystemBackupRestoreUpload:()=>nV,postApiV1SystemBackupRestoreById:()=>qV,postApiV1SearchBulk:()=>tm,postApiV1Search:()=>lm,postApiV1NotificationTestall:()=>UR,postApiV1NotificationTest:()=>ER,postApiV1NotificationActionByName:()=>um,postApiV1Notification:()=>HR,postApiV1IndexerproxyTestall:()=>Vm,postApiV1IndexerproxyTest:()=>am,postApiV1IndexerproxyActionByName:()=>Rm,postApiV1Indexerproxy:()=>em,postApiV1IndexerTestall:()=>MR,postApiV1IndexerTest:()=>xR,postApiV1IndexerActionByName:()=>_P,postApiV1Indexer:()=>sR,postApiV1DownloadclientTestall:()=>gR,postApiV1DownloadclientTest:()=>yR,postApiV1DownloadclientActionByName:()=>$P,postApiV1Downloadclient:()=>dR,postApiV1Customfilter:()=>EP,postApiV1Command:()=>eR,postApiV1Appprofile:()=>sP,postApiV1ApplicationsTestall:()=>_V,postApiV1ApplicationsTest:()=>zV,postApiV1ApplicationsActionByName:()=>fP,postApiV1Applications:()=>cV,headPing:()=>mm,getPing:()=>Pm,getLogout:()=>QP,getLogin:()=>rP,getContentByPath:()=>pm,getByPath:()=>Cm,getByIdDownload:()=>gm,getByIdApi:()=>Gm,getApiV1Update:()=>Tm,getApiV1TagDetailById:()=>cR,getApiV1TagDetail:()=>KR,getApiV1TagById:()=>XR,getApiV1Tag:()=>YR,getApiV1SystemTaskById:()=>Mm,getApiV1SystemTask:()=>xm,getApiV1SystemStatus:()=>$R,getApiV1SystemRoutesDuplicate:()=>Sm,getApiV1SystemRoutes:()=>sm,getApiV1SystemBackup:()=>iV,getApiV1Search:()=>FR,getApiV1NotificationSchema:()=>OR,getApiV1NotificationById:()=>kR,getApiV1Notification:()=>WR,getApiV1LogFileUpdateByFilename:()=>Lm,getApiV1LogFileUpdate:()=>rm,getApiV1LogFileByFilename:()=>QR,getApiV1LogFile:()=>LR,getApiV1Log:()=>rR,getApiV1LocalizationOptions:()=>Dm,getApiV1Localization:()=>Im,getApiV1Indexerstatus:()=>Bm,getApiV1Indexerstats:()=>TR,getApiV1IndexerproxySchema:()=>Am,getApiV1IndexerproxyById:()=>qP,getApiV1Indexerproxy:()=>oP,getApiV1IndexerSchema:()=>SR,getApiV1IndexerCategories:()=>iP,getApiV1IndexerByIdNewznab:()=>dm,getApiV1IndexerByIdDownload:()=>ym,getApiV1IndexerById:()=>pR,getApiV1Indexer:()=>CR,getApiV1HistorySince:()=>hP,getApiV1HistoryIndexer:()=>cP,getApiV1History:()=>YP,getApiV1Health:()=>uR,getApiV1FilesystemType:()=>ZP,getApiV1Filesystem:()=>XP,getApiV1DownloadclientSchema:()=>GR,getApiV1DownloadclientById:()=>BR,getApiV1Downloadclient:()=>DR,getApiV1CustomfilterById:()=>WP,getApiV1Customfilter:()=>OP,getApiV1ConfigUiById:()=>zR,getApiV1ConfigUi:()=>iR,getApiV1ConfigHostById:()=>PR,getApiV1ConfigHost:()=>lR,getApiV1ConfigDownloadclientById:()=>bP,getApiV1ConfigDownloadclient:()=>JP,getApiV1ConfigDevelopmentById:()=>AR,getApiV1ConfigDevelopment:()=>VR,getApiV1CommandById:()=>kP,getApiV1Command:()=>oV,getApiV1AppprofileSchema:()=>TP,getApiV1AppprofileById:()=>xP,getApiV1Appprofile:()=>CP,getApiV1ApplicationsSchema:()=>KV,getApiV1ApplicationsById:()=>ZV,getApiV1Applications:()=>hV,getApi:()=>lP,get:()=>fm,deleteApiV1TagById:()=>JR,deleteApiV1SystemBackupById:()=>vV,deleteApiV1NotificationById:()=>NR,deleteApiV1IndexerproxyById:()=>vP,deleteApiV1IndexerById:()=>tR,deleteApiV1IndexerBulk:()=>KP,deleteApiV1DownloadclientById:()=>RR,deleteApiV1DownloadclientBulk:()=>UP,deleteApiV1CustomfilterById:()=>wP,deleteApiV1CommandById:()=>NP,deleteApiV1AppprofileById:()=>SP,deleteApiV1ApplicationsById:()=>XV,deleteApiV1ApplicationsBulk:()=>tP});var lP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),XV=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/{id}",...e}),ZV=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/{id}",...e}),YV=(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}}),hV=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications",...e}),cV=(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}}),tP=(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}}),pP=(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}}),KV=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/schema",...e}),zV=(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}}),_V=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/testall",...e}),fP=(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}}),CP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile",...e}),sP=(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}}),SP=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/{id}",...e}),xP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/{id}",...e}),MP=(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}}),TP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/schema",...e}),rP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),LP=(e)=>(e?.client??p).post({...Jy,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),QP=(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}),vV=(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}),qV=(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}),nV=(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}),NP=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),kP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),oV=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e}),eR=(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}}),wP=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),WP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),HP=(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}}),OP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e}),EP=(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}}),AR=(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}),aR=(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}}),VR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development",...e}),RR=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),BR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),IR=(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}}),DR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e}),dR=(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}}),UP=(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}}),FP=(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}}),GR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...e}),yR=(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}}),gR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...e}),$P=(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}}),bP=(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}),jP=(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}}),JP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...e}),XP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...e}),ZP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...e}),uR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...e}),YP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...e}),hP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...e}),cP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/indexer",...e}),PR=(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}),mR=(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}}),lR=(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}),fR=(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}}),CR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e}),sR=(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}}),KP=(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}}),zP=(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}}),SR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...e}),xR=(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}}),MR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...e}),_P=(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}}),iP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/categories",...e}),vP=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/{id}",...e}),qP=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/{id}",...e}),nP=(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}}),oP=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy",...e}),em=(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}}),Am=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/schema",...e}),am=(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}}),Vm=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/testall",...e}),Rm=(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}}),TR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerstats",...e}),Bm=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerstatus",...e}),Im=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization",...e}),Dm=(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}),LR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...e}),QR=(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}),dm=(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}),Gm=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{id}/api",...e}),ym=(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}),gm=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{id}/download",...e}),NR=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),kR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),wR=(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}}),WR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e}),HR=(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}}),OR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...e}),ER=(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}}),UR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...e}),um=(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}}),Pm=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),mm=(e)=>(e?.client??p).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),FR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...e}),lm=(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}}),tm=(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}}),pm=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),fm=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),Cm=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),$R=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...e}),sm=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...e}),Sm=(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}),bR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/shutdown",...e}),jR=(e)=>(e?.client??p).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...e}),JR=(e)=>(e.client??p).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),XR=(e)=>(e.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),ZR=(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}}),YR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e}),hR=(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}}),cR=(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}),KR=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail",...e}),xm=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task",...e}),Mm=(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}),zR=(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}),_R=(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}),Tm=(e)=>(e?.client??p).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...e}),rm=(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}),Lm=(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 Qm{clientConfig;constructor(e){this.clientConfig=E(e),p.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return $R()}async getHealth(){return uR()}async getIndexers(){return CR()}async getIndexer(e){return pR({path:{id:e}})}async addIndexer(e){return sR({body:e})}async updateIndexer(e,A){return fR({path:{id:String(e)},body:A})}async deleteIndexer(e){return tR({path:{id:e}})}async getIndexerStats(){return TR()}async getDownloadClients(){return DR()}async getDownloadClient(e){return BR({path:{id:e}})}async addDownloadClient(e){return dR({body:e})}async updateDownloadClient(e,A){return IR({path:{id:String(e)},body:A})}async deleteDownloadClient(e){return RR({path:{id:e}})}async testDownloadClient(e){return yR({body:e})}async testAllDownloadClients(){return gR()}async getDownloadClientSchema(){return GR()}async search(e,A){return FR({query:{query:e,...A&&{indexerIds:A}}})}async getApplications(){return hV()}async runCommand(e){return eR({body:e})}async getCommands(){return oV()}async getHostConfig(){return lR()}async getHostConfigById(e){return PR({path:{id:e}})}async updateHostConfig(e,A){return mR({path:{id:String(e)},body:A})}async getUiConfig(){return iR()}async getUiConfigById(e){return zR({path:{id:e}})}async updateUiConfig(e,A){return _R({path:{id:String(e)},body:A})}async getDevelopmentConfig(){return VR()}async getDevelopmentConfigById(e){return AR({path:{id:e}})}async updateDevelopmentConfig(e,A){return aR({path:{id:String(e)},body:A})}async restartSystem(){return jR()}async shutdownSystem(){return bR()}async getSystemBackups(){return iV()}async deleteSystemBackup(e){return vV({path:{id:e}})}async restoreSystemBackup(e){return qV({path:{id:e}})}async uploadSystemBackup(){return nV()}async getSystemLogs(){return rR()}async getLogFiles(){return LR()}async getLogFileByName(e){return QR({path:{filename:e}})}async getTags(){return YR()}async addTag(e){return hR({body:e})}async getTag(e){return XR({path:{id:e}})}async updateTag(e,A){return ZR({path:{id:String(e)},body:A})}async deleteTag(e){return JR({path:{id:e}})}async getTagDetails(){return KR()}async getTagDetailById(e){return cR({path:{id:e}})}async getApplication(e){return ZV({path:{id:e}})}async addApplication(e){return cV({body:e})}async updateApplication(e,A){return YV({path:{id:String(e)},body:A})}async deleteApplication(e){return XV({path:{id:e}})}async testApplication(e){return zV({body:e})}async testAllApplications(){return _V()}async getApplicationSchema(){return KV()}async getIndexerSchema(){return SR()}async testIndexer(e){return xR({body:e})}async testAllIndexers(){return MR()}async getNotifications(){return WR()}async getNotification(e){return kR({path:{id:e}})}async addNotification(e){return HR({body:e})}async updateNotification(e,A){return wR({path:{id:String(e)},body:A})}async deleteNotification(e){return NR({path:{id:e}})}async getNotificationSchema(){return OR()}async testNotification(e){return ER({body:e})}async testAllNotifications(){return UR()}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 Nm=(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 zy={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)=>Nm(A,a,R));else Nm(A,a,V)}),A}},_y={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var km=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:D,sseMaxRetryAttempts:B,sseMaxRetryDelay:d,sseSleepFn:u,url:S,...l})=>{let I,M=u??((L)=>new Promise((m)=>setTimeout(m,L)));return{stream:async function*(){let L=D??3000,m=0,x=l.signal??new AbortController().signal;while(!0){if(x.aborted)break;m++;let W=l.headers instanceof Headers?l.headers:new Headers(l.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...l,body:l.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let t=await(l.fetch??globalThis.fetch)(N);if(!t.ok)throw Error(`SSE failed: ${t.status} ${t.statusText}`);if(!t.body)throw Error("No body in SSE response");let C=t.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:"))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,`
24
+ `),O=[],$;for(let r of h)if(r.startsWith("data:"))O.push(r.replace(/^data:\s*/,""));else if(r.startsWith("event:"))$=r.replace(/^event:\s*/,"");else if(r.startsWith("id:"))I=r.replace(/^id:\s*/,"");else if(r.startsWith("retry:")){let j=Number.parseInt(r.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let r=O.join(`
25
+ `);try{k=JSON.parse(r),b=!0}catch{k=r}}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&&m>=B)break;let N=Math.min(L*2**(m-1),d??30000);await M(N)}}}()}};var px=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},fx=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Cx=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},vR=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let d=(e?R:R.map((u)=>encodeURIComponent(u))).join(fx(V));switch(V){case"label":return`.${d}`;case"matrix":return`;${a}=${d}`;case"simple":return d;default:return`${a}=${d}`}}let D=px(V),B=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+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)}`},qR=({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(([l,I])=>{u=[...u,l,e?I:encodeURIComponent(I)]});let S=u.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let B=Cx(V),d=Object.entries(R).map(([u,S])=>i({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(B);return V==="label"||V==="matrix"?B+d:d};var sx=/\{[^{}]+\}/g,Sx=({path:e,url:A})=>{let a=A,V=A.match(sx);if(V)for(let R of V){let D=!1,B=R.substring(1,R.length-1),d="simple";if(B.endsWith("*"))D=!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 u=e[B];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,vR({explode:D,name:B,style:d,value:u}));continue}if(typeof u==="object"){a=a.replace(R,qR({explode:D,name:B,style:d,value:u,valueOnly:!0}));continue}if(d==="matrix"){a=a.replace(R,`;${i({name:B,value:u})}`);continue}let S=encodeURIComponent(d==="label"?`.${u}`:u);a=a.replace(R,S)}return a},wm=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let D=R.startsWith("/")?R:`/${R}`,B=(e??"")+D;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 iy(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 Wm=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 Hm=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let D in V){let B=V[D];if(B===void 0||B===null)continue;let d=e[D]||A;if(Array.isArray(B)){let u=vR({allowReserved:d.allowReserved,explode:!0,name:D,style:"form",value:B,...d.array});if(u)R.push(u)}else if(typeof B==="object"){let u=qR({allowReserved:d.allowReserved,explode:!0,name:D,style:"deepObject",value:B,...d.object});if(u)R.push(u)}else{let u=i({allowReserved:d.allowReserved,name:D,value:B});if(u)R.push(u)}}return R.join("&")}},Om=(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},xx=(e,A)=>{if(!A)return!1;if(e.headers.has(A)||e.query?.[A]||e.headers.get("Cookie")?.includes(`${A}=`))return!0;return!1},Em=async({security:e,...A})=>{for(let a of e){if(xx(A,a.name))continue;let V=await Wm(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}}},vy=(e)=>wm({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:Hm(e.querySerializer),url:e.url}),qy=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=oR(e.headers,A.headers),a},Mx=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},oR=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?Mx(a):Object.entries(a);for(let[R,D]of V)if(D===null)A.delete(R);else if(Array.isArray(D))for(let B of D)A.append(R,B);else if(D!==void 0)A.set(R,typeof D==="object"?JSON.stringify(D):D)}return A};class nR{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 Um=()=>({error:new nR,request:new nR,response:new nR}),Tx=Hm({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),rx={"Content-Type":"application/json"},Re=(e={})=>({..._y,headers:rx,parseAs:"auto",querySerializer:Tx,...e});var ny=(e={})=>{let A=qy(Re(),e),a=()=>({...A}),V=(l)=>{return A=qy(A,l),a()},R=Um(),D=async(l)=>{let I={...A,...l,fetch:l.fetch??A.fetch??globalThis.fetch,headers:oR(A.headers,l.headers),serializedBody:void 0};if(I.security)await Em({...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 M=vy(I);return{opts:I,url:M}},B=async(l)=>{let{opts:I,url:M}=await D(l),H={redirect:"follow",...I,body:iy(I)},T=new Request(M,H);for(let t of R.request.fns)if(t)T=await t(T,I);let L=I.fetch,m;try{m=await L(T)}catch(t){let C=t;for(let f of R.error.fns)if(f)C=await f(t,void 0,T,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:T,response:void 0}}for(let t of R.response.fns)if(t)m=await t(m,T,I);let x={request:T,response:m};if(m.ok){let t=(I.parseAs==="auto"?Om(m.headers.get("Content-Type")):I.parseAs)??"json";if(m.status===204||m.headers.get("Content-Length")==="0"){let f;switch(t){case"arrayBuffer":case"blob":case"text":f=await m[t]();break;case"formData":f=new FormData;break;case"stream":f=m.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(t){case"arrayBuffer":case"blob":case"formData":case"text":C=await m[t]();break;case"json":{let f=await m.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?m.body:{data:m.body,...x}}if(t==="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 m.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let t of R.error.fns)if(t)w=await t(N,m,T,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},d=(l)=>(I)=>B({...I,method:l}),u=(l)=>async(I)=>{let{opts:M,url:H}=await D(I);return km({...M,body:M.body,headers:M.headers,method:l,onRequest:async(T,L)=>{let m=new Request(T,L);for(let x of R.request.fns)if(x)m=await x(m,M);return m},serializedBody:iy(M),url:H})};return{buildUrl:(l)=>vy({...A,...l}),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: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=ny(Re());var oy={};c(oy,{putApiV3TagById:()=>n1,putApiV3RemotepathmappingById:()=>jt,putApiV3ReleaseprofileById:()=>Ot,putApiV3QualityprofileById:()=>O1,putApiV3QualitydefinitionUpdate:()=>rt,putApiV3QualitydefinitionById:()=>Mt,putApiV3NotificationById:()=>r1,putApiV3MoviefileEditor:()=>mt,putApiV3MoviefileById:()=>Pt,putApiV3MoviefileBulk:()=>tt,putApiV3MovieEditor:()=>Gt,putApiV3MovieById:()=>m1,putApiV3MetadataById:()=>et,putApiV3IndexerById:()=>oB,putApiV3IndexerBulk:()=>$l,putApiV3ImportlistById:()=>cB,putApiV3ImportlistBulk:()=>Sl,putApiV3ExclusionsById:()=>Wl,putApiV3DownloadclientById:()=>rB,putApiV3DownloadclientBulk:()=>QB,putApiV3DelayprofileReorderById:()=>Pl,putApiV3DelayprofileById:()=>ul,putApiV3CustomformatById:()=>lB,putApiV3CustomformatBulk:()=>pB,putApiV3CustomfilterById:()=>Dl,putApiV3ConfigUiById:()=>aI,putApiV3ConfigNamingById:()=>C1,putApiV3ConfigMetadataById:()=>Dt,putApiV3ConfigMediamanagementById:()=>d1,putApiV3ConfigIndexerById:()=>Xl,putApiV3ConfigImportlistById:()=>rl,putApiV3ConfigHostById:()=>JB,putApiV3ConfigDownloadclientById:()=>pl,putApiV3CollectionById:()=>nm,putApiV3Collection:()=>vm,putApiV3AutotaggingById:()=>Km,postLogin:()=>Jm,postApiV3Tag:()=>i1,postApiV3SystemShutdown:()=>K1,postApiV3SystemRestart:()=>z1,postApiV3SystemBackupRestoreUpload:()=>VB,postApiV3SystemBackupRestoreById:()=>aB,postApiV3Rootfolder:()=>Y1,postApiV3Remotepathmapping:()=>Ft,postApiV3Releaseprofile:()=>wt,postApiV3ReleasePush:()=>Et,postApiV3Release:()=>Nt,postApiV3QueueGrabById:()=>b1,postApiV3QueueGrabBulk:()=>j1,postApiV3Qualityprofile:()=>w1,postApiV3NotificationTestall:()=>N1,postApiV3NotificationTest:()=>Q1,postApiV3NotificationActionByName:()=>ft,postApiV3Notification:()=>x1,postApiV3MovieImport:()=>l1,postApiV3Movie:()=>g1,postApiV3MetadataTestall:()=>Vt,postApiV3MetadataTest:()=>at,postApiV3MetadataActionByName:()=>Rt,postApiV3Metadata:()=>ql,postApiV3Manualimport:()=>_l,postApiV3IndexerTestall:()=>a1,postApiV3IndexerTest:()=>A1,postApiV3IndexerActionByName:()=>bl,postApiV3Indexer:()=>vB,postApiV3ImportlistTestall:()=>_B,postApiV3ImportlistTest:()=>zB,postApiV3ImportlistMovie:()=>Ul,postApiV3ImportlistActionByName:()=>xl,postApiV3Importlist:()=>ZB,postApiV3HistoryFailedById:()=>$B,postApiV3ExclusionsBulk:()=>Ol,postApiV3Exclusions:()=>Ql,postApiV3DownloadclientTestall:()=>wB,postApiV3DownloadclientTest:()=>kB,postApiV3DownloadclientActionByName:()=>ml,postApiV3Downloadclient:()=>xB,postApiV3Delayprofile:()=>Gl,postApiV3Customformat:()=>uB,postApiV3Customfilter:()=>Rl,postApiV3Command:()=>yB,postApiV3Autotagging:()=>Ym,headPing:()=>St,getPing:()=>st,getLogout:()=>Xm,getLogin:()=>jm,getFeedV3CalendarRadarrIcs:()=>dB,getContentByPath:()=>Zt,getByPath:()=>ht,getApiV3WantedMissing:()=>G1,getApiV3WantedCutoff:()=>CB,getApiV3Update:()=>it,getApiV3TagDetailById:()=>eI,getApiV3TagDetail:()=>o1,getApiV3TagById:()=>q1,getApiV3Tag:()=>_1,getApiV3SystemTaskById:()=>_t,getApiV3SystemTask:()=>zt,getApiV3SystemStatus:()=>c1,getApiV3SystemRoutesDuplicate:()=>Kt,getApiV3SystemRoutes:()=>ct,getApiV3SystemBackup:()=>eB,getApiV3RootfolderById:()=>Xt,getApiV3Rootfolder:()=>Z1,getApiV3Rename:()=>Jt,getApiV3RemotepathmappingById:()=>bt,getApiV3Remotepathmapping:()=>Ut,getApiV3ReleaseprofileById:()=>Ht,getApiV3Releaseprofile:()=>kt,getApiV3Release:()=>Qt,getApiV3QueueStatus:()=>X1,getApiV3QueueDetails:()=>J1,getApiV3Queue:()=>$1,getApiV3QualityprofileSchema:()=>E1,getApiV3QualityprofileById:()=>H1,getApiV3Qualityprofile:()=>k1,getApiV3QualitydefinitionLimits:()=>Lt,getApiV3QualitydefinitionById:()=>xt,getApiV3Qualitydefinition:()=>Tt,getApiV3Parse:()=>Ct,getApiV3NotificationSchema:()=>L1,getApiV3NotificationById:()=>T1,getApiV3Notification:()=>S1,getApiV3MoviefileById:()=>ut,getApiV3Moviefile:()=>yt,getApiV3MovieLookupTmdb:()=>Be,getApiV3MovieLookupImdb:()=>Ie,getApiV3MovieLookup:()=>t1,getApiV3MovieByIdFolder:()=>pt,getApiV3MovieById:()=>P1,getApiV3Movie:()=>y1,getApiV3MetadataSchema:()=>At,getApiV3MetadataById:()=>ol,getApiV3Metadata:()=>vl,getApiV3MediacoverByMovieIdByFilename:()=>il,getApiV3Manualimport:()=>zl,getApiV3LogFileUpdateByFilename:()=>qt,getApiV3LogFileUpdate:()=>vt,getApiV3LogFileByFilename:()=>B1,getApiV3LogFile:()=>R1,getApiV3Log:()=>V1,getApiV3LocalizationLanguage:()=>Kl,getApiV3Localization:()=>cl,getApiV3LanguageById:()=>hl,getApiV3Language:()=>Yl,getApiV3Indexerflag:()=>Zl,getApiV3IndexerSchema:()=>e1,getApiV3IndexerById:()=>nB,getApiV3Indexer:()=>iB,getApiV3ImportlistSchema:()=>KB,getApiV3ImportlistMovie:()=>El,getApiV3ImportlistById:()=>hB,getApiV3Importlist:()=>XB,getApiV3HistorySince:()=>UB,getApiV3HistoryMovie:()=>FB,getApiV3History:()=>EB,getApiV3Health:()=>OB,getApiV3FilesystemType:()=>Cl,getApiV3FilesystemMediafiles:()=>HB,getApiV3Filesystem:()=>WB,getApiV3Extrafile:()=>fl,getApiV3ExclusionsPaged:()=>Nl,getApiV3ExclusionsById:()=>wl,getApiV3Exclusions:()=>Ll,getApiV3DownloadclientSchema:()=>NB,getApiV3DownloadclientById:()=>TB,getApiV3Downloadclient:()=>SB,getApiV3Diskspace:()=>sB,getApiV3DelayprofileById:()=>gl,getApiV3Delayprofile:()=>dl,getApiV3CustomformatSchema:()=>fB,getApiV3CustomformatById:()=>mB,getApiV3Customformat:()=>gB,getApiV3CustomfilterById:()=>Il,getApiV3Customfilter:()=>Vl,getApiV3CreditById:()=>al,getApiV3Credit:()=>Al,getApiV3ConfigUiById:()=>AI,getApiV3ConfigUi:()=>VI,getApiV3ConfigNamingExamples:()=>s1,getApiV3ConfigNamingById:()=>f1,getApiV3ConfigNaming:()=>p1,getApiV3ConfigMetadataById:()=>It,getApiV3ConfigMetadata:()=>Bt,getApiV3ConfigMediamanagementById:()=>D1,getApiV3ConfigMediamanagement:()=>I1,getApiV3ConfigIndexerById:()=>Jl,getApiV3ConfigIndexer:()=>jl,getApiV3ConfigImportlistById:()=>Tl,getApiV3ConfigImportlist:()=>Ml,getApiV3ConfigHostById:()=>jB,getApiV3ConfigHost:()=>bB,getApiV3ConfigDownloadclientById:()=>tl,getApiV3ConfigDownloadclient:()=>ll,getApiV3CommandById:()=>el,getApiV3Command:()=>GB,getApiV3CollectionById:()=>qm,getApiV3Collection:()=>im,getApiV3Calendar:()=>DB,getApiV3BlocklistMovie:()=>_m,getApiV3Blocklist:()=>RB,getApiV3AutotaggingSchema:()=>zm,getApiV3AutotaggingById:()=>cm,getApiV3Autotagging:()=>Zm,getApiV3AlttitleById:()=>$m,getApiV3Alttitle:()=>Fm,getApi:()=>bm,get:()=>Yt,deleteApiV3TagById:()=>v1,deleteApiV3SystemBackupById:()=>AB,deleteApiV3RootfolderById:()=>h1,deleteApiV3RemotepathmappingById:()=>$t,deleteApiV3ReleaseprofileById:()=>Wt,deleteApiV3QueueById:()=>U1,deleteApiV3QueueBulk:()=>F1,deleteApiV3QualityprofileById:()=>W1,deleteApiV3NotificationById:()=>M1,deleteApiV3MoviefileById:()=>gt,deleteApiV3MoviefileBulk:()=>lt,deleteApiV3MovieEditor:()=>dt,deleteApiV3MovieById:()=>u1,deleteApiV3MetadataById:()=>nl,deleteApiV3IndexerById:()=>qB,deleteApiV3IndexerBulk:()=>Fl,deleteApiV3ImportlistById:()=>YB,deleteApiV3ImportlistBulk:()=>sl,deleteApiV3ExclusionsById:()=>kl,deleteApiV3ExclusionsBulk:()=>Hl,deleteApiV3DownloadclientById:()=>MB,deleteApiV3DownloadclientBulk:()=>LB,deleteApiV3DelayprofileById:()=>yl,deleteApiV3CustomformatById:()=>PB,deleteApiV3CustomformatBulk:()=>tB,deleteApiV3CustomfilterById:()=>Bl,deleteApiV3CommandById:()=>om,deleteApiV3BlocklistById:()=>BB,deleteApiV3BlocklistBulk:()=>IB,deleteApiV3AutotaggingById:()=>hm});var Fm=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/alttitle",...e}),$m=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/alttitle/{id}",...e}),bm=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),jm=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),Jm=(e)=>(e?.client??G).post({...zy,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),Xm=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),Zm=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...e}),Ym=(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}}),hm=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e}),cm=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e}),Km=(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}}),zm=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/schema",...e}),eB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup",...e}),AB=(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}),aB=(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}),VB=(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}),RB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist",...e}),_m=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/movie",...e}),BB=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/{id}",...e}),IB=(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}}),DB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/calendar",...e}),dB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v3/calendar/radarr.ics",...e}),im=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection",...e}),vm=(e)=>(e?.client??G).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}}),qm=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection/{id}",...e}),nm=(e)=>(e.client??G).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}}),GB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...e}),yB=(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}}),om=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),el=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),Al=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/credit",...e}),al=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/credit/{id}",...e}),Vl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...e}),Rl=(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}}),Bl=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e}),Il=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...e}),Dl=(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}}),gB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...e}),uB=(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}}),PB=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),mB=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),lB=(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}}),tB=(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}}),pB=(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}}),fB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/schema",...e}),CB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/cutoff",...e}),dl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...e}),Gl=(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}}),yl=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),gl=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),ul=(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}}),Pl=(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}),sB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/diskspace",...e}),SB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...e}),xB=(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}}),MB=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),TB=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),rB=(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}}),LB=(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}}),QB=(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}}),NB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/schema",...e}),kB=(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}}),wB=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/testall",...e}),ml=(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}}),ll=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient",...e}),tl=(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}),pl=(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}}),fl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/extrafile",...e}),WB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem",...e}),Cl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/type",...e}),HB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/mediafiles",...e}),OB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/health",...e}),EB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history",...e}),UB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/since",...e}),FB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/movie",...e}),$B=(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}),bB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host",...e}),jB=(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}),JB=(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}}),XB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...e}),ZB=(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}}),YB=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),hB=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),cB=(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}}),sl=(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}}),Sl=(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}}),KB=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/schema",...e}),zB=(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}}),_B=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/testall",...e}),xl=(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}}),Ml=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist",...e}),Tl=(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}),rl=(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}}),Ll=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions",...e}),Ql=(e)=>(e?.client??G).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}}),Nl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/paged",...e}),kl=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/{id}",...e}),wl=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/{id}",...e}),Wl=(e)=>(e.client??G).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}}),Hl=(e)=>(e?.client??G).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}}),Ol=(e)=>(e?.client??G).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}}),El=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/movie",...e}),Ul=(e)=>(e?.client??G).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??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...e}),vB=(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}}),qB=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),nB=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),oB=(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}}),Fl=(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}}),$l=(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}}),e1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/schema",...e}),A1=(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}}),a1=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/testall",...e}),bl=(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}}),jl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer",...e}),Jl=(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}),Xl=(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}}),Zl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexerflag",...e}),Yl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language",...e}),hl=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language/{id}",...e}),cl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization",...e}),Kl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization/language",...e}),V1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log",...e}),R1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file",...e}),B1=(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}),zl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...e}),_l=(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}}),il=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/mediacover/{movieId}/{filename}",...e}),I1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement",...e}),D1=(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}),d1=(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}}),vl=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...e}),ql=(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}}),nl=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),ol=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),et=(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}}),At=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/schema",...e}),at=(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}}),Vt=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/testall",...e}),Rt=(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}}),Bt=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/metadata",...e}),It=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/metadata/{id}",...e}),Dt=(e)=>(e.client??G).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}}),G1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/missing",...e}),y1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie",...e}),g1=(e)=>(e?.client??G).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}}),u1=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}",...e}),P1=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}",...e}),m1=(e)=>(e.client??G).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}}),dt=(e)=>(e?.client??G).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}}),Gt=(e)=>(e?.client??G).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}}),yt=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile",...e}),gt=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/{id}",...e}),ut=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/{id}",...e}),Pt=(e)=>(e.client??G).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}}),mt=(e)=>(e?.client??G).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}}),lt=(e)=>(e?.client??G).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}}),tt=(e)=>(e?.client??G).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}}),pt=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}/folder",...e}),l1=(e)=>(e?.client??G).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??G).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??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/lookup/imdb",...e}),t1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/lookup",...e}),p1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming",...e}),f1=(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}),C1=(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}}),s1=(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}),S1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...e}),x1=(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}}),M1=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),T1=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),r1=(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}}),L1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/schema",...e}),Q1=(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}}),N1=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/testall",...e}),ft=(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}}),Ct=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/parse",...e}),st=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),St=(e)=>(e?.client??G).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),xt=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...e}),Mt=(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}}),Tt=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition",...e}),rt=(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}}),Lt=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/limits",...e}),k1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...e}),w1=(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}}),W1=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),H1=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),O1=(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}}),E1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/schema",...e}),U1=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/{id}",...e}),F1=(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}}),$1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue",...e}),b1=(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}),j1=(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}}),J1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/details",...e}),X1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/status",...e}),Qt=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release",...e}),Nt=(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}}),kt=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile",...e}),wt=(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}}),Wt=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),Ht=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),Ot=(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}}),Et=(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}}),Ut=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...e}),Ft=(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}}),$t=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e}),bt=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e}),jt=(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}}),Jt=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rename",...e}),Z1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...e}),Y1=(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}}),h1=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),Xt=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),Zt=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),Yt=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),ht=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),c1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/status",...e}),ct=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes",...e}),Kt=(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}),K1=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/shutdown",...e}),z1=(e)=>(e?.client??G).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/restart",...e}),_1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...e}),i1=(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}}),v1=(e)=>(e.client??G).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),q1=(e)=>(e.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),n1=(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}}),o1=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail",...e}),eI=(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}),zt=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task",...e}),_t=(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}),AI=(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}),aI=(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}}),VI=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui",...e}),it=(e)=>(e?.client??G).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/update",...e}),vt=(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}),qt=(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 nt{clientConfig;constructor(e){this.clientConfig=E(e),G.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return c1()}async getHealth(){return OB()}async getMovies(){return y1()}async getMovie(e){return P1({path:{id:e}})}async addMovie(e){return g1({body:e})}async updateMovie(e,A){return m1({path:{id:String(e)},body:A})}async deleteMovie(e,A){return u1({path:{id:e},...A?{query:A}:{}})}async searchMovies(e){return t1({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 yB({body:e})}async getCommands(){return GB()}async getRootFolders(){return Z1()}async addRootFolder(e){return Y1({body:{path:e}})}async deleteRootFolder(e){return h1({path:{id:e}})}async getFilesystem(e){return WB(e?{query:{path:e}}:{})}async getMediaFiles(e){return HB({query:{path:e}})}async importMovies(e){return l1({body:e})}async getQualityProfiles(){return k1()}async getQualityProfile(e){return H1({path:{id:e}})}async addQualityProfile(e){return w1({body:e})}async updateQualityProfile(e,A){return O1({path:{id:String(e)},body:A})}async deleteQualityProfile(e){return W1({path:{id:e}})}async getQualityProfileSchema(){return E1()}async getCustomFormats(){return gB()}async getCustomFormat(e){return mB({path:{id:e}})}async addCustomFormat(e){return uB({body:e})}async updateCustomFormat(e,A){return lB({path:{id:String(e)},body:A})}async deleteCustomFormat(e){return PB({path:{id:e}})}async updateCustomFormatsBulk(e){return pB({body:e})}async deleteCustomFormatsBulk(e){return tB({body:{ids:e}})}async getCustomFormatSchema(){return fB()}async getDownloadClients(){return SB()}async getDownloadClient(e){return TB({path:{id:e}})}async addDownloadClient(e){return xB({body:e})}async updateDownloadClient(e,A){return rB({path:{id:e},body:A})}async deleteDownloadClient(e){return MB({path:{id:e}})}async updateDownloadClientsBulk(e){return QB({body:e})}async deleteDownloadClientsBulk(e){return LB({body:{ids:e}})}async getDownloadClientSchema(){return NB()}async testDownloadClient(e){return kB({body:e})}async testAllDownloadClients(){return wB()}async getNotifications(){return S1()}async getNotification(e){return T1({path:{id:e}})}async addNotification(e){return x1({body:e})}async updateNotification(e,A){return r1({path:{id:e},body:A})}async deleteNotification(e){return M1({path:{id:e}})}async getNotificationSchema(){return L1()}async testNotification(e){return Q1({body:e})}async testAllNotifications(){return N1()}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 DB(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 dB(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 $1(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 U1({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 F1({body:V})}async grabQueueItem(e){return b1({path:{id:e}})}async grabQueueItemsBulk(e){return j1({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.movieId=e;if(A!==void 0)a.includeMovie=A;return J1(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return X1()}async getImportLists(){return XB()}async getImportList(e){return hB({path:{id:e}})}async addImportList(e){return ZB({body:e})}async updateImportList(e,A){return cB({path:{id:e},body:A})}async deleteImportList(e){return YB({path:{id:e}})}async getImportListSchema(){return KB()}async testImportList(e){return zB({body:e})}async testAllImportLists(){return _B()}async getIndexers(){return iB()}async getIndexer(e){return nB({path:{id:e}})}async addIndexer(e){return vB({body:e})}async updateIndexer(e,A){return oB({path:{id:e},body:A})}async deleteIndexer(e){return qB({path:{id:e}})}async getIndexerSchema(){return e1()}async testIndexer(e){return A1({body:e})}async testAllIndexers(){return a1()}async getHistory(e,A,a,V,R,D){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(D)B.downloadId=D;return EB(Object.keys(B).length>0?{query:B}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.movieId=A;return UB({query:a})}async getMovieHistory(e,A){let a={movieId:e};if(A!==void 0)a.eventType=A;return FB({query:a})}async markHistoryItemFailed(e){return $B({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 RB(Object.keys(R).length>0?{query:R}:{})}async removeBlocklistItem(e){return BB({path:{id:e}})}async removeBlocklistItemsBulk(e){return IB({body:{ids:e}})}async getWantedMissing(e,A){let a={};if(e!==void 0)a.page=e;if(A!==void 0)a.pageSize=A;return G1(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 CB(Object.keys(a).length>0?{query:a}:{})}async getHostConfig(){return bB()}async getHostConfigById(e){return jB({path:{id:e}})}async updateHostConfig(e,A){return JB({path:{id:String(e)},body:A})}async getNamingConfig(){return p1()}async getNamingConfigById(e){return f1({path:{id:e}})}async updateNamingConfig(e,A){return C1({path:{id:String(e)},body:A})}async getNamingConfigExamples(){return s1()}async getMediaManagementConfig(){return I1()}async getMediaManagementConfigById(e){return D1({path:{id:e}})}async updateMediaManagementConfig(e,A){return d1({path:{id:String(e)},body:A})}async getUiConfig(){return VI()}async getUiConfigById(e){return AI({path:{id:e}})}async updateUiConfig(e,A){return aI({path:{id:String(e)},body:A})}async restartSystem(){return z1()}async shutdownSystem(){return K1()}async getSystemBackups(){return eB()}async deleteSystemBackup(e){return AB({path:{id:e}})}async restoreSystemBackup(e){return aB({path:{id:e}})}async uploadSystemBackup(){return VB()}async getSystemLogs(){return V1()}async getLogFiles(){return R1()}async getLogFileByName(e){return B1({path:{filename:e}})}async getDiskSpace(){return sB()}async getTags(){return _1()}async addTag(e){return i1({body:e})}async getTag(e){return q1({path:{id:e}})}async updateTag(e,A){return n1({path:{id:String(e)},body:A})}async deleteTag(e){return v1({path:{id:e}})}async getTagDetails(){return o1()}async getTagDetailById(e){return eI({path:{id: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 ot=(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 e3={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)=>ot(A,a,R));else ot(A,a,V)}),A}},A3={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var ep=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:D,sseMaxRetryAttempts:B,sseMaxRetryDelay:d,sseSleepFn:u,url:S,...l})=>{let I,M=u??((L)=>new Promise((m)=>setTimeout(m,L)));return{stream:async function*(){let L=D??3000,m=0,x=l.signal??new AbortController().signal;while(!0){if(x.aborted)break;m++;let W=l.headers instanceof Headers?l.headers:new Headers(l.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...l,body:l.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let t=await(l.fetch??globalThis.fetch)(N);if(!t.ok)throw Error(`SSE failed: ${t.status} ${t.statusText}`);if(!t.body)throw Error("No body in SSE response");let C=t.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:"))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,`
30
+ `),O=[],$;for(let r of h)if(r.startsWith("data:"))O.push(r.replace(/^data:\s*/,""));else if(r.startsWith("event:"))$=r.replace(/^event:\s*/,"");else if(r.startsWith("id:"))I=r.replace(/^id:\s*/,"");else if(r.startsWith("retry:")){let j=Number.parseInt(r.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let r=O.join(`
31
+ `);try{k=JSON.parse(r),b=!0}catch{k=r}}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&&m>=B)break;let N=Math.min(L*2**(m-1),d??30000);await M(N)}}}()}};var Lx=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Qx=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Nx=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},RI=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let d=(e?R:R.map((u)=>encodeURIComponent(u))).join(Qx(V));switch(V){case"label":return`.${d}`;case"matrix":return`;${a}=${d}`;case"simple":return d;default:return`${a}=${d}`}}let D=Lx(V),B=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+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)}`},BI=({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(([l,I])=>{u=[...u,l,e?I:encodeURIComponent(I)]});let S=u.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let B=Nx(V),d=Object.entries(R).map(([u,S])=>v({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(B);return V==="label"||V==="matrix"?B+d:d};var kx=/\{[^{}]+\}/g,wx=({path:e,url:A})=>{let a=A,V=A.match(kx);if(V)for(let R of V){let D=!1,B=R.substring(1,R.length-1),d="simple";if(B.endsWith("*"))D=!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 u=e[B];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,RI({explode:D,name:B,style:d,value:u}));continue}if(typeof u==="object"){a=a.replace(R,BI({explode:D,name:B,style:d,value:u,valueOnly:!0}));continue}if(d==="matrix"){a=a.replace(R,`;${v({name:B,value:u})}`);continue}let S=encodeURIComponent(d==="label"?`.${u}`:u);a=a.replace(R,S)}return a},Ap=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let D=R.startsWith("/")?R:`/${R}`,B=(e??"")+D;if(A)B=wx({path:A,url:B});let d=a?V(a):"";if(d.startsWith("?"))d=d.substring(1);if(d)B+=`?${d}`;return B};function a3(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 ap=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 Vp=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let D in V){let B=V[D];if(B===void 0||B===null)continue;let d=e[D]||A;if(Array.isArray(B)){let u=RI({allowReserved:d.allowReserved,explode:!0,name:D,style:"form",value:B,...d.array});if(u)R.push(u)}else if(typeof B==="object"){let u=BI({allowReserved:d.allowReserved,explode:!0,name:D,style:"deepObject",value:B,...d.object});if(u)R.push(u)}else{let u=v({allowReserved:d.allowReserved,name:D,value:B});if(u)R.push(u)}}return R.join("&")}},Rp=(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},Bp=async({security:e,...A})=>{for(let a of e){if(Wx(A,a.name))continue;let V=await ap(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}}},V3=(e)=>Ap({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:Vp(e.querySerializer),url:e.url}),R3=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=DI(e.headers,A.headers),a},Hx=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},DI=(...e)=>{let A=new Headers;for(let a of e){if(!a)continue;let V=a instanceof Headers?Hx(a):Object.entries(a);for(let[R,D]of V)if(D===null)A.delete(R);else if(Array.isArray(D))for(let B of D)A.append(R,B);else if(D!==void 0)A.set(R,typeof D==="object"?JSON.stringify(D):D)}return A};class II{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 Ip=()=>({error:new II,request:new II,response:new II}),Ox=Vp({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Ex={"Content-Type":"application/json"},De=(e={})=>({...A3,headers:Ex,parseAs:"auto",querySerializer:Ox,...e});var B3=(e={})=>{let A=R3(De(),e),a=()=>({...A}),V=(l)=>{return A=R3(A,l),a()},R=Ip(),D=async(l)=>{let I={...A,...l,fetch:l.fetch??A.fetch??globalThis.fetch,headers:DI(A.headers,l.headers),serializedBody:void 0};if(I.security)await Bp({...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 M=V3(I);return{opts:I,url:M}},B=async(l)=>{let{opts:I,url:M}=await D(l),H={redirect:"follow",...I,body:a3(I)},T=new Request(M,H);for(let t of R.request.fns)if(t)T=await t(T,I);let L=I.fetch,m;try{m=await L(T)}catch(t){let C=t;for(let f of R.error.fns)if(f)C=await f(t,void 0,T,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:T,response:void 0}}for(let t of R.response.fns)if(t)m=await t(m,T,I);let x={request:T,response:m};if(m.ok){let t=(I.parseAs==="auto"?Rp(m.headers.get("Content-Type")):I.parseAs)??"json";if(m.status===204||m.headers.get("Content-Length")==="0"){let f;switch(t){case"arrayBuffer":case"blob":case"text":f=await m[t]();break;case"formData":f=new FormData;break;case"stream":f=m.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(t){case"arrayBuffer":case"blob":case"formData":case"text":C=await m[t]();break;case"json":{let f=await m.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?m.body:{data:m.body,...x}}if(t==="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 m.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let t of R.error.fns)if(t)w=await t(N,m,T,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},d=(l)=>(I)=>B({...I,method:l}),u=(l)=>async(I)=>{let{opts:M,url:H}=await D(I);return ep({...M,body:M.body,headers:M.headers,method:l,onRequest:async(T,L)=>{let m=new Request(T,L);for(let x of R.request.fns)if(x)m=await x(m,M);return m},serializedBody:a3(M),url:H})};return{buildUrl:(l)=>V3({...A,...l}),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: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=B3(De());var I3={};c(I3,{putApiV1TagById:()=>gd,putApiV1RootfolderById:()=>RC,putApiV1RemotepathmappingById:()=>eC,putApiV1ReleaseprofileById:()=>zf,putApiV1QualityprofileById:()=>KD,putApiV1QualitydefinitionUpdate:()=>Jf,putApiV1QualitydefinitionById:()=>bf,putApiV1NotificationById:()=>bD,putApiV1MetadataprofileById:()=>wf,putApiV1MetadataById:()=>Sf,putApiV1IndexerById:()=>tD,putApiV1IndexerBulk:()=>Rf,putApiV1ImportlistexclusionById:()=>af,putApiV1ImportlistById:()=>dD,putApiV1ImportlistBulk:()=>vp,putApiV1DownloadclientById:()=>KI,putApiV1DownloadclientBulk:()=>Jp,putApiV1DelayprofileReorderById:()=>bp,putApiV1DelayprofileById:()=>$p,putApiV1CustomformatById:()=>UI,putApiV1CustomfilterById:()=>Wp,putApiV1ConfigUiById:()=>ld,putApiV1ConfigNamingById:()=>HD,putApiV1ConfigMetadataproviderById:()=>ND,putApiV1ConfigMediamanagementById:()=>rD,putApiV1ConfigIndexerById:()=>df,putApiV1ConfigHostById:()=>VD,putApiV1ConfigDownloadclientById:()=>hp,putApiV1ConfigDevelopmentById:()=>JI,putApiV1BookfileEditor:()=>Sp,putApiV1BookfileById:()=>sp,putApiV1BookMonitor:()=>mp,putApiV1BookEditor:()=>tp,putApiV1BookById:()=>rI,putApiV1AuthorEditor:()=>up,putApiV1AuthorById:()=>uI,postLogin:()=>Gp,postApiV1Tag:()=>dd,postApiV1SystemShutdown:()=>Bd,postApiV1SystemRestart:()=>Id,postApiV1SystemBackupRestoreUpload:()=>pI,postApiV1SystemBackupRestoreById:()=>tI,postApiV1Rootfolder:()=>ad,postApiV1Remotepathmapping:()=>qf,postApiV1Releaseprofile:()=>hf,postApiV1ReleasePush:()=>_f,postApiV1Release:()=>Zf,postApiV1QueueGrabById:()=>qD,postApiV1QueueGrabBulk:()=>nD,postApiV1Qualityprofile:()=>YD,postApiV1NotificationTestall:()=>XD,postApiV1NotificationTest:()=>JD,postApiV1NotificationActionByName:()=>Of,postApiV1Notification:()=>UD,postApiV1Metadataprofile:()=>Qf,postApiV1MetadataTestall:()=>Tf,postApiV1MetadataTest:()=>Mf,postApiV1MetadataActionByName:()=>rf,postApiV1Metadata:()=>ff,postApiV1Manualimport:()=>mf,postApiV1IndexerTestall:()=>CD,postApiV1IndexerTest:()=>fD,postApiV1IndexerActionByName:()=>Bf,postApiV1Indexer:()=>PD,postApiV1Importlistexclusion:()=>op,postApiV1ImportlistTestall:()=>gD,postApiV1ImportlistTest:()=>yD,postApiV1ImportlistActionByName:()=>qp,postApiV1Importlist:()=>BD,postApiV1HistoryFailedById:()=>eD,postApiV1DownloadclientTestall:()=>iI,postApiV1DownloadclientTest:()=>_I,postApiV1DownloadclientActionByName:()=>Xp,postApiV1Downloadclient:()=>YI,postApiV1Delayprofile:()=>Ep,postApiV1Customformat:()=>HI,postApiV1Customfilter:()=>Np,postApiV1Command:()=>wI,postApiV1Bookshelf:()=>Mp,postApiV1Book:()=>xI,postApiV1Author:()=>GI,headPing:()=>Ff,getPing:()=>Uf,getLogout:()=>yp,getLogin:()=>dp,getFeedV1CalendarReadarrIcs:()=>NI,getContentByPath:()=>DC,getByPath:()=>GC,getApiV1WantedMissingById:()=>Hf,getApiV1WantedMissing:()=>kD,getApiV1WantedCutoffById:()=>Hp,getApiV1WantedCutoff:()=>$I,getApiV1Update:()=>mC,getApiV1TagDetailById:()=>Pd,getApiV1TagDetail:()=>ud,getApiV1TagById:()=>yd,getApiV1Tag:()=>Dd,getApiV1SystemTaskById:()=>PC,getApiV1SystemTask:()=>uC,getApiV1SystemStatus:()=>Rd,getApiV1SystemRoutesDuplicate:()=>gC,getApiV1SystemRoutes:()=>yC,getApiV1SystemBackup:()=>mI,getApiV1Series:()=>IC,getApiV1Search:()=>BC,getApiV1RootfolderById:()=>VC,getApiV1Rootfolder:()=>Ad,getApiV1Retag:()=>aC,getApiV1Rename:()=>AC,getApiV1RemotepathmappingById:()=>of,getApiV1Remotepathmapping:()=>vf,getApiV1ReleaseprofileById:()=>Kf,getApiV1Releaseprofile:()=>Yf,getApiV1Release:()=>Xf,getApiV1QueueStatus:()=>ed,getApiV1QueueDetails:()=>oD,getApiV1Queue:()=>vD,getApiV1QualityprofileSchema:()=>zD,getApiV1QualityprofileById:()=>cD,getApiV1Qualityprofile:()=>ZD,getApiV1QualitydefinitionById:()=>$f,getApiV1Qualitydefinition:()=>jf,getApiV1Parse:()=>Ef,getApiV1NotificationSchema:()=>jD,getApiV1NotificationById:()=>$D,getApiV1Notification:()=>ED,getApiV1MetadataprofileSchema:()=>Wf,getApiV1MetadataprofileById:()=>kf,getApiV1Metadataprofile:()=>Lf,getApiV1MetadataSchema:()=>xf,getApiV1MetadataById:()=>sf,getApiV1Metadata:()=>pf,getApiV1MediacoverBookByBookIdByFilename:()=>tf,getApiV1MediacoverAuthorByAuthorIdByFilename:()=>lf,getApiV1Manualimport:()=>Pf,getApiV1LogFileUpdateByFilename:()=>tC,getApiV1LogFileUpdate:()=>lC,getApiV1LogFileByFilename:()=>xD,getApiV1LogFile:()=>SD,getApiV1Log:()=>sD,getApiV1Localization:()=>uf,getApiV1LanguageById:()=>gf,getApiV1Language:()=>yf,getApiV1Indexerflag:()=>Gf,getApiV1IndexerSchema:()=>pD,getApiV1IndexerById:()=>lD,getApiV1Indexer:()=>uD,getApiV1ImportlistexclusionById:()=>Af,getApiV1Importlistexclusion:()=>np,getApiV1ImportlistSchema:()=>GD,getApiV1ImportlistById:()=>DD,getApiV1Importlist:()=>RD,getApiV1HistorySince:()=>nI,getApiV1HistoryAuthor:()=>oI,getApiV1History:()=>qI,getApiV1Health:()=>vI,getApiV1FilesystemType:()=>zp,getApiV1FilesystemMediafiles:()=>_p,getApiV1Filesystem:()=>Kp,getApiV1Edition:()=>cp,getApiV1DownloadclientSchema:()=>zI,getApiV1DownloadclientById:()=>cI,getApiV1Downloadclient:()=>ZI,getApiV1Diskspace:()=>XI,getApiV1DelayprofileById:()=>Fp,getApiV1Delayprofile:()=>Op,getApiV1CustomformatSchema:()=>FI,getApiV1CustomformatById:()=>EI,getApiV1Customformat:()=>WI,getApiV1CustomfilterById:()=>wp,getApiV1Customfilter:()=>Qp,getApiV1ConfigUiById:()=>md,getApiV1ConfigUi:()=>td,getApiV1ConfigNamingExamples:()=>OD,getApiV1ConfigNamingById:()=>WD,getApiV1ConfigNaming:()=>wD,getApiV1ConfigMetadataproviderById:()=>QD,getApiV1ConfigMetadataprovider:()=>LD,getApiV1ConfigMediamanagementById:()=>TD,getApiV1ConfigMediamanagement:()=>MD,getApiV1ConfigIndexerById:()=>Df,getApiV1ConfigIndexer:()=>If,getApiV1ConfigHostById:()=>aD,getApiV1ConfigHost:()=>AD,getApiV1ConfigDownloadclientById:()=>Yp,getApiV1ConfigDownloadclient:()=>Zp,getApiV1ConfigDevelopmentById:()=>jI,getApiV1ConfigDevelopment:()=>bI,getApiV1CommandById:()=>Lp,getApiV1Command:()=>kI,getApiV1CalendarById:()=>Tp,getApiV1Calendar:()=>QI,getApiV1BookfileById:()=>Cp,getApiV1Bookfile:()=>pp,getApiV1BookLookup:()=>LI,getApiV1BookByIdOverview:()=>Pp,getApiV1BookById:()=>TI,getApiV1Book:()=>SI,getApiV1Blocklist:()=>fI,getApiV1AuthorLookup:()=>PI,getApiV1AuthorById:()=>gI,getApiV1Author:()=>dI,getApi:()=>Dp,get:()=>dC,deleteApiV1TagById:()=>Gd,deleteApiV1SystemBackupById:()=>lI,deleteApiV1RootfolderById:()=>Vd,deleteApiV1RemotepathmappingById:()=>nf,deleteApiV1ReleaseprofileById:()=>cf,deleteApiV1QueueById:()=>_D,deleteApiV1QueueBulk:()=>iD,deleteApiV1QualityprofileById:()=>hD,deleteApiV1NotificationById:()=>FD,deleteApiV1MetadataprofileById:()=>Nf,deleteApiV1MetadataById:()=>Cf,deleteApiV1IndexerById:()=>mD,deleteApiV1IndexerBulk:()=>Vf,deleteApiV1ImportlistexclusionById:()=>ef,deleteApiV1ImportlistById:()=>ID,deleteApiV1ImportlistBulk:()=>ip,deleteApiV1DownloadclientById:()=>hI,deleteApiV1DownloadclientBulk:()=>jp,deleteApiV1DelayprofileById:()=>Up,deleteApiV1CustomformatById:()=>OI,deleteApiV1CustomfilterById:()=>kp,deleteApiV1CommandById:()=>rp,deleteApiV1BookfileById:()=>fp,deleteApiV1BookfileBulk:()=>xp,deleteApiV1BookEditor:()=>lp,deleteApiV1BookById:()=>MI,deleteApiV1BlocklistById:()=>CI,deleteApiV1BlocklistBulk:()=>sI,deleteApiV1AuthorEditor:()=>gp,deleteApiV1AuthorById:()=>yI});var Dp=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),dp=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),Gp=(e)=>(e?.client??P).post({...e3,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),yp=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),dI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author",...e}),GI=(e)=>(e?.client??P).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}}),yI=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/{id}",...e}),gI=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/{id}",...e}),uI=(e)=>(e.client??P).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}}),gp=(e)=>(e?.client??P).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}}),up=(e)=>(e?.client??P).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}}),PI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/lookup",...e}),mI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup",...e}),lI=(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}),tI=(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}),pI=(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}),fI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist",...e}),CI=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/{id}",...e}),sI=(e)=>(e?.client??P).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}}),SI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book",...e}),xI=(e)=>(e?.client??P).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}}),Pp=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}/overview",...e}),MI=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}",...e}),TI=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}",...e}),rI=(e)=>(e.client??P).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}}),mp=(e)=>(e?.client??P).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}}),lp=(e)=>(e?.client??P).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}}),tp=(e)=>(e?.client??P).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}}),pp=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile",...e}),fp=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/{id}",...e}),Cp=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/{id}",...e}),sp=(e)=>(e.client??P).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}}),Sp=(e)=>(e?.client??P).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}}),xp=(e)=>(e?.client??P).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}}),LI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/lookup",...e}),Mp=(e)=>(e?.client??P).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}}),QI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar",...e}),Tp=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar/{id}",...e}),NI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v1/calendar/readarr.ics",...e}),kI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...e}),wI=(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}}),rp=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),Lp=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...e}),Qp=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...e}),Np=(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}}),kp=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),wp=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...e}),Wp=(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}}),WI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...e}),HI=(e)=>(e?.client??P).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}}),OI=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e}),EI=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...e}),UI=(e)=>(e.client??P).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}}),FI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/schema",...e}),$I=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff",...e}),Hp=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff/{id}",...e}),Op=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...e}),Ep=(e)=>(e?.client??P).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}}),Up=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),Fp=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...e}),$p=(e)=>(e.client??P).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}}),bp=(e)=>(e.client??P).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/reorder/{id}",...e}),bI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development",...e}),jI=(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}),JI=(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}}),XI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/diskspace",...e}),ZI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...e}),YI=(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}}),hI=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),cI=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...e}),KI=(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}}),jp=(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}}),Jp=(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}}),zI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...e}),_I=(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}}),iI=(e)=>(e?.client??P).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...e}),Xp=(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}}),Zp=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...e}),Yp=(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}),hp=(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}}),cp=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/edition",...e}),Kp=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...e}),zp=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...e}),_p=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/mediafiles",...e}),vI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...e}),qI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...e}),nI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...e}),oI=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/author",...e}),eD=(e)=>(e.client??P).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/failed/{id}",...e}),AD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host",...e}),aD=(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}),VD=(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}}),RD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...e}),BD=(e)=>(e?.client??P).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}}),ID=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),DD=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...e}),dD=(e)=>(e.client??P).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??P).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}}),vp=(e)=>(e?.client??P).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}}),GD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/schema",...e}),yD=(e)=>(e?.client??P).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}}),gD=(e)=>(e?.client??P).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/testall",...e}),qp=(e)=>(e.client??P).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}}),np=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...e}),op=(e)=>(e?.client??P).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}}),ef=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),Af=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...e}),af=(e)=>(e.client??P).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}}),uD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...e}),PD=(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}}),mD=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),lD=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...e}),tD=(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}}),Vf=(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}}),Rf=(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}}),pD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...e}),fD=(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}}),CD=(e)=>(e?.client??P).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...e}),Bf=(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}}),If=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer",...e}),Df=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...e}),df=(e)=>(e.client??P).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}}),Gf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerflag",...e}),yf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language",...e}),gf=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language/{id}",...e}),uf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization",...e}),sD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log",...e}),SD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...e}),xD=(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}),Pf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...e}),mf=(e)=>(e?.client??P).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}}),lf=(e)=>(e.client??P).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??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/book/{bookId}/{filename}",...e}),MD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement",...e}),TD=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...e}),rD=(e)=>(e.client??P).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??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...e}),ff=(e)=>(e?.client??P).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}}),Cf=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),sf=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...e}),Sf=(e)=>(e.client??P).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}}),xf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/schema",...e}),Mf=(e)=>(e?.client??P).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}}),Tf=(e)=>(e?.client??P).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/testall",...e}),rf=(e)=>(e.client??P).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}}),Lf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...e}),Qf=(e)=>(e?.client??P).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}}),Nf=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),kf=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...e}),wf=(e)=>(e.client??P).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}}),Wf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/schema",...e}),LD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider",...e}),QD=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...e}),ND=(e)=>(e.client??P).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}}),kD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing",...e}),Hf=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing/{id}",...e}),wD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming",...e}),WD=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...e}),HD=(e)=>(e.client??P).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}}),OD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/examples",...e}),ED=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...e}),UD=(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}}),FD=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),$D=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...e}),bD=(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}}),jD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...e}),JD=(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}}),XD=(e)=>(e?.client??P).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...e}),Of=(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}}),Ef=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/parse",...e}),Uf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),Ff=(e)=>(e?.client??P).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),$f=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...e}),bf=(e)=>(e.client??P).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}}),jf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition",...e}),Jf=(e)=>(e?.client??P).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}}),ZD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...e}),YD=(e)=>(e?.client??P).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}}),hD=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),cD=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...e}),KD=(e)=>(e.client??P).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}}),zD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/schema",...e}),_D=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/{id}",...e}),iD=(e)=>(e?.client??P).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}}),vD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue",...e}),qD=(e)=>(e.client??P).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/{id}",...e}),nD=(e)=>(e?.client??P).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}}),oD=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/details",...e}),ed=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/status",...e}),Xf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...e}),Zf=(e)=>(e?.client??P).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}}),Yf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...e}),hf=(e)=>(e?.client??P).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}}),cf=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e}),Kf=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...e}),zf=(e)=>(e.client??P).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}}),_f=(e)=>(e?.client??P).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}}),vf=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...e}),qf=(e)=>(e?.client??P).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}}),nf=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),of=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...e}),eC=(e)=>(e.client??P).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}}),AC=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rename",...e}),aC=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/retag",...e}),Ad=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...e}),ad=(e)=>(e?.client??P).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}}),Vd=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),VC=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...e}),RC=(e)=>(e.client??P).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}}),BC=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...e}),IC=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/series",...e}),DC=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),dC=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),GC=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...e}),Rd=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...e}),yC=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...e}),gC=(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}),Bd=(e)=>(e?.client??P).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/shutdown",...e}),Id=(e)=>(e?.client??P).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...e}),Dd=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...e}),dd=(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}}),Gd=(e)=>(e.client??P).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),yd=(e)=>(e.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...e}),gd=(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}}),ud=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail",...e}),Pd=(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}),uC=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task",...e}),PC=(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}),md=(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}),ld=(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}}),td=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui",...e}),mC=(e)=>(e?.client??P).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...e}),lC=(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}),tC=(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 pC{clientConfig;constructor(e){this.clientConfig=E(e),P.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return Rd()}async getHealth(){return vI()}async getAuthors(){return dI()}async getAuthor(e){return gI({path:{id:e}})}async addAuthor(e){return GI({body:e})}async updateAuthor(e,A){return uI({path:{id:String(e)},body:A})}async deleteAuthor(e){return yI({path:{id:e}})}async getBooks(){return SI()}async getBook(e){return TI({path:{id:e}})}async searchAuthors(e){return PI({query:{term:e}})}async runCommand(e){return wI({body:e})}async getCommands(){return kI()}async getRootFolders(){return Ad()}async addRootFolder(e){return ad({body:{path:e}})}async deleteRootFolder(e){return Vd({path:{id:e}})}async getHostConfig(){return AD()}async getHostConfigById(e){return aD({path:{id:e}})}async updateHostConfig(e,A){return VD({path:{id:String(e)},body:A})}async getNamingConfig(){return wD()}async getNamingConfigById(e){return WD({path:{id:e}})}async updateNamingConfig(e,A){return HD({path:{id:String(e)},body:A})}async getNamingConfigExamples(){return OD()}async getMediaManagementConfig(){return MD()}async getMediaManagementConfigById(e){return TD({path:{id:e}})}async updateMediaManagementConfig(e,A){return rD({path:{id:String(e)},body:A})}async getUiConfig(){return td()}async getUiConfigById(e){return md({path:{id:e}})}async updateUiConfig(e,A){return ld({path:{id:String(e)},body:A})}async getDevelopmentConfig(){return bI()}async getDevelopmentConfigById(e){return jI({path:{id:e}})}async updateDevelopmentConfig(e,A){return JI({path:{id:String(e)},body:A})}async getMetadataProviderConfig(){return LD()}async getMetadataProviderConfigById(e){return QD({path:{id:e}})}async updateMetadataProviderConfig(e,A){return ND({path:{id:String(e)},body:A})}async restartSystem(){return Id()}async shutdownSystem(){return Bd()}async getSystemBackups(){return mI()}async deleteSystemBackup(e){return lI({path:{id:e}})}async restoreSystemBackup(e){return tI({path:{id:e}})}async uploadSystemBackup(){return pI()}async getSystemLogs(){return sD()}async getLogFiles(){return SD()}async getLogFileByName(e){return xD({path:{filename:e}})}async getDiskSpace(){return XI()}async getTags(){return Dd()}async addTag(e){return dd({body:e})}async getTag(e){return yd({path:{id:e}})}async updateTag(e,A){return gd({path:{id:String(e)},body:A})}async deleteTag(e){return Gd({path:{id:e}})}async getTagDetails(){return ud()}async getTagDetailById(e){return Pd({path:{id:e}})}async addBook(e){return xI({body:e})}async updateBook(e,A){return rI({path:{id:String(e)},body:A})}async deleteBook(e){return MI({path:{id:e}})}async searchBooks(e){return LI({query:{term:e}})}async getCalendar(e,A,a){let V={includeAuthor:!0};if(e)V.start=e;if(A)V.end=A;if(a!==void 0)V.unmonitored=a;return QI(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.tagList=a;return NI(Object.keys(V).length>0?{query:V}:{})}async getQualityProfiles(){return ZD()}async getQualityProfile(e){return cD({path:{id:e}})}async addQualityProfile(e){return YD({body:e})}async updateQualityProfile(e,A){return KD({path:{id:String(e)},body:A})}async deleteQualityProfile(e){return hD({path:{id:e}})}async getQualityProfileSchema(){return zD()}async getCustomFormats(){return WI()}async getCustomFormat(e){return EI({path:{id:e}})}async addCustomFormat(e){return HI({body:e})}async updateCustomFormat(e,A){return UI({path:{id:String(e)},body:A})}async deleteCustomFormat(e){return OI({path:{id:e}})}async getCustomFormatSchema(){return FI()}async getDownloadClients(){return ZI()}async getDownloadClient(e){return cI({path:{id:e}})}async addDownloadClient(e){return YI({body:e})}async updateDownloadClient(e,A){return KI({path:{id:String(e)},body:A})}async deleteDownloadClient(e){return hI({path:{id:e}})}async getDownloadClientSchema(){return zI()}async testDownloadClient(e){return _I({body:e})}async testAllDownloadClients(){return iI()}async getIndexers(){return uD()}async getIndexer(e){return lD({path:{id:e}})}async addIndexer(e){return PD({body:e})}async updateIndexer(e,A){return tD({path:{id:String(e)},body:A})}async deleteIndexer(e){return mD({path:{id:e}})}async getIndexerSchema(){return pD()}async testIndexer(e){return fD({body:e})}async testAllIndexers(){return CD()}async getImportLists(){return RD()}async getImportList(e){return DD({path:{id:e}})}async addImportList(e){return BD({body:e})}async updateImportList(e,A){return dD({path:{id:String(e)},body:A})}async deleteImportList(e){return ID({path:{id:e}})}async getImportListSchema(){return GD()}async testImportList(e){return yD({body:e})}async testAllImportLists(){return gD()}async getNotifications(){return ED()}async getNotification(e){return $D({path:{id:e}})}async addNotification(e){return UD({body:e})}async updateNotification(e,A){return bD({path:{id:String(e)},body:A})}async deleteNotification(e){return FD({path:{id:e}})}async getNotificationSchema(){return jD()}async testNotification(e){return JD({body:e})}async testAllNotifications(){return XD()}async getHistory(e,A,a,V,R,D){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(D)B.downloadId=D;return qI(Object.keys(B).length>0?{query:B}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.authorId=A;return nI({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 oI({query:V})}async markHistoryItemFailed(e){return eD({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 vD(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 _D({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 iD({body:{ids:e},...Object.keys(V).length>0?{query:V}:{}})}async grabQueueItem(e){return qD({path:{id:e}})}async grabQueueItemsBulk(e){return nD({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.authorId=e;if(A!==void 0)a.includeUnknownAuthorItems=A;return oD(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return ed()}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 fI(Object.keys(R).length>0?{query:R}:{})}async removeBlocklistItem(e){return CI({path:{id:e}})}async removeBlocklistItemsBulk(e){return sI({body:{ids:e}})}async getWantedMissing(e,A,a,V,R){let D={includeAuthor:!0};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.monitored=R;return kD(Object.keys(D).length>0?{query:D}:{})}async getWantedCutoff(e,A,a,V,R){let D={includeAuthor:!0};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.monitored=R;return $I(Object.keys(D).length>0?{query:D}:{})}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 fC=(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 D3={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)=>fC(A,a,R));else fC(A,a,V)}),A}},d3={bodySerializer:(e)=>JSON.stringify(e,(A,a)=>typeof a==="bigint"?a.toString():a)};var CC=({onRequest:e,onSseError:A,onSseEvent:a,responseTransformer:V,responseValidator:R,sseDefaultRetryDelay:D,sseMaxRetryAttempts:B,sseMaxRetryDelay:d,sseSleepFn:u,url:S,...l})=>{let I,M=u??((L)=>new Promise((m)=>setTimeout(m,L)));return{stream:async function*(){let L=D??3000,m=0,x=l.signal??new AbortController().signal;while(!0){if(x.aborted)break;m++;let W=l.headers instanceof Headers?l.headers:new Headers(l.headers);if(I!==void 0)W.set("Last-Event-ID",I);try{let Q={redirect:"follow",...l,body:l.serializedBody,headers:W,signal:x},N=new Request(S,Q);if(e)N=await e(S,Q);let t=await(l.fetch??globalThis.fetch)(N);if(!t.ok)throw Error(`SSE failed: ${t.status} ${t.statusText}`);if(!t.body)throw Error("No body in SSE response");let C=t.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:"))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};
36
+ `),O=[],$;for(let r of h)if(r.startsWith("data:"))O.push(r.replace(/^data:\s*/,""));else if(r.startsWith("event:"))$=r.replace(/^event:\s*/,"");else if(r.startsWith("id:"))I=r.replace(/^id:\s*/,"");else if(r.startsWith("retry:")){let j=Number.parseInt(r.replace(/^retry:\s*/,""),10);if(!Number.isNaN(j))L=j}let k,b=!1;if(O.length){let r=O.join(`
37
+ `);try{k=JSON.parse(r),b=!0}catch{k=r}}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&&m>=B)break;let N=Math.min(L*2**(m-1),d??30000);await M(N)}}}()}};var Ux=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Fx=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},$x=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},pd=({allowReserved:e,explode:A,name:a,style:V,value:R})=>{if(!A){let d=(e?R:R.map((u)=>encodeURIComponent(u))).join(Fx(V));switch(V){case"label":return`.${d}`;case"matrix":return`;${a}=${d}`;case"simple":return d;default:return`${a}=${d}`}}let D=Ux(V),B=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+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)}`},fd=({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(([l,I])=>{u=[...u,l,e?I:encodeURIComponent(I)]});let S=u.join(",");switch(V){case"form":return`${a}=${S}`;case"label":return`.${S}`;case"matrix":return`;${a}=${S}`;default:return S}}let B=$x(V),d=Object.entries(R).map(([u,S])=>q({allowReserved:e,name:V==="deepObject"?`${a}[${u}]`:u,value:S})).join(B);return V==="label"||V==="matrix"?B+d:d};var bx=/\{[^{}]+\}/g,jx=({path:e,url:A})=>{let a=A,V=A.match(bx);if(V)for(let R of V){let D=!1,B=R.substring(1,R.length-1),d="simple";if(B.endsWith("*"))D=!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 u=e[B];if(u===void 0||u===null)continue;if(Array.isArray(u)){a=a.replace(R,pd({explode:D,name:B,style:d,value:u}));continue}if(typeof u==="object"){a=a.replace(R,fd({explode:D,name:B,style:d,value:u,valueOnly:!0}));continue}if(d==="matrix"){a=a.replace(R,`;${q({name:B,value:u})}`);continue}let S=encodeURIComponent(d==="label"?`.${u}`:u);a=a.replace(R,S)}return a},sC=({baseUrl:e,path:A,query:a,querySerializer:V,url:R})=>{let D=R.startsWith("/")?R:`/${R}`,B=(e??"")+D;if(A)B=jx({path:A,url:B});let d=a?V(a):"";if(d.startsWith("?"))d=d.substring(1);if(d)B+=`?${d}`;return B};function G3(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 xC=({parameters:e={},...A}={})=>{return(V)=>{let R=[];if(V&&typeof V==="object")for(let D in V){let B=V[D];if(B===void 0||B===null)continue;let d=e[D]||A;if(Array.isArray(B)){let u=pd({allowReserved:d.allowReserved,explode:!0,name:D,style:"form",value:B,...d.array});if(u)R.push(u)}else if(typeof B==="object"){let u=fd({allowReserved:d.allowReserved,explode:!0,name:D,style:"deepObject",value:B,...d.object});if(u)R.push(u)}else{let u=q({allowReserved:d.allowReserved,name:D,value:B});if(u)R.push(u)}}return R.join("&")}},MC=(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},TC=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}}},y3=(e)=>sC({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:xC(e.querySerializer),url:e.url}),g3=(e,A)=>{let a={...e,...A};if(a.baseUrl?.endsWith("/"))a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1);return a.headers=sd(e.headers,A.headers),a},Xx=(e)=>{let A=[];return e.forEach((a,V)=>{A.push([V,a])}),A},sd=(...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,D]of V)if(D===null)A.delete(R);else if(Array.isArray(D))for(let B of D)A.append(R,B);else if(D!==void 0)A.set(R,typeof D==="object"?JSON.stringify(D):D)}return A};class Cd{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 rC=()=>({error:new Cd,request:new Cd,response:new Cd}),Zx=xC({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Yx={"Content-Type":"application/json"},de=(e={})=>({...d3,headers:Yx,parseAs:"auto",querySerializer:Zx,...e});var u3=(e={})=>{let A=g3(de(),e),a=()=>({...A}),V=(l)=>{return A=g3(A,l),a()},R=rC(),D=async(l)=>{let I={...A,...l,fetch:l.fetch??A.fetch??globalThis.fetch,headers:sd(A.headers,l.headers),serializedBody:void 0};if(I.security)await TC({...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 M=y3(I);return{opts:I,url:M}},B=async(l)=>{let{opts:I,url:M}=await D(l),H={redirect:"follow",...I,body:G3(I)},T=new Request(M,H);for(let t of R.request.fns)if(t)T=await t(T,I);let L=I.fetch,m;try{m=await L(T)}catch(t){let C=t;for(let f of R.error.fns)if(f)C=await f(t,void 0,T,I);if(C=C||{},I.throwOnError)throw C;return I.responseStyle==="data"?void 0:{error:C,request:T,response:void 0}}for(let t of R.response.fns)if(t)m=await t(m,T,I);let x={request:T,response:m};if(m.ok){let t=(I.parseAs==="auto"?MC(m.headers.get("Content-Type")):I.parseAs)??"json";if(m.status===204||m.headers.get("Content-Length")==="0"){let f;switch(t){case"arrayBuffer":case"blob":case"text":f=await m[t]();break;case"formData":f=new FormData;break;case"stream":f=m.body;break;case"json":default:f={};break}return I.responseStyle==="data"?f:{data:f,...x}}let C;switch(t){case"arrayBuffer":case"blob":case"formData":case"text":C=await m[t]();break;case"json":{let f=await m.text();C=f?JSON.parse(f):{};break}case"stream":return I.responseStyle==="data"?m.body:{data:m.body,...x}}if(t==="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 m.text(),Q;try{Q=JSON.parse(W)}catch{}let N=Q??W,w=N;for(let t of R.error.fns)if(t)w=await t(N,m,T,I);if(w=w||{},I.throwOnError)throw w;return I.responseStyle==="data"?void 0:{error:w,...x}},d=(l)=>(I)=>B({...I,method:l}),u=(l)=>async(I)=>{let{opts:M,url:H}=await D(I);return CC({...M,body:M.body,headers:M.headers,method:l,onRequest:async(T,L)=>{let m=new Request(T,L);for(let x of R.request.fns)if(x)m=await x(m,M);return m},serializedBody:G3(M),url:H})};return{buildUrl:(l)=>y3({...A,...l}),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: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=u3(de());var P3={};c(P3,{putApiV3TagById:()=>Sy,putApiV3SeriesEditor:()=>LS,putApiV3SeriesById:()=>uy,putApiV3RemotepathmappingById:()=>SS,putApiV3ReleaseprofileById:()=>lS,putApiV3QualityprofileById:()=>vG,putApiV3QualitydefinitionUpdate:()=>DS,putApiV3QualitydefinitionById:()=>BS,putApiV3NotificationById:()=>XG,putApiV3MetadataById:()=>is,putApiV3LanguageprofileById:()=>$s,putApiV3IndexerById:()=>xG,putApiV3IndexerBulk:()=>rs,putApiV3ImportlistexclusionById:()=>xs,putApiV3ImportlistById:()=>mG,putApiV3ImportlistBulk:()=>us,putApiV3EpisodefileEditor:()=>Rs,putApiV3EpisodefileById:()=>Vs,putApiV3EpisodefileBulk:()=>Is,putApiV3EpisodeMonitor:()=>oC,putApiV3EpisodeById:()=>aG,putApiV3DownloadclientById:()=>_d,putApiV3DownloadclientBulk:()=>vd,putApiV3DelayprofileReorderById:()=>_C,putApiV3DelayprofileById:()=>zC,putApiV3CustomformatById:()=>bd,putApiV3CustomformatBulk:()=>Jd,putApiV3CustomfilterById:()=>XC,putApiV3ConfigUiById:()=>ry,putApiV3ConfigNamingById:()=>UG,putApiV3ConfigMediamanagementById:()=>WG,putApiV3ConfigIndexerById:()=>ks,putApiV3ConfigImportlistById:()=>ts,putApiV3ConfigHostById:()=>GG,putApiV3ConfigDownloadclientById:()=>nC,putApiV3AutotaggingById:()=>OC,postLogin:()=>QC,postApiV3Tag:()=>fy,postApiV3SystemShutdown:()=>ly,postApiV3SystemRestart:()=>ty,postApiV3SystemBackupRestoreUpload:()=>rd,postApiV3SystemBackupRestoreById:()=>Td,postApiV3SeriesImport:()=>QS,postApiV3Series:()=>Gy,postApiV3Seasonpass:()=>TS,postApiV3Rootfolder:()=>Iy,postApiV3Remotepathmapping:()=>fS,postApiV3Releaseprofile:()=>uS,postApiV3ReleasePush:()=>tS,postApiV3Release:()=>yS,postApiV3QueueGrabById:()=>Ay,postApiV3QueueGrabBulk:()=>ay,postApiV3Qualityprofile:()=>zG,postApiV3NotificationTestall:()=>hG,postApiV3NotificationTest:()=>YG,postApiV3NotificationActionByName:()=>AS,postApiV3Notification:()=>bG,postApiV3MetadataTestall:()=>ns,postApiV3MetadataTest:()=>qs,postApiV3MetadataActionByName:()=>os,postApiV3Metadata:()=>Ks,postApiV3Manualimport:()=>NG,postApiV3Languageprofile:()=>Es,postApiV3IndexerTestall:()=>rG,postApiV3IndexerTest:()=>TG,postApiV3IndexerActionByName:()=>Ls,postApiV3Indexer:()=>CG,postApiV3Importlistexclusion:()=>fs,postApiV3ImportlistTestall:()=>pG,postApiV3ImportlistTest:()=>tG,postApiV3ImportlistActionByName:()=>Ps,postApiV3Importlist:()=>gG,postApiV3HistoryFailedById:()=>IG,postApiV3DownloadclientTestall:()=>od,postApiV3DownloadclientTest:()=>nd,postApiV3DownloadclientActionByName:()=>iC,postApiV3Downloadclient:()=>cd,postApiV3Delayprofile:()=>hC,postApiV3Customformat:()=>Ud,postApiV3Customfilter:()=>bC,postApiV3Command:()=>Hd,postApiV3Autotagging:()=>wC,headPing:()=>VS,getPing:()=>aS,getLogout:()=>NC,getLogin:()=>LC,getFeedV3CalendarSonarrIcs:()=>wd,getContentByPath:()=>NS,getByPath:()=>wS,getApiV3WantedMissingById:()=>eS,getApiV3WantedMissing:()=>HG,getApiV3WantedCutoffById:()=>ZC,getApiV3WantedCutoff:()=>Zd,getApiV3Update:()=>n,getApiV3TagDetailById:()=>My,getApiV3TagDetail:()=>xy,getApiV3TagById:()=>sy,getApiV3Tag:()=>py,getApiV3SystemTaskById:()=>US,getApiV3SystemTask:()=>ES,getApiV3SystemStatus:()=>WS,getApiV3SystemRoutesDuplicate:()=>OS,getApiV3SystemRoutes:()=>HS,getApiV3SystemBackup:()=>xd,getApiV3SeriesLookup:()=>my,getApiV3SeriesByIdFolder:()=>Py,getApiV3SeriesById:()=>gy,getApiV3Series:()=>dy,getApiV3RootfolderById:()=>MS,getApiV3Rootfolder:()=>By,getApiV3Rename:()=>xS,getApiV3RemotepathmappingById:()=>sS,getApiV3Remotepathmapping:()=>pS,getApiV3ReleaseprofileById:()=>mS,getApiV3Releaseprofile:()=>gS,getApiV3Release:()=>GS,getApiV3QueueStatus:()=>Ry,getApiV3QueueDetails:()=>Vy,getApiV3Queue:()=>ey,getApiV3QualityprofileSchema:()=>qG,getApiV3QualityprofileById:()=>iG,getApiV3Qualityprofile:()=>KG,getApiV3QualitydefinitionLimits:()=>dS,getApiV3QualitydefinitionById:()=>RS,getApiV3Qualitydefinition:()=>IS,getApiV3Parse:()=>cG,getApiV3NotificationSchema:()=>ZG,getApiV3NotificationById:()=>JG,getApiV3Notification:()=>$G,getApiV3MetadataSchema:()=>vs,getApiV3MetadataById:()=>_s,getApiV3Metadata:()=>cs,getApiV3MediacoverBySeriesIdByFilename:()=>hs,getApiV3Manualimport:()=>QG,getApiV3LogFileUpdateByFilename:()=>$S,getApiV3LogFileUpdate:()=>FS,getApiV3LogFileByFilename:()=>Ys,getApiV3LogFile:()=>Zs,getApiV3Log:()=>LG,getApiV3LocalizationLanguage:()=>Js,getApiV3LocalizationById:()=>Xs,getApiV3Localization:()=>js,getApiV3LanguageprofileSchema:()=>bs,getApiV3LanguageprofileById:()=>Fs,getApiV3Languageprofile:()=>Os,getApiV3LanguageById:()=>Hs,getApiV3Language:()=>Ws,getApiV3Indexerflag:()=>ws,getApiV3IndexerSchema:()=>MG,getApiV3IndexerById:()=>SG,getApiV3Indexer:()=>fG,getApiV3ImportlistexclusionPaged:()=>Cs,getApiV3ImportlistexclusionById:()=>Ss,getApiV3Importlistexclusion:()=>ps,getApiV3ImportlistSchema:()=>lG,getApiV3ImportlistById:()=>PG,getApiV3Importlist:()=>yG,getApiV3HistorySince:()=>RG,getApiV3HistorySeries:()=>BG,getApiV3History:()=>VG,getApiV3Health:()=>ys,getApiV3FilesystemType:()=>ds,getApiV3FilesystemMediafiles:()=>Gs,getApiV3Filesystem:()=>Ds,getApiV3EpisodefileById:()=>as,getApiV3Episodefile:()=>es,getApiV3EpisodeById:()=>AG,getApiV3Episode:()=>eG,getApiV3DownloadclientSchema:()=>qd,getApiV3DownloadclientById:()=>zd,getApiV3Downloadclient:()=>hd,getApiV3Diskspace:()=>Yd,getApiV3DelayprofileById:()=>KC,getApiV3Delayprofile:()=>YC,getApiV3CustomformatSchema:()=>Xd,getApiV3CustomformatById:()=>$d,getApiV3Customformat:()=>Ed,getApiV3CustomfilterById:()=>JC,getApiV3Customfilter:()=>$C,getApiV3ConfigUiById:()=>Ty,getApiV3ConfigUi:()=>Ly,getApiV3ConfigNamingExamples:()=>FG,getApiV3ConfigNamingById:()=>EG,getApiV3ConfigNaming:()=>OG,getApiV3ConfigMediamanagementById:()=>wG,getApiV3ConfigMediamanagement:()=>kG,getApiV3ConfigIndexerById:()=>Ns,getApiV3ConfigIndexer:()=>Qs,getApiV3ConfigImportlistById:()=>ls,getApiV3ConfigImportlist:()=>ms,getApiV3ConfigHostById:()=>dG,getApiV3ConfigHost:()=>DG,getApiV3ConfigDownloadclientById:()=>qC,getApiV3ConfigDownloadclient:()=>vC,getApiV3CommandById:()=>Od,getApiV3Command:()=>Wd,getApiV3CalendarById:()=>UC,getApiV3Calendar:()=>kd,getApiV3Blocklist:()=>Ld,getApiV3AutotaggingSchema:()=>EC,getApiV3AutotaggingById:()=>HC,getApiV3Autotagging:()=>kC,getApi:()=>Sd,get:()=>kS,deleteApiV3TagById:()=>Cy,deleteApiV3SystemBackupById:()=>Md,deleteApiV3SeriesEditor:()=>rS,deleteApiV3SeriesById:()=>yy,deleteApiV3RootfolderById:()=>Dy,deleteApiV3RemotepathmappingById:()=>CS,deleteApiV3ReleaseprofileById:()=>PS,deleteApiV3QueueById:()=>nG,deleteApiV3QueueBulk:()=>oG,deleteApiV3QualityprofileById:()=>_G,deleteApiV3NotificationById:()=>jG,deleteApiV3MetadataById:()=>zs,deleteApiV3LanguageprofileById:()=>Us,deleteApiV3IndexerById:()=>sG,deleteApiV3IndexerBulk:()=>Ts,deleteApiV3ImportlistexclusionById:()=>ss,deleteApiV3ImportlistexclusionBulk:()=>Ms,deleteApiV3ImportlistById:()=>uG,deleteApiV3ImportlistBulk:()=>gs,deleteApiV3EpisodefileById:()=>As,deleteApiV3EpisodefileBulk:()=>Bs,deleteApiV3DownloadclientById:()=>Kd,deleteApiV3DownloadclientBulk:()=>id,deleteApiV3DelayprofileById:()=>cC,deleteApiV3CustomformatById:()=>Fd,deleteApiV3CustomformatBulk:()=>jd,deleteApiV3CustomfilterById:()=>jC,deleteApiV3CommandById:()=>FC,deleteApiV3BlocklistById:()=>Qd,deleteApiV3BlocklistBulk:()=>Nd,deleteApiV3AutotaggingById:()=>WC});var Sd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...e}),LC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e}),QC=(e)=>(e?.client??y).post({...D3,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...e,headers:{"Content-Type":null,...e?.headers}}),NC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...e}),kC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...e}),wC=(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}),HC=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...e}),OC=(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}}),EC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/schema",...e}),xd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup",...e}),Md=(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}),Td=(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}),rd=(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}),Ld=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist",...e}),Qd=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/{id}",...e}),Nd=(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}}),kd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/calendar",...e}),UC=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/calendar/{id}",...e}),wd=(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}),Wd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...e}),Hd=(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}}),FC=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),Od=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...e}),$C=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...e}),bC=(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}}),jC=(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}),XC=(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}}),Ed=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...e}),Ud=(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}}),Fd=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),$d=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...e}),bd=(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}}),jd=(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}}),Jd=(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}}),Xd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/schema",...e}),Zd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/cutoff",...e}),ZC=(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}),YC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...e}),hC=(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}}),cC=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),KC=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...e}),zC=(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}}),_C=(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}),Yd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/diskspace",...e}),hd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...e}),cd=(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}}),Kd=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),zd=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...e}),_d=(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}}),id=(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}}),vd=(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}}),qd=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/schema",...e}),nd=(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}}),od=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/testall",...e}),iC=(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}}),vC=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient",...e}),qC=(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}),nC=(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}}),eG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episode",...e}),AG=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episode/{id}",...e}),aG=(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}}),oC=(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}}),es=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/episodefile",...e}),As=(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}),Vs=(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}}),Rs=(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}}),Bs=(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}}),Is=(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}}),Ds=(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}),Gs=(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}),VG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history",...e}),RG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/since",...e}),BG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/series",...e}),IG=(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}),DG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host",...e}),dG=(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}),GG=(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}}),yG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...e}),gG=(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}}),uG=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),PG=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...e}),mG=(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}}),us=(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}}),lG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/schema",...e}),tG=(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}}),pG=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/testall",...e}),Ps=(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}}),ms=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist",...e}),ls=(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}),ts=(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}}),ps=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion",...e}),fs=(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}}),Cs=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlistexclusion/paged",...e}),ss=(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}),xs=(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}}),Ms=(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}}),fG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...e}),CG=(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}}),sG=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),SG=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...e}),xG=(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}}),Ts=(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}}),rs=(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}}),MG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/schema",...e}),TG=(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}}),rG=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/testall",...e}),Ls=(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}}),Qs=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer",...e}),Ns=(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}),ks=(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}}),ws=(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}),Hs=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language/{id}",...e}),Os=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile",...e}),Es=(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}}),Us=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile/{id}",...e}),Fs=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile/{id}",...e}),$s=(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}}),bs=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/languageprofile/schema",...e}),js=(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}),Xs=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization/{id}",...e}),LG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log",...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",...e}),Ys=(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}),QG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...e}),NG=(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}}),hs=(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}),kG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement",...e}),wG=(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}),WG=(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}}),cs=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...e}),Ks=(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}}),zs=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),_s=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...e}),is=(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}}),vs=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/schema",...e}),qs=(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}}),ns=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/testall",...e}),os=(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}}),HG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/missing",...e}),eS=(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}),OG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming",...e}),EG=(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}),UG=(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}}),FG=(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}),$G=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...e}),bG=(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}}),jG=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),JG=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...e}),XG=(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}}),ZG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/schema",...e}),YG=(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}}),hG=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/testall",...e}),AS=(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}}),cG=(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}),VS=(e)=>(e?.client??y).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...e}),RS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...e}),BS=(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}}),IS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition",...e}),DS=(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}),KG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...e}),zG=(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}}),_G=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),iG=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...e}),vG=(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}}),qG=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/schema",...e}),nG=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/{id}",...e}),oG=(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}}),ey=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue",...e}),Ay=(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}),ay=(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}}),Vy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/details",...e}),Ry=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/status",...e}),GS=(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}),uS=(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}}),PS=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),mS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...e}),lS=(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}}),tS=(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}}),pS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...e}),fS=(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}}),CS=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...e}),sS=(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}}),xS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rename",...e}),By=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...e}),Iy=(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}}),Dy=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),MS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...e}),TS=(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}}),dy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series",...e}),Gy=(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}}),yy=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/{id}",...e}),gy=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/{id}",...e}),uy=(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}}),rS=(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}}),LS=(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}}),Py=(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}),QS=(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}}),my=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/series/lookup",...e}),NS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...e}),kS=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...e}),wS=(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}),HS=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes",...e}),OS=(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}),ly=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/shutdown",...e}),ty=(e)=>(e?.client??y).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/restart",...e}),py=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...e}),fy=(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}}),Cy=(e)=>(e.client??y).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),sy=(e)=>(e.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...e}),Sy=(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}}),xy=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail",...e}),My=(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}),ES=(e)=>(e?.client??y).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task",...e}),US=(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}),Ty=(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}),ry=(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}}),Ly=(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}),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",...e}),$S=(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 bS{clientConfig;constructor(e){this.clientConfig=E(e),y.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getApi(){return Sd()}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 dy()}async getSeriesById(e){return gy({path:{id:e}})}async addSeries(e){return Gy({body:e})}async updateSeries(e,A){return uy({path:{id:e},body:A})}async deleteSeries(e,A){return yy({path:{id:e},...A?{query:A}:{}})}async getSeriesFolder(e){return Py({path:{id:e}})}async searchSeries(e){return my({query:{term:e}})}async getRootFolders(){return By()}async addRootFolder(e){return Iy({body:{path:e}})}async deleteRootFolder(e){return Dy({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 LG(Object.keys(D).length>0?{query:D}:{})}async getUpdates(){return n()}async getUpdateSettings(){return n()}async getUpdateSetting(){return n()}async getHostConfig(){return DG()}async getHostConfigById(e){return dG({path:{id:e}})}async updateHostConfig(e,A){return GG({path:{id:e},body:A})}async getNamingConfig(){return OG()}async getNamingConfigById(e){return EG({path:{id:e}})}async updateNamingConfig(e,A){return UG({path:{id:e},body:A})}async getNamingConfigExamples(){return FG()}async getMediaManagementConfig(){return kG()}async getMediaManagementConfigById(e){return wG({path:{id:e}})}async updateMediaManagementConfig(e,A){return WG({path:{id:e},body:A})}async getUiConfig(){return Ly()}async getUiConfigById(e){return Ty({path:{id:e}})}async updateUiConfig(e,A){return ry({path:{id:e},body:A})}async restartSystem(){return ty()}async shutdownSystem(){return ly()}async getSystemBackups(){return xd()}async deleteSystemBackup(e){return Md({path:{id:e}})}async restoreSystemBackup(e){return Td({path:{id:e}})}async uploadSystemBackup(){return rd()}async getDiskSpace(){return Yd()}async getTags(){return py()}async addTag(e){return fy({body:e})}async getTag(e){return sy({path:{id:e}})}async updateTag(e,A){return Sy({path:{id:e},body:A})}async deleteTag(e){return Cy({path:{id:e}})}async getTagDetails(){return xy()}async getTagDetailById(e){return My({path:{id:e}})}async getEpisodes(e,A){let a={};if(e!==void 0)a.seriesId=e;if(A!==void 0)a.episodeIds=A;return eG(Object.keys(a).length>0?{query:a}:{})}async getEpisode(e){return AG({path:{id:e}})}async updateEpisode(e,A){return aG({path:{id:e},body:A})}async getQualityProfiles(){return KG()}async getQualityProfile(e){return iG({path:{id:e}})}async addQualityProfile(e){return zG({body:e})}async updateQualityProfile(e,A){return vG({path:{id:e},body:A})}async deleteQualityProfile(e){return _G({path:{id:e}})}async getQualityProfileSchema(){return qG()}async getCustomFormats(){return Ed()}async getCustomFormat(e){return $d({path:{id:e}})}async addCustomFormat(e){return Ud({body:e})}async updateCustomFormat(e,A){return bd({path:{id:e},body:A})}async deleteCustomFormat(e){return Fd({path:{id:e}})}async updateCustomFormatsBulk(e){return Jd({body:e})}async deleteCustomFormatsBulk(e){return jd({body:{ids:e}})}async getCustomFormatSchema(){return Xd()}async getDownloadClients(){return hd()}async getDownloadClient(e){return zd({path:{id:e}})}async addDownloadClient(e){return cd({body:e})}async updateDownloadClient(e,A){return _d({path:{id:e},body:A})}async deleteDownloadClient(e){return Kd({path:{id:e}})}async updateDownloadClientsBulk(e){return vd({body:e})}async deleteDownloadClientsBulk(e){return id({body:{ids:e}})}async getDownloadClientSchema(){return qd()}async testDownloadClient(e){return nd({body:e})}async testAllDownloadClients(){return od()}async getIndexers(){return fG()}async getIndexer(e){return SG({path:{id:e}})}async addIndexer(e){return CG({body:e})}async updateIndexer(e,A){return xG({path:{id:e},body:A})}async deleteIndexer(e){return sG({path:{id:e}})}async getIndexerSchema(){return MG()}async testIndexer(e){return TG({body:e})}async testAllIndexers(){return rG()}async getImportLists(){return yG()}async getImportList(e){return PG({path:{id:e}})}async addImportList(e){return gG({body:e})}async updateImportList(e,A){return mG({path:{id:e},body:A})}async deleteImportList(e){return uG({path:{id:e}})}async getImportListSchema(){return lG()}async testImportList(e){return tG({body:e})}async testAllImportLists(){return pG()}async getNotifications(){return $G()}async getNotification(e){return JG({path:{id:e}})}async addNotification(e){return bG({body:e})}async updateNotification(e,A){return XG({path:{id:e},body:A})}async deleteNotification(e){return jG({path:{id:e}})}async getNotificationSchema(){return ZG()}async testNotification(e){return YG({body:e})}async testAllNotifications(){return hG()}async runCommand(e){return Hd({body:e})}async getCommands(){return Wd()}async getCommand(e){return Od({path:{id:e}})}async getHistory(e,A,a,V,R,D){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(D)B.downloadId=D;return VG(Object.keys(B).length>0?{query:B}:{})}async getHistorySince(e,A){let a={date:e};if(A!==void 0)a.seriesId=A;return RG({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 BG({query:V})}async markHistoryItemFailed(e){return IG({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 V.includeSeries=!0,kd(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 wd(Object.keys(V).length>0?{query:V}:{})}async getQueue(e,A,a,V,R,D){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(D!==void 0)B.seriesIds=[D];return ey(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 nG({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 oG({body:{ids:e},...Object.keys(V).length>0?{query:V}:{}})}async grabQueueItem(e){return Ay({path:{id:e}})}async grabQueueItemsBulk(e){return ay({body:{ids:e}})}async getQueueDetails(e,A){let a={};if(e!==void 0)a.seriesId=e;if(A!==void 0)a.includeUnknownSeriesItems=A;return Vy(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return Ry()}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 Ld(Object.keys(R).length>0?{query:R}:{})}async removeBlocklistItem(e){return Qd({path:{id:e}})}async removeBlocklistItemsBulk(e){return Nd({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 HG(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 Zd(Object.keys(R).length>0?{query:R}:{})}async parseEpisodeInfo(e){return cG({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 QG(Object.keys(R).length>0?{query:R}:{})}async processManualImport(e){return NG({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 jL(e){try{let A=await e;if(A.error)return{success:!1,error:jS(A.error,A.response)};return{success:!0,data:A.data}}catch(A){return{success:!1,error:jS(A)}}}function jS(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 ZL="1.0.0";export{JL as validateResponse,_x as validateBaseUrl,zx as validateApiKey,jL as handleApiResponse,E as createServarrClient,ee as ValidationError,ZL as VERSION,J as TsarrError,bS as SonarrClient,P3 as Sonarr,pC as ReadarrClient,I3 as Readarr,nt as RadarrClient,oy as Radarr,Qm as ProwlarrClient,Ky as Prowlarr,YS as NotFoundError,IP as LidarrClient,jy as Lidarr,o as ConnectionError,X3 as BazarrClient,Hy as Bazarr,Ge as ApiKeyError};