@jellyfin/sdk 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (864) hide show
  1. package/README.md +23 -9
  2. package/lib/api.d.ts +4 -4
  3. package/lib/api.js +38 -68
  4. package/lib/discovery/discovery-service.d.ts +3 -1
  5. package/lib/discovery/discovery-service.js +27 -68
  6. package/lib/discovery/index.js +3 -18
  7. package/lib/discovery/recommended-server-discovery.d.ts +3 -1
  8. package/lib/discovery/recommended-server-discovery.js +56 -102
  9. package/lib/generated-client/api/activity-log-api.d.ts +4 -4
  10. package/lib/generated-client/api/activity-log-api.js +58 -165
  11. package/lib/generated-client/api/api-key-api.d.ts +10 -10
  12. package/lib/generated-client/api/api-key-api.js +112 -254
  13. package/lib/generated-client/api/artists-api.d.ts +10 -10
  14. package/lib/generated-client/api/artists-api.js +302 -446
  15. package/lib/generated-client/api/audio-api.d.ts +13 -13
  16. package/lib/generated-client/api/audio-api.js +714 -850
  17. package/lib/generated-client/api/branding-api.d.ts +10 -10
  18. package/lib/generated-client/api/branding-api.js +98 -222
  19. package/lib/generated-client/api/channels-api.d.ts +16 -16
  20. package/lib/generated-client/api/channels-api.js +230 -410
  21. package/lib/generated-client/api/client-log-api.d.ts +4 -4
  22. package/lib/generated-client/api/client-log-api.js +46 -153
  23. package/lib/generated-client/api/collection-api.d.ts +10 -10
  24. package/lib/generated-client/api/collection-api.js +132 -275
  25. package/lib/generated-client/api/configuration-api.d.ts +19 -19
  26. package/lib/generated-client/api/configuration-api.js +212 -408
  27. package/lib/generated-client/api/dashboard-api.d.ts +7 -7
  28. package/lib/generated-client/api/dashboard-api.js +78 -198
  29. package/lib/generated-client/api/devices-api.d.ts +16 -16
  30. package/lib/generated-client/api/devices-api.js +194 -373
  31. package/lib/generated-client/api/display-preferences-api.d.ts +7 -7
  32. package/lib/generated-client/api/display-preferences-api.js +104 -228
  33. package/lib/generated-client/api/dlna-api.d.ts +19 -19
  34. package/lib/generated-client/api/dlna-api.js +207 -404
  35. package/lib/generated-client/api/dlna-server-api.d.ts +49 -49
  36. package/lib/generated-client/api/dlna-server-api.js +545 -921
  37. package/lib/generated-client/api/dynamic-hls-api.d.ts +28 -28
  38. package/lib/generated-client/api/dynamic-hls-api.js +1686 -1936
  39. package/lib/generated-client/api/environment-api.d.ts +19 -19
  40. package/lib/generated-client/api/environment-api.js +214 -410
  41. package/lib/generated-client/api/filter-api.d.ts +7 -7
  42. package/lib/generated-client/api/filter-api.js +116 -242
  43. package/lib/generated-client/api/genres-api.d.ts +7 -7
  44. package/lib/generated-client/api/genres-api.js +134 -259
  45. package/lib/generated-client/api/hls-segment-api.d.ts +16 -16
  46. package/lib/generated-client/api/hls-segment-api.js +198 -358
  47. package/lib/generated-client/api/image-api.d.ts +124 -124
  48. package/lib/generated-client/api/image-api.js +2914 -3568
  49. package/lib/generated-client/api/image-by-name-api.d.ts +19 -19
  50. package/lib/generated-client/api/image-by-name-api.js +206 -384
  51. package/lib/generated-client/api/instant-mix-api.d.ts +25 -25
  52. package/lib/generated-client/api/instant-mix-api.js +450 -682
  53. package/lib/generated-client/api/item-lookup-api.d.ts +34 -34
  54. package/lib/generated-client/api/item-lookup-api.js +393 -679
  55. package/lib/generated-client/api/item-refresh-api.d.ts +4 -4
  56. package/lib/generated-client/api/item-refresh-api.js +59 -165
  57. package/lib/generated-client/api/item-update-api.d.ts +10 -10
  58. package/lib/generated-client/api/item-update-api.js +120 -262
  59. package/lib/generated-client/api/items-api.d.ts +10 -10
  60. package/lib/generated-client/api/items-api.js +675 -818
  61. package/lib/generated-client/api/library-api.d.ts +76 -76
  62. package/lib/generated-client/api/library-api.js +939 -1485
  63. package/lib/generated-client/api/library-structure-api.d.ts +25 -25
  64. package/lib/generated-client/api/library-structure-api.js +305 -542
  65. package/lib/generated-client/api/live-tv-api.d.ts +124 -124
  66. package/lib/generated-client/api/live-tv-api.js +1674 -2509
  67. package/lib/generated-client/api/localization-api.d.ts +13 -13
  68. package/lib/generated-client/api/localization-api.js +134 -294
  69. package/lib/generated-client/api/media-info-api.d.ts +16 -16
  70. package/lib/generated-client/api/media-info-api.js +262 -442
  71. package/lib/generated-client/api/movies-api.d.ts +4 -4
  72. package/lib/generated-client/api/movies-api.js +59 -166
  73. package/lib/generated-client/api/music-genres-api.d.ts +7 -7
  74. package/lib/generated-client/api/music-genres-api.js +134 -259
  75. package/lib/generated-client/api/notifications-api.d.ts +22 -22
  76. package/lib/generated-client/api/notifications-api.js +240 -454
  77. package/lib/generated-client/api/package-api.d.ts +19 -19
  78. package/lib/generated-client/api/package-api.js +219 -415
  79. package/lib/generated-client/api/persons-api.d.ts +7 -7
  80. package/lib/generated-client/api/persons-api.js +119 -244
  81. package/lib/generated-client/api/playlists-api.d.ts +16 -16
  82. package/lib/generated-client/api/playlists-api.js +231 -410
  83. package/lib/generated-client/api/playstate-api.d.ts +28 -28
  84. package/lib/generated-client/api/playstate-api.js +399 -652
  85. package/lib/generated-client/api/plugins-api.d.ts +28 -28
  86. package/lib/generated-client/api/plugins-api.js +320 -570
  87. package/lib/generated-client/api/quick-connect-api.d.ts +13 -13
  88. package/lib/generated-client/api/quick-connect-api.js +138 -280
  89. package/lib/generated-client/api/remote-image-api.d.ts +10 -10
  90. package/lib/generated-client/api/remote-image-api.js +136 -278
  91. package/lib/generated-client/api/scheduled-tasks-api.d.ts +16 -16
  92. package/lib/generated-client/api/scheduled-tasks-api.js +186 -365
  93. package/lib/generated-client/api/search-api.d.ts +4 -4
  94. package/lib/generated-client/api/search-api.js +100 -206
  95. package/lib/generated-client/api/session-api.d.ts +49 -49
  96. package/lib/generated-client/api/session-api.js +632 -1010
  97. package/lib/generated-client/api/startup-api.d.ts +22 -22
  98. package/lib/generated-client/api/startup-api.js +234 -449
  99. package/lib/generated-client/api/studios-api.d.ts +7 -7
  100. package/lib/generated-client/api/studios-api.js +131 -256
  101. package/lib/generated-client/api/subtitle-api.d.ts +31 -31
  102. package/lib/generated-client/api/subtitle-api.js +433 -689
  103. package/lib/generated-client/api/suggestions-api.d.ts +4 -4
  104. package/lib/generated-client/api/suggestions-api.js +62 -168
  105. package/lib/generated-client/api/sync-play-api.d.ts +64 -64
  106. package/lib/generated-client/api/sync-play-api.js +708 -1174
  107. package/lib/generated-client/api/system-api.d.ts +31 -31
  108. package/lib/generated-client/api/system-api.js +313 -563
  109. package/lib/generated-client/api/time-sync-api.d.ts +4 -4
  110. package/lib/generated-client/api/time-sync-api.js +42 -142
  111. package/lib/generated-client/api/tmdb-api.d.ts +4 -4
  112. package/lib/generated-client/api/tmdb-api.js +44 -150
  113. package/lib/generated-client/api/trailers-api.d.ts +4 -4
  114. package/lib/generated-client/api/trailers-api.js +304 -411
  115. package/lib/generated-client/api/tv-shows-api.d.ts +13 -13
  116. package/lib/generated-client/api/tv-shows-api.js +280 -442
  117. package/lib/generated-client/api/universal-audio-api.d.ts +7 -7
  118. package/lib/generated-client/api/universal-audio-api.js +182 -306
  119. package/lib/generated-client/api/user-api.d.ts +49 -49
  120. package/lib/generated-client/api/user-api.js +560 -901
  121. package/lib/generated-client/api/user-library-api.d.ts +31 -31
  122. package/lib/generated-client/api/user-library-api.js +401 -669
  123. package/lib/generated-client/api/user-views-api.d.ts +7 -7
  124. package/lib/generated-client/api/user-views-api.js +89 -213
  125. package/lib/generated-client/api/video-attachments-api.d.ts +4 -4
  126. package/lib/generated-client/api/video-attachments-api.js +51 -151
  127. package/lib/generated-client/api/videos-api.d.ts +22 -22
  128. package/lib/generated-client/api/videos-api.js +842 -1032
  129. package/lib/generated-client/api/years-api.d.ts +7 -7
  130. package/lib/generated-client/api/years-api.js +125 -250
  131. package/lib/generated-client/base.d.ts +2 -2
  132. package/lib/generated-client/base.js +14 -64
  133. package/lib/generated-client/common.d.ts +2 -2
  134. package/lib/generated-client/common.js +28 -184
  135. package/lib/generated-client/configuration.js +8 -12
  136. package/lib/generated-client/index.js +136 -31
  137. package/lib/generated-client/models/access-schedule.d.ts +5 -5
  138. package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
  139. package/lib/generated-client/models/activity-log-entry.d.ts +10 -10
  140. package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
  141. package/lib/generated-client/models/admin-notification-dto.d.ts +4 -4
  142. package/lib/generated-client/models/album-info-remote-search-query.d.ts +4 -4
  143. package/lib/generated-client/models/album-info.d.ts +14 -14
  144. package/lib/generated-client/models/all-theme-media-result.d.ts +3 -3
  145. package/lib/generated-client/models/architecture.d.ts +9 -8
  146. package/lib/generated-client/models/architecture.js +10 -12
  147. package/lib/generated-client/models/artist-info-remote-search-query.d.ts +4 -4
  148. package/lib/generated-client/models/artist-info.d.ts +12 -12
  149. package/lib/generated-client/models/authenticate-user-by-name.d.ts +3 -3
  150. package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
  151. package/lib/generated-client/models/authentication-info.d.ts +12 -12
  152. package/lib/generated-client/models/authentication-result.d.ts +4 -4
  153. package/lib/generated-client/models/base-item-dto-image-blur-hashes.d.ts +13 -13
  154. package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
  155. package/lib/generated-client/models/base-item-dto.d.ts +151 -151
  156. package/lib/generated-client/models/base-item-kind.d.ts +40 -39
  157. package/lib/generated-client/models/base-item-kind.js +41 -43
  158. package/lib/generated-client/models/base-item-person-image-blur-hashes.d.ts +13 -13
  159. package/lib/generated-client/models/base-item-person.d.ts +6 -6
  160. package/lib/generated-client/models/base-item.d.ts +11 -11
  161. package/lib/generated-client/models/book-info-remote-search-query.d.ts +4 -4
  162. package/lib/generated-client/models/book-info.d.ts +12 -12
  163. package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +4 -4
  164. package/lib/generated-client/models/box-set-info.d.ts +11 -11
  165. package/lib/generated-client/models/branding-options.d.ts +3 -3
  166. package/lib/generated-client/models/buffer-request-dto.d.ts +4 -4
  167. package/lib/generated-client/models/channel-features.d.ts +12 -12
  168. package/lib/generated-client/models/channel-item-sort-field.d.ts +10 -9
  169. package/lib/generated-client/models/channel-item-sort-field.js +11 -13
  170. package/lib/generated-client/models/channel-mapping-options-dto.d.ts +4 -4
  171. package/lib/generated-client/models/channel-media-content-type.d.ts +11 -10
  172. package/lib/generated-client/models/channel-media-content-type.js +12 -14
  173. package/lib/generated-client/models/channel-media-type.d.ts +6 -5
  174. package/lib/generated-client/models/channel-media-type.js +7 -9
  175. package/lib/generated-client/models/channel-type.d.ts +5 -4
  176. package/lib/generated-client/models/channel-type.js +6 -8
  177. package/lib/generated-client/models/chapter-info.d.ts +5 -5
  178. package/lib/generated-client/models/client-capabilities-dto.d.ts +10 -10
  179. package/lib/generated-client/models/client-capabilities.d.ts +10 -10
  180. package/lib/generated-client/models/client-log-document-response-dto.d.ts +1 -1
  181. package/lib/generated-client/models/codec-profile.d.ts +5 -5
  182. package/lib/generated-client/models/codec-type.d.ts +6 -5
  183. package/lib/generated-client/models/codec-type.js +7 -9
  184. package/lib/generated-client/models/collection-creation-result.d.ts +1 -1
  185. package/lib/generated-client/models/collection-type-options.d.ts +11 -10
  186. package/lib/generated-client/models/collection-type-options.js +12 -14
  187. package/lib/generated-client/models/config-image-types.d.ts +7 -7
  188. package/lib/generated-client/models/configuration-page-info.d.ts +6 -6
  189. package/lib/generated-client/models/container-profile.d.ts +3 -3
  190. package/lib/generated-client/models/control-response.d.ts +3 -3
  191. package/lib/generated-client/models/country-info.d.ts +4 -4
  192. package/lib/generated-client/models/create-playlist-dto.d.ts +4 -4
  193. package/lib/generated-client/models/create-user-by-name.d.ts +2 -2
  194. package/lib/generated-client/models/culture-dto.d.ts +5 -5
  195. package/lib/generated-client/models/day-of-week.d.ts +10 -9
  196. package/lib/generated-client/models/day-of-week.js +11 -13
  197. package/lib/generated-client/models/day-pattern.d.ts +6 -5
  198. package/lib/generated-client/models/day-pattern.js +7 -9
  199. package/lib/generated-client/models/default-directory-browser-info-dto.d.ts +1 -1
  200. package/lib/generated-client/models/device-identification.d.ts +9 -9
  201. package/lib/generated-client/models/device-info-query-result.d.ts +3 -3
  202. package/lib/generated-client/models/device-info.d.ts +10 -10
  203. package/lib/generated-client/models/device-options-dto.d.ts +3 -3
  204. package/lib/generated-client/models/device-options.d.ts +3 -3
  205. package/lib/generated-client/models/device-profile-info.d.ts +3 -3
  206. package/lib/generated-client/models/device-profile-type.d.ts +5 -4
  207. package/lib/generated-client/models/device-profile-type.js +6 -8
  208. package/lib/generated-client/models/device-profile.d.ts +39 -39
  209. package/lib/generated-client/models/direct-play-profile.d.ts +4 -4
  210. package/lib/generated-client/models/display-preferences-dto.d.ts +14 -14
  211. package/lib/generated-client/models/dlna-options.d.ts +11 -11
  212. package/lib/generated-client/models/dlna-profile-type.d.ts +7 -6
  213. package/lib/generated-client/models/dlna-profile-type.js +8 -10
  214. package/lib/generated-client/models/dynamic-day-of-week.d.ts +13 -12
  215. package/lib/generated-client/models/dynamic-day-of-week.js +14 -16
  216. package/lib/generated-client/models/embedded-subtitle-options.d.ts +7 -6
  217. package/lib/generated-client/models/embedded-subtitle-options.js +8 -10
  218. package/lib/generated-client/models/encoding-context.d.ts +5 -4
  219. package/lib/generated-client/models/encoding-context.js +6 -8
  220. package/lib/generated-client/models/encoding-options.d.ts +38 -38
  221. package/lib/generated-client/models/end-point-info.d.ts +2 -2
  222. package/lib/generated-client/models/external-id-info.d.ts +4 -4
  223. package/lib/generated-client/models/external-id-media-type.d.ts +15 -14
  224. package/lib/generated-client/models/external-id-media-type.js +16 -18
  225. package/lib/generated-client/models/external-url.d.ts +2 -2
  226. package/lib/generated-client/models/ffmpeg-location.d.ts +7 -6
  227. package/lib/generated-client/models/ffmpeg-location.js +8 -10
  228. package/lib/generated-client/models/file-system-entry-info.d.ts +3 -3
  229. package/lib/generated-client/models/file-system-entry-type.d.ts +7 -6
  230. package/lib/generated-client/models/file-system-entry-type.js +8 -10
  231. package/lib/generated-client/models/font-file.d.ts +4 -4
  232. package/lib/generated-client/models/forgot-password-action.d.ts +6 -5
  233. package/lib/generated-client/models/forgot-password-action.js +7 -9
  234. package/lib/generated-client/models/forgot-password-dto.d.ts +1 -1
  235. package/lib/generated-client/models/forgot-password-pin-dto.d.ts +1 -1
  236. package/lib/generated-client/models/forgot-password-result.d.ts +3 -3
  237. package/lib/generated-client/models/general-command-type.d.ts +45 -44
  238. package/lib/generated-client/models/general-command-type.js +46 -48
  239. package/lib/generated-client/models/general-command.d.ts +3 -3
  240. package/lib/generated-client/models/get-programs-dto.d.ts +27 -27
  241. package/lib/generated-client/models/group-info-dto.d.ts +5 -5
  242. package/lib/generated-client/models/group-queue-mode.d.ts +5 -4
  243. package/lib/generated-client/models/group-queue-mode.js +6 -8
  244. package/lib/generated-client/models/group-repeat-mode.d.ts +6 -5
  245. package/lib/generated-client/models/group-repeat-mode.js +7 -9
  246. package/lib/generated-client/models/group-shuffle-mode.d.ts +5 -4
  247. package/lib/generated-client/models/group-shuffle-mode.js +6 -8
  248. package/lib/generated-client/models/group-state-type.d.ts +7 -6
  249. package/lib/generated-client/models/group-state-type.js +8 -10
  250. package/lib/generated-client/models/group-update-type.d.ts +14 -13
  251. package/lib/generated-client/models/group-update-type.js +15 -17
  252. package/lib/generated-client/models/guide-info.d.ts +2 -2
  253. package/lib/generated-client/models/hardware-encoding-type.d.ts +9 -8
  254. package/lib/generated-client/models/hardware-encoding-type.js +10 -12
  255. package/lib/generated-client/models/header-match-type.d.ts +6 -5
  256. package/lib/generated-client/models/header-match-type.js +7 -9
  257. package/lib/generated-client/models/http-header-info.d.ts +3 -3
  258. package/lib/generated-client/models/ignore-wait-request-dto.d.ts +1 -1
  259. package/lib/generated-client/models/image-by-name-info.d.ts +5 -5
  260. package/lib/generated-client/models/image-format.d.ts +8 -7
  261. package/lib/generated-client/models/image-format.js +9 -11
  262. package/lib/generated-client/models/image-info.d.ts +8 -8
  263. package/lib/generated-client/models/image-option.d.ts +3 -3
  264. package/lib/generated-client/models/image-orientation.d.ts +11 -10
  265. package/lib/generated-client/models/image-orientation.js +12 -14
  266. package/lib/generated-client/models/image-provider-info.d.ts +2 -2
  267. package/lib/generated-client/models/image-saving-convention.d.ts +5 -4
  268. package/lib/generated-client/models/image-saving-convention.js +6 -8
  269. package/lib/generated-client/models/image-type.d.ts +16 -15
  270. package/lib/generated-client/models/image-type.js +17 -19
  271. package/lib/generated-client/models/index.d.ts +1 -0
  272. package/lib/generated-client/models/index.js +74 -300
  273. package/lib/generated-client/models/installation-info.d.ts +7 -7
  274. package/lib/generated-client/models/iplugin.d.ts +7 -7
  275. package/lib/generated-client/models/iso-type.d.ts +5 -4
  276. package/lib/generated-client/models/iso-type.js +6 -8
  277. package/lib/generated-client/models/item-counts.d.ts +12 -12
  278. package/lib/generated-client/models/item-fields.d.ts +64 -63
  279. package/lib/generated-client/models/item-fields.js +65 -67
  280. package/lib/generated-client/models/item-filter.d.ts +12 -11
  281. package/lib/generated-client/models/item-filter.js +13 -15
  282. package/lib/generated-client/models/join-group-request-dto.d.ts +1 -1
  283. package/lib/generated-client/models/keep-until.d.ts +7 -6
  284. package/lib/generated-client/models/keep-until.js +8 -10
  285. package/lib/generated-client/models/library-option-info-dto.d.ts +2 -2
  286. package/lib/generated-client/models/library-options-result-dto.d.ts +4 -4
  287. package/lib/generated-client/models/library-options.d.ts +27 -27
  288. package/lib/generated-client/models/library-type-options-dto.d.ts +5 -5
  289. package/lib/generated-client/models/library-update-info.d.ts +7 -7
  290. package/lib/generated-client/models/listings-provider-info.d.ts +18 -18
  291. package/lib/generated-client/models/live-stream-response.d.ts +1 -1
  292. package/lib/generated-client/models/live-tv-info.d.ts +3 -3
  293. package/lib/generated-client/models/live-tv-options.d.ts +13 -13
  294. package/lib/generated-client/models/live-tv-service-info.d.ts +8 -8
  295. package/lib/generated-client/models/live-tv-service-status.d.ts +5 -4
  296. package/lib/generated-client/models/live-tv-service-status.js +6 -8
  297. package/lib/generated-client/models/localization-option.d.ts +2 -2
  298. package/lib/generated-client/models/location-type.d.ts +7 -6
  299. package/lib/generated-client/models/location-type.js +8 -10
  300. package/lib/generated-client/models/log-file.d.ts +4 -4
  301. package/lib/generated-client/models/log-level.d.ts +10 -9
  302. package/lib/generated-client/models/log-level.js +11 -13
  303. package/lib/generated-client/models/media-attachment.d.ts +7 -7
  304. package/lib/generated-client/models/media-encoder-path-dto.d.ts +2 -2
  305. package/lib/generated-client/models/media-path-dto.d.ts +3 -3
  306. package/lib/generated-client/models/media-path-info.d.ts +2 -2
  307. package/lib/generated-client/models/media-protocol.d.ts +10 -9
  308. package/lib/generated-client/models/media-protocol.js +11 -13
  309. package/lib/generated-client/models/media-source-info.d.ts +42 -42
  310. package/lib/generated-client/models/media-source-type.d.ts +6 -5
  311. package/lib/generated-client/models/media-source-type.js +7 -9
  312. package/lib/generated-client/models/media-stream-type.d.ts +8 -6
  313. package/lib/generated-client/models/media-stream-type.js +9 -10
  314. package/lib/generated-client/models/media-stream.d.ts +58 -58
  315. package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
  316. package/lib/generated-client/models/media-update-info-path-dto.d.ts +2 -2
  317. package/lib/generated-client/models/media-url.d.ts +2 -2
  318. package/lib/generated-client/models/message-command.d.ts +3 -3
  319. package/lib/generated-client/models/metadata-configuration.d.ts +1 -1
  320. package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
  321. package/lib/generated-client/models/metadata-field.d.ts +12 -11
  322. package/lib/generated-client/models/metadata-field.js +13 -15
  323. package/lib/generated-client/models/metadata-options.d.ts +7 -7
  324. package/lib/generated-client/models/metadata-refresh-mode.d.ts +7 -6
  325. package/lib/generated-client/models/metadata-refresh-mode.js +8 -10
  326. package/lib/generated-client/models/move-playlist-item-request-dto.d.ts +2 -2
  327. package/lib/generated-client/models/movie-info-remote-search-query.d.ts +4 -4
  328. package/lib/generated-client/models/movie-info.d.ts +11 -11
  329. package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +4 -4
  330. package/lib/generated-client/models/music-video-info.d.ts +12 -12
  331. package/lib/generated-client/models/name-guid-pair.d.ts +2 -2
  332. package/lib/generated-client/models/name-id-pair.d.ts +2 -2
  333. package/lib/generated-client/models/name-value-pair.d.ts +2 -2
  334. package/lib/generated-client/models/network-configuration.d.ts +34 -34
  335. package/lib/generated-client/models/new-group-request-dto.d.ts +1 -1
  336. package/lib/generated-client/models/next-item-request-dto.d.ts +1 -1
  337. package/lib/generated-client/models/notification-dto.d.ts +8 -8
  338. package/lib/generated-client/models/notification-level.d.ts +6 -5
  339. package/lib/generated-client/models/notification-level.js +7 -9
  340. package/lib/generated-client/models/notification-option.d.ts +6 -6
  341. package/lib/generated-client/models/notification-options.d.ts +1 -1
  342. package/lib/generated-client/models/notification-result-dto.d.ts +2 -2
  343. package/lib/generated-client/models/notification-type-info.d.ts +5 -5
  344. package/lib/generated-client/models/notifications-summary-dto.d.ts +2 -2
  345. package/lib/generated-client/models/object-group-update.d.ts +3 -3
  346. package/lib/generated-client/models/open-live-stream-dto.d.ts +13 -13
  347. package/lib/generated-client/models/package-info.d.ts +8 -8
  348. package/lib/generated-client/models/parental-rating.d.ts +2 -2
  349. package/lib/generated-client/models/path-substitution.d.ts +2 -2
  350. package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +4 -4
  351. package/lib/generated-client/models/person-lookup-info.d.ts +11 -11
  352. package/lib/generated-client/models/pin-redeem-result.d.ts +2 -2
  353. package/lib/generated-client/models/ping-request-dto.d.ts +1 -1
  354. package/lib/generated-client/models/play-access.d.ts +5 -4
  355. package/lib/generated-client/models/play-access.js +6 -8
  356. package/lib/generated-client/models/play-command.d.ts +8 -7
  357. package/lib/generated-client/models/play-command.js +9 -11
  358. package/lib/generated-client/models/play-method.d.ts +6 -5
  359. package/lib/generated-client/models/play-method.js +7 -9
  360. package/lib/generated-client/models/play-request-dto.d.ts +3 -3
  361. package/lib/generated-client/models/play-request.d.ts +8 -8
  362. package/lib/generated-client/models/playback-error-code.d.ts +6 -5
  363. package/lib/generated-client/models/playback-error-code.js +7 -9
  364. package/lib/generated-client/models/playback-info-dto.d.ts +15 -15
  365. package/lib/generated-client/models/playback-info-response.d.ts +3 -3
  366. package/lib/generated-client/models/playback-progress-info.d.ts +20 -20
  367. package/lib/generated-client/models/playback-start-info.d.ts +20 -20
  368. package/lib/generated-client/models/playback-stop-info.d.ts +11 -11
  369. package/lib/generated-client/models/player-state-info.d.ts +11 -11
  370. package/lib/generated-client/models/playlist-creation-result.d.ts +1 -1
  371. package/lib/generated-client/models/playstate-command.d.ts +12 -11
  372. package/lib/generated-client/models/playstate-command.js +13 -15
  373. package/lib/generated-client/models/playstate-request.d.ts +3 -3
  374. package/lib/generated-client/models/plugin-info.d.ts +8 -8
  375. package/lib/generated-client/models/plugin-status.d.ts +10 -9
  376. package/lib/generated-client/models/plugin-status.js +11 -13
  377. package/lib/generated-client/models/previous-item-request-dto.d.ts +1 -1
  378. package/lib/generated-client/models/problem-details.d.ts +5 -5
  379. package/lib/generated-client/models/profile-condition-type.d.ts +8 -7
  380. package/lib/generated-client/models/profile-condition-type.js +9 -11
  381. package/lib/generated-client/models/profile-condition-value.d.ts +27 -26
  382. package/lib/generated-client/models/profile-condition-value.js +28 -30
  383. package/lib/generated-client/models/profile-condition.d.ts +4 -4
  384. package/lib/generated-client/models/program-audio.d.ts +9 -8
  385. package/lib/generated-client/models/program-audio.js +10 -12
  386. package/lib/generated-client/models/public-system-info.d.ts +7 -7
  387. package/lib/generated-client/models/query-filters-legacy.d.ts +4 -4
  388. package/lib/generated-client/models/query-filters.d.ts +2 -2
  389. package/lib/generated-client/models/queue-item.d.ts +2 -2
  390. package/lib/generated-client/models/queue-request-dto.d.ts +2 -2
  391. package/lib/generated-client/models/quick-connect-dto.d.ts +1 -1
  392. package/lib/generated-client/models/quick-connect-result.d.ts +8 -8
  393. package/lib/generated-client/models/rating-type.d.ts +5 -4
  394. package/lib/generated-client/models/rating-type.js +6 -8
  395. package/lib/generated-client/models/ready-request-dto.d.ts +4 -4
  396. package/lib/generated-client/models/recommendation-dto.d.ts +4 -4
  397. package/lib/generated-client/models/recommendation-type.d.ts +9 -8
  398. package/lib/generated-client/models/recommendation-type.js +10 -12
  399. package/lib/generated-client/models/recording-status.d.ts +10 -9
  400. package/lib/generated-client/models/recording-status.js +11 -13
  401. package/lib/generated-client/models/remote-image-info.d.ts +10 -10
  402. package/lib/generated-client/models/remote-image-result.d.ts +3 -3
  403. package/lib/generated-client/models/remote-search-result.d.ts +12 -12
  404. package/lib/generated-client/models/remote-subtitle-info.d.ts +11 -11
  405. package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +3 -3
  406. package/lib/generated-client/models/repeat-mode.d.ts +6 -5
  407. package/lib/generated-client/models/repeat-mode.js +7 -9
  408. package/lib/generated-client/models/repository-info.d.ts +3 -3
  409. package/lib/generated-client/models/response-profile.d.ts +7 -7
  410. package/lib/generated-client/models/scroll-direction.d.ts +5 -4
  411. package/lib/generated-client/models/scroll-direction.js +6 -8
  412. package/lib/generated-client/models/search-hint-result.d.ts +2 -2
  413. package/lib/generated-client/models/search-hint.d.ts +29 -29
  414. package/lib/generated-client/models/seek-request-dto.d.ts +1 -1
  415. package/lib/generated-client/models/send-command-type.d.ts +7 -6
  416. package/lib/generated-client/models/send-command-type.js +8 -10
  417. package/lib/generated-client/models/send-command.d.ts +6 -6
  418. package/lib/generated-client/models/send-to-user-type.d.ts +6 -5
  419. package/lib/generated-client/models/send-to-user-type.js +7 -9
  420. package/lib/generated-client/models/series-info-remote-search-query.d.ts +4 -4
  421. package/lib/generated-client/models/series-info.d.ts +11 -11
  422. package/lib/generated-client/models/series-status.d.ts +5 -4
  423. package/lib/generated-client/models/series-status.js +6 -8
  424. package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +3 -3
  425. package/lib/generated-client/models/series-timer-info-dto.d.ts +35 -35
  426. package/lib/generated-client/models/server-configuration.d.ts +48 -48
  427. package/lib/generated-client/models/server-discovery-info.d.ts +4 -4
  428. package/lib/generated-client/models/session-info.d.ts +29 -29
  429. package/lib/generated-client/models/session-message-type.d.ts +37 -36
  430. package/lib/generated-client/models/session-message-type.js +38 -40
  431. package/lib/generated-client/models/session-user-info.d.ts +2 -2
  432. package/lib/generated-client/models/set-channel-mapping-dto.d.ts +3 -3
  433. package/lib/generated-client/models/set-playlist-item-request-dto.d.ts +1 -1
  434. package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
  435. package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
  436. package/lib/generated-client/models/song-info.d.ts +14 -14
  437. package/lib/generated-client/models/sort-order.d.ts +5 -4
  438. package/lib/generated-client/models/sort-order.js +6 -8
  439. package/lib/generated-client/models/special-view-option-dto.d.ts +2 -2
  440. package/lib/generated-client/models/startup-configuration-dto.d.ts +3 -3
  441. package/lib/generated-client/models/startup-remote-access-dto.d.ts +2 -2
  442. package/lib/generated-client/models/startup-user-dto.d.ts +2 -2
  443. package/lib/generated-client/models/subtitle-delivery-method.d.ts +8 -7
  444. package/lib/generated-client/models/subtitle-delivery-method.js +9 -11
  445. package/lib/generated-client/models/subtitle-options.d.ts +9 -9
  446. package/lib/generated-client/models/subtitle-playback-mode.d.ts +8 -7
  447. package/lib/generated-client/models/subtitle-playback-mode.js +9 -11
  448. package/lib/generated-client/models/subtitle-profile.d.ts +5 -5
  449. package/lib/generated-client/models/sync-play-user-access-type.d.ts +6 -5
  450. package/lib/generated-client/models/sync-play-user-access-type.js +7 -9
  451. package/lib/generated-client/models/system-info.d.ts +26 -26
  452. package/lib/generated-client/models/task-completion-status.d.ts +7 -6
  453. package/lib/generated-client/models/task-completion-status.js +8 -10
  454. package/lib/generated-client/models/task-info.d.ts +10 -10
  455. package/lib/generated-client/models/task-result.d.ts +8 -8
  456. package/lib/generated-client/models/task-state.d.ts +6 -5
  457. package/lib/generated-client/models/task-state.js +7 -9
  458. package/lib/generated-client/models/task-trigger-info.d.ts +5 -5
  459. package/lib/generated-client/models/theme-media-result.d.ts +4 -4
  460. package/lib/generated-client/models/timer-event-info.d.ts +2 -2
  461. package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
  462. package/lib/generated-client/models/timer-info-dto.d.ts +28 -28
  463. package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +4 -4
  464. package/lib/generated-client/models/trailer-info.d.ts +11 -11
  465. package/lib/generated-client/models/transcode-reason.d.ts +43 -0
  466. package/lib/generated-client/models/transcode-reason.js +46 -0
  467. package/lib/generated-client/models/transcode-seek-info.d.ts +5 -4
  468. package/lib/generated-client/models/transcode-seek-info.js +6 -8
  469. package/lib/generated-client/models/transcoding-info.d.ts +15 -45
  470. package/lib/generated-client/models/transcoding-profile.d.ts +16 -16
  471. package/lib/generated-client/models/transport-stream-timestamp.d.ts +6 -5
  472. package/lib/generated-client/models/transport-stream-timestamp.js +7 -9
  473. package/lib/generated-client/models/tuner-channel-mapping.d.ts +4 -4
  474. package/lib/generated-client/models/tuner-host-info.d.ts +11 -11
  475. package/lib/generated-client/models/type-options.d.ts +6 -6
  476. package/lib/generated-client/models/unrated-item.d.ts +12 -11
  477. package/lib/generated-client/models/unrated-item.js +13 -15
  478. package/lib/generated-client/models/update-library-options-dto.d.ts +2 -2
  479. package/lib/generated-client/models/update-media-path-request-dto.d.ts +2 -2
  480. package/lib/generated-client/models/update-user-easy-password.d.ts +3 -3
  481. package/lib/generated-client/models/update-user-password.d.ts +4 -4
  482. package/lib/generated-client/models/upload-subtitle-dto.d.ts +4 -4
  483. package/lib/generated-client/models/user-configuration.d.ts +15 -15
  484. package/lib/generated-client/models/user-dto.d.ts +14 -14
  485. package/lib/generated-client/models/user-item-data-dto.d.ts +11 -11
  486. package/lib/generated-client/models/user-policy.d.ts +39 -39
  487. package/lib/generated-client/models/utc-time-response.d.ts +2 -2
  488. package/lib/generated-client/models/validate-path-dto.d.ts +3 -3
  489. package/lib/generated-client/models/version-info.d.ts +9 -9
  490. package/lib/generated-client/models/video-type.d.ts +7 -6
  491. package/lib/generated-client/models/video-type.js +8 -10
  492. package/lib/generated-client/models/video3-dformat.d.ts +8 -7
  493. package/lib/generated-client/models/video3-dformat.js +9 -11
  494. package/lib/generated-client/models/virtual-folder-info.d.ts +8 -8
  495. package/lib/generated-client/models/wake-on-lan-info.d.ts +2 -2
  496. package/lib/generated-client/models/xbmc-metadata-options.d.ts +5 -5
  497. package/lib/generated-client/models/xml-attribute.d.ts +2 -2
  498. package/lib/index.js +9 -39
  499. package/lib/jellyfin.d.ts +5 -7
  500. package/lib/jellyfin.js +12 -18
  501. package/lib/models/api/image-request-parameters.d.ts +1 -1
  502. package/lib/models/api/index.js +1 -23
  503. package/lib/models/api/item-sort-by.js +3 -4
  504. package/lib/models/index.js +2 -25
  505. package/lib/models/recommended-server-info.d.ts +2 -2
  506. package/lib/models/recommended-server-info.js +3 -4
  507. package/lib/models/recommended-server-issue.js +31 -77
  508. package/lib/node_modules/tslib/tslib.es6.js +26 -0
  509. package/lib/utils/address-candidates.js +30 -30
  510. package/lib/utils/api/activity-log-api.d.ts +1 -1
  511. package/lib/utils/api/activity-log-api.js +5 -6
  512. package/lib/utils/api/api-key-api.d.ts +1 -1
  513. package/lib/utils/api/api-key-api.js +5 -6
  514. package/lib/utils/api/artists-api.d.ts +1 -1
  515. package/lib/utils/api/artists-api.js +5 -6
  516. package/lib/utils/api/audio-api.d.ts +1 -1
  517. package/lib/utils/api/audio-api.js +5 -6
  518. package/lib/utils/api/branding-api.d.ts +1 -1
  519. package/lib/utils/api/branding-api.js +5 -6
  520. package/lib/utils/api/channels-api.d.ts +1 -1
  521. package/lib/utils/api/channels-api.js +5 -6
  522. package/lib/utils/api/client-log-api.d.ts +1 -1
  523. package/lib/utils/api/client-log-api.js +5 -6
  524. package/lib/utils/api/collection-api.d.ts +1 -1
  525. package/lib/utils/api/collection-api.js +5 -6
  526. package/lib/utils/api/configuration-api.d.ts +1 -1
  527. package/lib/utils/api/configuration-api.js +5 -6
  528. package/lib/utils/api/dashboard-api.d.ts +1 -1
  529. package/lib/utils/api/dashboard-api.js +5 -6
  530. package/lib/utils/api/devices-api.d.ts +1 -1
  531. package/lib/utils/api/devices-api.js +5 -6
  532. package/lib/utils/api/display-preferences-api.d.ts +1 -1
  533. package/lib/utils/api/display-preferences-api.js +5 -6
  534. package/lib/utils/api/dlna-api.d.ts +1 -1
  535. package/lib/utils/api/dlna-api.js +5 -6
  536. package/lib/utils/api/dlna-server-api.d.ts +1 -1
  537. package/lib/utils/api/dlna-server-api.js +5 -6
  538. package/lib/utils/api/dynamic-hls-api.d.ts +1 -1
  539. package/lib/utils/api/dynamic-hls-api.js +5 -6
  540. package/lib/utils/api/environment-api.d.ts +1 -1
  541. package/lib/utils/api/environment-api.js +5 -6
  542. package/lib/utils/api/filter-api.d.ts +1 -1
  543. package/lib/utils/api/filter-api.js +5 -6
  544. package/lib/utils/api/genres-api.d.ts +1 -1
  545. package/lib/utils/api/genres-api.js +5 -6
  546. package/lib/utils/api/hls-segment-api.d.ts +1 -1
  547. package/lib/utils/api/hls-segment-api.js +5 -6
  548. package/lib/utils/api/image-api.d.ts +1 -1
  549. package/lib/utils/api/image-api.js +5 -6
  550. package/lib/utils/api/image-by-name-api.d.ts +1 -1
  551. package/lib/utils/api/image-by-name-api.js +5 -6
  552. package/lib/utils/api/index.d.ts +66 -0
  553. package/lib/utils/api/index.js +61 -0
  554. package/lib/utils/api/instant-mix-api.d.ts +1 -1
  555. package/lib/utils/api/instant-mix-api.js +5 -6
  556. package/lib/utils/api/item-lookup-api.d.ts +1 -1
  557. package/lib/utils/api/item-lookup-api.js +5 -6
  558. package/lib/utils/api/item-refresh-api.d.ts +1 -1
  559. package/lib/utils/api/item-refresh-api.js +5 -6
  560. package/lib/utils/api/item-update-api.d.ts +1 -1
  561. package/lib/utils/api/item-update-api.js +5 -6
  562. package/lib/utils/api/items-api.d.ts +1 -1
  563. package/lib/utils/api/items-api.js +5 -6
  564. package/lib/utils/api/library-api.d.ts +1 -1
  565. package/lib/utils/api/library-api.js +5 -6
  566. package/lib/utils/api/library-structure-api.d.ts +1 -1
  567. package/lib/utils/api/library-structure-api.js +5 -6
  568. package/lib/utils/api/live-tv-api.d.ts +1 -1
  569. package/lib/utils/api/live-tv-api.js +5 -6
  570. package/lib/utils/api/localization-api.d.ts +1 -1
  571. package/lib/utils/api/localization-api.js +5 -6
  572. package/lib/utils/api/media-info-api.d.ts +1 -1
  573. package/lib/utils/api/media-info-api.js +5 -6
  574. package/lib/utils/api/movies-api.d.ts +1 -1
  575. package/lib/utils/api/movies-api.js +5 -6
  576. package/lib/utils/api/music-genres-api.d.ts +1 -1
  577. package/lib/utils/api/music-genres-api.js +5 -6
  578. package/lib/utils/api/notifications-api.d.ts +1 -1
  579. package/lib/utils/api/notifications-api.js +5 -6
  580. package/lib/utils/api/package-api.d.ts +1 -1
  581. package/lib/utils/api/package-api.js +5 -6
  582. package/lib/utils/api/persons-api.d.ts +1 -1
  583. package/lib/utils/api/persons-api.js +5 -6
  584. package/lib/utils/api/playlists-api.d.ts +1 -1
  585. package/lib/utils/api/playlists-api.js +5 -6
  586. package/lib/utils/api/playstate-api.d.ts +1 -1
  587. package/lib/utils/api/playstate-api.js +5 -6
  588. package/lib/utils/api/plugins-api.d.ts +1 -1
  589. package/lib/utils/api/plugins-api.js +5 -6
  590. package/lib/utils/api/quick-connect-api.d.ts +1 -1
  591. package/lib/utils/api/quick-connect-api.js +5 -6
  592. package/lib/utils/api/remote-image-api.d.ts +1 -1
  593. package/lib/utils/api/remote-image-api.js +5 -6
  594. package/lib/utils/api/scheduled-tasks-api.d.ts +1 -1
  595. package/lib/utils/api/scheduled-tasks-api.js +5 -6
  596. package/lib/utils/api/search-api.d.ts +1 -1
  597. package/lib/utils/api/search-api.js +5 -6
  598. package/lib/utils/api/session-api.d.ts +1 -1
  599. package/lib/utils/api/session-api.js +5 -6
  600. package/lib/utils/api/startup-api.d.ts +1 -1
  601. package/lib/utils/api/startup-api.js +5 -6
  602. package/lib/utils/api/studios-api.d.ts +1 -1
  603. package/lib/utils/api/studios-api.js +5 -6
  604. package/lib/utils/api/subtitle-api.d.ts +1 -1
  605. package/lib/utils/api/subtitle-api.js +5 -6
  606. package/lib/utils/api/suggestions-api.d.ts +1 -1
  607. package/lib/utils/api/suggestions-api.js +5 -6
  608. package/lib/utils/api/sync-play-api.d.ts +1 -1
  609. package/lib/utils/api/sync-play-api.js +5 -6
  610. package/lib/utils/api/system-api.d.ts +1 -1
  611. package/lib/utils/api/system-api.js +5 -6
  612. package/lib/utils/api/time-sync-api.d.ts +1 -1
  613. package/lib/utils/api/time-sync-api.js +5 -6
  614. package/lib/utils/api/tmdb-api.d.ts +1 -1
  615. package/lib/utils/api/tmdb-api.js +5 -6
  616. package/lib/utils/api/trailers-api.d.ts +1 -1
  617. package/lib/utils/api/trailers-api.js +5 -6
  618. package/lib/utils/api/tv-shows-api.d.ts +1 -1
  619. package/lib/utils/api/tv-shows-api.js +5 -6
  620. package/lib/utils/api/universal-audio-api.d.ts +1 -1
  621. package/lib/utils/api/universal-audio-api.js +5 -6
  622. package/lib/utils/api/user-api.d.ts +1 -1
  623. package/lib/utils/api/user-api.js +5 -6
  624. package/lib/utils/api/user-library-api.d.ts +1 -1
  625. package/lib/utils/api/user-library-api.js +5 -6
  626. package/lib/utils/api/user-views-api.d.ts +1 -1
  627. package/lib/utils/api/user-views-api.js +5 -6
  628. package/lib/utils/api/video-attachments-api.d.ts +1 -1
  629. package/lib/utils/api/video-attachments-api.js +5 -6
  630. package/lib/utils/api/videos-api.d.ts +1 -1
  631. package/lib/utils/api/videos-api.js +5 -6
  632. package/lib/utils/api/years-api.d.ts +1 -1
  633. package/lib/utils/api/years-api.js +5 -6
  634. package/lib/utils/authentication.d.ts +1 -1
  635. package/lib/utils/authentication.js +8 -11
  636. package/lib/utils/browser-profiles.d.ts +1 -1
  637. package/lib/utils/browser-profiles.js +11 -12
  638. package/lib/utils/index.js +6 -20
  639. package/lib/utils/url/constants.d.ts +13 -0
  640. package/lib/utils/url/constants.js +15 -0
  641. package/lib/utils/{url.d.ts → url/index.d.ts} +2 -8
  642. package/lib/utils/url/index.js +41 -0
  643. package/lib/utils/{normalize-url.js → url/normalize-url.js} +16 -16
  644. package/lib/{models/api/image-request-parameters.js → versions.d.ts} +4 -2
  645. package/lib/{models/client-info.js → versions.js} +6 -2
  646. package/package.json +21 -17
  647. package/.gitattributes +0 -5
  648. package/lib/generated-client/api.js +0 -89
  649. package/lib/generated-client/models/access-schedule.js +0 -14
  650. package/lib/generated-client/models/activity-log-entry-query-result.js +0 -14
  651. package/lib/generated-client/models/activity-log-entry.js +0 -14
  652. package/lib/generated-client/models/add-virtual-folder-dto.js +0 -14
  653. package/lib/generated-client/models/admin-notification-dto.js +0 -14
  654. package/lib/generated-client/models/album-info-remote-search-query.js +0 -14
  655. package/lib/generated-client/models/album-info.js +0 -14
  656. package/lib/generated-client/models/all-theme-media-result.js +0 -14
  657. package/lib/generated-client/models/artist-info-remote-search-query.js +0 -14
  658. package/lib/generated-client/models/artist-info.js +0 -14
  659. package/lib/generated-client/models/authenticate-user-by-name.js +0 -14
  660. package/lib/generated-client/models/authentication-info-query-result.js +0 -14
  661. package/lib/generated-client/models/authentication-info.js +0 -14
  662. package/lib/generated-client/models/authentication-result.js +0 -14
  663. package/lib/generated-client/models/base-item-dto-image-blur-hashes.js +0 -14
  664. package/lib/generated-client/models/base-item-dto-query-result.js +0 -14
  665. package/lib/generated-client/models/base-item-dto.js +0 -14
  666. package/lib/generated-client/models/base-item-person-image-blur-hashes.js +0 -14
  667. package/lib/generated-client/models/base-item-person.js +0 -14
  668. package/lib/generated-client/models/base-item.js +0 -14
  669. package/lib/generated-client/models/book-info-remote-search-query.js +0 -14
  670. package/lib/generated-client/models/book-info.js +0 -14
  671. package/lib/generated-client/models/box-set-info-remote-search-query.js +0 -14
  672. package/lib/generated-client/models/box-set-info.js +0 -14
  673. package/lib/generated-client/models/branding-options.js +0 -14
  674. package/lib/generated-client/models/buffer-request-dto.js +0 -14
  675. package/lib/generated-client/models/channel-features.js +0 -14
  676. package/lib/generated-client/models/channel-mapping-options-dto.js +0 -14
  677. package/lib/generated-client/models/chapter-info.js +0 -14
  678. package/lib/generated-client/models/client-capabilities-dto.js +0 -14
  679. package/lib/generated-client/models/client-capabilities.js +0 -14
  680. package/lib/generated-client/models/client-log-document-response-dto.js +0 -14
  681. package/lib/generated-client/models/codec-profile.js +0 -14
  682. package/lib/generated-client/models/collection-creation-result.js +0 -14
  683. package/lib/generated-client/models/config-image-types.js +0 -14
  684. package/lib/generated-client/models/configuration-page-info.js +0 -14
  685. package/lib/generated-client/models/container-profile.js +0 -14
  686. package/lib/generated-client/models/control-response.js +0 -14
  687. package/lib/generated-client/models/country-info.js +0 -14
  688. package/lib/generated-client/models/create-playlist-dto.js +0 -14
  689. package/lib/generated-client/models/create-user-by-name.js +0 -14
  690. package/lib/generated-client/models/culture-dto.js +0 -14
  691. package/lib/generated-client/models/default-directory-browser-info-dto.js +0 -14
  692. package/lib/generated-client/models/device-identification.js +0 -14
  693. package/lib/generated-client/models/device-info-query-result.js +0 -14
  694. package/lib/generated-client/models/device-info.js +0 -14
  695. package/lib/generated-client/models/device-options-dto.js +0 -14
  696. package/lib/generated-client/models/device-options.js +0 -14
  697. package/lib/generated-client/models/device-profile-info.js +0 -14
  698. package/lib/generated-client/models/device-profile.js +0 -14
  699. package/lib/generated-client/models/direct-play-profile.js +0 -14
  700. package/lib/generated-client/models/display-preferences-dto.js +0 -14
  701. package/lib/generated-client/models/dlna-options.js +0 -14
  702. package/lib/generated-client/models/encoding-options.js +0 -14
  703. package/lib/generated-client/models/end-point-info.js +0 -14
  704. package/lib/generated-client/models/external-id-info.js +0 -14
  705. package/lib/generated-client/models/external-url.js +0 -14
  706. package/lib/generated-client/models/file-system-entry-info.js +0 -14
  707. package/lib/generated-client/models/font-file.js +0 -14
  708. package/lib/generated-client/models/forgot-password-dto.js +0 -14
  709. package/lib/generated-client/models/forgot-password-pin-dto.js +0 -14
  710. package/lib/generated-client/models/forgot-password-result.js +0 -14
  711. package/lib/generated-client/models/general-command.js +0 -14
  712. package/lib/generated-client/models/get-programs-dto.js +0 -14
  713. package/lib/generated-client/models/group-info-dto.js +0 -14
  714. package/lib/generated-client/models/guide-info.js +0 -14
  715. package/lib/generated-client/models/http-header-info.js +0 -14
  716. package/lib/generated-client/models/ignore-wait-request-dto.js +0 -14
  717. package/lib/generated-client/models/image-by-name-info.js +0 -14
  718. package/lib/generated-client/models/image-info.js +0 -14
  719. package/lib/generated-client/models/image-option.js +0 -14
  720. package/lib/generated-client/models/image-provider-info.js +0 -14
  721. package/lib/generated-client/models/installation-info.js +0 -14
  722. package/lib/generated-client/models/iplugin.js +0 -14
  723. package/lib/generated-client/models/item-counts.js +0 -14
  724. package/lib/generated-client/models/join-group-request-dto.js +0 -14
  725. package/lib/generated-client/models/library-option-info-dto.js +0 -14
  726. package/lib/generated-client/models/library-options-result-dto.js +0 -14
  727. package/lib/generated-client/models/library-options.js +0 -14
  728. package/lib/generated-client/models/library-type-options-dto.js +0 -14
  729. package/lib/generated-client/models/library-update-info.js +0 -14
  730. package/lib/generated-client/models/listings-provider-info.js +0 -14
  731. package/lib/generated-client/models/live-stream-response.js +0 -14
  732. package/lib/generated-client/models/live-tv-info.js +0 -14
  733. package/lib/generated-client/models/live-tv-options.js +0 -14
  734. package/lib/generated-client/models/live-tv-service-info.js +0 -14
  735. package/lib/generated-client/models/localization-option.js +0 -14
  736. package/lib/generated-client/models/log-file.js +0 -14
  737. package/lib/generated-client/models/media-attachment.js +0 -14
  738. package/lib/generated-client/models/media-encoder-path-dto.js +0 -14
  739. package/lib/generated-client/models/media-path-dto.js +0 -14
  740. package/lib/generated-client/models/media-path-info.js +0 -14
  741. package/lib/generated-client/models/media-source-info.js +0 -14
  742. package/lib/generated-client/models/media-stream.js +0 -14
  743. package/lib/generated-client/models/media-update-info-dto.js +0 -14
  744. package/lib/generated-client/models/media-update-info-path-dto.js +0 -14
  745. package/lib/generated-client/models/media-url.js +0 -14
  746. package/lib/generated-client/models/message-command.js +0 -14
  747. package/lib/generated-client/models/metadata-configuration.js +0 -14
  748. package/lib/generated-client/models/metadata-editor-info.js +0 -14
  749. package/lib/generated-client/models/metadata-options.js +0 -14
  750. package/lib/generated-client/models/move-playlist-item-request-dto.js +0 -14
  751. package/lib/generated-client/models/movie-info-remote-search-query.js +0 -14
  752. package/lib/generated-client/models/movie-info.js +0 -14
  753. package/lib/generated-client/models/music-video-info-remote-search-query.js +0 -14
  754. package/lib/generated-client/models/music-video-info.js +0 -14
  755. package/lib/generated-client/models/name-guid-pair.js +0 -14
  756. package/lib/generated-client/models/name-id-pair.js +0 -14
  757. package/lib/generated-client/models/name-value-pair.js +0 -14
  758. package/lib/generated-client/models/network-configuration.js +0 -14
  759. package/lib/generated-client/models/new-group-request-dto.js +0 -14
  760. package/lib/generated-client/models/next-item-request-dto.js +0 -14
  761. package/lib/generated-client/models/notification-dto.js +0 -14
  762. package/lib/generated-client/models/notification-option.js +0 -14
  763. package/lib/generated-client/models/notification-options.js +0 -14
  764. package/lib/generated-client/models/notification-result-dto.js +0 -14
  765. package/lib/generated-client/models/notification-type-info.js +0 -14
  766. package/lib/generated-client/models/notifications-summary-dto.js +0 -14
  767. package/lib/generated-client/models/object-group-update.js +0 -14
  768. package/lib/generated-client/models/open-live-stream-dto.js +0 -14
  769. package/lib/generated-client/models/package-info.js +0 -14
  770. package/lib/generated-client/models/parental-rating.js +0 -14
  771. package/lib/generated-client/models/path-substitution.js +0 -14
  772. package/lib/generated-client/models/person-lookup-info-remote-search-query.js +0 -14
  773. package/lib/generated-client/models/person-lookup-info.js +0 -14
  774. package/lib/generated-client/models/pin-redeem-result.js +0 -14
  775. package/lib/generated-client/models/ping-request-dto.js +0 -14
  776. package/lib/generated-client/models/play-request-dto.js +0 -14
  777. package/lib/generated-client/models/play-request.js +0 -14
  778. package/lib/generated-client/models/playback-info-dto.js +0 -14
  779. package/lib/generated-client/models/playback-info-response.js +0 -14
  780. package/lib/generated-client/models/playback-progress-info.js +0 -14
  781. package/lib/generated-client/models/playback-start-info.js +0 -14
  782. package/lib/generated-client/models/playback-stop-info.js +0 -14
  783. package/lib/generated-client/models/player-state-info.js +0 -14
  784. package/lib/generated-client/models/playlist-creation-result.js +0 -14
  785. package/lib/generated-client/models/playstate-request.js +0 -14
  786. package/lib/generated-client/models/plugin-info.js +0 -14
  787. package/lib/generated-client/models/previous-item-request-dto.js +0 -14
  788. package/lib/generated-client/models/problem-details.js +0 -14
  789. package/lib/generated-client/models/profile-condition.js +0 -14
  790. package/lib/generated-client/models/public-system-info.js +0 -14
  791. package/lib/generated-client/models/query-filters-legacy.js +0 -14
  792. package/lib/generated-client/models/query-filters.js +0 -14
  793. package/lib/generated-client/models/queue-item.js +0 -14
  794. package/lib/generated-client/models/queue-request-dto.js +0 -14
  795. package/lib/generated-client/models/quick-connect-dto.js +0 -14
  796. package/lib/generated-client/models/quick-connect-result.js +0 -14
  797. package/lib/generated-client/models/ready-request-dto.js +0 -14
  798. package/lib/generated-client/models/recommendation-dto.js +0 -14
  799. package/lib/generated-client/models/remote-image-info.js +0 -14
  800. package/lib/generated-client/models/remote-image-result.js +0 -14
  801. package/lib/generated-client/models/remote-search-result.js +0 -14
  802. package/lib/generated-client/models/remote-subtitle-info.js +0 -14
  803. package/lib/generated-client/models/remove-from-playlist-request-dto.js +0 -14
  804. package/lib/generated-client/models/repository-info.js +0 -14
  805. package/lib/generated-client/models/response-profile.js +0 -14
  806. package/lib/generated-client/models/search-hint-result.js +0 -14
  807. package/lib/generated-client/models/search-hint.js +0 -14
  808. package/lib/generated-client/models/seek-request-dto.js +0 -14
  809. package/lib/generated-client/models/send-command.js +0 -14
  810. package/lib/generated-client/models/series-info-remote-search-query.js +0 -14
  811. package/lib/generated-client/models/series-info.js +0 -14
  812. package/lib/generated-client/models/series-timer-info-dto-query-result.js +0 -14
  813. package/lib/generated-client/models/series-timer-info-dto.js +0 -14
  814. package/lib/generated-client/models/server-configuration.js +0 -14
  815. package/lib/generated-client/models/server-discovery-info.js +0 -14
  816. package/lib/generated-client/models/session-info.js +0 -14
  817. package/lib/generated-client/models/session-user-info.js +0 -14
  818. package/lib/generated-client/models/set-channel-mapping-dto.js +0 -14
  819. package/lib/generated-client/models/set-playlist-item-request-dto.js +0 -14
  820. package/lib/generated-client/models/set-repeat-mode-request-dto.js +0 -14
  821. package/lib/generated-client/models/set-shuffle-mode-request-dto.js +0 -14
  822. package/lib/generated-client/models/song-info.js +0 -14
  823. package/lib/generated-client/models/special-view-option-dto.js +0 -14
  824. package/lib/generated-client/models/startup-configuration-dto.js +0 -14
  825. package/lib/generated-client/models/startup-remote-access-dto.js +0 -14
  826. package/lib/generated-client/models/startup-user-dto.js +0 -14
  827. package/lib/generated-client/models/subtitle-options.js +0 -14
  828. package/lib/generated-client/models/subtitle-profile.js +0 -14
  829. package/lib/generated-client/models/system-info.js +0 -14
  830. package/lib/generated-client/models/task-info.js +0 -14
  831. package/lib/generated-client/models/task-result.js +0 -14
  832. package/lib/generated-client/models/task-trigger-info.js +0 -14
  833. package/lib/generated-client/models/theme-media-result.js +0 -14
  834. package/lib/generated-client/models/timer-event-info.js +0 -14
  835. package/lib/generated-client/models/timer-info-dto-query-result.js +0 -14
  836. package/lib/generated-client/models/timer-info-dto.js +0 -14
  837. package/lib/generated-client/models/trailer-info-remote-search-query.js +0 -14
  838. package/lib/generated-client/models/trailer-info.js +0 -14
  839. package/lib/generated-client/models/transcoding-info.js +0 -47
  840. package/lib/generated-client/models/transcoding-profile.js +0 -14
  841. package/lib/generated-client/models/tuner-channel-mapping.js +0 -14
  842. package/lib/generated-client/models/tuner-host-info.js +0 -14
  843. package/lib/generated-client/models/type-options.js +0 -14
  844. package/lib/generated-client/models/update-library-options-dto.js +0 -14
  845. package/lib/generated-client/models/update-media-path-request-dto.js +0 -14
  846. package/lib/generated-client/models/update-user-easy-password.js +0 -14
  847. package/lib/generated-client/models/update-user-password.js +0 -14
  848. package/lib/generated-client/models/upload-subtitle-dto.js +0 -14
  849. package/lib/generated-client/models/user-configuration.js +0 -14
  850. package/lib/generated-client/models/user-dto.js +0 -14
  851. package/lib/generated-client/models/user-item-data-dto.js +0 -14
  852. package/lib/generated-client/models/user-policy.js +0 -14
  853. package/lib/generated-client/models/utc-time-response.js +0 -14
  854. package/lib/generated-client/models/validate-path-dto.js +0 -14
  855. package/lib/generated-client/models/version-info.js +0 -14
  856. package/lib/generated-client/models/virtual-folder-info.js +0 -14
  857. package/lib/generated-client/models/wake-on-lan-info.js +0 -14
  858. package/lib/generated-client/models/xbmc-metadata-options.js +0 -14
  859. package/lib/generated-client/models/xml-attribute.js +0 -14
  860. package/lib/models/device-info.js +0 -7
  861. package/lib/utils/url.js +0 -54
  862. package/openapi-templates/licenseInfo.mustache +0 -10
  863. package/tsconfig.json +0 -25
  864. /package/lib/utils/{normalize-url.d.ts → url/normalize-url.d.ts} +0 -0
@@ -1,95 +1,14 @@
1
- "use strict";
1
+ import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
2
+ import globalAxios from 'axios';
3
+ import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
4
+ import { BaseAPI, BASE_PATH } from '../base.js';
5
+
2
6
  /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6
- * Do not edit the class manually.
7
- *
8
- * Jellyfin API
9
- *
10
- * This Source Code Form is subject to the terms of the Mozilla Public
11
- * License, v. 2.0. If a copy of the MPL was not distributed with this
12
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
13
- */
14
- var __extends = (this && this.__extends) || (function () {
15
- var extendStatics = function (d, b) {
16
- extendStatics = Object.setPrototypeOf ||
17
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19
- return extendStatics(d, b);
20
- };
21
- return function (d, b) {
22
- if (typeof b !== "function" && b !== null)
23
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
24
- extendStatics(d, b);
25
- function __() { this.constructor = d; }
26
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27
- };
28
- })();
29
- var __assign = (this && this.__assign) || function () {
30
- __assign = Object.assign || function(t) {
31
- for (var s, i = 1, n = arguments.length; i < n; i++) {
32
- s = arguments[i];
33
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
34
- t[p] = s[p];
35
- }
36
- return t;
37
- };
38
- return __assign.apply(this, arguments);
39
- };
40
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
41
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
42
- return new (P || (P = Promise))(function (resolve, reject) {
43
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
44
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
45
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
46
- step((generator = generator.apply(thisArg, _arguments || [])).next());
47
- });
48
- };
49
- var __generator = (this && this.__generator) || function (thisArg, body) {
50
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
51
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
52
- function verb(n) { return function (v) { return step([n, v]); }; }
53
- function step(op) {
54
- if (f) throw new TypeError("Generator is already executing.");
55
- while (_) try {
56
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
57
- if (y = 0, t) op = [op[0] & 2, t.value];
58
- switch (op[0]) {
59
- case 0: case 1: t = op; break;
60
- case 4: _.label++; return { value: op[1], done: false };
61
- case 5: _.label++; y = op[1]; op = [0]; continue;
62
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
63
- default:
64
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
65
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
66
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
67
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
68
- if (t[2]) _.ops.pop();
69
- _.trys.pop(); continue;
70
- }
71
- op = body.call(thisArg, _);
72
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
73
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
74
- }
75
- };
76
- var __importDefault = (this && this.__importDefault) || function (mod) {
77
- return (mod && mod.__esModule) ? mod : { "default": mod };
78
- };
79
- Object.defineProperty(exports, "__esModule", { value: true });
80
- exports.LibraryApi = exports.LibraryApiFactory = exports.LibraryApiFp = exports.LibraryApiAxiosParamCreator = void 0;
81
- var axios_1 = __importDefault(require("axios"));
82
- // Some imports not used depending on template conditions
83
- // @ts-ignore
84
- var common_1 = require("../common");
85
- // @ts-ignore
86
- var base_1 = require("../base");
87
7
  /**
88
8
  * LibraryApi - axios parameter creator
89
9
  * @export
90
10
  */
91
- var LibraryApiAxiosParamCreator = function (configuration) {
92
- var _this = this;
11
+ const LibraryApiAxiosParamCreator = function (configuration) {
93
12
  return {
94
13
  /**
95
14
  *
@@ -98,40 +17,30 @@ var LibraryApiAxiosParamCreator = function (configuration) {
98
17
  * @param {*} [options] Override http request option.
99
18
  * @throws {RequiredError}
100
19
  */
101
- deleteItem: function (itemId, options) {
102
- if (options === void 0) { options = {}; }
103
- return __awaiter(_this, void 0, void 0, function () {
104
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
105
- return __generator(this, function (_a) {
106
- switch (_a.label) {
107
- case 0:
108
- // verify required parameter 'itemId' is not null or undefined
109
- (0, common_1.assertParamExists)('deleteItem', 'itemId', itemId);
110
- localVarPath = "/Items/{itemId}"
111
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
112
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
113
- if (configuration) {
114
- baseOptions = configuration.baseOptions;
115
- }
116
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
117
- localVarHeaderParameter = {};
118
- localVarQueryParameter = {};
119
- // authentication CustomAuthentication required
120
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
121
- case 1:
122
- // authentication CustomAuthentication required
123
- _a.sent();
124
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
125
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
127
- return [2 /*return*/, {
128
- url: (0, common_1.toPathString)(localVarUrlObj),
129
- options: localVarRequestOptions,
130
- }];
131
- }
132
- });
133
- });
134
- },
20
+ deleteItem: (itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
21
+ // verify required parameter 'itemId' is not null or undefined
22
+ assertParamExists('deleteItem', 'itemId', itemId);
23
+ const localVarPath = `/Items/{itemId}`
24
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
25
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27
+ let baseOptions;
28
+ if (configuration) {
29
+ baseOptions = configuration.baseOptions;
30
+ }
31
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
32
+ const localVarHeaderParameter = {};
33
+ const localVarQueryParameter = {};
34
+ // authentication CustomAuthentication required
35
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
36
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
37
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
39
+ return {
40
+ url: toPathString(localVarUrlObj),
41
+ options: localVarRequestOptions,
42
+ };
43
+ }),
135
44
  /**
136
45
  *
137
46
  * @summary Deletes items from the library and filesystem.
@@ -139,40 +48,30 @@ var LibraryApiAxiosParamCreator = function (configuration) {
139
48
  * @param {*} [options] Override http request option.
140
49
  * @throws {RequiredError}
141
50
  */
142
- deleteItems: function (ids, options) {
143
- if (options === void 0) { options = {}; }
144
- return __awaiter(_this, void 0, void 0, function () {
145
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
146
- return __generator(this, function (_a) {
147
- switch (_a.label) {
148
- case 0:
149
- localVarPath = "/Items";
150
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
151
- if (configuration) {
152
- baseOptions = configuration.baseOptions;
153
- }
154
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
155
- localVarHeaderParameter = {};
156
- localVarQueryParameter = {};
157
- // authentication CustomAuthentication required
158
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
159
- case 1:
160
- // authentication CustomAuthentication required
161
- _a.sent();
162
- if (ids) {
163
- localVarQueryParameter['ids'] = ids;
164
- }
165
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
166
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
167
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
168
- return [2 /*return*/, {
169
- url: (0, common_1.toPathString)(localVarUrlObj),
170
- options: localVarRequestOptions,
171
- }];
172
- }
173
- });
174
- });
175
- },
51
+ deleteItems: (ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
52
+ const localVarPath = `/Items`;
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ if (configuration) {
57
+ baseOptions = configuration.baseOptions;
58
+ }
59
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
60
+ const localVarHeaderParameter = {};
61
+ const localVarQueryParameter = {};
62
+ // authentication CustomAuthentication required
63
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
64
+ if (ids) {
65
+ localVarQueryParameter['ids'] = ids;
66
+ }
67
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
68
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
69
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
70
+ return {
71
+ url: toPathString(localVarUrlObj),
72
+ options: localVarRequestOptions,
73
+ };
74
+ }),
176
75
  /**
177
76
  *
178
77
  * @summary Gets all parents of an item.
@@ -181,43 +80,33 @@ var LibraryApiAxiosParamCreator = function (configuration) {
181
80
  * @param {*} [options] Override http request option.
182
81
  * @throws {RequiredError}
183
82
  */
184
- getAncestors: function (itemId, userId, options) {
185
- if (options === void 0) { options = {}; }
186
- return __awaiter(_this, void 0, void 0, function () {
187
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
188
- return __generator(this, function (_a) {
189
- switch (_a.label) {
190
- case 0:
191
- // verify required parameter 'itemId' is not null or undefined
192
- (0, common_1.assertParamExists)('getAncestors', 'itemId', itemId);
193
- localVarPath = "/Items/{itemId}/Ancestors"
194
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
195
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
196
- if (configuration) {
197
- baseOptions = configuration.baseOptions;
198
- }
199
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
200
- localVarHeaderParameter = {};
201
- localVarQueryParameter = {};
202
- // authentication CustomAuthentication required
203
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
204
- case 1:
205
- // authentication CustomAuthentication required
206
- _a.sent();
207
- if (userId !== undefined) {
208
- localVarQueryParameter['userId'] = userId;
209
- }
210
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
211
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
212
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
213
- return [2 /*return*/, {
214
- url: (0, common_1.toPathString)(localVarUrlObj),
215
- options: localVarRequestOptions,
216
- }];
217
- }
218
- });
219
- });
220
- },
83
+ getAncestors: (itemId, userId, options = {}) => __awaiter(this, void 0, void 0, function* () {
84
+ // verify required parameter 'itemId' is not null or undefined
85
+ assertParamExists('getAncestors', 'itemId', itemId);
86
+ const localVarPath = `/Items/{itemId}/Ancestors`
87
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
88
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
89
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
90
+ let baseOptions;
91
+ if (configuration) {
92
+ baseOptions = configuration.baseOptions;
93
+ }
94
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
95
+ const localVarHeaderParameter = {};
96
+ const localVarQueryParameter = {};
97
+ // authentication CustomAuthentication required
98
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
99
+ if (userId !== undefined) {
100
+ localVarQueryParameter['userId'] = userId;
101
+ }
102
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
104
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
105
+ return {
106
+ url: toPathString(localVarUrlObj),
107
+ options: localVarRequestOptions,
108
+ };
109
+ }),
221
110
  /**
222
111
  *
223
112
  * @summary Gets critic review for an item.
@@ -226,40 +115,30 @@ var LibraryApiAxiosParamCreator = function (configuration) {
226
115
  * @deprecated
227
116
  * @throws {RequiredError}
228
117
  */
229
- getCriticReviews: function (itemId, options) {
230
- if (options === void 0) { options = {}; }
231
- return __awaiter(_this, void 0, void 0, function () {
232
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
233
- return __generator(this, function (_a) {
234
- switch (_a.label) {
235
- case 0:
236
- // verify required parameter 'itemId' is not null or undefined
237
- (0, common_1.assertParamExists)('getCriticReviews', 'itemId', itemId);
238
- localVarPath = "/Items/{itemId}/CriticReviews"
239
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
240
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
241
- if (configuration) {
242
- baseOptions = configuration.baseOptions;
243
- }
244
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
245
- localVarHeaderParameter = {};
246
- localVarQueryParameter = {};
247
- // authentication CustomAuthentication required
248
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
249
- case 1:
250
- // authentication CustomAuthentication required
251
- _a.sent();
252
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
253
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
255
- return [2 /*return*/, {
256
- url: (0, common_1.toPathString)(localVarUrlObj),
257
- options: localVarRequestOptions,
258
- }];
259
- }
260
- });
261
- });
262
- },
118
+ getCriticReviews: (itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
119
+ // verify required parameter 'itemId' is not null or undefined
120
+ assertParamExists('getCriticReviews', 'itemId', itemId);
121
+ const localVarPath = `/Items/{itemId}/CriticReviews`
122
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
123
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
124
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
125
+ let baseOptions;
126
+ if (configuration) {
127
+ baseOptions = configuration.baseOptions;
128
+ }
129
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
130
+ const localVarHeaderParameter = {};
131
+ const localVarQueryParameter = {};
132
+ // authentication CustomAuthentication required
133
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
137
+ return {
138
+ url: toPathString(localVarUrlObj),
139
+ options: localVarRequestOptions,
140
+ };
141
+ }),
263
142
  /**
264
143
  *
265
144
  * @summary Downloads item media.
@@ -267,40 +146,30 @@ var LibraryApiAxiosParamCreator = function (configuration) {
267
146
  * @param {*} [options] Override http request option.
268
147
  * @throws {RequiredError}
269
148
  */
270
- getDownload: function (itemId, options) {
271
- if (options === void 0) { options = {}; }
272
- return __awaiter(_this, void 0, void 0, function () {
273
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
274
- return __generator(this, function (_a) {
275
- switch (_a.label) {
276
- case 0:
277
- // verify required parameter 'itemId' is not null or undefined
278
- (0, common_1.assertParamExists)('getDownload', 'itemId', itemId);
279
- localVarPath = "/Items/{itemId}/Download"
280
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
281
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
282
- if (configuration) {
283
- baseOptions = configuration.baseOptions;
284
- }
285
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
286
- localVarHeaderParameter = {};
287
- localVarQueryParameter = {};
288
- // authentication CustomAuthentication required
289
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
290
- case 1:
291
- // authentication CustomAuthentication required
292
- _a.sent();
293
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
294
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
296
- return [2 /*return*/, {
297
- url: (0, common_1.toPathString)(localVarUrlObj),
298
- options: localVarRequestOptions,
299
- }];
300
- }
301
- });
302
- });
303
- },
149
+ getDownload: (itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
150
+ // verify required parameter 'itemId' is not null or undefined
151
+ assertParamExists('getDownload', 'itemId', itemId);
152
+ const localVarPath = `/Items/{itemId}/Download`
153
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
154
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
155
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
156
+ let baseOptions;
157
+ if (configuration) {
158
+ baseOptions = configuration.baseOptions;
159
+ }
160
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
161
+ const localVarHeaderParameter = {};
162
+ const localVarQueryParameter = {};
163
+ // authentication CustomAuthentication required
164
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
165
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
166
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
167
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
168
+ return {
169
+ url: toPathString(localVarUrlObj),
170
+ options: localVarRequestOptions,
171
+ };
172
+ }),
304
173
  /**
305
174
  *
306
175
  * @summary Get the original file of an item.
@@ -308,40 +177,30 @@ var LibraryApiAxiosParamCreator = function (configuration) {
308
177
  * @param {*} [options] Override http request option.
309
178
  * @throws {RequiredError}
310
179
  */
311
- getFile: function (itemId, options) {
312
- if (options === void 0) { options = {}; }
313
- return __awaiter(_this, void 0, void 0, function () {
314
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
315
- return __generator(this, function (_a) {
316
- switch (_a.label) {
317
- case 0:
318
- // verify required parameter 'itemId' is not null or undefined
319
- (0, common_1.assertParamExists)('getFile', 'itemId', itemId);
320
- localVarPath = "/Items/{itemId}/File"
321
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
322
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
323
- if (configuration) {
324
- baseOptions = configuration.baseOptions;
325
- }
326
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
327
- localVarHeaderParameter = {};
328
- localVarQueryParameter = {};
329
- // authentication CustomAuthentication required
330
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
331
- case 1:
332
- // authentication CustomAuthentication required
333
- _a.sent();
334
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
335
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
336
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
337
- return [2 /*return*/, {
338
- url: (0, common_1.toPathString)(localVarUrlObj),
339
- options: localVarRequestOptions,
340
- }];
341
- }
342
- });
343
- });
344
- },
180
+ getFile: (itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
181
+ // verify required parameter 'itemId' is not null or undefined
182
+ assertParamExists('getFile', 'itemId', itemId);
183
+ const localVarPath = `/Items/{itemId}/File`
184
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
185
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
186
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
187
+ let baseOptions;
188
+ if (configuration) {
189
+ baseOptions = configuration.baseOptions;
190
+ }
191
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
192
+ const localVarHeaderParameter = {};
193
+ const localVarQueryParameter = {};
194
+ // authentication CustomAuthentication required
195
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
196
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
197
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
198
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
199
+ return {
200
+ url: toPathString(localVarUrlObj),
201
+ options: localVarRequestOptions,
202
+ };
203
+ }),
345
204
  /**
346
205
  *
347
206
  * @summary Get item counts.
@@ -350,43 +209,33 @@ var LibraryApiAxiosParamCreator = function (configuration) {
350
209
  * @param {*} [options] Override http request option.
351
210
  * @throws {RequiredError}
352
211
  */
353
- getItemCounts: function (userId, isFavorite, options) {
354
- if (options === void 0) { options = {}; }
355
- return __awaiter(_this, void 0, void 0, function () {
356
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
357
- return __generator(this, function (_a) {
358
- switch (_a.label) {
359
- case 0:
360
- localVarPath = "/Items/Counts";
361
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
362
- if (configuration) {
363
- baseOptions = configuration.baseOptions;
364
- }
365
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
366
- localVarHeaderParameter = {};
367
- localVarQueryParameter = {};
368
- // authentication CustomAuthentication required
369
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
370
- case 1:
371
- // authentication CustomAuthentication required
372
- _a.sent();
373
- if (userId !== undefined) {
374
- localVarQueryParameter['userId'] = userId;
375
- }
376
- if (isFavorite !== undefined) {
377
- localVarQueryParameter['isFavorite'] = isFavorite;
378
- }
379
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
380
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
381
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
382
- return [2 /*return*/, {
383
- url: (0, common_1.toPathString)(localVarUrlObj),
384
- options: localVarRequestOptions,
385
- }];
386
- }
387
- });
388
- });
389
- },
212
+ getItemCounts: (userId, isFavorite, options = {}) => __awaiter(this, void 0, void 0, function* () {
213
+ const localVarPath = `/Items/Counts`;
214
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
215
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
216
+ let baseOptions;
217
+ if (configuration) {
218
+ baseOptions = configuration.baseOptions;
219
+ }
220
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
221
+ const localVarHeaderParameter = {};
222
+ const localVarQueryParameter = {};
223
+ // authentication CustomAuthentication required
224
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
225
+ if (userId !== undefined) {
226
+ localVarQueryParameter['userId'] = userId;
227
+ }
228
+ if (isFavorite !== undefined) {
229
+ localVarQueryParameter['isFavorite'] = isFavorite;
230
+ }
231
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
232
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
233
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
234
+ return {
235
+ url: toPathString(localVarUrlObj),
236
+ options: localVarRequestOptions,
237
+ };
238
+ }),
390
239
  /**
391
240
  *
392
241
  * @summary Gets the library options info.
@@ -395,43 +244,33 @@ var LibraryApiAxiosParamCreator = function (configuration) {
395
244
  * @param {*} [options] Override http request option.
396
245
  * @throws {RequiredError}
397
246
  */
398
- getLibraryOptionsInfo: function (libraryContentType, isNewLibrary, options) {
399
- if (options === void 0) { options = {}; }
400
- return __awaiter(_this, void 0, void 0, function () {
401
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
402
- return __generator(this, function (_a) {
403
- switch (_a.label) {
404
- case 0:
405
- localVarPath = "/Libraries/AvailableOptions";
406
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
407
- if (configuration) {
408
- baseOptions = configuration.baseOptions;
409
- }
410
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
411
- localVarHeaderParameter = {};
412
- localVarQueryParameter = {};
413
- // authentication CustomAuthentication required
414
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
415
- case 1:
416
- // authentication CustomAuthentication required
417
- _a.sent();
418
- if (libraryContentType !== undefined) {
419
- localVarQueryParameter['libraryContentType'] = libraryContentType;
420
- }
421
- if (isNewLibrary !== undefined) {
422
- localVarQueryParameter['isNewLibrary'] = isNewLibrary;
423
- }
424
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
425
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
426
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
427
- return [2 /*return*/, {
428
- url: (0, common_1.toPathString)(localVarUrlObj),
429
- options: localVarRequestOptions,
430
- }];
431
- }
432
- });
433
- });
434
- },
247
+ getLibraryOptionsInfo: (libraryContentType, isNewLibrary, options = {}) => __awaiter(this, void 0, void 0, function* () {
248
+ const localVarPath = `/Libraries/AvailableOptions`;
249
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
250
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
251
+ let baseOptions;
252
+ if (configuration) {
253
+ baseOptions = configuration.baseOptions;
254
+ }
255
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
256
+ const localVarHeaderParameter = {};
257
+ const localVarQueryParameter = {};
258
+ // authentication CustomAuthentication required
259
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
260
+ if (libraryContentType !== undefined) {
261
+ localVarQueryParameter['libraryContentType'] = libraryContentType;
262
+ }
263
+ if (isNewLibrary !== undefined) {
264
+ localVarQueryParameter['isNewLibrary'] = isNewLibrary;
265
+ }
266
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
267
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
268
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
269
+ return {
270
+ url: toPathString(localVarUrlObj),
271
+ options: localVarRequestOptions,
272
+ };
273
+ }),
435
274
  /**
436
275
  *
437
276
  * @summary Gets all user media folders.
@@ -439,77 +278,57 @@ var LibraryApiAxiosParamCreator = function (configuration) {
439
278
  * @param {*} [options] Override http request option.
440
279
  * @throws {RequiredError}
441
280
  */
442
- getMediaFolders: function (isHidden, options) {
443
- if (options === void 0) { options = {}; }
444
- return __awaiter(_this, void 0, void 0, function () {
445
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
446
- return __generator(this, function (_a) {
447
- switch (_a.label) {
448
- case 0:
449
- localVarPath = "/Library/MediaFolders";
450
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
451
- if (configuration) {
452
- baseOptions = configuration.baseOptions;
453
- }
454
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
455
- localVarHeaderParameter = {};
456
- localVarQueryParameter = {};
457
- // authentication CustomAuthentication required
458
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
459
- case 1:
460
- // authentication CustomAuthentication required
461
- _a.sent();
462
- if (isHidden !== undefined) {
463
- localVarQueryParameter['isHidden'] = isHidden;
464
- }
465
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
466
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
467
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
468
- return [2 /*return*/, {
469
- url: (0, common_1.toPathString)(localVarUrlObj),
470
- options: localVarRequestOptions,
471
- }];
472
- }
473
- });
474
- });
475
- },
281
+ getMediaFolders: (isHidden, options = {}) => __awaiter(this, void 0, void 0, function* () {
282
+ const localVarPath = `/Library/MediaFolders`;
283
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
284
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
285
+ let baseOptions;
286
+ if (configuration) {
287
+ baseOptions = configuration.baseOptions;
288
+ }
289
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
290
+ const localVarHeaderParameter = {};
291
+ const localVarQueryParameter = {};
292
+ // authentication CustomAuthentication required
293
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
294
+ if (isHidden !== undefined) {
295
+ localVarQueryParameter['isHidden'] = isHidden;
296
+ }
297
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
298
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
300
+ return {
301
+ url: toPathString(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ };
304
+ }),
476
305
  /**
477
306
  *
478
307
  * @summary Gets a list of physical paths from virtual folders.
479
308
  * @param {*} [options] Override http request option.
480
309
  * @throws {RequiredError}
481
310
  */
482
- getPhysicalPaths: function (options) {
483
- if (options === void 0) { options = {}; }
484
- return __awaiter(_this, void 0, void 0, function () {
485
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
486
- return __generator(this, function (_a) {
487
- switch (_a.label) {
488
- case 0:
489
- localVarPath = "/Library/PhysicalPaths";
490
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
491
- if (configuration) {
492
- baseOptions = configuration.baseOptions;
493
- }
494
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
495
- localVarHeaderParameter = {};
496
- localVarQueryParameter = {};
497
- // authentication CustomAuthentication required
498
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
499
- case 1:
500
- // authentication CustomAuthentication required
501
- _a.sent();
502
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
503
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
504
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
505
- return [2 /*return*/, {
506
- url: (0, common_1.toPathString)(localVarUrlObj),
507
- options: localVarRequestOptions,
508
- }];
509
- }
510
- });
511
- });
512
- },
311
+ getPhysicalPaths: (options = {}) => __awaiter(this, void 0, void 0, function* () {
312
+ const localVarPath = `/Library/PhysicalPaths`;
313
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
314
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
315
+ let baseOptions;
316
+ if (configuration) {
317
+ baseOptions = configuration.baseOptions;
318
+ }
319
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
320
+ const localVarHeaderParameter = {};
321
+ const localVarQueryParameter = {};
322
+ // authentication CustomAuthentication required
323
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
324
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
325
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
327
+ return {
328
+ url: toPathString(localVarUrlObj),
329
+ options: localVarRequestOptions,
330
+ };
331
+ }),
513
332
  /**
514
333
  *
515
334
  * @summary Gets similar items.
@@ -521,52 +340,42 @@ var LibraryApiAxiosParamCreator = function (configuration) {
521
340
  * @param {*} [options] Override http request option.
522
341
  * @throws {RequiredError}
523
342
  */
524
- getSimilarAlbums: function (itemId, excludeArtistIds, userId, limit, fields, options) {
525
- if (options === void 0) { options = {}; }
526
- return __awaiter(_this, void 0, void 0, function () {
527
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
528
- return __generator(this, function (_a) {
529
- switch (_a.label) {
530
- case 0:
531
- // verify required parameter 'itemId' is not null or undefined
532
- (0, common_1.assertParamExists)('getSimilarAlbums', 'itemId', itemId);
533
- localVarPath = "/Albums/{itemId}/Similar"
534
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
535
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
536
- if (configuration) {
537
- baseOptions = configuration.baseOptions;
538
- }
539
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
540
- localVarHeaderParameter = {};
541
- localVarQueryParameter = {};
542
- // authentication CustomAuthentication required
543
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
544
- case 1:
545
- // authentication CustomAuthentication required
546
- _a.sent();
547
- if (excludeArtistIds) {
548
- localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
549
- }
550
- if (userId !== undefined) {
551
- localVarQueryParameter['userId'] = userId;
552
- }
553
- if (limit !== undefined) {
554
- localVarQueryParameter['limit'] = limit;
555
- }
556
- if (fields) {
557
- localVarQueryParameter['fields'] = fields;
558
- }
559
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
560
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
561
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
562
- return [2 /*return*/, {
563
- url: (0, common_1.toPathString)(localVarUrlObj),
564
- options: localVarRequestOptions,
565
- }];
566
- }
567
- });
568
- });
569
- },
343
+ getSimilarAlbums: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
344
+ // verify required parameter 'itemId' is not null or undefined
345
+ assertParamExists('getSimilarAlbums', 'itemId', itemId);
346
+ const localVarPath = `/Albums/{itemId}/Similar`
347
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
348
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
349
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
350
+ let baseOptions;
351
+ if (configuration) {
352
+ baseOptions = configuration.baseOptions;
353
+ }
354
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
355
+ const localVarHeaderParameter = {};
356
+ const localVarQueryParameter = {};
357
+ // authentication CustomAuthentication required
358
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
359
+ if (excludeArtistIds) {
360
+ localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
361
+ }
362
+ if (userId !== undefined) {
363
+ localVarQueryParameter['userId'] = userId;
364
+ }
365
+ if (limit !== undefined) {
366
+ localVarQueryParameter['limit'] = limit;
367
+ }
368
+ if (fields) {
369
+ localVarQueryParameter['fields'] = fields;
370
+ }
371
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
372
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
373
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
374
+ return {
375
+ url: toPathString(localVarUrlObj),
376
+ options: localVarRequestOptions,
377
+ };
378
+ }),
570
379
  /**
571
380
  *
572
381
  * @summary Gets similar items.
@@ -578,52 +387,42 @@ var LibraryApiAxiosParamCreator = function (configuration) {
578
387
  * @param {*} [options] Override http request option.
579
388
  * @throws {RequiredError}
580
389
  */
581
- getSimilarArtists: function (itemId, excludeArtistIds, userId, limit, fields, options) {
582
- if (options === void 0) { options = {}; }
583
- return __awaiter(_this, void 0, void 0, function () {
584
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
585
- return __generator(this, function (_a) {
586
- switch (_a.label) {
587
- case 0:
588
- // verify required parameter 'itemId' is not null or undefined
589
- (0, common_1.assertParamExists)('getSimilarArtists', 'itemId', itemId);
590
- localVarPath = "/Artists/{itemId}/Similar"
591
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
592
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
593
- if (configuration) {
594
- baseOptions = configuration.baseOptions;
595
- }
596
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
597
- localVarHeaderParameter = {};
598
- localVarQueryParameter = {};
599
- // authentication CustomAuthentication required
600
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
601
- case 1:
602
- // authentication CustomAuthentication required
603
- _a.sent();
604
- if (excludeArtistIds) {
605
- localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
606
- }
607
- if (userId !== undefined) {
608
- localVarQueryParameter['userId'] = userId;
609
- }
610
- if (limit !== undefined) {
611
- localVarQueryParameter['limit'] = limit;
612
- }
613
- if (fields) {
614
- localVarQueryParameter['fields'] = fields;
615
- }
616
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
617
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
618
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
619
- return [2 /*return*/, {
620
- url: (0, common_1.toPathString)(localVarUrlObj),
621
- options: localVarRequestOptions,
622
- }];
623
- }
624
- });
625
- });
626
- },
390
+ getSimilarArtists: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
391
+ // verify required parameter 'itemId' is not null or undefined
392
+ assertParamExists('getSimilarArtists', 'itemId', itemId);
393
+ const localVarPath = `/Artists/{itemId}/Similar`
394
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
395
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
396
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
397
+ let baseOptions;
398
+ if (configuration) {
399
+ baseOptions = configuration.baseOptions;
400
+ }
401
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
402
+ const localVarHeaderParameter = {};
403
+ const localVarQueryParameter = {};
404
+ // authentication CustomAuthentication required
405
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
406
+ if (excludeArtistIds) {
407
+ localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
408
+ }
409
+ if (userId !== undefined) {
410
+ localVarQueryParameter['userId'] = userId;
411
+ }
412
+ if (limit !== undefined) {
413
+ localVarQueryParameter['limit'] = limit;
414
+ }
415
+ if (fields) {
416
+ localVarQueryParameter['fields'] = fields;
417
+ }
418
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
419
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
420
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
421
+ return {
422
+ url: toPathString(localVarUrlObj),
423
+ options: localVarRequestOptions,
424
+ };
425
+ }),
627
426
  /**
628
427
  *
629
428
  * @summary Gets similar items.
@@ -635,52 +434,42 @@ var LibraryApiAxiosParamCreator = function (configuration) {
635
434
  * @param {*} [options] Override http request option.
636
435
  * @throws {RequiredError}
637
436
  */
638
- getSimilarItems: function (itemId, excludeArtistIds, userId, limit, fields, options) {
639
- if (options === void 0) { options = {}; }
640
- return __awaiter(_this, void 0, void 0, function () {
641
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
642
- return __generator(this, function (_a) {
643
- switch (_a.label) {
644
- case 0:
645
- // verify required parameter 'itemId' is not null or undefined
646
- (0, common_1.assertParamExists)('getSimilarItems', 'itemId', itemId);
647
- localVarPath = "/Items/{itemId}/Similar"
648
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
649
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
650
- if (configuration) {
651
- baseOptions = configuration.baseOptions;
652
- }
653
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
654
- localVarHeaderParameter = {};
655
- localVarQueryParameter = {};
656
- // authentication CustomAuthentication required
657
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
658
- case 1:
659
- // authentication CustomAuthentication required
660
- _a.sent();
661
- if (excludeArtistIds) {
662
- localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
663
- }
664
- if (userId !== undefined) {
665
- localVarQueryParameter['userId'] = userId;
666
- }
667
- if (limit !== undefined) {
668
- localVarQueryParameter['limit'] = limit;
669
- }
670
- if (fields) {
671
- localVarQueryParameter['fields'] = fields;
672
- }
673
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
674
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
675
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
676
- return [2 /*return*/, {
677
- url: (0, common_1.toPathString)(localVarUrlObj),
678
- options: localVarRequestOptions,
679
- }];
680
- }
681
- });
682
- });
683
- },
437
+ getSimilarItems: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
438
+ // verify required parameter 'itemId' is not null or undefined
439
+ assertParamExists('getSimilarItems', 'itemId', itemId);
440
+ const localVarPath = `/Items/{itemId}/Similar`
441
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
442
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
443
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
444
+ let baseOptions;
445
+ if (configuration) {
446
+ baseOptions = configuration.baseOptions;
447
+ }
448
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
449
+ const localVarHeaderParameter = {};
450
+ const localVarQueryParameter = {};
451
+ // authentication CustomAuthentication required
452
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
453
+ if (excludeArtistIds) {
454
+ localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
455
+ }
456
+ if (userId !== undefined) {
457
+ localVarQueryParameter['userId'] = userId;
458
+ }
459
+ if (limit !== undefined) {
460
+ localVarQueryParameter['limit'] = limit;
461
+ }
462
+ if (fields) {
463
+ localVarQueryParameter['fields'] = fields;
464
+ }
465
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
466
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
467
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
468
+ return {
469
+ url: toPathString(localVarUrlObj),
470
+ options: localVarRequestOptions,
471
+ };
472
+ }),
684
473
  /**
685
474
  *
686
475
  * @summary Gets similar items.
@@ -692,52 +481,42 @@ var LibraryApiAxiosParamCreator = function (configuration) {
692
481
  * @param {*} [options] Override http request option.
693
482
  * @throws {RequiredError}
694
483
  */
695
- getSimilarMovies: function (itemId, excludeArtistIds, userId, limit, fields, options) {
696
- if (options === void 0) { options = {}; }
697
- return __awaiter(_this, void 0, void 0, function () {
698
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
699
- return __generator(this, function (_a) {
700
- switch (_a.label) {
701
- case 0:
702
- // verify required parameter 'itemId' is not null or undefined
703
- (0, common_1.assertParamExists)('getSimilarMovies', 'itemId', itemId);
704
- localVarPath = "/Movies/{itemId}/Similar"
705
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
706
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
707
- if (configuration) {
708
- baseOptions = configuration.baseOptions;
709
- }
710
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
711
- localVarHeaderParameter = {};
712
- localVarQueryParameter = {};
713
- // authentication CustomAuthentication required
714
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
715
- case 1:
716
- // authentication CustomAuthentication required
717
- _a.sent();
718
- if (excludeArtistIds) {
719
- localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
720
- }
721
- if (userId !== undefined) {
722
- localVarQueryParameter['userId'] = userId;
723
- }
724
- if (limit !== undefined) {
725
- localVarQueryParameter['limit'] = limit;
726
- }
727
- if (fields) {
728
- localVarQueryParameter['fields'] = fields;
729
- }
730
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
731
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
732
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
733
- return [2 /*return*/, {
734
- url: (0, common_1.toPathString)(localVarUrlObj),
735
- options: localVarRequestOptions,
736
- }];
737
- }
738
- });
739
- });
740
- },
484
+ getSimilarMovies: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
485
+ // verify required parameter 'itemId' is not null or undefined
486
+ assertParamExists('getSimilarMovies', 'itemId', itemId);
487
+ const localVarPath = `/Movies/{itemId}/Similar`
488
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
489
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
490
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
491
+ let baseOptions;
492
+ if (configuration) {
493
+ baseOptions = configuration.baseOptions;
494
+ }
495
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
496
+ const localVarHeaderParameter = {};
497
+ const localVarQueryParameter = {};
498
+ // authentication CustomAuthentication required
499
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
500
+ if (excludeArtistIds) {
501
+ localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
502
+ }
503
+ if (userId !== undefined) {
504
+ localVarQueryParameter['userId'] = userId;
505
+ }
506
+ if (limit !== undefined) {
507
+ localVarQueryParameter['limit'] = limit;
508
+ }
509
+ if (fields) {
510
+ localVarQueryParameter['fields'] = fields;
511
+ }
512
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
513
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
514
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
515
+ return {
516
+ url: toPathString(localVarUrlObj),
517
+ options: localVarRequestOptions,
518
+ };
519
+ }),
741
520
  /**
742
521
  *
743
522
  * @summary Gets similar items.
@@ -749,52 +528,42 @@ var LibraryApiAxiosParamCreator = function (configuration) {
749
528
  * @param {*} [options] Override http request option.
750
529
  * @throws {RequiredError}
751
530
  */
752
- getSimilarShows: function (itemId, excludeArtistIds, userId, limit, fields, options) {
753
- if (options === void 0) { options = {}; }
754
- return __awaiter(_this, void 0, void 0, function () {
755
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
756
- return __generator(this, function (_a) {
757
- switch (_a.label) {
758
- case 0:
759
- // verify required parameter 'itemId' is not null or undefined
760
- (0, common_1.assertParamExists)('getSimilarShows', 'itemId', itemId);
761
- localVarPath = "/Shows/{itemId}/Similar"
762
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
763
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
764
- if (configuration) {
765
- baseOptions = configuration.baseOptions;
766
- }
767
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
768
- localVarHeaderParameter = {};
769
- localVarQueryParameter = {};
770
- // authentication CustomAuthentication required
771
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
772
- case 1:
773
- // authentication CustomAuthentication required
774
- _a.sent();
775
- if (excludeArtistIds) {
776
- localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
777
- }
778
- if (userId !== undefined) {
779
- localVarQueryParameter['userId'] = userId;
780
- }
781
- if (limit !== undefined) {
782
- localVarQueryParameter['limit'] = limit;
783
- }
784
- if (fields) {
785
- localVarQueryParameter['fields'] = fields;
786
- }
787
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
788
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
789
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
790
- return [2 /*return*/, {
791
- url: (0, common_1.toPathString)(localVarUrlObj),
792
- options: localVarRequestOptions,
793
- }];
794
- }
795
- });
796
- });
797
- },
531
+ getSimilarShows: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
532
+ // verify required parameter 'itemId' is not null or undefined
533
+ assertParamExists('getSimilarShows', 'itemId', itemId);
534
+ const localVarPath = `/Shows/{itemId}/Similar`
535
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
536
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
537
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
538
+ let baseOptions;
539
+ if (configuration) {
540
+ baseOptions = configuration.baseOptions;
541
+ }
542
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
543
+ const localVarHeaderParameter = {};
544
+ const localVarQueryParameter = {};
545
+ // authentication CustomAuthentication required
546
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
547
+ if (excludeArtistIds) {
548
+ localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
549
+ }
550
+ if (userId !== undefined) {
551
+ localVarQueryParameter['userId'] = userId;
552
+ }
553
+ if (limit !== undefined) {
554
+ localVarQueryParameter['limit'] = limit;
555
+ }
556
+ if (fields) {
557
+ localVarQueryParameter['fields'] = fields;
558
+ }
559
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
560
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
561
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
562
+ return {
563
+ url: toPathString(localVarUrlObj),
564
+ options: localVarRequestOptions,
565
+ };
566
+ }),
798
567
  /**
799
568
  *
800
569
  * @summary Gets similar items.
@@ -806,52 +575,42 @@ var LibraryApiAxiosParamCreator = function (configuration) {
806
575
  * @param {*} [options] Override http request option.
807
576
  * @throws {RequiredError}
808
577
  */
809
- getSimilarTrailers: function (itemId, excludeArtistIds, userId, limit, fields, options) {
810
- if (options === void 0) { options = {}; }
811
- return __awaiter(_this, void 0, void 0, function () {
812
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
813
- return __generator(this, function (_a) {
814
- switch (_a.label) {
815
- case 0:
816
- // verify required parameter 'itemId' is not null or undefined
817
- (0, common_1.assertParamExists)('getSimilarTrailers', 'itemId', itemId);
818
- localVarPath = "/Trailers/{itemId}/Similar"
819
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
820
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
821
- if (configuration) {
822
- baseOptions = configuration.baseOptions;
823
- }
824
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
825
- localVarHeaderParameter = {};
826
- localVarQueryParameter = {};
827
- // authentication CustomAuthentication required
828
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
829
- case 1:
830
- // authentication CustomAuthentication required
831
- _a.sent();
832
- if (excludeArtistIds) {
833
- localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
834
- }
835
- if (userId !== undefined) {
836
- localVarQueryParameter['userId'] = userId;
837
- }
838
- if (limit !== undefined) {
839
- localVarQueryParameter['limit'] = limit;
840
- }
841
- if (fields) {
842
- localVarQueryParameter['fields'] = fields;
843
- }
844
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
845
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
846
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
847
- return [2 /*return*/, {
848
- url: (0, common_1.toPathString)(localVarUrlObj),
849
- options: localVarRequestOptions,
850
- }];
851
- }
852
- });
853
- });
854
- },
578
+ getSimilarTrailers: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
579
+ // verify required parameter 'itemId' is not null or undefined
580
+ assertParamExists('getSimilarTrailers', 'itemId', itemId);
581
+ const localVarPath = `/Trailers/{itemId}/Similar`
582
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
584
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
585
+ let baseOptions;
586
+ if (configuration) {
587
+ baseOptions = configuration.baseOptions;
588
+ }
589
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
590
+ const localVarHeaderParameter = {};
591
+ const localVarQueryParameter = {};
592
+ // authentication CustomAuthentication required
593
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
594
+ if (excludeArtistIds) {
595
+ localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
596
+ }
597
+ if (userId !== undefined) {
598
+ localVarQueryParameter['userId'] = userId;
599
+ }
600
+ if (limit !== undefined) {
601
+ localVarQueryParameter['limit'] = limit;
602
+ }
603
+ if (fields) {
604
+ localVarQueryParameter['fields'] = fields;
605
+ }
606
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
607
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
608
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
609
+ return {
610
+ url: toPathString(localVarUrlObj),
611
+ options: localVarRequestOptions,
612
+ };
613
+ }),
855
614
  /**
856
615
  *
857
616
  * @summary Get theme songs and videos for an item.
@@ -861,46 +620,36 @@ var LibraryApiAxiosParamCreator = function (configuration) {
861
620
  * @param {*} [options] Override http request option.
862
621
  * @throws {RequiredError}
863
622
  */
864
- getThemeMedia: function (itemId, userId, inheritFromParent, options) {
865
- if (options === void 0) { options = {}; }
866
- return __awaiter(_this, void 0, void 0, function () {
867
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
868
- return __generator(this, function (_a) {
869
- switch (_a.label) {
870
- case 0:
871
- // verify required parameter 'itemId' is not null or undefined
872
- (0, common_1.assertParamExists)('getThemeMedia', 'itemId', itemId);
873
- localVarPath = "/Items/{itemId}/ThemeMedia"
874
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
875
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
876
- if (configuration) {
877
- baseOptions = configuration.baseOptions;
878
- }
879
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
880
- localVarHeaderParameter = {};
881
- localVarQueryParameter = {};
882
- // authentication CustomAuthentication required
883
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
884
- case 1:
885
- // authentication CustomAuthentication required
886
- _a.sent();
887
- if (userId !== undefined) {
888
- localVarQueryParameter['userId'] = userId;
889
- }
890
- if (inheritFromParent !== undefined) {
891
- localVarQueryParameter['inheritFromParent'] = inheritFromParent;
892
- }
893
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
894
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
895
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
896
- return [2 /*return*/, {
897
- url: (0, common_1.toPathString)(localVarUrlObj),
898
- options: localVarRequestOptions,
899
- }];
900
- }
901
- });
902
- });
903
- },
623
+ getThemeMedia: (itemId, userId, inheritFromParent, options = {}) => __awaiter(this, void 0, void 0, function* () {
624
+ // verify required parameter 'itemId' is not null or undefined
625
+ assertParamExists('getThemeMedia', 'itemId', itemId);
626
+ const localVarPath = `/Items/{itemId}/ThemeMedia`
627
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
628
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
629
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
630
+ let baseOptions;
631
+ if (configuration) {
632
+ baseOptions = configuration.baseOptions;
633
+ }
634
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
635
+ const localVarHeaderParameter = {};
636
+ const localVarQueryParameter = {};
637
+ // authentication CustomAuthentication required
638
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
639
+ if (userId !== undefined) {
640
+ localVarQueryParameter['userId'] = userId;
641
+ }
642
+ if (inheritFromParent !== undefined) {
643
+ localVarQueryParameter['inheritFromParent'] = inheritFromParent;
644
+ }
645
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
646
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
647
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
648
+ return {
649
+ url: toPathString(localVarUrlObj),
650
+ options: localVarRequestOptions,
651
+ };
652
+ }),
904
653
  /**
905
654
  *
906
655
  * @summary Get theme songs for an item.
@@ -910,46 +659,36 @@ var LibraryApiAxiosParamCreator = function (configuration) {
910
659
  * @param {*} [options] Override http request option.
911
660
  * @throws {RequiredError}
912
661
  */
913
- getThemeSongs: function (itemId, userId, inheritFromParent, options) {
914
- if (options === void 0) { options = {}; }
915
- return __awaiter(_this, void 0, void 0, function () {
916
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
917
- return __generator(this, function (_a) {
918
- switch (_a.label) {
919
- case 0:
920
- // verify required parameter 'itemId' is not null or undefined
921
- (0, common_1.assertParamExists)('getThemeSongs', 'itemId', itemId);
922
- localVarPath = "/Items/{itemId}/ThemeSongs"
923
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
924
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
925
- if (configuration) {
926
- baseOptions = configuration.baseOptions;
927
- }
928
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
929
- localVarHeaderParameter = {};
930
- localVarQueryParameter = {};
931
- // authentication CustomAuthentication required
932
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
933
- case 1:
934
- // authentication CustomAuthentication required
935
- _a.sent();
936
- if (userId !== undefined) {
937
- localVarQueryParameter['userId'] = userId;
938
- }
939
- if (inheritFromParent !== undefined) {
940
- localVarQueryParameter['inheritFromParent'] = inheritFromParent;
941
- }
942
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
943
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
944
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
945
- return [2 /*return*/, {
946
- url: (0, common_1.toPathString)(localVarUrlObj),
947
- options: localVarRequestOptions,
948
- }];
949
- }
950
- });
951
- });
952
- },
662
+ getThemeSongs: (itemId, userId, inheritFromParent, options = {}) => __awaiter(this, void 0, void 0, function* () {
663
+ // verify required parameter 'itemId' is not null or undefined
664
+ assertParamExists('getThemeSongs', 'itemId', itemId);
665
+ const localVarPath = `/Items/{itemId}/ThemeSongs`
666
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
667
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
668
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
669
+ let baseOptions;
670
+ if (configuration) {
671
+ baseOptions = configuration.baseOptions;
672
+ }
673
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
674
+ const localVarHeaderParameter = {};
675
+ const localVarQueryParameter = {};
676
+ // authentication CustomAuthentication required
677
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
678
+ if (userId !== undefined) {
679
+ localVarQueryParameter['userId'] = userId;
680
+ }
681
+ if (inheritFromParent !== undefined) {
682
+ localVarQueryParameter['inheritFromParent'] = inheritFromParent;
683
+ }
684
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
685
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
686
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
687
+ return {
688
+ url: toPathString(localVarUrlObj),
689
+ options: localVarRequestOptions,
690
+ };
691
+ }),
953
692
  /**
954
693
  *
955
694
  * @summary Get theme videos for an item.
@@ -959,46 +698,36 @@ var LibraryApiAxiosParamCreator = function (configuration) {
959
698
  * @param {*} [options] Override http request option.
960
699
  * @throws {RequiredError}
961
700
  */
962
- getThemeVideos: function (itemId, userId, inheritFromParent, options) {
963
- if (options === void 0) { options = {}; }
964
- return __awaiter(_this, void 0, void 0, function () {
965
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
966
- return __generator(this, function (_a) {
967
- switch (_a.label) {
968
- case 0:
969
- // verify required parameter 'itemId' is not null or undefined
970
- (0, common_1.assertParamExists)('getThemeVideos', 'itemId', itemId);
971
- localVarPath = "/Items/{itemId}/ThemeVideos"
972
- .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
973
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
974
- if (configuration) {
975
- baseOptions = configuration.baseOptions;
976
- }
977
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
978
- localVarHeaderParameter = {};
979
- localVarQueryParameter = {};
980
- // authentication CustomAuthentication required
981
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
982
- case 1:
983
- // authentication CustomAuthentication required
984
- _a.sent();
985
- if (userId !== undefined) {
986
- localVarQueryParameter['userId'] = userId;
987
- }
988
- if (inheritFromParent !== undefined) {
989
- localVarQueryParameter['inheritFromParent'] = inheritFromParent;
990
- }
991
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
992
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
993
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
994
- return [2 /*return*/, {
995
- url: (0, common_1.toPathString)(localVarUrlObj),
996
- options: localVarRequestOptions,
997
- }];
998
- }
999
- });
1000
- });
1001
- },
701
+ getThemeVideos: (itemId, userId, inheritFromParent, options = {}) => __awaiter(this, void 0, void 0, function* () {
702
+ // verify required parameter 'itemId' is not null or undefined
703
+ assertParamExists('getThemeVideos', 'itemId', itemId);
704
+ const localVarPath = `/Items/{itemId}/ThemeVideos`
705
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
706
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
707
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
708
+ let baseOptions;
709
+ if (configuration) {
710
+ baseOptions = configuration.baseOptions;
711
+ }
712
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
713
+ const localVarHeaderParameter = {};
714
+ const localVarQueryParameter = {};
715
+ // authentication CustomAuthentication required
716
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
717
+ if (userId !== undefined) {
718
+ localVarQueryParameter['userId'] = userId;
719
+ }
720
+ if (inheritFromParent !== undefined) {
721
+ localVarQueryParameter['inheritFromParent'] = inheritFromParent;
722
+ }
723
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
724
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
725
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
726
+ return {
727
+ url: toPathString(localVarUrlObj),
728
+ options: localVarRequestOptions,
729
+ };
730
+ }),
1002
731
  /**
1003
732
  *
1004
733
  * @summary Reports that new movies have been added by an external source.
@@ -1007,43 +736,33 @@ var LibraryApiAxiosParamCreator = function (configuration) {
1007
736
  * @param {*} [options] Override http request option.
1008
737
  * @throws {RequiredError}
1009
738
  */
1010
- postAddedMovies: function (tmdbId, imdbId, options) {
1011
- if (options === void 0) { options = {}; }
1012
- return __awaiter(_this, void 0, void 0, function () {
1013
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1014
- return __generator(this, function (_a) {
1015
- switch (_a.label) {
1016
- case 0:
1017
- localVarPath = "/Library/Movies/Added";
1018
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1019
- if (configuration) {
1020
- baseOptions = configuration.baseOptions;
1021
- }
1022
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1023
- localVarHeaderParameter = {};
1024
- localVarQueryParameter = {};
1025
- // authentication CustomAuthentication required
1026
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1027
- case 1:
1028
- // authentication CustomAuthentication required
1029
- _a.sent();
1030
- if (tmdbId !== undefined) {
1031
- localVarQueryParameter['tmdbId'] = tmdbId;
1032
- }
1033
- if (imdbId !== undefined) {
1034
- localVarQueryParameter['imdbId'] = imdbId;
1035
- }
1036
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1037
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1038
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1039
- return [2 /*return*/, {
1040
- url: (0, common_1.toPathString)(localVarUrlObj),
1041
- options: localVarRequestOptions,
1042
- }];
1043
- }
1044
- });
1045
- });
1046
- },
739
+ postAddedMovies: (tmdbId, imdbId, options = {}) => __awaiter(this, void 0, void 0, function* () {
740
+ const localVarPath = `/Library/Movies/Added`;
741
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
742
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
743
+ let baseOptions;
744
+ if (configuration) {
745
+ baseOptions = configuration.baseOptions;
746
+ }
747
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
748
+ const localVarHeaderParameter = {};
749
+ const localVarQueryParameter = {};
750
+ // authentication CustomAuthentication required
751
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
752
+ if (tmdbId !== undefined) {
753
+ localVarQueryParameter['tmdbId'] = tmdbId;
754
+ }
755
+ if (imdbId !== undefined) {
756
+ localVarQueryParameter['imdbId'] = imdbId;
757
+ }
758
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
759
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
760
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
761
+ return {
762
+ url: toPathString(localVarUrlObj),
763
+ options: localVarRequestOptions,
764
+ };
765
+ }),
1047
766
  /**
1048
767
  *
1049
768
  * @summary Reports that new episodes of a series have been added by an external source.
@@ -1051,40 +770,30 @@ var LibraryApiAxiosParamCreator = function (configuration) {
1051
770
  * @param {*} [options] Override http request option.
1052
771
  * @throws {RequiredError}
1053
772
  */
1054
- postAddedSeries: function (tvdbId, options) {
1055
- if (options === void 0) { options = {}; }
1056
- return __awaiter(_this, void 0, void 0, function () {
1057
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1058
- return __generator(this, function (_a) {
1059
- switch (_a.label) {
1060
- case 0:
1061
- localVarPath = "/Library/Series/Added";
1062
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1063
- if (configuration) {
1064
- baseOptions = configuration.baseOptions;
1065
- }
1066
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1067
- localVarHeaderParameter = {};
1068
- localVarQueryParameter = {};
1069
- // authentication CustomAuthentication required
1070
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1071
- case 1:
1072
- // authentication CustomAuthentication required
1073
- _a.sent();
1074
- if (tvdbId !== undefined) {
1075
- localVarQueryParameter['tvdbId'] = tvdbId;
1076
- }
1077
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1078
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1079
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1080
- return [2 /*return*/, {
1081
- url: (0, common_1.toPathString)(localVarUrlObj),
1082
- options: localVarRequestOptions,
1083
- }];
1084
- }
1085
- });
1086
- });
1087
- },
773
+ postAddedSeries: (tvdbId, options = {}) => __awaiter(this, void 0, void 0, function* () {
774
+ const localVarPath = `/Library/Series/Added`;
775
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
776
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
777
+ let baseOptions;
778
+ if (configuration) {
779
+ baseOptions = configuration.baseOptions;
780
+ }
781
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
782
+ const localVarHeaderParameter = {};
783
+ const localVarQueryParameter = {};
784
+ // authentication CustomAuthentication required
785
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
786
+ if (tvdbId !== undefined) {
787
+ localVarQueryParameter['tvdbId'] = tvdbId;
788
+ }
789
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
790
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
791
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
792
+ return {
793
+ url: toPathString(localVarUrlObj),
794
+ options: localVarRequestOptions,
795
+ };
796
+ }),
1088
797
  /**
1089
798
  *
1090
799
  * @summary Reports that new movies have been added by an external source.
@@ -1092,41 +801,31 @@ var LibraryApiAxiosParamCreator = function (configuration) {
1092
801
  * @param {*} [options] Override http request option.
1093
802
  * @throws {RequiredError}
1094
803
  */
1095
- postUpdatedMedia: function (mediaUpdateInfoDto, options) {
1096
- if (options === void 0) { options = {}; }
1097
- return __awaiter(_this, void 0, void 0, function () {
1098
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1099
- return __generator(this, function (_a) {
1100
- switch (_a.label) {
1101
- case 0:
1102
- // verify required parameter 'mediaUpdateInfoDto' is not null or undefined
1103
- (0, common_1.assertParamExists)('postUpdatedMedia', 'mediaUpdateInfoDto', mediaUpdateInfoDto);
1104
- localVarPath = "/Library/Media/Updated";
1105
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1106
- if (configuration) {
1107
- baseOptions = configuration.baseOptions;
1108
- }
1109
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1110
- localVarHeaderParameter = {};
1111
- localVarQueryParameter = {};
1112
- // authentication CustomAuthentication required
1113
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1114
- case 1:
1115
- // authentication CustomAuthentication required
1116
- _a.sent();
1117
- localVarHeaderParameter['Content-Type'] = 'application/json';
1118
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1119
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1120
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1121
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mediaUpdateInfoDto, localVarRequestOptions, configuration);
1122
- return [2 /*return*/, {
1123
- url: (0, common_1.toPathString)(localVarUrlObj),
1124
- options: localVarRequestOptions,
1125
- }];
1126
- }
1127
- });
1128
- });
1129
- },
804
+ postUpdatedMedia: (mediaUpdateInfoDto, options = {}) => __awaiter(this, void 0, void 0, function* () {
805
+ // verify required parameter 'mediaUpdateInfoDto' is not null or undefined
806
+ assertParamExists('postUpdatedMedia', 'mediaUpdateInfoDto', mediaUpdateInfoDto);
807
+ const localVarPath = `/Library/Media/Updated`;
808
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
809
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
810
+ let baseOptions;
811
+ if (configuration) {
812
+ baseOptions = configuration.baseOptions;
813
+ }
814
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
815
+ const localVarHeaderParameter = {};
816
+ const localVarQueryParameter = {};
817
+ // authentication CustomAuthentication required
818
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
819
+ localVarHeaderParameter['Content-Type'] = 'application/json';
820
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
821
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
822
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
823
+ localVarRequestOptions.data = serializeDataIfNeeded(mediaUpdateInfoDto, localVarRequestOptions, configuration);
824
+ return {
825
+ url: toPathString(localVarUrlObj),
826
+ options: localVarRequestOptions,
827
+ };
828
+ }),
1130
829
  /**
1131
830
  *
1132
831
  * @summary Reports that new movies have been added by an external source.
@@ -1135,43 +834,33 @@ var LibraryApiAxiosParamCreator = function (configuration) {
1135
834
  * @param {*} [options] Override http request option.
1136
835
  * @throws {RequiredError}
1137
836
  */
1138
- postUpdatedMovies: function (tmdbId, imdbId, options) {
1139
- if (options === void 0) { options = {}; }
1140
- return __awaiter(_this, void 0, void 0, function () {
1141
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1142
- return __generator(this, function (_a) {
1143
- switch (_a.label) {
1144
- case 0:
1145
- localVarPath = "/Library/Movies/Updated";
1146
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1147
- if (configuration) {
1148
- baseOptions = configuration.baseOptions;
1149
- }
1150
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1151
- localVarHeaderParameter = {};
1152
- localVarQueryParameter = {};
1153
- // authentication CustomAuthentication required
1154
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1155
- case 1:
1156
- // authentication CustomAuthentication required
1157
- _a.sent();
1158
- if (tmdbId !== undefined) {
1159
- localVarQueryParameter['tmdbId'] = tmdbId;
1160
- }
1161
- if (imdbId !== undefined) {
1162
- localVarQueryParameter['imdbId'] = imdbId;
1163
- }
1164
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1165
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1166
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1167
- return [2 /*return*/, {
1168
- url: (0, common_1.toPathString)(localVarUrlObj),
1169
- options: localVarRequestOptions,
1170
- }];
1171
- }
1172
- });
1173
- });
1174
- },
837
+ postUpdatedMovies: (tmdbId, imdbId, options = {}) => __awaiter(this, void 0, void 0, function* () {
838
+ const localVarPath = `/Library/Movies/Updated`;
839
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
840
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
841
+ let baseOptions;
842
+ if (configuration) {
843
+ baseOptions = configuration.baseOptions;
844
+ }
845
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
846
+ const localVarHeaderParameter = {};
847
+ const localVarQueryParameter = {};
848
+ // authentication CustomAuthentication required
849
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
850
+ if (tmdbId !== undefined) {
851
+ localVarQueryParameter['tmdbId'] = tmdbId;
852
+ }
853
+ if (imdbId !== undefined) {
854
+ localVarQueryParameter['imdbId'] = imdbId;
855
+ }
856
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
857
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
858
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
859
+ return {
860
+ url: toPathString(localVarUrlObj),
861
+ options: localVarRequestOptions,
862
+ };
863
+ }),
1175
864
  /**
1176
865
  *
1177
866
  * @summary Reports that new episodes of a series have been added by an external source.
@@ -1179,86 +868,65 @@ var LibraryApiAxiosParamCreator = function (configuration) {
1179
868
  * @param {*} [options] Override http request option.
1180
869
  * @throws {RequiredError}
1181
870
  */
1182
- postUpdatedSeries: function (tvdbId, options) {
1183
- if (options === void 0) { options = {}; }
1184
- return __awaiter(_this, void 0, void 0, function () {
1185
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1186
- return __generator(this, function (_a) {
1187
- switch (_a.label) {
1188
- case 0:
1189
- localVarPath = "/Library/Series/Updated";
1190
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1191
- if (configuration) {
1192
- baseOptions = configuration.baseOptions;
1193
- }
1194
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1195
- localVarHeaderParameter = {};
1196
- localVarQueryParameter = {};
1197
- // authentication CustomAuthentication required
1198
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1199
- case 1:
1200
- // authentication CustomAuthentication required
1201
- _a.sent();
1202
- if (tvdbId !== undefined) {
1203
- localVarQueryParameter['tvdbId'] = tvdbId;
1204
- }
1205
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1206
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1207
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1208
- return [2 /*return*/, {
1209
- url: (0, common_1.toPathString)(localVarUrlObj),
1210
- options: localVarRequestOptions,
1211
- }];
1212
- }
1213
- });
1214
- });
1215
- },
871
+ postUpdatedSeries: (tvdbId, options = {}) => __awaiter(this, void 0, void 0, function* () {
872
+ const localVarPath = `/Library/Series/Updated`;
873
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
874
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
875
+ let baseOptions;
876
+ if (configuration) {
877
+ baseOptions = configuration.baseOptions;
878
+ }
879
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
880
+ const localVarHeaderParameter = {};
881
+ const localVarQueryParameter = {};
882
+ // authentication CustomAuthentication required
883
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
884
+ if (tvdbId !== undefined) {
885
+ localVarQueryParameter['tvdbId'] = tvdbId;
886
+ }
887
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
888
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
889
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
890
+ return {
891
+ url: toPathString(localVarUrlObj),
892
+ options: localVarRequestOptions,
893
+ };
894
+ }),
1216
895
  /**
1217
896
  *
1218
897
  * @summary Starts a library scan.
1219
898
  * @param {*} [options] Override http request option.
1220
899
  * @throws {RequiredError}
1221
900
  */
1222
- refreshLibrary: function (options) {
1223
- if (options === void 0) { options = {}; }
1224
- return __awaiter(_this, void 0, void 0, function () {
1225
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1226
- return __generator(this, function (_a) {
1227
- switch (_a.label) {
1228
- case 0:
1229
- localVarPath = "/Library/Refresh";
1230
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1231
- if (configuration) {
1232
- baseOptions = configuration.baseOptions;
1233
- }
1234
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1235
- localVarHeaderParameter = {};
1236
- localVarQueryParameter = {};
1237
- // authentication CustomAuthentication required
1238
- return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1239
- case 1:
1240
- // authentication CustomAuthentication required
1241
- _a.sent();
1242
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1243
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1244
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1245
- return [2 /*return*/, {
1246
- url: (0, common_1.toPathString)(localVarUrlObj),
1247
- options: localVarRequestOptions,
1248
- }];
1249
- }
1250
- });
1251
- });
1252
- },
901
+ refreshLibrary: (options = {}) => __awaiter(this, void 0, void 0, function* () {
902
+ const localVarPath = `/Library/Refresh`;
903
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
904
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
905
+ let baseOptions;
906
+ if (configuration) {
907
+ baseOptions = configuration.baseOptions;
908
+ }
909
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
910
+ const localVarHeaderParameter = {};
911
+ const localVarQueryParameter = {};
912
+ // authentication CustomAuthentication required
913
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
914
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
915
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
916
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
917
+ return {
918
+ url: toPathString(localVarUrlObj),
919
+ options: localVarRequestOptions,
920
+ };
921
+ }),
1253
922
  };
1254
923
  };
1255
- exports.LibraryApiAxiosParamCreator = LibraryApiAxiosParamCreator;
1256
924
  /**
1257
925
  * LibraryApi - functional programming interface
1258
926
  * @export
1259
927
  */
1260
- var LibraryApiFp = function (configuration) {
1261
- var localVarAxiosParamCreator = (0, exports.LibraryApiAxiosParamCreator)(configuration);
928
+ const LibraryApiFp = function (configuration) {
929
+ const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration);
1262
930
  return {
1263
931
  /**
1264
932
  *
@@ -1267,17 +935,10 @@ var LibraryApiFp = function (configuration) {
1267
935
  * @param {*} [options] Override http request option.
1268
936
  * @throws {RequiredError}
1269
937
  */
1270
- deleteItem: function (itemId, options) {
1271
- return __awaiter(this, void 0, void 0, function () {
1272
- var localVarAxiosArgs;
1273
- return __generator(this, function (_a) {
1274
- switch (_a.label) {
1275
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteItem(itemId, options)];
1276
- case 1:
1277
- localVarAxiosArgs = _a.sent();
1278
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1279
- }
1280
- });
938
+ deleteItem(itemId, options) {
939
+ return __awaiter(this, void 0, void 0, function* () {
940
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteItem(itemId, options);
941
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1281
942
  });
1282
943
  },
1283
944
  /**
@@ -1287,17 +948,10 @@ var LibraryApiFp = function (configuration) {
1287
948
  * @param {*} [options] Override http request option.
1288
949
  * @throws {RequiredError}
1289
950
  */
1290
- deleteItems: function (ids, options) {
1291
- return __awaiter(this, void 0, void 0, function () {
1292
- var localVarAxiosArgs;
1293
- return __generator(this, function (_a) {
1294
- switch (_a.label) {
1295
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteItems(ids, options)];
1296
- case 1:
1297
- localVarAxiosArgs = _a.sent();
1298
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1299
- }
1300
- });
951
+ deleteItems(ids, options) {
952
+ return __awaiter(this, void 0, void 0, function* () {
953
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteItems(ids, options);
954
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1301
955
  });
1302
956
  },
1303
957
  /**
@@ -1308,17 +962,10 @@ var LibraryApiFp = function (configuration) {
1308
962
  * @param {*} [options] Override http request option.
1309
963
  * @throws {RequiredError}
1310
964
  */
1311
- getAncestors: function (itemId, userId, options) {
1312
- return __awaiter(this, void 0, void 0, function () {
1313
- var localVarAxiosArgs;
1314
- return __generator(this, function (_a) {
1315
- switch (_a.label) {
1316
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAncestors(itemId, userId, options)];
1317
- case 1:
1318
- localVarAxiosArgs = _a.sent();
1319
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1320
- }
1321
- });
965
+ getAncestors(itemId, userId, options) {
966
+ return __awaiter(this, void 0, void 0, function* () {
967
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAncestors(itemId, userId, options);
968
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1322
969
  });
1323
970
  },
1324
971
  /**
@@ -1329,17 +976,10 @@ var LibraryApiFp = function (configuration) {
1329
976
  * @deprecated
1330
977
  * @throws {RequiredError}
1331
978
  */
1332
- getCriticReviews: function (itemId, options) {
1333
- return __awaiter(this, void 0, void 0, function () {
1334
- var localVarAxiosArgs;
1335
- return __generator(this, function (_a) {
1336
- switch (_a.label) {
1337
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCriticReviews(itemId, options)];
1338
- case 1:
1339
- localVarAxiosArgs = _a.sent();
1340
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1341
- }
1342
- });
979
+ getCriticReviews(itemId, options) {
980
+ return __awaiter(this, void 0, void 0, function* () {
981
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCriticReviews(itemId, options);
982
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1343
983
  });
1344
984
  },
1345
985
  /**
@@ -1349,17 +989,10 @@ var LibraryApiFp = function (configuration) {
1349
989
  * @param {*} [options] Override http request option.
1350
990
  * @throws {RequiredError}
1351
991
  */
1352
- getDownload: function (itemId, options) {
1353
- return __awaiter(this, void 0, void 0, function () {
1354
- var localVarAxiosArgs;
1355
- return __generator(this, function (_a) {
1356
- switch (_a.label) {
1357
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDownload(itemId, options)];
1358
- case 1:
1359
- localVarAxiosArgs = _a.sent();
1360
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1361
- }
1362
- });
992
+ getDownload(itemId, options) {
993
+ return __awaiter(this, void 0, void 0, function* () {
994
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDownload(itemId, options);
995
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1363
996
  });
1364
997
  },
1365
998
  /**
@@ -1369,17 +1002,10 @@ var LibraryApiFp = function (configuration) {
1369
1002
  * @param {*} [options] Override http request option.
1370
1003
  * @throws {RequiredError}
1371
1004
  */
1372
- getFile: function (itemId, options) {
1373
- return __awaiter(this, void 0, void 0, function () {
1374
- var localVarAxiosArgs;
1375
- return __generator(this, function (_a) {
1376
- switch (_a.label) {
1377
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFile(itemId, options)];
1378
- case 1:
1379
- localVarAxiosArgs = _a.sent();
1380
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1381
- }
1382
- });
1005
+ getFile(itemId, options) {
1006
+ return __awaiter(this, void 0, void 0, function* () {
1007
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFile(itemId, options);
1008
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1383
1009
  });
1384
1010
  },
1385
1011
  /**
@@ -1390,17 +1016,10 @@ var LibraryApiFp = function (configuration) {
1390
1016
  * @param {*} [options] Override http request option.
1391
1017
  * @throws {RequiredError}
1392
1018
  */
1393
- getItemCounts: function (userId, isFavorite, options) {
1394
- return __awaiter(this, void 0, void 0, function () {
1395
- var localVarAxiosArgs;
1396
- return __generator(this, function (_a) {
1397
- switch (_a.label) {
1398
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getItemCounts(userId, isFavorite, options)];
1399
- case 1:
1400
- localVarAxiosArgs = _a.sent();
1401
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1402
- }
1403
- });
1019
+ getItemCounts(userId, isFavorite, options) {
1020
+ return __awaiter(this, void 0, void 0, function* () {
1021
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getItemCounts(userId, isFavorite, options);
1022
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1404
1023
  });
1405
1024
  },
1406
1025
  /**
@@ -1411,17 +1030,10 @@ var LibraryApiFp = function (configuration) {
1411
1030
  * @param {*} [options] Override http request option.
1412
1031
  * @throws {RequiredError}
1413
1032
  */
1414
- getLibraryOptionsInfo: function (libraryContentType, isNewLibrary, options) {
1415
- return __awaiter(this, void 0, void 0, function () {
1416
- var localVarAxiosArgs;
1417
- return __generator(this, function (_a) {
1418
- switch (_a.label) {
1419
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options)];
1420
- case 1:
1421
- localVarAxiosArgs = _a.sent();
1422
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1423
- }
1424
- });
1033
+ getLibraryOptionsInfo(libraryContentType, isNewLibrary, options) {
1034
+ return __awaiter(this, void 0, void 0, function* () {
1035
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options);
1036
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1425
1037
  });
1426
1038
  },
1427
1039
  /**
@@ -1431,17 +1043,10 @@ var LibraryApiFp = function (configuration) {
1431
1043
  * @param {*} [options] Override http request option.
1432
1044
  * @throws {RequiredError}
1433
1045
  */
1434
- getMediaFolders: function (isHidden, options) {
1435
- return __awaiter(this, void 0, void 0, function () {
1436
- var localVarAxiosArgs;
1437
- return __generator(this, function (_a) {
1438
- switch (_a.label) {
1439
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMediaFolders(isHidden, options)];
1440
- case 1:
1441
- localVarAxiosArgs = _a.sent();
1442
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1443
- }
1444
- });
1046
+ getMediaFolders(isHidden, options) {
1047
+ return __awaiter(this, void 0, void 0, function* () {
1048
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMediaFolders(isHidden, options);
1049
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1445
1050
  });
1446
1051
  },
1447
1052
  /**
@@ -1450,17 +1055,10 @@ var LibraryApiFp = function (configuration) {
1450
1055
  * @param {*} [options] Override http request option.
1451
1056
  * @throws {RequiredError}
1452
1057
  */
1453
- getPhysicalPaths: function (options) {
1454
- return __awaiter(this, void 0, void 0, function () {
1455
- var localVarAxiosArgs;
1456
- return __generator(this, function (_a) {
1457
- switch (_a.label) {
1458
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPhysicalPaths(options)];
1459
- case 1:
1460
- localVarAxiosArgs = _a.sent();
1461
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1462
- }
1463
- });
1058
+ getPhysicalPaths(options) {
1059
+ return __awaiter(this, void 0, void 0, function* () {
1060
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPhysicalPaths(options);
1061
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1464
1062
  });
1465
1063
  },
1466
1064
  /**
@@ -1474,17 +1072,10 @@ var LibraryApiFp = function (configuration) {
1474
1072
  * @param {*} [options] Override http request option.
1475
1073
  * @throws {RequiredError}
1476
1074
  */
1477
- getSimilarAlbums: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1478
- return __awaiter(this, void 0, void 0, function () {
1479
- var localVarAxiosArgs;
1480
- return __generator(this, function (_a) {
1481
- switch (_a.label) {
1482
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options)];
1483
- case 1:
1484
- localVarAxiosArgs = _a.sent();
1485
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1486
- }
1487
- });
1075
+ getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options) {
1076
+ return __awaiter(this, void 0, void 0, function* () {
1077
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options);
1078
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1488
1079
  });
1489
1080
  },
1490
1081
  /**
@@ -1498,17 +1089,10 @@ var LibraryApiFp = function (configuration) {
1498
1089
  * @param {*} [options] Override http request option.
1499
1090
  * @throws {RequiredError}
1500
1091
  */
1501
- getSimilarArtists: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1502
- return __awaiter(this, void 0, void 0, function () {
1503
- var localVarAxiosArgs;
1504
- return __generator(this, function (_a) {
1505
- switch (_a.label) {
1506
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options)];
1507
- case 1:
1508
- localVarAxiosArgs = _a.sent();
1509
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1510
- }
1511
- });
1092
+ getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options) {
1093
+ return __awaiter(this, void 0, void 0, function* () {
1094
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options);
1095
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1512
1096
  });
1513
1097
  },
1514
1098
  /**
@@ -1522,17 +1106,10 @@ var LibraryApiFp = function (configuration) {
1522
1106
  * @param {*} [options] Override http request option.
1523
1107
  * @throws {RequiredError}
1524
1108
  */
1525
- getSimilarItems: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1526
- return __awaiter(this, void 0, void 0, function () {
1527
- var localVarAxiosArgs;
1528
- return __generator(this, function (_a) {
1529
- switch (_a.label) {
1530
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options)];
1531
- case 1:
1532
- localVarAxiosArgs = _a.sent();
1533
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1534
- }
1535
- });
1109
+ getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options) {
1110
+ return __awaiter(this, void 0, void 0, function* () {
1111
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options);
1112
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1536
1113
  });
1537
1114
  },
1538
1115
  /**
@@ -1546,17 +1123,10 @@ var LibraryApiFp = function (configuration) {
1546
1123
  * @param {*} [options] Override http request option.
1547
1124
  * @throws {RequiredError}
1548
1125
  */
1549
- getSimilarMovies: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1550
- return __awaiter(this, void 0, void 0, function () {
1551
- var localVarAxiosArgs;
1552
- return __generator(this, function (_a) {
1553
- switch (_a.label) {
1554
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options)];
1555
- case 1:
1556
- localVarAxiosArgs = _a.sent();
1557
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1558
- }
1559
- });
1126
+ getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options) {
1127
+ return __awaiter(this, void 0, void 0, function* () {
1128
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options);
1129
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1560
1130
  });
1561
1131
  },
1562
1132
  /**
@@ -1570,17 +1140,10 @@ var LibraryApiFp = function (configuration) {
1570
1140
  * @param {*} [options] Override http request option.
1571
1141
  * @throws {RequiredError}
1572
1142
  */
1573
- getSimilarShows: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1574
- return __awaiter(this, void 0, void 0, function () {
1575
- var localVarAxiosArgs;
1576
- return __generator(this, function (_a) {
1577
- switch (_a.label) {
1578
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options)];
1579
- case 1:
1580
- localVarAxiosArgs = _a.sent();
1581
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1582
- }
1583
- });
1143
+ getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options) {
1144
+ return __awaiter(this, void 0, void 0, function* () {
1145
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options);
1146
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1584
1147
  });
1585
1148
  },
1586
1149
  /**
@@ -1594,17 +1157,10 @@ var LibraryApiFp = function (configuration) {
1594
1157
  * @param {*} [options] Override http request option.
1595
1158
  * @throws {RequiredError}
1596
1159
  */
1597
- getSimilarTrailers: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1598
- return __awaiter(this, void 0, void 0, function () {
1599
- var localVarAxiosArgs;
1600
- return __generator(this, function (_a) {
1601
- switch (_a.label) {
1602
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options)];
1603
- case 1:
1604
- localVarAxiosArgs = _a.sent();
1605
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1606
- }
1607
- });
1160
+ getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options) {
1161
+ return __awaiter(this, void 0, void 0, function* () {
1162
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options);
1163
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1608
1164
  });
1609
1165
  },
1610
1166
  /**
@@ -1616,17 +1172,10 @@ var LibraryApiFp = function (configuration) {
1616
1172
  * @param {*} [options] Override http request option.
1617
1173
  * @throws {RequiredError}
1618
1174
  */
1619
- getThemeMedia: function (itemId, userId, inheritFromParent, options) {
1620
- return __awaiter(this, void 0, void 0, function () {
1621
- var localVarAxiosArgs;
1622
- return __generator(this, function (_a) {
1623
- switch (_a.label) {
1624
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getThemeMedia(itemId, userId, inheritFromParent, options)];
1625
- case 1:
1626
- localVarAxiosArgs = _a.sent();
1627
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1628
- }
1629
- });
1175
+ getThemeMedia(itemId, userId, inheritFromParent, options) {
1176
+ return __awaiter(this, void 0, void 0, function* () {
1177
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getThemeMedia(itemId, userId, inheritFromParent, options);
1178
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1630
1179
  });
1631
1180
  },
1632
1181
  /**
@@ -1638,17 +1187,10 @@ var LibraryApiFp = function (configuration) {
1638
1187
  * @param {*} [options] Override http request option.
1639
1188
  * @throws {RequiredError}
1640
1189
  */
1641
- getThemeSongs: function (itemId, userId, inheritFromParent, options) {
1642
- return __awaiter(this, void 0, void 0, function () {
1643
- var localVarAxiosArgs;
1644
- return __generator(this, function (_a) {
1645
- switch (_a.label) {
1646
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getThemeSongs(itemId, userId, inheritFromParent, options)];
1647
- case 1:
1648
- localVarAxiosArgs = _a.sent();
1649
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1650
- }
1651
- });
1190
+ getThemeSongs(itemId, userId, inheritFromParent, options) {
1191
+ return __awaiter(this, void 0, void 0, function* () {
1192
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getThemeSongs(itemId, userId, inheritFromParent, options);
1193
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1652
1194
  });
1653
1195
  },
1654
1196
  /**
@@ -1660,17 +1202,10 @@ var LibraryApiFp = function (configuration) {
1660
1202
  * @param {*} [options] Override http request option.
1661
1203
  * @throws {RequiredError}
1662
1204
  */
1663
- getThemeVideos: function (itemId, userId, inheritFromParent, options) {
1664
- return __awaiter(this, void 0, void 0, function () {
1665
- var localVarAxiosArgs;
1666
- return __generator(this, function (_a) {
1667
- switch (_a.label) {
1668
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getThemeVideos(itemId, userId, inheritFromParent, options)];
1669
- case 1:
1670
- localVarAxiosArgs = _a.sent();
1671
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1672
- }
1673
- });
1205
+ getThemeVideos(itemId, userId, inheritFromParent, options) {
1206
+ return __awaiter(this, void 0, void 0, function* () {
1207
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getThemeVideos(itemId, userId, inheritFromParent, options);
1208
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1674
1209
  });
1675
1210
  },
1676
1211
  /**
@@ -1681,17 +1216,10 @@ var LibraryApiFp = function (configuration) {
1681
1216
  * @param {*} [options] Override http request option.
1682
1217
  * @throws {RequiredError}
1683
1218
  */
1684
- postAddedMovies: function (tmdbId, imdbId, options) {
1685
- return __awaiter(this, void 0, void 0, function () {
1686
- var localVarAxiosArgs;
1687
- return __generator(this, function (_a) {
1688
- switch (_a.label) {
1689
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddedMovies(tmdbId, imdbId, options)];
1690
- case 1:
1691
- localVarAxiosArgs = _a.sent();
1692
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1693
- }
1694
- });
1219
+ postAddedMovies(tmdbId, imdbId, options) {
1220
+ return __awaiter(this, void 0, void 0, function* () {
1221
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postAddedMovies(tmdbId, imdbId, options);
1222
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1695
1223
  });
1696
1224
  },
1697
1225
  /**
@@ -1701,17 +1229,10 @@ var LibraryApiFp = function (configuration) {
1701
1229
  * @param {*} [options] Override http request option.
1702
1230
  * @throws {RequiredError}
1703
1231
  */
1704
- postAddedSeries: function (tvdbId, options) {
1705
- return __awaiter(this, void 0, void 0, function () {
1706
- var localVarAxiosArgs;
1707
- return __generator(this, function (_a) {
1708
- switch (_a.label) {
1709
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddedSeries(tvdbId, options)];
1710
- case 1:
1711
- localVarAxiosArgs = _a.sent();
1712
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1713
- }
1714
- });
1232
+ postAddedSeries(tvdbId, options) {
1233
+ return __awaiter(this, void 0, void 0, function* () {
1234
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postAddedSeries(tvdbId, options);
1235
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1715
1236
  });
1716
1237
  },
1717
1238
  /**
@@ -1721,17 +1242,10 @@ var LibraryApiFp = function (configuration) {
1721
1242
  * @param {*} [options] Override http request option.
1722
1243
  * @throws {RequiredError}
1723
1244
  */
1724
- postUpdatedMedia: function (mediaUpdateInfoDto, options) {
1725
- return __awaiter(this, void 0, void 0, function () {
1726
- var localVarAxiosArgs;
1727
- return __generator(this, function (_a) {
1728
- switch (_a.label) {
1729
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUpdatedMedia(mediaUpdateInfoDto, options)];
1730
- case 1:
1731
- localVarAxiosArgs = _a.sent();
1732
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1733
- }
1734
- });
1245
+ postUpdatedMedia(mediaUpdateInfoDto, options) {
1246
+ return __awaiter(this, void 0, void 0, function* () {
1247
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postUpdatedMedia(mediaUpdateInfoDto, options);
1248
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1735
1249
  });
1736
1250
  },
1737
1251
  /**
@@ -1742,17 +1256,10 @@ var LibraryApiFp = function (configuration) {
1742
1256
  * @param {*} [options] Override http request option.
1743
1257
  * @throws {RequiredError}
1744
1258
  */
1745
- postUpdatedMovies: function (tmdbId, imdbId, options) {
1746
- return __awaiter(this, void 0, void 0, function () {
1747
- var localVarAxiosArgs;
1748
- return __generator(this, function (_a) {
1749
- switch (_a.label) {
1750
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUpdatedMovies(tmdbId, imdbId, options)];
1751
- case 1:
1752
- localVarAxiosArgs = _a.sent();
1753
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1754
- }
1755
- });
1259
+ postUpdatedMovies(tmdbId, imdbId, options) {
1260
+ return __awaiter(this, void 0, void 0, function* () {
1261
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postUpdatedMovies(tmdbId, imdbId, options);
1262
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1756
1263
  });
1757
1264
  },
1758
1265
  /**
@@ -1762,17 +1269,10 @@ var LibraryApiFp = function (configuration) {
1762
1269
  * @param {*} [options] Override http request option.
1763
1270
  * @throws {RequiredError}
1764
1271
  */
1765
- postUpdatedSeries: function (tvdbId, options) {
1766
- return __awaiter(this, void 0, void 0, function () {
1767
- var localVarAxiosArgs;
1768
- return __generator(this, function (_a) {
1769
- switch (_a.label) {
1770
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUpdatedSeries(tvdbId, options)];
1771
- case 1:
1772
- localVarAxiosArgs = _a.sent();
1773
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1774
- }
1775
- });
1272
+ postUpdatedSeries(tvdbId, options) {
1273
+ return __awaiter(this, void 0, void 0, function* () {
1274
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postUpdatedSeries(tvdbId, options);
1275
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1776
1276
  });
1777
1277
  },
1778
1278
  /**
@@ -1781,28 +1281,20 @@ var LibraryApiFp = function (configuration) {
1781
1281
  * @param {*} [options] Override http request option.
1782
1282
  * @throws {RequiredError}
1783
1283
  */
1784
- refreshLibrary: function (options) {
1785
- return __awaiter(this, void 0, void 0, function () {
1786
- var localVarAxiosArgs;
1787
- return __generator(this, function (_a) {
1788
- switch (_a.label) {
1789
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.refreshLibrary(options)];
1790
- case 1:
1791
- localVarAxiosArgs = _a.sent();
1792
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1793
- }
1794
- });
1284
+ refreshLibrary(options) {
1285
+ return __awaiter(this, void 0, void 0, function* () {
1286
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.refreshLibrary(options);
1287
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1795
1288
  });
1796
1289
  },
1797
1290
  };
1798
1291
  };
1799
- exports.LibraryApiFp = LibraryApiFp;
1800
1292
  /**
1801
1293
  * LibraryApi - factory interface
1802
1294
  * @export
1803
1295
  */
1804
- var LibraryApiFactory = function (configuration, basePath, axios) {
1805
- var localVarFp = (0, exports.LibraryApiFp)(configuration);
1296
+ const LibraryApiFactory = function (configuration, basePath, axios) {
1297
+ const localVarFp = LibraryApiFp(configuration);
1806
1298
  return {
1807
1299
  /**
1808
1300
  *
@@ -1811,8 +1303,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1811
1303
  * @param {*} [options] Override http request option.
1812
1304
  * @throws {RequiredError}
1813
1305
  */
1814
- deleteItem: function (itemId, options) {
1815
- return localVarFp.deleteItem(itemId, options).then(function (request) { return request(axios, basePath); });
1306
+ deleteItem(itemId, options) {
1307
+ return localVarFp.deleteItem(itemId, options).then((request) => request(axios, basePath));
1816
1308
  },
1817
1309
  /**
1818
1310
  *
@@ -1821,8 +1313,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1821
1313
  * @param {*} [options] Override http request option.
1822
1314
  * @throws {RequiredError}
1823
1315
  */
1824
- deleteItems: function (ids, options) {
1825
- return localVarFp.deleteItems(ids, options).then(function (request) { return request(axios, basePath); });
1316
+ deleteItems(ids, options) {
1317
+ return localVarFp.deleteItems(ids, options).then((request) => request(axios, basePath));
1826
1318
  },
1827
1319
  /**
1828
1320
  *
@@ -1832,8 +1324,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1832
1324
  * @param {*} [options] Override http request option.
1833
1325
  * @throws {RequiredError}
1834
1326
  */
1835
- getAncestors: function (itemId, userId, options) {
1836
- return localVarFp.getAncestors(itemId, userId, options).then(function (request) { return request(axios, basePath); });
1327
+ getAncestors(itemId, userId, options) {
1328
+ return localVarFp.getAncestors(itemId, userId, options).then((request) => request(axios, basePath));
1837
1329
  },
1838
1330
  /**
1839
1331
  *
@@ -1843,8 +1335,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1843
1335
  * @deprecated
1844
1336
  * @throws {RequiredError}
1845
1337
  */
1846
- getCriticReviews: function (itemId, options) {
1847
- return localVarFp.getCriticReviews(itemId, options).then(function (request) { return request(axios, basePath); });
1338
+ getCriticReviews(itemId, options) {
1339
+ return localVarFp.getCriticReviews(itemId, options).then((request) => request(axios, basePath));
1848
1340
  },
1849
1341
  /**
1850
1342
  *
@@ -1853,8 +1345,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1853
1345
  * @param {*} [options] Override http request option.
1854
1346
  * @throws {RequiredError}
1855
1347
  */
1856
- getDownload: function (itemId, options) {
1857
- return localVarFp.getDownload(itemId, options).then(function (request) { return request(axios, basePath); });
1348
+ getDownload(itemId, options) {
1349
+ return localVarFp.getDownload(itemId, options).then((request) => request(axios, basePath));
1858
1350
  },
1859
1351
  /**
1860
1352
  *
@@ -1863,8 +1355,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1863
1355
  * @param {*} [options] Override http request option.
1864
1356
  * @throws {RequiredError}
1865
1357
  */
1866
- getFile: function (itemId, options) {
1867
- return localVarFp.getFile(itemId, options).then(function (request) { return request(axios, basePath); });
1358
+ getFile(itemId, options) {
1359
+ return localVarFp.getFile(itemId, options).then((request) => request(axios, basePath));
1868
1360
  },
1869
1361
  /**
1870
1362
  *
@@ -1874,8 +1366,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1874
1366
  * @param {*} [options] Override http request option.
1875
1367
  * @throws {RequiredError}
1876
1368
  */
1877
- getItemCounts: function (userId, isFavorite, options) {
1878
- return localVarFp.getItemCounts(userId, isFavorite, options).then(function (request) { return request(axios, basePath); });
1369
+ getItemCounts(userId, isFavorite, options) {
1370
+ return localVarFp.getItemCounts(userId, isFavorite, options).then((request) => request(axios, basePath));
1879
1371
  },
1880
1372
  /**
1881
1373
  *
@@ -1885,8 +1377,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1885
1377
  * @param {*} [options] Override http request option.
1886
1378
  * @throws {RequiredError}
1887
1379
  */
1888
- getLibraryOptionsInfo: function (libraryContentType, isNewLibrary, options) {
1889
- return localVarFp.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options).then(function (request) { return request(axios, basePath); });
1380
+ getLibraryOptionsInfo(libraryContentType, isNewLibrary, options) {
1381
+ return localVarFp.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options).then((request) => request(axios, basePath));
1890
1382
  },
1891
1383
  /**
1892
1384
  *
@@ -1895,8 +1387,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1895
1387
  * @param {*} [options] Override http request option.
1896
1388
  * @throws {RequiredError}
1897
1389
  */
1898
- getMediaFolders: function (isHidden, options) {
1899
- return localVarFp.getMediaFolders(isHidden, options).then(function (request) { return request(axios, basePath); });
1390
+ getMediaFolders(isHidden, options) {
1391
+ return localVarFp.getMediaFolders(isHidden, options).then((request) => request(axios, basePath));
1900
1392
  },
1901
1393
  /**
1902
1394
  *
@@ -1904,8 +1396,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1904
1396
  * @param {*} [options] Override http request option.
1905
1397
  * @throws {RequiredError}
1906
1398
  */
1907
- getPhysicalPaths: function (options) {
1908
- return localVarFp.getPhysicalPaths(options).then(function (request) { return request(axios, basePath); });
1399
+ getPhysicalPaths(options) {
1400
+ return localVarFp.getPhysicalPaths(options).then((request) => request(axios, basePath));
1909
1401
  },
1910
1402
  /**
1911
1403
  *
@@ -1918,8 +1410,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1918
1410
  * @param {*} [options] Override http request option.
1919
1411
  * @throws {RequiredError}
1920
1412
  */
1921
- getSimilarAlbums: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1922
- return localVarFp.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
1413
+ getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options) {
1414
+ return localVarFp.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1923
1415
  },
1924
1416
  /**
1925
1417
  *
@@ -1932,8 +1424,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1932
1424
  * @param {*} [options] Override http request option.
1933
1425
  * @throws {RequiredError}
1934
1426
  */
1935
- getSimilarArtists: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1936
- return localVarFp.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
1427
+ getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options) {
1428
+ return localVarFp.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1937
1429
  },
1938
1430
  /**
1939
1431
  *
@@ -1946,8 +1438,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1946
1438
  * @param {*} [options] Override http request option.
1947
1439
  * @throws {RequiredError}
1948
1440
  */
1949
- getSimilarItems: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1950
- return localVarFp.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
1441
+ getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options) {
1442
+ return localVarFp.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1951
1443
  },
1952
1444
  /**
1953
1445
  *
@@ -1960,8 +1452,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1960
1452
  * @param {*} [options] Override http request option.
1961
1453
  * @throws {RequiredError}
1962
1454
  */
1963
- getSimilarMovies: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1964
- return localVarFp.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
1455
+ getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options) {
1456
+ return localVarFp.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1965
1457
  },
1966
1458
  /**
1967
1459
  *
@@ -1974,8 +1466,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1974
1466
  * @param {*} [options] Override http request option.
1975
1467
  * @throws {RequiredError}
1976
1468
  */
1977
- getSimilarShows: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1978
- return localVarFp.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
1469
+ getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options) {
1470
+ return localVarFp.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1979
1471
  },
1980
1472
  /**
1981
1473
  *
@@ -1988,8 +1480,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
1988
1480
  * @param {*} [options] Override http request option.
1989
1481
  * @throws {RequiredError}
1990
1482
  */
1991
- getSimilarTrailers: function (itemId, excludeArtistIds, userId, limit, fields, options) {
1992
- return localVarFp.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options).then(function (request) { return request(axios, basePath); });
1483
+ getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options) {
1484
+ return localVarFp.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1993
1485
  },
1994
1486
  /**
1995
1487
  *
@@ -2000,8 +1492,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
2000
1492
  * @param {*} [options] Override http request option.
2001
1493
  * @throws {RequiredError}
2002
1494
  */
2003
- getThemeMedia: function (itemId, userId, inheritFromParent, options) {
2004
- return localVarFp.getThemeMedia(itemId, userId, inheritFromParent, options).then(function (request) { return request(axios, basePath); });
1495
+ getThemeMedia(itemId, userId, inheritFromParent, options) {
1496
+ return localVarFp.getThemeMedia(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
2005
1497
  },
2006
1498
  /**
2007
1499
  *
@@ -2012,8 +1504,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
2012
1504
  * @param {*} [options] Override http request option.
2013
1505
  * @throws {RequiredError}
2014
1506
  */
2015
- getThemeSongs: function (itemId, userId, inheritFromParent, options) {
2016
- return localVarFp.getThemeSongs(itemId, userId, inheritFromParent, options).then(function (request) { return request(axios, basePath); });
1507
+ getThemeSongs(itemId, userId, inheritFromParent, options) {
1508
+ return localVarFp.getThemeSongs(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
2017
1509
  },
2018
1510
  /**
2019
1511
  *
@@ -2024,8 +1516,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
2024
1516
  * @param {*} [options] Override http request option.
2025
1517
  * @throws {RequiredError}
2026
1518
  */
2027
- getThemeVideos: function (itemId, userId, inheritFromParent, options) {
2028
- return localVarFp.getThemeVideos(itemId, userId, inheritFromParent, options).then(function (request) { return request(axios, basePath); });
1519
+ getThemeVideos(itemId, userId, inheritFromParent, options) {
1520
+ return localVarFp.getThemeVideos(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
2029
1521
  },
2030
1522
  /**
2031
1523
  *
@@ -2035,8 +1527,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
2035
1527
  * @param {*} [options] Override http request option.
2036
1528
  * @throws {RequiredError}
2037
1529
  */
2038
- postAddedMovies: function (tmdbId, imdbId, options) {
2039
- return localVarFp.postAddedMovies(tmdbId, imdbId, options).then(function (request) { return request(axios, basePath); });
1530
+ postAddedMovies(tmdbId, imdbId, options) {
1531
+ return localVarFp.postAddedMovies(tmdbId, imdbId, options).then((request) => request(axios, basePath));
2040
1532
  },
2041
1533
  /**
2042
1534
  *
@@ -2045,8 +1537,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
2045
1537
  * @param {*} [options] Override http request option.
2046
1538
  * @throws {RequiredError}
2047
1539
  */
2048
- postAddedSeries: function (tvdbId, options) {
2049
- return localVarFp.postAddedSeries(tvdbId, options).then(function (request) { return request(axios, basePath); });
1540
+ postAddedSeries(tvdbId, options) {
1541
+ return localVarFp.postAddedSeries(tvdbId, options).then((request) => request(axios, basePath));
2050
1542
  },
2051
1543
  /**
2052
1544
  *
@@ -2055,8 +1547,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
2055
1547
  * @param {*} [options] Override http request option.
2056
1548
  * @throws {RequiredError}
2057
1549
  */
2058
- postUpdatedMedia: function (mediaUpdateInfoDto, options) {
2059
- return localVarFp.postUpdatedMedia(mediaUpdateInfoDto, options).then(function (request) { return request(axios, basePath); });
1550
+ postUpdatedMedia(mediaUpdateInfoDto, options) {
1551
+ return localVarFp.postUpdatedMedia(mediaUpdateInfoDto, options).then((request) => request(axios, basePath));
2060
1552
  },
2061
1553
  /**
2062
1554
  *
@@ -2066,8 +1558,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
2066
1558
  * @param {*} [options] Override http request option.
2067
1559
  * @throws {RequiredError}
2068
1560
  */
2069
- postUpdatedMovies: function (tmdbId, imdbId, options) {
2070
- return localVarFp.postUpdatedMovies(tmdbId, imdbId, options).then(function (request) { return request(axios, basePath); });
1561
+ postUpdatedMovies(tmdbId, imdbId, options) {
1562
+ return localVarFp.postUpdatedMovies(tmdbId, imdbId, options).then((request) => request(axios, basePath));
2071
1563
  },
2072
1564
  /**
2073
1565
  *
@@ -2076,8 +1568,8 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
2076
1568
  * @param {*} [options] Override http request option.
2077
1569
  * @throws {RequiredError}
2078
1570
  */
2079
- postUpdatedSeries: function (tvdbId, options) {
2080
- return localVarFp.postUpdatedSeries(tvdbId, options).then(function (request) { return request(axios, basePath); });
1571
+ postUpdatedSeries(tvdbId, options) {
1572
+ return localVarFp.postUpdatedSeries(tvdbId, options).then((request) => request(axios, basePath));
2081
1573
  },
2082
1574
  /**
2083
1575
  *
@@ -2085,23 +1577,18 @@ var LibraryApiFactory = function (configuration, basePath, axios) {
2085
1577
  * @param {*} [options] Override http request option.
2086
1578
  * @throws {RequiredError}
2087
1579
  */
2088
- refreshLibrary: function (options) {
2089
- return localVarFp.refreshLibrary(options).then(function (request) { return request(axios, basePath); });
1580
+ refreshLibrary(options) {
1581
+ return localVarFp.refreshLibrary(options).then((request) => request(axios, basePath));
2090
1582
  },
2091
1583
  };
2092
1584
  };
2093
- exports.LibraryApiFactory = LibraryApiFactory;
2094
1585
  /**
2095
1586
  * LibraryApi - object-oriented interface
2096
1587
  * @export
2097
1588
  * @class LibraryApi
2098
1589
  * @extends {BaseAPI}
2099
1590
  */
2100
- var LibraryApi = /** @class */ (function (_super) {
2101
- __extends(LibraryApi, _super);
2102
- function LibraryApi() {
2103
- return _super !== null && _super.apply(this, arguments) || this;
2104
- }
1591
+ class LibraryApi extends BaseAPI {
2105
1592
  /**
2106
1593
  *
2107
1594
  * @summary Deletes an item from the library and filesystem.
@@ -2110,10 +1597,9 @@ var LibraryApi = /** @class */ (function (_super) {
2110
1597
  * @throws {RequiredError}
2111
1598
  * @memberof LibraryApi
2112
1599
  */
2113
- LibraryApi.prototype.deleteItem = function (requestParameters, options) {
2114
- var _this = this;
2115
- return (0, exports.LibraryApiFp)(this.configuration).deleteItem(requestParameters.itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2116
- };
1600
+ deleteItem(requestParameters, options) {
1601
+ return LibraryApiFp(this.configuration).deleteItem(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
1602
+ }
2117
1603
  /**
2118
1604
  *
2119
1605
  * @summary Deletes items from the library and filesystem.
@@ -2122,11 +1608,9 @@ var LibraryApi = /** @class */ (function (_super) {
2122
1608
  * @throws {RequiredError}
2123
1609
  * @memberof LibraryApi
2124
1610
  */
2125
- LibraryApi.prototype.deleteItems = function (requestParameters, options) {
2126
- var _this = this;
2127
- if (requestParameters === void 0) { requestParameters = {}; }
2128
- return (0, exports.LibraryApiFp)(this.configuration).deleteItems(requestParameters.ids, options).then(function (request) { return request(_this.axios, _this.basePath); });
2129
- };
1611
+ deleteItems(requestParameters = {}, options) {
1612
+ return LibraryApiFp(this.configuration).deleteItems(requestParameters.ids, options).then((request) => request(this.axios, this.basePath));
1613
+ }
2130
1614
  /**
2131
1615
  *
2132
1616
  * @summary Gets all parents of an item.
@@ -2135,10 +1619,9 @@ var LibraryApi = /** @class */ (function (_super) {
2135
1619
  * @throws {RequiredError}
2136
1620
  * @memberof LibraryApi
2137
1621
  */
2138
- LibraryApi.prototype.getAncestors = function (requestParameters, options) {
2139
- var _this = this;
2140
- return (0, exports.LibraryApiFp)(this.configuration).getAncestors(requestParameters.itemId, requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2141
- };
1622
+ getAncestors(requestParameters, options) {
1623
+ return LibraryApiFp(this.configuration).getAncestors(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
1624
+ }
2142
1625
  /**
2143
1626
  *
2144
1627
  * @summary Gets critic review for an item.
@@ -2148,10 +1631,9 @@ var LibraryApi = /** @class */ (function (_super) {
2148
1631
  * @throws {RequiredError}
2149
1632
  * @memberof LibraryApi
2150
1633
  */
2151
- LibraryApi.prototype.getCriticReviews = function (requestParameters, options) {
2152
- var _this = this;
2153
- return (0, exports.LibraryApiFp)(this.configuration).getCriticReviews(requestParameters.itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2154
- };
1634
+ getCriticReviews(requestParameters, options) {
1635
+ return LibraryApiFp(this.configuration).getCriticReviews(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
1636
+ }
2155
1637
  /**
2156
1638
  *
2157
1639
  * @summary Downloads item media.
@@ -2160,10 +1642,9 @@ var LibraryApi = /** @class */ (function (_super) {
2160
1642
  * @throws {RequiredError}
2161
1643
  * @memberof LibraryApi
2162
1644
  */
2163
- LibraryApi.prototype.getDownload = function (requestParameters, options) {
2164
- var _this = this;
2165
- return (0, exports.LibraryApiFp)(this.configuration).getDownload(requestParameters.itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2166
- };
1645
+ getDownload(requestParameters, options) {
1646
+ return LibraryApiFp(this.configuration).getDownload(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
1647
+ }
2167
1648
  /**
2168
1649
  *
2169
1650
  * @summary Get the original file of an item.
@@ -2172,10 +1653,9 @@ var LibraryApi = /** @class */ (function (_super) {
2172
1653
  * @throws {RequiredError}
2173
1654
  * @memberof LibraryApi
2174
1655
  */
2175
- LibraryApi.prototype.getFile = function (requestParameters, options) {
2176
- var _this = this;
2177
- return (0, exports.LibraryApiFp)(this.configuration).getFile(requestParameters.itemId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2178
- };
1656
+ getFile(requestParameters, options) {
1657
+ return LibraryApiFp(this.configuration).getFile(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
1658
+ }
2179
1659
  /**
2180
1660
  *
2181
1661
  * @summary Get item counts.
@@ -2184,11 +1664,9 @@ var LibraryApi = /** @class */ (function (_super) {
2184
1664
  * @throws {RequiredError}
2185
1665
  * @memberof LibraryApi
2186
1666
  */
2187
- LibraryApi.prototype.getItemCounts = function (requestParameters, options) {
2188
- var _this = this;
2189
- if (requestParameters === void 0) { requestParameters = {}; }
2190
- return (0, exports.LibraryApiFp)(this.configuration).getItemCounts(requestParameters.userId, requestParameters.isFavorite, options).then(function (request) { return request(_this.axios, _this.basePath); });
2191
- };
1667
+ getItemCounts(requestParameters = {}, options) {
1668
+ return LibraryApiFp(this.configuration).getItemCounts(requestParameters.userId, requestParameters.isFavorite, options).then((request) => request(this.axios, this.basePath));
1669
+ }
2192
1670
  /**
2193
1671
  *
2194
1672
  * @summary Gets the library options info.
@@ -2197,11 +1675,9 @@ var LibraryApi = /** @class */ (function (_super) {
2197
1675
  * @throws {RequiredError}
2198
1676
  * @memberof LibraryApi
2199
1677
  */
2200
- LibraryApi.prototype.getLibraryOptionsInfo = function (requestParameters, options) {
2201
- var _this = this;
2202
- if (requestParameters === void 0) { requestParameters = {}; }
2203
- return (0, exports.LibraryApiFp)(this.configuration).getLibraryOptionsInfo(requestParameters.libraryContentType, requestParameters.isNewLibrary, options).then(function (request) { return request(_this.axios, _this.basePath); });
2204
- };
1678
+ getLibraryOptionsInfo(requestParameters = {}, options) {
1679
+ return LibraryApiFp(this.configuration).getLibraryOptionsInfo(requestParameters.libraryContentType, requestParameters.isNewLibrary, options).then((request) => request(this.axios, this.basePath));
1680
+ }
2205
1681
  /**
2206
1682
  *
2207
1683
  * @summary Gets all user media folders.
@@ -2210,11 +1686,9 @@ var LibraryApi = /** @class */ (function (_super) {
2210
1686
  * @throws {RequiredError}
2211
1687
  * @memberof LibraryApi
2212
1688
  */
2213
- LibraryApi.prototype.getMediaFolders = function (requestParameters, options) {
2214
- var _this = this;
2215
- if (requestParameters === void 0) { requestParameters = {}; }
2216
- return (0, exports.LibraryApiFp)(this.configuration).getMediaFolders(requestParameters.isHidden, options).then(function (request) { return request(_this.axios, _this.basePath); });
2217
- };
1689
+ getMediaFolders(requestParameters = {}, options) {
1690
+ return LibraryApiFp(this.configuration).getMediaFolders(requestParameters.isHidden, options).then((request) => request(this.axios, this.basePath));
1691
+ }
2218
1692
  /**
2219
1693
  *
2220
1694
  * @summary Gets a list of physical paths from virtual folders.
@@ -2222,10 +1696,9 @@ var LibraryApi = /** @class */ (function (_super) {
2222
1696
  * @throws {RequiredError}
2223
1697
  * @memberof LibraryApi
2224
1698
  */
2225
- LibraryApi.prototype.getPhysicalPaths = function (options) {
2226
- var _this = this;
2227
- return (0, exports.LibraryApiFp)(this.configuration).getPhysicalPaths(options).then(function (request) { return request(_this.axios, _this.basePath); });
2228
- };
1699
+ getPhysicalPaths(options) {
1700
+ return LibraryApiFp(this.configuration).getPhysicalPaths(options).then((request) => request(this.axios, this.basePath));
1701
+ }
2229
1702
  /**
2230
1703
  *
2231
1704
  * @summary Gets similar items.
@@ -2234,10 +1707,9 @@ var LibraryApi = /** @class */ (function (_super) {
2234
1707
  * @throws {RequiredError}
2235
1708
  * @memberof LibraryApi
2236
1709
  */
2237
- LibraryApi.prototype.getSimilarAlbums = function (requestParameters, options) {
2238
- var _this = this;
2239
- return (0, exports.LibraryApiFp)(this.configuration).getSimilarAlbums(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
2240
- };
1710
+ getSimilarAlbums(requestParameters, options) {
1711
+ return LibraryApiFp(this.configuration).getSimilarAlbums(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
1712
+ }
2241
1713
  /**
2242
1714
  *
2243
1715
  * @summary Gets similar items.
@@ -2246,10 +1718,9 @@ var LibraryApi = /** @class */ (function (_super) {
2246
1718
  * @throws {RequiredError}
2247
1719
  * @memberof LibraryApi
2248
1720
  */
2249
- LibraryApi.prototype.getSimilarArtists = function (requestParameters, options) {
2250
- var _this = this;
2251
- return (0, exports.LibraryApiFp)(this.configuration).getSimilarArtists(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
2252
- };
1721
+ getSimilarArtists(requestParameters, options) {
1722
+ return LibraryApiFp(this.configuration).getSimilarArtists(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
1723
+ }
2253
1724
  /**
2254
1725
  *
2255
1726
  * @summary Gets similar items.
@@ -2258,10 +1729,9 @@ var LibraryApi = /** @class */ (function (_super) {
2258
1729
  * @throws {RequiredError}
2259
1730
  * @memberof LibraryApi
2260
1731
  */
2261
- LibraryApi.prototype.getSimilarItems = function (requestParameters, options) {
2262
- var _this = this;
2263
- return (0, exports.LibraryApiFp)(this.configuration).getSimilarItems(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
2264
- };
1732
+ getSimilarItems(requestParameters, options) {
1733
+ return LibraryApiFp(this.configuration).getSimilarItems(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
1734
+ }
2265
1735
  /**
2266
1736
  *
2267
1737
  * @summary Gets similar items.
@@ -2270,10 +1740,9 @@ var LibraryApi = /** @class */ (function (_super) {
2270
1740
  * @throws {RequiredError}
2271
1741
  * @memberof LibraryApi
2272
1742
  */
2273
- LibraryApi.prototype.getSimilarMovies = function (requestParameters, options) {
2274
- var _this = this;
2275
- return (0, exports.LibraryApiFp)(this.configuration).getSimilarMovies(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
2276
- };
1743
+ getSimilarMovies(requestParameters, options) {
1744
+ return LibraryApiFp(this.configuration).getSimilarMovies(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
1745
+ }
2277
1746
  /**
2278
1747
  *
2279
1748
  * @summary Gets similar items.
@@ -2282,10 +1751,9 @@ var LibraryApi = /** @class */ (function (_super) {
2282
1751
  * @throws {RequiredError}
2283
1752
  * @memberof LibraryApi
2284
1753
  */
2285
- LibraryApi.prototype.getSimilarShows = function (requestParameters, options) {
2286
- var _this = this;
2287
- return (0, exports.LibraryApiFp)(this.configuration).getSimilarShows(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
2288
- };
1754
+ getSimilarShows(requestParameters, options) {
1755
+ return LibraryApiFp(this.configuration).getSimilarShows(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
1756
+ }
2289
1757
  /**
2290
1758
  *
2291
1759
  * @summary Gets similar items.
@@ -2294,10 +1762,9 @@ var LibraryApi = /** @class */ (function (_super) {
2294
1762
  * @throws {RequiredError}
2295
1763
  * @memberof LibraryApi
2296
1764
  */
2297
- LibraryApi.prototype.getSimilarTrailers = function (requestParameters, options) {
2298
- var _this = this;
2299
- return (0, exports.LibraryApiFp)(this.configuration).getSimilarTrailers(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); });
2300
- };
1765
+ getSimilarTrailers(requestParameters, options) {
1766
+ return LibraryApiFp(this.configuration).getSimilarTrailers(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
1767
+ }
2301
1768
  /**
2302
1769
  *
2303
1770
  * @summary Get theme songs and videos for an item.
@@ -2306,10 +1773,9 @@ var LibraryApi = /** @class */ (function (_super) {
2306
1773
  * @throws {RequiredError}
2307
1774
  * @memberof LibraryApi
2308
1775
  */
2309
- LibraryApi.prototype.getThemeMedia = function (requestParameters, options) {
2310
- var _this = this;
2311
- return (0, exports.LibraryApiFp)(this.configuration).getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then(function (request) { return request(_this.axios, _this.basePath); });
2312
- };
1776
+ getThemeMedia(requestParameters, options) {
1777
+ return LibraryApiFp(this.configuration).getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
1778
+ }
2313
1779
  /**
2314
1780
  *
2315
1781
  * @summary Get theme songs for an item.
@@ -2318,10 +1784,9 @@ var LibraryApi = /** @class */ (function (_super) {
2318
1784
  * @throws {RequiredError}
2319
1785
  * @memberof LibraryApi
2320
1786
  */
2321
- LibraryApi.prototype.getThemeSongs = function (requestParameters, options) {
2322
- var _this = this;
2323
- return (0, exports.LibraryApiFp)(this.configuration).getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then(function (request) { return request(_this.axios, _this.basePath); });
2324
- };
1787
+ getThemeSongs(requestParameters, options) {
1788
+ return LibraryApiFp(this.configuration).getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
1789
+ }
2325
1790
  /**
2326
1791
  *
2327
1792
  * @summary Get theme videos for an item.
@@ -2330,10 +1795,9 @@ var LibraryApi = /** @class */ (function (_super) {
2330
1795
  * @throws {RequiredError}
2331
1796
  * @memberof LibraryApi
2332
1797
  */
2333
- LibraryApi.prototype.getThemeVideos = function (requestParameters, options) {
2334
- var _this = this;
2335
- return (0, exports.LibraryApiFp)(this.configuration).getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then(function (request) { return request(_this.axios, _this.basePath); });
2336
- };
1798
+ getThemeVideos(requestParameters, options) {
1799
+ return LibraryApiFp(this.configuration).getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
1800
+ }
2337
1801
  /**
2338
1802
  *
2339
1803
  * @summary Reports that new movies have been added by an external source.
@@ -2342,11 +1806,9 @@ var LibraryApi = /** @class */ (function (_super) {
2342
1806
  * @throws {RequiredError}
2343
1807
  * @memberof LibraryApi
2344
1808
  */
2345
- LibraryApi.prototype.postAddedMovies = function (requestParameters, options) {
2346
- var _this = this;
2347
- if (requestParameters === void 0) { requestParameters = {}; }
2348
- return (0, exports.LibraryApiFp)(this.configuration).postAddedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2349
- };
1809
+ postAddedMovies(requestParameters = {}, options) {
1810
+ return LibraryApiFp(this.configuration).postAddedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then((request) => request(this.axios, this.basePath));
1811
+ }
2350
1812
  /**
2351
1813
  *
2352
1814
  * @summary Reports that new episodes of a series have been added by an external source.
@@ -2355,11 +1817,9 @@ var LibraryApi = /** @class */ (function (_super) {
2355
1817
  * @throws {RequiredError}
2356
1818
  * @memberof LibraryApi
2357
1819
  */
2358
- LibraryApi.prototype.postAddedSeries = function (requestParameters, options) {
2359
- var _this = this;
2360
- if (requestParameters === void 0) { requestParameters = {}; }
2361
- return (0, exports.LibraryApiFp)(this.configuration).postAddedSeries(requestParameters.tvdbId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2362
- };
1820
+ postAddedSeries(requestParameters = {}, options) {
1821
+ return LibraryApiFp(this.configuration).postAddedSeries(requestParameters.tvdbId, options).then((request) => request(this.axios, this.basePath));
1822
+ }
2363
1823
  /**
2364
1824
  *
2365
1825
  * @summary Reports that new movies have been added by an external source.
@@ -2368,10 +1828,9 @@ var LibraryApi = /** @class */ (function (_super) {
2368
1828
  * @throws {RequiredError}
2369
1829
  * @memberof LibraryApi
2370
1830
  */
2371
- LibraryApi.prototype.postUpdatedMedia = function (requestParameters, options) {
2372
- var _this = this;
2373
- return (0, exports.LibraryApiFp)(this.configuration).postUpdatedMedia(requestParameters.mediaUpdateInfoDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
2374
- };
1831
+ postUpdatedMedia(requestParameters, options) {
1832
+ return LibraryApiFp(this.configuration).postUpdatedMedia(requestParameters.mediaUpdateInfoDto, options).then((request) => request(this.axios, this.basePath));
1833
+ }
2375
1834
  /**
2376
1835
  *
2377
1836
  * @summary Reports that new movies have been added by an external source.
@@ -2380,11 +1839,9 @@ var LibraryApi = /** @class */ (function (_super) {
2380
1839
  * @throws {RequiredError}
2381
1840
  * @memberof LibraryApi
2382
1841
  */
2383
- LibraryApi.prototype.postUpdatedMovies = function (requestParameters, options) {
2384
- var _this = this;
2385
- if (requestParameters === void 0) { requestParameters = {}; }
2386
- return (0, exports.LibraryApiFp)(this.configuration).postUpdatedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2387
- };
1842
+ postUpdatedMovies(requestParameters = {}, options) {
1843
+ return LibraryApiFp(this.configuration).postUpdatedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then((request) => request(this.axios, this.basePath));
1844
+ }
2388
1845
  /**
2389
1846
  *
2390
1847
  * @summary Reports that new episodes of a series have been added by an external source.
@@ -2393,11 +1850,9 @@ var LibraryApi = /** @class */ (function (_super) {
2393
1850
  * @throws {RequiredError}
2394
1851
  * @memberof LibraryApi
2395
1852
  */
2396
- LibraryApi.prototype.postUpdatedSeries = function (requestParameters, options) {
2397
- var _this = this;
2398
- if (requestParameters === void 0) { requestParameters = {}; }
2399
- return (0, exports.LibraryApiFp)(this.configuration).postUpdatedSeries(requestParameters.tvdbId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2400
- };
1853
+ postUpdatedSeries(requestParameters = {}, options) {
1854
+ return LibraryApiFp(this.configuration).postUpdatedSeries(requestParameters.tvdbId, options).then((request) => request(this.axios, this.basePath));
1855
+ }
2401
1856
  /**
2402
1857
  *
2403
1858
  * @summary Starts a library scan.
@@ -2405,10 +1860,9 @@ var LibraryApi = /** @class */ (function (_super) {
2405
1860
  * @throws {RequiredError}
2406
1861
  * @memberof LibraryApi
2407
1862
  */
2408
- LibraryApi.prototype.refreshLibrary = function (options) {
2409
- var _this = this;
2410
- return (0, exports.LibraryApiFp)(this.configuration).refreshLibrary(options).then(function (request) { return request(_this.axios, _this.basePath); });
2411
- };
2412
- return LibraryApi;
2413
- }(base_1.BaseAPI));
2414
- exports.LibraryApi = LibraryApi;
1863
+ refreshLibrary(options) {
1864
+ return LibraryApiFp(this.configuration).refreshLibrary(options).then((request) => request(this.axios, this.basePath));
1865
+ }
1866
+ }
1867
+
1868
+ export { LibraryApi, LibraryApiAxiosParamCreator, LibraryApiFactory, LibraryApiFp };