tsarr 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/README.md +6 -7
  2. package/dist/clients/lidarr.d.ts +10 -10
  3. package/dist/clients/lidarr.d.ts.map +1 -1
  4. package/dist/clients/lidarr.js +1183 -246
  5. package/dist/clients/prowlarr.d.ts +5 -5
  6. package/dist/clients/prowlarr.d.ts.map +1 -1
  7. package/dist/clients/prowlarr.js +825 -177
  8. package/dist/clients/radarr.d.ts +23 -23
  9. package/dist/clients/radarr.d.ts.map +1 -1
  10. package/dist/clients/radarr.js +1817 -347
  11. package/dist/clients/readarr.d.ts +5 -5
  12. package/dist/clients/readarr.d.ts.map +1 -1
  13. package/dist/clients/readarr.js +877 -192
  14. package/dist/clients/sonarr.d.ts +9 -9
  15. package/dist/clients/sonarr.d.ts.map +1 -1
  16. package/dist/clients/sonarr.js +847 -184
  17. package/dist/core/response.d.ts +1 -1
  18. package/dist/core/response.d.ts.map +1 -1
  19. package/dist/generated/lidarr/client/client.gen.d.ts +3 -0
  20. package/dist/generated/lidarr/client/client.gen.d.ts.map +1 -0
  21. package/dist/generated/lidarr/client/index.d.ts +8 -0
  22. package/dist/generated/lidarr/client/index.d.ts.map +1 -0
  23. package/dist/generated/lidarr/client/types.gen.d.ts +125 -0
  24. package/dist/generated/lidarr/client/types.gen.d.ts.map +1 -0
  25. package/dist/generated/lidarr/client/utils.gen.d.ts +39 -0
  26. package/dist/generated/lidarr/client/utils.gen.d.ts.map +1 -0
  27. package/dist/generated/lidarr/client.gen.d.ts +13 -0
  28. package/dist/generated/lidarr/client.gen.d.ts.map +1 -0
  29. package/dist/generated/lidarr/core/auth.gen.d.ts +19 -0
  30. package/dist/generated/lidarr/core/auth.gen.d.ts.map +1 -0
  31. package/dist/generated/lidarr/core/bodySerializer.gen.d.ts +18 -0
  32. package/dist/generated/lidarr/core/bodySerializer.gen.d.ts.map +1 -0
  33. package/dist/generated/lidarr/core/params.gen.d.ts +34 -0
  34. package/dist/generated/lidarr/core/params.gen.d.ts.map +1 -0
  35. package/dist/generated/lidarr/core/pathSerializer.gen.d.ts +34 -0
  36. package/dist/generated/lidarr/core/pathSerializer.gen.d.ts.map +1 -0
  37. package/dist/generated/lidarr/core/serverSentEvents.gen.d.ts +72 -0
  38. package/dist/generated/lidarr/core/serverSentEvents.gen.d.ts.map +1 -0
  39. package/dist/generated/lidarr/core/types.gen.d.ts +79 -0
  40. package/dist/generated/lidarr/core/types.gen.d.ts.map +1 -0
  41. package/dist/generated/lidarr/core/utils.gen.d.ts +15 -0
  42. package/dist/generated/lidarr/core/utils.gen.d.ts.map +1 -0
  43. package/dist/generated/lidarr/index.d.ts +1 -2
  44. package/dist/generated/lidarr/index.d.ts.map +1 -1
  45. package/dist/generated/lidarr/sdk.gen.d.ts +252 -0
  46. package/dist/generated/lidarr/sdk.gen.d.ts.map +1 -0
  47. package/dist/generated/lidarr/types.gen.d.ts +3117 -1056
  48. package/dist/generated/lidarr/types.gen.d.ts.map +1 -1
  49. package/dist/generated/prowlarr/client/client.gen.d.ts +3 -0
  50. package/dist/generated/prowlarr/client/client.gen.d.ts.map +1 -0
  51. package/dist/generated/prowlarr/client/index.d.ts +8 -0
  52. package/dist/generated/prowlarr/client/index.d.ts.map +1 -0
  53. package/dist/generated/prowlarr/client/types.gen.d.ts +125 -0
  54. package/dist/generated/prowlarr/client/types.gen.d.ts.map +1 -0
  55. package/dist/generated/prowlarr/client/utils.gen.d.ts +39 -0
  56. package/dist/generated/prowlarr/client/utils.gen.d.ts.map +1 -0
  57. package/dist/generated/prowlarr/client.gen.d.ts +13 -0
  58. package/dist/generated/prowlarr/client.gen.d.ts.map +1 -0
  59. package/dist/generated/prowlarr/core/auth.gen.d.ts +19 -0
  60. package/dist/generated/prowlarr/core/auth.gen.d.ts.map +1 -0
  61. package/dist/generated/prowlarr/core/bodySerializer.gen.d.ts +18 -0
  62. package/dist/generated/prowlarr/core/bodySerializer.gen.d.ts.map +1 -0
  63. package/dist/generated/prowlarr/core/params.gen.d.ts +34 -0
  64. package/dist/generated/prowlarr/core/params.gen.d.ts.map +1 -0
  65. package/dist/generated/prowlarr/core/pathSerializer.gen.d.ts +34 -0
  66. package/dist/generated/prowlarr/core/pathSerializer.gen.d.ts.map +1 -0
  67. package/dist/generated/prowlarr/core/serverSentEvents.gen.d.ts +72 -0
  68. package/dist/generated/prowlarr/core/serverSentEvents.gen.d.ts.map +1 -0
  69. package/dist/generated/prowlarr/core/types.gen.d.ts +79 -0
  70. package/dist/generated/prowlarr/core/types.gen.d.ts.map +1 -0
  71. package/dist/generated/prowlarr/core/utils.gen.d.ts +15 -0
  72. package/dist/generated/prowlarr/core/utils.gen.d.ts.map +1 -0
  73. package/dist/generated/prowlarr/index.d.ts +1 -2
  74. package/dist/generated/prowlarr/index.d.ts.map +1 -1
  75. package/dist/generated/prowlarr/sdk.gen.d.ts +145 -0
  76. package/dist/generated/prowlarr/sdk.gen.d.ts.map +1 -0
  77. package/dist/generated/prowlarr/types.gen.d.ts +1747 -592
  78. package/dist/generated/prowlarr/types.gen.d.ts.map +1 -1
  79. package/dist/generated/radarr/client/client.gen.d.ts +3 -0
  80. package/dist/generated/radarr/client/client.gen.d.ts.map +1 -0
  81. package/dist/generated/radarr/client/index.d.ts +8 -0
  82. package/dist/generated/radarr/client/index.d.ts.map +1 -0
  83. package/dist/generated/radarr/client/types.gen.d.ts +125 -0
  84. package/dist/generated/radarr/client/types.gen.d.ts.map +1 -0
  85. package/dist/generated/radarr/client/utils.gen.d.ts +39 -0
  86. package/dist/generated/radarr/client/utils.gen.d.ts.map +1 -0
  87. package/dist/generated/radarr/client.gen.d.ts +13 -0
  88. package/dist/generated/radarr/client.gen.d.ts.map +1 -0
  89. package/dist/generated/radarr/core/auth.gen.d.ts +19 -0
  90. package/dist/generated/radarr/core/auth.gen.d.ts.map +1 -0
  91. package/dist/generated/radarr/core/bodySerializer.gen.d.ts +18 -0
  92. package/dist/generated/radarr/core/bodySerializer.gen.d.ts.map +1 -0
  93. package/dist/generated/radarr/core/params.gen.d.ts +34 -0
  94. package/dist/generated/radarr/core/params.gen.d.ts.map +1 -0
  95. package/dist/generated/radarr/core/pathSerializer.gen.d.ts +34 -0
  96. package/dist/generated/radarr/core/pathSerializer.gen.d.ts.map +1 -0
  97. package/dist/generated/radarr/core/serverSentEvents.gen.d.ts +72 -0
  98. package/dist/generated/radarr/core/serverSentEvents.gen.d.ts.map +1 -0
  99. package/dist/generated/radarr/core/types.gen.d.ts +79 -0
  100. package/dist/generated/radarr/core/types.gen.d.ts.map +1 -0
  101. package/dist/generated/radarr/core/utils.gen.d.ts +15 -0
  102. package/dist/generated/radarr/core/utils.gen.d.ts.map +1 -0
  103. package/dist/generated/radarr/index.d.ts +1 -2
  104. package/dist/generated/radarr/index.d.ts.map +1 -1
  105. package/dist/generated/radarr/sdk.gen.d.ts +260 -0
  106. package/dist/generated/radarr/sdk.gen.d.ts.map +1 -0
  107. package/dist/generated/radarr/types.gen.d.ts +3066 -1064
  108. package/dist/generated/radarr/types.gen.d.ts.map +1 -1
  109. package/dist/generated/readarr/client/client.gen.d.ts +3 -0
  110. package/dist/generated/readarr/client/client.gen.d.ts.map +1 -0
  111. package/dist/generated/readarr/client/index.d.ts +8 -0
  112. package/dist/generated/readarr/client/index.d.ts.map +1 -0
  113. package/dist/generated/readarr/client/types.gen.d.ts +125 -0
  114. package/dist/generated/readarr/client/types.gen.d.ts.map +1 -0
  115. package/dist/generated/readarr/client/utils.gen.d.ts +39 -0
  116. package/dist/generated/readarr/client/utils.gen.d.ts.map +1 -0
  117. package/dist/generated/readarr/client.gen.d.ts +13 -0
  118. package/dist/generated/readarr/client.gen.d.ts.map +1 -0
  119. package/dist/generated/readarr/core/auth.gen.d.ts +19 -0
  120. package/dist/generated/readarr/core/auth.gen.d.ts.map +1 -0
  121. package/dist/generated/readarr/core/bodySerializer.gen.d.ts +18 -0
  122. package/dist/generated/readarr/core/bodySerializer.gen.d.ts.map +1 -0
  123. package/dist/generated/readarr/core/params.gen.d.ts +34 -0
  124. package/dist/generated/readarr/core/params.gen.d.ts.map +1 -0
  125. package/dist/generated/readarr/core/pathSerializer.gen.d.ts +34 -0
  126. package/dist/generated/readarr/core/pathSerializer.gen.d.ts.map +1 -0
  127. package/dist/generated/readarr/core/serverSentEvents.gen.d.ts +72 -0
  128. package/dist/generated/readarr/core/serverSentEvents.gen.d.ts.map +1 -0
  129. package/dist/generated/readarr/core/types.gen.d.ts +79 -0
  130. package/dist/generated/readarr/core/types.gen.d.ts.map +1 -0
  131. package/dist/generated/readarr/core/utils.gen.d.ts +15 -0
  132. package/dist/generated/readarr/core/utils.gen.d.ts.map +1 -0
  133. package/dist/generated/readarr/index.d.ts +1 -2
  134. package/dist/generated/readarr/index.d.ts.map +1 -1
  135. package/dist/generated/readarr/sdk.gen.d.ts +250 -0
  136. package/dist/generated/readarr/sdk.gen.d.ts.map +1 -0
  137. package/dist/generated/readarr/types.gen.d.ts +3219 -1142
  138. package/dist/generated/readarr/types.gen.d.ts.map +1 -1
  139. package/dist/generated/sonarr/client/client.gen.d.ts +3 -0
  140. package/dist/generated/sonarr/client/client.gen.d.ts.map +1 -0
  141. package/dist/generated/sonarr/client/index.d.ts +8 -0
  142. package/dist/generated/sonarr/client/index.d.ts.map +1 -0
  143. package/dist/generated/sonarr/client/types.gen.d.ts +125 -0
  144. package/dist/generated/sonarr/client/types.gen.d.ts.map +1 -0
  145. package/dist/generated/sonarr/client/utils.gen.d.ts +39 -0
  146. package/dist/generated/sonarr/client/utils.gen.d.ts.map +1 -0
  147. package/dist/generated/sonarr/client.gen.d.ts +13 -0
  148. package/dist/generated/sonarr/client.gen.d.ts.map +1 -0
  149. package/dist/generated/sonarr/core/auth.gen.d.ts +19 -0
  150. package/dist/generated/sonarr/core/auth.gen.d.ts.map +1 -0
  151. package/dist/generated/sonarr/core/bodySerializer.gen.d.ts +18 -0
  152. package/dist/generated/sonarr/core/bodySerializer.gen.d.ts.map +1 -0
  153. package/dist/generated/sonarr/core/params.gen.d.ts +34 -0
  154. package/dist/generated/sonarr/core/params.gen.d.ts.map +1 -0
  155. package/dist/generated/sonarr/core/pathSerializer.gen.d.ts +34 -0
  156. package/dist/generated/sonarr/core/pathSerializer.gen.d.ts.map +1 -0
  157. package/dist/generated/sonarr/core/serverSentEvents.gen.d.ts +72 -0
  158. package/dist/generated/sonarr/core/serverSentEvents.gen.d.ts.map +1 -0
  159. package/dist/generated/sonarr/core/types.gen.d.ts +79 -0
  160. package/dist/generated/sonarr/core/types.gen.d.ts.map +1 -0
  161. package/dist/generated/sonarr/core/utils.gen.d.ts +15 -0
  162. package/dist/generated/sonarr/core/utils.gen.d.ts.map +1 -0
  163. package/dist/generated/sonarr/index.d.ts +1 -2
  164. package/dist/generated/sonarr/index.d.ts.map +1 -1
  165. package/dist/generated/sonarr/sdk.gen.d.ts +37 -0
  166. package/dist/generated/sonarr/sdk.gen.d.ts.map +1 -0
  167. package/dist/generated/sonarr/types.gen.d.ts +349 -107
  168. package/dist/generated/sonarr/types.gen.d.ts.map +1 -1
  169. package/dist/index.d.ts +8 -8
  170. package/dist/index.d.ts.map +1 -1
  171. package/dist/index.js +21 -1
  172. package/dist/tsarr-1.4.0.tgz +0 -0
  173. package/package.json +40 -43
  174. package/dist/generated/lidarr/schemas.gen.d.ts +0 -4584
  175. package/dist/generated/lidarr/schemas.gen.d.ts.map +0 -1
  176. package/dist/generated/lidarr/services.gen.d.ts +0 -242
  177. package/dist/generated/lidarr/services.gen.d.ts.map +0 -1
  178. package/dist/generated/prowlarr/schemas.gen.d.ts +0 -2151
  179. package/dist/generated/prowlarr/schemas.gen.d.ts.map +0 -1
  180. package/dist/generated/prowlarr/services.gen.d.ts +0 -135
  181. package/dist/generated/prowlarr/services.gen.d.ts.map +0 -1
  182. package/dist/generated/radarr/schemas.gen.d.ts +0 -4402
  183. package/dist/generated/radarr/schemas.gen.d.ts.map +0 -1
  184. package/dist/generated/radarr/services.gen.d.ts +0 -250
  185. package/dist/generated/radarr/services.gen.d.ts.map +0 -1
  186. package/dist/generated/readarr/schemas.gen.d.ts +0 -5250
  187. package/dist/generated/readarr/schemas.gen.d.ts.map +0 -1
  188. package/dist/generated/readarr/services.gen.d.ts +0 -240
  189. package/dist/generated/readarr/services.gen.d.ts.map +0 -1
  190. package/dist/generated/sonarr/schemas.gen.d.ts +0 -612
  191. package/dist/generated/sonarr/schemas.gen.d.ts.map +0 -1
  192. package/dist/generated/sonarr/services.gen.d.ts +0 -27
  193. package/dist/generated/sonarr/services.gen.d.ts.map +0 -1
  194. package/dist/tsarr-1.2.0.tgz +0 -0
package/dist/index.js CHANGED
@@ -1 +1,21 @@
1
- var Fr=Object.defineProperty;var T=(e,n)=>{for(var a in n)Fr(e,a,{get:n[a],enumerable:!0,configurable:!0,set:(s)=>n[a]=()=>s})};var rt={};T(rt,{putApiV3TagById:()=>cp,putApiV3RemotepathmappingById:()=>Js,putApiV3ReleaseprofileById:()=>zs,putApiV3QualityprofileById:()=>je,putApiV3QualitydefinitionUpdate:()=>$s,putApiV3QualitydefinitionById:()=>Fs,putApiV3NotificationById:()=>ve,putApiV3MoviefileEditor:()=>ws,putApiV3MoviefileById:()=>Es,putApiV3MoviefileBulk:()=>Is,putApiV3MovieEditor:()=>fs,putApiV3MovieById:()=>Be,putApiV3MetadataById:()=>as,putApiV3IndexerById:()=>Ve,putApiV3IndexerBulk:()=>La,putApiV3ImportlistById:()=>ue,putApiV3ImportlistBulk:()=>Oa,putApiV3ExclusionsById:()=>Ga,putApiV3DownloadclientById:()=>z,putApiV3DownloadclientBulk:()=>_,putApiV3DelayprofileReorderById:()=>da,putApiV3DelayprofileById:()=>la,putApiV3CustomformatById:()=>N,putApiV3CustomformatBulk:()=>j,putApiV3CustomfilterById:()=>ra,putApiV3ConfigUiById:()=>hp,putApiV3ConfigNamingById:()=>Ps,putApiV3ConfigMetadataById:()=>ms,putApiV3ConfigMediamanagementById:()=>rs,putApiV3ConfigIndexerById:()=>ja,putApiV3ConfigImportlistById:()=>Ba,putApiV3ConfigHostById:()=>Ea,putApiV3ConfigDownloadclientById:()=>Aa,putApiV3CollectionById:()=>Ki,putApiV3Collection:()=>zi,putApiV3AutotaggingById:()=>Si,postLogin:()=>Di,postApiV3Tag:()=>dp,postApiV3SystemShutdown:()=>pp,postApiV3SystemRestart:()=>lp,postApiV3SystemBackupRestoreUpload:()=>Qi,postApiV3SystemBackupRestoreById:()=>$i,postApiV3Rootfolder:()=>Ze,postApiV3Remotepathmapping:()=>_s,postApiV3Releaseprofile:()=>Hs,postApiV3ReleasePush:()=>Ys,postApiV3Release:()=>js,postApiV3QueueGrabById:()=>Ke,postApiV3QueueGrabBulk:()=>Ye,postApiV3Qualityprofile:()=>Ne,postApiV3NotificationTestall:()=>Le,postApiV3NotificationTest:()=>Fe,postApiV3NotificationActionByName:()=>vs,postApiV3Notification:()=>ke,postApiV3MovieImport:()=>De,postApiV3Movie:()=>Ie,postApiV3MetadataTestall:()=>ds,postApiV3MetadataTest:()=>us,postApiV3MetadataActionByName:()=>cs,postApiV3Metadata:()=>is,postApiV3Manualimport:()=>Ja,postApiV3IndexerTestall:()=>we,postApiV3IndexerTest:()=>Oe,postApiV3IndexerActionByName:()=>$a,postApiV3Indexer:()=>fe,postApiV3ImportlistTestall:()=>Ae,postApiV3ImportlistTest:()=>me,postApiV3ImportlistMovie:()=>Fa,postApiV3ImportlistActionByName:()=>Ta,postApiV3Importlist:()=>le,postApiV3HistoryFailedById:()=>se,postApiV3ExclusionsBulk:()=>Sa,postApiV3Exclusions:()=>Da,postApiV3DownloadclientTestall:()=>ee,postApiV3DownloadclientTest:()=>J,postApiV3DownloadclientActionByName:()=>ya,postApiV3Downloadclient:()=>W,postApiV3Delayprofile:()=>aa,postApiV3Customformat:()=>L,postApiV3Customfilter:()=>ta,postApiV3Command:()=>C,postApiV3Autotagging:()=>ki,headPing:()=>Ms,getPing:()=>Cs,getLogout:()=>Gi,getLogin:()=>Pi,getFeedV3CalendarRadarrIcs:()=>S,getContentByPath:()=>op,getByPath:()=>ip,getApiV3WantedMissing:()=>gs,getApiV3WantedCutoff:()=>ia,getApiV3Update:()=>Op,getApiV3TagDetailById:()=>gp,getApiV3TagDetail:()=>Ap,getApiV3TagById:()=>mp,getApiV3Tag:()=>up,getApiV3SystemTaskById:()=>Vp,getApiV3SystemTask:()=>fp,getApiV3SystemStatus:()=>tt,getApiV3SystemRoutesDuplicate:()=>sp,getApiV3SystemRoutes:()=>ap,getApiV3SystemBackup:()=>Li,getApiV3RootfolderById:()=>rp,getApiV3Rootfolder:()=>Je,getApiV3Rename:()=>tp,getApiV3RemotepathmappingById:()=>ep,getApiV3Remotepathmapping:()=>Xs,getApiV3ReleaseprofileById:()=>Ks,getApiV3Releaseprofile:()=>qs,getApiV3Release:()=>Us,getApiV3QueueStatus:()=>Xe,getApiV3QueueDetails:()=>_e,getApiV3Queue:()=>ze,getApiV3QualityprofileSchema:()=>He,getApiV3QualityprofileById:()=>Ue,getApiV3Qualityprofile:()=>$e,getApiV3QualitydefinitionLimits:()=>Qs,getApiV3QualitydefinitionById:()=>Ls,getApiV3Qualitydefinition:()=>Ns,getApiV3Parse:()=>Ss,getApiV3NotificationSchema:()=>Me,getApiV3NotificationById:()=>Ce,getApiV3Notification:()=>Ge,getApiV3MoviefileById:()=>Os,getApiV3Moviefile:()=>hs,getApiV3MovieLookupTmdb:()=>xs,getApiV3MovieLookupImdb:()=>Rs,getApiV3MovieLookup:()=>Pe,getApiV3MovieByIdFolder:()=>Bs,getApiV3MovieById:()=>Re,getApiV3Movie:()=>Te,getApiV3MetadataSchema:()=>ls,getApiV3MetadataById:()=>ps,getApiV3Metadata:()=>ns,getApiV3MediacoverByMovieIdByFilename:()=>es,getApiV3Manualimport:()=>Za,getApiV3LogFileUpdateByFilename:()=>Tp,getApiV3LogFileUpdate:()=>wp,getApiV3LogFileByFilename:()=>Xa,getApiV3LogFile:()=>_a,getApiV3Log:()=>Ya,getApiV3LocalizationLanguage:()=>Ka,getApiV3Localization:()=>za,getApiV3LanguageById:()=>Wa,getApiV3Language:()=>qa,getApiV3Indexerflag:()=>Ha,getApiV3IndexerSchema:()=>be,getApiV3IndexerById:()=>Ee,getApiV3Indexer:()=>ge,getApiV3ImportlistSchema:()=>ye,getApiV3ImportlistMovie:()=>Ma,getApiV3ImportlistById:()=>ce,getApiV3Importlist:()=>pe,getApiV3HistorySince:()=>ie,getApiV3HistoryMovie:()=>ae,getApiV3History:()=>ne,getApiV3Health:()=>oe,getApiV3FilesystemType:()=>Va,getApiV3FilesystemMediafiles:()=>re,getApiV3Filesystem:()=>te,getApiV3Extrafile:()=>fa,getApiV3ExclusionsPaged:()=>Pa,getApiV3ExclusionsById:()=>va,getApiV3Exclusions:()=>Ra,getApiV3DownloadclientSchema:()=>Z,getApiV3DownloadclientById:()=>Y,getApiV3Downloadclient:()=>q,getApiV3Diskspace:()=>ca,getApiV3DelayprofileById:()=>ua,getApiV3Delayprofile:()=>sa,getApiV3CustomformatSchema:()=>H,getApiV3CustomformatById:()=>Q,getApiV3Customformat:()=>F,getApiV3CustomfilterById:()=>na,getApiV3Customfilter:()=>ea,getApiV3CreditById:()=>Ji,getApiV3Credit:()=>Zi,getApiV3ConfigUiById:()=>Ep,getApiV3ConfigUi:()=>bp,getApiV3ConfigNamingExamples:()=>ks,getApiV3ConfigNamingById:()=>Gs,getApiV3ConfigNaming:()=>Ds,getApiV3ConfigMetadataById:()=>As,getApiV3ConfigMetadata:()=>ys,getApiV3ConfigMediamanagementById:()=>os,getApiV3ConfigMediamanagement:()=>ts,getApiV3ConfigIndexerById:()=>Ua,getApiV3ConfigIndexer:()=>Qa,getApiV3ConfigImportlistById:()=>xa,getApiV3ConfigImportlist:()=>Ia,getApiV3ConfigHostById:()=>ba,getApiV3ConfigHost:()=>ha,getApiV3ConfigDownloadclientById:()=>ga,getApiV3ConfigDownloadclient:()=>ma,getApiV3CommandById:()=>Xi,getApiV3Command:()=>M,getApiV3CollectionById:()=>Yi,getApiV3Collection:()=>Wi,getApiV3Calendar:()=>v,getApiV3BlocklistMovie:()=>Ui,getApiV3Blocklist:()=>ji,getApiV3AutotaggingSchema:()=>Fi,getApiV3AutotaggingById:()=>Mi,getApiV3Autotagging:()=>vi,getApiV3AlttitleById:()=>xi,getApiV3Alttitle:()=>Bi,getApi:()=>Ri,get:()=>np,deleteApiV3TagById:()=>yp,deleteApiV3SystemBackupById:()=>Ni,deleteApiV3RootfolderById:()=>et,deleteApiV3RemotepathmappingById:()=>Zs,deleteApiV3ReleaseprofileById:()=>Ws,deleteApiV3QueueById:()=>qe,deleteApiV3QueueBulk:()=>We,deleteApiV3QualityprofileById:()=>Qe,deleteApiV3NotificationById:()=>Se,deleteApiV3MoviefileById:()=>bs,deleteApiV3MoviefileBulk:()=>Ts,deleteApiV3MovieEditor:()=>Vs,deleteApiV3MovieById:()=>xe,deleteApiV3MetadataById:()=>ss,deleteApiV3IndexerById:()=>he,deleteApiV3IndexerBulk:()=>Na,deleteApiV3ImportlistById:()=>de,deleteApiV3ImportlistBulk:()=>wa,deleteApiV3ExclusionsById:()=>ka,deleteApiV3ExclusionsBulk:()=>Ca,deleteApiV3DownloadclientById:()=>K,deleteApiV3DownloadclientBulk:()=>X,deleteApiV3DelayprofileById:()=>pa,deleteApiV3CustomformatById:()=>$,deleteApiV3CustomformatBulk:()=>U,deleteApiV3CustomfilterById:()=>oa,deleteApiV3CommandById:()=>_i,deleteApiV3BlocklistById:()=>Hi,deleteApiV3BlocklistBulk:()=>qi,deleteApiV3AutotaggingById:()=>Ci,client:()=>t,UpdateResourceSchema:()=>mi,UpdateMechanismSchema:()=>yi,UpdateChangesSchema:()=>ci,UnmappedFolderSchema:()=>di,UiConfigResourceSchema:()=>ui,TrackedDownloadStatusSchema:()=>pi,TrackedDownloadStatusMessageSchema:()=>li,TrackedDownloadStateSchema:()=>si,TaskResourceSchema:()=>ai,TagResourceSchema:()=>ii,TagDetailsResourceSchema:()=>ni,TMDbCountryCodeSchema:()=>oi,SystemResourceSchema:()=>ri,SourceTypeSchema:()=>ti,SortDirectionSchema:()=>ei,SelectOptionSchema:()=>Jn,RuntimeModeSchema:()=>Zn,RootFolderResourceSchema:()=>Xn,RevisionSchema:()=>_n,RescanAfterRefreshTypeSchema:()=>Yn,RenameMovieResourceSchema:()=>Kn,RemotePathMappingResourceSchema:()=>zn,ReleaseResourceSchema:()=>Wn,ReleaseProfileResourceSchema:()=>qn,RejectionTypeSchema:()=>Hn,RatingsSchema:()=>Un,RatingTypeSchema:()=>jn,RatingChildSchema:()=>Qn,QueueStatusSchema:()=>Nn,QueueStatusResourceSchema:()=>$n,QueueResourceSchema:()=>Fn,QueueResourcePagingResourceSchema:()=>Ln,QueueBulkResourceSchema:()=>Mn,QualitySourceSchema:()=>Cn,QualitySchema:()=>Dn,QualityProfileResourceSchema:()=>Sn,QualityProfileQualityItemResourceSchema:()=>vn,QualityModelSchema:()=>kn,QualityDefinitionResourceSchema:()=>Gn,QualityDefinitionLimitsResourceSchema:()=>Pn,ProxyTypeSchema:()=>Rn,ProviderMessageTypeSchema:()=>xn,ProviderMessageSchema:()=>Bn,ProperDownloadTypesSchema:()=>In,ProfileFormatItemResourceSchema:()=>Tn,PrivacyLevelSchema:()=>wn,PingResourceSchema:()=>On,ParsedMovieInfoSchema:()=>bn,ParseResourceSchema:()=>En,NotificationResourceSchema:()=>hn,NamingConfigResourceSchema:()=>Vn,MovieStatusTypeSchema:()=>fn,MovieStatisticsResourceSchema:()=>gn,MovieRuntimeFormatTypeSchema:()=>An,MovieResourceSchema:()=>yn,MovieResourcePagingResourceSchema:()=>mn,MovieHistoryEventTypeSchema:()=>cn,MovieFileResourceSchema:()=>dn,MovieFileListResourceSchema:()=>un,MovieEditorResourceSchema:()=>ln,MovieCollectionResourceSchema:()=>pn,MonitorTypesSchema:()=>sn,ModifierSchema:()=>an,MetadataResourceSchema:()=>nn,MetadataConfigResourceSchema:()=>on,MediaManagementConfigResourceSchema:()=>rn,MediaInfoResourceSchema:()=>tn,MediaCoverTypesSchema:()=>en,MediaCoverSchema:()=>Jo,ManualImportResourceSchema:()=>Zo,ManualImportReprocessResourceSchema:()=>Xo,LogResourceSchema:()=>Yo,LogResourcePagingResourceSchema:()=>_o,LogFileResourceSchema:()=>Ko,LocalizationLanguageResourceSchema:()=>zo,LanguageSchema:()=>qo,LanguageResourceSchema:()=>Wo,IndexerResourceSchema:()=>Ho,IndexerFlagResourceSchema:()=>Uo,IndexerConfigResourceSchema:()=>jo,IndexerBulkResourceSchema:()=>Qo,ImportRejectionResourceSchema:()=>$o,ImportListTypeSchema:()=>No,ImportListResourceSchema:()=>Lo,ImportListExclusionResourceSchema:()=>Mo,ImportListExclusionResourcePagingResourceSchema:()=>Fo,ImportListExclusionBulkResourceSchema:()=>Co,ImportListConfigResourceSchema:()=>So,ImportListBulkResourceSchema:()=>vo,HostConfigResourceSchema:()=>ko,HistoryResourceSchema:()=>Po,HistoryResourcePagingResourceSchema:()=>Go,HealthResourceSchema:()=>Do,HealthCheckResultSchema:()=>Ro,FileDateTypeSchema:()=>xo,FieldSchema:()=>Bo,ExtraFileTypeSchema:()=>Io,ExtraFileResourceSchema:()=>To,DownloadProtocolSchema:()=>wo,DownloadClientResourceSchema:()=>Oo,DownloadClientConfigResourceSchema:()=>bo,DownloadClientBulkResourceSchema:()=>Eo,DiskSpaceResourceSchema:()=>ho,DelayProfileResourceSchema:()=>Vo,DatabaseTypeSchema:()=>fo,CustomFormatSpecificationSchemaSchema:()=>go,CustomFormatResourceSchema:()=>Ao,CustomFormatBulkResourceSchema:()=>mo,CustomFilterResourceSchema:()=>yo,CreditTypeSchema:()=>co,CreditResourceSchema:()=>uo,CommandTriggerSchema:()=>lo,CommandStatusSchema:()=>po,CommandSchema:()=>no,CommandResultSchema:()=>so,CommandResourceSchema:()=>ao,CommandPrioritySchema:()=>io,ColonReplacementFormatSchema:()=>oo,CollectionUpdateResourceSchema:()=>ro,CollectionResourceSchema:()=>to,CollectionMovieResourceSchema:()=>eo,CertificateValidationTypeSchema:()=>Jr,CalendarReleaseTypeSchema:()=>Zr,BlocklistResourceSchema:()=>_r,BlocklistResourcePagingResourceSchema:()=>Xr,BlocklistBulkResourceSchema:()=>Yr,BackupTypeSchema:()=>Kr,BackupResourceSchema:()=>zr,AutoTaggingSpecificationSchemaSchema:()=>Wr,AutoTaggingResourceSchema:()=>qr,AuthenticationTypeSchema:()=>Hr,AuthenticationRequiredTypeSchema:()=>Ur,ApplyTagsSchema:()=>jr,ApiInfoResourceSchema:()=>Qr,AlternativeTitleResourceSchema:()=>$r,AddMovieOptionsSchema:()=>Nr,AddMovieMethodSchema:()=>Lr});var Lr={enum:["manual","list","collection"],type:"string"},Nr={type:"object",properties:{ignoreEpisodesWithFiles:{type:"boolean"},ignoreEpisodesWithoutFiles:{type:"boolean"},monitor:{$ref:"#/components/schemas/MonitorTypes"},searchForMovie:{type:"boolean"},addMethod:{$ref:"#/components/schemas/AddMovieMethod"}},additionalProperties:!1},$r={type:"object",properties:{id:{type:"integer",format:"int32"},sourceType:{$ref:"#/components/schemas/SourceType"},movieMetadataId:{type:"integer",format:"int32"},title:{type:"string",nullable:!0},cleanTitle:{type:"string",nullable:!0}},additionalProperties:!1},Qr={type:"object",properties:{current:{type:"string",nullable:!0},deprecated:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},jr={enum:["add","remove","replace"],type:"string"},Ur={enum:["enabled","disabledForLocalAddresses"],type:"string"},Hr={enum:["none","basic","forms","external"],type:"string"},qr={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},removeTagsAutomatically:{type:"boolean"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},specifications:{type:"array",items:{$ref:"#/components/schemas/AutoTaggingSpecificationSchema"},nullable:!0}},additionalProperties:!1},Wr={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},implementationName:{type:"string",nullable:!0},negate:{type:"boolean"},required:{type:"boolean"},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0}},additionalProperties:!1},zr={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},path:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/BackupType"},size:{type:"integer",format:"int64"},time:{type:"string",format:"date-time"}},additionalProperties:!1},Kr={enum:["scheduled","manual","update"],type:"string"},Yr={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},_r={type:"object",properties:{id:{type:"integer",format:"int32"},movieId:{type:"integer",format:"int32"},sourceTitle:{type:"string",nullable:!0},languages:{type:"array",items:{$ref:"#/components/schemas/Language"},nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},date:{type:"string",format:"date-time"},protocol:{$ref:"#/components/schemas/DownloadProtocol"},indexer:{type:"string",nullable:!0},message:{type:"string",nullable:!0},movie:{$ref:"#/components/schemas/MovieResource"}},additionalProperties:!1},Xr={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/BlocklistResource"},nullable:!0}},additionalProperties:!1},Zr={enum:["cinemaRelease","digitalRelease","physicalRelease"],type:"string"},Jr={enum:["enabled","disabledForLocalAddresses","disabled"],type:"string"},eo={type:"object",properties:{tmdbId:{type:"integer",format:"int32"},imdbId:{type:"string",nullable:!0},title:{type:"string",nullable:!0},cleanTitle:{type:"string",nullable:!0},sortTitle:{type:"string",nullable:!0},status:{$ref:"#/components/schemas/MovieStatusType"},overview:{type:"string",nullable:!0},runtime:{type:"integer",format:"int32"},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},year:{type:"integer",format:"int32"},ratings:{$ref:"#/components/schemas/Ratings"},genres:{type:"array",items:{type:"string"},nullable:!0},folder:{type:"string",nullable:!0},isExisting:{type:"boolean"},isExcluded:{type:"boolean"}},additionalProperties:!1},to={type:"object",properties:{id:{type:"integer",format:"int32"},title:{type:"string",nullable:!0},sortTitle:{type:"string",nullable:!0},tmdbId:{type:"integer",format:"int32"},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},overview:{type:"string",nullable:!0},monitored:{type:"boolean"},rootFolderPath:{type:"string",nullable:!0},qualityProfileId:{type:"integer",format:"int32"},searchOnAdd:{type:"boolean"},minimumAvailability:{$ref:"#/components/schemas/MovieStatusType"},movies:{type:"array",items:{$ref:"#/components/schemas/CollectionMovieResource"},nullable:!0},missingMovies:{type:"integer",format:"int32"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},ro={type:"object",properties:{collectionIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},monitored:{type:"boolean",nullable:!0},monitorMovies:{type:"boolean",nullable:!0},searchOnAdd:{type:"boolean",nullable:!0},qualityProfileId:{type:"integer",format:"int32",nullable:!0},rootFolderPath:{type:"string",nullable:!0},minimumAvailability:{$ref:"#/components/schemas/MovieStatusType"}},additionalProperties:!1},oo={enum:["delete","dash","spaceDash","spaceDashSpace","smart"],type:"string"},no={type:"object",properties:{sendUpdatesToClient:{type:"boolean"},updateScheduledTask:{type:"boolean",readOnly:!0},completionMessage:{type:"string",nullable:!0,readOnly:!0},requiresDiskAccess:{type:"boolean",readOnly:!0},isExclusive:{type:"boolean",readOnly:!0},isTypeExclusive:{type:"boolean",readOnly:!0},isLongRunning:{type:"boolean",readOnly:!0},name:{type:"string",nullable:!0,readOnly:!0},lastExecutionTime:{type:"string",format:"date-time",nullable:!0},lastStartTime:{type:"string",format:"date-time",nullable:!0},trigger:{$ref:"#/components/schemas/CommandTrigger"},suppressMessages:{type:"boolean"},clientUserAgent:{type:"string",nullable:!0}},additionalProperties:!1},io={enum:["normal","high","low"],type:"string"},ao={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},commandName:{type:"string",nullable:!0},message:{type:"string",nullable:!0},body:{$ref:"#/components/schemas/Command"},priority:{$ref:"#/components/schemas/CommandPriority"},status:{$ref:"#/components/schemas/CommandStatus"},result:{$ref:"#/components/schemas/CommandResult"},queued:{type:"string",format:"date-time"},started:{type:"string",format:"date-time",nullable:!0},ended:{type:"string",format:"date-time",nullable:!0},duration:{type:"string",format:"date-span",nullable:!0},exception:{type:"string",nullable:!0},trigger:{$ref:"#/components/schemas/CommandTrigger"},clientUserAgent:{type:"string",nullable:!0},stateChangeTime:{type:"string",format:"date-time",nullable:!0},sendUpdatesToClient:{type:"boolean"},updateScheduledTask:{type:"boolean"},lastExecutionTime:{type:"string",format:"date-time",nullable:!0}},additionalProperties:!1},so={enum:["unknown","successful","unsuccessful"],type:"string"},po={enum:["queued","started","completed","failed","aborted","cancelled","orphaned"],type:"string"},lo={enum:["unspecified","manual","scheduled"],type:"string"},uo={type:"object",properties:{id:{type:"integer",format:"int32"},personName:{type:"string",nullable:!0},creditTmdbId:{type:"string",nullable:!0},personTmdbId:{type:"integer",format:"int32"},movieMetadataId:{type:"integer",format:"int32"},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},department:{type:"string",nullable:!0},job:{type:"string",nullable:!0},character:{type:"string",nullable:!0},order:{type:"integer",format:"int32"},type:{$ref:"#/components/schemas/CreditType"}},additionalProperties:!1},co={enum:["cast","crew"],type:"string"},yo={type:"object",properties:{id:{type:"integer",format:"int32"},type:{type:"string",nullable:!0},label:{type:"string",nullable:!0},filters:{type:"array",items:{type:"object",additionalProperties:{}},nullable:!0}},additionalProperties:!1},mo={type:"object",properties:{ids:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},includeCustomFormatWhenRenaming:{type:"boolean",nullable:!0}},additionalProperties:!1},Ao={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},includeCustomFormatWhenRenaming:{type:"boolean",nullable:!0},specifications:{type:"array",items:{$ref:"#/components/schemas/CustomFormatSpecificationSchema"},nullable:!0}},additionalProperties:!1},go={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},implementationName:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},negate:{type:"boolean"},required:{type:"boolean"},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/CustomFormatSpecificationSchema"},nullable:!0}},additionalProperties:!1},fo={enum:["sqLite","postgreSQL"],type:"string"},Vo={type:"object",properties:{id:{type:"integer",format:"int32"},enableUsenet:{type:"boolean"},enableTorrent:{type:"boolean"},preferredProtocol:{$ref:"#/components/schemas/DownloadProtocol"},usenetDelay:{type:"integer",format:"int32"},torrentDelay:{type:"integer",format:"int32"},bypassIfHighestQuality:{type:"boolean"},bypassIfAboveCustomFormatScore:{type:"boolean"},minimumCustomFormatScore:{type:"integer",format:"int32"},order:{type:"integer",format:"int32"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},ho={type:"object",properties:{id:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},label:{type:"string",nullable:!0},freeSpace:{type:"integer",format:"int64"},totalSpace:{type:"integer",format:"int64"}},additionalProperties:!1},Eo={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},enable:{type:"boolean",nullable:!0},priority:{type:"integer",format:"int32",nullable:!0},removeCompletedDownloads:{type:"boolean",nullable:!0},removeFailedDownloads:{type:"boolean",nullable:!0}},additionalProperties:!1},bo={type:"object",properties:{id:{type:"integer",format:"int32"},downloadClientWorkingFolders:{type:"string",nullable:!0},enableCompletedDownloadHandling:{type:"boolean"},checkForFinishedDownloadInterval:{type:"integer",format:"int32"},autoRedownloadFailed:{type:"boolean"},autoRedownloadFailedFromInteractiveSearch:{type:"boolean"}},additionalProperties:!1},Oo={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/DownloadClientResource"},nullable:!0},enable:{type:"boolean"},protocol:{$ref:"#/components/schemas/DownloadProtocol"},priority:{type:"integer",format:"int32"},removeCompletedDownloads:{type:"boolean"},removeFailedDownloads:{type:"boolean"}},additionalProperties:!1},wo={enum:["unknown","usenet","torrent"],type:"string"},To={type:"object",properties:{id:{type:"integer",format:"int32"},movieId:{type:"integer",format:"int32"},movieFileId:{type:"integer",format:"int32",nullable:!0},relativePath:{type:"string",nullable:!0},extension:{type:"string",nullable:!0},languageTags:{type:"array",items:{type:"string"},nullable:!0},title:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/ExtraFileType"}},additionalProperties:!1},Io={enum:["subtitle","metadata","other"],type:"string"},Bo={type:"object",properties:{order:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},label:{type:"string",nullable:!0},unit:{type:"string",nullable:!0},helpText:{type:"string",nullable:!0},helpTextWarning:{type:"string",nullable:!0},helpLink:{type:"string",nullable:!0},value:{nullable:!0},type:{type:"string",nullable:!0},advanced:{type:"boolean"},selectOptions:{type:"array",items:{$ref:"#/components/schemas/SelectOption"},nullable:!0},selectOptionsProviderAction:{type:"string",nullable:!0},section:{type:"string",nullable:!0},hidden:{type:"string",nullable:!0},privacy:{$ref:"#/components/schemas/PrivacyLevel"},placeholder:{type:"string",nullable:!0},isFloat:{type:"boolean"}},additionalProperties:!1},xo={enum:["none","cinemas","release"],type:"string"},Ro={enum:["ok","notice","warning","error"],type:"string"},Do={type:"object",properties:{id:{type:"integer",format:"int32"},source:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/HealthCheckResult"},message:{type:"string",nullable:!0},wikiUrl:{type:"string",nullable:!0}},additionalProperties:!1},Po={type:"object",properties:{id:{type:"integer",format:"int32"},movieId:{type:"integer",format:"int32"},sourceTitle:{type:"string",nullable:!0},languages:{type:"array",items:{$ref:"#/components/schemas/Language"},nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},qualityCutoffNotMet:{type:"boolean"},date:{type:"string",format:"date-time"},downloadId:{type:"string",nullable:!0},eventType:{$ref:"#/components/schemas/MovieHistoryEventType"},data:{type:"object",additionalProperties:{type:"string",nullable:!0},nullable:!0},movie:{$ref:"#/components/schemas/MovieResource"}},additionalProperties:!1},Go={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/HistoryResource"},nullable:!0}},additionalProperties:!1},ko={type:"object",properties:{id:{type:"integer",format:"int32"},bindAddress:{type:"string",nullable:!0},port:{type:"integer",format:"int32"},sslPort:{type:"integer",format:"int32"},enableSsl:{type:"boolean"},launchBrowser:{type:"boolean"},authenticationMethod:{$ref:"#/components/schemas/AuthenticationType"},authenticationRequired:{$ref:"#/components/schemas/AuthenticationRequiredType"},analyticsEnabled:{type:"boolean"},username:{type:"string",nullable:!0},password:{type:"string",nullable:!0},passwordConfirmation:{type:"string",nullable:!0},logLevel:{type:"string",nullable:!0},logSizeLimit:{type:"integer",format:"int32"},consoleLogLevel:{type:"string",nullable:!0},branch:{type:"string",nullable:!0},apiKey:{type:"string",nullable:!0},sslCertPath:{type:"string",nullable:!0},sslCertPassword:{type:"string",nullable:!0},urlBase:{type:"string",nullable:!0},instanceName:{type:"string",nullable:!0},applicationUrl:{type:"string",nullable:!0},updateAutomatically:{type:"boolean"},updateMechanism:{$ref:"#/components/schemas/UpdateMechanism"},updateScriptPath:{type:"string",nullable:!0},proxyEnabled:{type:"boolean"},proxyType:{$ref:"#/components/schemas/ProxyType"},proxyHostname:{type:"string",nullable:!0},proxyPort:{type:"integer",format:"int32"},proxyUsername:{type:"string",nullable:!0},proxyPassword:{type:"string",nullable:!0},proxyBypassFilter:{type:"string",nullable:!0},proxyBypassLocalAddresses:{type:"boolean"},certificateValidation:{$ref:"#/components/schemas/CertificateValidationType"},backupFolder:{type:"string",nullable:!0},backupInterval:{type:"integer",format:"int32"},backupRetention:{type:"integer",format:"int32"},trustCgnatIpAddresses:{type:"boolean"}},additionalProperties:!1},vo={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},enabled:{type:"boolean",nullable:!0},enableAuto:{type:"boolean",nullable:!0},rootFolderPath:{type:"string",nullable:!0},qualityProfileId:{type:"integer",format:"int32",nullable:!0},minimumAvailability:{$ref:"#/components/schemas/MovieStatusType"}},additionalProperties:!1},So={type:"object",properties:{id:{type:"integer",format:"int32"},listSyncLevel:{type:"string",nullable:!0}},additionalProperties:!1},Co={type:"object",properties:{ids:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},Mo={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/ImportListExclusionResource"},nullable:!0},tmdbId:{type:"integer",format:"int32"},movieTitle:{type:"string",nullable:!0},movieYear:{type:"integer",format:"int32"}},additionalProperties:!1},Fo={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/ImportListExclusionResource"},nullable:!0}},additionalProperties:!1},Lo={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/ImportListResource"},nullable:!0},enabled:{type:"boolean"},enableAuto:{type:"boolean"},monitor:{$ref:"#/components/schemas/MonitorTypes"},rootFolderPath:{type:"string",nullable:!0},qualityProfileId:{type:"integer",format:"int32"},searchOnAdd:{type:"boolean"},minimumAvailability:{$ref:"#/components/schemas/MovieStatusType"},listType:{$ref:"#/components/schemas/ImportListType"},listOrder:{type:"integer",format:"int32"},minRefreshInterval:{type:"string",format:"date-span"}},additionalProperties:!1},No={enum:["program","tmdb","trakt","plex","simkl","other","advanced"],type:"string"},$o={type:"object",properties:{reason:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/RejectionType"}},additionalProperties:!1},Qo={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},enableRss:{type:"boolean",nullable:!0},enableAutomaticSearch:{type:"boolean",nullable:!0},enableInteractiveSearch:{type:"boolean",nullable:!0},priority:{type:"integer",format:"int32",nullable:!0}},additionalProperties:!1},jo={type:"object",properties:{id:{type:"integer",format:"int32"},minimumAge:{type:"integer",format:"int32"},maximumSize:{type:"integer",format:"int32"},retention:{type:"integer",format:"int32"},rssSyncInterval:{type:"integer",format:"int32"},preferIndexerFlags:{type:"boolean"},availabilityDelay:{type:"integer",format:"int32"},allowHardcodedSubs:{type:"boolean"},whitelistedHardcodedSubs:{type:"string",nullable:!0}},additionalProperties:!1},Uo={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},nameLower:{type:"string",nullable:!0,readOnly:!0}},additionalProperties:!1},Ho={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/IndexerResource"},nullable:!0},enableRss:{type:"boolean"},enableAutomaticSearch:{type:"boolean"},enableInteractiveSearch:{type:"boolean"},supportsRss:{type:"boolean"},supportsSearch:{type:"boolean"},protocol:{$ref:"#/components/schemas/DownloadProtocol"},priority:{type:"integer",format:"int32"},downloadClientId:{type:"integer",format:"int32"}},additionalProperties:!1},qo={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0}},additionalProperties:!1},Wo={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},nameLower:{type:"string",nullable:!0,readOnly:!0}},additionalProperties:!1},zo={type:"object",properties:{identifier:{type:"string",nullable:!0}},additionalProperties:!1},Ko={type:"object",properties:{id:{type:"integer",format:"int32"},filename:{type:"string",nullable:!0},lastWriteTime:{type:"string",format:"date-time"},contentsUrl:{type:"string",nullable:!0},downloadUrl:{type:"string",nullable:!0}},additionalProperties:!1},Yo={type:"object",properties:{id:{type:"integer",format:"int32"},time:{type:"string",format:"date-time"},exception:{type:"string",nullable:!0},exceptionType:{type:"string",nullable:!0},level:{type:"string",nullable:!0},logger:{type:"string",nullable:!0},message:{type:"string",nullable:!0},method:{type:"string",nullable:!0}},additionalProperties:!1},_o={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/LogResource"},nullable:!0}},additionalProperties:!1},Xo={type:"object",properties:{id:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},movieId:{type:"integer",format:"int32"},movie:{$ref:"#/components/schemas/MovieResource"},quality:{$ref:"#/components/schemas/QualityModel"},languages:{type:"array",items:{$ref:"#/components/schemas/Language"},nullable:!0},releaseGroup:{type:"string",nullable:!0},downloadId:{type:"string",nullable:!0},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},indexerFlags:{type:"integer",format:"int32"},rejections:{type:"array",items:{$ref:"#/components/schemas/ImportRejectionResource"},nullable:!0}},additionalProperties:!1},Zo={type:"object",properties:{id:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},relativePath:{type:"string",nullable:!0},folderName:{type:"string",nullable:!0},name:{type:"string",nullable:!0},size:{type:"integer",format:"int64"},movie:{$ref:"#/components/schemas/MovieResource"},movieFileId:{type:"integer",format:"int32",nullable:!0},releaseGroup:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},languages:{type:"array",items:{$ref:"#/components/schemas/Language"},nullable:!0},qualityWeight:{type:"integer",format:"int32"},downloadId:{type:"string",nullable:!0},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},indexerFlags:{type:"integer",format:"int32"},rejections:{type:"array",items:{$ref:"#/components/schemas/ImportRejectionResource"},nullable:!0}},additionalProperties:!1},Jo={type:"object",properties:{coverType:{$ref:"#/components/schemas/MediaCoverTypes"},url:{type:"string",nullable:!0},remoteUrl:{type:"string",nullable:!0}},additionalProperties:!1},en={enum:["unknown","poster","banner","fanart","screenshot","headshot","clearlogo"],type:"string"},tn={type:"object",properties:{id:{type:"integer",format:"int32"},audioBitrate:{type:"integer",format:"int64"},audioChannels:{type:"number",format:"double"},audioCodec:{type:"string",nullable:!0},audioLanguages:{type:"string",nullable:!0},audioStreamCount:{type:"integer",format:"int32"},videoBitDepth:{type:"integer",format:"int32"},videoBitrate:{type:"integer",format:"int64"},videoCodec:{type:"string",nullable:!0},videoFps:{type:"number",format:"double"},videoDynamicRange:{type:"string",nullable:!0},videoDynamicRangeType:{type:"string",nullable:!0},resolution:{type:"string",nullable:!0},runTime:{type:"string",nullable:!0},scanType:{type:"string",nullable:!0},subtitles:{type:"string",nullable:!0}},additionalProperties:!1},rn={type:"object",properties:{id:{type:"integer",format:"int32"},autoUnmonitorPreviouslyDownloadedMovies:{type:"boolean"},recycleBin:{type:"string",nullable:!0},recycleBinCleanupDays:{type:"integer",format:"int32"},downloadPropersAndRepacks:{$ref:"#/components/schemas/ProperDownloadTypes"},createEmptyMovieFolders:{type:"boolean"},deleteEmptyFolders:{type:"boolean"},fileDate:{$ref:"#/components/schemas/FileDateType"},rescanAfterRefresh:{$ref:"#/components/schemas/RescanAfterRefreshType"},autoRenameFolders:{type:"boolean"},pathsDefaultStatic:{type:"boolean"},setPermissionsLinux:{type:"boolean"},chmodFolder:{type:"string",nullable:!0},chownGroup:{type:"string",nullable:!0},skipFreeSpaceCheckWhenImporting:{type:"boolean"},minimumFreeSpaceWhenImporting:{type:"integer",format:"int32"},copyUsingHardlinks:{type:"boolean"},useScriptImport:{type:"boolean"},scriptImportPath:{type:"string",nullable:!0},importExtraFiles:{type:"boolean"},extraFileExtensions:{type:"string",nullable:!0},enableMediaInfo:{type:"boolean"}},additionalProperties:!1},on={type:"object",properties:{id:{type:"integer",format:"int32"},certificationCountry:{$ref:"#/components/schemas/TMDbCountryCode"}},additionalProperties:!1},nn={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/MetadataResource"},nullable:!0},enable:{type:"boolean"}},additionalProperties:!1},an={enum:["none","regional","screener","rawhd","brdisk","remux"],type:"string"},sn={enum:["movieOnly","movieAndCollection","none"],type:"string"},pn={type:"object",properties:{title:{type:"string",nullable:!0},tmdbId:{type:"integer",format:"int32"}},additionalProperties:!1},ln={type:"object",properties:{movieIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},monitored:{type:"boolean",nullable:!0},qualityProfileId:{type:"integer",format:"int32",nullable:!0},minimumAvailability:{$ref:"#/components/schemas/MovieStatusType"},rootFolderPath:{type:"string",nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},moveFiles:{type:"boolean"},deleteFiles:{type:"boolean"},addImportExclusion:{type:"boolean"}},additionalProperties:!1},un={type:"object",properties:{movieFileIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},languages:{type:"array",items:{$ref:"#/components/schemas/Language"},nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},edition:{type:"string",nullable:!0},releaseGroup:{type:"string",nullable:!0},sceneName:{type:"string",nullable:!0},indexerFlags:{type:"integer",format:"int32",nullable:!0}},additionalProperties:!1},dn={type:"object",properties:{id:{type:"integer",format:"int32"},movieId:{type:"integer",format:"int32"},relativePath:{type:"string",nullable:!0},path:{type:"string",nullable:!0},size:{type:"integer",format:"int64"},dateAdded:{type:"string",format:"date-time"},sceneName:{type:"string",nullable:!0},releaseGroup:{type:"string",nullable:!0},edition:{type:"string",nullable:!0},languages:{type:"array",items:{$ref:"#/components/schemas/Language"},nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32",nullable:!0},indexerFlags:{type:"integer",format:"int32",nullable:!0},mediaInfo:{$ref:"#/components/schemas/MediaInfoResource"},originalFilePath:{type:"string",nullable:!0},qualityCutoffNotMet:{type:"boolean"}},additionalProperties:!1},cn={enum:["unknown","grabbed","downloadFolderImported","downloadFailed","movieFileDeleted","movieFolderImported","movieFileRenamed","downloadIgnored"],type:"string"},yn={type:"object",properties:{id:{type:"integer",format:"int32"},title:{type:"string",nullable:!0},originalTitle:{type:"string",nullable:!0},originalLanguage:{$ref:"#/components/schemas/Language"},alternateTitles:{type:"array",items:{$ref:"#/components/schemas/AlternativeTitleResource"},nullable:!0},secondaryYear:{type:"integer",format:"int32",nullable:!0},secondaryYearSourceId:{type:"integer",format:"int32"},sortTitle:{type:"string",nullable:!0},sizeOnDisk:{type:"integer",format:"int64",nullable:!0},status:{$ref:"#/components/schemas/MovieStatusType"},overview:{type:"string",nullable:!0},inCinemas:{type:"string",format:"date-time",nullable:!0},physicalRelease:{type:"string",format:"date-time",nullable:!0},digitalRelease:{type:"string",format:"date-time",nullable:!0},releaseDate:{type:"string",format:"date-time",nullable:!0},physicalReleaseNote:{type:"string",nullable:!0},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},website:{type:"string",nullable:!0},remotePoster:{type:"string",nullable:!0},year:{type:"integer",format:"int32"},youTubeTrailerId:{type:"string",nullable:!0},studio:{type:"string",nullable:!0},path:{type:"string",nullable:!0},qualityProfileId:{type:"integer",format:"int32"},hasFile:{type:"boolean",nullable:!0},movieFileId:{type:"integer",format:"int32"},monitored:{type:"boolean"},minimumAvailability:{$ref:"#/components/schemas/MovieStatusType"},isAvailable:{type:"boolean"},folderName:{type:"string",nullable:!0},runtime:{type:"integer",format:"int32"},cleanTitle:{type:"string",nullable:!0},imdbId:{type:"string",nullable:!0},tmdbId:{type:"integer",format:"int32"},titleSlug:{type:"string",nullable:!0},rootFolderPath:{type:"string",nullable:!0},folder:{type:"string",nullable:!0},certification:{type:"string",nullable:!0},genres:{type:"array",items:{type:"string"},nullable:!0},keywords:{type:"array",items:{type:"string"},nullable:!0},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},added:{type:"string",format:"date-time"},addOptions:{$ref:"#/components/schemas/AddMovieOptions"},ratings:{$ref:"#/components/schemas/Ratings"},movieFile:{$ref:"#/components/schemas/MovieFileResource"},collection:{$ref:"#/components/schemas/MovieCollectionResource"},popularity:{type:"number",format:"float"},lastSearchTime:{type:"string",format:"date-time",nullable:!0},statistics:{$ref:"#/components/schemas/MovieStatisticsResource"}},additionalProperties:!1},mn={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/MovieResource"},nullable:!0}},additionalProperties:!1},An={enum:["hoursMinutes","minutes"],type:"string"},gn={type:"object",properties:{movieFileCount:{type:"integer",format:"int32"},sizeOnDisk:{type:"integer",format:"int64"},releaseGroups:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},fn={enum:["tba","announced","inCinemas","released","deleted"],type:"string"},Vn={type:"object",properties:{id:{type:"integer",format:"int32"},renameMovies:{type:"boolean"},replaceIllegalCharacters:{type:"boolean"},colonReplacementFormat:{$ref:"#/components/schemas/ColonReplacementFormat"},standardMovieFormat:{type:"string",nullable:!0},movieFolderFormat:{type:"string",nullable:!0}},additionalProperties:!1},hn={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/NotificationResource"},nullable:!0},link:{type:"string",nullable:!0},onGrab:{type:"boolean"},onDownload:{type:"boolean"},onUpgrade:{type:"boolean"},onRename:{type:"boolean"},onMovieAdded:{type:"boolean"},onMovieDelete:{type:"boolean"},onMovieFileDelete:{type:"boolean"},onMovieFileDeleteForUpgrade:{type:"boolean"},onHealthIssue:{type:"boolean"},includeHealthWarnings:{type:"boolean"},onHealthRestored:{type:"boolean"},onApplicationUpdate:{type:"boolean"},onManualInteractionRequired:{type:"boolean"},supportsOnGrab:{type:"boolean"},supportsOnDownload:{type:"boolean"},supportsOnUpgrade:{type:"boolean"},supportsOnRename:{type:"boolean"},supportsOnMovieAdded:{type:"boolean"},supportsOnMovieDelete:{type:"boolean"},supportsOnMovieFileDelete:{type:"boolean"},supportsOnMovieFileDeleteForUpgrade:{type:"boolean"},supportsOnHealthIssue:{type:"boolean"},supportsOnHealthRestored:{type:"boolean"},supportsOnApplicationUpdate:{type:"boolean"},supportsOnManualInteractionRequired:{type:"boolean"},testCommand:{type:"string",nullable:!0}},additionalProperties:!1},En={type:"object",properties:{id:{type:"integer",format:"int32"},title:{type:"string",nullable:!0},parsedMovieInfo:{$ref:"#/components/schemas/ParsedMovieInfo"},movie:{$ref:"#/components/schemas/MovieResource"},languages:{type:"array",items:{$ref:"#/components/schemas/Language"},nullable:!0},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"}},additionalProperties:!1},bn={type:"object",properties:{movieTitles:{type:"array",items:{type:"string"},nullable:!0},originalTitle:{type:"string",nullable:!0},releaseTitle:{type:"string",nullable:!0},simpleReleaseTitle:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},languages:{type:"array",items:{$ref:"#/components/schemas/Language"},nullable:!0},releaseGroup:{type:"string",nullable:!0},releaseHash:{type:"string",nullable:!0},edition:{type:"string",nullable:!0},year:{type:"integer",format:"int32"},imdbId:{type:"string",nullable:!0},tmdbId:{type:"integer",format:"int32"},hardcodedSubs:{type:"string",nullable:!0},movieTitle:{type:"string",nullable:!0,readOnly:!0},primaryMovieTitle:{type:"string",nullable:!0,readOnly:!0}},additionalProperties:!1},On={type:"object",properties:{status:{type:"string",nullable:!0}},additionalProperties:!1},wn={enum:["normal","password","apiKey","userName"],type:"string"},Tn={type:"object",properties:{id:{type:"integer",format:"int32"},format:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},score:{type:"integer",format:"int32"}},additionalProperties:!1},In={enum:["preferAndUpgrade","doNotUpgrade","doNotPrefer"],type:"string"},Bn={type:"object",properties:{message:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/ProviderMessageType"}},additionalProperties:!1},xn={enum:["info","warning","error"],type:"string"},Rn={enum:["http","socks4","socks5"],type:"string"},Dn={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},source:{$ref:"#/components/schemas/QualitySource"},resolution:{type:"integer",format:"int32"},modifier:{$ref:"#/components/schemas/Modifier"}},additionalProperties:!1},Pn={type:"object",properties:{min:{type:"integer",format:"int32"},max:{type:"integer",format:"int32"}},additionalProperties:!1},Gn={type:"object",properties:{id:{type:"integer",format:"int32"},quality:{$ref:"#/components/schemas/Quality"},title:{type:"string",nullable:!0},weight:{type:"integer",format:"int32"},minSize:{type:"number",format:"double",nullable:!0},maxSize:{type:"number",format:"double",nullable:!0},preferredSize:{type:"number",format:"double",nullable:!0}},additionalProperties:!1},kn={type:"object",properties:{quality:{$ref:"#/components/schemas/Quality"},revision:{$ref:"#/components/schemas/Revision"}},additionalProperties:!1},vn={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/Quality"},items:{type:"array",items:{$ref:"#/components/schemas/QualityProfileQualityItemResource"},nullable:!0},allowed:{type:"boolean"}},additionalProperties:!1},Sn={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},upgradeAllowed:{type:"boolean"},cutoff:{type:"integer",format:"int32"},items:{type:"array",items:{$ref:"#/components/schemas/QualityProfileQualityItemResource"},nullable:!0},minFormatScore:{type:"integer",format:"int32"},cutoffFormatScore:{type:"integer",format:"int32"},minUpgradeFormatScore:{type:"integer",format:"int32"},formatItems:{type:"array",items:{$ref:"#/components/schemas/ProfileFormatItemResource"},nullable:!0},language:{$ref:"#/components/schemas/Language"}},additionalProperties:!1},Cn={enum:["unknown","cam","telesync","telecine","workprint","dvd","tv","webdl","webrip","bluray"],type:"string"},Mn={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},Fn={type:"object",properties:{id:{type:"integer",format:"int32"},movieId:{type:"integer",format:"int32",nullable:!0},movie:{$ref:"#/components/schemas/MovieResource"},languages:{type:"array",items:{$ref:"#/components/schemas/Language"},nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},size:{type:"number",format:"double"},title:{type:"string",nullable:!0},estimatedCompletionTime:{type:"string",format:"date-time",nullable:!0},added:{type:"string",format:"date-time",nullable:!0},status:{$ref:"#/components/schemas/QueueStatus"},trackedDownloadStatus:{$ref:"#/components/schemas/TrackedDownloadStatus"},trackedDownloadState:{$ref:"#/components/schemas/TrackedDownloadState"},statusMessages:{type:"array",items:{$ref:"#/components/schemas/TrackedDownloadStatusMessage"},nullable:!0},errorMessage:{type:"string",nullable:!0},downloadId:{type:"string",nullable:!0},protocol:{$ref:"#/components/schemas/DownloadProtocol"},downloadClient:{type:"string",nullable:!0},downloadClientHasPostImportCategory:{type:"boolean"},indexer:{type:"string",nullable:!0},outputPath:{type:"string",nullable:!0},sizeleft:{type:"number",format:"double",deprecated:!0},timeleft:{type:"string",format:"date-span",nullable:!0,deprecated:!0}},additionalProperties:!1},Ln={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/QueueResource"},nullable:!0}},additionalProperties:!1},Nn={enum:["unknown","queued","paused","downloading","completed","failed","warning","delay","downloadClientUnavailable","fallback"],type:"string"},$n={type:"object",properties:{id:{type:"integer",format:"int32"},totalCount:{type:"integer",format:"int32"},count:{type:"integer",format:"int32"},unknownCount:{type:"integer",format:"int32"},errors:{type:"boolean"},warnings:{type:"boolean"},unknownErrors:{type:"boolean"},unknownWarnings:{type:"boolean"}},additionalProperties:!1},Qn={type:"object",properties:{votes:{type:"integer",format:"int32"},value:{type:"number",format:"double"},type:{$ref:"#/components/schemas/RatingType"}},additionalProperties:!1},jn={enum:["user","critic"],type:"string"},Un={type:"object",properties:{imdb:{$ref:"#/components/schemas/RatingChild"},tmdb:{$ref:"#/components/schemas/RatingChild"},metacritic:{$ref:"#/components/schemas/RatingChild"},rottenTomatoes:{$ref:"#/components/schemas/RatingChild"},trakt:{$ref:"#/components/schemas/RatingChild"}},additionalProperties:!1},Hn={enum:["permanent","temporary"],type:"string"},qn={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},enabled:{type:"boolean"},required:{nullable:!0},ignored:{nullable:!0},indexerId:{type:"integer",format:"int32"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},Wn={type:"object",properties:{id:{type:"integer",format:"int32"},guid:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},qualityWeight:{type:"integer",format:"int32"},age:{type:"integer",format:"int32"},ageHours:{type:"number",format:"double"},ageMinutes:{type:"number",format:"double"},size:{type:"integer",format:"int64"},indexerId:{type:"integer",format:"int32"},indexer:{type:"string",nullable:!0},releaseGroup:{type:"string",nullable:!0},subGroup:{type:"string",nullable:!0},releaseHash:{type:"string",nullable:!0},title:{type:"string",nullable:!0},sceneSource:{type:"boolean"},movieTitles:{type:"array",items:{type:"string"},nullable:!0},languages:{type:"array",items:{$ref:"#/components/schemas/Language"},nullable:!0},mappedMovieId:{type:"integer",format:"int32",nullable:!0},approved:{type:"boolean"},temporarilyRejected:{type:"boolean"},rejected:{type:"boolean"},tmdbId:{type:"integer",format:"int32"},imdbId:{type:"integer",format:"int32"},rejections:{type:"array",items:{type:"string"},nullable:!0},publishDate:{type:"string",format:"date-time"},commentUrl:{type:"string",nullable:!0},downloadUrl:{type:"string",nullable:!0},infoUrl:{type:"string",nullable:!0},movieRequested:{type:"boolean"},downloadAllowed:{type:"boolean"},releaseWeight:{type:"integer",format:"int32"},edition:{type:"string",nullable:!0},magnetUrl:{type:"string",nullable:!0},infoHash:{type:"string",nullable:!0},seeders:{type:"integer",format:"int32",nullable:!0},leechers:{type:"integer",format:"int32",nullable:!0},protocol:{$ref:"#/components/schemas/DownloadProtocol"},indexerFlags:{nullable:!0},movieId:{type:"integer",format:"int32",nullable:!0},downloadClientId:{type:"integer",format:"int32",nullable:!0},downloadClient:{type:"string",nullable:!0},shouldOverride:{type:"boolean",nullable:!0}},additionalProperties:!1},zn={type:"object",properties:{id:{type:"integer",format:"int32"},host:{type:"string",nullable:!0},remotePath:{type:"string",nullable:!0},localPath:{type:"string",nullable:!0}},additionalProperties:!1},Kn={type:"object",properties:{id:{type:"integer",format:"int32"},movieId:{type:"integer",format:"int32"},movieFileId:{type:"integer",format:"int32"},existingPath:{type:"string",nullable:!0},newPath:{type:"string",nullable:!0}},additionalProperties:!1},Yn={enum:["always","afterManual","never"],type:"string"},_n={type:"object",properties:{version:{type:"integer",format:"int32"},real:{type:"integer",format:"int32"},isRepack:{type:"boolean"}},additionalProperties:!1},Xn={type:"object",properties:{id:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},accessible:{type:"boolean"},freeSpace:{type:"integer",format:"int64",nullable:!0},unmappedFolders:{type:"array",items:{$ref:"#/components/schemas/UnmappedFolder"},nullable:!0}},additionalProperties:!1},Zn={enum:["console","service","tray"],type:"string"},Jn={type:"object",properties:{value:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},order:{type:"integer",format:"int32"},hint:{type:"string",nullable:!0},dividerAfter:{type:"boolean"}},additionalProperties:!1},ei={enum:["default","ascending","descending"],type:"string"},ti={enum:["tmdb","mappings","user","indexer"],type:"string"},ri={type:"object",properties:{appName:{type:"string",nullable:!0},instanceName:{type:"string",nullable:!0},version:{type:"string",nullable:!0},buildTime:{type:"string",format:"date-time"},isDebug:{type:"boolean"},isProduction:{type:"boolean"},isAdmin:{type:"boolean"},isUserInteractive:{type:"boolean"},startupPath:{type:"string",nullable:!0},appData:{type:"string",nullable:!0},osName:{type:"string",nullable:!0},osVersion:{type:"string",nullable:!0},isNetCore:{type:"boolean"},isLinux:{type:"boolean"},isOsx:{type:"boolean"},isWindows:{type:"boolean"},isDocker:{type:"boolean"},mode:{$ref:"#/components/schemas/RuntimeMode"},branch:{type:"string",nullable:!0},databaseType:{$ref:"#/components/schemas/DatabaseType"},databaseVersion:{type:"string",nullable:!0},authentication:{$ref:"#/components/schemas/AuthenticationType"},migrationVersion:{type:"integer",format:"int32"},urlBase:{type:"string",nullable:!0},runtimeVersion:{type:"string",nullable:!0},runtimeName:{type:"string",nullable:!0},startTime:{type:"string",format:"date-time"},packageVersion:{type:"string",nullable:!0},packageAuthor:{type:"string",nullable:!0},packageUpdateMechanism:{$ref:"#/components/schemas/UpdateMechanism"},packageUpdateMechanismMessage:{type:"string",nullable:!0}},additionalProperties:!1},oi={enum:["au","br","ca","fr","de","gb","in","ie","it","nz","ro","es","us"],type:"string"},ni={type:"object",properties:{id:{type:"integer",format:"int32"},label:{type:"string",nullable:!0},delayProfileIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},importListIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},notificationIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},releaseProfileIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},indexerIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},downloadClientIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},autoTagIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},movieIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},ii={type:"object",properties:{id:{type:"integer",format:"int32"},label:{type:"string",nullable:!0}},additionalProperties:!1},ai={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},taskName:{type:"string",nullable:!0},interval:{type:"integer",format:"int32"},lastExecution:{type:"string",format:"date-time"},lastStartTime:{type:"string",format:"date-time"},nextExecution:{type:"string",format:"date-time"},lastDuration:{type:"string",format:"date-span",readOnly:!0}},additionalProperties:!1},si={enum:["downloading","importBlocked","importPending","importing","imported","failedPending","failed","ignored"],type:"string"},pi={enum:["ok","warning","error"],type:"string"},li={type:"object",properties:{title:{type:"string",nullable:!0},messages:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},ui={type:"object",properties:{id:{type:"integer",format:"int32"},firstDayOfWeek:{type:"integer",format:"int32"},calendarWeekColumnHeader:{type:"string",nullable:!0},movieRuntimeFormat:{$ref:"#/components/schemas/MovieRuntimeFormatType"},shortDateFormat:{type:"string",nullable:!0},longDateFormat:{type:"string",nullable:!0},timeFormat:{type:"string",nullable:!0},showRelativeDates:{type:"boolean"},enableColorImpairedMode:{type:"boolean"},movieInfoLanguage:{type:"integer",format:"int32"},uiLanguage:{type:"integer",format:"int32"},theme:{type:"string",nullable:!0}},additionalProperties:!1},di={type:"object",properties:{name:{type:"string",nullable:!0},path:{type:"string",nullable:!0},relativePath:{type:"string",nullable:!0}},additionalProperties:!1},ci={type:"object",properties:{new:{type:"array",items:{type:"string"},nullable:!0},fixed:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},yi={enum:["builtIn","script","external","apt","docker"],type:"string"},mi={type:"object",properties:{id:{type:"integer",format:"int32"},version:{type:"string",nullable:!0},branch:{type:"string",nullable:!0},releaseDate:{type:"string",format:"date-time"},fileName:{type:"string",nullable:!0},url:{type:"string",nullable:!0},installed:{type:"boolean"},installedOn:{type:"string",format:"date-time",nullable:!0},installable:{type:"boolean"},latest:{type:"boolean"},changes:{$ref:"#/components/schemas/UpdateChanges"},hash:{type:"string",nullable:!0}},additionalProperties:!1};var Ai=/\{[^{}]+\}/g,D=({allowReserved:e,name:n,value:a})=>{if(a==null)return"";if(typeof a=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${n}=${e?a:encodeURIComponent(a)}`},gi=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},fi=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Vi=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Br=({allowReserved:e,explode:n,name:a,style:s,value:d})=>{if(!n){let u=(e?d:d.map((y)=>encodeURIComponent(y))).join(fi(s));switch(s){case"label":return`.${u}`;case"matrix":return`;${a}=${u}`;case"simple":return u;default:return`${a}=${u}`}}let p=gi(s),l=d.map((u)=>s==="label"||s==="simple"?e?u:encodeURIComponent(u):D({allowReserved:e,name:a,value:u})).join(p);return s==="label"||s==="matrix"?p+l:l},xr=({allowReserved:e,explode:n,name:a,style:s,value:d})=>{if(d instanceof Date)return`${a}=${d.toISOString()}`;if(s!=="deepObject"&&!n){let u=[];Object.entries(d).forEach(([O,E])=>{u=[...u,O,e?E:encodeURIComponent(E)]});let y=u.join(",");switch(s){case"form":return`${a}=${y}`;case"label":return`.${y}`;case"matrix":return`;${a}=${y}`;default:return y}}let p=Vi(s),l=Object.entries(d).map(([u,y])=>D({allowReserved:e,name:s==="deepObject"?`${a}[${u}]`:u,value:y})).join(p);return s==="label"||s==="matrix"?p+l:l},hi=({path:e,url:n})=>{let a=n,s=n.match(Ai);if(s)for(let d of s){let p=!1,l=d.substring(1,d.length-1),u="simple";l.endsWith("*")&&(p=!0,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),u="label"):l.startsWith(";")&&(l=l.substring(1),u="matrix");let y=e[l];if(y==null)continue;if(Array.isArray(y)){a=a.replace(d,Br({explode:p,name:l,style:u,value:y}));continue}if(typeof y=="object"){a=a.replace(d,xr({explode:p,name:l,style:u,value:y}));continue}if(u==="matrix"){a=a.replace(d,`;${D({name:l,value:y})}`);continue}let O=encodeURIComponent(u==="label"?`.${y}`:y);a=a.replace(d,O)}return a},Rr=({allowReserved:e,array:n,object:a}={})=>(s)=>{let d=[];if(s&&typeof s=="object")for(let p in s){let l=s[p];if(l!=null){if(Array.isArray(l)){d=[...d,Br({allowReserved:e,explode:!0,name:p,style:"form",value:l,...n})];continue}if(typeof l=="object"){d=[...d,xr({allowReserved:e,explode:!0,name:p,style:"deepObject",value:l,...a})];continue}d=[...d,D({allowReserved:e,name:p,value:l})]}}return d.join("&")},Ei=(e)=>{if(!e)return;let n=e.split(";")[0].trim();if(n.startsWith("application/json")||n.endsWith("+json"))return"json";if(n==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((a)=>n.startsWith(a)))return"blob";if(n.startsWith("text/"))return"text"},bi=({baseUrl:e,path:n,query:a,querySerializer:s,url:d})=>{let p=d.startsWith("/")?d:`/${d}`,l=e+p;n&&(l=hi({path:n,url:l}));let u=a?s(a):"";return u.startsWith("?")&&(u=u.substring(1)),u&&(l+=`?${u}`),l},Tr=(e,n)=>{let a={...e,...n};return a.baseUrl?.endsWith("/")&&(a.baseUrl=a.baseUrl.substring(0,a.baseUrl.length-1)),a.headers=Dr(e.headers,n.headers),a},Dr=(...e)=>{let n=new Headers;for(let a of e){if(!a||typeof a!="object")continue;let s=a instanceof Headers?a.entries():Object.entries(a);for(let[d,p]of s)if(p===null)n.delete(d);else if(Array.isArray(p))for(let l of p)n.append(d,l);else p!==void 0&&n.set(d,typeof p=="object"?JSON.stringify(p):p)}return n},k=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}exists(e){return this._fns.indexOf(e)!==-1}eject(e){let n=this._fns.indexOf(e);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(e){this._fns=[...this._fns,e]}},Oi=()=>({error:new k,request:new k,response:new k}),Ir=(e,n,a)=>{typeof a=="string"||a instanceof Blob?e.append(n,a):e.append(n,JSON.stringify(a))},V={bodySerializer:(e)=>{let n=new FormData;return Object.entries(e).forEach(([a,s])=>{s!=null&&(Array.isArray(s)?s.forEach((d)=>Ir(n,a,d)):Ir(n,a,s))}),n}},wi={bodySerializer:(e)=>JSON.stringify(e)};var Ti=Rr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Ii={"Content-Type":"application/json"},f=(e={})=>({...wi,baseUrl:"",fetch:globalThis.fetch,headers:Ii,parseAs:"auto",querySerializer:Ti,...e}),h=(e={})=>{let n=Tr(f(),e),a=()=>({...n}),s=(l)=>(n=Tr(n,l),a()),d=Oi(),p=async(l)=>{let u={...n,...l,headers:Dr(n.headers,l.headers)};u.body&&u.bodySerializer&&(u.body=u.bodySerializer(u.body)),u.body||u.headers.delete("Content-Type");let y=bi({baseUrl:u.baseUrl??"",path:u.path,query:u.query,querySerializer:typeof u.querySerializer=="function"?u.querySerializer:Rr(u.querySerializer),url:u.url}),O={redirect:"follow",...u},E=new Request(y,O);for(let b of d.request._fns)E=await b(E,u);let Mr=u.fetch,g=await Mr(E);for(let b of d.response._fns)g=await b(g,E,u);let x={request:E,response:g};if(g.ok){if(g.status===204||g.headers.get("Content-Length")==="0")return{data:{},...x};if(u.parseAs==="stream")return{data:g.body,...x};let b=(u.parseAs==="auto"?Ei(g.headers.get("Content-Type")):u.parseAs)??"json",G=await g[b]();return b==="json"&&u.responseTransformer&&(G=await u.responseTransformer(G)),{data:G,...x}}let R=await g.text();try{R=JSON.parse(R)}catch{}let w=R;for(let b of d.error._fns)w=await b(R,g,E,u);if(w=w||{},u.throwOnError)throw w;return{error:w,...x}};return{connect:(l)=>p({...l,method:"CONNECT"}),delete:(l)=>p({...l,method:"DELETE"}),get:(l)=>p({...l,method:"GET"}),getConfig:a,head:(l)=>p({...l,method:"HEAD"}),interceptors:d,options:(l)=>p({...l,method:"OPTIONS"}),patch:(l)=>p({...l,method:"PATCH"}),post:(l)=>p({...l,method:"POST"}),put:(l)=>p({...l,method:"PUT"}),request:p,setConfig:s,trace:(l)=>p({...l,method:"TRACE"})}};var t=h(f()),Bi=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/alttitle"})},xi=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/alttitle/{id}"})},Ri=(e)=>{return(e?.client??t).get({...e,url:"/api"})},Di=(e)=>{return(e?.client??t).post({...e,...V,headers:{"Content-Type":null,...e?.headers},url:"/login"})},Pi=(e)=>{return(e?.client??t).get({...e,url:"/login"})},Gi=(e)=>{return(e?.client??t).get({...e,url:"/logout"})},ki=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/autotagging"})},vi=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/autotagging"})},Si=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/autotagging/{id}"})},Ci=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/autotagging/{id}"})},Mi=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/autotagging/{id}"})},Fi=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/autotagging/schema"})},Li=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/system/backup"})},Ni=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/system/backup/{id}"})},$i=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/system/backup/restore/{id}"})},Qi=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/system/backup/restore/upload"})},ji=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/blocklist"})},Ui=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/blocklist/movie"})},Hi=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/blocklist/{id}"})},qi=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/blocklist/bulk"})},v=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/calendar"})},S=(e)=>{return(e?.client??t).get({...e,url:"/feed/v3/calendar/radarr.ics"})},Wi=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/collection"})},zi=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/collection"})},Ki=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/collection/{id}"})},Yi=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/collection/{id}"})},C=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/command"})},M=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/command"})},_i=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/command/{id}"})},Xi=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/command/{id}"})},Zi=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/credit"})},Ji=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/credit/{id}"})},ea=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/customfilter"})},ta=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/customfilter"})},ra=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/customfilter/{id}"})},oa=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/customfilter/{id}"})},na=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/customfilter/{id}"})},F=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/customformat"})},L=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/customformat"})},N=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/customformat/{id}"})},$=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/customformat/{id}"})},Q=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/customformat/{id}"})},j=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/customformat/bulk"})},U=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/customformat/bulk"})},H=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/customformat/schema"})},ia=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/wanted/cutoff"})},aa=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/delayprofile"})},sa=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/delayprofile"})},pa=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/delayprofile/{id}"})},la=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/delayprofile/{id}"})},ua=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/delayprofile/{id}"})},da=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/delayprofile/reorder/{id}"})},ca=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/diskspace"})},q=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/downloadclient"})},W=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/downloadclient"})},z=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/downloadclient/{id}"})},K=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/downloadclient/{id}"})},Y=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/downloadclient/{id}"})},_=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/downloadclient/bulk"})},X=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/downloadclient/bulk"})},Z=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/downloadclient/schema"})},J=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/downloadclient/test"})},ee=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/downloadclient/testall"})},ya=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/downloadclient/action/{name}"})},ma=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/downloadclient"})},Aa=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/config/downloadclient/{id}"})},ga=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/downloadclient/{id}"})},fa=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/extrafile"})},te=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/filesystem"})},Va=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/filesystem/type"})},re=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/filesystem/mediafiles"})},oe=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/health"})},ne=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/history"})},ie=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/history/since"})},ae=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/history/movie"})},se=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/history/failed/{id}"})},ha=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/host"})},Ea=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/config/host/{id}"})},ba=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/host/{id}"})},pe=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/importlist"})},le=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/importlist"})},ue=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/importlist/{id}"})},de=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/importlist/{id}"})},ce=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/importlist/{id}"})},Oa=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/importlist/bulk"})},wa=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/importlist/bulk"})},ye=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/importlist/schema"})},me=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/importlist/test"})},Ae=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/importlist/testall"})},Ta=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/importlist/action/{name}"})},Ia=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/importlist"})},Ba=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/config/importlist/{id}"})},xa=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/importlist/{id}"})},Ra=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/exclusions"})},Da=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/exclusions"})},Pa=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/exclusions/paged"})},Ga=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/exclusions/{id}"})},ka=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/exclusions/{id}"})},va=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/exclusions/{id}"})},Sa=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/exclusions/bulk"})},Ca=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/exclusions/bulk"})},Ma=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/importlist/movie"})},Fa=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/importlist/movie"})},ge=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/indexer"})},fe=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/indexer"})},Ve=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/indexer/{id}"})},he=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/indexer/{id}"})},Ee=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/indexer/{id}"})},La=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/indexer/bulk"})},Na=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/indexer/bulk"})},be=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/indexer/schema"})},Oe=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/indexer/test"})},we=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/indexer/testall"})},$a=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/indexer/action/{name}"})},Qa=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/indexer"})},ja=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/config/indexer/{id}"})},Ua=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/indexer/{id}"})},Ha=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/indexerflag"})},qa=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/language"})},Wa=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/language/{id}"})},za=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/localization"})},Ka=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/localization/language"})},Ya=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/log"})},_a=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/log/file"})},Xa=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/log/file/{filename}"})},Za=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/manualimport"})},Ja=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/manualimport"})},es=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/mediacover/{movieId}/{filename}"})},ts=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/mediamanagement"})},rs=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/config/mediamanagement/{id}"})},os=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/mediamanagement/{id}"})},ns=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/metadata"})},is=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/metadata"})},as=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/metadata/{id}"})},ss=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/metadata/{id}"})},ps=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/metadata/{id}"})},ls=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/metadata/schema"})},us=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/metadata/test"})},ds=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/metadata/testall"})},cs=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/metadata/action/{name}"})},ys=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/metadata"})},ms=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/config/metadata/{id}"})},As=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/metadata/{id}"})},gs=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/wanted/missing"})},Te=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/movie"})},Ie=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/movie"})},Be=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/movie/{id}"})},xe=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/movie/{id}"})},Re=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/movie/{id}"})},fs=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/movie/editor"})},Vs=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/movie/editor"})},hs=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/moviefile"})},Es=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/moviefile/{id}"})},bs=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/moviefile/{id}"})},Os=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/moviefile/{id}"})},ws=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/moviefile/editor"})},Ts=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/moviefile/bulk"})},Is=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/moviefile/bulk"})},Bs=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/movie/{id}/folder"})},De=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/movie/import"})},xs=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/movie/lookup/tmdb"})},Rs=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/movie/lookup/imdb"})},Pe=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/movie/lookup"})},Ds=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/naming"})},Ps=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/config/naming/{id}"})},Gs=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/naming/{id}"})},ks=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/naming/examples"})},Ge=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/notification"})},ke=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/notification"})},ve=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/notification/{id}"})},Se=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/notification/{id}"})},Ce=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/notification/{id}"})},Me=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/notification/schema"})},Fe=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/notification/test"})},Le=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/notification/testall"})},vs=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/notification/action/{name}"})},Ss=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/parse"})},Cs=(e)=>{return(e?.client??t).get({...e,url:"/ping"})},Ms=(e)=>{return(e?.client??t).head({...e,url:"/ping"})},Fs=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/qualitydefinition/{id}"})},Ls=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/qualitydefinition/{id}"})},Ns=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/qualitydefinition"})},$s=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/qualitydefinition/update"})},Qs=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/qualitydefinition/limits"})},Ne=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/qualityprofile"})},$e=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/qualityprofile"})},Qe=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/qualityprofile/{id}"})},je=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/qualityprofile/{id}"})},Ue=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/qualityprofile/{id}"})},He=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/qualityprofile/schema"})},qe=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/queue/{id}"})},We=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/queue/bulk"})},ze=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/queue"})},Ke=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/queue/grab/{id}"})},Ye=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/queue/grab/bulk"})},_e=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/queue/details"})},Xe=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/queue/status"})},js=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/release"})},Us=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/release"})},Hs=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/releaseprofile"})},qs=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/releaseprofile"})},Ws=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/releaseprofile/{id}"})},zs=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/releaseprofile/{id}"})},Ks=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/releaseprofile/{id}"})},Ys=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/release/push"})},_s=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/remotepathmapping"})},Xs=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/remotepathmapping"})},Zs=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/remotepathmapping/{id}"})},Js=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/remotepathmapping/{id}"})},ep=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/remotepathmapping/{id}"})},tp=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/rename"})},Ze=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/rootfolder"})},Je=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/rootfolder"})},et=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/rootfolder/{id}"})},rp=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/rootfolder/{id}"})},op=(e)=>{return(e?.client??t).get({...e,url:"/content/{path}"})},np=(e)=>{return(e?.client??t).get({...e,url:"/"})},ip=(e)=>{return(e?.client??t).get({...e,url:"/{path}"})},tt=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/system/status"})},ap=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/system/routes"})},sp=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/system/routes/duplicate"})},pp=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/system/shutdown"})},lp=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/system/restart"})},up=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/tag"})},dp=(e)=>{return(e?.client??t).post({...e,url:"/api/v3/tag"})},cp=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/tag/{id}"})},yp=(e)=>{return(e?.client??t).delete({...e,url:"/api/v3/tag/{id}"})},mp=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/tag/{id}"})},Ap=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/tag/detail"})},gp=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/tag/detail/{id}"})},fp=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/system/task"})},Vp=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/system/task/{id}"})},hp=(e)=>{return(e?.client??t).put({...e,url:"/api/v3/config/ui/{id}"})},Ep=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/ui/{id}"})},bp=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/config/ui"})},Op=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/update"})},wp=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/log/file/update"})},Tp=(e)=>{return(e?.client??t).get({...e,url:"/api/v3/log/file/update/{filename}"})};var At={};T(At,{putApiV5SettingsUpdate:()=>tl,putApiV5SeriesById:()=>pt,postLogin:()=>zp,postApiV5Series:()=>at,headPing:()=>Xp,getPing:()=>_p,getLogout:()=>Yp,getLogin:()=>Kp,getContentByPath:()=>Zp,getByPath:()=>el,getApiV5Update:()=>ct,getApiV5SettingsUpdateById:()=>mt,getApiV5SettingsUpdate:()=>yt,getApiV5SeriesLookup:()=>dt,getApiV5SeriesByIdFolder:()=>ut,getApiV5SeriesById:()=>st,getApiV5Series:()=>it,getApiV5Log:()=>nt,getApi:()=>ot,get:()=>Jp,deleteApiV5SeriesById:()=>lt,client:()=>c,UpdateSettingsResourceSchema:()=>Wp,UpdateResourceSchema:()=>qp,UpdateMechanismSchema:()=>Hp,UpdateChangesSchema:()=>Up,SortDirectionSchema:()=>jp,SeriesTypesSchema:()=>Qp,SeriesStatusTypeSchema:()=>$p,SeriesStatisticsResourceSchema:()=>Np,SeriesResourceSchema:()=>Lp,SeasonStatisticsResourceSchema:()=>Fp,SeasonResourceSchema:()=>Mp,RatingsSchema:()=>Cp,PingResourceSchema:()=>Sp,NewItemMonitorTypesSchema:()=>vp,MonitorTypesSchema:()=>kp,MediaCoverTypesSchema:()=>Gp,MediaCoverSchema:()=>Pp,LogResourceSchema:()=>Rp,LogResourcePagingResourceSchema:()=>Dp,LanguageSchema:()=>xp,AlternateTitleResourceSchema:()=>Bp,AddSeriesOptionsSchema:()=>Ip});var Ip={type:"object",properties:{ignoreEpisodesWithFiles:{type:"boolean"},ignoreEpisodesWithoutFiles:{type:"boolean"},monitor:{$ref:"#/components/schemas/MonitorTypes"},searchForMissingEpisodes:{type:"boolean"},searchForCutoffUnmetEpisodes:{type:"boolean"}},additionalProperties:!1},Bp={type:"object",properties:{title:{type:"string",nullable:!0},seasonNumber:{type:"integer",format:"int32",nullable:!0},sceneSeasonNumber:{type:"integer",format:"int32",nullable:!0},sceneOrigin:{type:"string",nullable:!0},comment:{type:"string",nullable:!0}},additionalProperties:!1},xp={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0}},additionalProperties:!1},Rp={required:["level","logger","message"],type:"object",properties:{id:{type:"integer",format:"int32"},time:{type:"string",format:"date-time"},exception:{type:"string",nullable:!0},exceptionType:{type:"string",nullable:!0},level:{type:"string",nullable:!0},logger:{type:"string",nullable:!0},message:{type:"string",nullable:!0}},additionalProperties:!1},Dp={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/LogResource"},nullable:!0}},additionalProperties:!1},Pp={type:"object",properties:{coverType:{$ref:"#/components/schemas/MediaCoverTypes"},url:{type:"string",nullable:!0},remoteUrl:{type:"string",nullable:!0}},additionalProperties:!1},Gp={enum:["unknown","poster","banner","fanart","screenshot","headshot","clearlogo"],type:"string"},kp={enum:["unknown","all","future","missing","existing","firstSeason","lastSeason","latestSeason","pilot","recent","monitorSpecials","unmonitorSpecials","none","skip"],type:"string"},vp={enum:["all","none"],type:"string"},Sp={type:"object",properties:{status:{type:"string",nullable:!0}},additionalProperties:!1},Cp={type:"object",properties:{votes:{type:"integer",format:"int32"},value:{type:"number",format:"double"}},additionalProperties:!1},Mp={type:"object",properties:{seasonNumber:{type:"integer",format:"int32"},monitored:{type:"boolean"},statistics:{$ref:"#/components/schemas/SeasonStatisticsResource"},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0}},additionalProperties:!1},Fp={type:"object",properties:{nextAiring:{type:"string",format:"date-time",nullable:!0},previousAiring:{type:"string",format:"date-time",nullable:!0},episodeFileCount:{type:"integer",format:"int32"},episodeCount:{type:"integer",format:"int32"},totalEpisodeCount:{type:"integer",format:"int32"},sizeOnDisk:{type:"integer",format:"int64"},releaseGroups:{type:"array",items:{type:"string"},nullable:!0},percentOfEpisodes:{type:"number",format:"double",readOnly:!0}},additionalProperties:!1},Lp={type:"object",properties:{id:{type:"integer",format:"int32"},title:{type:"string",nullable:!0},alternateTitles:{type:"array",items:{$ref:"#/components/schemas/AlternateTitleResource"},nullable:!0},sortTitle:{type:"string",nullable:!0},status:{$ref:"#/components/schemas/SeriesStatusType"},ended:{type:"boolean",readOnly:!0},profileName:{type:"string",nullable:!0},overview:{type:"string",nullable:!0},nextAiring:{type:"string",format:"date-time",nullable:!0},previousAiring:{type:"string",format:"date-time",nullable:!0},network:{type:"string",nullable:!0},airTime:{type:"string",nullable:!0},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},originalLanguage:{$ref:"#/components/schemas/Language"},remotePoster:{type:"string",nullable:!0},seasons:{type:"array",items:{$ref:"#/components/schemas/SeasonResource"},nullable:!0},year:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},qualityProfileId:{type:"integer",format:"int32"},seasonFolder:{type:"boolean"},monitored:{type:"boolean"},monitorNewItems:{$ref:"#/components/schemas/NewItemMonitorTypes"},useSceneNumbering:{type:"boolean"},runtime:{type:"integer",format:"int32"},tvdbId:{type:"integer",format:"int32"},tvRageId:{type:"integer",format:"int32"},tvMazeId:{type:"integer",format:"int32"},tmdbId:{type:"integer",format:"int32"},malIds:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},aniListIds:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},firstAired:{type:"string",format:"date-time",nullable:!0},lastAired:{type:"string",format:"date-time",nullable:!0},seriesType:{$ref:"#/components/schemas/SeriesTypes"},cleanTitle:{type:"string",nullable:!0},imdbId:{type:"string",nullable:!0},titleSlug:{type:"string",nullable:!0},rootFolderPath:{type:"string",nullable:!0},folder:{type:"string",nullable:!0},certification:{type:"string",nullable:!0},genres:{type:"array",items:{type:"string"},nullable:!0},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},added:{type:"string",format:"date-time"},addOptions:{$ref:"#/components/schemas/AddSeriesOptions"},ratings:{$ref:"#/components/schemas/Ratings"},statistics:{$ref:"#/components/schemas/SeriesStatisticsResource"},episodesChanged:{type:"boolean",nullable:!0}},additionalProperties:!1},Np={type:"object",properties:{seasonCount:{type:"integer",format:"int32"},episodeFileCount:{type:"integer",format:"int32"},episodeCount:{type:"integer",format:"int32"},totalEpisodeCount:{type:"integer",format:"int32"},sizeOnDisk:{type:"integer",format:"int64"},releaseGroups:{type:"array",items:{type:"string"},nullable:!0},percentOfEpisodes:{type:"number",format:"double",readOnly:!0}},additionalProperties:!1},$p={enum:["continuing","ended","upcoming","deleted"],type:"string"},Qp={enum:["standard","daily","anime"],type:"string"},jp={enum:["default","ascending","descending"],type:"string"},Up={type:"object",properties:{new:{type:"array",items:{type:"string"},nullable:!0},fixed:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},Hp={enum:["builtIn","script","external","apt","docker"],type:"string"},qp={required:["branch","changes","fileName","hash","url","version"],type:"object",properties:{id:{type:"integer",format:"int32"},version:{type:"string",nullable:!0},branch:{type:"string",nullable:!0},releaseDate:{type:"string",format:"date-time"},fileName:{type:"string",nullable:!0},url:{type:"string",nullable:!0},installed:{type:"boolean"},installedOn:{type:"string",format:"date-time",nullable:!0},installable:{type:"boolean"},latest:{type:"boolean"},changes:{$ref:"#/components/schemas/UpdateChanges"},hash:{type:"string",nullable:!0}},additionalProperties:!1},Wp={type:"object",properties:{id:{type:"integer",format:"int32"},branch:{type:"string",nullable:!0},updateAutomatically:{type:"boolean"},updateMechanism:{$ref:"#/components/schemas/UpdateMechanism"},updateScriptPath:{type:"string",nullable:!0}},additionalProperties:!1};var c=h(f()),ot=(e)=>{return(e?.client??c).get({...e,url:"/api"})},zp=(e)=>{return(e?.client??c).post({...e,...V,headers:{"Content-Type":null,...e?.headers},url:"/login"})},Kp=(e)=>{return(e?.client??c).get({...e,url:"/login"})},Yp=(e)=>{return(e?.client??c).get({...e,url:"/logout"})},nt=(e)=>{return(e?.client??c).get({...e,url:"/api/v5/log"})},_p=(e)=>{return(e?.client??c).get({...e,url:"/ping"})},Xp=(e)=>{return(e?.client??c).head({...e,url:"/ping"})},it=(e)=>{return(e?.client??c).get({...e,url:"/api/v5/series"})},at=(e)=>{return(e?.client??c).post({...e,url:"/api/v5/series"})},st=(e)=>{return(e?.client??c).get({...e,url:"/api/v5/series/{id}"})},pt=(e)=>{return(e?.client??c).put({...e,url:"/api/v5/series/{id}"})},lt=(e)=>{return(e?.client??c).delete({...e,url:"/api/v5/series/{id}"})},ut=(e)=>{return(e?.client??c).get({...e,url:"/api/v5/series/{id}/folder"})},dt=(e)=>{return(e?.client??c).get({...e,url:"/api/v5/series/lookup"})},Zp=(e)=>{return(e?.client??c).get({...e,url:"/content/{path}"})},Jp=(e)=>{return(e?.client??c).get({...e,url:"/"})},el=(e)=>{return(e?.client??c).get({...e,url:"/{path}"})},ct=(e)=>{return(e?.client??c).get({...e,url:"/api/v5/update"})},yt=(e)=>{return(e?.client??c).get({...e,url:"/api/v5/settings/update"})},tl=(e)=>{return(e?.client??c).put({...e,url:"/api/v5/settings/update"})},mt=(e)=>{return(e?.client??c).get({...e,url:"/api/v5/settings/update/{id}"})};var _t={};T(_t,{putApiV1TrackfileEditor:()=>yA,putApiV1TrackfileById:()=>uA,putApiV1TagById:()=>Jm,putApiV1RootfolderById:()=>jm,putApiV1RemotepathmappingById:()=>Mm,putApiV1ReleaseprofileById:()=>Dm,putApiV1QualityprofileById:()=>Ht,putApiV1QualitydefinitionUpdate:()=>Vm,putApiV1QualitydefinitionById:()=>Am,putApiV1NotificationById:()=>nm,putApiV1MetadataprofileById:()=>qy,putApiV1MetadataById:()=>Sy,putApiV1IndexerById:()=>ay,putApiV1IndexerBulk:()=>uy,putApiV1ImportlistexclusionById:()=>ty,putApiV1ImportlistById:()=>Hc,putApiV1ImportlistBulk:()=>Kc,putApiV1DownloadclientById:()=>Ec,putApiV1DownloadclientBulk:()=>Tc,putApiV1DelayprofileReorderById:()=>fc,putApiV1DelayprofileById:()=>Ac,putApiV1CustomformatById:()=>vt,putApiV1CustomformatBulk:()=>Ft,putApiV1CustomfilterById:()=>ac,putApiV1ConfigUiById:()=>AA,putApiV1ConfigNamingById:()=>em,putApiV1ConfigMetadataproviderById:()=>Yy,putApiV1ConfigMediamanagementById:()=>Gy,putApiV1ConfigIndexerById:()=>fy,putApiV1ConfigHostById:()=>Qc,putApiV1ConfigDownloadclientById:()=>Gc,putApiV1AutotaggingById:()=>Hd,putApiV1ArtistEditor:()=>Ld,putApiV1ArtistById:()=>wt,putApiV1AlbumMonitor:()=>Cd,putApiV1AlbumById:()=>Vt,postLogin:()=>$d,postApiV1Tag:()=>rA,postApiV1SystemShutdown:()=>_m,postApiV1SystemRestart:()=>Xm,postApiV1SystemBackupRestoreUpload:()=>Zd,postApiV1SystemBackupRestoreById:()=>Xd,postApiV1Rootfolder:()=>zt,postApiV1Remotepathmapping:()=>Fm,postApiV1Releaseprofile:()=>km,postApiV1ReleasePush:()=>vm,postApiV1Release:()=>Bm,postApiV1QueueGrabById:()=>Om,postApiV1QueueGrabBulk:()=>wm,postApiV1Qualityprofile:()=>Qt,postApiV1NotificationTestall:()=>um,postApiV1NotificationTest:()=>lm,postApiV1NotificationActionByName:()=>dm,postApiV1Notification:()=>sm,postApiV1Metadataprofile:()=>jy,postApiV1MetadataTestall:()=>$y,postApiV1MetadataTest:()=>Ny,postApiV1MetadataActionByName:()=>Qy,postApiV1Metadata:()=>Fy,postApiV1Manualimport:()=>By,postApiV1IndexerTestall:()=>my,postApiV1IndexerTest:()=>yy,postApiV1IndexerActionByName:()=>Ay,postApiV1Indexer:()=>ly,postApiV1Importlistexclusion:()=>ny,postApiV1ImportlistTestall:()=>Zc,postApiV1ImportlistTest:()=>Xc,postApiV1ImportlistActionByName:()=>Jc,postApiV1Importlist:()=>zc,postApiV1HistoryFailedById:()=>Nc,postApiV1DownloadclientTestall:()=>Rc,postApiV1DownloadclientTest:()=>xc,postApiV1DownloadclientActionByName:()=>Dc,postApiV1Downloadclient:()=>wc,postApiV1Delayprofile:()=>cc,postApiV1Customformat:()=>Mt,postApiV1Customfilter:()=>lc,postApiV1Command:()=>Pt,postApiV1Autotagging:()=>Wd,postApiV1Artist:()=>Bt,postApiV1Albumstudio:()=>Md,postApiV1Album:()=>ft,headPing:()=>mm,getPing:()=>ym,getLogout:()=>jd,getLogin:()=>Qd,getFeedV1CalendarLidarrIcs:()=>Dt,getContentByPath:()=>qm,getByPath:()=>zm,getApiV1WantedMissingById:()=>Zy,getApiV1WantedMissing:()=>Xy,getApiV1WantedCutoffById:()=>dc,getApiV1WantedCutoff:()=>uc,getApiV1Update:()=>VA,getApiV1TrackfileById:()=>lA,getApiV1Trackfile:()=>cA,getApiV1TrackById:()=>pA,getApiV1Track:()=>sA,getApiV1TagDetailById:()=>oA,getApiV1TagDetail:()=>nA,getApiV1TagById:()=>Zm,getApiV1Tag:()=>tA,getApiV1SystemTaskById:()=>aA,getApiV1SystemTask:()=>iA,getApiV1SystemStatus:()=>Yt,getApiV1SystemRoutesDuplicate:()=>Ym,getApiV1SystemRoutes:()=>Km,getApiV1SystemBackup:()=>Yd,getApiV1Search:()=>Hm,getApiV1RootfolderById:()=>Qm,getApiV1Rootfolder:()=>Kt,getApiV1Retag:()=>$m,getApiV1Rename:()=>Nm,getApiV1RemotepathmappingById:()=>Sm,getApiV1Remotepathmapping:()=>Lm,getApiV1ReleaseprofileById:()=>Rm,getApiV1Releaseprofile:()=>Gm,getApiV1Release:()=>xm,getApiV1QueueStatus:()=>Im,getApiV1QueueDetails:()=>Tm,getApiV1Queue:()=>bm,getApiV1QualityprofileSchema:()=>Wt,getApiV1QualityprofileById:()=>qt,getApiV1Qualityprofile:()=>jt,getApiV1QualitydefinitionById:()=>gm,getApiV1Qualitydefinition:()=>fm,getApiV1Parse:()=>cm,getApiV1NotificationSchema:()=>pm,getApiV1NotificationById:()=>om,getApiV1Notification:()=>am,getApiV1MetadataprofileSchema:()=>zy,getApiV1MetadataprofileById:()=>Wy,getApiV1Metadataprofile:()=>Uy,getApiV1MetadataSchema:()=>Ly,getApiV1MetadataById:()=>vy,getApiV1Metadata:()=>My,getApiV1MediacoverArtistByArtistIdByFilename:()=>Ry,getApiV1MediacoverAlbumByAlbumIdByFilename:()=>Dy,getApiV1Manualimport:()=>xy,getApiV1LogFileUpdateByFilename:()=>EA,getApiV1LogFileUpdate:()=>hA,getApiV1LogFileByFilename:()=>Iy,getApiV1LogFile:()=>Ty,getApiV1Log:()=>wy,getApiV1Localization:()=>Oy,getApiV1LanguageById:()=>Ey,getApiV1Language:()=>by,getApiV1Indexerflag:()=>hy,getApiV1IndexerSchema:()=>cy,getApiV1IndexerById:()=>iy,getApiV1Indexer:()=>py,getApiV1ImportlistexclusionById:()=>ey,getApiV1Importlistexclusion:()=>oy,getApiV1ImportlistSchema:()=>_c,getApiV1ImportlistById:()=>Uc,getApiV1Importlist:()=>Wc,getApiV1HistorySince:()=>Fc,getApiV1HistoryArtist:()=>Lc,getApiV1History:()=>Mc,getApiV1Health:()=>$t,getApiV1FilesystemType:()=>Sc,getApiV1FilesystemMediafiles:()=>Cc,getApiV1Filesystem:()=>vc,getApiV1DownloadclientSchema:()=>Bc,getApiV1DownloadclientById:()=>hc,getApiV1Downloadclient:()=>Oc,getApiV1Diskspace:()=>Vc,getApiV1DelayprofileById:()=>gc,getApiV1Delayprofile:()=>yc,getApiV1CustomformatSchema:()=>Nt,getApiV1CustomformatById:()=>kt,getApiV1Customformat:()=>Ct,getApiV1CustomfilterById:()=>ic,getApiV1Customfilter:()=>pc,getApiV1ConfigUiById:()=>gA,getApiV1ConfigUi:()=>fA,getApiV1ConfigNamingExamples:()=>rm,getApiV1ConfigNamingById:()=>Jy,getApiV1ConfigNaming:()=>tm,getApiV1ConfigMetadataproviderById:()=>Ky,getApiV1ConfigMetadataprovider:()=>_y,getApiV1ConfigMediamanagementById:()=>Py,getApiV1ConfigMediamanagement:()=>ky,getApiV1ConfigIndexerById:()=>gy,getApiV1ConfigIndexer:()=>Vy,getApiV1ConfigHostById:()=>$c,getApiV1ConfigHost:()=>jc,getApiV1ConfigDownloadclientById:()=>Pc,getApiV1ConfigDownloadclient:()=>kc,getApiV1CommandById:()=>oc,getApiV1Command:()=>Gt,getApiV1CalendarById:()=>rc,getApiV1Calendar:()=>Rt,getApiV1Blocklist:()=>Jd,getApiV1AutotaggingSchema:()=>Kd,getApiV1AutotaggingById:()=>Ud,getApiV1Autotagging:()=>zd,getApiV1ArtistLookup:()=>xt,getApiV1ArtistById:()=>Ot,getApiV1Artist:()=>It,getApiV1AlbumLookup:()=>bt,getApiV1AlbumById:()=>Et,getApiV1Album:()=>gt,getApi:()=>Fd,get:()=>Wm,deleteApiV1TrackfileById:()=>dA,deleteApiV1TrackfileBulk:()=>mA,deleteApiV1TagById:()=>eA,deleteApiV1SystemBackupById:()=>_d,deleteApiV1RootfolderById:()=>Um,deleteApiV1RemotepathmappingById:()=>Cm,deleteApiV1ReleaseprofileById:()=>Pm,deleteApiV1QueueById:()=>hm,deleteApiV1QueueBulk:()=>Em,deleteApiV1QualityprofileById:()=>Ut,deleteApiV1NotificationById:()=>im,deleteApiV1MetadataprofileById:()=>Hy,deleteApiV1MetadataById:()=>Cy,deleteApiV1IndexerById:()=>sy,deleteApiV1IndexerBulk:()=>dy,deleteApiV1ImportlistexclusionById:()=>ry,deleteApiV1ImportlistById:()=>qc,deleteApiV1ImportlistBulk:()=>Yc,deleteApiV1DownloadclientById:()=>bc,deleteApiV1DownloadclientBulk:()=>Ic,deleteApiV1DelayprofileById:()=>mc,deleteApiV1CustomformatById:()=>St,deleteApiV1CustomformatBulk:()=>Lt,deleteApiV1CustomfilterById:()=>sc,deleteApiV1CommandById:()=>nc,deleteApiV1BlocklistById:()=>ec,deleteApiV1BlocklistBulk:()=>tc,deleteApiV1AutotaggingById:()=>qd,deleteApiV1ArtistEditor:()=>Nd,deleteApiV1ArtistById:()=>Tt,deleteApiV1AlbumById:()=>ht,client:()=>r,WriteAudioTagsTypeSchema:()=>Sd,UpdateResourceSchema:()=>vd,UpdateMechanismSchema:()=>kd,UpdateChangesSchema:()=>Gd,UiConfigResourceSchema:()=>Pd,TrackedDownloadStatusSchema:()=>Rd,TrackedDownloadStatusMessageSchema:()=>Dd,TrackedDownloadStateSchema:()=>xd,TrackResourceSchema:()=>Bd,TrackFileResourceSchema:()=>Id,TrackFileListResourceSchema:()=>Td,TaskResourceSchema:()=>wd,TagResourceSchema:()=>Od,TagDifferenceSchema:()=>bd,TagDetailsResourceSchema:()=>Ed,SystemResourceSchema:()=>hd,SortDirectionSchema:()=>Vd,SelectOptionSchema:()=>fd,SecondaryAlbumTypeSchema:()=>gd,SearchResourceSchema:()=>Ad,RuntimeModeSchema:()=>md,RootFolderResourceSchema:()=>yd,RevisionSchema:()=>cd,RetagTrackResourceSchema:()=>dd,RescanAfterRefreshTypeSchema:()=>ud,RenameTrackResourceSchema:()=>ld,RemotePathMappingResourceSchema:()=>pd,ReleaseStatusSchema:()=>sd,ReleaseResourceSchema:()=>ad,ReleaseProfileResourceSchema:()=>id,RejectionTypeSchema:()=>nd,RejectionSchema:()=>od,RatingsSchema:()=>rd,QueueStatusResourceSchema:()=>td,QueueResourceSchema:()=>Ju,QueueResourcePagingResourceSchema:()=>ed,QueueBulkResourceSchema:()=>Zu,QualitySchema:()=>zu,QualityProfileResourceSchema:()=>Xu,QualityProfileQualityItemResourceSchema:()=>_u,QualityModelSchema:()=>Yu,QualityDefinitionResourceSchema:()=>Ku,ProxyTypeSchema:()=>Wu,ProviderMessageTypeSchema:()=>qu,ProviderMessageSchema:()=>Hu,ProperDownloadTypesSchema:()=>Uu,ProfileSecondaryAlbumTypeItemResourceSchema:()=>ju,ProfileReleaseStatusItemResourceSchema:()=>Qu,ProfilePrimaryAlbumTypeItemResourceSchema:()=>$u,ProfileFormatItemResourceSchema:()=>Nu,PrivacyLevelSchema:()=>Lu,PrimaryAlbumTypeSchema:()=>Fu,PingResourceSchema:()=>Mu,ParsedTrackInfoSchema:()=>Cu,ParsedAlbumInfoSchema:()=>Su,ParseResourceSchema:()=>vu,NotificationResourceSchema:()=>ku,NewItemMonitorTypesSchema:()=>Gu,NamingConfigResourceSchema:()=>Pu,MonitoringOptionsSchema:()=>Du,MonitorTypesSchema:()=>Ru,MetadataResourceSchema:()=>xu,MetadataProviderConfigResourceSchema:()=>Bu,MetadataProfileResourceSchema:()=>Iu,MemberSchema:()=>Tu,MediumResourceSchema:()=>wu,MediaManagementConfigResourceSchema:()=>Ou,MediaInfoResourceSchema:()=>bu,MediaInfoModelSchema:()=>Eu,MediaCoverTypesSchema:()=>hu,MediaCoverSchema:()=>Vu,ManualImportUpdateResourceSchema:()=>fu,ManualImportResourceSchema:()=>gu,LogResourceSchema:()=>mu,LogResourcePagingResourceSchema:()=>Au,LogFileResourceSchema:()=>yu,LocalizationResourceSchema:()=>cu,LinksSchema:()=>du,LanguageResourceSchema:()=>uu,IsoCountrySchema:()=>lu,IndexerResourceSchema:()=>pu,IndexerFlagResourceSchema:()=>su,IndexerConfigResourceSchema:()=>au,IndexerBulkResourceSchema:()=>iu,ImportListTypeSchema:()=>nu,ImportListResourceSchema:()=>ou,ImportListMonitorTypeSchema:()=>ru,ImportListExclusionResourceSchema:()=>tu,ImportListBulkResourceSchema:()=>eu,HostConfigResourceSchema:()=>Jl,HistoryResourceSchema:()=>Xl,HistoryResourcePagingResourceSchema:()=>Zl,HealthResourceSchema:()=>_l,HealthCheckResultSchema:()=>Yl,FileDateTypeSchema:()=>Kl,FieldSchema:()=>zl,EntityHistoryEventTypeSchema:()=>Wl,DownloadProtocolSchema:()=>ql,DownloadClientResourceSchema:()=>Hl,DownloadClientConfigResourceSchema:()=>Ul,DownloadClientBulkResourceSchema:()=>jl,DiskSpaceResourceSchema:()=>Ql,DelayProfileResourceSchema:()=>$l,DatabaseTypeSchema:()=>Nl,CustomFormatSpecificationSchemaSchema:()=>Ll,CustomFormatResourceSchema:()=>Fl,CustomFormatBulkResourceSchema:()=>Ml,CustomFilterResourceSchema:()=>Cl,CommandTriggerSchema:()=>Sl,CommandStatusSchema:()=>vl,CommandSchema:()=>Dl,CommandResultSchema:()=>kl,CommandResourceSchema:()=>Gl,CommandPrioritySchema:()=>Pl,CertificateValidationTypeSchema:()=>Rl,BlocklistResourceSchema:()=>Bl,BlocklistResourcePagingResourceSchema:()=>xl,BlocklistBulkResourceSchema:()=>Il,BackupTypeSchema:()=>Tl,BackupResourceSchema:()=>wl,AutoTaggingSpecificationSchemaSchema:()=>Ol,AutoTaggingResourceSchema:()=>bl,AuthenticationTypeSchema:()=>El,AuthenticationRequiredTypeSchema:()=>hl,ArtistTitleInfoSchema:()=>Vl,ArtistStatusTypeSchema:()=>fl,ArtistStatisticsResourceSchema:()=>gl,ArtistResourceSchema:()=>Al,ArtistEditorResourceSchema:()=>ml,ApplyTagsSchema:()=>yl,AllowFingerprintingSchema:()=>cl,AlbumsMonitoredResourceSchema:()=>dl,AlbumStudioResourceSchema:()=>ul,AlbumStudioArtistResourceSchema:()=>ll,AlbumStatisticsResourceSchema:()=>pl,AlbumResourceSchema:()=>al,AlbumResourcePagingResourceSchema:()=>sl,AlbumReleaseResourceSchema:()=>il,AlbumAddTypeSchema:()=>nl,AddArtistOptionsSchema:()=>ol,AddAlbumOptionsSchema:()=>rl});var rl={type:"object",properties:{addType:{$ref:"#/components/schemas/AlbumAddType"},searchForNewAlbum:{type:"boolean"}},additionalProperties:!1},ol={type:"object",properties:{monitor:{$ref:"#/components/schemas/MonitorTypes"},albumsToMonitor:{type:"array",items:{type:"string"},nullable:!0},monitored:{type:"boolean"},searchForMissingAlbums:{type:"boolean"}},additionalProperties:!1},nl={enum:["automatic","manual"],type:"string"},il={type:"object",properties:{id:{type:"integer",format:"int32"},albumId:{type:"integer",format:"int32"},foreignReleaseId:{type:"string",nullable:!0},title:{type:"string",nullable:!0},status:{type:"string",nullable:!0},duration:{type:"integer",format:"int32"},trackCount:{type:"integer",format:"int32"},media:{type:"array",items:{$ref:"#/components/schemas/MediumResource"},nullable:!0},mediumCount:{type:"integer",format:"int32",readOnly:!0},disambiguation:{type:"string",nullable:!0},country:{type:"array",items:{type:"string"},nullable:!0},label:{type:"array",items:{type:"string"},nullable:!0},format:{type:"string",nullable:!0},monitored:{type:"boolean"}},additionalProperties:!1},al={type:"object",properties:{id:{type:"integer",format:"int32"},title:{type:"string",nullable:!0},disambiguation:{type:"string",nullable:!0},overview:{type:"string",nullable:!0},artistId:{type:"integer",format:"int32"},foreignAlbumId:{type:"string",nullable:!0},monitored:{type:"boolean"},anyReleaseOk:{type:"boolean"},profileId:{type:"integer",format:"int32"},duration:{type:"integer",format:"int32"},albumType:{type:"string",nullable:!0},secondaryTypes:{type:"array",items:{type:"string"},nullable:!0},mediumCount:{type:"integer",format:"int32",readOnly:!0},ratings:{$ref:"#/components/schemas/Ratings"},releaseDate:{type:"string",format:"date-time",nullable:!0},releases:{type:"array",items:{$ref:"#/components/schemas/AlbumReleaseResource"},nullable:!0},genres:{type:"array",items:{type:"string"},nullable:!0},media:{type:"array",items:{$ref:"#/components/schemas/MediumResource"},nullable:!0},artist:{$ref:"#/components/schemas/ArtistResource"},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/Links"},nullable:!0},lastSearchTime:{type:"string",format:"date-time",nullable:!0},statistics:{$ref:"#/components/schemas/AlbumStatisticsResource"},addOptions:{$ref:"#/components/schemas/AddAlbumOptions"},remoteCover:{type:"string",nullable:!0}},additionalProperties:!1},sl={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/AlbumResource"},nullable:!0}},additionalProperties:!1},pl={type:"object",properties:{trackFileCount:{type:"integer",format:"int32"},trackCount:{type:"integer",format:"int32"},totalTrackCount:{type:"integer",format:"int32"},sizeOnDisk:{type:"integer",format:"int64"},percentOfTracks:{type:"number",format:"double",readOnly:!0}},additionalProperties:!1},ll={type:"object",properties:{id:{type:"integer",format:"int32"},monitored:{type:"boolean",nullable:!0},albums:{type:"array",items:{$ref:"#/components/schemas/AlbumResource"},nullable:!0}},additionalProperties:!1},ul={type:"object",properties:{artist:{type:"array",items:{$ref:"#/components/schemas/AlbumStudioArtistResource"},nullable:!0},monitoringOptions:{$ref:"#/components/schemas/MonitoringOptions"},monitorNewItems:{$ref:"#/components/schemas/NewItemMonitorTypes"}},additionalProperties:!1},dl={type:"object",properties:{albumIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},monitored:{type:"boolean"}},additionalProperties:!1},cl={enum:["never","newFiles","allFiles"],type:"string"},yl={enum:["add","remove","replace"],type:"string"},ml={type:"object",properties:{artistIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},monitored:{type:"boolean",nullable:!0},monitorNewItems:{$ref:"#/components/schemas/NewItemMonitorTypes"},qualityProfileId:{type:"integer",format:"int32",nullable:!0},metadataProfileId:{type:"integer",format:"int32",nullable:!0},rootFolderPath:{type:"string",nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},moveFiles:{type:"boolean"},deleteFiles:{type:"boolean"},addImportListExclusion:{type:"boolean"}},additionalProperties:!1},Al={type:"object",properties:{id:{type:"integer",format:"int32"},status:{$ref:"#/components/schemas/ArtistStatusType"},ended:{type:"boolean",readOnly:!0},artistName:{type:"string",nullable:!0},foreignArtistId:{type:"string",nullable:!0},mbId:{type:"string",nullable:!0},tadbId:{type:"integer",format:"int32"},discogsId:{type:"integer",format:"int32"},allMusicId:{type:"string",nullable:!0},overview:{type:"string",nullable:!0},artistType:{type:"string",nullable:!0},disambiguation:{type:"string",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/Links"},nullable:!0},nextAlbum:{$ref:"#/components/schemas/AlbumResource"},lastAlbum:{$ref:"#/components/schemas/AlbumResource"},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},members:{type:"array",items:{$ref:"#/components/schemas/Member"},nullable:!0},remotePoster:{type:"string",nullable:!0},path:{type:"string",nullable:!0},qualityProfileId:{type:"integer",format:"int32"},metadataProfileId:{type:"integer",format:"int32"},monitored:{type:"boolean"},monitorNewItems:{$ref:"#/components/schemas/NewItemMonitorTypes"},rootFolderPath:{type:"string",nullable:!0},folder:{type:"string",nullable:!0},genres:{type:"array",items:{type:"string"},nullable:!0},cleanName:{type:"string",nullable:!0},sortName:{type:"string",nullable:!0},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},added:{type:"string",format:"date-time"},addOptions:{$ref:"#/components/schemas/AddArtistOptions"},ratings:{$ref:"#/components/schemas/Ratings"},statistics:{$ref:"#/components/schemas/ArtistStatisticsResource"}},additionalProperties:!1},gl={type:"object",properties:{albumCount:{type:"integer",format:"int32"},trackFileCount:{type:"integer",format:"int32"},trackCount:{type:"integer",format:"int32"},totalTrackCount:{type:"integer",format:"int32"},sizeOnDisk:{type:"integer",format:"int64"},percentOfTracks:{type:"number",format:"double",readOnly:!0}},additionalProperties:!1},fl={enum:["continuing","ended"],type:"string"},Vl={type:"object",properties:{title:{type:"string",nullable:!0},titleWithoutYear:{type:"string",nullable:!0},year:{type:"integer",format:"int32"}},additionalProperties:!1},hl={enum:["enabled","disabledForLocalAddresses"],type:"string"},El={enum:["none","basic","forms","external"],type:"string"},bl={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},removeTagsAutomatically:{type:"boolean"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},specifications:{type:"array",items:{$ref:"#/components/schemas/AutoTaggingSpecificationSchema"},nullable:!0}},additionalProperties:!1},Ol={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},implementationName:{type:"string",nullable:!0},negate:{type:"boolean"},required:{type:"boolean"},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0}},additionalProperties:!1},wl={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},path:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/BackupType"},size:{type:"integer",format:"int64"},time:{type:"string",format:"date-time"}},additionalProperties:!1},Tl={enum:["scheduled","manual","update"],type:"string"},Il={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},Bl={type:"object",properties:{id:{type:"integer",format:"int32"},artistId:{type:"integer",format:"int32"},albumIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},sourceTitle:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},date:{type:"string",format:"date-time"},protocol:{$ref:"#/components/schemas/DownloadProtocol"},indexer:{type:"string",nullable:!0},message:{type:"string",nullable:!0},artist:{$ref:"#/components/schemas/ArtistResource"}},additionalProperties:!1},xl={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/BlocklistResource"},nullable:!0}},additionalProperties:!1},Rl={enum:["enabled","disabledForLocalAddresses","disabled"],type:"string"},Dl={type:"object",properties:{sendUpdatesToClient:{type:"boolean"},updateScheduledTask:{type:"boolean",readOnly:!0},completionMessage:{type:"string",nullable:!0,readOnly:!0},requiresDiskAccess:{type:"boolean",readOnly:!0},isExclusive:{type:"boolean",readOnly:!0},isTypeExclusive:{type:"boolean",readOnly:!0},isLongRunning:{type:"boolean",readOnly:!0},name:{type:"string",nullable:!0,readOnly:!0},lastExecutionTime:{type:"string",format:"date-time",nullable:!0},lastStartTime:{type:"string",format:"date-time",nullable:!0},trigger:{$ref:"#/components/schemas/CommandTrigger"},suppressMessages:{type:"boolean"},clientUserAgent:{type:"string",nullable:!0}},additionalProperties:!1},Pl={enum:["normal","high","low"],type:"string"},Gl={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},commandName:{type:"string",nullable:!0},message:{type:"string",nullable:!0},body:{$ref:"#/components/schemas/Command"},priority:{$ref:"#/components/schemas/CommandPriority"},status:{$ref:"#/components/schemas/CommandStatus"},result:{$ref:"#/components/schemas/CommandResult"},queued:{type:"string",format:"date-time"},started:{type:"string",format:"date-time",nullable:!0},ended:{type:"string",format:"date-time",nullable:!0},duration:{type:"string",format:"date-span",nullable:!0},exception:{type:"string",nullable:!0},trigger:{$ref:"#/components/schemas/CommandTrigger"},clientUserAgent:{type:"string",nullable:!0},stateChangeTime:{type:"string",format:"date-time",nullable:!0},sendUpdatesToClient:{type:"boolean"},updateScheduledTask:{type:"boolean"},lastExecutionTime:{type:"string",format:"date-time",nullable:!0}},additionalProperties:!1},kl={enum:["unknown","successful","unsuccessful"],type:"string"},vl={enum:["queued","started","completed","failed","aborted","cancelled","orphaned"],type:"string"},Sl={enum:["unspecified","manual","scheduled"],type:"string"},Cl={type:"object",properties:{id:{type:"integer",format:"int32"},type:{type:"string",nullable:!0},label:{type:"string",nullable:!0},filters:{type:"array",items:{type:"object",additionalProperties:{}},nullable:!0}},additionalProperties:!1},Ml={type:"object",properties:{ids:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},includeCustomFormatWhenRenaming:{type:"boolean",nullable:!0}},additionalProperties:!1},Fl={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},includeCustomFormatWhenRenaming:{type:"boolean",nullable:!0},specifications:{type:"array",items:{$ref:"#/components/schemas/CustomFormatSpecificationSchema"},nullable:!0}},additionalProperties:!1},Ll={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},implementationName:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},negate:{type:"boolean"},required:{type:"boolean"},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/CustomFormatSpecificationSchema"},nullable:!0}},additionalProperties:!1},Nl={enum:["sqLite","postgreSQL"],type:"string"},$l={type:"object",properties:{id:{type:"integer",format:"int32"},enableUsenet:{type:"boolean"},enableTorrent:{type:"boolean"},preferredProtocol:{$ref:"#/components/schemas/DownloadProtocol"},usenetDelay:{type:"integer",format:"int32"},torrentDelay:{type:"integer",format:"int32"},bypassIfHighestQuality:{type:"boolean"},bypassIfAboveCustomFormatScore:{type:"boolean"},minimumCustomFormatScore:{type:"integer",format:"int32"},order:{type:"integer",format:"int32"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},Ql={type:"object",properties:{id:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},label:{type:"string",nullable:!0},freeSpace:{type:"integer",format:"int64"},totalSpace:{type:"integer",format:"int64"}},additionalProperties:!1},jl={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},enable:{type:"boolean",nullable:!0},priority:{type:"integer",format:"int32",nullable:!0},removeCompletedDownloads:{type:"boolean",nullable:!0},removeFailedDownloads:{type:"boolean",nullable:!0}},additionalProperties:!1},Ul={type:"object",properties:{id:{type:"integer",format:"int32"},downloadClientWorkingFolders:{type:"string",nullable:!0},enableCompletedDownloadHandling:{type:"boolean"},autoRedownloadFailed:{type:"boolean"},autoRedownloadFailedFromInteractiveSearch:{type:"boolean"}},additionalProperties:!1},Hl={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/DownloadClientResource"},nullable:!0},enable:{type:"boolean"},protocol:{$ref:"#/components/schemas/DownloadProtocol"},priority:{type:"integer",format:"int32"},removeCompletedDownloads:{type:"boolean"},removeFailedDownloads:{type:"boolean"}},additionalProperties:!1},ql={enum:["unknown","usenet","torrent"],type:"string"},Wl={enum:["unknown","grabbed","artistFolderImported","trackFileImported","downloadFailed","trackFileDeleted","trackFileRenamed","albumImportIncomplete","downloadImported","trackFileRetagged","downloadIgnored"],type:"string"},zl={type:"object",properties:{order:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},label:{type:"string",nullable:!0},unit:{type:"string",nullable:!0},helpText:{type:"string",nullable:!0},helpTextWarning:{type:"string",nullable:!0},helpLink:{type:"string",nullable:!0},value:{nullable:!0},type:{type:"string",nullable:!0},advanced:{type:"boolean"},selectOptions:{type:"array",items:{$ref:"#/components/schemas/SelectOption"},nullable:!0},selectOptionsProviderAction:{type:"string",nullable:!0},section:{type:"string",nullable:!0},hidden:{type:"string",nullable:!0},privacy:{$ref:"#/components/schemas/PrivacyLevel"},placeholder:{type:"string",nullable:!0},isFloat:{type:"boolean"}},additionalProperties:!1},Kl={enum:["none","albumReleaseDate"],type:"string"},Yl={enum:["ok","notice","warning","error"],type:"string"},_l={type:"object",properties:{id:{type:"integer",format:"int32"},source:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/HealthCheckResult"},message:{type:"string",nullable:!0},wikiUrl:{type:"string",nullable:!0}},additionalProperties:!1},Xl={type:"object",properties:{id:{type:"integer",format:"int32"},albumId:{type:"integer",format:"int32"},artistId:{type:"integer",format:"int32"},trackId:{type:"integer",format:"int32"},sourceTitle:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},qualityCutoffNotMet:{type:"boolean"},date:{type:"string",format:"date-time"},downloadId:{type:"string",nullable:!0},eventType:{$ref:"#/components/schemas/EntityHistoryEventType"},data:{type:"object",additionalProperties:{type:"string",nullable:!0},nullable:!0},album:{$ref:"#/components/schemas/AlbumResource"},artist:{$ref:"#/components/schemas/ArtistResource"},track:{$ref:"#/components/schemas/TrackResource"}},additionalProperties:!1},Zl={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/HistoryResource"},nullable:!0}},additionalProperties:!1},Jl={type:"object",properties:{id:{type:"integer",format:"int32"},bindAddress:{type:"string",nullable:!0},port:{type:"integer",format:"int32"},sslPort:{type:"integer",format:"int32"},enableSsl:{type:"boolean"},launchBrowser:{type:"boolean"},authenticationMethod:{$ref:"#/components/schemas/AuthenticationType"},authenticationRequired:{$ref:"#/components/schemas/AuthenticationRequiredType"},analyticsEnabled:{type:"boolean"},username:{type:"string",nullable:!0},password:{type:"string",nullable:!0},passwordConfirmation:{type:"string",nullable:!0},logLevel:{type:"string",nullable:!0},logSizeLimit:{type:"integer",format:"int32"},consoleLogLevel:{type:"string",nullable:!0},branch:{type:"string",nullable:!0},apiKey:{type:"string",nullable:!0},sslCertPath:{type:"string",nullable:!0},sslCertPassword:{type:"string",nullable:!0},urlBase:{type:"string",nullable:!0},instanceName:{type:"string",nullable:!0},applicationUrl:{type:"string",nullable:!0},updateAutomatically:{type:"boolean"},updateMechanism:{$ref:"#/components/schemas/UpdateMechanism"},updateScriptPath:{type:"string",nullable:!0},proxyEnabled:{type:"boolean"},proxyType:{$ref:"#/components/schemas/ProxyType"},proxyHostname:{type:"string",nullable:!0},proxyPort:{type:"integer",format:"int32"},proxyUsername:{type:"string",nullable:!0},proxyPassword:{type:"string",nullable:!0},proxyBypassFilter:{type:"string",nullable:!0},proxyBypassLocalAddresses:{type:"boolean"},certificateValidation:{$ref:"#/components/schemas/CertificateValidationType"},backupFolder:{type:"string",nullable:!0},backupInterval:{type:"integer",format:"int32"},backupRetention:{type:"integer",format:"int32"},trustCgnatIpAddresses:{type:"boolean"}},additionalProperties:!1},eu={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},enableAutomaticAdd:{type:"boolean",nullable:!0},rootFolderPath:{type:"string",nullable:!0},qualityProfileId:{type:"integer",format:"int32",nullable:!0}},additionalProperties:!1},tu={type:"object",properties:{id:{type:"integer",format:"int32"},foreignId:{type:"string",nullable:!0},artistName:{type:"string",nullable:!0}},additionalProperties:!1},ru={enum:["none","specificAlbum","entireArtist"],type:"string"},ou={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/ImportListResource"},nullable:!0},enableAutomaticAdd:{type:"boolean"},shouldMonitor:{$ref:"#/components/schemas/ImportListMonitorType"},shouldMonitorExisting:{type:"boolean"},shouldSearch:{type:"boolean"},rootFolderPath:{type:"string",nullable:!0},monitorNewItems:{$ref:"#/components/schemas/NewItemMonitorTypes"},qualityProfileId:{type:"integer",format:"int32"},metadataProfileId:{type:"integer",format:"int32"},listType:{$ref:"#/components/schemas/ImportListType"},listOrder:{type:"integer",format:"int32"},minRefreshInterval:{type:"string",format:"date-span"}},additionalProperties:!1},nu={enum:["program","spotify","lastFm","other","advanced"],type:"string"},iu={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},enableRss:{type:"boolean",nullable:!0},enableAutomaticSearch:{type:"boolean",nullable:!0},enableInteractiveSearch:{type:"boolean",nullable:!0},priority:{type:"integer",format:"int32",nullable:!0}},additionalProperties:!1},au={type:"object",properties:{id:{type:"integer",format:"int32"},minimumAge:{type:"integer",format:"int32"},maximumSize:{type:"integer",format:"int32"},retention:{type:"integer",format:"int32"},rssSyncInterval:{type:"integer",format:"int32"}},additionalProperties:!1},su={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},nameLower:{type:"string",nullable:!0,readOnly:!0}},additionalProperties:!1},pu={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/IndexerResource"},nullable:!0},enableRss:{type:"boolean"},enableAutomaticSearch:{type:"boolean"},enableInteractiveSearch:{type:"boolean"},supportsRss:{type:"boolean"},supportsSearch:{type:"boolean"},protocol:{$ref:"#/components/schemas/DownloadProtocol"},priority:{type:"integer",format:"int32"},downloadClientId:{type:"integer",format:"int32"}},additionalProperties:!1},lu={type:"object",properties:{twoLetterCode:{type:"string",nullable:!0},name:{type:"string",nullable:!0}},additionalProperties:!1},uu={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},nameLower:{type:"string",nullable:!0,readOnly:!0}},additionalProperties:!1},du={type:"object",properties:{url:{type:"string",nullable:!0},name:{type:"string",nullable:!0}},additionalProperties:!1},cu={type:"object",properties:{id:{type:"integer",format:"int32"},strings:{type:"object",additionalProperties:{type:"string",nullable:!0},nullable:!0}},additionalProperties:!1},yu={type:"object",properties:{id:{type:"integer",format:"int32"},filename:{type:"string",nullable:!0},lastWriteTime:{type:"string",format:"date-time"},contentsUrl:{type:"string",nullable:!0},downloadUrl:{type:"string",nullable:!0}},additionalProperties:!1},mu={type:"object",properties:{id:{type:"integer",format:"int32"},time:{type:"string",format:"date-time"},exception:{type:"string",nullable:!0},exceptionType:{type:"string",nullable:!0},level:{type:"string",nullable:!0},logger:{type:"string",nullable:!0},message:{type:"string",nullable:!0},method:{type:"string",nullable:!0}},additionalProperties:!1},Au={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/LogResource"},nullable:!0}},additionalProperties:!1},gu={type:"object",properties:{id:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},name:{type:"string",nullable:!0},size:{type:"integer",format:"int64"},artist:{$ref:"#/components/schemas/ArtistResource"},album:{$ref:"#/components/schemas/AlbumResource"},albumReleaseId:{type:"integer",format:"int32"},tracks:{type:"array",items:{$ref:"#/components/schemas/TrackResource"},nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},releaseGroup:{type:"string",nullable:!0},qualityWeight:{type:"integer",format:"int32"},downloadId:{type:"string",nullable:!0},indexerFlags:{type:"integer",format:"int32"},rejections:{type:"array",items:{$ref:"#/components/schemas/Rejection"},nullable:!0},audioTags:{$ref:"#/components/schemas/ParsedTrackInfo"},additionalFile:{type:"boolean"},replaceExistingFiles:{type:"boolean"},disableReleaseSwitching:{type:"boolean"}},additionalProperties:!1},fu={type:"object",properties:{id:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},name:{type:"string",nullable:!0},artistId:{type:"integer",format:"int32",nullable:!0},albumId:{type:"integer",format:"int32",nullable:!0},albumReleaseId:{type:"integer",format:"int32",nullable:!0},tracks:{type:"array",items:{$ref:"#/components/schemas/TrackResource"},nullable:!0},trackIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},releaseGroup:{type:"string",nullable:!0},indexerFlags:{type:"integer",format:"int32"},downloadId:{type:"string",nullable:!0},additionalFile:{type:"boolean"},replaceExistingFiles:{type:"boolean"},disableReleaseSwitching:{type:"boolean"},rejections:{type:"array",items:{$ref:"#/components/schemas/Rejection"},nullable:!0}},additionalProperties:!1},Vu={type:"object",properties:{url:{type:"string",nullable:!0},coverType:{$ref:"#/components/schemas/MediaCoverTypes"},extension:{type:"string",nullable:!0,readOnly:!0},remoteUrl:{type:"string",nullable:!0}},additionalProperties:!1},hu={enum:["unknown","poster","banner","fanart","screenshot","headshot","cover","disc","logo","clearlogo"],type:"string"},Eu={type:"object",properties:{audioFormat:{type:"string",nullable:!0},audioBitrate:{type:"integer",format:"int32"},audioChannels:{type:"integer",format:"int32"},audioBits:{type:"integer",format:"int32"},audioSampleRate:{type:"integer",format:"int32"}},additionalProperties:!1},bu={type:"object",properties:{id:{type:"integer",format:"int32"},audioChannels:{type:"number",format:"double"},audioBitRate:{type:"string",nullable:!0},audioCodec:{type:"string",nullable:!0},audioBits:{type:"string",nullable:!0},audioSampleRate:{type:"string",nullable:!0}},additionalProperties:!1},Ou={type:"object",properties:{id:{type:"integer",format:"int32"},autoUnmonitorPreviouslyDownloadedTracks:{type:"boolean"},recycleBin:{type:"string",nullable:!0},recycleBinCleanupDays:{type:"integer",format:"int32"},downloadPropersAndRepacks:{$ref:"#/components/schemas/ProperDownloadTypes"},createEmptyArtistFolders:{type:"boolean"},deleteEmptyFolders:{type:"boolean"},fileDate:{$ref:"#/components/schemas/FileDateType"},watchLibraryForChanges:{type:"boolean"},rescanAfterRefresh:{$ref:"#/components/schemas/RescanAfterRefreshType"},allowFingerprinting:{$ref:"#/components/schemas/AllowFingerprinting"},setPermissionsLinux:{type:"boolean"},chmodFolder:{type:"string",nullable:!0},chownGroup:{type:"string",nullable:!0},skipFreeSpaceCheckWhenImporting:{type:"boolean"},minimumFreeSpaceWhenImporting:{type:"integer",format:"int32"},copyUsingHardlinks:{type:"boolean"},importExtraFiles:{type:"boolean"},extraFileExtensions:{type:"string",nullable:!0}},additionalProperties:!1},wu={type:"object",properties:{mediumNumber:{type:"integer",format:"int32"},mediumName:{type:"string",nullable:!0},mediumFormat:{type:"string",nullable:!0}},additionalProperties:!1},Tu={type:"object",properties:{name:{type:"string",nullable:!0},instrument:{type:"string",nullable:!0},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0}},additionalProperties:!1},Iu={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},primaryAlbumTypes:{type:"array",items:{$ref:"#/components/schemas/ProfilePrimaryAlbumTypeItemResource"},nullable:!0},secondaryAlbumTypes:{type:"array",items:{$ref:"#/components/schemas/ProfileSecondaryAlbumTypeItemResource"},nullable:!0},releaseStatuses:{type:"array",items:{$ref:"#/components/schemas/ProfileReleaseStatusItemResource"},nullable:!0}},additionalProperties:!1},Bu={type:"object",properties:{id:{type:"integer",format:"int32"},metadataSource:{type:"string",nullable:!0},writeAudioTags:{$ref:"#/components/schemas/WriteAudioTagsType"},scrubAudioTags:{type:"boolean"},embedCoverArt:{type:"boolean"}},additionalProperties:!1},xu={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/MetadataResource"},nullable:!0},enable:{type:"boolean"}},additionalProperties:!1},Ru={enum:["all","future","missing","existing","latest","first","none","unknown"],type:"string"},Du={type:"object",properties:{monitor:{$ref:"#/components/schemas/MonitorTypes"},albumsToMonitor:{type:"array",items:{type:"string"},nullable:!0},monitored:{type:"boolean"}},additionalProperties:!1},Pu={type:"object",properties:{id:{type:"integer",format:"int32"},renameTracks:{type:"boolean"},replaceIllegalCharacters:{type:"boolean"},colonReplacementFormat:{type:"integer",format:"int32"},standardTrackFormat:{type:"string",nullable:!0},multiDiscTrackFormat:{type:"string",nullable:!0},artistFolderFormat:{type:"string",nullable:!0},includeArtistName:{type:"boolean"},includeAlbumTitle:{type:"boolean"},includeQuality:{type:"boolean"},replaceSpaces:{type:"boolean"},separator:{type:"string",nullable:!0},numberStyle:{type:"string",nullable:!0}},additionalProperties:!1},Gu={enum:["all","none","new"],type:"string"},ku={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/NotificationResource"},nullable:!0},link:{type:"string",nullable:!0},onGrab:{type:"boolean"},onReleaseImport:{type:"boolean"},onUpgrade:{type:"boolean"},onRename:{type:"boolean"},onArtistAdd:{type:"boolean"},onArtistDelete:{type:"boolean"},onAlbumDelete:{type:"boolean"},onHealthIssue:{type:"boolean"},onHealthRestored:{type:"boolean"},onDownloadFailure:{type:"boolean"},onImportFailure:{type:"boolean"},onTrackRetag:{type:"boolean"},onApplicationUpdate:{type:"boolean"},supportsOnGrab:{type:"boolean"},supportsOnReleaseImport:{type:"boolean"},supportsOnUpgrade:{type:"boolean"},supportsOnRename:{type:"boolean"},supportsOnArtistAdd:{type:"boolean"},supportsOnArtistDelete:{type:"boolean"},supportsOnAlbumDelete:{type:"boolean"},supportsOnHealthIssue:{type:"boolean"},supportsOnHealthRestored:{type:"boolean"},includeHealthWarnings:{type:"boolean"},supportsOnDownloadFailure:{type:"boolean"},supportsOnImportFailure:{type:"boolean"},supportsOnTrackRetag:{type:"boolean"},supportsOnApplicationUpdate:{type:"boolean"},testCommand:{type:"string",nullable:!0}},additionalProperties:!1},vu={type:"object",properties:{id:{type:"integer",format:"int32"},title:{type:"string",nullable:!0},parsedAlbumInfo:{$ref:"#/components/schemas/ParsedAlbumInfo"},artist:{$ref:"#/components/schemas/ArtistResource"},albums:{type:"array",items:{$ref:"#/components/schemas/AlbumResource"},nullable:!0},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"}},additionalProperties:!1},Su={type:"object",properties:{releaseTitle:{type:"string",nullable:!0},albumTitle:{type:"string",nullable:!0},artistName:{type:"string",nullable:!0},albumType:{type:"string",nullable:!0},artistTitleInfo:{$ref:"#/components/schemas/ArtistTitleInfo"},quality:{$ref:"#/components/schemas/QualityModel"},releaseDate:{type:"string",nullable:!0},discography:{type:"boolean"},discographyStart:{type:"integer",format:"int32"},discographyEnd:{type:"integer",format:"int32"},releaseGroup:{type:"string",nullable:!0},releaseHash:{type:"string",nullable:!0},releaseVersion:{type:"string",nullable:!0}},additionalProperties:!1},Cu={type:"object",properties:{title:{type:"string",nullable:!0},cleanTitle:{type:"string",nullable:!0},artistTitle:{type:"string",nullable:!0},albumTitle:{type:"string",nullable:!0},artistTitleInfo:{$ref:"#/components/schemas/ArtistTitleInfo"},artistMBId:{type:"string",nullable:!0},albumMBId:{type:"string",nullable:!0},releaseMBId:{type:"string",nullable:!0},recordingMBId:{type:"string",nullable:!0},trackMBId:{type:"string",nullable:!0},discNumber:{type:"integer",format:"int32"},discCount:{type:"integer",format:"int32"},country:{$ref:"#/components/schemas/IsoCountry"},year:{type:"integer",format:"int32"},label:{type:"string",nullable:!0},catalogNumber:{type:"string",nullable:!0},disambiguation:{type:"string",nullable:!0},duration:{type:"string",format:"date-span"},quality:{$ref:"#/components/schemas/QualityModel"},mediaInfo:{$ref:"#/components/schemas/MediaInfoModel"},trackNumbers:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},releaseGroup:{type:"string",nullable:!0},releaseHash:{type:"string",nullable:!0}},additionalProperties:!1},Mu={type:"object",properties:{status:{type:"string",nullable:!0}},additionalProperties:!1},Fu={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0}},additionalProperties:!1},Lu={enum:["normal","password","apiKey","userName"],type:"string"},Nu={type:"object",properties:{id:{type:"integer",format:"int32"},format:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},score:{type:"integer",format:"int32"}},additionalProperties:!1},$u={type:"object",properties:{id:{type:"integer",format:"int32"},albumType:{$ref:"#/components/schemas/PrimaryAlbumType"},allowed:{type:"boolean"}},additionalProperties:!1},Qu={type:"object",properties:{id:{type:"integer",format:"int32"},releaseStatus:{$ref:"#/components/schemas/ReleaseStatus"},allowed:{type:"boolean"}},additionalProperties:!1},ju={type:"object",properties:{id:{type:"integer",format:"int32"},albumType:{$ref:"#/components/schemas/SecondaryAlbumType"},allowed:{type:"boolean"}},additionalProperties:!1},Uu={enum:["preferAndUpgrade","doNotUpgrade","doNotPrefer"],type:"string"},Hu={type:"object",properties:{message:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/ProviderMessageType"}},additionalProperties:!1},qu={enum:["info","warning","error"],type:"string"},Wu={enum:["http","socks4","socks5"],type:"string"},zu={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0}},additionalProperties:!1},Ku={type:"object",properties:{id:{type:"integer",format:"int32"},quality:{$ref:"#/components/schemas/Quality"},title:{type:"string",nullable:!0},weight:{type:"integer",format:"int32"},minSize:{type:"number",format:"double",nullable:!0},maxSize:{type:"number",format:"double",nullable:!0},preferredSize:{type:"number",format:"double",nullable:!0}},additionalProperties:!1},Yu={type:"object",properties:{quality:{$ref:"#/components/schemas/Quality"},revision:{$ref:"#/components/schemas/Revision"}},additionalProperties:!1},_u={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/Quality"},items:{type:"array",items:{$ref:"#/components/schemas/QualityProfileQualityItemResource"},nullable:!0},allowed:{type:"boolean"}},additionalProperties:!1},Xu={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},upgradeAllowed:{type:"boolean"},cutoff:{type:"integer",format:"int32"},items:{type:"array",items:{$ref:"#/components/schemas/QualityProfileQualityItemResource"},nullable:!0},minFormatScore:{type:"integer",format:"int32"},cutoffFormatScore:{type:"integer",format:"int32"},formatItems:{type:"array",items:{$ref:"#/components/schemas/ProfileFormatItemResource"},nullable:!0}},additionalProperties:!1},Zu={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},Ju={type:"object",properties:{id:{type:"integer",format:"int32"},artistId:{type:"integer",format:"int32",nullable:!0},albumId:{type:"integer",format:"int32",nullable:!0},artist:{$ref:"#/components/schemas/ArtistResource"},album:{$ref:"#/components/schemas/AlbumResource"},quality:{$ref:"#/components/schemas/QualityModel"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},size:{type:"number",format:"double"},title:{type:"string",nullable:!0},sizeleft:{type:"number",format:"double"},timeleft:{type:"string",format:"date-span",nullable:!0},estimatedCompletionTime:{type:"string",format:"date-time",nullable:!0},added:{type:"string",format:"date-time",nullable:!0},status:{type:"string",nullable:!0},trackedDownloadStatus:{$ref:"#/components/schemas/TrackedDownloadStatus"},trackedDownloadState:{$ref:"#/components/schemas/TrackedDownloadState"},statusMessages:{type:"array",items:{$ref:"#/components/schemas/TrackedDownloadStatusMessage"},nullable:!0},errorMessage:{type:"string",nullable:!0},downloadId:{type:"string",nullable:!0},protocol:{$ref:"#/components/schemas/DownloadProtocol"},downloadClient:{type:"string",nullable:!0},downloadClientHasPostImportCategory:{type:"boolean"},indexer:{type:"string",nullable:!0},outputPath:{type:"string",nullable:!0},trackFileCount:{type:"integer",format:"int32"},trackHasFileCount:{type:"integer",format:"int32"},downloadForced:{type:"boolean"}},additionalProperties:!1},ed={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/QueueResource"},nullable:!0}},additionalProperties:!1},td={type:"object",properties:{id:{type:"integer",format:"int32"},totalCount:{type:"integer",format:"int32"},count:{type:"integer",format:"int32"},unknownCount:{type:"integer",format:"int32"},errors:{type:"boolean"},warnings:{type:"boolean"},unknownErrors:{type:"boolean"},unknownWarnings:{type:"boolean"}},additionalProperties:!1},rd={type:"object",properties:{votes:{type:"integer",format:"int32"},value:{type:"number",format:"double"}},additionalProperties:!1},od={type:"object",properties:{reason:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/RejectionType"}},additionalProperties:!1},nd={enum:["permanent","temporary"],type:"string"},id={type:"object",properties:{id:{type:"integer",format:"int32"},enabled:{type:"boolean"},required:{type:"array",items:{type:"string"},nullable:!0},ignored:{type:"array",items:{type:"string"},nullable:!0},indexerId:{type:"integer",format:"int32"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},ad={type:"object",properties:{id:{type:"integer",format:"int32"},guid:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},qualityWeight:{type:"integer",format:"int32"},age:{type:"integer",format:"int32"},ageHours:{type:"number",format:"double"},ageMinutes:{type:"number",format:"double"},size:{type:"integer",format:"int64"},indexerId:{type:"integer",format:"int32"},indexer:{type:"string",nullable:!0},releaseGroup:{type:"string",nullable:!0},subGroup:{type:"string",nullable:!0},releaseHash:{type:"string",nullable:!0},title:{type:"string",nullable:!0},discography:{type:"boolean"},sceneSource:{type:"boolean"},airDate:{type:"string",nullable:!0},artistName:{type:"string",nullable:!0},albumTitle:{type:"string",nullable:!0},approved:{type:"boolean"},temporarilyRejected:{type:"boolean"},rejected:{type:"boolean"},rejections:{type:"array",items:{type:"string"},nullable:!0},publishDate:{type:"string",format:"date-time"},commentUrl:{type:"string",nullable:!0},downloadUrl:{type:"string",nullable:!0},infoUrl:{type:"string",nullable:!0},downloadAllowed:{type:"boolean"},releaseWeight:{type:"integer",format:"int32"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},magnetUrl:{type:"string",nullable:!0},infoHash:{type:"string",nullable:!0},seeders:{type:"integer",format:"int32",nullable:!0},leechers:{type:"integer",format:"int32",nullable:!0},protocol:{$ref:"#/components/schemas/DownloadProtocol"},indexerFlags:{type:"integer",format:"int32"},artistId:{type:"integer",format:"int32",nullable:!0},albumId:{type:"integer",format:"int32",nullable:!0},downloadClientId:{type:"integer",format:"int32",nullable:!0},downloadClient:{type:"string",nullable:!0}},additionalProperties:!1},sd={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0}},additionalProperties:!1},pd={type:"object",properties:{id:{type:"integer",format:"int32"},host:{type:"string",nullable:!0},remotePath:{type:"string",nullable:!0},localPath:{type:"string",nullable:!0}},additionalProperties:!1},ld={type:"object",properties:{id:{type:"integer",format:"int32"},artistId:{type:"integer",format:"int32"},albumId:{type:"integer",format:"int32"},trackNumbers:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},trackFileId:{type:"integer",format:"int32"},existingPath:{type:"string",nullable:!0},newPath:{type:"string",nullable:!0}},additionalProperties:!1},ud={enum:["always","afterManual","never"],type:"string"},dd={type:"object",properties:{id:{type:"integer",format:"int32"},artistId:{type:"integer",format:"int32"},albumId:{type:"integer",format:"int32"},trackNumbers:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},trackFileId:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},changes:{type:"array",items:{$ref:"#/components/schemas/TagDifference"},nullable:!0}},additionalProperties:!1},cd={type:"object",properties:{version:{type:"integer",format:"int32"},real:{type:"integer",format:"int32"},isRepack:{type:"boolean"}},additionalProperties:!1},yd={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},path:{type:"string",nullable:!0},defaultMetadataProfileId:{type:"integer",format:"int32"},defaultQualityProfileId:{type:"integer",format:"int32"},defaultMonitorOption:{$ref:"#/components/schemas/MonitorTypes"},defaultNewItemMonitorOption:{$ref:"#/components/schemas/NewItemMonitorTypes"},defaultTags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},accessible:{type:"boolean"},freeSpace:{type:"integer",format:"int64",nullable:!0},totalSpace:{type:"integer",format:"int64",nullable:!0}},additionalProperties:!1},md={enum:["console","service","tray"],type:"string"},Ad={type:"object",properties:{id:{type:"integer",format:"int32"},foreignId:{type:"string",nullable:!0},artist:{$ref:"#/components/schemas/ArtistResource"},album:{$ref:"#/components/schemas/AlbumResource"}},additionalProperties:!1},gd={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0}},additionalProperties:!1},fd={type:"object",properties:{value:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},order:{type:"integer",format:"int32"},hint:{type:"string",nullable:!0}},additionalProperties:!1},Vd={enum:["default","ascending","descending"],type:"string"},hd={type:"object",properties:{appName:{type:"string",nullable:!0},instanceName:{type:"string",nullable:!0},version:{type:"string",nullable:!0},buildTime:{type:"string",format:"date-time"},isDebug:{type:"boolean"},isProduction:{type:"boolean"},isAdmin:{type:"boolean"},isUserInteractive:{type:"boolean"},startupPath:{type:"string",nullable:!0},appData:{type:"string",nullable:!0},osName:{type:"string",nullable:!0},osVersion:{type:"string",nullable:!0},isNetCore:{type:"boolean"},isLinux:{type:"boolean"},isOsx:{type:"boolean"},isWindows:{type:"boolean"},isDocker:{type:"boolean"},mode:{$ref:"#/components/schemas/RuntimeMode"},branch:{type:"string",nullable:!0},databaseType:{$ref:"#/components/schemas/DatabaseType"},databaseVersion:{type:"string",nullable:!0},authentication:{$ref:"#/components/schemas/AuthenticationType"},migrationVersion:{type:"integer",format:"int32"},urlBase:{type:"string",nullable:!0},runtimeVersion:{type:"string",nullable:!0},runtimeName:{type:"string",nullable:!0},startTime:{type:"string",format:"date-time"},packageVersion:{type:"string",nullable:!0},packageAuthor:{type:"string",nullable:!0},packageUpdateMechanism:{$ref:"#/components/schemas/UpdateMechanism"},packageUpdateMechanismMessage:{type:"string",nullable:!0}},additionalProperties:!1},Ed={type:"object",properties:{id:{type:"integer",format:"int32"},label:{type:"string",nullable:!0},delayProfileIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},importListIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},notificationIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},restrictionIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},indexerIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},downloadClientIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},autoTagIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},artistIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},bd={type:"object",properties:{field:{type:"string",nullable:!0},oldValue:{type:"string",nullable:!0},newValue:{type:"string",nullable:!0}},additionalProperties:!1},Od={type:"object",properties:{id:{type:"integer",format:"int32"},label:{type:"string",nullable:!0}},additionalProperties:!1},wd={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},taskName:{type:"string",nullable:!0},interval:{type:"integer",format:"int32"},lastExecution:{type:"string",format:"date-time"},lastStartTime:{type:"string",format:"date-time"},nextExecution:{type:"string",format:"date-time"},lastDuration:{type:"string",format:"date-span",readOnly:!0}},additionalProperties:!1},Td={type:"object",properties:{trackFileIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},sceneName:{type:"string",nullable:!0},releaseGroup:{type:"string",nullable:!0}},additionalProperties:!1},Id={type:"object",properties:{id:{type:"integer",format:"int32"},artistId:{type:"integer",format:"int32"},albumId:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},size:{type:"integer",format:"int64"},dateAdded:{type:"string",format:"date-time"},sceneName:{type:"string",nullable:!0},releaseGroup:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},qualityWeight:{type:"integer",format:"int32"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},indexerFlags:{type:"integer",format:"int32",nullable:!0},mediaInfo:{$ref:"#/components/schemas/MediaInfoResource"},qualityCutoffNotMet:{type:"boolean"},audioTags:{$ref:"#/components/schemas/ParsedTrackInfo"}},additionalProperties:!1},Bd={type:"object",properties:{id:{type:"integer",format:"int32"},artistId:{type:"integer",format:"int32"},foreignTrackId:{type:"string",nullable:!0},foreignRecordingId:{type:"string",nullable:!0},trackFileId:{type:"integer",format:"int32"},albumId:{type:"integer",format:"int32"},explicit:{type:"boolean"},absoluteTrackNumber:{type:"integer",format:"int32"},trackNumber:{type:"string",nullable:!0},title:{type:"string",nullable:!0},duration:{type:"integer",format:"int32"},trackFile:{$ref:"#/components/schemas/TrackFileResource"},mediumNumber:{type:"integer",format:"int32"},hasFile:{type:"boolean"},artist:{$ref:"#/components/schemas/ArtistResource"},ratings:{$ref:"#/components/schemas/Ratings"}},additionalProperties:!1},xd={enum:["downloading","downloadFailed","downloadFailedPending","importBlocked","importPending","importing","importFailed","imported","ignored"],type:"string"},Rd={enum:["ok","warning","error"],type:"string"},Dd={type:"object",properties:{title:{type:"string",nullable:!0},messages:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},Pd={type:"object",properties:{id:{type:"integer",format:"int32"},firstDayOfWeek:{type:"integer",format:"int32"},calendarWeekColumnHeader:{type:"string",nullable:!0},shortDateFormat:{type:"string",nullable:!0},longDateFormat:{type:"string",nullable:!0},timeFormat:{type:"string",nullable:!0},showRelativeDates:{type:"boolean"},enableColorImpairedMode:{type:"boolean"},uiLanguage:{type:"integer",format:"int32"},expandAlbumByDefault:{type:"boolean"},expandSingleByDefault:{type:"boolean"},expandEPByDefault:{type:"boolean"},expandBroadcastByDefault:{type:"boolean"},expandOtherByDefault:{type:"boolean"},theme:{type:"string",nullable:!0}},additionalProperties:!1},Gd={type:"object",properties:{new:{type:"array",items:{type:"string"},nullable:!0},fixed:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},kd={enum:["builtIn","script","external","apt","docker"],type:"string"},vd={type:"object",properties:{id:{type:"integer",format:"int32"},version:{type:"string",nullable:!0},branch:{type:"string",nullable:!0},releaseDate:{type:"string",format:"date-time"},fileName:{type:"string",nullable:!0},url:{type:"string",nullable:!0},installed:{type:"boolean"},installedOn:{type:"string",format:"date-time",nullable:!0},installable:{type:"boolean"},latest:{type:"boolean"},changes:{$ref:"#/components/schemas/UpdateChanges"},hash:{type:"string",nullable:!0}},additionalProperties:!1},Sd={enum:["no","newFiles","allFiles","sync"],type:"string"};var r=h(f()),gt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/album"})},ft=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/album"})},Vt=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/album/{id}"})},ht=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/album/{id}"})},Et=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/album/{id}"})},Cd=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/album/monitor"})},bt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/album/lookup"})},Md=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/albumstudio"})},Fd=(e)=>{return(e?.client??r).get({...e,url:"/api"})},Ot=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/artist/{id}"})},wt=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/artist/{id}"})},Tt=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/artist/{id}"})},It=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/artist"})},Bt=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/artist"})},Ld=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/artist/editor"})},Nd=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/artist/editor"})},xt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/artist/lookup"})},$d=(e)=>{return(e?.client??r).post({...e,...V,headers:{"Content-Type":null,...e?.headers},url:"/login"})},Qd=(e)=>{return(e?.client??r).get({...e,url:"/login"})},jd=(e)=>{return(e?.client??r).get({...e,url:"/logout"})},Ud=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/autotagging/{id}"})},Hd=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/autotagging/{id}"})},qd=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/autotagging/{id}"})},Wd=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/autotagging"})},zd=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/autotagging"})},Kd=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/autotagging/schema"})},Yd=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/system/backup"})},_d=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/system/backup/{id}"})},Xd=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/system/backup/restore/{id}"})},Zd=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/system/backup/restore/upload"})},Jd=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/blocklist"})},ec=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/blocklist/{id}"})},tc=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/blocklist/bulk"})},Rt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/calendar"})},rc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/calendar/{id}"})},Dt=(e)=>{return(e?.client??r).get({...e,url:"/feed/v1/calendar/lidarr.ics"})},oc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/command/{id}"})},nc=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/command/{id}"})},Pt=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/command"})},Gt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/command"})},ic=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/customfilter/{id}"})},ac=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/customfilter/{id}"})},sc=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/customfilter/{id}"})},pc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/customfilter"})},lc=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/customfilter"})},kt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/customformat/{id}"})},vt=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/customformat/{id}"})},St=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/customformat/{id}"})},Ct=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/customformat"})},Mt=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/customformat"})},Ft=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/customformat/bulk"})},Lt=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/customformat/bulk"})},Nt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/customformat/schema"})},uc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/wanted/cutoff"})},dc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/wanted/cutoff/{id}"})},cc=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/delayprofile"})},yc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/delayprofile"})},mc=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/delayprofile/{id}"})},Ac=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/delayprofile/{id}"})},gc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/delayprofile/{id}"})},fc=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/delayprofile/reorder/{id}"})},Vc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/diskspace"})},hc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/downloadclient/{id}"})},Ec=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/downloadclient/{id}"})},bc=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/downloadclient/{id}"})},Oc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/downloadclient"})},wc=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/downloadclient"})},Tc=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/downloadclient/bulk"})},Ic=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/downloadclient/bulk"})},Bc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/downloadclient/schema"})},xc=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/downloadclient/test"})},Rc=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/downloadclient/testall"})},Dc=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/downloadclient/action/{name}"})},Pc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/downloadclient/{id}"})},Gc=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/config/downloadclient/{id}"})},kc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/downloadclient"})},vc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/filesystem"})},Sc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/filesystem/type"})},Cc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/filesystem/mediafiles"})},$t=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/health"})},Mc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/history"})},Fc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/history/since"})},Lc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/history/artist"})},Nc=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/history/failed/{id}"})},$c=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/host/{id}"})},Qc=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/config/host/{id}"})},jc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/host"})},Uc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/importlist/{id}"})},Hc=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/importlist/{id}"})},qc=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/importlist/{id}"})},Wc=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/importlist"})},zc=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/importlist"})},Kc=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/importlist/bulk"})},Yc=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/importlist/bulk"})},_c=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/importlist/schema"})},Xc=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/importlist/test"})},Zc=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/importlist/testall"})},Jc=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/importlist/action/{name}"})},ey=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/importlistexclusion/{id}"})},ty=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/importlistexclusion/{id}"})},ry=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/importlistexclusion/{id}"})},oy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/importlistexclusion"})},ny=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/importlistexclusion"})},iy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/indexer/{id}"})},ay=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/indexer/{id}"})},sy=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/indexer/{id}"})},py=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/indexer"})},ly=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/indexer"})},uy=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/indexer/bulk"})},dy=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/indexer/bulk"})},cy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/indexer/schema"})},yy=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/indexer/test"})},my=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/indexer/testall"})},Ay=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/indexer/action/{name}"})},gy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/indexer/{id}"})},fy=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/config/indexer/{id}"})},Vy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/indexer"})},hy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/indexerflag"})},Ey=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/language/{id}"})},by=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/language"})},Oy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/localization"})},wy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/log"})},Ty=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/log/file"})},Iy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/log/file/{filename}"})},By=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/manualimport"})},xy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/manualimport"})},Ry=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/mediacover/artist/{artistId}/{filename}"})},Dy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/mediacover/album/{albumId}/{filename}"})},Py=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/mediamanagement/{id}"})},Gy=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/config/mediamanagement/{id}"})},ky=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/mediamanagement"})},vy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/metadata/{id}"})},Sy=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/metadata/{id}"})},Cy=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/metadata/{id}"})},My=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/metadata"})},Fy=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/metadata"})},Ly=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/metadata/schema"})},Ny=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/metadata/test"})},$y=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/metadata/testall"})},Qy=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/metadata/action/{name}"})},jy=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/metadataprofile"})},Uy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/metadataprofile"})},Hy=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/metadataprofile/{id}"})},qy=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/metadataprofile/{id}"})},Wy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/metadataprofile/{id}"})},zy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/metadataprofile/schema"})},Ky=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/metadataprovider/{id}"})},Yy=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/config/metadataprovider/{id}"})},_y=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/metadataprovider"})},Xy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/wanted/missing"})},Zy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/wanted/missing/{id}"})},Jy=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/naming/{id}"})},em=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/config/naming/{id}"})},tm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/naming"})},rm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/naming/examples"})},om=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/notification/{id}"})},nm=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/notification/{id}"})},im=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/notification/{id}"})},am=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/notification"})},sm=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/notification"})},pm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/notification/schema"})},lm=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/notification/test"})},um=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/notification/testall"})},dm=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/notification/action/{name}"})},cm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/parse"})},ym=(e)=>{return(e?.client??r).get({...e,url:"/ping"})},mm=(e)=>{return(e?.client??r).head({...e,url:"/ping"})},Am=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/qualitydefinition/{id}"})},gm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/qualitydefinition/{id}"})},fm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/qualitydefinition"})},Vm=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/qualitydefinition/update"})},Qt=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/qualityprofile"})},jt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/qualityprofile"})},Ut=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/qualityprofile/{id}"})},Ht=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/qualityprofile/{id}"})},qt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/qualityprofile/{id}"})},Wt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/qualityprofile/schema"})},hm=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/queue/{id}"})},Em=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/queue/bulk"})},bm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/queue"})},Om=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/queue/grab/{id}"})},wm=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/queue/grab/bulk"})},Tm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/queue/details"})},Im=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/queue/status"})},Bm=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/release"})},xm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/release"})},Rm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/releaseprofile/{id}"})},Dm=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/releaseprofile/{id}"})},Pm=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/releaseprofile/{id}"})},Gm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/releaseprofile"})},km=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/releaseprofile"})},vm=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/release/push"})},Sm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/remotepathmapping/{id}"})},Cm=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/remotepathmapping/{id}"})},Mm=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/remotepathmapping/{id}"})},Fm=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/remotepathmapping"})},Lm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/remotepathmapping"})},Nm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/rename"})},$m=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/retag"})},Qm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/rootfolder/{id}"})},jm=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/rootfolder/{id}"})},Um=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/rootfolder/{id}"})},zt=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/rootfolder"})},Kt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/rootfolder"})},Hm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/search"})},qm=(e)=>{return(e?.client??r).get({...e,url:"/content/{path}"})},Wm=(e)=>{return(e?.client??r).get({...e,url:"/"})},zm=(e)=>{return(e?.client??r).get({...e,url:"/{path}"})},Yt=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/system/status"})},Km=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/system/routes"})},Ym=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/system/routes/duplicate"})},_m=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/system/shutdown"})},Xm=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/system/restart"})},Zm=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/tag/{id}"})},Jm=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/tag/{id}"})},eA=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/tag/{id}"})},tA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/tag"})},rA=(e)=>{return(e?.client??r).post({...e,url:"/api/v1/tag"})},oA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/tag/detail/{id}"})},nA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/tag/detail"})},iA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/system/task"})},aA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/system/task/{id}"})},sA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/track"})},pA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/track/{id}"})},lA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/trackfile/{id}"})},uA=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/trackfile/{id}"})},dA=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/trackfile/{id}"})},cA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/trackfile"})},yA=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/trackfile/editor"})},mA=(e)=>{return(e?.client??r).delete({...e,url:"/api/v1/trackfile/bulk"})},AA=(e)=>{return(e?.client??r).put({...e,url:"/api/v1/config/ui/{id}"})},gA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/ui/{id}"})},fA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/config/ui"})},VA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/update"})},hA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/log/file/update"})},EA=(e)=>{return(e?.client??r).get({...e,url:"/api/v1/log/file/update/{filename}"})};var dr={};T(dr,{putApiV1TagById:()=>l1,putApiV1RootfolderById:()=>Yb,putApiV1RemotepathmappingById:()=>qb,putApiV1ReleaseprofileById:()=>Lb,putApiV1QualityprofileById:()=>Tb,putApiV1QualitydefinitionUpdate:()=>Eb,putApiV1QualitydefinitionById:()=>fb,putApiV1NotificationById:()=>sb,putApiV1MetadataprofileById:()=>zE,putApiV1MetadataById:()=>FE,putApiV1IndexerById:()=>lE,putApiV1IndexerBulk:()=>cE,putApiV1ImportlistexclusionById:()=>nE,putApiV1ImportlistById:()=>zh,putApiV1ImportlistBulk:()=>_h,putApiV1DownloadclientById:()=>Oh,putApiV1DownloadclientBulk:()=>Ih,putApiV1DelayprofileReorderById:()=>Ah,putApiV1DelayprofileById:()=>yh,putApiV1CustomformatById:()=>nh,putApiV1CustomfilterById:()=>JV,putApiV1ConfigUiById:()=>g1,putApiV1ConfigNamingById:()=>rb,putApiV1ConfigMetadataproviderById:()=>XE,putApiV1ConfigMediamanagementById:()=>vE,putApiV1ConfigIndexerById:()=>hE,putApiV1ConfigHostById:()=>Uh,putApiV1ConfigDownloadclientById:()=>kh,putApiV1ConfigDevelopmentById:()=>fh,putApiV1BookfileEditor:()=>jV,putApiV1BookfileById:()=>NV,putApiV1BookMonitor:()=>CV,putApiV1BookEditor:()=>MV,putApiV1BookById:()=>vV,putApiV1AuthorEditor:()=>OV,putApiV1AuthorById:()=>Jt,postLogin:()=>hV,postApiV1Tag:()=>p1,postApiV1SystemShutdown:()=>i1,postApiV1SystemRestart:()=>a1,postApiV1SystemBackupRestoreUpload:()=>xV,postApiV1SystemBackupRestoreById:()=>BV,postApiV1Rootfolder:()=>pr,postApiV1Remotepathmapping:()=>jb,postApiV1Releaseprofile:()=>Fb,postApiV1ReleasePush:()=>Qb,postApiV1Release:()=>Sb,postApiV1QueueGrabById:()=>Pb,postApiV1QueueGrabBulk:()=>Gb,postApiV1Qualityprofile:()=>bb,postApiV1NotificationTestall:()=>cb,postApiV1NotificationTest:()=>db,postApiV1NotificationActionByName:()=>yb,postApiV1Notification:()=>ab,postApiV1Metadataprofile:()=>HE,postApiV1MetadataTestall:()=>jE,postApiV1MetadataTest:()=>QE,postApiV1MetadataActionByName:()=>UE,postApiV1Metadata:()=>ME,postApiV1Manualimport:()=>RE,postApiV1IndexerTestall:()=>gE,postApiV1IndexerTest:()=>AE,postApiV1IndexerActionByName:()=>fE,postApiV1Indexer:()=>pE,postApiV1Importlistexclusion:()=>oE,postApiV1ImportlistTestall:()=>eE,postApiV1ImportlistTest:()=>Jh,postApiV1ImportlistActionByName:()=>tE,postApiV1Importlist:()=>Wh,postApiV1HistoryFailedById:()=>Qh,postApiV1DownloadclientTestall:()=>Dh,postApiV1DownloadclientTest:()=>Rh,postApiV1DownloadclientActionByName:()=>Ph,postApiV1Downloadclient:()=>bh,postApiV1Delayprofile:()=>uh,postApiV1Customformat:()=>rh,postApiV1Customfilter:()=>ZV,postApiV1Command:()=>ir,postApiV1Bookshelf:()=>qV,postApiV1Book:()=>GV,postApiV1Author:()=>Zt,headPing:()=>gb,getPing:()=>Ab,getLogout:()=>bV,getLogin:()=>EV,getFeedV1CalendarReadarrIcs:()=>KV,getContentByPath:()=>e1,getByPath:()=>r1,getApiV1WantedMissingById:()=>eb,getApiV1WantedMissing:()=>JE,getApiV1WantedCutoffById:()=>lh,getApiV1WantedCutoff:()=>ph,getApiV1Update:()=>h1,getApiV1TagDetailById:()=>y1,getApiV1TagDetail:()=>c1,getApiV1TagById:()=>d1,getApiV1Tag:()=>s1,getApiV1SystemTaskById:()=>A1,getApiV1SystemTask:()=>m1,getApiV1SystemStatus:()=>ur,getApiV1SystemRoutesDuplicate:()=>n1,getApiV1SystemRoutes:()=>o1,getApiV1SystemBackup:()=>TV,getApiV1Series:()=>Jb,getApiV1Search:()=>Zb,getApiV1RootfolderById:()=>Xb,getApiV1Rootfolder:()=>lr,getApiV1Retag:()=>Kb,getApiV1Rename:()=>zb,getApiV1RemotepathmappingById:()=>Wb,getApiV1Remotepathmapping:()=>Ub,getApiV1ReleaseprofileById:()=>$b,getApiV1Releaseprofile:()=>Mb,getApiV1Release:()=>Cb,getApiV1QueueStatus:()=>vb,getApiV1QueueDetails:()=>kb,getApiV1Queue:()=>Db,getApiV1QualityprofileSchema:()=>Bb,getApiV1QualityprofileById:()=>Ib,getApiV1Qualityprofile:()=>Ob,getApiV1QualitydefinitionById:()=>Vb,getApiV1Qualitydefinition:()=>hb,getApiV1Parse:()=>mb,getApiV1NotificationSchema:()=>ub,getApiV1NotificationById:()=>lb,getApiV1Notification:()=>ib,getApiV1MetadataprofileSchema:()=>YE,getApiV1MetadataprofileById:()=>KE,getApiV1Metadataprofile:()=>qE,getApiV1MetadataSchema:()=>$E,getApiV1MetadataById:()=>NE,getApiV1Metadata:()=>CE,getApiV1MediacoverBookByBookIdByFilename:()=>GE,getApiV1MediacoverAuthorByAuthorIdByFilename:()=>PE,getApiV1Manualimport:()=>DE,getApiV1LogFileUpdateByFilename:()=>b1,getApiV1LogFileUpdate:()=>E1,getApiV1LogFileByFilename:()=>xE,getApiV1LogFile:()=>BE,getApiV1Log:()=>IE,getApiV1Localization:()=>TE,getApiV1LanguageById:()=>wE,getApiV1Language:()=>OE,getApiV1Indexerflag:()=>bE,getApiV1IndexerSchema:()=>mE,getApiV1IndexerById:()=>dE,getApiV1Indexer:()=>sE,getApiV1ImportlistexclusionById:()=>aE,getApiV1Importlistexclusion:()=>rE,getApiV1ImportlistSchema:()=>Zh,getApiV1ImportlistById:()=>Yh,getApiV1Importlist:()=>qh,getApiV1HistorySince:()=>Nh,getApiV1HistoryAuthor:()=>$h,getApiV1History:()=>Lh,getApiV1Health:()=>sr,getApiV1FilesystemType:()=>Mh,getApiV1FilesystemMediafiles:()=>Fh,getApiV1Filesystem:()=>Ch,getApiV1Edition:()=>Sh,getApiV1DownloadclientSchema:()=>xh,getApiV1DownloadclientById:()=>Th,getApiV1Downloadclient:()=>Eh,getApiV1Diskspace:()=>hh,getApiV1DelayprofileById:()=>mh,getApiV1Delayprofile:()=>dh,getApiV1CustomformatSchema:()=>sh,getApiV1CustomformatById:()=>ah,getApiV1Customformat:()=>oh,getApiV1CustomfilterById:()=>th,getApiV1Customfilter:()=>XV,getApiV1ConfigUiById:()=>f1,getApiV1ConfigUi:()=>V1,getApiV1ConfigNamingExamples:()=>nb,getApiV1ConfigNamingById:()=>ob,getApiV1ConfigNaming:()=>tb,getApiV1ConfigMetadataproviderById:()=>ZE,getApiV1ConfigMetadataprovider:()=>_E,getApiV1ConfigMediamanagementById:()=>SE,getApiV1ConfigMediamanagement:()=>kE,getApiV1ConfigIndexerById:()=>EE,getApiV1ConfigIndexer:()=>VE,getApiV1ConfigHostById:()=>Hh,getApiV1ConfigHost:()=>jh,getApiV1ConfigDownloadclientById:()=>vh,getApiV1ConfigDownloadclient:()=>Gh,getApiV1ConfigDevelopmentById:()=>Vh,getApiV1ConfigDevelopment:()=>gh,getApiV1CommandById:()=>_V,getApiV1Command:()=>ar,getApiV1CalendarById:()=>zV,getApiV1Calendar:()=>WV,getApiV1BookfileById:()=>QV,getApiV1Bookfile:()=>LV,getApiV1BookLookup:()=>HV,getApiV1BookByIdOverview:()=>kV,getApiV1BookById:()=>nr,getApiV1Book:()=>or,getApiV1Blocklist:()=>RV,getApiV1AuthorLookup:()=>rr,getApiV1AuthorById:()=>tr,getApiV1Author:()=>Xt,getApi:()=>VV,get:()=>t1,deleteApiV1TagById:()=>u1,deleteApiV1SystemBackupById:()=>IV,deleteApiV1RootfolderById:()=>_b,deleteApiV1RemotepathmappingById:()=>Hb,deleteApiV1ReleaseprofileById:()=>Nb,deleteApiV1QueueById:()=>xb,deleteApiV1QueueBulk:()=>Rb,deleteApiV1QualityprofileById:()=>wb,deleteApiV1NotificationById:()=>pb,deleteApiV1MetadataprofileById:()=>WE,deleteApiV1MetadataById:()=>LE,deleteApiV1IndexerById:()=>uE,deleteApiV1IndexerBulk:()=>yE,deleteApiV1ImportlistexclusionById:()=>iE,deleteApiV1ImportlistById:()=>Kh,deleteApiV1ImportlistBulk:()=>Xh,deleteApiV1DownloadclientById:()=>wh,deleteApiV1DownloadclientBulk:()=>Bh,deleteApiV1DelayprofileById:()=>ch,deleteApiV1CustomformatById:()=>ih,deleteApiV1CustomfilterById:()=>eh,deleteApiV1CommandById:()=>YV,deleteApiV1BookfileById:()=>$V,deleteApiV1BookfileBulk:()=>UV,deleteApiV1BookEditor:()=>FV,deleteApiV1BookById:()=>SV,deleteApiV1BlocklistById:()=>DV,deleteApiV1BlocklistBulk:()=>PV,deleteApiV1AuthorEditor:()=>wV,deleteApiV1AuthorById:()=>er,client:()=>o,WriteBookTagsTypeSchema:()=>fV,WriteAudioTagsTypeSchema:()=>gV,UpdateResourceSchema:()=>AV,UpdateMechanismSchema:()=>mV,UpdateChangesSchema:()=>yV,UiConfigResourceSchema:()=>cV,TrackedDownloadStatusSchema:()=>uV,TrackedDownloadStatusMessageSchema:()=>dV,TrackedDownloadStateSchema:()=>lV,TaskResourceSchema:()=>pV,TagResourceSchema:()=>sV,TagDifferenceSchema:()=>aV,TagDetailsResourceSchema:()=>iV,SystemResourceSchema:()=>nV,SortDirectionSchema:()=>oV,SeriesSchema:()=>_f,SeriesResourceSchema:()=>rV,SeriesListLazyLoadedSchema:()=>tV,SeriesLazyLoadedSchema:()=>eV,SeriesBookLinkSchema:()=>Xf,SeriesBookLinkResourceSchema:()=>Jf,SeriesBookLinkListLazyLoadedSchema:()=>Zf,SelectOptionSchema:()=>Yf,RuntimeModeSchema:()=>Kf,RootFolderResourceSchema:()=>zf,RevisionSchema:()=>Wf,RetagBookResourceSchema:()=>qf,RescanAfterRefreshTypeSchema:()=>Hf,RenameBookResourceSchema:()=>Uf,RemotePathMappingResourceSchema:()=>jf,ReleaseResourceSchema:()=>Qf,ReleaseProfileResourceSchema:()=>$f,RejectionTypeSchema:()=>Nf,RejectionSchema:()=>Lf,RatingsSchema:()=>Ff,QueueStatusResourceSchema:()=>Mf,QueueResourceSchema:()=>Sf,QueueResourcePagingResourceSchema:()=>Cf,QueueBulkResourceSchema:()=>vf,QualitySchema:()=>If,QualityProfileSchema:()=>Rf,QualityProfileResourceSchema:()=>kf,QualityProfileQualityItemSchema:()=>Pf,QualityProfileQualityItemResourceSchema:()=>Gf,QualityProfileLazyLoadedSchema:()=>Df,QualityModelSchema:()=>xf,QualityDefinitionResourceSchema:()=>Bf,ProxyTypeSchema:()=>Tf,ProviderMessageTypeSchema:()=>wf,ProviderMessageSchema:()=>Of,ProperDownloadTypesSchema:()=>bf,ProfileFormatItemSchema:()=>hf,ProfileFormatItemResourceSchema:()=>Ef,PingResourceSchema:()=>Vf,ParsedTrackInfoSchema:()=>ff,ParsedBookInfoSchema:()=>gf,ParseResourceSchema:()=>Af,NotificationResourceSchema:()=>mf,NewItemMonitorTypesSchema:()=>yf,NamingConfigResourceSchema:()=>cf,MonitoringOptionsSchema:()=>df,MonitorTypesSchema:()=>uf,MetadataResourceSchema:()=>lf,MetadataProviderConfigResourceSchema:()=>pf,MetadataProfileSchema:()=>nf,MetadataProfileResourceSchema:()=>sf,MetadataProfileLazyLoadedSchema:()=>af,MediaManagementConfigResourceSchema:()=>of,MediaInfoResourceSchema:()=>rf,MediaInfoModelSchema:()=>tf,MediaCoverTypesSchema:()=>ef,MediaCoverSchema:()=>Jg,ManualImportUpdateResourceSchema:()=>Zg,ManualImportResourceSchema:()=>Xg,LogResourceSchema:()=>Yg,LogResourcePagingResourceSchema:()=>_g,LogFileResourceSchema:()=>Kg,LinksSchema:()=>zg,LanguageResourceSchema:()=>Wg,IsoCountrySchema:()=>qg,IndexerResourceSchema:()=>Hg,IndexerFlagsSchema:()=>Ug,IndexerFlagResourceSchema:()=>jg,IndexerConfigResourceSchema:()=>Qg,IndexerBulkResourceSchema:()=>$g,ImportListTypeSchema:()=>Ng,ImportListResourceSchema:()=>Lg,ImportListMonitorTypeSchema:()=>Fg,ImportListExclusionResourceSchema:()=>Mg,ImportListBulkResourceSchema:()=>Cg,ICustomFormatSpecificationSchema:()=>Sg,HostConfigResourceSchema:()=>vg,HistoryResourceSchema:()=>Gg,HistoryResourcePagingResourceSchema:()=>kg,HealthResourceSchema:()=>Pg,HealthCheckResultSchema:()=>Dg,FileDateTypeSchema:()=>Rg,FieldSchema:()=>xg,EntityHistoryEventTypeSchema:()=>Bg,EditionSchema:()=>Og,EditionResourceSchema:()=>Ig,EditionListLazyLoadedSchema:()=>Tg,EditionLazyLoadedSchema:()=>wg,DownloadProtocolSchema:()=>bg,DownloadClientResourceSchema:()=>Eg,DownloadClientConfigResourceSchema:()=>hg,DownloadClientBulkResourceSchema:()=>Vg,DiskSpaceResourceSchema:()=>fg,DevelopmentConfigResourceSchema:()=>gg,DelayProfileResourceSchema:()=>Ag,DatabaseTypeSchema:()=>mg,CustomFormatSpecificationSchemaSchema:()=>yg,CustomFormatSchema:()=>dg,CustomFormatResourceSchema:()=>cg,CustomFilterResourceSchema:()=>ug,CommandTriggerSchema:()=>lg,CommandStatusSchema:()=>pg,CommandSchema:()=>ng,CommandResultSchema:()=>sg,CommandResourceSchema:()=>ag,CommandPrioritySchema:()=>ig,CertificateValidationTypeSchema:()=>og,BookshelfResourceSchema:()=>rg,BookshelfAuthorResourceSchema:()=>tg,BooksMonitoredResourceSchema:()=>eg,BookStatisticsResourceSchema:()=>JA,BookSchema:()=>jA,BookResourceSchema:()=>XA,BookResourcePagingResourceSchema:()=>ZA,BookListLazyLoadedSchema:()=>_A,BookLazyLoadedSchema:()=>YA,BookFileSchema:()=>qA,BookFileResourceSchema:()=>KA,BookFileListResourceSchema:()=>zA,BookFileListLazyLoadedSchema:()=>WA,BookEditorResourceSchema:()=>HA,BookAddTypeSchema:()=>UA,BlocklistResourceSchema:()=>$A,BlocklistResourcePagingResourceSchema:()=>QA,BlocklistBulkResourceSchema:()=>NA,BackupTypeSchema:()=>LA,BackupResourceSchema:()=>FA,AuthorTitleInfoSchema:()=>MA,AuthorStatusTypeSchema:()=>CA,AuthorStatisticsResourceSchema:()=>SA,AuthorSchema:()=>RA,AuthorResourceSchema:()=>vA,AuthorMetadataSchema:()=>GA,AuthorMetadataLazyLoadedSchema:()=>kA,AuthorLazyLoadedSchema:()=>PA,AuthorEditorResourceSchema:()=>DA,AuthenticationTypeSchema:()=>xA,AuthenticationRequiredTypeSchema:()=>BA,ApplyTagsSchema:()=>IA,ApiInfoResourceSchema:()=>TA,AllowFingerprintingSchema:()=>wA,AddBookOptionsSchema:()=>OA,AddAuthorOptionsSchema:()=>bA});var bA={type:"object",properties:{monitor:{$ref:"#/components/schemas/MonitorTypes"},booksToMonitor:{type:"array",items:{type:"string"},nullable:!0},monitored:{type:"boolean"},searchForMissingBooks:{type:"boolean"}},additionalProperties:!1},OA={type:"object",properties:{addType:{$ref:"#/components/schemas/BookAddType"},searchForNewBook:{type:"boolean"}},additionalProperties:!1},wA={enum:["never","newFiles","allFiles"],type:"string"},TA={type:"object",properties:{current:{type:"string",nullable:!0},deprecated:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},IA={enum:["add","remove","replace"],type:"string"},BA={enum:["enabled","disabledForLocalAddresses"],type:"string"},xA={enum:["none","basic","forms","external"],type:"string"},RA={type:"object",properties:{id:{type:"integer",format:"int32"},authorMetadataId:{type:"integer",format:"int32"},cleanName:{type:"string",nullable:!0},monitored:{type:"boolean"},monitorNewItems:{$ref:"#/components/schemas/NewItemMonitorTypes"},lastInfoSync:{type:"string",format:"date-time",nullable:!0},path:{type:"string",nullable:!0},rootFolderPath:{type:"string",nullable:!0},added:{type:"string",format:"date-time"},qualityProfileId:{type:"integer",format:"int32"},metadataProfileId:{type:"integer",format:"int32"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},addOptions:{$ref:"#/components/schemas/AddAuthorOptions"},metadata:{$ref:"#/components/schemas/AuthorMetadataLazyLoaded"},qualityProfile:{$ref:"#/components/schemas/QualityProfileLazyLoaded"},metadataProfile:{$ref:"#/components/schemas/MetadataProfileLazyLoaded"},books:{$ref:"#/components/schemas/BookListLazyLoaded"},series:{$ref:"#/components/schemas/SeriesListLazyLoaded"},name:{type:"string",nullable:!0},foreignAuthorId:{type:"string",nullable:!0}},additionalProperties:!1},DA={type:"object",properties:{authorIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},monitored:{type:"boolean",nullable:!0},monitorNewItems:{$ref:"#/components/schemas/NewItemMonitorTypes"},qualityProfileId:{type:"integer",format:"int32",nullable:!0},metadataProfileId:{type:"integer",format:"int32",nullable:!0},rootFolderPath:{type:"string",nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},moveFiles:{type:"boolean"},deleteFiles:{type:"boolean"}},additionalProperties:!1},PA={type:"object",properties:{value:{$ref:"#/components/schemas/Author"},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},GA={type:"object",properties:{id:{type:"integer",format:"int32"},foreignAuthorId:{type:"string",nullable:!0},titleSlug:{type:"string",nullable:!0},name:{type:"string",nullable:!0},sortName:{type:"string",nullable:!0},nameLastFirst:{type:"string",nullable:!0},sortNameLastFirst:{type:"string",nullable:!0},aliases:{type:"array",items:{type:"string"},nullable:!0},overview:{type:"string",nullable:!0},disambiguation:{type:"string",nullable:!0},gender:{type:"string",nullable:!0},hometown:{type:"string",nullable:!0},born:{type:"string",format:"date-time",nullable:!0},died:{type:"string",format:"date-time",nullable:!0},status:{$ref:"#/components/schemas/AuthorStatusType"},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/Links"},nullable:!0},genres:{type:"array",items:{type:"string"},nullable:!0},ratings:{$ref:"#/components/schemas/Ratings"}},additionalProperties:!1},kA={type:"object",properties:{value:{$ref:"#/components/schemas/AuthorMetadata"},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},vA={type:"object",properties:{id:{type:"integer",format:"int32"},authorMetadataId:{type:"integer",format:"int32"},status:{$ref:"#/components/schemas/AuthorStatusType"},ended:{type:"boolean",readOnly:!0},authorName:{type:"string",nullable:!0},authorNameLastFirst:{type:"string",nullable:!0},foreignAuthorId:{type:"string",nullable:!0},titleSlug:{type:"string",nullable:!0},overview:{type:"string",nullable:!0},disambiguation:{type:"string",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/Links"},nullable:!0},nextBook:{$ref:"#/components/schemas/Book"},lastBook:{$ref:"#/components/schemas/Book"},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},remotePoster:{type:"string",nullable:!0},path:{type:"string",nullable:!0},qualityProfileId:{type:"integer",format:"int32"},metadataProfileId:{type:"integer",format:"int32"},monitored:{type:"boolean"},monitorNewItems:{$ref:"#/components/schemas/NewItemMonitorTypes"},rootFolderPath:{type:"string",nullable:!0},folder:{type:"string",nullable:!0},genres:{type:"array",items:{type:"string"},nullable:!0},cleanName:{type:"string",nullable:!0},sortName:{type:"string",nullable:!0},sortNameLastFirst:{type:"string",nullable:!0},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},added:{type:"string",format:"date-time"},addOptions:{$ref:"#/components/schemas/AddAuthorOptions"},ratings:{$ref:"#/components/schemas/Ratings"},statistics:{$ref:"#/components/schemas/AuthorStatisticsResource"}},additionalProperties:!1},SA={type:"object",properties:{bookFileCount:{type:"integer",format:"int32"},bookCount:{type:"integer",format:"int32"},availableBookCount:{type:"integer",format:"int32"},totalBookCount:{type:"integer",format:"int32"},sizeOnDisk:{type:"integer",format:"int64"},percentOfBooks:{type:"number",format:"double",readOnly:!0}},additionalProperties:!1},CA={enum:["continuing","ended"],type:"string"},MA={type:"object",properties:{title:{type:"string",nullable:!0},titleWithoutYear:{type:"string",nullable:!0},year:{type:"integer",format:"int32"}},additionalProperties:!1},FA={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},path:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/BackupType"},size:{type:"integer",format:"int64"},time:{type:"string",format:"date-time"}},additionalProperties:!1},LA={enum:["scheduled","manual","update"],type:"string"},NA={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},$A={type:"object",properties:{id:{type:"integer",format:"int32"},authorId:{type:"integer",format:"int32"},bookIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},sourceTitle:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},date:{type:"string",format:"date-time"},protocol:{$ref:"#/components/schemas/DownloadProtocol"},indexer:{type:"string",nullable:!0},message:{type:"string",nullable:!0},author:{$ref:"#/components/schemas/AuthorResource"}},additionalProperties:!1},QA={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/BlocklistResource"},nullable:!0}},additionalProperties:!1},jA={type:"object",properties:{id:{type:"integer",format:"int32"},authorMetadataId:{type:"integer",format:"int32"},foreignBookId:{type:"string",nullable:!0},foreignEditionId:{type:"string",nullable:!0},titleSlug:{type:"string",nullable:!0},title:{type:"string",nullable:!0},releaseDate:{type:"string",format:"date-time",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/Links"},nullable:!0},genres:{type:"array",items:{type:"string"},nullable:!0},relatedBooks:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},ratings:{$ref:"#/components/schemas/Ratings"},lastSearchTime:{type:"string",format:"date-time",nullable:!0},cleanTitle:{type:"string",nullable:!0},monitored:{type:"boolean"},anyEditionOk:{type:"boolean"},lastInfoSync:{type:"string",format:"date-time",nullable:!0},added:{type:"string",format:"date-time"},addOptions:{$ref:"#/components/schemas/AddBookOptions"},authorMetadata:{$ref:"#/components/schemas/AuthorMetadataLazyLoaded"},author:{$ref:"#/components/schemas/AuthorLazyLoaded"},editions:{$ref:"#/components/schemas/EditionListLazyLoaded"},bookFiles:{$ref:"#/components/schemas/BookFileListLazyLoaded"},seriesLinks:{$ref:"#/components/schemas/SeriesBookLinkListLazyLoaded"}},additionalProperties:!1},UA={enum:["automatic","manual"],type:"string"},HA={type:"object",properties:{bookIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},monitored:{type:"boolean",nullable:!0},deleteFiles:{type:"boolean",nullable:!0},addImportListExclusion:{type:"boolean",nullable:!0}},additionalProperties:!1},qA={type:"object",properties:{id:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},size:{type:"integer",format:"int64"},modified:{type:"string",format:"date-time"},dateAdded:{type:"string",format:"date-time"},originalFilePath:{type:"string",nullable:!0},sceneName:{type:"string",nullable:!0},releaseGroup:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},indexerFlags:{$ref:"#/components/schemas/IndexerFlags"},mediaInfo:{$ref:"#/components/schemas/MediaInfoModel"},editionId:{type:"integer",format:"int32"},calibreId:{type:"integer",format:"int32"},part:{type:"integer",format:"int32"},author:{$ref:"#/components/schemas/AuthorLazyLoaded"},edition:{$ref:"#/components/schemas/EditionLazyLoaded"},partCount:{type:"integer",format:"int32"}},additionalProperties:!1},WA={type:"object",properties:{value:{type:"array",items:{$ref:"#/components/schemas/BookFile"},nullable:!0,readOnly:!0},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},zA={type:"object",properties:{bookFileIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"}},additionalProperties:!1},KA={type:"object",properties:{id:{type:"integer",format:"int32"},authorId:{type:"integer",format:"int32"},bookId:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},size:{type:"integer",format:"int64"},dateAdded:{type:"string",format:"date-time"},quality:{$ref:"#/components/schemas/QualityModel"},qualityWeight:{type:"integer",format:"int32"},indexerFlags:{type:"integer",format:"int32",nullable:!0},mediaInfo:{$ref:"#/components/schemas/MediaInfoResource"},qualityCutoffNotMet:{type:"boolean"},audioTags:{$ref:"#/components/schemas/ParsedTrackInfo"}},additionalProperties:!1},YA={type:"object",properties:{value:{$ref:"#/components/schemas/Book"},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},_A={type:"object",properties:{value:{type:"array",items:{$ref:"#/components/schemas/Book"},nullable:!0,readOnly:!0},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},XA={type:"object",properties:{id:{type:"integer",format:"int32"},title:{type:"string",nullable:!0},authorTitle:{type:"string",nullable:!0},seriesTitle:{type:"string",nullable:!0},disambiguation:{type:"string",nullable:!0},overview:{type:"string",nullable:!0},authorId:{type:"integer",format:"int32"},foreignBookId:{type:"string",nullable:!0},foreignEditionId:{type:"string",nullable:!0},titleSlug:{type:"string",nullable:!0},monitored:{type:"boolean"},anyEditionOk:{type:"boolean"},ratings:{$ref:"#/components/schemas/Ratings"},releaseDate:{type:"string",format:"date-time",nullable:!0},pageCount:{type:"integer",format:"int32"},genres:{type:"array",items:{type:"string"},nullable:!0},author:{$ref:"#/components/schemas/AuthorResource"},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/Links"},nullable:!0},statistics:{$ref:"#/components/schemas/BookStatisticsResource"},added:{type:"string",format:"date-time",nullable:!0},addOptions:{$ref:"#/components/schemas/AddBookOptions"},remoteCover:{type:"string",nullable:!0},lastSearchTime:{type:"string",format:"date-time",nullable:!0},editions:{type:"array",items:{$ref:"#/components/schemas/EditionResource"},nullable:!0}},additionalProperties:!1},ZA={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/BookResource"},nullable:!0}},additionalProperties:!1},JA={type:"object",properties:{bookFileCount:{type:"integer",format:"int32"},bookCount:{type:"integer",format:"int32"},totalBookCount:{type:"integer",format:"int32"},sizeOnDisk:{type:"integer",format:"int64"},percentOfBooks:{type:"number",format:"double",readOnly:!0}},additionalProperties:!1},eg={type:"object",properties:{bookIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},monitored:{type:"boolean"}},additionalProperties:!1},tg={type:"object",properties:{id:{type:"integer",format:"int32"},monitored:{type:"boolean",nullable:!0},books:{type:"array",items:{$ref:"#/components/schemas/BookResource"},nullable:!0}},additionalProperties:!1},rg={type:"object",properties:{authors:{type:"array",items:{$ref:"#/components/schemas/BookshelfAuthorResource"},nullable:!0},monitoringOptions:{$ref:"#/components/schemas/MonitoringOptions"},monitorNewItems:{$ref:"#/components/schemas/NewItemMonitorTypes"}},additionalProperties:!1},og={enum:["enabled","disabledForLocalAddresses","disabled"],type:"string"},ng={type:"object",properties:{sendUpdatesToClient:{type:"boolean"},updateScheduledTask:{type:"boolean",readOnly:!0},completionMessage:{type:"string",nullable:!0,readOnly:!0},requiresDiskAccess:{type:"boolean",readOnly:!0},isExclusive:{type:"boolean",readOnly:!0},isTypeExclusive:{type:"boolean",readOnly:!0},isLongRunning:{type:"boolean",readOnly:!0},name:{type:"string",nullable:!0,readOnly:!0},lastExecutionTime:{type:"string",format:"date-time",nullable:!0},lastStartTime:{type:"string",format:"date-time",nullable:!0},trigger:{$ref:"#/components/schemas/CommandTrigger"},suppressMessages:{type:"boolean"},clientUserAgent:{type:"string",nullable:!0}},additionalProperties:!1},ig={enum:["normal","high","low"],type:"string"},ag={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},commandName:{type:"string",nullable:!0},message:{type:"string",nullable:!0},body:{$ref:"#/components/schemas/Command"},priority:{$ref:"#/components/schemas/CommandPriority"},status:{$ref:"#/components/schemas/CommandStatus"},result:{$ref:"#/components/schemas/CommandResult"},queued:{type:"string",format:"date-time"},started:{type:"string",format:"date-time",nullable:!0},ended:{type:"string",format:"date-time",nullable:!0},duration:{type:"string",format:"date-span",nullable:!0},exception:{type:"string",nullable:!0},trigger:{$ref:"#/components/schemas/CommandTrigger"},clientUserAgent:{type:"string",nullable:!0},stateChangeTime:{type:"string",format:"date-time",nullable:!0},sendUpdatesToClient:{type:"boolean"},updateScheduledTask:{type:"boolean"},lastExecutionTime:{type:"string",format:"date-time",nullable:!0}},additionalProperties:!1},sg={enum:["unknown","successful","unsuccessful"],type:"string"},pg={enum:["queued","started","completed","failed","aborted","cancelled","orphaned"],type:"string"},lg={enum:["unspecified","manual","scheduled"],type:"string"},ug={type:"object",properties:{id:{type:"integer",format:"int32"},type:{type:"string",nullable:!0},label:{type:"string",nullable:!0},filters:{type:"array",items:{type:"object",additionalProperties:{}},nullable:!0}},additionalProperties:!1},dg={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},includeCustomFormatWhenRenaming:{type:"boolean"},specifications:{type:"array",items:{$ref:"#/components/schemas/ICustomFormatSpecification"},nullable:!0}},additionalProperties:!1},cg={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},includeCustomFormatWhenRenaming:{type:"boolean",nullable:!0},specifications:{type:"array",items:{$ref:"#/components/schemas/CustomFormatSpecificationSchema"},nullable:!0}},additionalProperties:!1},yg={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},implementationName:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},negate:{type:"boolean"},required:{type:"boolean"},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/CustomFormatSpecificationSchema"},nullable:!0}},additionalProperties:!1},mg={enum:["sqLite","postgreSQL"],type:"string"},Ag={type:"object",properties:{id:{type:"integer",format:"int32"},enableUsenet:{type:"boolean"},enableTorrent:{type:"boolean"},preferredProtocol:{$ref:"#/components/schemas/DownloadProtocol"},usenetDelay:{type:"integer",format:"int32"},torrentDelay:{type:"integer",format:"int32"},bypassIfHighestQuality:{type:"boolean"},bypassIfAboveCustomFormatScore:{type:"boolean"},minimumCustomFormatScore:{type:"integer",format:"int32"},order:{type:"integer",format:"int32"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},gg={type:"object",properties:{id:{type:"integer",format:"int32"},metadataSource:{type:"string",nullable:!0},consoleLogLevel:{type:"string",nullable:!0},logSql:{type:"boolean"},logRotate:{type:"integer",format:"int32"},filterSentryEvents:{type:"boolean"}},additionalProperties:!1},fg={type:"object",properties:{id:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},label:{type:"string",nullable:!0},freeSpace:{type:"integer",format:"int64"},totalSpace:{type:"integer",format:"int64"}},additionalProperties:!1},Vg={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},enable:{type:"boolean",nullable:!0},priority:{type:"integer",format:"int32",nullable:!0},removeCompletedDownloads:{type:"boolean",nullable:!0},removeFailedDownloads:{type:"boolean",nullable:!0}},additionalProperties:!1},hg={type:"object",properties:{id:{type:"integer",format:"int32"},downloadClientWorkingFolders:{type:"string",nullable:!0},enableCompletedDownloadHandling:{type:"boolean"},autoRedownloadFailed:{type:"boolean"},autoRedownloadFailedFromInteractiveSearch:{type:"boolean"}},additionalProperties:!1},Eg={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/DownloadClientResource"},nullable:!0},enable:{type:"boolean"},protocol:{$ref:"#/components/schemas/DownloadProtocol"},priority:{type:"integer",format:"int32"},removeCompletedDownloads:{type:"boolean"},removeFailedDownloads:{type:"boolean"}},additionalProperties:!1},bg={enum:["unknown","usenet","torrent"],type:"string"},Og={type:"object",properties:{id:{type:"integer",format:"int32"},bookId:{type:"integer",format:"int32"},foreignEditionId:{type:"string",nullable:!0},titleSlug:{type:"string",nullable:!0},isbn13:{type:"string",nullable:!0},asin:{type:"string",nullable:!0},title:{type:"string",nullable:!0},language:{type:"string",nullable:!0},overview:{type:"string",nullable:!0},format:{type:"string",nullable:!0},isEbook:{type:"boolean"},disambiguation:{type:"string",nullable:!0},publisher:{type:"string",nullable:!0},pageCount:{type:"integer",format:"int32"},releaseDate:{type:"string",format:"date-time",nullable:!0},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/Links"},nullable:!0},ratings:{$ref:"#/components/schemas/Ratings"},monitored:{type:"boolean"},manualAdd:{type:"boolean"},book:{$ref:"#/components/schemas/BookLazyLoaded"},bookFiles:{$ref:"#/components/schemas/BookFileListLazyLoaded"}},additionalProperties:!1},wg={type:"object",properties:{value:{$ref:"#/components/schemas/Edition"},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},Tg={type:"object",properties:{value:{type:"array",items:{$ref:"#/components/schemas/Edition"},nullable:!0,readOnly:!0},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},Ig={type:"object",properties:{id:{type:"integer",format:"int32"},bookId:{type:"integer",format:"int32"},foreignEditionId:{type:"string",nullable:!0},titleSlug:{type:"string",nullable:!0},isbn13:{type:"string",nullable:!0},asin:{type:"string",nullable:!0},title:{type:"string",nullable:!0},language:{type:"string",nullable:!0},overview:{type:"string",nullable:!0},format:{type:"string",nullable:!0},isEbook:{type:"boolean"},disambiguation:{type:"string",nullable:!0},publisher:{type:"string",nullable:!0},pageCount:{type:"integer",format:"int32"},releaseDate:{type:"string",format:"date-time",nullable:!0},images:{type:"array",items:{$ref:"#/components/schemas/MediaCover"},nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/Links"},nullable:!0},ratings:{$ref:"#/components/schemas/Ratings"},monitored:{type:"boolean"},manualAdd:{type:"boolean"},remoteCover:{type:"string",nullable:!0}},additionalProperties:!1},Bg={enum:["unknown","grabbed","bookFileImported","downloadFailed","bookFileDeleted","bookFileRenamed","bookImportIncomplete","downloadImported","bookFileRetagged","downloadIgnored"],type:"string"},xg={type:"object",properties:{order:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},label:{type:"string",nullable:!0},unit:{type:"string",nullable:!0},helpText:{type:"string",nullable:!0},helpTextWarning:{type:"string",nullable:!0},helpLink:{type:"string",nullable:!0},value:{nullable:!0},type:{type:"string",nullable:!0},advanced:{type:"boolean"},selectOptions:{type:"array",items:{$ref:"#/components/schemas/SelectOption"},nullable:!0},selectOptionsProviderAction:{type:"string",nullable:!0},section:{type:"string",nullable:!0},hidden:{type:"string",nullable:!0},placeholder:{type:"string",nullable:!0},isFloat:{type:"boolean"}},additionalProperties:!1},Rg={enum:["none","bookReleaseDate"],type:"string"},Dg={enum:["ok","notice","warning","error"],type:"string"},Pg={type:"object",properties:{id:{type:"integer",format:"int32"},source:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/HealthCheckResult"},message:{type:"string",nullable:!0},wikiUrl:{type:"string",nullable:!0}},additionalProperties:!1},Gg={type:"object",properties:{id:{type:"integer",format:"int32"},bookId:{type:"integer",format:"int32"},authorId:{type:"integer",format:"int32"},sourceTitle:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},qualityCutoffNotMet:{type:"boolean"},date:{type:"string",format:"date-time"},downloadId:{type:"string",nullable:!0},eventType:{$ref:"#/components/schemas/EntityHistoryEventType"},data:{type:"object",additionalProperties:{type:"string",nullable:!0},nullable:!0},book:{$ref:"#/components/schemas/BookResource"},author:{$ref:"#/components/schemas/AuthorResource"}},additionalProperties:!1},kg={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/HistoryResource"},nullable:!0}},additionalProperties:!1},vg={type:"object",properties:{id:{type:"integer",format:"int32"},bindAddress:{type:"string",nullable:!0},port:{type:"integer",format:"int32"},sslPort:{type:"integer",format:"int32"},enableSsl:{type:"boolean"},launchBrowser:{type:"boolean"},authenticationMethod:{$ref:"#/components/schemas/AuthenticationType"},authenticationRequired:{$ref:"#/components/schemas/AuthenticationRequiredType"},analyticsEnabled:{type:"boolean"},username:{type:"string",nullable:!0},password:{type:"string",nullable:!0},passwordConfirmation:{type:"string",nullable:!0},logLevel:{type:"string",nullable:!0},consoleLogLevel:{type:"string",nullable:!0},branch:{type:"string",nullable:!0},apiKey:{type:"string",nullable:!0},sslCertPath:{type:"string",nullable:!0},sslCertPassword:{type:"string",nullable:!0},urlBase:{type:"string",nullable:!0},instanceName:{type:"string",nullable:!0},applicationUrl:{type:"string",nullable:!0},updateAutomatically:{type:"boolean"},updateMechanism:{$ref:"#/components/schemas/UpdateMechanism"},updateScriptPath:{type:"string",nullable:!0},proxyEnabled:{type:"boolean"},proxyType:{$ref:"#/components/schemas/ProxyType"},proxyHostname:{type:"string",nullable:!0},proxyPort:{type:"integer",format:"int32"},proxyUsername:{type:"string",nullable:!0},proxyPassword:{type:"string",nullable:!0},proxyBypassFilter:{type:"string",nullable:!0},proxyBypassLocalAddresses:{type:"boolean"},certificateValidation:{$ref:"#/components/schemas/CertificateValidationType"},backupFolder:{type:"string",nullable:!0},backupInterval:{type:"integer",format:"int32"},backupRetention:{type:"integer",format:"int32"},trustCgnatIpAddresses:{type:"boolean"}},additionalProperties:!1},Sg={type:"object",properties:{order:{type:"integer",format:"int32",readOnly:!0},infoLink:{type:"string",nullable:!0,readOnly:!0},implementationName:{type:"string",nullable:!0,readOnly:!0},name:{type:"string",nullable:!0},negate:{type:"boolean"},required:{type:"boolean"}},additionalProperties:!1},Cg={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},enableAutomaticAdd:{type:"boolean",nullable:!0},rootFolderPath:{type:"string",nullable:!0},qualityProfileId:{type:"integer",format:"int32",nullable:!0},metadataProfileId:{type:"integer",format:"int32",nullable:!0}},additionalProperties:!1},Mg={type:"object",properties:{id:{type:"integer",format:"int32"},foreignId:{type:"string",nullable:!0},authorName:{type:"string",nullable:!0}},additionalProperties:!1},Fg={enum:["none","specificBook","entireAuthor"],type:"string"},Lg={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/ImportListResource"},nullable:!0},enableAutomaticAdd:{type:"boolean"},shouldMonitor:{$ref:"#/components/schemas/ImportListMonitorType"},shouldMonitorExisting:{type:"boolean"},shouldSearch:{type:"boolean"},rootFolderPath:{type:"string",nullable:!0},monitorNewItems:{$ref:"#/components/schemas/NewItemMonitorTypes"},qualityProfileId:{type:"integer",format:"int32"},metadataProfileId:{type:"integer",format:"int32"},listType:{$ref:"#/components/schemas/ImportListType"},listOrder:{type:"integer",format:"int32"},minRefreshInterval:{type:"string",format:"date-span"}},additionalProperties:!1},Ng={enum:["program","goodreads","other"],type:"string"},$g={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},enableRss:{type:"boolean",nullable:!0},enableAutomaticSearch:{type:"boolean",nullable:!0},enableInteractiveSearch:{type:"boolean",nullable:!0},priority:{type:"integer",format:"int32",nullable:!0}},additionalProperties:!1},Qg={type:"object",properties:{id:{type:"integer",format:"int32"},minimumAge:{type:"integer",format:"int32"},maximumSize:{type:"integer",format:"int32"},retention:{type:"integer",format:"int32"},rssSyncInterval:{type:"integer",format:"int32"}},additionalProperties:!1},jg={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},nameLower:{type:"string",nullable:!0,readOnly:!0}},additionalProperties:!1},Ug={enum:["freeleech","halfleech","doubleUpload","internal","scene","freeleech75","freeleech25"],type:"string"},Hg={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/IndexerResource"},nullable:!0},enableRss:{type:"boolean"},enableAutomaticSearch:{type:"boolean"},enableInteractiveSearch:{type:"boolean"},supportsRss:{type:"boolean"},supportsSearch:{type:"boolean"},protocol:{$ref:"#/components/schemas/DownloadProtocol"},priority:{type:"integer",format:"int32"},downloadClientId:{type:"integer",format:"int32"}},additionalProperties:!1},qg={type:"object",properties:{twoLetterCode:{type:"string",nullable:!0},name:{type:"string",nullable:!0}},additionalProperties:!1},Wg={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},nameLower:{type:"string",nullable:!0,readOnly:!0}},additionalProperties:!1},zg={type:"object",properties:{url:{type:"string",nullable:!0},name:{type:"string",nullable:!0}},additionalProperties:!1},Kg={type:"object",properties:{id:{type:"integer",format:"int32"},filename:{type:"string",nullable:!0},lastWriteTime:{type:"string",format:"date-time"},contentsUrl:{type:"string",nullable:!0},downloadUrl:{type:"string",nullable:!0}},additionalProperties:!1},Yg={type:"object",properties:{id:{type:"integer",format:"int32"},time:{type:"string",format:"date-time"},exception:{type:"string",nullable:!0},exceptionType:{type:"string",nullable:!0},level:{type:"string",nullable:!0},logger:{type:"string",nullable:!0},message:{type:"string",nullable:!0},method:{type:"string",nullable:!0}},additionalProperties:!1},_g={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/LogResource"},nullable:!0}},additionalProperties:!1},Xg={type:"object",properties:{id:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},name:{type:"string",nullable:!0},size:{type:"integer",format:"int64"},author:{$ref:"#/components/schemas/AuthorResource"},book:{$ref:"#/components/schemas/BookResource"},foreignEditionId:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},releaseGroup:{type:"string",nullable:!0},qualityWeight:{type:"integer",format:"int32"},downloadId:{type:"string",nullable:!0},indexerFlags:{type:"integer",format:"int32"},rejections:{type:"array",items:{$ref:"#/components/schemas/Rejection"},nullable:!0},audioTags:{$ref:"#/components/schemas/ParsedTrackInfo"},additionalFile:{type:"boolean"},replaceExistingFiles:{type:"boolean"},disableReleaseSwitching:{type:"boolean"}},additionalProperties:!1},Zg={type:"object",properties:{id:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},name:{type:"string",nullable:!0},authorId:{type:"integer",format:"int32",nullable:!0},bookId:{type:"integer",format:"int32",nullable:!0},foreignEditionId:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},releaseGroup:{type:"string",nullable:!0},indexerFlags:{type:"integer",format:"int32"},downloadId:{type:"string",nullable:!0},additionalFile:{type:"boolean"},replaceExistingFiles:{type:"boolean"},disableReleaseSwitching:{type:"boolean"},rejections:{type:"array",items:{$ref:"#/components/schemas/Rejection"},nullable:!0}},additionalProperties:!1},Jg={type:"object",properties:{url:{type:"string",nullable:!0},coverType:{$ref:"#/components/schemas/MediaCoverTypes"},extension:{type:"string",nullable:!0,readOnly:!0},remoteUrl:{type:"string",nullable:!0}},additionalProperties:!1},ef={enum:["unknown","poster","banner","fanart","screenshot","headshot","cover","disc","logo","clearlogo"],type:"string"},tf={type:"object",properties:{audioFormat:{type:"string",nullable:!0},audioBitrate:{type:"integer",format:"int32"},audioChannels:{type:"integer",format:"int32"},audioBits:{type:"integer",format:"int32"},audioSampleRate:{type:"integer",format:"int32"}},additionalProperties:!1},rf={type:"object",properties:{id:{type:"integer",format:"int32"},audioChannels:{type:"number",format:"double"},audioBitRate:{type:"string",nullable:!0},audioCodec:{type:"string",nullable:!0},audioBits:{type:"string",nullable:!0},audioSampleRate:{type:"string",nullable:!0}},additionalProperties:!1},of={type:"object",properties:{id:{type:"integer",format:"int32"},autoUnmonitorPreviouslyDownloadedBooks:{type:"boolean"},recycleBin:{type:"string",nullable:!0},recycleBinCleanupDays:{type:"integer",format:"int32"},downloadPropersAndRepacks:{$ref:"#/components/schemas/ProperDownloadTypes"},createEmptyAuthorFolders:{type:"boolean"},deleteEmptyFolders:{type:"boolean"},fileDate:{$ref:"#/components/schemas/FileDateType"},watchLibraryForChanges:{type:"boolean"},rescanAfterRefresh:{$ref:"#/components/schemas/RescanAfterRefreshType"},allowFingerprinting:{$ref:"#/components/schemas/AllowFingerprinting"},setPermissionsLinux:{type:"boolean"},chmodFolder:{type:"string",nullable:!0},chownGroup:{type:"string",nullable:!0},skipFreeSpaceCheckWhenImporting:{type:"boolean"},minimumFreeSpaceWhenImporting:{type:"integer",format:"int32"},copyUsingHardlinks:{type:"boolean"},importExtraFiles:{type:"boolean"},extraFileExtensions:{type:"string",nullable:!0}},additionalProperties:!1},nf={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},minPopularity:{type:"number",format:"double"},skipMissingDate:{type:"boolean"},skipMissingIsbn:{type:"boolean"},skipPartsAndSets:{type:"boolean"},skipSeriesSecondary:{type:"boolean"},allowedLanguages:{type:"string",nullable:!0},minPages:{type:"integer",format:"int32"},ignored:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},af={type:"object",properties:{value:{$ref:"#/components/schemas/MetadataProfile"},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},sf={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},minPopularity:{type:"number",format:"double"},skipMissingDate:{type:"boolean"},skipMissingIsbn:{type:"boolean"},skipPartsAndSets:{type:"boolean"},skipSeriesSecondary:{type:"boolean"},allowedLanguages:{type:"string",nullable:!0},minPages:{type:"integer",format:"int32"},ignored:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},pf={type:"object",properties:{id:{type:"integer",format:"int32"},writeAudioTags:{$ref:"#/components/schemas/WriteAudioTagsType"},scrubAudioTags:{type:"boolean"},writeBookTags:{$ref:"#/components/schemas/WriteBookTagsType"},updateCovers:{type:"boolean"},embedMetadata:{type:"boolean"}},additionalProperties:!1},lf={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/MetadataResource"},nullable:!0},enable:{type:"boolean"}},additionalProperties:!1},uf={enum:["all","future","missing","existing","latest","first","none","unknown"],type:"string"},df={type:"object",properties:{monitor:{$ref:"#/components/schemas/MonitorTypes"},booksToMonitor:{type:"array",items:{type:"string"},nullable:!0},monitored:{type:"boolean"}},additionalProperties:!1},cf={type:"object",properties:{id:{type:"integer",format:"int32"},renameBooks:{type:"boolean"},replaceIllegalCharacters:{type:"boolean"},colonReplacementFormat:{type:"integer",format:"int32"},standardBookFormat:{type:"string",nullable:!0},authorFolderFormat:{type:"string",nullable:!0},includeAuthorName:{type:"boolean"},includeBookTitle:{type:"boolean"},includeQuality:{type:"boolean"},replaceSpaces:{type:"boolean"},separator:{type:"string",nullable:!0},numberStyle:{type:"string",nullable:!0}},additionalProperties:!1},yf={enum:["all","none","new"],type:"string"},mf={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/NotificationResource"},nullable:!0},link:{type:"string",nullable:!0},onGrab:{type:"boolean"},onReleaseImport:{type:"boolean"},onUpgrade:{type:"boolean"},onRename:{type:"boolean"},onAuthorAdded:{type:"boolean"},onAuthorDelete:{type:"boolean"},onBookDelete:{type:"boolean"},onBookFileDelete:{type:"boolean"},onBookFileDeleteForUpgrade:{type:"boolean"},onHealthIssue:{type:"boolean"},onDownloadFailure:{type:"boolean"},onImportFailure:{type:"boolean"},onBookRetag:{type:"boolean"},onApplicationUpdate:{type:"boolean"},supportsOnGrab:{type:"boolean"},supportsOnReleaseImport:{type:"boolean"},supportsOnUpgrade:{type:"boolean"},supportsOnRename:{type:"boolean"},supportsOnAuthorAdded:{type:"boolean"},supportsOnAuthorDelete:{type:"boolean"},supportsOnBookDelete:{type:"boolean"},supportsOnBookFileDelete:{type:"boolean"},supportsOnBookFileDeleteForUpgrade:{type:"boolean"},supportsOnHealthIssue:{type:"boolean"},includeHealthWarnings:{type:"boolean"},supportsOnDownloadFailure:{type:"boolean"},supportsOnImportFailure:{type:"boolean"},supportsOnBookRetag:{type:"boolean"},supportsOnApplicationUpdate:{type:"boolean"},testCommand:{type:"string",nullable:!0}},additionalProperties:!1},Af={type:"object",properties:{id:{type:"integer",format:"int32"},title:{type:"string",nullable:!0},parsedBookInfo:{$ref:"#/components/schemas/ParsedBookInfo"},author:{$ref:"#/components/schemas/AuthorResource"},books:{type:"array",items:{$ref:"#/components/schemas/BookResource"},nullable:!0}},additionalProperties:!1},gf={type:"object",properties:{bookTitle:{type:"string",nullable:!0},authorName:{type:"string",nullable:!0},authorTitleInfo:{$ref:"#/components/schemas/AuthorTitleInfo"},quality:{$ref:"#/components/schemas/QualityModel"},releaseDate:{type:"string",nullable:!0},discography:{type:"boolean"},discographyStart:{type:"integer",format:"int32"},discographyEnd:{type:"integer",format:"int32"},releaseGroup:{type:"string",nullable:!0},releaseHash:{type:"string",nullable:!0},releaseVersion:{type:"string",nullable:!0},releaseTitle:{type:"string",nullable:!0}},additionalProperties:!1},ff={type:"object",properties:{title:{type:"string",nullable:!0},cleanTitle:{type:"string",nullable:!0},authors:{type:"array",items:{type:"string"},nullable:!0},authorTitle:{type:"string",nullable:!0,readOnly:!0},bookTitle:{type:"string",nullable:!0},seriesTitle:{type:"string",nullable:!0},seriesIndex:{type:"string",nullable:!0},isbn:{type:"string",nullable:!0},asin:{type:"string",nullable:!0},goodreadsId:{type:"string",nullable:!0},authorMBId:{type:"string",nullable:!0},bookMBId:{type:"string",nullable:!0},releaseMBId:{type:"string",nullable:!0},recordingMBId:{type:"string",nullable:!0},trackMBId:{type:"string",nullable:!0},discNumber:{type:"integer",format:"int32"},discCount:{type:"integer",format:"int32"},country:{$ref:"#/components/schemas/IsoCountry"},year:{type:"integer",format:"int32"},publisher:{type:"string",nullable:!0},label:{type:"string",nullable:!0},source:{type:"string",nullable:!0},catalogNumber:{type:"string",nullable:!0},disambiguation:{type:"string",nullable:!0},duration:{type:"string",format:"date-span"},quality:{$ref:"#/components/schemas/QualityModel"},mediaInfo:{$ref:"#/components/schemas/MediaInfoModel"},trackNumbers:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},language:{type:"string",nullable:!0},releaseGroup:{type:"string",nullable:!0},releaseHash:{type:"string",nullable:!0}},additionalProperties:!1},Vf={type:"object",properties:{status:{type:"string",nullable:!0}},additionalProperties:!1},hf={type:"object",properties:{format:{$ref:"#/components/schemas/CustomFormat"},score:{type:"integer",format:"int32"}},additionalProperties:!1},Ef={type:"object",properties:{id:{type:"integer",format:"int32"},format:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},score:{type:"integer",format:"int32"}},additionalProperties:!1},bf={enum:["preferAndUpgrade","doNotUpgrade","doNotPrefer"],type:"string"},Of={type:"object",properties:{message:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/ProviderMessageType"}},additionalProperties:!1},wf={enum:["info","warning","error"],type:"string"},Tf={enum:["http","socks4","socks5"],type:"string"},If={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0}},additionalProperties:!1},Bf={type:"object",properties:{id:{type:"integer",format:"int32"},quality:{$ref:"#/components/schemas/Quality"},title:{type:"string",nullable:!0},weight:{type:"integer",format:"int32"},minSize:{type:"number",format:"double",nullable:!0},maxSize:{type:"number",format:"double",nullable:!0}},additionalProperties:!1},xf={type:"object",properties:{quality:{$ref:"#/components/schemas/Quality"},revision:{$ref:"#/components/schemas/Revision"}},additionalProperties:!1},Rf={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},upgradeAllowed:{type:"boolean"},cutoff:{type:"integer",format:"int32"},minFormatScore:{type:"integer",format:"int32"},cutoffFormatScore:{type:"integer",format:"int32"},formatItems:{type:"array",items:{$ref:"#/components/schemas/ProfileFormatItem"},nullable:!0},items:{type:"array",items:{$ref:"#/components/schemas/QualityProfileQualityItem"},nullable:!0}},additionalProperties:!1},Df={type:"object",properties:{value:{$ref:"#/components/schemas/QualityProfile"},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},Pf={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/Quality"},items:{type:"array",items:{$ref:"#/components/schemas/QualityProfileQualityItem"},nullable:!0},allowed:{type:"boolean"}},additionalProperties:!1},Gf={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/Quality"},items:{type:"array",items:{$ref:"#/components/schemas/QualityProfileQualityItemResource"},nullable:!0},allowed:{type:"boolean"}},additionalProperties:!1},kf={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},upgradeAllowed:{type:"boolean"},cutoff:{type:"integer",format:"int32"},items:{type:"array",items:{$ref:"#/components/schemas/QualityProfileQualityItemResource"},nullable:!0},minFormatScore:{type:"integer",format:"int32"},cutoffFormatScore:{type:"integer",format:"int32"},formatItems:{type:"array",items:{$ref:"#/components/schemas/ProfileFormatItemResource"},nullable:!0}},additionalProperties:!1},vf={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},Sf={type:"object",properties:{id:{type:"integer",format:"int32"},authorId:{type:"integer",format:"int32",nullable:!0},bookId:{type:"integer",format:"int32",nullable:!0},author:{$ref:"#/components/schemas/AuthorResource"},book:{$ref:"#/components/schemas/BookResource"},quality:{$ref:"#/components/schemas/QualityModel"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},size:{type:"number",format:"double"},title:{type:"string",nullable:!0},sizeleft:{type:"number",format:"double"},timeleft:{type:"string",format:"date-span",nullable:!0},estimatedCompletionTime:{type:"string",format:"date-time",nullable:!0},status:{type:"string",nullable:!0},trackedDownloadStatus:{$ref:"#/components/schemas/TrackedDownloadStatus"},trackedDownloadState:{$ref:"#/components/schemas/TrackedDownloadState"},statusMessages:{type:"array",items:{$ref:"#/components/schemas/TrackedDownloadStatusMessage"},nullable:!0},errorMessage:{type:"string",nullable:!0},downloadId:{type:"string",nullable:!0},protocol:{$ref:"#/components/schemas/DownloadProtocol"},downloadClient:{type:"string",nullable:!0},downloadClientHasPostImportCategory:{type:"boolean"},indexer:{type:"string",nullable:!0},outputPath:{type:"string",nullable:!0},downloadForced:{type:"boolean"}},additionalProperties:!1},Cf={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/QueueResource"},nullable:!0}},additionalProperties:!1},Mf={type:"object",properties:{id:{type:"integer",format:"int32"},totalCount:{type:"integer",format:"int32"},count:{type:"integer",format:"int32"},unknownCount:{type:"integer",format:"int32"},errors:{type:"boolean"},warnings:{type:"boolean"},unknownErrors:{type:"boolean"},unknownWarnings:{type:"boolean"}},additionalProperties:!1},Ff={type:"object",properties:{votes:{type:"integer",format:"int32"},value:{type:"number",format:"double"},popularity:{type:"number",format:"double",readOnly:!0}},additionalProperties:!1},Lf={type:"object",properties:{reason:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/RejectionType"}},additionalProperties:!1},Nf={enum:["permanent","temporary"],type:"string"},$f={type:"object",properties:{id:{type:"integer",format:"int32"},enabled:{type:"boolean"},required:{type:"array",items:{type:"string"},nullable:!0},ignored:{type:"array",items:{type:"string"},nullable:!0},indexerId:{type:"integer",format:"int32"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},Qf={type:"object",properties:{id:{type:"integer",format:"int32"},guid:{type:"string",nullable:!0},quality:{$ref:"#/components/schemas/QualityModel"},qualityWeight:{type:"integer",format:"int32"},age:{type:"integer",format:"int32"},ageHours:{type:"number",format:"double"},ageMinutes:{type:"number",format:"double"},size:{type:"integer",format:"int64"},indexerId:{type:"integer",format:"int32"},indexer:{type:"string",nullable:!0},releaseGroup:{type:"string",nullable:!0},subGroup:{type:"string",nullable:!0},releaseHash:{type:"string",nullable:!0},title:{type:"string",nullable:!0},discography:{type:"boolean"},sceneSource:{type:"boolean"},airDate:{type:"string",nullable:!0},authorName:{type:"string",nullable:!0},bookTitle:{type:"string",nullable:!0},approved:{type:"boolean"},temporarilyRejected:{type:"boolean"},rejected:{type:"boolean"},rejections:{type:"array",items:{type:"string"},nullable:!0},publishDate:{type:"string",format:"date-time"},commentUrl:{type:"string",nullable:!0},downloadUrl:{type:"string",nullable:!0},infoUrl:{type:"string",nullable:!0},downloadAllowed:{type:"boolean"},releaseWeight:{type:"integer",format:"int32"},customFormats:{type:"array",items:{$ref:"#/components/schemas/CustomFormatResource"},nullable:!0},customFormatScore:{type:"integer",format:"int32"},magnetUrl:{type:"string",nullable:!0},infoHash:{type:"string",nullable:!0},seeders:{type:"integer",format:"int32",nullable:!0},leechers:{type:"integer",format:"int32",nullable:!0},protocol:{$ref:"#/components/schemas/DownloadProtocol"},indexerFlags:{type:"integer",format:"int32"},authorId:{type:"integer",format:"int32",nullable:!0},bookId:{type:"integer",format:"int32",nullable:!0},downloadClientId:{type:"integer",format:"int32",nullable:!0},downloadClient:{type:"string",nullable:!0}},additionalProperties:!1},jf={type:"object",properties:{id:{type:"integer",format:"int32"},host:{type:"string",nullable:!0},remotePath:{type:"string",nullable:!0},localPath:{type:"string",nullable:!0}},additionalProperties:!1},Uf={type:"object",properties:{id:{type:"integer",format:"int32"},authorId:{type:"integer",format:"int32"},bookId:{type:"integer",format:"int32"},bookFileId:{type:"integer",format:"int32"},existingPath:{type:"string",nullable:!0},newPath:{type:"string",nullable:!0}},additionalProperties:!1},Hf={enum:["always","afterManual","never"],type:"string"},qf={type:"object",properties:{id:{type:"integer",format:"int32"},authorId:{type:"integer",format:"int32"},bookId:{type:"integer",format:"int32"},trackNumbers:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},bookFileId:{type:"integer",format:"int32"},path:{type:"string",nullable:!0},changes:{type:"array",items:{$ref:"#/components/schemas/TagDifference"},nullable:!0}},additionalProperties:!1},Wf={type:"object",properties:{version:{type:"integer",format:"int32"},real:{type:"integer",format:"int32"},isRepack:{type:"boolean"}},additionalProperties:!1},zf={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},path:{type:"string",nullable:!0},defaultMetadataProfileId:{type:"integer",format:"int32"},defaultQualityProfileId:{type:"integer",format:"int32"},defaultMonitorOption:{$ref:"#/components/schemas/MonitorTypes"},defaultNewItemMonitorOption:{$ref:"#/components/schemas/NewItemMonitorTypes"},defaultTags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},isCalibreLibrary:{type:"boolean"},host:{type:"string",nullable:!0},port:{type:"integer",format:"int32"},urlBase:{type:"string",nullable:!0},username:{type:"string",nullable:!0},password:{type:"string",nullable:!0},library:{type:"string",nullable:!0},outputFormat:{type:"string",nullable:!0},outputProfile:{type:"string",nullable:!0},useSsl:{type:"boolean"},accessible:{type:"boolean"},freeSpace:{type:"integer",format:"int64",nullable:!0},totalSpace:{type:"integer",format:"int64",nullable:!0}},additionalProperties:!1},Kf={enum:["console","service","tray"],type:"string"},Yf={type:"object",properties:{value:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},order:{type:"integer",format:"int32"},hint:{type:"string",nullable:!0}},additionalProperties:!1},_f={type:"object",properties:{id:{type:"integer",format:"int32"},foreignSeriesId:{type:"string",nullable:!0},title:{type:"string",nullable:!0},description:{type:"string",nullable:!0},numbered:{type:"boolean"},workCount:{type:"integer",format:"int32"},primaryWorkCount:{type:"integer",format:"int32"},linkItems:{$ref:"#/components/schemas/SeriesBookLinkListLazyLoaded"},books:{$ref:"#/components/schemas/BookListLazyLoaded"},foreignAuthorId:{type:"string",nullable:!0}},additionalProperties:!1},Xf={type:"object",properties:{id:{type:"integer",format:"int32"},position:{type:"string",nullable:!0},seriesPosition:{type:"integer",format:"int32"},seriesId:{type:"integer",format:"int32"},bookId:{type:"integer",format:"int32"},isPrimary:{type:"boolean"},series:{$ref:"#/components/schemas/SeriesLazyLoaded"},book:{$ref:"#/components/schemas/BookLazyLoaded"}},additionalProperties:!1},Zf={type:"object",properties:{value:{type:"array",items:{$ref:"#/components/schemas/SeriesBookLink"},nullable:!0,readOnly:!0},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},Jf={type:"object",properties:{id:{type:"integer",format:"int32"},position:{type:"string",nullable:!0},seriesPosition:{type:"integer",format:"int32"},seriesId:{type:"integer",format:"int32"},bookId:{type:"integer",format:"int32"}},additionalProperties:!1},eV={type:"object",properties:{value:{$ref:"#/components/schemas/Series"},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},tV={type:"object",properties:{value:{type:"array",items:{$ref:"#/components/schemas/Series"},nullable:!0,readOnly:!0},isLoaded:{type:"boolean",readOnly:!0}},additionalProperties:!1},rV={type:"object",properties:{id:{type:"integer",format:"int32"},title:{type:"string",nullable:!0},description:{type:"string",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/SeriesBookLinkResource"},nullable:!0}},additionalProperties:!1},oV={enum:["default","ascending","descending"],type:"string"},nV={type:"object",properties:{appName:{type:"string",nullable:!0},instanceName:{type:"string",nullable:!0},version:{type:"string",nullable:!0},buildTime:{type:"string",format:"date-time"},isDebug:{type:"boolean"},isProduction:{type:"boolean"},isAdmin:{type:"boolean"},isUserInteractive:{type:"boolean"},startupPath:{type:"string",nullable:!0},appData:{type:"string",nullable:!0},osName:{type:"string",nullable:!0},osVersion:{type:"string",nullable:!0},isNetCore:{type:"boolean"},isLinux:{type:"boolean"},isOsx:{type:"boolean"},isWindows:{type:"boolean"},isDocker:{type:"boolean"},mode:{$ref:"#/components/schemas/RuntimeMode"},branch:{type:"string",nullable:!0},databaseType:{$ref:"#/components/schemas/DatabaseType"},databaseVersion:{type:"string",nullable:!0},authentication:{$ref:"#/components/schemas/AuthenticationType"},migrationVersion:{type:"integer",format:"int32"},urlBase:{type:"string",nullable:!0},runtimeVersion:{type:"string",nullable:!0},runtimeName:{type:"string",nullable:!0},startTime:{type:"string",format:"date-time"},packageVersion:{type:"string",nullable:!0},packageAuthor:{type:"string",nullable:!0},packageUpdateMechanism:{$ref:"#/components/schemas/UpdateMechanism"},packageUpdateMechanismMessage:{type:"string",nullable:!0}},additionalProperties:!1},iV={type:"object",properties:{id:{type:"integer",format:"int32"},label:{type:"string",nullable:!0},delayProfileIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},importListIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},notificationIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},restrictionIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},indexerIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},downloadClientIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},authorIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},aV={type:"object",properties:{field:{type:"string",nullable:!0},oldValue:{type:"string",nullable:!0},newValue:{type:"string",nullable:!0}},additionalProperties:!1},sV={type:"object",properties:{id:{type:"integer",format:"int32"},label:{type:"string",nullable:!0}},additionalProperties:!1},pV={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},taskName:{type:"string",nullable:!0},interval:{type:"integer",format:"int32"},lastExecution:{type:"string",format:"date-time"},lastStartTime:{type:"string",format:"date-time"},nextExecution:{type:"string",format:"date-time"},lastDuration:{type:"string",format:"date-span",readOnly:!0}},additionalProperties:!1},lV={enum:["downloading","downloadFailed","downloadFailedPending","importPending","importing","importFailed","imported","ignored"],type:"string"},uV={enum:["ok","warning","error"],type:"string"},dV={type:"object",properties:{title:{type:"string",nullable:!0},messages:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},cV={type:"object",properties:{id:{type:"integer",format:"int32"},firstDayOfWeek:{type:"integer",format:"int32"},calendarWeekColumnHeader:{type:"string",nullable:!0},shortDateFormat:{type:"string",nullable:!0},longDateFormat:{type:"string",nullable:!0},timeFormat:{type:"string",nullable:!0},showRelativeDates:{type:"boolean"},enableColorImpairedMode:{type:"boolean"},uiLanguage:{type:"integer",format:"int32"},theme:{type:"string",nullable:!0}},additionalProperties:!1},yV={type:"object",properties:{new:{type:"array",items:{type:"string"},nullable:!0},fixed:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},mV={enum:["builtIn","script","external","apt","docker"],type:"string"},AV={type:"object",properties:{id:{type:"integer",format:"int32"},version:{type:"string",nullable:!0},branch:{type:"string",nullable:!0},releaseDate:{type:"string",format:"date-time"},fileName:{type:"string",nullable:!0},url:{type:"string",nullable:!0},installed:{type:"boolean"},installedOn:{type:"string",format:"date-time",nullable:!0},installable:{type:"boolean"},latest:{type:"boolean"},changes:{$ref:"#/components/schemas/UpdateChanges"},hash:{type:"string",nullable:!0}},additionalProperties:!1},gV={enum:["no","newFiles","allFiles","sync"],type:"string"},fV={enum:["newFiles","allFiles","sync"],type:"string"};var o=h(f()),VV=(e)=>{return(e?.client??o).get({...e,url:"/api"})},hV=(e)=>{return(e?.client??o).post({...e,...V,headers:{"Content-Type":null,...e?.headers},url:"/login"})},EV=(e)=>{return(e?.client??o).get({...e,url:"/login"})},bV=(e)=>{return(e?.client??o).get({...e,url:"/logout"})},Xt=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/author"})},Zt=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/author"})},Jt=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/author/{id}"})},er=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/author/{id}"})},tr=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/author/{id}"})},OV=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/author/editor"})},wV=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/author/editor"})},rr=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/author/lookup"})},TV=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/system/backup"})},IV=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/system/backup/{id}"})},BV=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/system/backup/restore/{id}"})},xV=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/system/backup/restore/upload"})},RV=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/blocklist"})},DV=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/blocklist/{id}"})},PV=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/blocklist/bulk"})},or=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/book"})},GV=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/book"})},kV=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/book/{id}/overview"})},vV=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/book/{id}"})},SV=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/book/{id}"})},nr=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/book/{id}"})},CV=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/book/monitor"})},MV=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/book/editor"})},FV=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/book/editor"})},LV=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/bookfile"})},NV=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/bookfile/{id}"})},$V=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/bookfile/{id}"})},QV=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/bookfile/{id}"})},jV=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/bookfile/editor"})},UV=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/bookfile/bulk"})},HV=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/book/lookup"})},qV=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/bookshelf"})},WV=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/calendar"})},zV=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/calendar/{id}"})},KV=(e)=>{return(e?.client??o).get({...e,url:"/feed/v1/calendar/readarr.ics"})},ir=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/command"})},ar=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/command"})},YV=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/command/{id}"})},_V=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/command/{id}"})},XV=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/customfilter"})},ZV=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/customfilter"})},JV=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/customfilter/{id}"})},eh=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/customfilter/{id}"})},th=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/customfilter/{id}"})},rh=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/customformat"})},oh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/customformat"})},nh=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/customformat/{id}"})},ih=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/customformat/{id}"})},ah=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/customformat/{id}"})},sh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/customformat/schema"})},ph=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/wanted/cutoff"})},lh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/wanted/cutoff/{id}"})},uh=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/delayprofile"})},dh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/delayprofile"})},ch=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/delayprofile/{id}"})},yh=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/delayprofile/{id}"})},mh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/delayprofile/{id}"})},Ah=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/delayprofile/reorder/{id}"})},gh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/development"})},fh=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/config/development/{id}"})},Vh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/development/{id}"})},hh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/diskspace"})},Eh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/downloadclient"})},bh=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/downloadclient"})},Oh=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/downloadclient/{id}"})},wh=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/downloadclient/{id}"})},Th=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/downloadclient/{id}"})},Ih=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/downloadclient/bulk"})},Bh=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/downloadclient/bulk"})},xh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/downloadclient/schema"})},Rh=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/downloadclient/test"})},Dh=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/downloadclient/testall"})},Ph=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/downloadclient/action/{name}"})},Gh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/downloadclient"})},kh=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/config/downloadclient/{id}"})},vh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/downloadclient/{id}"})},Sh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/edition"})},Ch=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/filesystem"})},Mh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/filesystem/type"})},Fh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/filesystem/mediafiles"})},sr=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/health"})},Lh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/history"})},Nh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/history/since"})},$h=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/history/author"})},Qh=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/history/failed/{id}"})},jh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/host"})},Uh=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/config/host/{id}"})},Hh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/host/{id}"})},qh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/importlist"})},Wh=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/importlist"})},zh=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/importlist/{id}"})},Kh=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/importlist/{id}"})},Yh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/importlist/{id}"})},_h=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/importlist/bulk"})},Xh=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/importlist/bulk"})},Zh=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/importlist/schema"})},Jh=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/importlist/test"})},eE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/importlist/testall"})},tE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/importlist/action/{name}"})},rE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/importlistexclusion"})},oE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/importlistexclusion"})},nE=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/importlistexclusion/{id}"})},iE=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/importlistexclusion/{id}"})},aE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/importlistexclusion/{id}"})},sE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/indexer"})},pE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/indexer"})},lE=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/indexer/{id}"})},uE=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/indexer/{id}"})},dE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/indexer/{id}"})},cE=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/indexer/bulk"})},yE=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/indexer/bulk"})},mE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/indexer/schema"})},AE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/indexer/test"})},gE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/indexer/testall"})},fE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/indexer/action/{name}"})},VE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/indexer"})},hE=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/config/indexer/{id}"})},EE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/indexer/{id}"})},bE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/indexerflag"})},OE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/language"})},wE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/language/{id}"})},TE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/localization"})},IE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/log"})},BE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/log/file"})},xE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/log/file/{filename}"})},RE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/manualimport"})},DE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/manualimport"})},PE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/mediacover/author/{authorId}/{filename}"})},GE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/mediacover/book/{bookId}/{filename}"})},kE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/mediamanagement"})},vE=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/config/mediamanagement/{id}"})},SE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/mediamanagement/{id}"})},CE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/metadata"})},ME=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/metadata"})},FE=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/metadata/{id}"})},LE=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/metadata/{id}"})},NE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/metadata/{id}"})},$E=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/metadata/schema"})},QE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/metadata/test"})},jE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/metadata/testall"})},UE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/metadata/action/{name}"})},HE=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/metadataprofile"})},qE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/metadataprofile"})},WE=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/metadataprofile/{id}"})},zE=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/metadataprofile/{id}"})},KE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/metadataprofile/{id}"})},YE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/metadataprofile/schema"})},_E=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/metadataprovider"})},XE=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/config/metadataprovider/{id}"})},ZE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/metadataprovider/{id}"})},JE=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/wanted/missing"})},eb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/wanted/missing/{id}"})},tb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/naming"})},rb=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/config/naming/{id}"})},ob=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/naming/{id}"})},nb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/naming/examples"})},ib=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/notification"})},ab=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/notification"})},sb=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/notification/{id}"})},pb=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/notification/{id}"})},lb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/notification/{id}"})},ub=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/notification/schema"})},db=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/notification/test"})},cb=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/notification/testall"})},yb=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/notification/action/{name}"})},mb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/parse"})},Ab=(e)=>{return(e?.client??o).get({...e,url:"/ping"})},gb=(e)=>{return(e?.client??o).head({...e,url:"/ping"})},fb=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/qualitydefinition/{id}"})},Vb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/qualitydefinition/{id}"})},hb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/qualitydefinition"})},Eb=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/qualitydefinition/update"})},bb=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/qualityprofile"})},Ob=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/qualityprofile"})},wb=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/qualityprofile/{id}"})},Tb=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/qualityprofile/{id}"})},Ib=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/qualityprofile/{id}"})},Bb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/qualityprofile/schema"})},xb=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/queue/{id}"})},Rb=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/queue/bulk"})},Db=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/queue"})},Pb=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/queue/grab/{id}"})},Gb=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/queue/grab/bulk"})},kb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/queue/details"})},vb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/queue/status"})},Sb=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/release"})},Cb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/release"})},Mb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/releaseprofile"})},Fb=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/releaseprofile"})},Lb=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/releaseprofile/{id}"})},Nb=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/releaseprofile/{id}"})},$b=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/releaseprofile/{id}"})},Qb=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/release/push"})},jb=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/remotepathmapping"})},Ub=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/remotepathmapping"})},Hb=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/remotepathmapping/{id}"})},qb=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/remotepathmapping/{id}"})},Wb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/remotepathmapping/{id}"})},zb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/rename"})},Kb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/retag"})},pr=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/rootfolder"})},lr=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/rootfolder"})},Yb=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/rootfolder/{id}"})},_b=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/rootfolder/{id}"})},Xb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/rootfolder/{id}"})},Zb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/search"})},Jb=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/series"})},e1=(e)=>{return(e?.client??o).get({...e,url:"/content/{path}"})},t1=(e)=>{return(e?.client??o).get({...e,url:"/"})},r1=(e)=>{return(e?.client??o).get({...e,url:"/{path}"})},ur=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/system/status"})},o1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/system/routes"})},n1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/system/routes/duplicate"})},i1=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/system/shutdown"})},a1=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/system/restart"})},s1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/tag"})},p1=(e)=>{return(e?.client??o).post({...e,url:"/api/v1/tag"})},l1=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/tag/{id}"})},u1=(e)=>{return(e?.client??o).delete({...e,url:"/api/v1/tag/{id}"})},d1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/tag/{id}"})},c1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/tag/detail"})},y1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/tag/detail/{id}"})},m1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/system/task"})},A1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/system/task/{id}"})},g1=(e)=>{return(e?.client??o).put({...e,url:"/api/v1/config/ui/{id}"})},f1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/ui/{id}"})},V1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/config/ui"})},h1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/update"})},E1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/log/file/update"})},b1=(e)=>{return(e?.client??o).get({...e,url:"/api/v1/log/file/update/{filename}"})};var wr={};T(wr,{putApiV1TagById:()=>ST,putApiV1NotificationById:()=>mT,putApiV1IndexerproxyById:()=>Kw,putApiV1IndexerById:()=>fr,putApiV1IndexerBulk:()=>$w,putApiV1DownloadclientById:()=>hw,putApiV1DownloadclientBulk:()=>ww,putApiV1CustomfilterById:()=>dw,putApiV1ConfigUiById:()=>jT,putApiV1ConfigHostById:()=>Lw,putApiV1ConfigDownloadclientById:()=>Pw,putApiV1ConfigDevelopmentById:()=>Aw,putApiV1AppprofileById:()=>ZO,putApiV1ApplicationsById:()=>$O,putApiV1ApplicationsBulk:()=>UO,postLogin:()=>tw,postApiV1Tag:()=>FT,postApiV1SystemShutdown:()=>GT,postApiV1SystemRestart:()=>kT,postApiV1SystemBackupRestoreUpload:()=>sw,postApiV1SystemBackupRestoreById:()=>aw,postApiV1SearchBulk:()=>IT,postApiV1Search:()=>TT,postApiV1NotificationTestall:()=>ET,postApiV1NotificationTest:()=>hT,postApiV1NotificationActionByName:()=>bT,postApiV1Notification:()=>fT,postApiV1IndexerproxyTestall:()=>eT,postApiV1IndexerproxyTest:()=>Jw,postApiV1IndexerproxyActionByName:()=>tT,postApiV1Indexerproxy:()=>Xw,postApiV1IndexerTestall:()=>Hw,postApiV1IndexerTest:()=>Uw,postApiV1IndexerActionByName:()=>qw,postApiV1Indexer:()=>Er,postApiV1DownloadclientTestall:()=>xw,postApiV1DownloadclientTest:()=>Bw,postApiV1DownloadclientActionByName:()=>Rw,postApiV1Downloadclient:()=>Ow,postApiV1Customfilter:()=>mw,postApiV1Command:()=>yr,postApiV1Appprofile:()=>YO,postApiV1ApplicationsTestall:()=>zO,postApiV1ApplicationsTest:()=>WO,postApiV1ApplicationsActionByName:()=>KO,postApiV1Applications:()=>jO,headPing:()=>wT,getPing:()=>OT,getLogout:()=>ow,getLogin:()=>rw,getContentByPath:()=>BT,getByPath:()=>RT,getByIdDownload:()=>cT,getByIdApi:()=>uT,getApiV1Update:()=>qT,getApiV1TagDetailById:()=>LT,getApiV1TagDetail:()=>NT,getApiV1TagById:()=>vT,getApiV1Tag:()=>MT,getApiV1SystemTaskById:()=>QT,getApiV1SystemTask:()=>$T,getApiV1SystemStatus:()=>Or,getApiV1SystemRoutesDuplicate:()=>PT,getApiV1SystemRoutes:()=>DT,getApiV1SystemBackup:()=>nw,getApiV1Search:()=>br,getApiV1NotificationSchema:()=>VT,getApiV1NotificationById:()=>yT,getApiV1Notification:()=>gT,getApiV1LogFileUpdateByFilename:()=>zT,getApiV1LogFileUpdate:()=>WT,getApiV1LogFileByFilename:()=>pT,getApiV1LogFile:()=>sT,getApiV1Log:()=>aT,getApiV1LocalizationOptions:()=>iT,getApiV1Localization:()=>nT,getApiV1Indexerstatus:()=>oT,getApiV1Indexerstats:()=>rT,getApiV1IndexerproxySchema:()=>Zw,getApiV1IndexerproxyById:()=>zw,getApiV1Indexerproxy:()=>_w,getApiV1IndexerSchema:()=>jw,getApiV1IndexerCategories:()=>Ww,getApiV1IndexerByIdNewznab:()=>lT,getApiV1IndexerByIdDownload:()=>dT,getApiV1IndexerById:()=>gr,getApiV1Indexer:()=>hr,getApiV1HistorySince:()=>Cw,getApiV1HistoryIndexer:()=>Mw,getApiV1History:()=>Sw,getApiV1Health:()=>Ar,getApiV1FilesystemType:()=>vw,getApiV1Filesystem:()=>kw,getApiV1DownloadclientSchema:()=>Iw,getApiV1DownloadclientById:()=>Vw,getApiV1Downloadclient:()=>bw,getApiV1CustomfilterById:()=>uw,getApiV1Customfilter:()=>yw,getApiV1ConfigUiById:()=>UT,getApiV1ConfigUi:()=>HT,getApiV1ConfigHostById:()=>Fw,getApiV1ConfigHost:()=>Nw,getApiV1ConfigDownloadclientById:()=>Dw,getApiV1ConfigDownloadclient:()=>Gw,getApiV1ConfigDevelopmentById:()=>gw,getApiV1ConfigDevelopment:()=>fw,getApiV1CommandById:()=>pw,getApiV1Command:()=>mr,getApiV1AppprofileSchema:()=>ew,getApiV1AppprofileById:()=>JO,getApiV1Appprofile:()=>_O,getApiV1ApplicationsSchema:()=>qO,getApiV1ApplicationsById:()=>NO,getApiV1Applications:()=>cr,getApi:()=>LO,get:()=>xT,deleteApiV1TagById:()=>CT,deleteApiV1SystemBackupById:()=>iw,deleteApiV1NotificationById:()=>AT,deleteApiV1IndexerproxyById:()=>Yw,deleteApiV1IndexerById:()=>Vr,deleteApiV1IndexerBulk:()=>Qw,deleteApiV1DownloadclientById:()=>Ew,deleteApiV1DownloadclientBulk:()=>Tw,deleteApiV1CustomfilterById:()=>cw,deleteApiV1CommandById:()=>lw,deleteApiV1AppprofileById:()=>XO,deleteApiV1ApplicationsById:()=>QO,deleteApiV1ApplicationsBulk:()=>HO,client:()=>i,UserAgentStatisticsSchema:()=>FO,UpdateResourceSchema:()=>MO,UpdateMechanismSchema:()=>CO,UpdateChangesSchema:()=>SO,UiConfigResourceSchema:()=>vO,TvSearchParamSchema:()=>kO,TaskResourceSchema:()=>GO,TagResourceSchema:()=>PO,TagDetailsResourceSchema:()=>DO,SystemResourceSchema:()=>RO,SortDirectionSchema:()=>xO,SelectOptionSchema:()=>BO,SearchParamSchema:()=>IO,RuntimeModeSchema:()=>TO,ReleaseResourceSchema:()=>wO,ProxyTypeSchema:()=>OO,ProviderMessageTypeSchema:()=>bO,ProviderMessageSchema:()=>EO,PrivacyLevelSchema:()=>hO,PingResourceSchema:()=>VO,NotificationResourceSchema:()=>fO,MusicSearchParamSchema:()=>gO,MovieSearchParamSchema:()=>AO,LogResourceSchema:()=>yO,LogResourcePagingResourceSchema:()=>mO,LogFileResourceSchema:()=>cO,LocalizationOptionSchema:()=>dO,IndexerStatusResourceSchema:()=>uO,IndexerStatsResourceSchema:()=>lO,IndexerStatisticsSchema:()=>pO,IndexerResourceSchema:()=>sO,IndexerProxyResourceSchema:()=>aO,IndexerPrivacySchema:()=>iO,IndexerCategorySchema:()=>nO,IndexerCapabilityResourceSchema:()=>oO,IndexerBulkResourceSchema:()=>rO,IActionResultSchema:()=>tO,HostStatisticsSchema:()=>eO,HostConfigResourceSchema:()=>J1,HistoryResourceSchema:()=>X1,HistoryResourcePagingResourceSchema:()=>Z1,HistoryEventTypeSchema:()=>_1,HealthResourceSchema:()=>Y1,HealthCheckResultSchema:()=>K1,FieldSchema:()=>z1,DownloadProtocolSchema:()=>W1,DownloadClientResourceSchema:()=>q1,DownloadClientConfigResourceSchema:()=>H1,DownloadClientCategorySchema:()=>U1,DownloadClientBulkResourceSchema:()=>j1,DevelopmentConfigResourceSchema:()=>Q1,DatabaseTypeSchema:()=>$1,CustomFilterResourceSchema:()=>N1,CommandTriggerSchema:()=>L1,CommandStatusSchema:()=>F1,CommandSchema:()=>S1,CommandResourceSchema:()=>M1,CommandPrioritySchema:()=>C1,CertificateValidationTypeSchema:()=>v1,BookSearchParamSchema:()=>k1,BackupTypeSchema:()=>G1,BackupResourceSchema:()=>P1,AuthenticationTypeSchema:()=>D1,AuthenticationRequiredTypeSchema:()=>R1,ApplyTagsSchema:()=>x1,ApplicationSyncLevelSchema:()=>B1,ApplicationResourceSchema:()=>I1,ApplicationBulkResourceSchema:()=>T1,AppProfileResourceSchema:()=>w1,ApiInfoResourceSchema:()=>O1});var O1={type:"object",properties:{current:{type:"string",nullable:!0},deprecated:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},w1={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},enableRss:{type:"boolean"},enableAutomaticSearch:{type:"boolean"},enableInteractiveSearch:{type:"boolean"},minimumSeeders:{type:"integer",format:"int32"}},additionalProperties:!1},T1={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},syncLevel:{$ref:"#/components/schemas/ApplicationSyncLevel"}},additionalProperties:!1},I1={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/ApplicationResource"},nullable:!0},syncLevel:{$ref:"#/components/schemas/ApplicationSyncLevel"},testCommand:{type:"string",nullable:!0}},additionalProperties:!1},B1={enum:["disabled","addOnly","fullSync"],type:"string"},x1={enum:["add","remove","replace"],type:"string"},R1={enum:["enabled","disabledForLocalAddresses"],type:"string"},D1={enum:["none","basic","forms","external"],type:"string"},P1={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},path:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/BackupType"},size:{type:"integer",format:"int64"},time:{type:"string",format:"date-time"}},additionalProperties:!1},G1={enum:["scheduled","manual","update"],type:"string"},k1={enum:["q","title","author","publisher","genre","year"],type:"string"},v1={enum:["enabled","disabledForLocalAddresses","disabled"],type:"string"},S1={type:"object",properties:{sendUpdatesToClient:{type:"boolean"},updateScheduledTask:{type:"boolean",readOnly:!0},completionMessage:{type:"string",nullable:!0,readOnly:!0},requiresDiskAccess:{type:"boolean",readOnly:!0},isExclusive:{type:"boolean",readOnly:!0},isTypeExclusive:{type:"boolean",readOnly:!0},name:{type:"string",nullable:!0,readOnly:!0},lastExecutionTime:{type:"string",format:"date-time",nullable:!0},lastStartTime:{type:"string",format:"date-time",nullable:!0},trigger:{$ref:"#/components/schemas/CommandTrigger"},suppressMessages:{type:"boolean"},clientUserAgent:{type:"string",nullable:!0}},additionalProperties:!1},C1={enum:["normal","high","low"],type:"string"},M1={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},commandName:{type:"string",nullable:!0},message:{type:"string",nullable:!0},body:{$ref:"#/components/schemas/Command"},priority:{$ref:"#/components/schemas/CommandPriority"},status:{$ref:"#/components/schemas/CommandStatus"},queued:{type:"string",format:"date-time"},started:{type:"string",format:"date-time",nullable:!0},ended:{type:"string",format:"date-time",nullable:!0},duration:{type:"string",format:"date-span",nullable:!0},exception:{type:"string",nullable:!0},trigger:{$ref:"#/components/schemas/CommandTrigger"},clientUserAgent:{type:"string",nullable:!0},stateChangeTime:{type:"string",format:"date-time",nullable:!0},sendUpdatesToClient:{type:"boolean"},updateScheduledTask:{type:"boolean"},lastExecutionTime:{type:"string",format:"date-time",nullable:!0}},additionalProperties:!1},F1={enum:["queued","started","completed","failed","aborted","cancelled","orphaned"],type:"string"},L1={enum:["unspecified","manual","scheduled"],type:"string"},N1={type:"object",properties:{id:{type:"integer",format:"int32"},type:{type:"string",nullable:!0},label:{type:"string",nullable:!0},filters:{type:"array",items:{type:"object",additionalProperties:{}},nullable:!0}},additionalProperties:!1},$1={enum:["sqLite","postgreSQL"],type:"string"},Q1={type:"object",properties:{id:{type:"integer",format:"int32"},consoleLogLevel:{type:"string",nullable:!0},logSql:{type:"boolean"},logIndexerResponse:{type:"boolean"},logRotate:{type:"integer",format:"int32"},filterSentryEvents:{type:"boolean"}},additionalProperties:!1},j1={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},enable:{type:"boolean",nullable:!0},priority:{type:"integer",format:"int32",nullable:!0}},additionalProperties:!1},U1={type:"object",properties:{clientCategory:{type:"string",nullable:!0},categories:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},H1={type:"object",properties:{id:{type:"integer",format:"int32"}},additionalProperties:!1},q1={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/DownloadClientResource"},nullable:!0},enable:{type:"boolean"},protocol:{$ref:"#/components/schemas/DownloadProtocol"},priority:{type:"integer",format:"int32"},categories:{type:"array",items:{$ref:"#/components/schemas/DownloadClientCategory"},nullable:!0},supportsCategories:{type:"boolean"}},additionalProperties:!1},W1={enum:["unknown","usenet","torrent"],type:"string"},z1={type:"object",properties:{order:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},label:{type:"string",nullable:!0},unit:{type:"string",nullable:!0},helpText:{type:"string",nullable:!0},helpTextWarning:{type:"string",nullable:!0},helpLink:{type:"string",nullable:!0},value:{nullable:!0},type:{type:"string",nullable:!0},advanced:{type:"boolean"},selectOptions:{type:"array",items:{$ref:"#/components/schemas/SelectOption"},nullable:!0},selectOptionsProviderAction:{type:"string",nullable:!0},section:{type:"string",nullable:!0},hidden:{type:"string",nullable:!0},privacy:{$ref:"#/components/schemas/PrivacyLevel"},placeholder:{type:"string",nullable:!0},isFloat:{type:"boolean"}},additionalProperties:!1},K1={enum:["ok","notice","warning","error"],type:"string"},Y1={type:"object",properties:{id:{type:"integer",format:"int32"},source:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/HealthCheckResult"},message:{type:"string",nullable:!0},wikiUrl:{type:"string",nullable:!0}},additionalProperties:!1},_1={enum:["unknown","releaseGrabbed","indexerQuery","indexerRss","indexerAuth","indexerInfo"],type:"string"},X1={type:"object",properties:{id:{type:"integer",format:"int32"},indexerId:{type:"integer",format:"int32"},date:{type:"string",format:"date-time"},downloadId:{type:"string",nullable:!0},successful:{type:"boolean"},eventType:{$ref:"#/components/schemas/HistoryEventType"},data:{type:"object",additionalProperties:{type:"string",nullable:!0},nullable:!0}},additionalProperties:!1},Z1={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/HistoryResource"},nullable:!0}},additionalProperties:!1},J1={type:"object",properties:{id:{type:"integer",format:"int32"},bindAddress:{type:"string",nullable:!0},port:{type:"integer",format:"int32"},sslPort:{type:"integer",format:"int32"},enableSsl:{type:"boolean"},launchBrowser:{type:"boolean"},authenticationMethod:{$ref:"#/components/schemas/AuthenticationType"},authenticationRequired:{$ref:"#/components/schemas/AuthenticationRequiredType"},analyticsEnabled:{type:"boolean"},username:{type:"string",nullable:!0},password:{type:"string",nullable:!0},passwordConfirmation:{type:"string",nullable:!0},logLevel:{type:"string",nullable:!0},logSizeLimit:{type:"integer",format:"int32"},consoleLogLevel:{type:"string",nullable:!0},branch:{type:"string",nullable:!0},apiKey:{type:"string",nullable:!0},sslCertPath:{type:"string",nullable:!0},sslCertPassword:{type:"string",nullable:!0},urlBase:{type:"string",nullable:!0},instanceName:{type:"string",nullable:!0},applicationUrl:{type:"string",nullable:!0},updateAutomatically:{type:"boolean"},updateMechanism:{$ref:"#/components/schemas/UpdateMechanism"},updateScriptPath:{type:"string",nullable:!0},proxyEnabled:{type:"boolean"},proxyType:{$ref:"#/components/schemas/ProxyType"},proxyHostname:{type:"string",nullable:!0},proxyPort:{type:"integer",format:"int32"},proxyUsername:{type:"string",nullable:!0},proxyPassword:{type:"string",nullable:!0},proxyBypassFilter:{type:"string",nullable:!0},proxyBypassLocalAddresses:{type:"boolean"},certificateValidation:{$ref:"#/components/schemas/CertificateValidationType"},backupFolder:{type:"string",nullable:!0},backupInterval:{type:"integer",format:"int32"},backupRetention:{type:"integer",format:"int32"},historyCleanupDays:{type:"integer",format:"int32"},trustCgnatIpAddresses:{type:"boolean"}},additionalProperties:!1},eO={type:"object",properties:{host:{type:"string",nullable:!0},numberOfQueries:{type:"integer",format:"int32"},numberOfGrabs:{type:"integer",format:"int32"}},additionalProperties:!1},tO={type:"object",additionalProperties:!1},rO={type:"object",properties:{ids:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},tags:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applyTags:{$ref:"#/components/schemas/ApplyTags"},enable:{type:"boolean",nullable:!0},appProfileId:{type:"integer",format:"int32",nullable:!0},priority:{type:"integer",format:"int32",nullable:!0},minimumSeeders:{type:"integer",format:"int32",nullable:!0},seedRatio:{type:"number",format:"double",nullable:!0},seedTime:{type:"integer",format:"int32",nullable:!0},packSeedTime:{type:"integer",format:"int32",nullable:!0},preferMagnetUrl:{type:"boolean",nullable:!0}},additionalProperties:!1},oO={type:"object",properties:{id:{type:"integer",format:"int32"},limitsMax:{type:"integer",format:"int32",nullable:!0},limitsDefault:{type:"integer",format:"int32",nullable:!0},categories:{type:"array",items:{$ref:"#/components/schemas/IndexerCategory"},nullable:!0},supportsRawSearch:{type:"boolean"},searchParams:{type:"array",items:{$ref:"#/components/schemas/SearchParam"},nullable:!0},tvSearchParams:{type:"array",items:{$ref:"#/components/schemas/TvSearchParam"},nullable:!0},movieSearchParams:{type:"array",items:{$ref:"#/components/schemas/MovieSearchParam"},nullable:!0},musicSearchParams:{type:"array",items:{$ref:"#/components/schemas/MusicSearchParam"},nullable:!0},bookSearchParams:{type:"array",items:{$ref:"#/components/schemas/BookSearchParam"},nullable:!0}},additionalProperties:!1},nO={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},description:{type:"string",nullable:!0},subCategories:{type:"array",items:{$ref:"#/components/schemas/IndexerCategory"},nullable:!0,readOnly:!0}},additionalProperties:!1},iO={enum:["public","semiPrivate","private"],type:"string"},aO={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/IndexerProxyResource"},nullable:!0},link:{type:"string",nullable:!0},onHealthIssue:{type:"boolean"},supportsOnHealthIssue:{type:"boolean"},includeHealthWarnings:{type:"boolean"},testCommand:{type:"string",nullable:!0}},additionalProperties:!1},sO={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/IndexerResource"},nullable:!0},indexerUrls:{type:"array",items:{type:"string"},nullable:!0},legacyUrls:{type:"array",items:{type:"string"},nullable:!0},definitionName:{type:"string",nullable:!0},description:{type:"string",nullable:!0},language:{type:"string",nullable:!0},encoding:{type:"string",nullable:!0},enable:{type:"boolean"},redirect:{type:"boolean"},supportsRss:{type:"boolean"},supportsSearch:{type:"boolean"},supportsRedirect:{type:"boolean"},supportsPagination:{type:"boolean"},appProfileId:{type:"integer",format:"int32"},protocol:{$ref:"#/components/schemas/DownloadProtocol"},privacy:{$ref:"#/components/schemas/IndexerPrivacy"},capabilities:{$ref:"#/components/schemas/IndexerCapabilityResource"},priority:{type:"integer",format:"int32"},downloadClientId:{type:"integer",format:"int32"},added:{type:"string",format:"date-time"},status:{$ref:"#/components/schemas/IndexerStatusResource"},sortName:{type:"string",nullable:!0}},additionalProperties:!1},pO={type:"object",properties:{indexerId:{type:"integer",format:"int32"},indexerName:{type:"string",nullable:!0},averageResponseTime:{type:"integer",format:"int32"},averageGrabResponseTime:{type:"integer",format:"int32"},numberOfQueries:{type:"integer",format:"int32"},numberOfGrabs:{type:"integer",format:"int32"},numberOfRssQueries:{type:"integer",format:"int32"},numberOfAuthQueries:{type:"integer",format:"int32"},numberOfFailedQueries:{type:"integer",format:"int32"},numberOfFailedGrabs:{type:"integer",format:"int32"},numberOfFailedRssQueries:{type:"integer",format:"int32"},numberOfFailedAuthQueries:{type:"integer",format:"int32"}},additionalProperties:!1},lO={type:"object",properties:{id:{type:"integer",format:"int32"},indexers:{type:"array",items:{$ref:"#/components/schemas/IndexerStatistics"},nullable:!0},userAgents:{type:"array",items:{$ref:"#/components/schemas/UserAgentStatistics"},nullable:!0},hosts:{type:"array",items:{$ref:"#/components/schemas/HostStatistics"},nullable:!0}},additionalProperties:!1},uO={type:"object",properties:{id:{type:"integer",format:"int32"},indexerId:{type:"integer",format:"int32"},disabledTill:{type:"string",format:"date-time",nullable:!0},mostRecentFailure:{type:"string",format:"date-time",nullable:!0},initialFailure:{type:"string",format:"date-time",nullable:!0}},additionalProperties:!1},dO={type:"object",properties:{name:{type:"string",nullable:!0},value:{type:"string",nullable:!0}},additionalProperties:!1},cO={type:"object",properties:{id:{type:"integer",format:"int32"},filename:{type:"string",nullable:!0},lastWriteTime:{type:"string",format:"date-time"},contentsUrl:{type:"string",nullable:!0},downloadUrl:{type:"string",nullable:!0}},additionalProperties:!1},yO={type:"object",properties:{id:{type:"integer",format:"int32"},time:{type:"string",format:"date-time"},exception:{type:"string",nullable:!0},exceptionType:{type:"string",nullable:!0},level:{type:"string",nullable:!0},logger:{type:"string",nullable:!0},message:{type:"string",nullable:!0},method:{type:"string",nullable:!0}},additionalProperties:!1},mO={type:"object",properties:{page:{type:"integer",format:"int32"},pageSize:{type:"integer",format:"int32"},sortKey:{type:"string",nullable:!0},sortDirection:{$ref:"#/components/schemas/SortDirection"},totalRecords:{type:"integer",format:"int32"},records:{type:"array",items:{$ref:"#/components/schemas/LogResource"},nullable:!0}},additionalProperties:!1},AO={enum:["q","imdbId","tmdbId","imdbTitle","imdbYear","traktId","genre","doubanId","year"],type:"string"},gO={enum:["q","album","artist","label","year","genre","track"],type:"string"},fO={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/Field"},nullable:!0},implementationName:{type:"string",nullable:!0},implementation:{type:"string",nullable:!0},configContract:{type:"string",nullable:!0},infoLink:{type:"string",nullable:!0},message:{$ref:"#/components/schemas/ProviderMessage"},tags:{uniqueItems:!0,type:"array",items:{type:"integer",format:"int32"},nullable:!0},presets:{type:"array",items:{$ref:"#/components/schemas/NotificationResource"},nullable:!0},link:{type:"string",nullable:!0},onGrab:{type:"boolean"},onHealthIssue:{type:"boolean"},onHealthRestored:{type:"boolean"},onApplicationUpdate:{type:"boolean"},supportsOnGrab:{type:"boolean"},includeManualGrabs:{type:"boolean"},supportsOnHealthIssue:{type:"boolean"},supportsOnHealthRestored:{type:"boolean"},includeHealthWarnings:{type:"boolean"},supportsOnApplicationUpdate:{type:"boolean"},testCommand:{type:"string",nullable:!0}},additionalProperties:!1},VO={type:"object",properties:{status:{type:"string",nullable:!0}},additionalProperties:!1},hO={enum:["normal","password","apiKey","userName"],type:"string"},EO={type:"object",properties:{message:{type:"string",nullable:!0},type:{$ref:"#/components/schemas/ProviderMessageType"}},additionalProperties:!1},bO={enum:["info","warning","error"],type:"string"},OO={enum:["http","socks4","socks5"],type:"string"},wO={type:"object",properties:{id:{type:"integer",format:"int32"},guid:{type:"string",nullable:!0},age:{type:"integer",format:"int32"},ageHours:{type:"number",format:"double"},ageMinutes:{type:"number",format:"double"},size:{type:"integer",format:"int64"},files:{type:"integer",format:"int32",nullable:!0},grabs:{type:"integer",format:"int32",nullable:!0},indexerId:{type:"integer",format:"int32"},indexer:{type:"string",nullable:!0},subGroup:{type:"string",nullable:!0},releaseHash:{type:"string",nullable:!0},title:{type:"string",nullable:!0},sortTitle:{type:"string",nullable:!0},imdbId:{type:"integer",format:"int32"},tmdbId:{type:"integer",format:"int32"},tvdbId:{type:"integer",format:"int32"},tvMazeId:{type:"integer",format:"int32"},publishDate:{type:"string",format:"date-time"},commentUrl:{type:"string",nullable:!0},downloadUrl:{type:"string",nullable:!0},infoUrl:{type:"string",nullable:!0},posterUrl:{type:"string",nullable:!0},indexerFlags:{type:"array",items:{type:"string"},nullable:!0},categories:{type:"array",items:{$ref:"#/components/schemas/IndexerCategory"},nullable:!0},magnetUrl:{type:"string",nullable:!0},infoHash:{type:"string",nullable:!0},seeders:{type:"integer",format:"int32",nullable:!0},leechers:{type:"integer",format:"int32",nullable:!0},protocol:{$ref:"#/components/schemas/DownloadProtocol"},fileName:{type:"string",nullable:!0,readOnly:!0},downloadClientId:{type:"integer",format:"int32",nullable:!0}},additionalProperties:!1},TO={enum:["console","service","tray"],type:"string"},IO={enum:["q"],type:"string"},BO={type:"object",properties:{value:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},order:{type:"integer",format:"int32"},hint:{type:"string",nullable:!0},parentValue:{type:"integer",format:"int32",nullable:!0}},additionalProperties:!1},xO={enum:["default","ascending","descending"],type:"string"},RO={type:"object",properties:{appName:{type:"string",nullable:!0},instanceName:{type:"string",nullable:!0},version:{type:"string",nullable:!0},buildTime:{type:"string",format:"date-time"},isDebug:{type:"boolean"},isProduction:{type:"boolean"},isAdmin:{type:"boolean"},isUserInteractive:{type:"boolean"},startupPath:{type:"string",nullable:!0},appData:{type:"string",nullable:!0},osName:{type:"string",nullable:!0},osVersion:{type:"string",nullable:!0},isNetCore:{type:"boolean"},isLinux:{type:"boolean"},isOsx:{type:"boolean"},isWindows:{type:"boolean"},isDocker:{type:"boolean"},mode:{$ref:"#/components/schemas/RuntimeMode"},branch:{type:"string",nullable:!0},databaseType:{$ref:"#/components/schemas/DatabaseType"},databaseVersion:{type:"string",nullable:!0},authentication:{$ref:"#/components/schemas/AuthenticationType"},migrationVersion:{type:"integer",format:"int32"},urlBase:{type:"string",nullable:!0},runtimeVersion:{type:"string",nullable:!0},runtimeName:{type:"string",nullable:!0},startTime:{type:"string",format:"date-time"},packageVersion:{type:"string",nullable:!0},packageAuthor:{type:"string",nullable:!0},packageUpdateMechanism:{$ref:"#/components/schemas/UpdateMechanism"},packageUpdateMechanismMessage:{type:"string",nullable:!0}},additionalProperties:!1},DO={type:"object",properties:{id:{type:"integer",format:"int32"},label:{type:"string",nullable:!0},notificationIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},indexerIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},indexerProxyIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0},applicationIds:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1},PO={type:"object",properties:{id:{type:"integer",format:"int32"},label:{type:"string",nullable:!0}},additionalProperties:!1},GO={type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},taskName:{type:"string",nullable:!0},interval:{type:"integer",format:"int32"},lastExecution:{type:"string",format:"date-time"},lastStartTime:{type:"string",format:"date-time"},nextExecution:{type:"string",format:"date-time"},lastDuration:{type:"string",format:"date-span",readOnly:!0}},additionalProperties:!1},kO={enum:["q","season","ep","imdbId","tvdbId","rId","tvMazeId","traktId","tmdbId","doubanId","genre","year"],type:"string"},vO={type:"object",properties:{id:{type:"integer",format:"int32"},firstDayOfWeek:{type:"integer",format:"int32"},calendarWeekColumnHeader:{type:"string",nullable:!0},shortDateFormat:{type:"string",nullable:!0},longDateFormat:{type:"string",nullable:!0},timeFormat:{type:"string",nullable:!0},showRelativeDates:{type:"boolean"},enableColorImpairedMode:{type:"boolean"},uiLanguage:{type:"string",nullable:!0},theme:{type:"string",nullable:!0}},additionalProperties:!1},SO={type:"object",properties:{new:{type:"array",items:{type:"string"},nullable:!0},fixed:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},CO={enum:["builtIn","script","external","apt","docker"],type:"string"},MO={type:"object",properties:{id:{type:"integer",format:"int32"},version:{type:"string",nullable:!0},branch:{type:"string",nullable:!0},releaseDate:{type:"string",format:"date-time"},fileName:{type:"string",nullable:!0},url:{type:"string",nullable:!0},installed:{type:"boolean"},installedOn:{type:"string",format:"date-time",nullable:!0},installable:{type:"boolean"},latest:{type:"boolean"},changes:{$ref:"#/components/schemas/UpdateChanges"},hash:{type:"string",nullable:!0}},additionalProperties:!1},FO={type:"object",properties:{userAgent:{type:"string",nullable:!0},numberOfQueries:{type:"integer",format:"int32"},numberOfGrabs:{type:"integer",format:"int32"}},additionalProperties:!1};var i=h(f()),LO=(e)=>{return(e?.client??i).get({...e,url:"/api"})},NO=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/applications/{id}"})},$O=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/applications/{id}"})},QO=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/applications/{id}"})},cr=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/applications"})},jO=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/applications"})},UO=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/applications/bulk"})},HO=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/applications/bulk"})},qO=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/applications/schema"})},WO=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/applications/test"})},zO=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/applications/testall"})},KO=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/applications/action/{name}"})},YO=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/appprofile"})},_O=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/appprofile"})},XO=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/appprofile/{id}"})},ZO=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/appprofile/{id}"})},JO=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/appprofile/{id}"})},ew=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/appprofile/schema"})},tw=(e)=>{return(e?.client??i).post({...e,...V,headers:{"Content-Type":null,...e?.headers},url:"/login"})},rw=(e)=>{return(e?.client??i).get({...e,url:"/login"})},ow=(e)=>{return(e?.client??i).get({...e,url:"/logout"})},nw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/system/backup"})},iw=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/system/backup/{id}"})},aw=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/system/backup/restore/{id}"})},sw=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/system/backup/restore/upload"})},pw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/command/{id}"})},lw=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/command/{id}"})},yr=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/command"})},mr=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/command"})},uw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/customfilter/{id}"})},dw=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/customfilter/{id}"})},cw=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/customfilter/{id}"})},yw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/customfilter"})},mw=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/customfilter"})},Aw=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/config/development/{id}"})},gw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/config/development/{id}"})},fw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/config/development"})},Vw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/downloadclient/{id}"})},hw=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/downloadclient/{id}"})},Ew=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/downloadclient/{id}"})},bw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/downloadclient"})},Ow=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/downloadclient"})},ww=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/downloadclient/bulk"})},Tw=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/downloadclient/bulk"})},Iw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/downloadclient/schema"})},Bw=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/downloadclient/test"})},xw=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/downloadclient/testall"})},Rw=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/downloadclient/action/{name}"})},Dw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/config/downloadclient/{id}"})},Pw=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/config/downloadclient/{id}"})},Gw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/config/downloadclient"})},kw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/filesystem"})},vw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/filesystem/type"})},Ar=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/health"})},Sw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/history"})},Cw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/history/since"})},Mw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/history/indexer"})},Fw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/config/host/{id}"})},Lw=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/config/host/{id}"})},Nw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/config/host"})},gr=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/indexer/{id}"})},fr=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/indexer/{id}"})},Vr=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/indexer/{id}"})},hr=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/indexer"})},Er=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/indexer"})},$w=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/indexer/bulk"})},Qw=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/indexer/bulk"})},jw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/indexer/schema"})},Uw=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/indexer/test"})},Hw=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/indexer/testall"})},qw=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/indexer/action/{name}"})},Ww=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/indexer/categories"})},zw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/indexerproxy/{id}"})},Kw=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/indexerproxy/{id}"})},Yw=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/indexerproxy/{id}"})},_w=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/indexerproxy"})},Xw=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/indexerproxy"})},Zw=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/indexerproxy/schema"})},Jw=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/indexerproxy/test"})},eT=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/indexerproxy/testall"})},tT=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/indexerproxy/action/{name}"})},rT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/indexerstats"})},oT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/indexerstatus"})},nT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/localization"})},iT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/localization/options"})},aT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/log"})},sT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/log/file"})},pT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/log/file/{filename}"})},lT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/indexer/{id}/newznab"})},uT=(e)=>{return(e?.client??i).get({...e,url:"/{id}/api"})},dT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/indexer/{id}/download"})},cT=(e)=>{return(e?.client??i).get({...e,url:"/{id}/download"})},yT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/notification/{id}"})},mT=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/notification/{id}"})},AT=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/notification/{id}"})},gT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/notification"})},fT=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/notification"})},VT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/notification/schema"})},hT=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/notification/test"})},ET=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/notification/testall"})},bT=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/notification/action/{name}"})},OT=(e)=>{return(e?.client??i).get({...e,url:"/ping"})},wT=(e)=>{return(e?.client??i).head({...e,url:"/ping"})},TT=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/search"})},br=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/search"})},IT=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/search/bulk"})},BT=(e)=>{return(e?.client??i).get({...e,url:"/content/{path}"})},xT=(e)=>{return(e?.client??i).get({...e,url:"/"})},RT=(e)=>{return(e?.client??i).get({...e,url:"/{path}"})},Or=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/system/status"})},DT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/system/routes"})},PT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/system/routes/duplicate"})},GT=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/system/shutdown"})},kT=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/system/restart"})},vT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/tag/{id}"})},ST=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/tag/{id}"})},CT=(e)=>{return(e?.client??i).delete({...e,url:"/api/v1/tag/{id}"})},MT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/tag"})},FT=(e)=>{return(e?.client??i).post({...e,url:"/api/v1/tag"})},LT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/tag/detail/{id}"})},NT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/tag/detail"})},$T=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/system/task"})},QT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/system/task/{id}"})},jT=(e)=>{return(e?.client??i).put({...e,url:"/api/v1/config/ui/{id}"})},UT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/config/ui/{id}"})},HT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/config/ui"})},qT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/update"})},WT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/log/file/update"})},zT=(e)=>{return(e?.client??i).get({...e,url:"/api/v1/log/file/update/{filename}"})};class A extends Error{code;statusCode;details;constructor(e,n,a,s){super(e);this.code=n;this.statusCode=a;this.details=s;this.name="TsarrError"}}class P extends A{constructor(e="Invalid or missing API key"){super(e,"API_KEY_ERROR",401);this.name="ApiKeyError"}}class I extends A{constructor(e,n){super(e,"CONNECTION_ERROR",void 0,n);this.name="ConnectionError"}}class B extends A{constructor(e,n){super(e,"VALIDATION_ERROR",void 0,n);this.name="ValidationError"}}class KT extends A{constructor(e){super(`Resource not found: ${e}`,"NOT_FOUND",404);this.name="NotFoundError"}}function m(e){if(!e.apiKey)throw new P;if(!e.baseUrl)throw new I("No base URL provided");let n={...e,baseUrl:e.baseUrl.replace(/\/$/,"")};return{config:n,getHeaders:()=>({"X-Api-Key":n.apiKey,"Content-Type":"application/json",...n.headers}),getBaseUrl:()=>n.baseUrl}}function PI(e){if(!e||e.trim()==="")throw new P;return e.trim()}function GI(e){if(!e||e.trim()==="")throw new I("No base URL provided");try{new URL(e)}catch{throw new I(`Failed to connect: Invalid URL: ${e}`)}return e.trim().replace(/\/$/,"")}class Pr{clientConfig;constructor(e){this.clientConfig=m(e),t.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return tt()}async getHealth(){return oe()}async getMovies(){return Te()}async getMovie(e){return Re({path:{id:e}})}async addMovie(e){return Ie({body:e})}async updateMovie(e,n){return Be({path:{id:String(e)},body:n})}async deleteMovie(e){return xe({path:{id:e}})}async searchMovies(e){return Pe({query:{term:e}})}async runCommand(e){return C({body:e})}async getCommands(){return M()}async getRootFolders(){return Je()}async addRootFolder(e){return Ze({body:{path:e}})}async deleteRootFolder(e){return et({path:{id:e}})}async getFilesystem(e){return te(e?{query:{path:e}}:{})}async getMediaFiles(e){return re({query:{path:e}})}async importMovies(e){return De({body:e})}async getQualityProfiles(){return $e()}async getQualityProfile(e){return Ue({path:{id:e}})}async addQualityProfile(e){return Ne({body:e})}async updateQualityProfile(e,n){return je({path:{id:String(e)},body:n})}async deleteQualityProfile(e){return Qe({path:{id:e}})}async getQualityProfileSchema(){return He()}async getCustomFormats(){return F()}async getCustomFormat(e){return Q({path:{id:e}})}async addCustomFormat(e){return L({body:e})}async updateCustomFormat(e,n){return N({path:{id:String(e)},body:n})}async deleteCustomFormat(e){return $({path:{id:e}})}async updateCustomFormatsBulk(e){return j({body:e})}async deleteCustomFormatsBulk(e){return U({body:{ids:e}})}async getCustomFormatSchema(){return H()}async getDownloadClients(){return q()}async getDownloadClient(e){return Y({path:{id:e}})}async addDownloadClient(e){return W({body:e})}async updateDownloadClient(e,n){return z({path:{id:e},body:n})}async deleteDownloadClient(e){return K({path:{id:e}})}async updateDownloadClientsBulk(e){return _({body:e})}async deleteDownloadClientsBulk(e){return X({body:{ids:e}})}async getDownloadClientSchema(){return Z()}async testDownloadClient(e){return J({body:e})}async testAllDownloadClients(){return ee()}async getNotifications(){return Ge()}async getNotification(e){return Ce({path:{id:e}})}async addNotification(e){return ke({body:e})}async updateNotification(e,n){return ve({path:{id:e},body:n})}async deleteNotification(e){return Se({path:{id:e}})}async getNotificationSchema(){return Me()}async testNotification(e){return Fe({body:e})}async testAllNotifications(){return Le()}async getCalendar(e,n,a){let s={};if(e)s.start=e;if(n)s.end=n;if(a!==void 0)s.unmonitored=a;return v(Object.keys(s).length>0?{query:s}:{})}async getCalendarFeed(e,n,a){let s={};if(e!==void 0)s.pastDays=e;if(n!==void 0)s.futureDays=n;if(a)s.tags=a;return S(Object.keys(s).length>0?{query:s}:{})}async getQueue(e,n,a,s,d){let p={};if(e!==void 0)p.page=e;if(n!==void 0)p.pageSize=n;if(a)p.sortKey=a;if(s)p.sortDirection=s;if(d!==void 0)p.includeUnknownMovieItems=d;return ze(Object.keys(p).length>0?{query:p}:{})}async removeQueueItem(e,n,a){let s={};if(n!==void 0)s.removeFromClient=n;if(a!==void 0)s.blocklist=a;return qe({path:{id:e},...Object.keys(s).length>0?{query:s}:{}})}async removeQueueItemsBulk(e,n,a){let s={ids:e};if(n!==void 0)s.removeFromClient=n;if(a!==void 0)s.blocklist=a;return We({body:s})}async grabQueueItem(e){return Ke({path:{id:e}})}async grabQueueItemsBulk(e){return Ye({body:{ids:e}})}async getQueueDetails(e,n){let a={};if(e!==void 0)a.movieId=e;if(n!==void 0)a.includeMovie=n;return _e(Object.keys(a).length>0?{query:a}:{})}async getQueueStatus(){return Xe()}async getImportLists(){return pe()}async getImportList(e){return ce({path:{id:e}})}async addImportList(e){return le({body:e})}async updateImportList(e,n){return ue({path:{id:e},body:n})}async deleteImportList(e){return de({path:{id:e}})}async getImportListSchema(){return ye()}async testImportList(e){return me({body:e})}async testAllImportLists(){return Ae()}async getIndexers(){return ge()}async getIndexer(e){return Ee({path:{id:e}})}async addIndexer(e){return fe({body:e})}async updateIndexer(e,n){return Ve({path:{id:e},body:n})}async deleteIndexer(e){return he({path:{id:e}})}async getIndexerSchema(){return be()}async testIndexer(e){return Oe({body:e})}async testAllIndexers(){return we()}async getHistory(e,n,a,s,d){let p={};if(e!==void 0)p.page=e;if(n!==void 0)p.pageSize=n;if(a)p.sortKey=a;if(s)p.sortDirection=s;if(d!==void 0)p.movieId=d;return ne(Object.keys(p).length>0?{query:p}:{})}async getHistorySince(e,n){let a={date:e};if(n!==void 0)a.movieId=n;return ie({query:a})}async getMovieHistory(e,n){let a={movieId:e};if(n!==void 0)a.eventType=n;return ae({query:a})}async markHistoryItemFailed(e){return se({path:{id:e}})}updateConfig(e){let n={...this.clientConfig.config,...e};return this.clientConfig=m(n),t.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}class Gr{clientConfig;constructor(e){this.clientConfig=m(e),c.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getApi(){return ot()}async getSystemStatus(){return c.get({url:"/api/v3/system/status"})}async getHealth(){return c.get({url:"/api/v3/health"})}async getSeries(){return it()}async getSeriesById(e){return st({path:{id:e}})}async addSeries(e){return at({body:e})}async updateSeries(e,n){return pt({path:{id:String(e)},body:n})}async deleteSeries(e){return lt({path:{id:e}})}async getSeriesFolder(e){return ut({path:{id:e}})}async searchSeries(e){return dt({query:{term:e}})}async getLogs(e,n,a,s,d){let p={};if(e!==void 0)p.page=e;if(n!==void 0)p.pageSize=n;if(a)p.sortKey=a;if(s)p.sortDirection=s;if(d)p.level=d;return nt(Object.keys(p).length>0?{query:p}:{})}async getUpdates(){return ct()}async getUpdateSettings(){return yt()}async getUpdateSetting(e){return mt({path:{id:e}})}updateConfig(e){let n={...this.clientConfig.config,...e};return this.clientConfig=m(n),c.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}class kr{clientConfig;constructor(e){this.clientConfig=m(e),r.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return Yt()}async getHealth(){return $t()}async getArtists(){return It()}async getArtist(e){return Ot({path:{id:e}})}async addArtist(e){return Bt({body:e})}async updateArtist(e,n){return wt({path:{id:String(e)},body:n})}async deleteArtist(e){return Tt({path:{id:e}})}async getAlbums(){return gt()}async getAlbum(e){return Et({path:{id:e}})}async searchArtists(e){return xt({query:{term:e}})}async runCommand(e){return Pt({body:e})}async getCommands(){return Gt()}async getRootFolders(){return Kt()}async addRootFolder(e){return zt({body:{path:e}})}async addAlbum(e){return ft({body:e})}async updateAlbum(e,n){return Vt({path:{id:String(e)},body:n})}async deleteAlbum(e){return ht({path:{id:e}})}async searchAlbums(e){return bt({query:{term:e}})}async getCalendar(e,n,a){let s={};if(e)s.start=e;if(n)s.end=n;if(a!==void 0)s.unmonitored=a;return Rt(Object.keys(s).length>0?{query:s}:{})}async getCalendarFeed(e,n,a){let s={};if(e!==void 0)s.pastDays=e;if(n!==void 0)s.futureDays=n;if(a)s.tags=a;return Dt(Object.keys(s).length>0?{query:s}:{})}async getQualityProfiles(){return jt()}async getQualityProfile(e){return qt({path:{id:e}})}async addQualityProfile(e){return Qt({body:e})}async updateQualityProfile(e,n){return Ht({path:{id:String(e)},body:n})}async deleteQualityProfile(e){return Ut({path:{id:e}})}async getQualityProfileSchema(){return Wt()}async getCustomFormats(){return Ct()}async getCustomFormat(e){return kt({path:{id:e}})}async addCustomFormat(e){return Mt({body:e})}async updateCustomFormat(e,n){return vt({path:{id:String(e)},body:n})}async deleteCustomFormat(e){return St({path:{id:e}})}async updateCustomFormatsBulk(e){return Ft({body:e})}async deleteCustomFormatsBulk(e){return Lt({body:{ids:e}})}async getCustomFormatSchema(){return Nt()}updateConfig(e){let n={...this.clientConfig.config,...e};return this.clientConfig=m(n),r.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}class vr{clientConfig;constructor(e){this.clientConfig=m(e),o.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return ur()}async getHealth(){return sr()}async getAuthors(){return Xt()}async getAuthor(e){return tr({path:{id:e}})}async addAuthor(e){return Zt({body:e})}async updateAuthor(e,n){return Jt({path:{id:String(e)},body:n})}async deleteAuthor(e){return er({path:{id:e}})}async getBooks(){return or()}async getBook(e){return nr({path:{id:e}})}async searchAuthors(e){return rr({query:{term:e}})}async runCommand(e){return ir({body:e})}async getCommands(){return ar()}async getRootFolders(){return lr()}async addRootFolder(e){return pr({body:{path:e}})}updateConfig(e){let n={...this.clientConfig.config,...e};return this.clientConfig=m(n),o.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}class Sr{clientConfig;constructor(e){this.clientConfig=m(e),i.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getSystemStatus(){return Or()}async getHealth(){return Ar()}async getIndexers(){return hr()}async getIndexer(e){return gr({path:{id:e}})}async addIndexer(e){return Er({body:e})}async updateIndexer(e,n){return fr({path:{id:String(e)},body:n})}async deleteIndexer(e){return Vr({path:{id:e}})}async search(e,n){return br({query:{query:e,...n&&{indexerIds:n}}})}async getApplications(){return cr()}async runCommand(e){return yr({body:e})}async getCommands(){return mr()}updateConfig(e){let n={...this.clientConfig.config,...e};return this.clientConfig=m(n),i.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()}),this.clientConfig.config}}async function HI(e){try{let n=await e;if(n.error)return{success:!1,error:Cr(n.error,n.response)};return{success:!0,data:n.data}}catch(n){return{success:!1,error:Cr(n)}}}function Cr(e,n){if(e instanceof A)return e;if(n){let{status:a,statusText:s}=n;if(a===401)return new A("Unauthorized - check your API key","UNAUTHORIZED",401);if(a===404)return new A("Resource not found","NOT_FOUND",404);if(a>=500)return new A(`Server error: ${s}`,"SERVER_ERROR",a);if(a>=400)return new A(`Client error: ${s}`,"CLIENT_ERROR",a)}if(e?.message?.includes("fetch"))return new A("Network error - unable to connect to server","NETWORK_ERROR");return new A(e?.message||"Unknown error occurred","UNKNOWN_ERROR",void 0,e)}function qI(e,n){if(!e)throw new B("No data returned from API");if(typeof e==="object"&&e!==null){if(Array.isArray(e))e.forEach((a,s)=>{if(a===null||a===void 0)throw new B(`Invalid null/undefined item at index ${s}`)});if("id"in e&&typeof e.id!=="number")throw new B("Resource ID must be a number")}return e}var zI="1.0.0";export{qI as validateResponse,GI as validateBaseUrl,PI as validateApiKey,HI as handleApiResponse,m as createServarrClient,B as ValidationError,zI as VERSION,A as TsarrError,Gr as SonarrClient,At as Sonarr,vr as ReadarrClient,dr as Readarr,Pr as RadarrClient,rt as Radarr,Sr as ProwlarrClient,wr as Prowlarr,KT as NotFoundError,kr as LidarrClient,_t as Lidarr,I as ConnectionError,P as ApiKeyError};
1
+ var Mz=Object.defineProperty;var p=(S,O)=>{for(var x in O)Mz(S,x,{get:O[x],enumerable:!0,configurable:!0,set:(r)=>O[x]=()=>r})};class d extends Error{code;statusCode;details;constructor(S,O,x,r){super(S);this.code=O;this.statusCode=x;this.details=r;this.name="TsarrError"}}class rS extends d{constructor(S="Invalid or missing API key"){super(S,"API_KEY_ERROR",401);this.name="ApiKeyError"}}class t extends d{constructor(S,O){super(S,"CONNECTION_ERROR",void 0,O);this.name="ConnectionError"}}class n extends d{constructor(S,O){super(S,"VALIDATION_ERROR",void 0,O);this.name="ValidationError"}}class Fz extends d{constructor(S){super(`Resource not found: ${S}`,"NOT_FOUND",404);this.name="NotFoundError"}}function F(S){if(!S.apiKey)throw new rS;if(!S.baseUrl)throw new t("No base URL provided");let O={...S,baseUrl:S.baseUrl.replace(/\/$/,"")};return{config:O,getHeaders:()=>({"X-Api-Key":O.apiKey,"Content-Type":"application/json",...O.headers}),getBaseUrl:()=>O.baseUrl}}function Dc(S){if(!S||S.trim()==="")throw new rS;return S.trim()}function Mc(S){if(!S||S.trim()==="")throw new t("No base URL provided");try{new URL(S)}catch{throw new t(`Failed to connect: Invalid URL: ${S}`)}return S.trim().replace(/\/$/,"")}var UO={};p(UO,{putApiV1TrackfileEditor:()=>gP,putApiV1TrackfileById:()=>VP,putApiV1TagById:()=>jP,putApiV1RootfolderById:()=>tj,putApiV1RemotepathmappingById:()=>_j,putApiV1ReleaseprofileById:()=>uj,putApiV1QualityprofileById:()=>zO,putApiV1QualitydefinitionUpdate:()=>Lj,putApiV1QualitydefinitionById:()=>Gj,putApiV1NotificationById:()=>Wj,putApiV1MetadataprofileById:()=>ob,putApiV1MetadataById:()=>Ab,putApiV1IndexerById:()=>Qb,putApiV1IndexerBulk:()=>Vb,putApiV1ImportlistexclusionById:()=>Ub,putApiV1ImportlistById:()=>i$,putApiV1ImportlistBulk:()=>xb,putApiV1DownloadclientById:()=>H$,putApiV1DownloadclientBulk:()=>M$,putApiV1DelayprofileReorderById:()=>f$,putApiV1DelayprofileById:()=>G$,putApiV1CustomformatById:()=>eS,putApiV1CustomformatBulk:()=>nS,putApiV1CustomfilterById:()=>Q$,putApiV1ConfigUiById:()=>GP,putApiV1ConfigNamingById:()=>jj,putApiV1ConfigMetadataproviderById:()=>xj,putApiV1ConfigMediamanagementById:()=>vb,putApiV1ConfigIndexerById:()=>fb,putApiV1ConfigHostById:()=>s$,putApiV1ConfigDownloadclientById:()=>v$,putApiV1AutotaggingById:()=>iz,putApiV1ArtistEditor:()=>lz,putApiV1ArtistById:()=>uS,putApiV1AlbumMonitor:()=>Az,putApiV1AlbumById:()=>FS,postLogin:()=>sz,postApiV1Tag:()=>UP,postApiV1SystemShutdown:()=>rP,postApiV1SystemRestart:()=>zP,postApiV1SystemBackupRestoreUpload:()=>$$,postApiV1SystemBackupRestoreById:()=>z$,postApiV1Rootfolder:()=>jO,postApiV1Remotepathmapping:()=>hj,postApiV1Releaseprofile:()=>dj,postApiV1ReleasePush:()=>aj,postApiV1Release:()=>mj,postApiV1QueueGrabById:()=>Ej,postApiV1QueueGrabBulk:()=>Ij,postApiV1Qualityprofile:()=>OO,postApiV1NotificationTestall:()=>Jj,postApiV1NotificationTest:()=>cj,postApiV1NotificationActionByName:()=>Vj,postApiV1Notification:()=>Qj,postApiV1Metadataprofile:()=>tb,postApiV1MetadataTestall:()=>eb,postApiV1MetadataTest:()=>lb,postApiV1MetadataActionByName:()=>sb,postApiV1Metadata:()=>Cb,postApiV1Manualimport:()=>mb,postApiV1IndexerTestall:()=>wb,postApiV1IndexerTest:()=>gb,postApiV1IndexerActionByName:()=>Zb,postApiV1Indexer:()=>cb,postApiV1Importlistexclusion:()=>Rb,postApiV1ImportlistTestall:()=>$b,postApiV1ImportlistTest:()=>zb,postApiV1ImportlistActionByName:()=>bb,postApiV1Importlist:()=>Sb,postApiV1HistoryFailedById:()=>l$,postApiV1DownloadclientTestall:()=>q$,postApiV1DownloadclientTest:()=>m$,postApiV1DownloadclientActionByName:()=>k$,postApiV1Downloadclient:()=>I$,postApiV1Delayprofile:()=>g$,postApiV1Customformat:()=>pS,postApiV1Customfilter:()=>c$,postApiV1Command:()=>CS,postApiV1Autotagging:()=>S$,postApiV1Artist:()=>dS,postApiV1Albumstudio:()=>_z,postApiV1Album:()=>IS,headPing:()=>wj,getPing:()=>gj,getLogout:()=>pz,getLogin:()=>ez,getFeedV1CalendarLidarrIcs:()=>AS,getContentByPath:()=>ij,getByPath:()=>SP,getApiV1WantedMissingById:()=>$j,getApiV1WantedMissing:()=>zj,getApiV1WantedCutoffById:()=>V$,getApiV1WantedCutoff:()=>J$,getApiV1Update:()=>LP,getApiV1TrackfileById:()=>JP,getApiV1Trackfile:()=>XP,getApiV1TrackById:()=>TP,getApiV1Track:()=>QP,getApiV1TagDetailById:()=>BP,getApiV1TagDetail:()=>RP,getApiV1TagById:()=>bP,getApiV1Tag:()=>PP,getApiV1SystemTaskById:()=>NP,getApiV1SystemTask:()=>WP,getApiV1SystemStatus:()=>PO,getApiV1SystemRoutesDuplicate:()=>xP,getApiV1SystemRoutes:()=>OP,getApiV1SystemBackup:()=>x$,getApiV1Search:()=>nj,getApiV1RootfolderById:()=>pj,getApiV1Rootfolder:()=>bO,getApiV1Retag:()=>ej,getApiV1Rename:()=>lj,getApiV1RemotepathmappingById:()=>Aj,getApiV1Remotepathmapping:()=>Cj,getApiV1ReleaseprofileById:()=>kj,getApiV1Releaseprofile:()=>vj,getApiV1Release:()=>Fj,getApiV1QueueStatus:()=>Mj,getApiV1QueueDetails:()=>Dj,getApiV1Queue:()=>Hj,getApiV1QualityprofileSchema:()=>$O,getApiV1QualityprofileById:()=>rO,getApiV1Qualityprofile:()=>SO,getApiV1QualitydefinitionById:()=>Zj,getApiV1Qualitydefinition:()=>fj,getApiV1Parse:()=>Xj,getApiV1NotificationSchema:()=>Tj,getApiV1NotificationById:()=>Rj,getApiV1Notification:()=>Nj,getApiV1MetadataprofileSchema:()=>Sj,getApiV1MetadataprofileById:()=>ib,getApiV1Metadataprofile:()=>pb,getApiV1MetadataSchema:()=>hb,getApiV1MetadataById:()=>yb,getApiV1Metadata:()=>_b,getApiV1MediacoverArtistByArtistIdByFilename:()=>qb,getApiV1MediacoverAlbumByAlbumIdByFilename:()=>kb,getApiV1Manualimport:()=>Fb,getApiV1LogFileUpdateByFilename:()=>KP,getApiV1LogFileUpdate:()=>YP,getApiV1LogFileByFilename:()=>Mb,getApiV1LogFile:()=>Db,getApiV1Log:()=>Ib,getApiV1Localization:()=>Eb,getApiV1LanguageById:()=>Kb,getApiV1Language:()=>Hb,getApiV1Indexerflag:()=>Yb,getApiV1IndexerSchema:()=>Xb,getApiV1IndexerById:()=>Nb,getApiV1Indexer:()=>Tb,getApiV1ImportlistexclusionById:()=>Pb,getApiV1Importlistexclusion:()=>Bb,getApiV1ImportlistSchema:()=>rb,getApiV1ImportlistById:()=>n$,getApiV1Importlist:()=>o$,getApiV1HistorySince:()=>C$,getApiV1HistoryArtist:()=>h$,getApiV1History:()=>_$,getApiV1Health:()=>oS,getApiV1FilesystemType:()=>y$,getApiV1FilesystemMediafiles:()=>A$,getApiV1Filesystem:()=>a$,getApiV1DownloadclientSchema:()=>F$,getApiV1DownloadclientById:()=>K$,getApiV1Downloadclient:()=>E$,getApiV1Diskspace:()=>L$,getApiV1DelayprofileById:()=>Z$,getApiV1Delayprofile:()=>X$,getApiV1CustomformatSchema:()=>iS,getApiV1CustomformatById:()=>lS,getApiV1Customformat:()=>sS,getApiV1CustomfilterById:()=>N$,getApiV1Customfilter:()=>T$,getApiV1ConfigUiById:()=>ZP,getApiV1ConfigUi:()=>fP,getApiV1ConfigNamingExamples:()=>Uj,getApiV1ConfigNamingById:()=>bj,getApiV1ConfigNaming:()=>Pj,getApiV1ConfigMetadataproviderById:()=>Oj,getApiV1ConfigMetadataprovider:()=>rj,getApiV1ConfigMediamanagementById:()=>ub,getApiV1ConfigMediamanagement:()=>db,getApiV1ConfigIndexerById:()=>Gb,getApiV1ConfigIndexer:()=>Lb,getApiV1ConfigHostById:()=>e$,getApiV1ConfigHost:()=>p$,getApiV1ConfigDownloadclientById:()=>u$,getApiV1ConfigDownloadclient:()=>d$,getApiV1CommandById:()=>R$,getApiV1Command:()=>_S,getApiV1CalendarById:()=>U$,getApiV1Calendar:()=>yS,getApiV1Blocklist:()=>b$,getApiV1AutotaggingSchema:()=>O$,getApiV1AutotaggingById:()=>nz,getApiV1Autotagging:()=>oz,getApiV1ArtistLookup:()=>aS,getApiV1ArtistById:()=>kS,getApiV1Artist:()=>vS,getApiV1AlbumLookup:()=>mS,getApiV1AlbumById:()=>MS,getApiV1Album:()=>ES,getApi:()=>Cz,get:()=>oj,deleteApiV1TrackfileById:()=>cP,deleteApiV1TrackfileBulk:()=>wP,deleteApiV1TagById:()=>$P,deleteApiV1SystemBackupById:()=>r$,deleteApiV1RootfolderById:()=>sj,deleteApiV1RemotepathmappingById:()=>yj,deleteApiV1ReleaseprofileById:()=>qj,deleteApiV1QueueById:()=>Yj,deleteApiV1QueueBulk:()=>Kj,deleteApiV1QualityprofileById:()=>xO,deleteApiV1NotificationById:()=>Bj,deleteApiV1MetadataprofileById:()=>nb,deleteApiV1MetadataById:()=>ab,deleteApiV1IndexerById:()=>Wb,deleteApiV1IndexerBulk:()=>Jb,deleteApiV1ImportlistexclusionById:()=>jb,deleteApiV1ImportlistById:()=>t$,deleteApiV1ImportlistBulk:()=>Ob,deleteApiV1DownloadclientById:()=>Y$,deleteApiV1DownloadclientBulk:()=>D$,deleteApiV1DelayprofileById:()=>w$,deleteApiV1CustomformatById:()=>hS,deleteApiV1CustomformatBulk:()=>tS,deleteApiV1CustomfilterById:()=>W$,deleteApiV1CommandById:()=>B$,deleteApiV1BlocklistById:()=>j$,deleteApiV1BlocklistBulk:()=>P$,deleteApiV1AutotaggingById:()=>tz,deleteApiV1ArtistEditor:()=>hz,deleteApiV1ArtistById:()=>qS,deleteApiV1AlbumById:()=>DS});var ar=(S,O,x)=>{if(typeof x==="string"||x instanceof Blob)S.append(O,x);else if(x instanceof Date)S.append(O,x.toISOString());else S.append(O,JSON.stringify(x))};var fS={bodySerializer:(S)=>{let O=new FormData;return Object.entries(S).forEach(([x,r])=>{if(r===void 0||r===null)return;if(Array.isArray(r))r.forEach((P)=>ar(O,x,P));else ar(O,x,r)}),O}},LS={bodySerializer:(S)=>JSON.stringify(S,(O,x)=>typeof x==="bigint"?x.toString():x)};var yr=({onRequest:S,onSseError:O,onSseEvent:x,responseTransformer:r,responseValidator:P,sseDefaultRetryDelay:W,sseMaxRetryAttempts:R,sseMaxRetryDelay:U,sseSleepFn:B,url:T,...z})=>{let c,K=B??((Q)=>new Promise((V)=>setTimeout(V,Q)));return{stream:async function*(){let Q=W??3000,V=0,f=z.signal??new AbortController().signal;while(!0){if(f.aborted)break;V++;let H=z.headers instanceof Headers?z.headers:new Headers(z.headers);if(c!==void 0)H.set("Last-Event-ID",c);try{let L={redirect:"follow",...z,body:z.serializedBody,headers:H,signal:f},w=new Request(T,L);if(S)w=await S(T,L);let X=await(z.fetch??globalThis.fetch)(w);if(!X.ok)throw new Error(`SSE failed: ${X.status} ${X.statusText}`);if(!X.body)throw new Error("No body in SSE response");let Z=X.body.pipeThrough(new TextDecoderStream).getReader(),M="",m=()=>{try{Z.cancel()}catch{}};f.addEventListener("abort",m);try{while(!0){let{done:a,value:y}=await Z.read();if(a)break;M+=y;let q=M.split(`
2
+
3
+ `);M=q.pop()??"";for(let A of q){let _=A.split(`
4
+ `),D=[],k;for(let g of _)if(g.startsWith("data:"))D.push(g.replace(/^data:\s*/,""));else if(g.startsWith("event:"))k=g.replace(/^event:\s*/,"");else if(g.startsWith("id:"))c=g.replace(/^id:\s*/,"");else if(g.startsWith("retry:")){let v=Number.parseInt(g.replace(/^retry:\s*/,""),10);if(!Number.isNaN(v))Q=v}let Y,u=!1;if(D.length){let g=D.join(`
5
+ `);try{Y=JSON.parse(g),u=!0}catch{Y=g}}if(u){if(P)await P(Y);if(r)Y=await r(Y)}if(x?.({data:Y,event:k,id:c,retry:Q}),D.length)yield Y}}}finally{f.removeEventListener("abort",m),Z.releaseLock()}break}catch(L){if(O?.(L),R!==void 0&&V>=R)break;let w=Math.min(Q*2**(V-1),U??30000);await K(w)}}}()}};var Ar=async(S,O)=>{let x=typeof O==="function"?await O(S):O;if(!x)return;if(S.scheme==="bearer")return`Bearer ${x}`;if(S.scheme==="basic")return`Basic ${btoa(x)}`;return x};var mz=(S)=>{switch(S){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},qz=(S)=>{switch(S){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},kz=(S)=>{switch(S){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},zS=({allowReserved:S,explode:O,name:x,style:r,value:P})=>{if(!O){let U=(S?P:P.map((B)=>encodeURIComponent(B))).join(qz(r));switch(r){case"label":return`.${U}`;case"matrix":return`;${x}=${U}`;case"simple":return U;default:return`${x}=${U}`}}let W=mz(r),R=P.map((U)=>{if(r==="label"||r==="simple")return S?U:encodeURIComponent(U);return C({allowReserved:S,name:x,value:U})}).join(W);return r==="label"||r==="matrix"?W+R:R},C=({allowReserved:S,name:O,value:x})=>{if(x===void 0||x===null)return"";if(typeof x==="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${O}=${S?x:encodeURIComponent(x)}`},$S=({allowReserved:S,explode:O,name:x,style:r,value:P,valueOnly:W})=>{if(P instanceof Date)return W?P.toISOString():`${x}=${P.toISOString()}`;if(r!=="deepObject"&&!O){let B=[];Object.entries(P).forEach(([z,c])=>{B=[...B,z,S?c:encodeURIComponent(c)]});let T=B.join(",");switch(r){case"form":return`${x}=${T}`;case"label":return`.${T}`;case"matrix":return`;${x}=${T}`;default:return T}}let R=kz(r),U=Object.entries(P).map(([B,T])=>C({allowReserved:S,name:r==="deepObject"?`${x}[${B}]`:B,value:T})).join(R);return r==="label"||r==="matrix"?R+U:U};var uz=/\{[^{}]+\}/g,vz=({path:S,url:O})=>{let x=O,r=O.match(uz);if(r)for(let P of r){let W=!1,R=P.substring(1,P.length-1),U="simple";if(R.endsWith("*"))W=!0,R=R.substring(0,R.length-1);if(R.startsWith("."))R=R.substring(1),U="label";else if(R.startsWith(";"))R=R.substring(1),U="matrix";let B=S[R];if(B===void 0||B===null)continue;if(Array.isArray(B)){x=x.replace(P,zS({explode:W,name:R,style:U,value:B}));continue}if(typeof B==="object"){x=x.replace(P,$S({explode:W,name:R,style:U,value:B,valueOnly:!0}));continue}if(U==="matrix"){x=x.replace(P,`;${C({name:R,value:B})}`);continue}let T=encodeURIComponent(U==="label"?`.${B}`:B);x=x.replace(P,T)}return x},_r=({baseUrl:S,path:O,query:x,querySerializer:r,url:P})=>{let W=P.startsWith("/")?P:`/${P}`,R=(S??"")+W;if(O)R=vz({path:O,url:R});let U=x?r(x):"";if(U.startsWith("?"))U=U.substring(1);if(U)R+=`?${U}`;return R};var Cr=({allowReserved:S,array:O,object:x}={})=>{return(P)=>{let W=[];if(P&&typeof P==="object")for(let R in P){let U=P[R];if(U===void 0||U===null)continue;if(Array.isArray(U)){let B=zS({allowReserved:S,explode:!0,name:R,style:"form",value:U,...O});if(B)W.push(B)}else if(typeof U==="object"){let B=$S({allowReserved:S,explode:!0,name:R,style:"deepObject",value:U,...x});if(B)W.push(B)}else{let B=C({allowReserved:S,name:R,value:U});if(B)W.push(B)}}return W.join("&")}},hr=(S)=>{if(!S)return"stream";let O=S.split(";")[0]?.trim();if(!O)return;if(O.startsWith("application/json")||O.endsWith("+json"))return"json";if(O==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((x)=>O.startsWith(x)))return"blob";if(O.startsWith("text/"))return"text";return},dz=(S,O)=>{if(!O)return!1;if(S.headers.has(O)||S.query?.[O]||S.headers.get("Cookie")?.includes(`${O}=`))return!0;return!1},lr=async({security:S,...O})=>{for(let x of S){if(dz(O,x.name))continue;let r=await Ar(x,O.auth);if(!r)continue;let P=x.name??"Authorization";switch(x.in){case"query":if(!O.query)O.query={};O.query[P]=r;break;case"cookie":O.headers.append("Cookie",`${P}=${r}`);break;case"header":default:O.headers.set(P,r);break}}},YS=(S)=>_r({baseUrl:S.baseUrl,path:S.path,query:S.query,querySerializer:typeof S.querySerializer==="function"?S.querySerializer:Cr(S.querySerializer),url:S.url}),KS=(S,O)=>{let x={...S,...O};if(x.baseUrl?.endsWith("/"))x.baseUrl=x.baseUrl.substring(0,x.baseUrl.length-1);return x.headers=jS(S.headers,O.headers),x},jS=(...S)=>{let O=new Headers;for(let x of S){if(!x||typeof x!=="object")continue;let r=x instanceof Headers?x.entries():Object.entries(x);for(let[P,W]of r)if(W===null)O.delete(P);else if(Array.isArray(W))for(let R of W)O.append(P,R);else if(W!==void 0)O.set(P,typeof W==="object"?JSON.stringify(W):W)}return O};class bS{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(S){if(typeof S==="number")return this._fns[S]?S:-1;else return this._fns.indexOf(S)}exists(S){let O=this.getInterceptorIndex(S);return!!this._fns[O]}eject(S){let O=this.getInterceptorIndex(S);if(this._fns[O])this._fns[O]=null}update(S,O){let x=this.getInterceptorIndex(S);if(this._fns[x])return this._fns[x]=O,S;else return!1}use(S){return this._fns=[...this._fns,S],this._fns.length-1}}var er=()=>({error:new bS,request:new bS,response:new bS}),az=Cr({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),yz={"Content-Type":"application/json"},i=(S={})=>({...LS,headers:yz,parseAs:"auto",querySerializer:az,...S});var HS=(S={})=>{let O=KS(i(),S),x=()=>({...O}),r=(T)=>{return O=KS(O,T),x()},P=er(),W=async(T)=>{let z={...O,...T,fetch:T.fetch??O.fetch??globalThis.fetch,headers:jS(O.headers,T.headers),serializedBody:void 0};if(z.security)await lr({...z,security:z.security});if(z.requestValidator)await z.requestValidator(z);if(z.body&&z.bodySerializer)z.serializedBody=z.bodySerializer(z.body);if(z.serializedBody===void 0||z.serializedBody==="")z.headers.delete("Content-Type");let c=YS(z);return{opts:z,url:c}},R=async(T)=>{let{opts:z,url:c}=await W(T),K={redirect:"follow",...z,body:z.serializedBody},G=new Request(c,K);for(let J of P.request._fns)if(J)G=await J(G,z);let I=z.fetch,Q=await I(G);for(let J of P.response._fns)if(J)Q=await J(Q,G,z);let V={request:G,response:Q};if(Q.ok){let J=(z.parseAs==="auto"?hr(Q.headers.get("Content-Type")):z.parseAs)??"json";if(Q.status===204||Q.headers.get("Content-Length")==="0"){let Z;switch(J){case"arrayBuffer":case"blob":case"text":Z=await Q[J]();break;case"formData":Z=new FormData;break;case"stream":Z=Q.body;break;case"json":default:Z={};break}return z.responseStyle==="data"?Z:{data:Z,...V}}let X;switch(J){case"arrayBuffer":case"blob":case"formData":case"json":case"text":X=await Q[J]();break;case"stream":return z.responseStyle==="data"?Q.body:{data:Q.body,...V}}if(J==="json"){if(z.responseValidator)await z.responseValidator(X);if(z.responseTransformer)X=await z.responseTransformer(X)}return z.responseStyle==="data"?X:{data:X,...V}}let f=await Q.text(),H;try{H=JSON.parse(f)}catch{}let L=H??f,w=L;for(let J of P.error._fns)if(J)w=await J(L,Q,G,z);if(w=w||{},z.throwOnError)throw w;return z.responseStyle==="data"?void 0:{error:w,...V}},U=(T)=>(z)=>R({...z,method:T}),B=(T)=>async(z)=>{let{opts:c,url:K}=await W(z);return yr({...c,body:c.body,headers:c.headers,method:T,onRequest:async(G,I)=>{let Q=new Request(G,I);for(let V of P.request._fns)if(V)Q=await V(Q,c);return Q},url:K})};return{buildUrl:YS,connect:U("CONNECT"),delete:U("DELETE"),get:U("GET"),getConfig:x,head:U("HEAD"),interceptors:P,options:U("OPTIONS"),patch:U("PATCH"),post:U("POST"),put:U("PUT"),request:R,setConfig:r,sse:{connect:B("CONNECT"),delete:B("DELETE"),get:B("GET"),head:B("HEAD"),options:B("OPTIONS"),patch:B("PATCH"),post:B("POST"),put:B("PUT"),trace:B("TRACE")},trace:U("TRACE")}};var b=HS(i());var ES=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album",...S})},IS=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album",...S,headers:{"Content-Type":"application/json",...S?.headers}})},DS=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/{id}",...S})},MS=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/{id}",...S})},FS=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},Az=(S)=>{return(S?.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/monitor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},mS=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/album/lookup",...S})},_z=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/albumstudio",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Cz=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...S})},qS=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/{id}",...S})},kS=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/{id}",...S})},uS=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},vS=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist",...S})},dS=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist",...S,headers:{"Content-Type":"application/json",...S?.headers}})},hz=(S)=>{return(S?.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/editor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},lz=(S)=>{return(S?.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/editor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},aS=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/artist/lookup",...S})},ez=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...S})},sz=(S)=>{return(S?.client??b).post({...fS,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...S,headers:{"Content-Type":null,...S?.headers}})},pz=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...S})},tz=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/{id}",...S})},nz=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/{id}",...S})},iz=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},oz=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging",...S})},S$=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging",...S,headers:{"Content-Type":"application/json",...S?.headers}})},O$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/autotagging/schema",...S})},x$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup",...S})},r$=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/{id}",...S})},z$=(S)=>{return(S.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/{id}",...S})},$$=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/upload",...S})},b$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist",...S})},j$=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/{id}",...S})},P$=(S)=>{return(S?.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},yS=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar",...S})},U$=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar/{id}",...S})},AS=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v1/calendar/lidarr.ics",...S})},B$=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...S})},R$=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...S})},_S=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...S})},CS=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...S,headers:{"Content-Type":"application/json",...S?.headers}})},W$=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...S})},N$=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...S})},Q$=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},T$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...S})},c$=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...S,headers:{"Content-Type":"application/json",...S?.headers}})},hS=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...S})},lS=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...S})},eS=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},sS=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...S})},pS=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...S,headers:{"Content-Type":"application/json",...S?.headers}})},tS=(S)=>{return(S?.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},nS=(S)=>{return(S?.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},iS=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/schema",...S})},J$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff",...S})},V$=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff/{id}",...S})},X$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...S})},g$=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},w$=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...S})},Z$=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...S})},G$=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},f$=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/reorder/{id}",...S})},L$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/diskspace",...S})},Y$=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...S})},K$=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...S})},H$=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},E$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...S})},I$=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...S,headers:{"Content-Type":"application/json",...S?.headers}})},D$=(S)=>{return(S?.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},M$=(S)=>{return(S?.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},F$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...S})},m$=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},q$=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...S})},k$=(S)=>{return(S.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},u$=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...S})},v$=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},d$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...S})},a$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...S})},y$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...S})},A$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/mediafiles",...S})},oS=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...S})},_$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...S})},C$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...S})},h$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/artist",...S})},l$=(S)=>{return(S.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/failed/{id}",...S})},e$=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...S})},s$=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},p$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host",...S})},t$=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...S})},n$=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...S})},i$=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},o$=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...S})},Sb=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Ob=(S)=>{return(S?.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},xb=(S)=>{return(S?.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},rb=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/schema",...S})},zb=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},$b=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/testall",...S})},bb=(S)=>{return(S.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},jb=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...S})},Pb=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...S})},Ub=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},Bb=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...S})},Rb=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Wb=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...S})},Nb=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...S})},Qb=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},Tb=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...S})},cb=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Jb=(S)=>{return(S?.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Vb=(S)=>{return(S?.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Xb=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...S})},gb=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},wb=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...S})},Zb=(S)=>{return(S.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},Gb=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...S})},fb=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},Lb=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer",...S})},Yb=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerflag",...S})},Kb=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language/{id}",...S})},Hb=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language",...S})},Eb=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization",...S})},Ib=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log",...S})},Db=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...S})},Mb=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/{filename}",...S})},Fb=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...S})},mb=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...S,headers:{"Content-Type":"application/json",...S?.headers}})},qb=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/artist/{artistId}/{filename}",...S})},kb=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/album/{albumId}/{filename}",...S})},ub=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...S})},vb=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},db=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement",...S})},ab=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...S})},yb=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...S})},Ab=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},_b=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...S})},Cb=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...S,headers:{"Content-Type":"application/json",...S?.headers}})},hb=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/schema",...S})},lb=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},eb=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/testall",...S})},sb=(S)=>{return(S.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},pb=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...S})},tb=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},nb=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...S})},ib=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...S})},ob=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},Sj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/schema",...S})},Oj=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...S})},xj=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},rj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider",...S})},zj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing",...S})},$j=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing/{id}",...S})},bj=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...S})},jj=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},Pj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming",...S})},Uj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/examples",...S})},Bj=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...S})},Rj=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...S})},Wj=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},Nj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...S})},Qj=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Tj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...S})},cj=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Jj=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...S})},Vj=(S)=>{return(S.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},Xj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/parse",...S})},gj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...S})},wj=(S)=>{return(S?.client??b).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...S})},Zj=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...S})},Gj=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},fj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition",...S})},Lj=(S)=>{return(S?.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/update",...S,headers:{"Content-Type":"application/json",...S?.headers}})},SO=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...S})},OO=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},xO=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...S})},rO=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...S})},zO=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},$O=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/schema",...S})},Yj=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/{id}",...S})},Kj=(S)=>{return(S?.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Hj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue",...S})},Ej=(S)=>{return(S.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/{id}",...S})},Ij=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Dj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/details",...S})},Mj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/status",...S})},Fj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...S})},mj=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...S,headers:{"Content-Type":"application/json",...S?.headers}})},qj=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...S})},kj=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...S})},uj=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},vj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...S})},dj=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},aj=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release/push",...S,headers:{"Content-Type":"application/json",...S?.headers}})},yj=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...S})},Aj=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...S})},_j=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},Cj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...S})},hj=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...S,headers:{"Content-Type":"application/json",...S?.headers}})},lj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rename",...S})},ej=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/retag",...S})},sj=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...S})},pj=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...S})},tj=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},bO=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...S})},jO=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...S,headers:{"Content-Type":"application/json",...S?.headers}})},nj=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...S})},ij=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...S})},oj=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...S})},SP=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...S})},PO=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...S})},OP=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...S})},xP=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes/duplicate",...S})},rP=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/shutdown",...S})},zP=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...S})},$P=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...S})},bP=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...S})},jP=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},PP=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...S})},UP=(S)=>{return(S?.client??b).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...S,headers:{"Content-Type":"application/json",...S?.headers}})},BP=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail/{id}",...S})},RP=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail",...S})},WP=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task",...S})},NP=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task/{id}",...S})},QP=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/track",...S})},TP=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/track/{id}",...S})},cP=(S)=>{return(S.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/{id}",...S})},JP=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/{id}",...S})},VP=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},XP=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile",...S})},gP=(S)=>{return(S?.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/editor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},wP=(S)=>{return(S?.client??b).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/trackfile/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},ZP=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...S})},GP=(S)=>{return(S.client??b).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},fP=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui",...S})},LP=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...S})},YP=(S)=>{return(S?.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update",...S})},KP=(S)=>{return(S.client??b).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update/{filename}",...S})};class sr{clientConfig;constructor(S){this.clientConfig=F(S)}async getSystemStatus(){return PO()}async getHealth(){return oS()}async getArtists(){return vS()}async getArtist(S){return kS({path:{id:S}})}async addArtist(S){return dS({body:S})}async updateArtist(S,O){return uS({path:{id:String(S)},body:O})}async deleteArtist(S){return qS({path:{id:S}})}async getAlbums(){return ES()}async getAlbum(S){return MS({path:{id:S}})}async searchArtists(S){return aS({query:{term:S}})}async runCommand(S){return CS({body:S})}async getCommands(){return _S()}async getRootFolders(){return bO()}async addRootFolder(S){return jO({body:{path:S}})}async addAlbum(S){return IS({body:S})}async updateAlbum(S,O){return FS({path:{id:String(S)},body:O})}async deleteAlbum(S){return DS({path:{id:S}})}async searchAlbums(S){return mS({query:{term:S}})}async getCalendar(S,O,x){let r={};if(S)r.start=S;if(O)r.end=O;if(x!==void 0)r.unmonitored=x;return yS(Object.keys(r).length>0?{query:r}:{})}async getCalendarFeed(S,O,x){let r={};if(S!==void 0)r.pastDays=S;if(O!==void 0)r.futureDays=O;if(x)r.tags=x;return AS(Object.keys(r).length>0?{query:r}:{})}async getQualityProfiles(){return SO()}async getQualityProfile(S){return rO({path:{id:S}})}async addQualityProfile(S){return OO({body:S})}async updateQualityProfile(S,O){return zO({path:{id:String(S)},body:O})}async deleteQualityProfile(S){return xO({path:{id:S}})}async getQualityProfileSchema(){return $O()}async getCustomFormats(){return sS()}async getCustomFormat(S){return lS({path:{id:S}})}async addCustomFormat(S){return pS({body:S})}async updateCustomFormat(S,O){return eS({path:{id:String(S)},body:O})}async deleteCustomFormat(S){return hS({path:{id:S}})}async updateCustomFormatsBulk(S){return nS({body:S})}async deleteCustomFormatsBulk(S){return tS({body:{ids:S}})}async getCustomFormatSchema(){return iS()}updateConfig(S){let O={...this.clientConfig.config,...S};return this.clientConfig=F(O),this.clientConfig.config}}var YO={};p(YO,{putApiV1TagById:()=>FB,putApiV1NotificationById:()=>NB,putApiV1IndexerproxyById:()=>eU,putApiV1IndexerById:()=>wO,putApiV1IndexerBulk:()=>dU,putApiV1DownloadclientById:()=>VU,putApiV1DownloadclientBulk:()=>ZU,putApiV1CustomfilterById:()=>BU,putApiV1ConfigUiById:()=>yB,putApiV1ConfigHostById:()=>kU,putApiV1ConfigDownloadclientById:()=>HU,putApiV1ConfigDevelopmentById:()=>QU,putApiV1AppprofileById:()=>nP,putApiV1ApplicationsById:()=>dP,putApiV1ApplicationsBulk:()=>AP,postLogin:()=>SU,postApiV1Tag:()=>qB,postApiV1SystemShutdown:()=>EB,postApiV1SystemRestart:()=>IB,postApiV1SystemBackupRestoreUpload:()=>$U,postApiV1SystemBackupRestoreById:()=>zU,postApiV1SearchBulk:()=>GB,postApiV1Search:()=>ZB,postApiV1NotificationTestall:()=>VB,postApiV1NotificationTest:()=>JB,postApiV1NotificationActionByName:()=>XB,postApiV1Notification:()=>TB,postApiV1IndexerproxyTestall:()=>iU,postApiV1IndexerproxyTest:()=>nU,postApiV1IndexerproxyActionByName:()=>oU,postApiV1Indexerproxy:()=>pU,postApiV1IndexerTestall:()=>AU,postApiV1IndexerTest:()=>yU,postApiV1IndexerActionByName:()=>_U,postApiV1Indexer:()=>GO,postApiV1DownloadclientTestall:()=>LU,postApiV1DownloadclientTest:()=>fU,postApiV1DownloadclientActionByName:()=>YU,postApiV1Downloadclient:()=>gU,postApiV1Customfilter:()=>WU,postApiV1Command:()=>JO,postApiV1Appprofile:()=>sP,postApiV1ApplicationsTestall:()=>hP,postApiV1ApplicationsTest:()=>CP,postApiV1ApplicationsActionByName:()=>lP,postApiV1Applications:()=>aP,headPing:()=>wB,getPing:()=>gB,getLogout:()=>OU,getLogin:()=>oP,getContentByPath:()=>fB,getByPath:()=>YB,getByIdDownload:()=>BB,getByIdApi:()=>PB,getApiV1Update:()=>_B,getApiV1TagDetailById:()=>kB,getApiV1TagDetail:()=>uB,getApiV1TagById:()=>MB,getApiV1Tag:()=>mB,getApiV1SystemTaskById:()=>dB,getApiV1SystemTask:()=>vB,getApiV1SystemStatus:()=>LO,getApiV1SystemRoutesDuplicate:()=>HB,getApiV1SystemRoutes:()=>KB,getApiV1SystemBackup:()=>xU,getApiV1Search:()=>fO,getApiV1NotificationSchema:()=>cB,getApiV1NotificationById:()=>WB,getApiV1Notification:()=>QB,getApiV1LogFileUpdateByFilename:()=>hB,getApiV1LogFileUpdate:()=>CB,getApiV1LogFileByFilename:()=>bB,getApiV1LogFile:()=>$B,getApiV1Log:()=>zB,getApiV1LocalizationOptions:()=>rB,getApiV1Localization:()=>xB,getApiV1Indexerstatus:()=>OB,getApiV1Indexerstats:()=>SB,getApiV1IndexerproxySchema:()=>tU,getApiV1IndexerproxyById:()=>lU,getApiV1Indexerproxy:()=>sU,getApiV1IndexerSchema:()=>aU,getApiV1IndexerCategories:()=>CU,getApiV1IndexerByIdNewznab:()=>jB,getApiV1IndexerByIdDownload:()=>UB,getApiV1IndexerById:()=>gO,getApiV1Indexer:()=>ZO,getApiV1HistorySince:()=>FU,getApiV1HistoryIndexer:()=>mU,getApiV1History:()=>MU,getApiV1Health:()=>VO,getApiV1FilesystemType:()=>DU,getApiV1Filesystem:()=>IU,getApiV1DownloadclientSchema:()=>GU,getApiV1DownloadclientById:()=>JU,getApiV1Downloadclient:()=>XU,getApiV1CustomfilterById:()=>UU,getApiV1Customfilter:()=>RU,getApiV1ConfigUiById:()=>aB,getApiV1ConfigUi:()=>AB,getApiV1ConfigHostById:()=>qU,getApiV1ConfigHost:()=>uU,getApiV1ConfigDownloadclientById:()=>KU,getApiV1ConfigDownloadclient:()=>EU,getApiV1ConfigDevelopmentById:()=>NU,getApiV1ConfigDevelopment:()=>TU,getApiV1CommandById:()=>jU,getApiV1Command:()=>cO,getApiV1AppprofileSchema:()=>iP,getApiV1AppprofileById:()=>tP,getApiV1Appprofile:()=>eP,getApiV1ApplicationsSchema:()=>_P,getApiV1ApplicationsById:()=>vP,getApiV1Applications:()=>TO,getApi:()=>kP,get:()=>LB,deleteApiV1TagById:()=>DB,deleteApiV1SystemBackupById:()=>rU,deleteApiV1NotificationById:()=>RB,deleteApiV1IndexerproxyById:()=>hU,deleteApiV1IndexerById:()=>XO,deleteApiV1IndexerBulk:()=>vU,deleteApiV1DownloadclientById:()=>cU,deleteApiV1DownloadclientBulk:()=>wU,deleteApiV1CustomfilterById:()=>PU,deleteApiV1CommandById:()=>bU,deleteApiV1AppprofileById:()=>pP,deleteApiV1ApplicationsById:()=>uP,deleteApiV1ApplicationsBulk:()=>yP});var pr=(S,O,x)=>{if(typeof x==="string"||x instanceof Blob)S.append(O,x);else if(x instanceof Date)S.append(O,x.toISOString());else S.append(O,JSON.stringify(x))};var BO={bodySerializer:(S)=>{let O=new FormData;return Object.entries(S).forEach(([x,r])=>{if(r===void 0||r===null)return;if(Array.isArray(r))r.forEach((P)=>pr(O,x,P));else pr(O,x,r)}),O}},RO={bodySerializer:(S)=>JSON.stringify(S,(O,x)=>typeof x==="bigint"?x.toString():x)};var tr=({onRequest:S,onSseError:O,onSseEvent:x,responseTransformer:r,responseValidator:P,sseDefaultRetryDelay:W,sseMaxRetryAttempts:R,sseMaxRetryDelay:U,sseSleepFn:B,url:T,...z})=>{let c,K=B??((Q)=>new Promise((V)=>setTimeout(V,Q)));return{stream:async function*(){let Q=W??3000,V=0,f=z.signal??new AbortController().signal;while(!0){if(f.aborted)break;V++;let H=z.headers instanceof Headers?z.headers:new Headers(z.headers);if(c!==void 0)H.set("Last-Event-ID",c);try{let L={redirect:"follow",...z,body:z.serializedBody,headers:H,signal:f},w=new Request(T,L);if(S)w=await S(T,L);let X=await(z.fetch??globalThis.fetch)(w);if(!X.ok)throw new Error(`SSE failed: ${X.status} ${X.statusText}`);if(!X.body)throw new Error("No body in SSE response");let Z=X.body.pipeThrough(new TextDecoderStream).getReader(),M="",m=()=>{try{Z.cancel()}catch{}};f.addEventListener("abort",m);try{while(!0){let{done:a,value:y}=await Z.read();if(a)break;M+=y;let q=M.split(`
6
+
7
+ `);M=q.pop()??"";for(let A of q){let _=A.split(`
8
+ `),D=[],k;for(let g of _)if(g.startsWith("data:"))D.push(g.replace(/^data:\s*/,""));else if(g.startsWith("event:"))k=g.replace(/^event:\s*/,"");else if(g.startsWith("id:"))c=g.replace(/^id:\s*/,"");else if(g.startsWith("retry:")){let v=Number.parseInt(g.replace(/^retry:\s*/,""),10);if(!Number.isNaN(v))Q=v}let Y,u=!1;if(D.length){let g=D.join(`
9
+ `);try{Y=JSON.parse(g),u=!0}catch{Y=g}}if(u){if(P)await P(Y);if(r)Y=await r(Y)}if(x?.({data:Y,event:k,id:c,retry:Q}),D.length)yield Y}}}finally{f.removeEventListener("abort",m),Z.releaseLock()}break}catch(L){if(O?.(L),R!==void 0&&V>=R)break;let w=Math.min(Q*2**(V-1),U??30000);await K(w)}}}()}};var nr=async(S,O)=>{let x=typeof O==="function"?await O(S):O;if(!x)return;if(S.scheme==="bearer")return`Bearer ${x}`;if(S.scheme==="basic")return`Basic ${btoa(x)}`;return x};var HP=(S)=>{switch(S){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},EP=(S)=>{switch(S){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},IP=(S)=>{switch(S){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},PS=({allowReserved:S,explode:O,name:x,style:r,value:P})=>{if(!O){let U=(S?P:P.map((B)=>encodeURIComponent(B))).join(EP(r));switch(r){case"label":return`.${U}`;case"matrix":return`;${x}=${U}`;case"simple":return U;default:return`${x}=${U}`}}let W=HP(r),R=P.map((U)=>{if(r==="label"||r==="simple")return S?U:encodeURIComponent(U);return h({allowReserved:S,name:x,value:U})}).join(W);return r==="label"||r==="matrix"?W+R:R},h=({allowReserved:S,name:O,value:x})=>{if(x===void 0||x===null)return"";if(typeof x==="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${O}=${S?x:encodeURIComponent(x)}`},US=({allowReserved:S,explode:O,name:x,style:r,value:P,valueOnly:W})=>{if(P instanceof Date)return W?P.toISOString():`${x}=${P.toISOString()}`;if(r!=="deepObject"&&!O){let B=[];Object.entries(P).forEach(([z,c])=>{B=[...B,z,S?c:encodeURIComponent(c)]});let T=B.join(",");switch(r){case"form":return`${x}=${T}`;case"label":return`.${T}`;case"matrix":return`;${x}=${T}`;default:return T}}let R=IP(r),U=Object.entries(P).map(([B,T])=>h({allowReserved:S,name:r==="deepObject"?`${x}[${B}]`:B,value:T})).join(R);return r==="label"||r==="matrix"?R+U:U};var DP=/\{[^{}]+\}/g,MP=({path:S,url:O})=>{let x=O,r=O.match(DP);if(r)for(let P of r){let W=!1,R=P.substring(1,P.length-1),U="simple";if(R.endsWith("*"))W=!0,R=R.substring(0,R.length-1);if(R.startsWith("."))R=R.substring(1),U="label";else if(R.startsWith(";"))R=R.substring(1),U="matrix";let B=S[R];if(B===void 0||B===null)continue;if(Array.isArray(B)){x=x.replace(P,PS({explode:W,name:R,style:U,value:B}));continue}if(typeof B==="object"){x=x.replace(P,US({explode:W,name:R,style:U,value:B,valueOnly:!0}));continue}if(U==="matrix"){x=x.replace(P,`;${h({name:R,value:B})}`);continue}let T=encodeURIComponent(U==="label"?`.${B}`:B);x=x.replace(P,T)}return x},ir=({baseUrl:S,path:O,query:x,querySerializer:r,url:P})=>{let W=P.startsWith("/")?P:`/${P}`,R=(S??"")+W;if(O)R=MP({path:O,url:R});let U=x?r(x):"";if(U.startsWith("?"))U=U.substring(1);if(U)R+=`?${U}`;return R};var or=({allowReserved:S,array:O,object:x}={})=>{return(P)=>{let W=[];if(P&&typeof P==="object")for(let R in P){let U=P[R];if(U===void 0||U===null)continue;if(Array.isArray(U)){let B=PS({allowReserved:S,explode:!0,name:R,style:"form",value:U,...O});if(B)W.push(B)}else if(typeof U==="object"){let B=US({allowReserved:S,explode:!0,name:R,style:"deepObject",value:U,...x});if(B)W.push(B)}else{let B=h({allowReserved:S,name:R,value:U});if(B)W.push(B)}}return W.join("&")}},Sz=(S)=>{if(!S)return"stream";let O=S.split(";")[0]?.trim();if(!O)return;if(O.startsWith("application/json")||O.endsWith("+json"))return"json";if(O==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((x)=>O.startsWith(x)))return"blob";if(O.startsWith("text/"))return"text";return},FP=(S,O)=>{if(!O)return!1;if(S.headers.has(O)||S.query?.[O]||S.headers.get("Cookie")?.includes(`${O}=`))return!0;return!1},Oz=async({security:S,...O})=>{for(let x of S){if(FP(O,x.name))continue;let r=await nr(x,O.auth);if(!r)continue;let P=x.name??"Authorization";switch(x.in){case"query":if(!O.query)O.query={};O.query[P]=r;break;case"cookie":O.headers.append("Cookie",`${P}=${r}`);break;case"header":default:O.headers.set(P,r);break}}},WO=(S)=>ir({baseUrl:S.baseUrl,path:S.path,query:S.query,querySerializer:typeof S.querySerializer==="function"?S.querySerializer:or(S.querySerializer),url:S.url}),NO=(S,O)=>{let x={...S,...O};if(x.baseUrl?.endsWith("/"))x.baseUrl=x.baseUrl.substring(0,x.baseUrl.length-1);return x.headers=RS(S.headers,O.headers),x},RS=(...S)=>{let O=new Headers;for(let x of S){if(!x||typeof x!=="object")continue;let r=x instanceof Headers?x.entries():Object.entries(x);for(let[P,W]of r)if(W===null)O.delete(P);else if(Array.isArray(W))for(let R of W)O.append(P,R);else if(W!==void 0)O.set(P,typeof W==="object"?JSON.stringify(W):W)}return O};class BS{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(S){if(typeof S==="number")return this._fns[S]?S:-1;else return this._fns.indexOf(S)}exists(S){let O=this.getInterceptorIndex(S);return!!this._fns[O]}eject(S){let O=this.getInterceptorIndex(S);if(this._fns[O])this._fns[O]=null}update(S,O){let x=this.getInterceptorIndex(S);if(this._fns[x])return this._fns[x]=O,S;else return!1}use(S){return this._fns=[...this._fns,S],this._fns.length-1}}var xz=()=>({error:new BS,request:new BS,response:new BS}),mP=or({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),qP={"Content-Type":"application/json"},o=(S={})=>({...RO,headers:qP,parseAs:"auto",querySerializer:mP,...S});var QO=(S={})=>{let O=NO(o(),S),x=()=>({...O}),r=(T)=>{return O=NO(O,T),x()},P=xz(),W=async(T)=>{let z={...O,...T,fetch:T.fetch??O.fetch??globalThis.fetch,headers:RS(O.headers,T.headers),serializedBody:void 0};if(z.security)await Oz({...z,security:z.security});if(z.requestValidator)await z.requestValidator(z);if(z.body&&z.bodySerializer)z.serializedBody=z.bodySerializer(z.body);if(z.serializedBody===void 0||z.serializedBody==="")z.headers.delete("Content-Type");let c=WO(z);return{opts:z,url:c}},R=async(T)=>{let{opts:z,url:c}=await W(T),K={redirect:"follow",...z,body:z.serializedBody},G=new Request(c,K);for(let J of P.request._fns)if(J)G=await J(G,z);let I=z.fetch,Q=await I(G);for(let J of P.response._fns)if(J)Q=await J(Q,G,z);let V={request:G,response:Q};if(Q.ok){let J=(z.parseAs==="auto"?Sz(Q.headers.get("Content-Type")):z.parseAs)??"json";if(Q.status===204||Q.headers.get("Content-Length")==="0"){let Z;switch(J){case"arrayBuffer":case"blob":case"text":Z=await Q[J]();break;case"formData":Z=new FormData;break;case"stream":Z=Q.body;break;case"json":default:Z={};break}return z.responseStyle==="data"?Z:{data:Z,...V}}let X;switch(J){case"arrayBuffer":case"blob":case"formData":case"json":case"text":X=await Q[J]();break;case"stream":return z.responseStyle==="data"?Q.body:{data:Q.body,...V}}if(J==="json"){if(z.responseValidator)await z.responseValidator(X);if(z.responseTransformer)X=await z.responseTransformer(X)}return z.responseStyle==="data"?X:{data:X,...V}}let f=await Q.text(),H;try{H=JSON.parse(f)}catch{}let L=H??f,w=L;for(let J of P.error._fns)if(J)w=await J(L,Q,G,z);if(w=w||{},z.throwOnError)throw w;return z.responseStyle==="data"?void 0:{error:w,...V}},U=(T)=>(z)=>R({...z,method:T}),B=(T)=>async(z)=>{let{opts:c,url:K}=await W(z);return tr({...c,body:c.body,headers:c.headers,method:T,onRequest:async(G,I)=>{let Q=new Request(G,I);for(let V of P.request._fns)if(V)Q=await V(Q,c);return Q},url:K})};return{buildUrl:WO,connect:U("CONNECT"),delete:U("DELETE"),get:U("GET"),getConfig:x,head:U("HEAD"),interceptors:P,options:U("OPTIONS"),patch:U("PATCH"),post:U("POST"),put:U("PUT"),request:R,setConfig:r,sse:{connect:B("CONNECT"),delete:B("DELETE"),get:B("GET"),head:B("HEAD"),options:B("OPTIONS"),patch:B("PATCH"),post:B("POST"),put:B("PUT"),trace:B("TRACE")},trace:U("TRACE")}};var N=QO(o());var kP=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...S})},uP=(S)=>{return(S.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/{id}",...S})},vP=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/{id}",...S})},dP=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},TO=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications",...S})},aP=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications",...S,headers:{"Content-Type":"application/json",...S?.headers}})},yP=(S)=>{return(S?.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},AP=(S)=>{return(S?.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},_P=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/schema",...S})},CP=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},hP=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/testall",...S})},lP=(S)=>{return(S.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/applications/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},eP=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile",...S})},sP=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},pP=(S)=>{return(S.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/{id}",...S})},tP=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/{id}",...S})},nP=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},iP=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/appprofile/schema",...S})},oP=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...S})},SU=(S)=>{return(S?.client??N).post({...BO,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...S,headers:{"Content-Type":null,...S?.headers}})},OU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...S})},xU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup",...S})},rU=(S)=>{return(S.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/{id}",...S})},zU=(S)=>{return(S.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/{id}",...S})},$U=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/upload",...S})},bU=(S)=>{return(S.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...S})},jU=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...S})},cO=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...S})},JO=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...S,headers:{"Content-Type":"application/json",...S?.headers}})},PU=(S)=>{return(S.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...S})},UU=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...S})},BU=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},RU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...S})},WU=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...S,headers:{"Content-Type":"application/json",...S?.headers}})},NU=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...S})},QU=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},TU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development",...S})},cU=(S)=>{return(S.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...S})},JU=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...S})},VU=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},XU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...S})},gU=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...S,headers:{"Content-Type":"application/json",...S?.headers}})},wU=(S)=>{return(S?.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},ZU=(S)=>{return(S?.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},GU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...S})},fU=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},LU=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...S})},YU=(S)=>{return(S.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},KU=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...S})},HU=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},EU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...S})},IU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...S})},DU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...S})},VO=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...S})},MU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...S})},FU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...S})},mU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/indexer",...S})},qU=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...S})},kU=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},uU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host",...S})},XO=(S)=>{return(S.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...S})},gO=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...S})},wO=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},ZO=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...S})},GO=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...S,headers:{"Content-Type":"application/json",...S?.headers}})},vU=(S)=>{return(S?.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},dU=(S)=>{return(S?.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},aU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...S})},yU=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},AU=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...S})},_U=(S)=>{return(S.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},CU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/categories",...S})},hU=(S)=>{return(S.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/{id}",...S})},lU=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/{id}",...S})},eU=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},sU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy",...S})},pU=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy",...S,headers:{"Content-Type":"application/json",...S?.headers}})},tU=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/schema",...S})},nU=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},iU=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/testall",...S})},oU=(S)=>{return(S.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerproxy/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},SB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerstats",...S})},OB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerstatus",...S})},xB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization",...S})},rB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization/options",...S})},zB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log",...S})},$B=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...S})},bB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/{filename}",...S})},jB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}/newznab",...S})},PB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{id}/api",...S})},UB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}/download",...S})},BB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{id}/download",...S})},RB=(S)=>{return(S.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...S})},WB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...S})},NB=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},QB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...S})},TB=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...S,headers:{"Content-Type":"application/json",...S?.headers}})},cB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...S})},JB=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},VB=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...S})},XB=(S)=>{return(S.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},gB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...S})},wB=(S)=>{return(S?.client??N).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...S})},fO=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...S})},ZB=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...S,headers:{"Content-Type":"application/json",...S?.headers}})},GB=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},fB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...S})},LB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...S})},YB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...S})},LO=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...S})},KB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...S})},HB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes/duplicate",...S})},EB=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/shutdown",...S})},IB=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...S})},DB=(S)=>{return(S.client??N).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...S})},MB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...S})},FB=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},mB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...S})},qB=(S)=>{return(S?.client??N).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...S,headers:{"Content-Type":"application/json",...S?.headers}})},kB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail/{id}",...S})},uB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail",...S})},vB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task",...S})},dB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task/{id}",...S})},aB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...S})},yB=(S)=>{return(S.client??N).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},AB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui",...S})},_B=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...S})},CB=(S)=>{return(S?.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update",...S})},hB=(S)=>{return(S.client??N).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update/{filename}",...S})};class rz{clientConfig;constructor(S){this.clientConfig=F(S)}async getSystemStatus(){return LO()}async getHealth(){return VO()}async getIndexers(){return ZO()}async getIndexer(S){return gO({path:{id:S}})}async addIndexer(S){return GO({body:S})}async updateIndexer(S,O){return wO({path:{id:String(S)},body:O})}async deleteIndexer(S){return XO({path:{id:S}})}async search(S,O){return fO({query:{query:S,...O&&{indexerIds:O}}})}async getApplications(){return TO()}async runCommand(S){return JO({body:S})}async getCommands(){return cO()}updateConfig(S){let O={...this.clientConfig.config,...S};return this.clientConfig=F(O),this.clientConfig.config}}var Or={};p(Or,{putApiV3TagById:()=>AW,putApiV3RemotepathmappingById:()=>HW,putApiV3ReleaseprofileById:()=>ZW,putApiV3QualityprofileById:()=>Ax,putApiV3QualitydefinitionUpdate:()=>QW,putApiV3QualitydefinitionById:()=>WW,putApiV3NotificationById:()=>mx,putApiV3MoviefileEditor:()=>n1,putApiV3MoviefileById:()=>t1,putApiV3MoviefileBulk:()=>o1,putApiV3MovieEditor:()=>l1,putApiV3MovieById:()=>Kx,putApiV3MetadataById:()=>k1,putApiV3IndexerById:()=>Xx,putApiV3IndexerBulk:()=>N1,putApiV3ImportlistById:()=>Rx,putApiV3ImportlistBulk:()=>nR,putApiV3ExclusionsById:()=>j1,putApiV3DownloadclientById:()=>sO,putApiV3DownloadclientBulk:()=>tO,putApiV3DelayprofileReorderById:()=>dR,putApiV3DelayprofileById:()=>vR,putApiV3CustomformatById:()=>aO,putApiV3CustomformatBulk:()=>AO,putApiV3CustomfilterById:()=>MR,putApiV3ConfigUiById:()=>sW,putApiV3ConfigNamingById:()=>$W,putApiV3ConfigMetadataById:()=>_1,putApiV3ConfigMediamanagementById:()=>D1,putApiV3ConfigIndexerById:()=>J1,putApiV3ConfigImportlistById:()=>O1,putApiV3ConfigHostById:()=>pR,putApiV3ConfigDownloadclientById:()=>CR,putApiV3CollectionById:()=>GR,putApiV3Collection:()=>wR,putApiV3AutotaggingById:()=>BR,postLogin:()=>zR,postApiV3Tag:()=>dW,postApiV3SystemShutdown:()=>kW,postApiV3SystemRestart:()=>uW,postApiV3SystemBackupRestoreUpload:()=>TR,postApiV3SystemBackupRestoreById:()=>QR,postApiV3Rootfolder:()=>ix,postApiV3Remotepathmapping:()=>LW,postApiV3Releaseprofile:()=>XW,postApiV3ReleasePush:()=>GW,postApiV3Release:()=>JW,postApiV3QueueGrabById:()=>ex,postApiV3QueueGrabBulk:()=>sx,postApiV3Qualityprofile:()=>dx,postApiV3NotificationTestall:()=>ux,postApiV3NotificationTest:()=>kx,postApiV3NotificationActionByName:()=>jW,postApiV3Notification:()=>Dx,postApiV3MovieImport:()=>Hx,postApiV3Movie:()=>fx,postApiV3MetadataTestall:()=>d1,postApiV3MetadataTest:()=>v1,postApiV3MetadataActionByName:()=>a1,postApiV3Metadata:()=>F1,postApiV3Manualimport:()=>K1,postApiV3IndexerTestall:()=>Zx,postApiV3IndexerTest:()=>wx,postApiV3IndexerActionByName:()=>Q1,postApiV3Indexer:()=>cx,postApiV3ImportlistTestall:()=>Qx,postApiV3ImportlistTest:()=>Nx,postApiV3ImportlistMovie:()=>R1,postApiV3ImportlistActionByName:()=>iR,postApiV3Importlist:()=>Px,postApiV3HistoryFailedById:()=>bx,postApiV3ExclusionsBulk:()=>U1,postApiV3Exclusions:()=>r1,postApiV3DownloadclientTestall:()=>oO,postApiV3DownloadclientTest:()=>iO,postApiV3DownloadclientActionByName:()=>yR,postApiV3Downloadclient:()=>hO,postApiV3Delayprofile:()=>qR,postApiV3Customformat:()=>uO,postApiV3Customfilter:()=>ER,postApiV3Command:()=>qO,postApiV3Autotagging:()=>jR,headPing:()=>BW,getPing:()=>UW,getLogout:()=>$R,getLogin:()=>rR,getFeedV3CalendarRadarrIcs:()=>FO,getContentByPath:()=>DW,getByPath:()=>FW,getApiV3WantedMissing:()=>C1,getApiV3WantedCutoff:()=>FR,getApiV3Update:()=>tW,getApiV3TagDetailById:()=>CW,getApiV3TagDetail:()=>_W,getApiV3TagById:()=>yW,getApiV3Tag:()=>vW,getApiV3SystemTaskById:()=>lW,getApiV3SystemTask:()=>hW,getApiV3SystemStatus:()=>Sr,getApiV3SystemRoutesDuplicate:()=>qW,getApiV3SystemRoutes:()=>mW,getApiV3SystemBackup:()=>WR,getApiV3RootfolderById:()=>IW,getApiV3Rootfolder:()=>nx,getApiV3Rename:()=>EW,getApiV3RemotepathmappingById:()=>KW,getApiV3Remotepathmapping:()=>fW,getApiV3ReleaseprofileById:()=>wW,getApiV3Releaseprofile:()=>VW,getApiV3Release:()=>cW,getApiV3QueueStatus:()=>tx,getApiV3QueueDetails:()=>px,getApiV3Queue:()=>lx,getApiV3QualityprofileSchema:()=>_x,getApiV3QualityprofileById:()=>yx,getApiV3Qualityprofile:()=>vx,getApiV3QualitydefinitionLimits:()=>TW,getApiV3QualitydefinitionById:()=>RW,getApiV3Qualitydefinition:()=>NW,getApiV3Parse:()=>PW,getApiV3NotificationSchema:()=>qx,getApiV3NotificationById:()=>Fx,getApiV3Notification:()=>Ix,getApiV3MoviefileById:()=>p1,getApiV3Moviefile:()=>e1,getApiV3MovieLookupTmdb:()=>OW,getApiV3MovieLookupImdb:()=>xW,getApiV3MovieLookup:()=>Ex,getApiV3MovieByIdFolder:()=>SW,getApiV3MovieById:()=>Yx,getApiV3Movie:()=>Gx,getApiV3MetadataSchema:()=>u1,getApiV3MetadataById:()=>q1,getApiV3Metadata:()=>M1,getApiV3MediacoverByMovieIdByFilename:()=>H1,getApiV3Manualimport:()=>Y1,getApiV3LogFileUpdateByFilename:()=>iW,getApiV3LogFileUpdate:()=>nW,getApiV3LogFileByFilename:()=>L1,getApiV3LogFile:()=>f1,getApiV3Log:()=>G1,getApiV3LocalizationLanguage:()=>Z1,getApiV3Localization:()=>w1,getApiV3LanguageById:()=>g1,getApiV3Language:()=>X1,getApiV3Indexerflag:()=>V1,getApiV3IndexerSchema:()=>gx,getApiV3IndexerById:()=>Vx,getApiV3Indexer:()=>Tx,getApiV3ImportlistSchema:()=>Wx,getApiV3ImportlistMovie:()=>B1,getApiV3ImportlistById:()=>Bx,getApiV3Importlist:()=>jx,getApiV3HistorySince:()=>zx,getApiV3HistoryMovie:()=>$x,getApiV3History:()=>rx,getApiV3Health:()=>xx,getApiV3FilesystemType:()=>lR,getApiV3FilesystemMediafiles:()=>Ox,getApiV3Filesystem:()=>Sx,getApiV3Extrafile:()=>hR,getApiV3ExclusionsPaged:()=>z1,getApiV3ExclusionsById:()=>b1,getApiV3Exclusions:()=>x1,getApiV3DownloadclientSchema:()=>nO,getApiV3DownloadclientById:()=>eO,getApiV3Downloadclient:()=>CO,getApiV3Diskspace:()=>aR,getApiV3DelayprofileById:()=>uR,getApiV3Delayprofile:()=>mR,getApiV3CustomformatSchema:()=>_O,getApiV3CustomformatById:()=>dO,getApiV3Customformat:()=>kO,getApiV3CustomfilterById:()=>DR,getApiV3Customfilter:()=>HR,getApiV3CreditById:()=>KR,getApiV3Credit:()=>YR,getApiV3ConfigUiById:()=>eW,getApiV3ConfigUi:()=>pW,getApiV3ConfigNamingExamples:()=>bW,getApiV3ConfigNamingById:()=>zW,getApiV3ConfigNaming:()=>rW,getApiV3ConfigMetadataById:()=>A1,getApiV3ConfigMetadata:()=>y1,getApiV3ConfigMediamanagementById:()=>I1,getApiV3ConfigMediamanagement:()=>E1,getApiV3ConfigIndexerById:()=>c1,getApiV3ConfigIndexer:()=>T1,getApiV3ConfigImportlistById:()=>S1,getApiV3ConfigImportlist:()=>oR,getApiV3ConfigHostById:()=>sR,getApiV3ConfigHost:()=>eR,getApiV3ConfigDownloadclientById:()=>_R,getApiV3ConfigDownloadclient:()=>AR,getApiV3CommandById:()=>LR,getApiV3Command:()=>mO,getApiV3CollectionById:()=>ZR,getApiV3Collection:()=>gR,getApiV3Calendar:()=>MO,getApiV3BlocklistMovie:()=>JR,getApiV3Blocklist:()=>cR,getApiV3AutotaggingSchema:()=>RR,getApiV3AutotaggingById:()=>UR,getApiV3Autotagging:()=>bR,getApiV3AlttitleById:()=>OR,getApiV3Alttitle:()=>SR,getApi:()=>xR,get:()=>MW,deleteApiV3TagById:()=>aW,deleteApiV3SystemBackupById:()=>NR,deleteApiV3RootfolderById:()=>ox,deleteApiV3RemotepathmappingById:()=>YW,deleteApiV3ReleaseprofileById:()=>gW,deleteApiV3QueueById:()=>Cx,deleteApiV3QueueBulk:()=>hx,deleteApiV3QualityprofileById:()=>ax,deleteApiV3NotificationById:()=>Mx,deleteApiV3MoviefileById:()=>s1,deleteApiV3MoviefileBulk:()=>i1,deleteApiV3MovieEditor:()=>h1,deleteApiV3MovieById:()=>Lx,deleteApiV3MetadataById:()=>m1,deleteApiV3IndexerById:()=>Jx,deleteApiV3IndexerBulk:()=>W1,deleteApiV3ImportlistById:()=>Ux,deleteApiV3ImportlistBulk:()=>tR,deleteApiV3ExclusionsById:()=>$1,deleteApiV3ExclusionsBulk:()=>P1,deleteApiV3DownloadclientById:()=>lO,deleteApiV3DownloadclientBulk:()=>pO,deleteApiV3DelayprofileById:()=>kR,deleteApiV3CustomformatById:()=>vO,deleteApiV3CustomformatBulk:()=>yO,deleteApiV3CustomfilterById:()=>IR,deleteApiV3CommandById:()=>fR,deleteApiV3BlocklistById:()=>VR,deleteApiV3BlocklistBulk:()=>XR,deleteApiV3AutotaggingById:()=>PR});var zz=(S,O,x)=>{if(typeof x==="string"||x instanceof Blob)S.append(O,x);else if(x instanceof Date)S.append(O,x.toISOString());else S.append(O,JSON.stringify(x))};var KO={bodySerializer:(S)=>{let O=new FormData;return Object.entries(S).forEach(([x,r])=>{if(r===void 0||r===null)return;if(Array.isArray(r))r.forEach((P)=>zz(O,x,P));else zz(O,x,r)}),O}},HO={bodySerializer:(S)=>JSON.stringify(S,(O,x)=>typeof x==="bigint"?x.toString():x)};var $z=({onRequest:S,onSseError:O,onSseEvent:x,responseTransformer:r,responseValidator:P,sseDefaultRetryDelay:W,sseMaxRetryAttempts:R,sseMaxRetryDelay:U,sseSleepFn:B,url:T,...z})=>{let c,K=B??((Q)=>new Promise((V)=>setTimeout(V,Q)));return{stream:async function*(){let Q=W??3000,V=0,f=z.signal??new AbortController().signal;while(!0){if(f.aborted)break;V++;let H=z.headers instanceof Headers?z.headers:new Headers(z.headers);if(c!==void 0)H.set("Last-Event-ID",c);try{let L={redirect:"follow",...z,body:z.serializedBody,headers:H,signal:f},w=new Request(T,L);if(S)w=await S(T,L);let X=await(z.fetch??globalThis.fetch)(w);if(!X.ok)throw new Error(`SSE failed: ${X.status} ${X.statusText}`);if(!X.body)throw new Error("No body in SSE response");let Z=X.body.pipeThrough(new TextDecoderStream).getReader(),M="",m=()=>{try{Z.cancel()}catch{}};f.addEventListener("abort",m);try{while(!0){let{done:a,value:y}=await Z.read();if(a)break;M+=y;let q=M.split(`
10
+
11
+ `);M=q.pop()??"";for(let A of q){let _=A.split(`
12
+ `),D=[],k;for(let g of _)if(g.startsWith("data:"))D.push(g.replace(/^data:\s*/,""));else if(g.startsWith("event:"))k=g.replace(/^event:\s*/,"");else if(g.startsWith("id:"))c=g.replace(/^id:\s*/,"");else if(g.startsWith("retry:")){let v=Number.parseInt(g.replace(/^retry:\s*/,""),10);if(!Number.isNaN(v))Q=v}let Y,u=!1;if(D.length){let g=D.join(`
13
+ `);try{Y=JSON.parse(g),u=!0}catch{Y=g}}if(u){if(P)await P(Y);if(r)Y=await r(Y)}if(x?.({data:Y,event:k,id:c,retry:Q}),D.length)yield Y}}}finally{f.removeEventListener("abort",m),Z.releaseLock()}break}catch(L){if(O?.(L),R!==void 0&&V>=R)break;let w=Math.min(Q*2**(V-1),U??30000);await K(w)}}}()}};var bz=async(S,O)=>{let x=typeof O==="function"?await O(S):O;if(!x)return;if(S.scheme==="bearer")return`Bearer ${x}`;if(S.scheme==="basic")return`Basic ${btoa(x)}`;return x};var lB=(S)=>{switch(S){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},eB=(S)=>{switch(S){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},sB=(S)=>{switch(S){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},WS=({allowReserved:S,explode:O,name:x,style:r,value:P})=>{if(!O){let U=(S?P:P.map((B)=>encodeURIComponent(B))).join(eB(r));switch(r){case"label":return`.${U}`;case"matrix":return`;${x}=${U}`;case"simple":return U;default:return`${x}=${U}`}}let W=lB(r),R=P.map((U)=>{if(r==="label"||r==="simple")return S?U:encodeURIComponent(U);return l({allowReserved:S,name:x,value:U})}).join(W);return r==="label"||r==="matrix"?W+R:R},l=({allowReserved:S,name:O,value:x})=>{if(x===void 0||x===null)return"";if(typeof x==="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${O}=${S?x:encodeURIComponent(x)}`},NS=({allowReserved:S,explode:O,name:x,style:r,value:P,valueOnly:W})=>{if(P instanceof Date)return W?P.toISOString():`${x}=${P.toISOString()}`;if(r!=="deepObject"&&!O){let B=[];Object.entries(P).forEach(([z,c])=>{B=[...B,z,S?c:encodeURIComponent(c)]});let T=B.join(",");switch(r){case"form":return`${x}=${T}`;case"label":return`.${T}`;case"matrix":return`;${x}=${T}`;default:return T}}let R=sB(r),U=Object.entries(P).map(([B,T])=>l({allowReserved:S,name:r==="deepObject"?`${x}[${B}]`:B,value:T})).join(R);return r==="label"||r==="matrix"?R+U:U};var pB=/\{[^{}]+\}/g,tB=({path:S,url:O})=>{let x=O,r=O.match(pB);if(r)for(let P of r){let W=!1,R=P.substring(1,P.length-1),U="simple";if(R.endsWith("*"))W=!0,R=R.substring(0,R.length-1);if(R.startsWith("."))R=R.substring(1),U="label";else if(R.startsWith(";"))R=R.substring(1),U="matrix";let B=S[R];if(B===void 0||B===null)continue;if(Array.isArray(B)){x=x.replace(P,WS({explode:W,name:R,style:U,value:B}));continue}if(typeof B==="object"){x=x.replace(P,NS({explode:W,name:R,style:U,value:B,valueOnly:!0}));continue}if(U==="matrix"){x=x.replace(P,`;${l({name:R,value:B})}`);continue}let T=encodeURIComponent(U==="label"?`.${B}`:B);x=x.replace(P,T)}return x},jz=({baseUrl:S,path:O,query:x,querySerializer:r,url:P})=>{let W=P.startsWith("/")?P:`/${P}`,R=(S??"")+W;if(O)R=tB({path:O,url:R});let U=x?r(x):"";if(U.startsWith("?"))U=U.substring(1);if(U)R+=`?${U}`;return R};var Pz=({allowReserved:S,array:O,object:x}={})=>{return(P)=>{let W=[];if(P&&typeof P==="object")for(let R in P){let U=P[R];if(U===void 0||U===null)continue;if(Array.isArray(U)){let B=WS({allowReserved:S,explode:!0,name:R,style:"form",value:U,...O});if(B)W.push(B)}else if(typeof U==="object"){let B=NS({allowReserved:S,explode:!0,name:R,style:"deepObject",value:U,...x});if(B)W.push(B)}else{let B=l({allowReserved:S,name:R,value:U});if(B)W.push(B)}}return W.join("&")}},Uz=(S)=>{if(!S)return"stream";let O=S.split(";")[0]?.trim();if(!O)return;if(O.startsWith("application/json")||O.endsWith("+json"))return"json";if(O==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((x)=>O.startsWith(x)))return"blob";if(O.startsWith("text/"))return"text";return},nB=(S,O)=>{if(!O)return!1;if(S.headers.has(O)||S.query?.[O]||S.headers.get("Cookie")?.includes(`${O}=`))return!0;return!1},Bz=async({security:S,...O})=>{for(let x of S){if(nB(O,x.name))continue;let r=await bz(x,O.auth);if(!r)continue;let P=x.name??"Authorization";switch(x.in){case"query":if(!O.query)O.query={};O.query[P]=r;break;case"cookie":O.headers.append("Cookie",`${P}=${r}`);break;case"header":default:O.headers.set(P,r);break}}},EO=(S)=>jz({baseUrl:S.baseUrl,path:S.path,query:S.query,querySerializer:typeof S.querySerializer==="function"?S.querySerializer:Pz(S.querySerializer),url:S.url}),IO=(S,O)=>{let x={...S,...O};if(x.baseUrl?.endsWith("/"))x.baseUrl=x.baseUrl.substring(0,x.baseUrl.length-1);return x.headers=TS(S.headers,O.headers),x},TS=(...S)=>{let O=new Headers;for(let x of S){if(!x||typeof x!=="object")continue;let r=x instanceof Headers?x.entries():Object.entries(x);for(let[P,W]of r)if(W===null)O.delete(P);else if(Array.isArray(W))for(let R of W)O.append(P,R);else if(W!==void 0)O.set(P,typeof W==="object"?JSON.stringify(W):W)}return O};class QS{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(S){if(typeof S==="number")return this._fns[S]?S:-1;else return this._fns.indexOf(S)}exists(S){let O=this.getInterceptorIndex(S);return!!this._fns[O]}eject(S){let O=this.getInterceptorIndex(S);if(this._fns[O])this._fns[O]=null}update(S,O){let x=this.getInterceptorIndex(S);if(this._fns[x])return this._fns[x]=O,S;else return!1}use(S){return this._fns=[...this._fns,S],this._fns.length-1}}var Rz=()=>({error:new QS,request:new QS,response:new QS}),iB=Pz({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),oB={"Content-Type":"application/json"},SS=(S={})=>({...HO,headers:oB,parseAs:"auto",querySerializer:iB,...S});var DO=(S={})=>{let O=IO(SS(),S),x=()=>({...O}),r=(T)=>{return O=IO(O,T),x()},P=Rz(),W=async(T)=>{let z={...O,...T,fetch:T.fetch??O.fetch??globalThis.fetch,headers:TS(O.headers,T.headers),serializedBody:void 0};if(z.security)await Bz({...z,security:z.security});if(z.requestValidator)await z.requestValidator(z);if(z.body&&z.bodySerializer)z.serializedBody=z.bodySerializer(z.body);if(z.serializedBody===void 0||z.serializedBody==="")z.headers.delete("Content-Type");let c=EO(z);return{opts:z,url:c}},R=async(T)=>{let{opts:z,url:c}=await W(T),K={redirect:"follow",...z,body:z.serializedBody},G=new Request(c,K);for(let J of P.request._fns)if(J)G=await J(G,z);let I=z.fetch,Q=await I(G);for(let J of P.response._fns)if(J)Q=await J(Q,G,z);let V={request:G,response:Q};if(Q.ok){let J=(z.parseAs==="auto"?Uz(Q.headers.get("Content-Type")):z.parseAs)??"json";if(Q.status===204||Q.headers.get("Content-Length")==="0"){let Z;switch(J){case"arrayBuffer":case"blob":case"text":Z=await Q[J]();break;case"formData":Z=new FormData;break;case"stream":Z=Q.body;break;case"json":default:Z={};break}return z.responseStyle==="data"?Z:{data:Z,...V}}let X;switch(J){case"arrayBuffer":case"blob":case"formData":case"json":case"text":X=await Q[J]();break;case"stream":return z.responseStyle==="data"?Q.body:{data:Q.body,...V}}if(J==="json"){if(z.responseValidator)await z.responseValidator(X);if(z.responseTransformer)X=await z.responseTransformer(X)}return z.responseStyle==="data"?X:{data:X,...V}}let f=await Q.text(),H;try{H=JSON.parse(f)}catch{}let L=H??f,w=L;for(let J of P.error._fns)if(J)w=await J(L,Q,G,z);if(w=w||{},z.throwOnError)throw w;return z.responseStyle==="data"?void 0:{error:w,...V}},U=(T)=>(z)=>R({...z,method:T}),B=(T)=>async(z)=>{let{opts:c,url:K}=await W(z);return $z({...c,body:c.body,headers:c.headers,method:T,onRequest:async(G,I)=>{let Q=new Request(G,I);for(let V of P.request._fns)if(V)Q=await V(Q,c);return Q},url:K})};return{buildUrl:EO,connect:U("CONNECT"),delete:U("DELETE"),get:U("GET"),getConfig:x,head:U("HEAD"),interceptors:P,options:U("OPTIONS"),patch:U("PATCH"),post:U("POST"),put:U("PUT"),request:R,setConfig:r,sse:{connect:B("CONNECT"),delete:B("DELETE"),get:B("GET"),head:B("HEAD"),options:B("OPTIONS"),patch:B("PATCH"),post:B("POST"),put:B("PUT"),trace:B("TRACE")},trace:U("TRACE")}};var $=DO(SS());var SR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/alttitle",...S})},OR=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/alttitle/{id}",...S})},xR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...S})},rR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...S})},zR=(S)=>{return(S?.client??$).post({...KO,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...S,headers:{"Content-Type":null,...S?.headers}})},$R=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...S})},bR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...S})},jR=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging",...S,headers:{"Content-Type":"application/json",...S?.headers}})},PR=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...S})},UR=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...S})},BR=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},RR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/autotagging/schema",...S})},WR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup",...S})},NR=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/{id}",...S})},QR=(S)=>{return(S.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/restore/{id}",...S})},TR=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/backup/restore/upload",...S})},cR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist",...S})},JR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/movie",...S})},VR=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/{id}",...S})},XR=(S)=>{return(S?.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/blocklist/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},MO=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/calendar",...S})},FO=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v3/calendar/radarr.ics",...S})},gR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection",...S})},wR=(S)=>{return(S?.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection",...S,headers:{"Content-Type":"application/json",...S?.headers}})},ZR=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection/{id}",...S})},GR=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/collection/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},mO=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...S})},qO=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command",...S,headers:{"Content-Type":"application/json",...S?.headers}})},fR=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...S})},LR=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/command/{id}",...S})},YR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/credit",...S})},KR=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/credit/{id}",...S})},HR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...S})},ER=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter",...S,headers:{"Content-Type":"application/json",...S?.headers}})},IR=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...S})},DR=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...S})},MR=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customfilter/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},kO=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...S})},uO=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat",...S,headers:{"Content-Type":"application/json",...S?.headers}})},vO=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...S})},dO=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...S})},aO=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},yO=(S)=>{return(S?.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},AO=(S)=>{return(S?.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},_O=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/customformat/schema",...S})},FR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/cutoff",...S})},mR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...S})},qR=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},kR=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...S})},uR=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...S})},vR=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},dR=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/delayprofile/reorder/{id}",...S})},aR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/diskspace",...S})},CO=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...S})},hO=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient",...S,headers:{"Content-Type":"application/json",...S?.headers}})},lO=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...S})},eO=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...S})},sO=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},pO=(S)=>{return(S?.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},tO=(S)=>{return(S?.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},nO=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/schema",...S})},iO=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},oO=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/testall",...S})},yR=(S)=>{return(S.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/downloadclient/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},AR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient",...S})},_R=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient/{id}",...S})},CR=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/downloadclient/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},hR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/extrafile",...S})},Sx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem",...S})},lR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/type",...S})},Ox=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/filesystem/mediafiles",...S})},xx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/health",...S})},rx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history",...S})},zx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/since",...S})},$x=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/movie",...S})},bx=(S)=>{return(S.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/history/failed/{id}",...S})},eR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host",...S})},sR=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host/{id}",...S})},pR=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/host/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},jx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...S})},Px=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Ux=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...S})},Bx=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...S})},Rx=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},tR=(S)=>{return(S?.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},nR=(S)=>{return(S?.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Wx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/schema",...S})},Nx=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Qx=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/testall",...S})},iR=(S)=>{return(S.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},oR=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist",...S})},S1=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist/{id}",...S})},O1=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/importlist/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},x1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions",...S})},r1=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions",...S,headers:{"Content-Type":"application/json",...S?.headers}})},z1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/paged",...S})},$1=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/{id}",...S})},b1=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/{id}",...S})},j1=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},P1=(S)=>{return(S?.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},U1=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/exclusions/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},B1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/movie",...S})},R1=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/importlist/movie",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Tx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...S})},cx=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Jx=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...S})},Vx=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...S})},Xx=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},W1=(S)=>{return(S?.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},N1=(S)=>{return(S?.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},gx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/schema",...S})},wx=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Zx=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/testall",...S})},Q1=(S)=>{return(S.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexer/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},T1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer",...S})},c1=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer/{id}",...S})},J1=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/indexer/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},V1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/indexerflag",...S})},X1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language",...S})},g1=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/language/{id}",...S})},w1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization",...S})},Z1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/localization/language",...S})},G1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log",...S})},f1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file",...S})},L1=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/{filename}",...S})},Y1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...S})},K1=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/manualimport",...S,headers:{"Content-Type":"application/json",...S?.headers}})},H1=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/mediacover/{movieId}/{filename}",...S})},E1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement",...S})},I1=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement/{id}",...S})},D1=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/mediamanagement/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},M1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...S})},F1=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata",...S,headers:{"Content-Type":"application/json",...S?.headers}})},m1=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...S})},q1=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...S})},k1=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},u1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/schema",...S})},v1=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},d1=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/testall",...S})},a1=(S)=>{return(S.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/metadata/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},y1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/metadata",...S})},A1=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/metadata/{id}",...S})},_1=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/metadata/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},C1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/wanted/missing",...S})},Gx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie",...S})},fx=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Lx=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}",...S})},Yx=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}",...S})},Kx=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},h1=(S)=>{return(S?.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/editor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},l1=(S)=>{return(S?.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/editor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},e1=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile",...S})},s1=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/{id}",...S})},p1=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/{id}",...S})},t1=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},n1=(S)=>{return(S?.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/editor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},i1=(S)=>{return(S?.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},o1=(S)=>{return(S?.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/moviefile/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},SW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/{id}/folder",...S})},Hx=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/import",...S,headers:{"Content-Type":"application/json",...S?.headers}})},OW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/lookup/tmdb",...S})},xW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/lookup/imdb",...S})},Ex=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/movie/lookup",...S})},rW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming",...S})},zW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/{id}",...S})},$W=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},bW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/naming/examples",...S})},Ix=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...S})},Dx=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Mx=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...S})},Fx=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...S})},mx=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},qx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/schema",...S})},kx=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},ux=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/testall",...S})},jW=(S)=>{return(S.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/notification/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},PW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/parse",...S})},UW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...S})},BW=(S)=>{return(S?.client??$).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...S})},RW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...S})},WW=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},NW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition",...S})},QW=(S)=>{return(S?.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/update",...S,headers:{"Content-Type":"application/json",...S?.headers}})},TW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualitydefinition/limits",...S})},vx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...S})},dx=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},ax=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...S})},yx=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...S})},Ax=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},_x=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/qualityprofile/schema",...S})},Cx=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/{id}",...S})},hx=(S)=>{return(S?.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},lx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue",...S})},ex=(S)=>{return(S.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/grab/{id}",...S})},sx=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/grab/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},px=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/details",...S})},tx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/queue/status",...S})},cW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release",...S})},JW=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release",...S,headers:{"Content-Type":"application/json",...S?.headers}})},VW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile",...S})},XW=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},gW=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...S})},wW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...S})},ZW=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/releaseprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},GW=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/release/push",...S,headers:{"Content-Type":"application/json",...S?.headers}})},fW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...S})},LW=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping",...S,headers:{"Content-Type":"application/json",...S?.headers}})},YW=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...S})},KW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...S})},HW=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/remotepathmapping/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},EW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rename",...S})},nx=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...S})},ix=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder",...S,headers:{"Content-Type":"application/json",...S?.headers}})},ox=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...S})},IW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/rootfolder/{id}",...S})},DW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...S})},MW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...S})},FW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...S})},Sr=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/status",...S})},mW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes",...S})},qW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/routes/duplicate",...S})},kW=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/shutdown",...S})},uW=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/restart",...S})},vW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...S})},dW=(S)=>{return(S?.client??$).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag",...S,headers:{"Content-Type":"application/json",...S?.headers}})},aW=(S)=>{return(S.client??$).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...S})},yW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...S})},AW=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},_W=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail",...S})},CW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/tag/detail/{id}",...S})},hW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task",...S})},lW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/system/task/{id}",...S})},eW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui/{id}",...S})},sW=(S)=>{return(S.client??$).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},pW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/config/ui",...S})},tW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/update",...S})},nW=(S)=>{return(S?.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/update",...S})},iW=(S)=>{return(S.client??$).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v3/log/file/update/{filename}",...S})};class Wz{clientConfig;constructor(S){this.clientConfig=F(S)}async getSystemStatus(){return Sr()}async getHealth(){return xx()}async getMovies(){return Gx()}async getMovie(S){return Yx({path:{id:S}})}async addMovie(S){return fx({body:S})}async updateMovie(S,O){return Kx({path:{id:String(S)},body:O})}async deleteMovie(S){return Lx({path:{id:S}})}async searchMovies(S){return Ex({query:{term:S}})}async runCommand(S){return qO({body:S})}async getCommands(){return mO()}async getRootFolders(){return nx()}async addRootFolder(S){return ix({body:{path:S}})}async deleteRootFolder(S){return ox({path:{id:S}})}async getFilesystem(S){return Sx(S?{query:{path:S}}:{})}async getMediaFiles(S){return Ox({query:{path:S}})}async importMovies(S){return Hx({body:S})}async getQualityProfiles(){return vx()}async getQualityProfile(S){return yx({path:{id:S}})}async addQualityProfile(S){return dx({body:S})}async updateQualityProfile(S,O){return Ax({path:{id:String(S)},body:O})}async deleteQualityProfile(S){return ax({path:{id:S}})}async getQualityProfileSchema(){return _x()}async getCustomFormats(){return kO()}async getCustomFormat(S){return dO({path:{id:S}})}async addCustomFormat(S){return uO({body:S})}async updateCustomFormat(S,O){return aO({path:{id:String(S)},body:O})}async deleteCustomFormat(S){return vO({path:{id:S}})}async updateCustomFormatsBulk(S){return AO({body:S})}async deleteCustomFormatsBulk(S){return yO({body:{ids:S}})}async getCustomFormatSchema(){return _O()}async getDownloadClients(){return CO()}async getDownloadClient(S){return eO({path:{id:S}})}async addDownloadClient(S){return hO({body:S})}async updateDownloadClient(S,O){return sO({path:{id:S},body:O})}async deleteDownloadClient(S){return lO({path:{id:S}})}async updateDownloadClientsBulk(S){return tO({body:S})}async deleteDownloadClientsBulk(S){return pO({body:{ids:S}})}async getDownloadClientSchema(){return nO()}async testDownloadClient(S){return iO({body:S})}async testAllDownloadClients(){return oO()}async getNotifications(){return Ix()}async getNotification(S){return Fx({path:{id:S}})}async addNotification(S){return Dx({body:S})}async updateNotification(S,O){return mx({path:{id:S},body:O})}async deleteNotification(S){return Mx({path:{id:S}})}async getNotificationSchema(){return qx()}async testNotification(S){return kx({body:S})}async testAllNotifications(){return ux()}async getCalendar(S,O,x){let r={};if(S)r.start=S;if(O)r.end=O;if(x!==void 0)r.unmonitored=x;return MO(Object.keys(r).length>0?{query:r}:{})}async getCalendarFeed(S,O,x){let r={};if(S!==void 0)r.pastDays=S;if(O!==void 0)r.futureDays=O;if(x)r.tags=x;return FO(Object.keys(r).length>0?{query:r}:{})}async getQueue(S,O,x,r,P){let W={};if(S!==void 0)W.page=S;if(O!==void 0)W.pageSize=O;if(x)W.sortKey=x;if(r)W.sortDirection=r;if(P!==void 0)W.includeUnknownMovieItems=P;return lx(Object.keys(W).length>0?{query:W}:{})}async removeQueueItem(S,O,x){let r={};if(O!==void 0)r.removeFromClient=O;if(x!==void 0)r.blocklist=x;return Cx({path:{id:S},...Object.keys(r).length>0?{query:r}:{}})}async removeQueueItemsBulk(S,O,x){let r={ids:S};if(O!==void 0)r.removeFromClient=O;if(x!==void 0)r.blocklist=x;return hx({body:r})}async grabQueueItem(S){return ex({path:{id:S}})}async grabQueueItemsBulk(S){return sx({body:{ids:S}})}async getQueueDetails(S,O){let x={};if(S!==void 0)x.movieId=S;if(O!==void 0)x.includeMovie=O;return px(Object.keys(x).length>0?{query:x}:{})}async getQueueStatus(){return tx()}async getImportLists(){return jx()}async getImportList(S){return Bx({path:{id:S}})}async addImportList(S){return Px({body:S})}async updateImportList(S,O){return Rx({path:{id:S},body:O})}async deleteImportList(S){return Ux({path:{id:S}})}async getImportListSchema(){return Wx()}async testImportList(S){return Nx({body:S})}async testAllImportLists(){return Qx()}async getIndexers(){return Tx()}async getIndexer(S){return Vx({path:{id:S}})}async addIndexer(S){return cx({body:S})}async updateIndexer(S,O){return Xx({path:{id:S},body:O})}async deleteIndexer(S){return Jx({path:{id:S}})}async getIndexerSchema(){return gx()}async testIndexer(S){return wx({body:S})}async testAllIndexers(){return Zx()}async getHistory(S,O,x,r,P){let W={};if(S!==void 0)W.page=S;if(O!==void 0)W.pageSize=O;if(x)W.sortKey=x;if(r)W.sortDirection=r;if(P!==void 0)W.movieId=P;return rx(Object.keys(W).length>0?{query:W}:{})}async getHistorySince(S,O){let x={date:S};if(O!==void 0)x.movieId=O;return zx({query:x})}async getMovieHistory(S,O){let x={movieId:S};if(O!==void 0)x.eventType=O;return $x({query:x})}async markHistoryItemFailed(S){return bx({path:{id:S}})}updateConfig(S){let O={...this.clientConfig.config,...S};return this.clientConfig=F(O),this.clientConfig.config}}var wr={};p(wr,{putApiV1TagById:()=>Sc,putApiV1RootfolderById:()=>a0,putApiV1RemotepathmappingById:()=>q0,putApiV1ReleaseprofileById:()=>E0,putApiV1QualityprofileById:()=>Q0,putApiV1QualitydefinitionUpdate:()=>U0,putApiV1QualitydefinitionById:()=>j0,putApiV1NotificationById:()=>iT,putApiV1MetadataprofileById:()=>uT,putApiV1MetadataById:()=>HT,putApiV1IndexerById:()=>ST,putApiV1IndexerBulk:()=>xT,putApiV1ImportlistexclusionById:()=>pQ,putApiV1ImportlistById:()=>vQ,putApiV1ImportlistBulk:()=>aQ,putApiV1DownloadclientById:()=>NQ,putApiV1DownloadclientBulk:()=>TQ,putApiV1DelayprofileReorderById:()=>zQ,putApiV1DelayprofileById:()=>rQ,putApiV1CustomformatById:()=>pN,putApiV1CustomfilterById:()=>CN,putApiV1ConfigUiById:()=>bc,putApiV1ConfigNamingById:()=>lT,putApiV1ConfigMetadataproviderById:()=>yT,putApiV1ConfigMediamanagementById:()=>GT,putApiV1ConfigIndexerById:()=>UT,putApiV1ConfigHostById:()=>FQ,putApiV1ConfigDownloadclientById:()=>ZQ,putApiV1ConfigDevelopmentById:()=>jQ,putApiV1BookfileEditor:()=>DN,putApiV1BookfileById:()=>IN,putApiV1BookMonitor:()=>fN,putApiV1BookEditor:()=>YN,putApiV1BookById:()=>GN,putApiV1AuthorEditor:()=>WN,putApiV1AuthorById:()=>Rr,postLogin:()=>UN,postApiV1Tag:()=>n0,postApiV1SystemShutdown:()=>s0,postApiV1SystemRestart:()=>p0,postApiV1SystemBackupRestoreUpload:()=>cN,postApiV1SystemBackupRestoreById:()=>TN,postApiV1Rootfolder:()=>Xr,postApiV1Remotepathmapping:()=>M0,postApiV1Releaseprofile:()=>Y0,postApiV1ReleasePush:()=>I0,postApiV1Release:()=>f0,postApiV1QueueGrabById:()=>X0,postApiV1QueueGrabBulk:()=>g0,postApiV1Qualityprofile:()=>R0,postApiV1NotificationTestall:()=>O0,postApiV1NotificationTest:()=>S0,postApiV1NotificationActionByName:()=>x0,postApiV1Notification:()=>pT,postApiV1Metadataprofile:()=>mT,postApiV1MetadataTestall:()=>DT,postApiV1MetadataTest:()=>IT,postApiV1MetadataActionByName:()=>MT,postApiV1Metadata:()=>LT,postApiV1Manualimport:()=>VT,postApiV1IndexerTestall:()=>$T,postApiV1IndexerTest:()=>zT,postApiV1IndexerActionByName:()=>bT,postApiV1Indexer:()=>nQ,postApiV1Importlistexclusion:()=>lQ,postApiV1ImportlistTestall:()=>_Q,postApiV1ImportlistTest:()=>AQ,postApiV1ImportlistActionByName:()=>CQ,postApiV1Importlist:()=>qQ,postApiV1HistoryFailedById:()=>IQ,postApiV1DownloadclientTestall:()=>VQ,postApiV1DownloadclientTest:()=>JQ,postApiV1DownloadclientActionByName:()=>XQ,postApiV1Downloadclient:()=>BQ,postApiV1Delayprofile:()=>SQ,postApiV1Customformat:()=>lN,postApiV1Customfilter:()=>yN,postApiV1Command:()=>cr,postApiV1Bookshelf:()=>mN,postApiV1Book:()=>gN,postApiV1Author:()=>Pr,headPing:()=>$0,getPing:()=>z0,getLogout:()=>BN,getLogin:()=>PN,getFeedV1CalendarReadarrIcs:()=>uN,getContentByPath:()=>_0,getByPath:()=>h0,getApiV1WantedMissingById:()=>_T,getApiV1WantedMissing:()=>AT,getApiV1WantedCutoffById:()=>iN,getApiV1WantedCutoff:()=>nN,getApiV1Update:()=>Pc,getApiV1TagDetailById:()=>xc,getApiV1TagDetail:()=>Oc,getApiV1TagById:()=>o0,getApiV1Tag:()=>t0,getApiV1SystemTaskById:()=>zc,getApiV1SystemTask:()=>rc,getApiV1SystemStatus:()=>gr,getApiV1SystemRoutesDuplicate:()=>e0,getApiV1SystemRoutes:()=>l0,getApiV1SystemBackup:()=>NN,getApiV1Series:()=>A0,getApiV1Search:()=>y0,getApiV1RootfolderById:()=>d0,getApiV1Rootfolder:()=>Vr,getApiV1Retag:()=>u0,getApiV1Rename:()=>k0,getApiV1RemotepathmappingById:()=>m0,getApiV1Remotepathmapping:()=>D0,getApiV1ReleaseprofileById:()=>H0,getApiV1Releaseprofile:()=>L0,getApiV1Release:()=>G0,getApiV1QueueStatus:()=>Z0,getApiV1QueueDetails:()=>w0,getApiV1Queue:()=>V0,getApiV1QualityprofileSchema:()=>T0,getApiV1QualityprofileById:()=>N0,getApiV1Qualityprofile:()=>B0,getApiV1QualitydefinitionById:()=>b0,getApiV1Qualitydefinition:()=>P0,getApiV1Parse:()=>r0,getApiV1NotificationSchema:()=>oT,getApiV1NotificationById:()=>nT,getApiV1Notification:()=>sT,getApiV1MetadataprofileSchema:()=>vT,getApiV1MetadataprofileById:()=>kT,getApiV1Metadataprofile:()=>FT,getApiV1MetadataSchema:()=>ET,getApiV1MetadataById:()=>KT,getApiV1Metadata:()=>fT,getApiV1MediacoverBookByBookIdByFilename:()=>gT,getApiV1MediacoverAuthorByAuthorIdByFilename:()=>XT,getApiV1Manualimport:()=>JT,getApiV1LogFileUpdateByFilename:()=>Bc,getApiV1LogFileUpdate:()=>Uc,getApiV1LogFileByFilename:()=>cT,getApiV1LogFile:()=>TT,getApiV1Log:()=>QT,getApiV1Localization:()=>NT,getApiV1LanguageById:()=>WT,getApiV1Language:()=>RT,getApiV1Indexerflag:()=>BT,getApiV1IndexerSchema:()=>rT,getApiV1IndexerById:()=>oQ,getApiV1Indexer:()=>tQ,getApiV1ImportlistexclusionById:()=>sQ,getApiV1Importlistexclusion:()=>hQ,getApiV1ImportlistSchema:()=>yQ,getApiV1ImportlistById:()=>uQ,getApiV1Importlist:()=>mQ,getApiV1HistorySince:()=>HQ,getApiV1HistoryAuthor:()=>EQ,getApiV1History:()=>KQ,getApiV1Health:()=>Jr,getApiV1FilesystemType:()=>LQ,getApiV1FilesystemMediafiles:()=>YQ,getApiV1Filesystem:()=>fQ,getApiV1Edition:()=>GQ,getApiV1DownloadclientSchema:()=>cQ,getApiV1DownloadclientById:()=>WQ,getApiV1Downloadclient:()=>UQ,getApiV1Diskspace:()=>PQ,getApiV1DelayprofileById:()=>xQ,getApiV1Delayprofile:()=>oN,getApiV1CustomformatSchema:()=>tN,getApiV1CustomformatById:()=>sN,getApiV1Customformat:()=>hN,getApiV1CustomfilterById:()=>_N,getApiV1Customfilter:()=>aN,getApiV1ConfigUiById:()=>$c,getApiV1ConfigUi:()=>jc,getApiV1ConfigNamingExamples:()=>eT,getApiV1ConfigNamingById:()=>hT,getApiV1ConfigNaming:()=>CT,getApiV1ConfigMetadataproviderById:()=>aT,getApiV1ConfigMetadataprovider:()=>dT,getApiV1ConfigMediamanagementById:()=>ZT,getApiV1ConfigMediamanagement:()=>wT,getApiV1ConfigIndexerById:()=>PT,getApiV1ConfigIndexer:()=>jT,getApiV1ConfigHostById:()=>MQ,getApiV1ConfigHost:()=>DQ,getApiV1ConfigDownloadclientById:()=>wQ,getApiV1ConfigDownloadclient:()=>gQ,getApiV1ConfigDevelopmentById:()=>bQ,getApiV1ConfigDevelopment:()=>$Q,getApiV1CommandById:()=>dN,getApiV1Command:()=>Tr,getApiV1CalendarById:()=>kN,getApiV1Calendar:()=>qN,getApiV1BookfileById:()=>EN,getApiV1Bookfile:()=>KN,getApiV1BookLookup:()=>FN,getApiV1BookByIdOverview:()=>wN,getApiV1BookById:()=>Qr,getApiV1Book:()=>Nr,getApiV1Blocklist:()=>JN,getApiV1AuthorLookup:()=>Wr,getApiV1AuthorById:()=>Br,getApiV1Author:()=>jr,getApi:()=>jN,get:()=>C0,deleteApiV1TagById:()=>i0,deleteApiV1SystemBackupById:()=>QN,deleteApiV1RootfolderById:()=>v0,deleteApiV1RemotepathmappingById:()=>F0,deleteApiV1ReleaseprofileById:()=>K0,deleteApiV1QueueById:()=>c0,deleteApiV1QueueBulk:()=>J0,deleteApiV1QualityprofileById:()=>W0,deleteApiV1NotificationById:()=>tT,deleteApiV1MetadataprofileById:()=>qT,deleteApiV1MetadataById:()=>YT,deleteApiV1IndexerById:()=>iQ,deleteApiV1IndexerBulk:()=>OT,deleteApiV1ImportlistexclusionById:()=>eQ,deleteApiV1ImportlistById:()=>kQ,deleteApiV1ImportlistBulk:()=>dQ,deleteApiV1DownloadclientById:()=>RQ,deleteApiV1DownloadclientBulk:()=>QQ,deleteApiV1DelayprofileById:()=>OQ,deleteApiV1CustomformatById:()=>eN,deleteApiV1CustomfilterById:()=>AN,deleteApiV1CommandById:()=>vN,deleteApiV1BookfileById:()=>HN,deleteApiV1BookfileBulk:()=>MN,deleteApiV1BookEditor:()=>LN,deleteApiV1BookById:()=>ZN,deleteApiV1BlocklistById:()=>VN,deleteApiV1BlocklistBulk:()=>XN,deleteApiV1AuthorEditor:()=>RN,deleteApiV1AuthorById:()=>Ur});var Nz=(S,O,x)=>{if(typeof x==="string"||x instanceof Blob)S.append(O,x);else if(x instanceof Date)S.append(O,x.toISOString());else S.append(O,JSON.stringify(x))};var xr={bodySerializer:(S)=>{let O=new FormData;return Object.entries(S).forEach(([x,r])=>{if(r===void 0||r===null)return;if(Array.isArray(r))r.forEach((P)=>Nz(O,x,P));else Nz(O,x,r)}),O}},rr={bodySerializer:(S)=>JSON.stringify(S,(O,x)=>typeof x==="bigint"?x.toString():x)};var Qz=({onRequest:S,onSseError:O,onSseEvent:x,responseTransformer:r,responseValidator:P,sseDefaultRetryDelay:W,sseMaxRetryAttempts:R,sseMaxRetryDelay:U,sseSleepFn:B,url:T,...z})=>{let c,K=B??((Q)=>new Promise((V)=>setTimeout(V,Q)));return{stream:async function*(){let Q=W??3000,V=0,f=z.signal??new AbortController().signal;while(!0){if(f.aborted)break;V++;let H=z.headers instanceof Headers?z.headers:new Headers(z.headers);if(c!==void 0)H.set("Last-Event-ID",c);try{let L={redirect:"follow",...z,body:z.serializedBody,headers:H,signal:f},w=new Request(T,L);if(S)w=await S(T,L);let X=await(z.fetch??globalThis.fetch)(w);if(!X.ok)throw new Error(`SSE failed: ${X.status} ${X.statusText}`);if(!X.body)throw new Error("No body in SSE response");let Z=X.body.pipeThrough(new TextDecoderStream).getReader(),M="",m=()=>{try{Z.cancel()}catch{}};f.addEventListener("abort",m);try{while(!0){let{done:a,value:y}=await Z.read();if(a)break;M+=y;let q=M.split(`
14
+
15
+ `);M=q.pop()??"";for(let A of q){let _=A.split(`
16
+ `),D=[],k;for(let g of _)if(g.startsWith("data:"))D.push(g.replace(/^data:\s*/,""));else if(g.startsWith("event:"))k=g.replace(/^event:\s*/,"");else if(g.startsWith("id:"))c=g.replace(/^id:\s*/,"");else if(g.startsWith("retry:")){let v=Number.parseInt(g.replace(/^retry:\s*/,""),10);if(!Number.isNaN(v))Q=v}let Y,u=!1;if(D.length){let g=D.join(`
17
+ `);try{Y=JSON.parse(g),u=!0}catch{Y=g}}if(u){if(P)await P(Y);if(r)Y=await r(Y)}if(x?.({data:Y,event:k,id:c,retry:Q}),D.length)yield Y}}}finally{f.removeEventListener("abort",m),Z.releaseLock()}break}catch(L){if(O?.(L),R!==void 0&&V>=R)break;let w=Math.min(Q*2**(V-1),U??30000);await K(w)}}}()}};var Tz=async(S,O)=>{let x=typeof O==="function"?await O(S):O;if(!x)return;if(S.scheme==="bearer")return`Bearer ${x}`;if(S.scheme==="basic")return`Basic ${btoa(x)}`;return x};var oW=(S)=>{switch(S){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},SN=(S)=>{switch(S){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ON=(S)=>{switch(S){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},cS=({allowReserved:S,explode:O,name:x,style:r,value:P})=>{if(!O){let U=(S?P:P.map((B)=>encodeURIComponent(B))).join(SN(r));switch(r){case"label":return`.${U}`;case"matrix":return`;${x}=${U}`;case"simple":return U;default:return`${x}=${U}`}}let W=oW(r),R=P.map((U)=>{if(r==="label"||r==="simple")return S?U:encodeURIComponent(U);return e({allowReserved:S,name:x,value:U})}).join(W);return r==="label"||r==="matrix"?W+R:R},e=({allowReserved:S,name:O,value:x})=>{if(x===void 0||x===null)return"";if(typeof x==="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${O}=${S?x:encodeURIComponent(x)}`},JS=({allowReserved:S,explode:O,name:x,style:r,value:P,valueOnly:W})=>{if(P instanceof Date)return W?P.toISOString():`${x}=${P.toISOString()}`;if(r!=="deepObject"&&!O){let B=[];Object.entries(P).forEach(([z,c])=>{B=[...B,z,S?c:encodeURIComponent(c)]});let T=B.join(",");switch(r){case"form":return`${x}=${T}`;case"label":return`.${T}`;case"matrix":return`;${x}=${T}`;default:return T}}let R=ON(r),U=Object.entries(P).map(([B,T])=>e({allowReserved:S,name:r==="deepObject"?`${x}[${B}]`:B,value:T})).join(R);return r==="label"||r==="matrix"?R+U:U};var xN=/\{[^{}]+\}/g,rN=({path:S,url:O})=>{let x=O,r=O.match(xN);if(r)for(let P of r){let W=!1,R=P.substring(1,P.length-1),U="simple";if(R.endsWith("*"))W=!0,R=R.substring(0,R.length-1);if(R.startsWith("."))R=R.substring(1),U="label";else if(R.startsWith(";"))R=R.substring(1),U="matrix";let B=S[R];if(B===void 0||B===null)continue;if(Array.isArray(B)){x=x.replace(P,cS({explode:W,name:R,style:U,value:B}));continue}if(typeof B==="object"){x=x.replace(P,JS({explode:W,name:R,style:U,value:B,valueOnly:!0}));continue}if(U==="matrix"){x=x.replace(P,`;${e({name:R,value:B})}`);continue}let T=encodeURIComponent(U==="label"?`.${B}`:B);x=x.replace(P,T)}return x},cz=({baseUrl:S,path:O,query:x,querySerializer:r,url:P})=>{let W=P.startsWith("/")?P:`/${P}`,R=(S??"")+W;if(O)R=rN({path:O,url:R});let U=x?r(x):"";if(U.startsWith("?"))U=U.substring(1);if(U)R+=`?${U}`;return R};var Jz=({allowReserved:S,array:O,object:x}={})=>{return(P)=>{let W=[];if(P&&typeof P==="object")for(let R in P){let U=P[R];if(U===void 0||U===null)continue;if(Array.isArray(U)){let B=cS({allowReserved:S,explode:!0,name:R,style:"form",value:U,...O});if(B)W.push(B)}else if(typeof U==="object"){let B=JS({allowReserved:S,explode:!0,name:R,style:"deepObject",value:U,...x});if(B)W.push(B)}else{let B=e({allowReserved:S,name:R,value:U});if(B)W.push(B)}}return W.join("&")}},Vz=(S)=>{if(!S)return"stream";let O=S.split(";")[0]?.trim();if(!O)return;if(O.startsWith("application/json")||O.endsWith("+json"))return"json";if(O==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((x)=>O.startsWith(x)))return"blob";if(O.startsWith("text/"))return"text";return},zN=(S,O)=>{if(!O)return!1;if(S.headers.has(O)||S.query?.[O]||S.headers.get("Cookie")?.includes(`${O}=`))return!0;return!1},Xz=async({security:S,...O})=>{for(let x of S){if(zN(O,x.name))continue;let r=await Tz(x,O.auth);if(!r)continue;let P=x.name??"Authorization";switch(x.in){case"query":if(!O.query)O.query={};O.query[P]=r;break;case"cookie":O.headers.append("Cookie",`${P}=${r}`);break;case"header":default:O.headers.set(P,r);break}}},zr=(S)=>cz({baseUrl:S.baseUrl,path:S.path,query:S.query,querySerializer:typeof S.querySerializer==="function"?S.querySerializer:Jz(S.querySerializer),url:S.url}),$r=(S,O)=>{let x={...S,...O};if(x.baseUrl?.endsWith("/"))x.baseUrl=x.baseUrl.substring(0,x.baseUrl.length-1);return x.headers=XS(S.headers,O.headers),x},XS=(...S)=>{let O=new Headers;for(let x of S){if(!x||typeof x!=="object")continue;let r=x instanceof Headers?x.entries():Object.entries(x);for(let[P,W]of r)if(W===null)O.delete(P);else if(Array.isArray(W))for(let R of W)O.append(P,R);else if(W!==void 0)O.set(P,typeof W==="object"?JSON.stringify(W):W)}return O};class VS{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(S){if(typeof S==="number")return this._fns[S]?S:-1;else return this._fns.indexOf(S)}exists(S){let O=this.getInterceptorIndex(S);return!!this._fns[O]}eject(S){let O=this.getInterceptorIndex(S);if(this._fns[O])this._fns[O]=null}update(S,O){let x=this.getInterceptorIndex(S);if(this._fns[x])return this._fns[x]=O,S;else return!1}use(S){return this._fns=[...this._fns,S],this._fns.length-1}}var gz=()=>({error:new VS,request:new VS,response:new VS}),$N=Jz({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),bN={"Content-Type":"application/json"},OS=(S={})=>({...rr,headers:bN,parseAs:"auto",querySerializer:$N,...S});var br=(S={})=>{let O=$r(OS(),S),x=()=>({...O}),r=(T)=>{return O=$r(O,T),x()},P=gz(),W=async(T)=>{let z={...O,...T,fetch:T.fetch??O.fetch??globalThis.fetch,headers:XS(O.headers,T.headers),serializedBody:void 0};if(z.security)await Xz({...z,security:z.security});if(z.requestValidator)await z.requestValidator(z);if(z.body&&z.bodySerializer)z.serializedBody=z.bodySerializer(z.body);if(z.serializedBody===void 0||z.serializedBody==="")z.headers.delete("Content-Type");let c=zr(z);return{opts:z,url:c}},R=async(T)=>{let{opts:z,url:c}=await W(T),K={redirect:"follow",...z,body:z.serializedBody},G=new Request(c,K);for(let J of P.request._fns)if(J)G=await J(G,z);let I=z.fetch,Q=await I(G);for(let J of P.response._fns)if(J)Q=await J(Q,G,z);let V={request:G,response:Q};if(Q.ok){let J=(z.parseAs==="auto"?Vz(Q.headers.get("Content-Type")):z.parseAs)??"json";if(Q.status===204||Q.headers.get("Content-Length")==="0"){let Z;switch(J){case"arrayBuffer":case"blob":case"text":Z=await Q[J]();break;case"formData":Z=new FormData;break;case"stream":Z=Q.body;break;case"json":default:Z={};break}return z.responseStyle==="data"?Z:{data:Z,...V}}let X;switch(J){case"arrayBuffer":case"blob":case"formData":case"json":case"text":X=await Q[J]();break;case"stream":return z.responseStyle==="data"?Q.body:{data:Q.body,...V}}if(J==="json"){if(z.responseValidator)await z.responseValidator(X);if(z.responseTransformer)X=await z.responseTransformer(X)}return z.responseStyle==="data"?X:{data:X,...V}}let f=await Q.text(),H;try{H=JSON.parse(f)}catch{}let L=H??f,w=L;for(let J of P.error._fns)if(J)w=await J(L,Q,G,z);if(w=w||{},z.throwOnError)throw w;return z.responseStyle==="data"?void 0:{error:w,...V}},U=(T)=>(z)=>R({...z,method:T}),B=(T)=>async(z)=>{let{opts:c,url:K}=await W(z);return Qz({...c,body:c.body,headers:c.headers,method:T,onRequest:async(G,I)=>{let Q=new Request(G,I);for(let V of P.request._fns)if(V)Q=await V(Q,c);return Q},url:K})};return{buildUrl:zr,connect:U("CONNECT"),delete:U("DELETE"),get:U("GET"),getConfig:x,head:U("HEAD"),interceptors:P,options:U("OPTIONS"),patch:U("PATCH"),post:U("POST"),put:U("PUT"),request:R,setConfig:r,sse:{connect:B("CONNECT"),delete:B("DELETE"),get:B("GET"),head:B("HEAD"),options:B("OPTIONS"),patch:B("PATCH"),post:B("POST"),put:B("PUT"),trace:B("TRACE")},trace:U("TRACE")}};var j=br(OS());var jN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...S})},PN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...S})},UN=(S)=>{return(S?.client??j).post({...xr,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...S,headers:{"Content-Type":null,...S?.headers}})},BN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...S})},jr=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author",...S})},Pr=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Ur=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/{id}",...S})},Br=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/{id}",...S})},Rr=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},RN=(S)=>{return(S?.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/editor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},WN=(S)=>{return(S?.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/editor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Wr=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/author/lookup",...S})},NN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup",...S})},QN=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/{id}",...S})},TN=(S)=>{return(S.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/{id}",...S})},cN=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/backup/restore/upload",...S})},JN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist",...S})},VN=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/{id}",...S})},XN=(S)=>{return(S?.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/blocklist/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Nr=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book",...S})},gN=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book",...S,headers:{"Content-Type":"application/json",...S?.headers}})},wN=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}/overview",...S})},ZN=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}",...S})},Qr=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}",...S})},GN=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},fN=(S)=>{return(S?.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/monitor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},LN=(S)=>{return(S?.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/editor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},YN=(S)=>{return(S?.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/editor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},KN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile",...S})},HN=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/{id}",...S})},EN=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/{id}",...S})},IN=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},DN=(S)=>{return(S?.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/editor",...S,headers:{"Content-Type":"application/json",...S?.headers}})},MN=(S)=>{return(S?.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookfile/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},FN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/book/lookup",...S})},mN=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/bookshelf",...S,headers:{"Content-Type":"application/json",...S?.headers}})},qN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar",...S})},kN=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/calendar/{id}",...S})},uN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/feed/v1/calendar/readarr.ics",...S})},Tr=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...S})},cr=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command",...S,headers:{"Content-Type":"application/json",...S?.headers}})},vN=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...S})},dN=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/command/{id}",...S})},aN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...S})},yN=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter",...S,headers:{"Content-Type":"application/json",...S?.headers}})},AN=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...S})},_N=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...S})},CN=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customfilter/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},hN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...S})},lN=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat",...S,headers:{"Content-Type":"application/json",...S?.headers}})},eN=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...S})},sN=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...S})},pN=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},tN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/customformat/schema",...S})},nN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff",...S})},iN=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/cutoff/{id}",...S})},oN=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...S})},SQ=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},OQ=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...S})},xQ=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...S})},rQ=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},zQ=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/delayprofile/reorder/{id}",...S})},$Q=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development",...S})},bQ=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...S})},jQ=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/development/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},PQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/diskspace",...S})},UQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...S})},BQ=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient",...S,headers:{"Content-Type":"application/json",...S?.headers}})},RQ=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...S})},WQ=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...S})},NQ=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},QQ=(S)=>{return(S?.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},TQ=(S)=>{return(S?.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},cQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/schema",...S})},JQ=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},VQ=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/testall",...S})},XQ=(S)=>{return(S.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/downloadclient/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},gQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient",...S})},wQ=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...S})},ZQ=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/downloadclient/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},GQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/edition",...S})},fQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem",...S})},LQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/type",...S})},YQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/filesystem/mediafiles",...S})},Jr=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/health",...S})},KQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history",...S})},HQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/since",...S})},EQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/author",...S})},IQ=(S)=>{return(S.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/history/failed/{id}",...S})},DQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host",...S})},MQ=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...S})},FQ=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/host/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},mQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...S})},qQ=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist",...S,headers:{"Content-Type":"application/json",...S?.headers}})},kQ=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...S})},uQ=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...S})},vQ=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},dQ=(S)=>{return(S?.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},aQ=(S)=>{return(S?.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},yQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/schema",...S})},AQ=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},_Q=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/testall",...S})},CQ=(S)=>{return(S.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlist/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},hQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...S})},lQ=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion",...S,headers:{"Content-Type":"application/json",...S?.headers}})},eQ=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...S})},sQ=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...S})},pQ=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/importlistexclusion/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},tQ=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...S})},nQ=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer",...S,headers:{"Content-Type":"application/json",...S?.headers}})},iQ=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...S})},oQ=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...S})},ST=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},OT=(S)=>{return(S?.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},xT=(S)=>{return(S?.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},rT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/schema",...S})},zT=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},$T=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/testall",...S})},bT=(S)=>{return(S.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexer/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},jT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer",...S})},PT=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...S})},UT=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/indexer/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},BT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/indexerflag",...S})},RT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language",...S})},WT=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/language/{id}",...S})},NT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/localization",...S})},QT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log",...S})},TT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file",...S})},cT=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/{filename}",...S})},JT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...S})},VT=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/manualimport",...S,headers:{"Content-Type":"application/json",...S?.headers}})},XT=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/author/{authorId}/{filename}",...S})},gT=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/mediacover/book/{bookId}/{filename}",...S})},wT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement",...S})},ZT=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...S})},GT=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/mediamanagement/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},fT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...S})},LT=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata",...S,headers:{"Content-Type":"application/json",...S?.headers}})},YT=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...S})},KT=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...S})},HT=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},ET=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/schema",...S})},IT=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},DT=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/testall",...S})},MT=(S)=>{return(S.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadata/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},FT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...S})},mT=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},qT=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...S})},kT=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...S})},uT=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},vT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/metadataprofile/schema",...S})},dT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider",...S})},aT=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...S})},yT=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/metadataprovider/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},AT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing",...S})},_T=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/wanted/missing/{id}",...S})},CT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming",...S})},hT=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...S})},lT=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},eT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/naming/examples",...S})},sT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...S})},pT=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification",...S,headers:{"Content-Type":"application/json",...S?.headers}})},tT=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...S})},nT=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...S})},iT=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},oT=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/schema",...S})},S0=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/test",...S,headers:{"Content-Type":"application/json",...S?.headers}})},O0=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/testall",...S})},x0=(S)=>{return(S.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/notification/action/{name}",...S,headers:{"Content-Type":"application/json",...S.headers}})},r0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/parse",...S})},z0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...S})},$0=(S)=>{return(S?.client??j).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...S})},b0=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...S})},j0=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},P0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition",...S})},U0=(S)=>{return(S?.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualitydefinition/update",...S,headers:{"Content-Type":"application/json",...S?.headers}})},B0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...S})},R0=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},W0=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...S})},N0=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...S})},Q0=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},T0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/qualityprofile/schema",...S})},c0=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/{id}",...S})},J0=(S)=>{return(S?.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},V0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue",...S})},X0=(S)=>{return(S.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/{id}",...S})},g0=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/grab/bulk",...S,headers:{"Content-Type":"application/json",...S?.headers}})},w0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/details",...S})},Z0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/queue/status",...S})},G0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...S})},f0=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release",...S,headers:{"Content-Type":"application/json",...S?.headers}})},L0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...S})},Y0=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile",...S,headers:{"Content-Type":"application/json",...S?.headers}})},K0=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...S})},H0=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...S})},E0=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/releaseprofile/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},I0=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/release/push",...S,headers:{"Content-Type":"application/json",...S?.headers}})},D0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...S})},M0=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping",...S,headers:{"Content-Type":"application/json",...S?.headers}})},F0=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...S})},m0=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...S})},q0=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/remotepathmapping/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},k0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rename",...S})},u0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/retag",...S})},Vr=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...S})},Xr=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder",...S,headers:{"Content-Type":"application/json",...S?.headers}})},v0=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...S})},d0=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...S})},a0=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/rootfolder/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},y0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/search",...S})},A0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/series",...S})},_0=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...S})},C0=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...S})},h0=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...S})},gr=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/status",...S})},l0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes",...S})},e0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/routes/duplicate",...S})},s0=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/shutdown",...S})},p0=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/restart",...S})},t0=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...S})},n0=(S)=>{return(S?.client??j).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag",...S,headers:{"Content-Type":"application/json",...S?.headers}})},i0=(S)=>{return(S.client??j).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...S})},o0=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...S})},Sc=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},Oc=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail",...S})},xc=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/tag/detail/{id}",...S})},rc=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task",...S})},zc=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/system/task/{id}",...S})},$c=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...S})},bc=(S)=>{return(S.client??j).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},jc=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/config/ui",...S})},Pc=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/update",...S})},Uc=(S)=>{return(S?.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update",...S})},Bc=(S)=>{return(S.client??j).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v1/log/file/update/{filename}",...S})};class wz{clientConfig;constructor(S){this.clientConfig=F(S)}async getSystemStatus(){return gr()}async getHealth(){return Jr()}async getAuthors(){return jr()}async getAuthor(S){return Br({path:{id:S}})}async addAuthor(S){return Pr({body:S})}async updateAuthor(S,O){return Rr({path:{id:String(S)},body:O})}async deleteAuthor(S){return Ur({path:{id:S}})}async getBooks(){return Nr()}async getBook(S){return Qr({path:{id:S}})}async searchAuthors(S){return Wr({query:{term:S}})}async runCommand(S){return cr({body:S})}async getCommands(){return Tr()}async getRootFolders(){return Vr()}async addRootFolder(S){return Xr({body:{path:S}})}updateConfig(S){let O={...this.clientConfig.config,...S};return this.clientConfig=F(O),this.clientConfig.config}}var Zz=(S,O,x)=>{if(typeof x==="string"||x instanceof Blob)S.append(O,x);else if(x instanceof Date)S.append(O,x.toISOString());else S.append(O,JSON.stringify(x))};var Zr={bodySerializer:(S)=>{let O=new FormData;return Object.entries(S).forEach(([x,r])=>{if(r===void 0||r===null)return;if(Array.isArray(r))r.forEach((P)=>Zz(O,x,P));else Zz(O,x,r)}),O}},Gr={bodySerializer:(S)=>JSON.stringify(S,(O,x)=>typeof x==="bigint"?x.toString():x)};var Gz=({onRequest:S,onSseError:O,onSseEvent:x,responseTransformer:r,responseValidator:P,sseDefaultRetryDelay:W,sseMaxRetryAttempts:R,sseMaxRetryDelay:U,sseSleepFn:B,url:T,...z})=>{let c,K=B??((Q)=>new Promise((V)=>setTimeout(V,Q)));return{stream:async function*(){let Q=W??3000,V=0,f=z.signal??new AbortController().signal;while(!0){if(f.aborted)break;V++;let H=z.headers instanceof Headers?z.headers:new Headers(z.headers);if(c!==void 0)H.set("Last-Event-ID",c);try{let L={redirect:"follow",...z,body:z.serializedBody,headers:H,signal:f},w=new Request(T,L);if(S)w=await S(T,L);let X=await(z.fetch??globalThis.fetch)(w);if(!X.ok)throw new Error(`SSE failed: ${X.status} ${X.statusText}`);if(!X.body)throw new Error("No body in SSE response");let Z=X.body.pipeThrough(new TextDecoderStream).getReader(),M="",m=()=>{try{Z.cancel()}catch{}};f.addEventListener("abort",m);try{while(!0){let{done:a,value:y}=await Z.read();if(a)break;M+=y;let q=M.split(`
18
+
19
+ `);M=q.pop()??"";for(let A of q){let _=A.split(`
20
+ `),D=[],k;for(let g of _)if(g.startsWith("data:"))D.push(g.replace(/^data:\s*/,""));else if(g.startsWith("event:"))k=g.replace(/^event:\s*/,"");else if(g.startsWith("id:"))c=g.replace(/^id:\s*/,"");else if(g.startsWith("retry:")){let v=Number.parseInt(g.replace(/^retry:\s*/,""),10);if(!Number.isNaN(v))Q=v}let Y,u=!1;if(D.length){let g=D.join(`
21
+ `);try{Y=JSON.parse(g),u=!0}catch{Y=g}}if(u){if(P)await P(Y);if(r)Y=await r(Y)}if(x?.({data:Y,event:k,id:c,retry:Q}),D.length)yield Y}}}finally{f.removeEventListener("abort",m),Z.releaseLock()}break}catch(L){if(O?.(L),R!==void 0&&V>=R)break;let w=Math.min(Q*2**(V-1),U??30000);await K(w)}}}()}};var fz=async(S,O)=>{let x=typeof O==="function"?await O(S):O;if(!x)return;if(S.scheme==="bearer")return`Bearer ${x}`;if(S.scheme==="basic")return`Basic ${btoa(x)}`;return x};var Rc=(S)=>{switch(S){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Wc=(S)=>{switch(S){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Nc=(S)=>{switch(S){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},gS=({allowReserved:S,explode:O,name:x,style:r,value:P})=>{if(!O){let U=(S?P:P.map((B)=>encodeURIComponent(B))).join(Wc(r));switch(r){case"label":return`.${U}`;case"matrix":return`;${x}=${U}`;case"simple":return U;default:return`${x}=${U}`}}let W=Rc(r),R=P.map((U)=>{if(r==="label"||r==="simple")return S?U:encodeURIComponent(U);return s({allowReserved:S,name:x,value:U})}).join(W);return r==="label"||r==="matrix"?W+R:R},s=({allowReserved:S,name:O,value:x})=>{if(x===void 0||x===null)return"";if(typeof x==="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${O}=${S?x:encodeURIComponent(x)}`},wS=({allowReserved:S,explode:O,name:x,style:r,value:P,valueOnly:W})=>{if(P instanceof Date)return W?P.toISOString():`${x}=${P.toISOString()}`;if(r!=="deepObject"&&!O){let B=[];Object.entries(P).forEach(([z,c])=>{B=[...B,z,S?c:encodeURIComponent(c)]});let T=B.join(",");switch(r){case"form":return`${x}=${T}`;case"label":return`.${T}`;case"matrix":return`;${x}=${T}`;default:return T}}let R=Nc(r),U=Object.entries(P).map(([B,T])=>s({allowReserved:S,name:r==="deepObject"?`${x}[${B}]`:B,value:T})).join(R);return r==="label"||r==="matrix"?R+U:U};var Qc=/\{[^{}]+\}/g,Tc=({path:S,url:O})=>{let x=O,r=O.match(Qc);if(r)for(let P of r){let W=!1,R=P.substring(1,P.length-1),U="simple";if(R.endsWith("*"))W=!0,R=R.substring(0,R.length-1);if(R.startsWith("."))R=R.substring(1),U="label";else if(R.startsWith(";"))R=R.substring(1),U="matrix";let B=S[R];if(B===void 0||B===null)continue;if(Array.isArray(B)){x=x.replace(P,gS({explode:W,name:R,style:U,value:B}));continue}if(typeof B==="object"){x=x.replace(P,wS({explode:W,name:R,style:U,value:B,valueOnly:!0}));continue}if(U==="matrix"){x=x.replace(P,`;${s({name:R,value:B})}`);continue}let T=encodeURIComponent(U==="label"?`.${B}`:B);x=x.replace(P,T)}return x},Lz=({baseUrl:S,path:O,query:x,querySerializer:r,url:P})=>{let W=P.startsWith("/")?P:`/${P}`,R=(S??"")+W;if(O)R=Tc({path:O,url:R});let U=x?r(x):"";if(U.startsWith("?"))U=U.substring(1);if(U)R+=`?${U}`;return R};var Yz=({allowReserved:S,array:O,object:x}={})=>{return(P)=>{let W=[];if(P&&typeof P==="object")for(let R in P){let U=P[R];if(U===void 0||U===null)continue;if(Array.isArray(U)){let B=gS({allowReserved:S,explode:!0,name:R,style:"form",value:U,...O});if(B)W.push(B)}else if(typeof U==="object"){let B=wS({allowReserved:S,explode:!0,name:R,style:"deepObject",value:U,...x});if(B)W.push(B)}else{let B=s({allowReserved:S,name:R,value:U});if(B)W.push(B)}}return W.join("&")}},Kz=(S)=>{if(!S)return"stream";let O=S.split(";")[0]?.trim();if(!O)return;if(O.startsWith("application/json")||O.endsWith("+json"))return"json";if(O==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((x)=>O.startsWith(x)))return"blob";if(O.startsWith("text/"))return"text";return},cc=(S,O)=>{if(!O)return!1;if(S.headers.has(O)||S.query?.[O]||S.headers.get("Cookie")?.includes(`${O}=`))return!0;return!1},Hz=async({security:S,...O})=>{for(let x of S){if(cc(O,x.name))continue;let r=await fz(x,O.auth);if(!r)continue;let P=x.name??"Authorization";switch(x.in){case"query":if(!O.query)O.query={};O.query[P]=r;break;case"cookie":O.headers.append("Cookie",`${P}=${r}`);break;case"header":default:O.headers.set(P,r);break}}},fr=(S)=>Lz({baseUrl:S.baseUrl,path:S.path,query:S.query,querySerializer:typeof S.querySerializer==="function"?S.querySerializer:Yz(S.querySerializer),url:S.url}),Lr=(S,O)=>{let x={...S,...O};if(x.baseUrl?.endsWith("/"))x.baseUrl=x.baseUrl.substring(0,x.baseUrl.length-1);return x.headers=GS(S.headers,O.headers),x},GS=(...S)=>{let O=new Headers;for(let x of S){if(!x||typeof x!=="object")continue;let r=x instanceof Headers?x.entries():Object.entries(x);for(let[P,W]of r)if(W===null)O.delete(P);else if(Array.isArray(W))for(let R of W)O.append(P,R);else if(W!==void 0)O.set(P,typeof W==="object"?JSON.stringify(W):W)}return O};class ZS{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(S){if(typeof S==="number")return this._fns[S]?S:-1;else return this._fns.indexOf(S)}exists(S){let O=this.getInterceptorIndex(S);return!!this._fns[O]}eject(S){let O=this.getInterceptorIndex(S);if(this._fns[O])this._fns[O]=null}update(S,O){let x=this.getInterceptorIndex(S);if(this._fns[x])return this._fns[x]=O,S;else return!1}use(S){return this._fns=[...this._fns,S],this._fns.length-1}}var Ez=()=>({error:new ZS,request:new ZS,response:new ZS}),Jc=Yz({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Vc={"Content-Type":"application/json"},xS=(S={})=>({...Gr,headers:Vc,parseAs:"auto",querySerializer:Jc,...S});var Yr=(S={})=>{let O=Lr(xS(),S),x=()=>({...O}),r=(T)=>{return O=Lr(O,T),x()},P=Ez(),W=async(T)=>{let z={...O,...T,fetch:T.fetch??O.fetch??globalThis.fetch,headers:GS(O.headers,T.headers),serializedBody:void 0};if(z.security)await Hz({...z,security:z.security});if(z.requestValidator)await z.requestValidator(z);if(z.body&&z.bodySerializer)z.serializedBody=z.bodySerializer(z.body);if(z.serializedBody===void 0||z.serializedBody==="")z.headers.delete("Content-Type");let c=fr(z);return{opts:z,url:c}},R=async(T)=>{let{opts:z,url:c}=await W(T),K={redirect:"follow",...z,body:z.serializedBody},G=new Request(c,K);for(let J of P.request._fns)if(J)G=await J(G,z);let I=z.fetch,Q=await I(G);for(let J of P.response._fns)if(J)Q=await J(Q,G,z);let V={request:G,response:Q};if(Q.ok){let J=(z.parseAs==="auto"?Kz(Q.headers.get("Content-Type")):z.parseAs)??"json";if(Q.status===204||Q.headers.get("Content-Length")==="0"){let Z;switch(J){case"arrayBuffer":case"blob":case"text":Z=await Q[J]();break;case"formData":Z=new FormData;break;case"stream":Z=Q.body;break;case"json":default:Z={};break}return z.responseStyle==="data"?Z:{data:Z,...V}}let X;switch(J){case"arrayBuffer":case"blob":case"formData":case"json":case"text":X=await Q[J]();break;case"stream":return z.responseStyle==="data"?Q.body:{data:Q.body,...V}}if(J==="json"){if(z.responseValidator)await z.responseValidator(X);if(z.responseTransformer)X=await z.responseTransformer(X)}return z.responseStyle==="data"?X:{data:X,...V}}let f=await Q.text(),H;try{H=JSON.parse(f)}catch{}let L=H??f,w=L;for(let J of P.error._fns)if(J)w=await J(L,Q,G,z);if(w=w||{},z.throwOnError)throw w;return z.responseStyle==="data"?void 0:{error:w,...V}},U=(T)=>(z)=>R({...z,method:T}),B=(T)=>async(z)=>{let{opts:c,url:K}=await W(z);return Gz({...c,body:c.body,headers:c.headers,method:T,onRequest:async(G,I)=>{let Q=new Request(G,I);for(let V of P.request._fns)if(V)Q=await V(Q,c);return Q},url:K})};return{buildUrl:fr,connect:U("CONNECT"),delete:U("DELETE"),get:U("GET"),getConfig:x,head:U("HEAD"),interceptors:P,options:U("OPTIONS"),patch:U("PATCH"),post:U("POST"),put:U("PUT"),request:R,setConfig:r,sse:{connect:B("CONNECT"),delete:B("DELETE"),get:B("GET"),head:B("HEAD"),options:B("OPTIONS"),patch:B("PATCH"),post:B("POST"),put:B("PUT"),trace:B("TRACE")},trace:U("TRACE")}};var E=Yr(xS());var dr={};p(dr,{putApiV5SettingsUpdate:()=>Kc,putApiV5SeriesById:()=>Fr,postLogin:()=>gc,postApiV5Series:()=>Ir,headPing:()=>Gc,getPing:()=>Zc,getLogout:()=>wc,getLogin:()=>Xc,getContentByPath:()=>fc,getByPath:()=>Yc,getApiV5Update:()=>kr,getApiV5SettingsUpdateById:()=>vr,getApiV5SettingsUpdate:()=>ur,getApiV5SeriesLookup:()=>qr,getApiV5SeriesByIdFolder:()=>mr,getApiV5SeriesById:()=>Mr,getApiV5Series:()=>Er,getApiV5Log:()=>Hr,getApi:()=>Kr,get:()=>Lc,deleteApiV5SeriesById:()=>Dr});var Kr=(S)=>{return(S?.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api",...S})},Xc=(S)=>{return(S?.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...S})},gc=(S)=>{return(S?.client??E).post({...Zr,security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/login",...S,headers:{"Content-Type":null,...S?.headers}})},wc=(S)=>{return(S?.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/logout",...S})},Hr=(S)=>{return(S?.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/log",...S})},Zc=(S)=>{return(S?.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...S})},Gc=(S)=>{return(S?.client??E).head({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/ping",...S})},Er=(S)=>{return(S?.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/series",...S})},Ir=(S)=>{return(S?.client??E).post({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/series",...S,headers:{"Content-Type":"application/json",...S?.headers}})},Dr=(S)=>{return(S.client??E).delete({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/series/{id}",...S})},Mr=(S)=>{return(S.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/series/{id}",...S})},Fr=(S)=>{return(S.client??E).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/series/{id}",...S,headers:{"Content-Type":"application/json",...S.headers}})},mr=(S)=>{return(S.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/series/{id}/folder",...S})},qr=(S)=>{return(S?.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/series/lookup",...S})},fc=(S)=>{return(S.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/content/{path}",...S})},Lc=(S)=>{return(S.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/",...S})},Yc=(S)=>{return(S.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/{path}",...S})},kr=(S)=>{return(S?.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/update",...S})},ur=(S)=>{return(S?.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/settings/update",...S})},Kc=(S)=>{return(S?.client??E).put({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/settings/update",...S,headers:{"Content-Type":"application/json",...S?.headers}})},vr=(S)=>{return(S.client??E).get({security:[{name:"X-Api-Key",type:"apiKey"},{in:"query",name:"apikey",type:"apiKey"}],url:"/api/v5/settings/update/{id}",...S})};class Iz{clientConfig;constructor(S){this.clientConfig=F(S),E.setConfig({baseUrl:this.clientConfig.getBaseUrl(),headers:this.clientConfig.getHeaders()})}async getApi(){return Kr()}async getSystemStatus(){return E.get({url:"/api/v3/system/status",headers:this.clientConfig.getHeaders(),baseUrl:this.clientConfig.getBaseUrl()})}async getHealth(){return E.get({url:"/api/v3/health",headers:this.clientConfig.getHeaders(),baseUrl:this.clientConfig.getBaseUrl()})}async getSeries(){return Er()}async getSeriesById(S){return Mr({path:{id:S}})}async addSeries(S){return Ir({body:S})}async updateSeries(S,O){return Fr({path:{id:String(S)},body:O})}async deleteSeries(S){return Dr({path:{id:S}})}async getSeriesFolder(S){return mr({path:{id:S}})}async searchSeries(S){return qr({query:{term:S}})}async getLogs(S,O,x,r,P){let W={};if(S!==void 0)W.page=S;if(O!==void 0)W.pageSize=O;if(x)W.sortKey=x;if(r)W.sortDirection=r;if(P)W.level=P;return Hr(Object.keys(W).length>0?{query:W}:{})}async getUpdates(){return kr()}async getUpdateSettings(){return ur()}async getUpdateSetting(S){return vr({path:{id:S}})}updateConfig(S){let O={...this.clientConfig.config,...S};return this.clientConfig=F(O),this.clientConfig.config}}async function QV(S){try{let O=await S;if(O.error)return{success:!1,error:Dz(O.error,O.response)};return{success:!0,data:O.data}}catch(O){return{success:!1,error:Dz(O)}}}function Dz(S,O){if(S instanceof d)return S;if(O){let{status:x,statusText:r}=O;if(x===401)return new d("Unauthorized - check your API key","UNAUTHORIZED",401);if(x===404)return new d("Resource not found","NOT_FOUND",404);if(x>=500)return new d(`Server error: ${r}`,"SERVER_ERROR",x);if(x>=400)return new d(`Client error: ${r}`,"CLIENT_ERROR",x)}if(S?.message?.includes("fetch"))return new d("Network error - unable to connect to server","NETWORK_ERROR");return new d(S?.message||"Unknown error occurred","UNKNOWN_ERROR",void 0,S)}function TV(S,O){if(!S)throw new n("No data returned from API");if(typeof S==="object"&&S!==null){if(Array.isArray(S))S.forEach((x,r)=>{if(x===null||x===void 0)throw new n(`Invalid null/undefined item at index ${r}`)});if("id"in S&&typeof S.id!=="number")throw new n("Resource ID must be a number")}return S}var JV="1.0.0";export{TV as validateResponse,Mc as validateBaseUrl,Dc as validateApiKey,QV as handleApiResponse,F as createServarrClient,n as ValidationError,JV as VERSION,d as TsarrError,Iz as SonarrClient,dr as Sonarr,wz as ReadarrClient,wr as Readarr,Wz as RadarrClient,Or as Radarr,rz as ProwlarrClient,YO as Prowlarr,Fz as NotFoundError,sr as LidarrClient,UO as Lidarr,t as ConnectionError,rS as ApiKeyError};