@jellyfin/sdk 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/README.md +5 -0
  2. package/lib/api.d.ts +0 -11
  3. package/lib/api.js +0 -14
  4. package/lib/generated-client/api/activity-log-api.d.ts +9 -12
  5. package/lib/generated-client/api/activity-log-api.js +8 -8
  6. package/lib/generated-client/api/api-key-api.d.ts +18 -18
  7. package/lib/generated-client/api/api-key-api.js +19 -10
  8. package/lib/generated-client/api/artists-api.d.ts +27 -90
  9. package/lib/generated-client/api/artists-api.js +22 -76
  10. package/lib/generated-client/api/audio-api.d.ts +81 -249
  11. package/lib/generated-client/api/audio-api.js +93 -245
  12. package/lib/generated-client/api/branding-api.d.ts +16 -16
  13. package/lib/generated-client/api/branding-api.js +13 -4
  14. package/lib/generated-client/api/channels-api.d.ts +33 -51
  15. package/lib/generated-client/api/channels-api.js +33 -36
  16. package/lib/generated-client/api/client-log-api.d.ts +13 -13
  17. package/lib/generated-client/api/client-log-api.js +10 -7
  18. package/lib/generated-client/api/collection-api.d.ts +19 -24
  19. package/lib/generated-client/api/collection-api.js +22 -18
  20. package/lib/generated-client/api/configuration-api.d.ts +28 -29
  21. package/lib/generated-client/api/configuration-api.js +30 -16
  22. package/lib/generated-client/api/dashboard-api.d.ts +14 -14
  23. package/lib/generated-client/api/dashboard-api.js +15 -9
  24. package/lib/generated-client/api/devices-api.d.ts +31 -33
  25. package/lib/generated-client/api/devices-api.js +36 -22
  26. package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
  27. package/lib/generated-client/api/display-preferences-api.js +15 -14
  28. package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
  29. package/lib/generated-client/api/dynamic-hls-api.js +233 -573
  30. package/lib/generated-client/api/environment-api.d.ts +33 -35
  31. package/lib/generated-client/api/environment-api.js +34 -18
  32. package/lib/generated-client/api/filter-api.d.ts +17 -29
  33. package/lib/generated-client/api/filter-api.js +15 -21
  34. package/lib/generated-client/api/genres-api.d.ts +20 -38
  35. package/lib/generated-client/api/genres-api.js +15 -27
  36. package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
  37. package/lib/generated-client/api/hls-segment-api.js +36 -28
  38. package/lib/generated-client/api/image-api.d.ts +206 -644
  39. package/lib/generated-client/api/image-api.js +269 -596
  40. package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
  41. package/lib/generated-client/api/instant-mix-api.js +57 -89
  42. package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
  43. package/lib/generated-client/api/item-lookup-api.js +78 -47
  44. package/lib/generated-client/api/item-refresh-api.d.ts +9 -13
  45. package/lib/generated-client/api/item-refresh-api.js +8 -9
  46. package/lib/generated-client/api/item-update-api.d.ts +20 -22
  47. package/lib/generated-client/api/item-update-api.js +22 -15
  48. package/lib/generated-client/api/items-api.d.ts +44 -137
  49. package/lib/generated-client/api/items-api.js +38 -122
  50. package/lib/generated-client/api/library-api.d.ts +185 -170
  51. package/lib/generated-client/api/library-api.js +212 -142
  52. package/lib/generated-client/api/library-structure-api.d.ts +48 -58
  53. package/lib/generated-client/api/library-structure-api.js +54 -40
  54. package/lib/generated-client/api/live-tv-api.d.ts +224 -332
  55. package/lib/generated-client/api/live-tv-api.js +273 -258
  56. package/lib/generated-client/api/localization-api.d.ts +23 -23
  57. package/lib/generated-client/api/localization-api.js +17 -5
  58. package/lib/generated-client/api/lyrics-api.d.ts +39 -42
  59. package/lib/generated-client/api/lyrics-api.js +45 -30
  60. package/lib/generated-client/api/media-info-api.d.ts +40 -59
  61. package/lib/generated-client/api/media-info-api.js +45 -52
  62. package/lib/generated-client/api/media-segments-api.d.ts +95 -0
  63. package/lib/generated-client/api/media-segments-api.js +123 -0
  64. package/lib/generated-client/api/movies-api.d.ts +10 -14
  65. package/lib/generated-client/api/movies-api.js +8 -9
  66. package/lib/generated-client/api/music-genres-api.d.ts +20 -38
  67. package/lib/generated-client/api/music-genres-api.js +15 -27
  68. package/lib/generated-client/api/package-api.d.ts +33 -37
  69. package/lib/generated-client/api/package-api.js +37 -23
  70. package/lib/generated-client/api/persons-api.d.ts +18 -31
  71. package/lib/generated-client/api/persons-api.js +15 -22
  72. package/lib/generated-client/api/playlists-api.d.ts +109 -84
  73. package/lib/generated-client/api/playlists-api.js +137 -63
  74. package/lib/generated-client/api/playstate-api.d.ts +54 -80
  75. package/lib/generated-client/api/playstate-api.js +64 -63
  76. package/lib/generated-client/api/plugins-api.d.ts +48 -52
  77. package/lib/generated-client/api/plugins-api.js +61 -38
  78. package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
  79. package/lib/generated-client/api/quick-connect-api.js +23 -12
  80. package/lib/generated-client/api/remote-image-api.d.ts +21 -28
  81. package/lib/generated-client/api/remote-image-api.js +22 -20
  82. package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
  83. package/lib/generated-client/api/scheduled-tasks-api.js +36 -23
  84. package/lib/generated-client/api/search-api.d.ts +11 -28
  85. package/lib/generated-client/api/search-api.js +8 -22
  86. package/lib/generated-client/api/session-api.d.ts +90 -117
  87. package/lib/generated-client/api/session-api.js +104 -83
  88. package/lib/generated-client/api/startup-api.d.ts +37 -37
  89. package/lib/generated-client/api/startup-api.js +38 -17
  90. package/lib/generated-client/api/studios-api.d.ts +18 -35
  91. package/lib/generated-client/api/studios-api.js +15 -26
  92. package/lib/generated-client/api/subtitle-api.d.ts +55 -86
  93. package/lib/generated-client/api/subtitle-api.js +68 -69
  94. package/lib/generated-client/api/suggestions-api.d.ts +11 -16
  95. package/lib/generated-client/api/suggestions-api.js +8 -10
  96. package/lib/generated-client/api/sync-play-api.d.ts +120 -120
  97. package/lib/generated-client/api/sync-play-api.js +133 -70
  98. package/lib/generated-client/api/system-api.d.ts +49 -49
  99. package/lib/generated-client/api/system-api.js +44 -14
  100. package/lib/generated-client/api/time-sync-api.d.ts +8 -8
  101. package/lib/generated-client/api/time-sync-api.js +5 -2
  102. package/lib/generated-client/api/tmdb-api.d.ts +8 -8
  103. package/lib/generated-client/api/tmdb-api.js +5 -2
  104. package/lib/generated-client/api/trailers-api.d.ts +19 -102
  105. package/lib/generated-client/api/trailers-api.js +8 -88
  106. package/lib/generated-client/api/trickplay-api.d.ts +13 -18
  107. package/lib/generated-client/api/trickplay-api.js +15 -14
  108. package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
  109. package/lib/generated-client/api/tv-shows-api.js +29 -62
  110. package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
  111. package/lib/generated-client/api/universal-audio-api.js +33 -51
  112. package/lib/generated-client/api/user-api.d.ts +83 -88
  113. package/lib/generated-client/api/user-api.js +93 -56
  114. package/lib/generated-client/api/user-library-api.d.ts +59 -78
  115. package/lib/generated-client/api/user-library-api.js +71 -60
  116. package/lib/generated-client/api/user-views-api.d.ts +16 -19
  117. package/lib/generated-client/api/user-views-api.js +15 -12
  118. package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
  119. package/lib/generated-client/api/video-attachments-api.js +8 -7
  120. package/lib/generated-client/api/videos-api.d.ts +97 -274
  121. package/lib/generated-client/api/videos-api.js +114 -266
  122. package/lib/generated-client/api/years-api.d.ts +21 -36
  123. package/lib/generated-client/api/years-api.js +15 -24
  124. package/lib/generated-client/api.d.ts +1 -0
  125. package/lib/generated-client/base.d.ts +15 -4
  126. package/lib/generated-client/base.js +8 -4
  127. package/lib/generated-client/common.d.ts +3 -3
  128. package/lib/generated-client/common.js +23 -14
  129. package/lib/generated-client/configuration.d.ts +8 -0
  130. package/lib/generated-client/configuration.js +1 -0
  131. package/lib/generated-client/index.js +8 -1
  132. package/lib/generated-client/models/access-schedule.d.ts +1 -1
  133. package/lib/generated-client/models/activity-log-entry-message.d.ts +2 -2
  134. package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
  135. package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -1
  136. package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +1 -1
  137. package/lib/generated-client/models/activity-log-entry.d.ts +1 -1
  138. package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
  139. package/lib/generated-client/models/album-info-remote-search-query.d.ts +1 -1
  140. package/lib/generated-client/models/album-info.d.ts +5 -5
  141. package/lib/generated-client/models/all-theme-media-result.d.ts +1 -1
  142. package/lib/generated-client/models/artist-info-remote-search-query.d.ts +1 -1
  143. package/lib/generated-client/models/artist-info.d.ts +3 -3
  144. package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
  145. package/lib/generated-client/models/authentication-result.d.ts +7 -7
  146. package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
  147. package/lib/generated-client/models/base-item-dto.d.ts +26 -26
  148. package/lib/generated-client/models/base-item-person.d.ts +2 -2
  149. package/lib/generated-client/models/book-info-remote-search-query.d.ts +1 -1
  150. package/lib/generated-client/models/book-info.d.ts +2 -2
  151. package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +1 -1
  152. package/lib/generated-client/models/box-set-info.d.ts +2 -2
  153. package/lib/generated-client/models/channel-features.d.ts +3 -3
  154. package/lib/generated-client/models/channel-mapping-options-dto.d.ts +3 -3
  155. package/lib/generated-client/models/client-capabilities-dto.d.ts +3 -17
  156. package/lib/generated-client/models/client-capabilities.d.ts +3 -3
  157. package/lib/generated-client/models/codec-profile.d.ts +15 -9
  158. package/lib/generated-client/models/container-profile.d.ts +12 -6
  159. package/lib/generated-client/models/create-playlist-dto.d.ts +2 -2
  160. package/lib/generated-client/models/deinterlace-method.d.ts +20 -0
  161. package/lib/generated-client/models/{hardware-encoding-type.js → deinterlace-method.js} +5 -10
  162. package/lib/generated-client/models/device-info-dto-query-result.d.ts +36 -0
  163. package/lib/generated-client/models/device-info-dto.d.ts +84 -0
  164. package/lib/generated-client/models/device-info-query-result.d.ts +1 -1
  165. package/lib/generated-client/models/device-info.d.ts +1 -1
  166. package/lib/generated-client/models/device-profile.d.ts +8 -8
  167. package/lib/generated-client/models/direct-play-profile.d.ts +6 -6
  168. package/lib/generated-client/models/display-preferences-dto.d.ts +4 -4
  169. package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +3 -1
  170. package/lib/generated-client/models/down-mix-stereo-algorithms.js +4 -2
  171. package/lib/generated-client/models/encoder-preset.d.ts +29 -0
  172. package/lib/generated-client/models/encoder-preset.js +32 -0
  173. package/lib/generated-client/models/encoding-options.d.ts +43 -19
  174. package/lib/generated-client/models/external-id-info.d.ts +2 -1
  175. package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
  176. package/lib/generated-client/models/force-keep-alive-message.d.ts +1 -1
  177. package/lib/generated-client/models/forgot-password-result.d.ts +1 -1
  178. package/lib/generated-client/models/general-command-message.d.ts +2 -2
  179. package/lib/generated-client/models/general-command.d.ts +3 -3
  180. package/lib/generated-client/models/get-programs-dto.d.ts +34 -34
  181. package/lib/generated-client/models/group-info-dto-group-update.d.ts +2 -2
  182. package/lib/generated-client/models/group-info-dto.d.ts +1 -1
  183. package/lib/generated-client/models/group-state-update-group-update.d.ts +2 -2
  184. package/lib/generated-client/models/group-state-update.d.ts +2 -2
  185. package/lib/generated-client/models/group-update.d.ts +23 -5
  186. package/lib/generated-client/models/hardware-acceleration-type.d.ts +26 -0
  187. package/lib/generated-client/models/hardware-acceleration-type.js +29 -0
  188. package/lib/generated-client/models/image-info.d.ts +1 -1
  189. package/lib/generated-client/models/image-option.d.ts +1 -1
  190. package/lib/generated-client/models/image-provider-info.d.ts +1 -1
  191. package/lib/generated-client/models/inbound-keep-alive-message.d.ts +1 -1
  192. package/lib/generated-client/models/inbound-web-socket-message.d.ts +22 -8
  193. package/lib/generated-client/models/index.d.ts +13 -6
  194. package/lib/generated-client/models/index.js +7 -1
  195. package/lib/generated-client/models/installation-info.d.ts +1 -1
  196. package/lib/generated-client/models/library-changed-message.d.ts +2 -2
  197. package/lib/generated-client/models/library-options-result-dto.d.ts +8 -2
  198. package/lib/generated-client/models/library-options.d.ts +57 -3
  199. package/lib/generated-client/models/library-type-options-dto.d.ts +3 -3
  200. package/lib/generated-client/models/listings-provider-info.d.ts +1 -1
  201. package/lib/generated-client/models/live-stream-response.d.ts +1 -1
  202. package/lib/generated-client/models/live-tv-info.d.ts +1 -1
  203. package/lib/generated-client/models/live-tv-options.d.ts +2 -2
  204. package/lib/generated-client/models/live-tv-service-info.d.ts +1 -1
  205. package/lib/generated-client/models/lyric-dto.d.ts +2 -2
  206. package/lib/generated-client/models/media-path-dto.d.ts +1 -1
  207. package/lib/generated-client/models/media-path-info.d.ts +0 -6
  208. package/lib/generated-client/models/media-segment-dto-query-result.d.ts +36 -0
  209. package/lib/generated-client/models/media-segment-dto.d.ts +48 -0
  210. package/lib/generated-client/models/media-segment-type.d.ts +24 -0
  211. package/lib/generated-client/models/media-segment-type.js +27 -0
  212. package/lib/generated-client/models/media-source-info.d.ts +29 -11
  213. package/lib/generated-client/models/media-stream.d.ts +17 -5
  214. package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
  215. package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
  216. package/lib/generated-client/models/movie-info-remote-search-query.d.ts +1 -1
  217. package/lib/generated-client/models/movie-info.d.ts +2 -2
  218. package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +1 -1
  219. package/lib/generated-client/models/music-video-info.d.ts +2 -2
  220. package/lib/generated-client/models/open-live-stream-dto.d.ts +8 -2
  221. package/lib/generated-client/models/outbound-keep-alive-message.d.ts +1 -1
  222. package/lib/generated-client/models/outbound-web-socket-message.d.ts +85 -29
  223. package/lib/generated-client/models/package-info.d.ts +1 -1
  224. package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +1 -1
  225. package/lib/generated-client/models/person-lookup-info.d.ts +2 -2
  226. package/lib/generated-client/models/play-message.d.ts +2 -2
  227. package/lib/generated-client/models/play-queue-update-group-update.d.ts +2 -2
  228. package/lib/generated-client/models/play-queue-update.d.ts +4 -4
  229. package/lib/generated-client/models/play-request.d.ts +1 -1
  230. package/lib/generated-client/models/playback-info-dto.d.ts +7 -1
  231. package/lib/generated-client/models/playback-info-response.d.ts +2 -2
  232. package/lib/generated-client/models/playback-progress-info.d.ts +5 -5
  233. package/lib/generated-client/models/playback-start-info.d.ts +5 -5
  234. package/lib/generated-client/models/playback-stop-info.d.ts +2 -2
  235. package/lib/generated-client/models/player-state-info.d.ts +3 -3
  236. package/lib/generated-client/models/playlist-dto.d.ts +36 -0
  237. package/lib/generated-client/models/playstate-message.d.ts +2 -2
  238. package/lib/generated-client/models/playstate-request.d.ts +1 -1
  239. package/lib/generated-client/models/plugin-info.d.ts +1 -1
  240. package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +2 -2
  241. package/lib/generated-client/models/plugin-installation-completed-message.d.ts +2 -2
  242. package/lib/generated-client/models/plugin-installation-failed-message.d.ts +2 -2
  243. package/lib/generated-client/models/plugin-installing-message.d.ts +2 -2
  244. package/lib/generated-client/models/plugin-uninstalled-message.d.ts +2 -2
  245. package/lib/generated-client/models/problem-details.d.ts +1 -1
  246. package/lib/generated-client/models/profile-condition.d.ts +2 -2
  247. package/lib/generated-client/models/query-filters.d.ts +1 -1
  248. package/lib/generated-client/models/queue-request-dto.d.ts +1 -1
  249. package/lib/generated-client/models/recommendation-dto.d.ts +2 -2
  250. package/lib/generated-client/models/refresh-progress-message.d.ts +3 -3
  251. package/lib/generated-client/models/remote-image-info.d.ts +2 -2
  252. package/lib/generated-client/models/remote-image-result.d.ts +1 -1
  253. package/lib/generated-client/models/remote-lyric-info-dto.d.ts +1 -1
  254. package/lib/generated-client/models/remote-search-result.d.ts +2 -2
  255. package/lib/generated-client/models/restart-required-message.d.ts +1 -1
  256. package/lib/generated-client/models/scheduled-task-ended-message.d.ts +2 -2
  257. package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +2 -2
  258. package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -1
  259. package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +1 -1
  260. package/lib/generated-client/models/search-hint-result.d.ts +1 -1
  261. package/lib/generated-client/models/search-hint.d.ts +2 -2
  262. package/lib/generated-client/models/send-command.d.ts +1 -1
  263. package/lib/generated-client/models/series-info-remote-search-query.d.ts +1 -1
  264. package/lib/generated-client/models/series-info.d.ts +2 -2
  265. package/lib/generated-client/models/series-timer-cancelled-message.d.ts +2 -2
  266. package/lib/generated-client/models/series-timer-created-message.d.ts +2 -2
  267. package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +3 -3
  268. package/lib/generated-client/models/series-timer-info-dto.d.ts +3 -3
  269. package/lib/generated-client/models/server-configuration.d.ts +8 -14
  270. package/lib/generated-client/models/server-restarting-message.d.ts +1 -1
  271. package/lib/generated-client/models/server-shutting-down-message.d.ts +1 -1
  272. package/lib/generated-client/models/session-info-dto.d.ts +199 -0
  273. package/lib/generated-client/models/session-info.d.ts +8 -8
  274. package/lib/generated-client/models/sessions-message.d.ts +4 -4
  275. package/lib/generated-client/models/sessions-start-message.d.ts +1 -1
  276. package/lib/generated-client/models/sessions-stop-message.d.ts +1 -1
  277. package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
  278. package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
  279. package/lib/generated-client/models/song-info.d.ts +2 -2
  280. package/lib/generated-client/models/string-group-update.d.ts +1 -1
  281. package/lib/generated-client/models/subtitle-profile.d.ts +6 -6
  282. package/lib/generated-client/models/sync-play-command-message.d.ts +2 -2
  283. package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
  284. package/lib/generated-client/models/system-info.d.ts +2 -2
  285. package/lib/generated-client/models/task-info.d.ts +3 -3
  286. package/lib/generated-client/models/task-result.d.ts +1 -1
  287. package/lib/generated-client/models/task-trigger-info.d.ts +1 -1
  288. package/lib/generated-client/models/theme-media-result.d.ts +2 -2
  289. package/lib/generated-client/models/timer-cancelled-message.d.ts +2 -2
  290. package/lib/generated-client/models/timer-created-message.d.ts +2 -2
  291. package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
  292. package/lib/generated-client/models/timer-info-dto.d.ts +3 -3
  293. package/lib/generated-client/models/tonemapping-algorithm.d.ts +26 -0
  294. package/lib/generated-client/models/tonemapping-algorithm.js +29 -0
  295. package/lib/generated-client/models/tonemapping-mode.d.ts +23 -0
  296. package/lib/generated-client/models/tonemapping-mode.js +26 -0
  297. package/lib/generated-client/models/tonemapping-range.d.ts +21 -0
  298. package/lib/generated-client/models/tonemapping-range.js +24 -0
  299. package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +1 -1
  300. package/lib/generated-client/models/trailer-info.d.ts +2 -2
  301. package/lib/generated-client/models/transcode-reason.d.ts +1 -0
  302. package/lib/generated-client/models/transcode-reason.js +2 -1
  303. package/lib/generated-client/models/transcoding-info.d.ts +16 -16
  304. package/lib/generated-client/models/transcoding-profile.d.ts +24 -18
  305. package/lib/generated-client/models/trickplay-options.d.ts +8 -2
  306. package/lib/generated-client/models/tuner-host-info.d.ts +18 -0
  307. package/lib/generated-client/models/type-options.d.ts +1 -1
  308. package/lib/generated-client/models/update-library-options-dto.d.ts +1 -1
  309. package/lib/generated-client/models/update-media-path-request-dto.d.ts +1 -1
  310. package/lib/generated-client/models/update-playlist-dto.d.ts +1 -1
  311. package/lib/generated-client/models/user-configuration.d.ts +1 -1
  312. package/lib/generated-client/models/user-data-change-info.d.ts +3 -3
  313. package/lib/generated-client/models/user-data-changed-message.d.ts +2 -2
  314. package/lib/generated-client/models/user-deleted-message.d.ts +1 -1
  315. package/lib/generated-client/models/user-dto.d.ts +2 -2
  316. package/lib/generated-client/models/user-item-data-dto.d.ts +2 -2
  317. package/lib/generated-client/models/user-policy.d.ts +3 -3
  318. package/lib/generated-client/models/user-updated-message.d.ts +2 -2
  319. package/lib/generated-client/models/virtual-folder-info.d.ts +2 -2
  320. package/lib/generated-client/models/web-socket-message.d.ts +2 -2
  321. package/lib/utils/address-candidates.js +15 -10
  322. package/lib/utils/api/index.d.ts +1 -0
  323. package/lib/utils/api/index.js +1 -0
  324. package/lib/utils/api/media-segments-api.d.ts +8 -0
  325. package/lib/utils/api/media-segments-api.js +12 -0
  326. package/lib/utils/index.js +1 -1
  327. package/lib/utils/url/index.d.ts +16 -3
  328. package/lib/utils/url/index.js +26 -4
  329. package/lib/versions.d.ts +1 -1
  330. package/lib/versions.js +1 -1
  331. package/package.json +13 -12
@@ -1,6 +1,6 @@
1
1
  import globalAxios from 'axios';
2
2
  import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
3
- import { BaseAPI, BASE_PATH } from '../base.js';
3
+ import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
4
4
 
5
5
  /* tslint:disable */
6
6
  /* eslint-disable */
@@ -627,10 +627,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
627
627
  * @param {string} itemId The item id.
628
628
  * @param {string} [userId] Optional. Filter by user id, and attach user data.
629
629
  * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
630
+ * @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
631
+ * @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
630
632
  * @param {*} [options] Override http request option.
631
633
  * @throws {RequiredError}
632
634
  */
633
- getThemeMedia: async (itemId, userId, inheritFromParent, options = {}) => {
635
+ getThemeMedia: async (itemId, userId, inheritFromParent, sortBy, sortOrder, options = {}) => {
634
636
  // verify required parameter 'itemId' is not null or undefined
635
637
  assertParamExists('getThemeMedia', 'itemId', itemId);
636
638
  const localVarPath = `/Items/{itemId}/ThemeMedia`
@@ -652,6 +654,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
652
654
  if (inheritFromParent !== undefined) {
653
655
  localVarQueryParameter['inheritFromParent'] = inheritFromParent;
654
656
  }
657
+ if (sortBy) {
658
+ localVarQueryParameter['sortBy'] = sortBy;
659
+ }
660
+ if (sortOrder) {
661
+ localVarQueryParameter['sortOrder'] = sortOrder;
662
+ }
655
663
  setSearchParams(localVarUrlObj, localVarQueryParameter);
656
664
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
657
665
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -666,10 +674,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
666
674
  * @param {string} itemId The item id.
667
675
  * @param {string} [userId] Optional. Filter by user id, and attach user data.
668
676
  * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
677
+ * @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
678
+ * @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
669
679
  * @param {*} [options] Override http request option.
670
680
  * @throws {RequiredError}
671
681
  */
672
- getThemeSongs: async (itemId, userId, inheritFromParent, options = {}) => {
682
+ getThemeSongs: async (itemId, userId, inheritFromParent, sortBy, sortOrder, options = {}) => {
673
683
  // verify required parameter 'itemId' is not null or undefined
674
684
  assertParamExists('getThemeSongs', 'itemId', itemId);
675
685
  const localVarPath = `/Items/{itemId}/ThemeSongs`
@@ -691,6 +701,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
691
701
  if (inheritFromParent !== undefined) {
692
702
  localVarQueryParameter['inheritFromParent'] = inheritFromParent;
693
703
  }
704
+ if (sortBy) {
705
+ localVarQueryParameter['sortBy'] = sortBy;
706
+ }
707
+ if (sortOrder) {
708
+ localVarQueryParameter['sortOrder'] = sortOrder;
709
+ }
694
710
  setSearchParams(localVarUrlObj, localVarQueryParameter);
695
711
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
696
712
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -705,10 +721,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
705
721
  * @param {string} itemId The item id.
706
722
  * @param {string} [userId] Optional. Filter by user id, and attach user data.
707
723
  * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
724
+ * @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
725
+ * @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
708
726
  * @param {*} [options] Override http request option.
709
727
  * @throws {RequiredError}
710
728
  */
711
- getThemeVideos: async (itemId, userId, inheritFromParent, options = {}) => {
729
+ getThemeVideos: async (itemId, userId, inheritFromParent, sortBy, sortOrder, options = {}) => {
712
730
  // verify required parameter 'itemId' is not null or undefined
713
731
  assertParamExists('getThemeVideos', 'itemId', itemId);
714
732
  const localVarPath = `/Items/{itemId}/ThemeVideos`
@@ -730,6 +748,12 @@ const LibraryApiAxiosParamCreator = function (configuration) {
730
748
  if (inheritFromParent !== undefined) {
731
749
  localVarQueryParameter['inheritFromParent'] = inheritFromParent;
732
750
  }
751
+ if (sortBy) {
752
+ localVarQueryParameter['sortBy'] = sortBy;
753
+ }
754
+ if (sortOrder) {
755
+ localVarQueryParameter['sortOrder'] = sortOrder;
756
+ }
733
757
  setSearchParams(localVarUrlObj, localVarQueryParameter);
734
758
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
735
759
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -946,8 +970,11 @@ const LibraryApiFp = function (configuration) {
946
970
  * @throws {RequiredError}
947
971
  */
948
972
  async deleteItem(itemId, options) {
973
+ var _a, _b, _c;
949
974
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteItem(itemId, options);
950
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
975
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
976
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.deleteItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
977
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
951
978
  },
952
979
  /**
953
980
  *
@@ -957,8 +984,11 @@ const LibraryApiFp = function (configuration) {
957
984
  * @throws {RequiredError}
958
985
  */
959
986
  async deleteItems(ids, options) {
987
+ var _a, _b, _c;
960
988
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteItems(ids, options);
961
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
989
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
990
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.deleteItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
991
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
962
992
  },
963
993
  /**
964
994
  *
@@ -969,8 +999,11 @@ const LibraryApiFp = function (configuration) {
969
999
  * @throws {RequiredError}
970
1000
  */
971
1001
  async getAncestors(itemId, userId, options) {
1002
+ var _a, _b, _c;
972
1003
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAncestors(itemId, userId, options);
973
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1004
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1005
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getAncestors']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1006
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
974
1007
  },
975
1008
  /**
976
1009
  *
@@ -981,8 +1014,11 @@ const LibraryApiFp = function (configuration) {
981
1014
  * @throws {RequiredError}
982
1015
  */
983
1016
  async getCriticReviews(itemId, options) {
1017
+ var _a, _b, _c;
984
1018
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCriticReviews(itemId, options);
985
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1019
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1020
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getCriticReviews']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1021
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
986
1022
  },
987
1023
  /**
988
1024
  *
@@ -992,8 +1028,11 @@ const LibraryApiFp = function (configuration) {
992
1028
  * @throws {RequiredError}
993
1029
  */
994
1030
  async getDownload(itemId, options) {
1031
+ var _a, _b, _c;
995
1032
  const localVarAxiosArgs = await localVarAxiosParamCreator.getDownload(itemId, options);
996
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1033
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1034
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getDownload']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1035
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
997
1036
  },
998
1037
  /**
999
1038
  *
@@ -1003,8 +1042,11 @@ const LibraryApiFp = function (configuration) {
1003
1042
  * @throws {RequiredError}
1004
1043
  */
1005
1044
  async getFile(itemId, options) {
1045
+ var _a, _b, _c;
1006
1046
  const localVarAxiosArgs = await localVarAxiosParamCreator.getFile(itemId, options);
1007
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1047
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1048
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1049
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1008
1050
  },
1009
1051
  /**
1010
1052
  *
@@ -1015,8 +1057,11 @@ const LibraryApiFp = function (configuration) {
1015
1057
  * @throws {RequiredError}
1016
1058
  */
1017
1059
  async getItemCounts(userId, isFavorite, options) {
1060
+ var _a, _b, _c;
1018
1061
  const localVarAxiosArgs = await localVarAxiosParamCreator.getItemCounts(userId, isFavorite, options);
1019
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1062
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1063
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getItemCounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1064
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1020
1065
  },
1021
1066
  /**
1022
1067
  *
@@ -1027,8 +1072,11 @@ const LibraryApiFp = function (configuration) {
1027
1072
  * @throws {RequiredError}
1028
1073
  */
1029
1074
  async getLibraryOptionsInfo(libraryContentType, isNewLibrary, options) {
1075
+ var _a, _b, _c;
1030
1076
  const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options);
1031
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1077
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1078
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getLibraryOptionsInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1079
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1032
1080
  },
1033
1081
  /**
1034
1082
  *
@@ -1038,8 +1086,11 @@ const LibraryApiFp = function (configuration) {
1038
1086
  * @throws {RequiredError}
1039
1087
  */
1040
1088
  async getMediaFolders(isHidden, options) {
1089
+ var _a, _b, _c;
1041
1090
  const localVarAxiosArgs = await localVarAxiosParamCreator.getMediaFolders(isHidden, options);
1042
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1091
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1092
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getMediaFolders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1093
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1043
1094
  },
1044
1095
  /**
1045
1096
  *
@@ -1048,8 +1099,11 @@ const LibraryApiFp = function (configuration) {
1048
1099
  * @throws {RequiredError}
1049
1100
  */
1050
1101
  async getPhysicalPaths(options) {
1102
+ var _a, _b, _c;
1051
1103
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPhysicalPaths(options);
1052
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1104
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1105
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getPhysicalPaths']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1106
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1053
1107
  },
1054
1108
  /**
1055
1109
  *
@@ -1063,8 +1117,11 @@ const LibraryApiFp = function (configuration) {
1063
1117
  * @throws {RequiredError}
1064
1118
  */
1065
1119
  async getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options) {
1120
+ var _a, _b, _c;
1066
1121
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options);
1067
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1122
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1123
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarAlbums']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1124
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1068
1125
  },
1069
1126
  /**
1070
1127
  *
@@ -1078,8 +1135,11 @@ const LibraryApiFp = function (configuration) {
1078
1135
  * @throws {RequiredError}
1079
1136
  */
1080
1137
  async getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options) {
1138
+ var _a, _b, _c;
1081
1139
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options);
1082
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1140
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1141
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarArtists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1142
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1083
1143
  },
1084
1144
  /**
1085
1145
  *
@@ -1093,8 +1153,11 @@ const LibraryApiFp = function (configuration) {
1093
1153
  * @throws {RequiredError}
1094
1154
  */
1095
1155
  async getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options) {
1156
+ var _a, _b, _c;
1096
1157
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options);
1097
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1158
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1159
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1160
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1098
1161
  },
1099
1162
  /**
1100
1163
  *
@@ -1108,8 +1171,11 @@ const LibraryApiFp = function (configuration) {
1108
1171
  * @throws {RequiredError}
1109
1172
  */
1110
1173
  async getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options) {
1174
+ var _a, _b, _c;
1111
1175
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options);
1112
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1176
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1177
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarMovies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1178
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1113
1179
  },
1114
1180
  /**
1115
1181
  *
@@ -1123,8 +1189,11 @@ const LibraryApiFp = function (configuration) {
1123
1189
  * @throws {RequiredError}
1124
1190
  */
1125
1191
  async getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options) {
1192
+ var _a, _b, _c;
1126
1193
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options);
1127
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1194
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1195
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarShows']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1196
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1128
1197
  },
1129
1198
  /**
1130
1199
  *
@@ -1138,8 +1207,11 @@ const LibraryApiFp = function (configuration) {
1138
1207
  * @throws {RequiredError}
1139
1208
  */
1140
1209
  async getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options) {
1210
+ var _a, _b, _c;
1141
1211
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options);
1142
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1212
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1213
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarTrailers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1214
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1143
1215
  },
1144
1216
  /**
1145
1217
  *
@@ -1147,12 +1219,17 @@ const LibraryApiFp = function (configuration) {
1147
1219
  * @param {string} itemId The item id.
1148
1220
  * @param {string} [userId] Optional. Filter by user id, and attach user data.
1149
1221
  * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
1222
+ * @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
1223
+ * @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
1150
1224
  * @param {*} [options] Override http request option.
1151
1225
  * @throws {RequiredError}
1152
1226
  */
1153
- async getThemeMedia(itemId, userId, inheritFromParent, options) {
1154
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeMedia(itemId, userId, inheritFromParent, options);
1155
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1227
+ async getThemeMedia(itemId, userId, inheritFromParent, sortBy, sortOrder, options) {
1228
+ var _a, _b, _c;
1229
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeMedia(itemId, userId, inheritFromParent, sortBy, sortOrder, options);
1230
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1231
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getThemeMedia']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1232
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1156
1233
  },
1157
1234
  /**
1158
1235
  *
@@ -1160,12 +1237,17 @@ const LibraryApiFp = function (configuration) {
1160
1237
  * @param {string} itemId The item id.
1161
1238
  * @param {string} [userId] Optional. Filter by user id, and attach user data.
1162
1239
  * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
1240
+ * @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
1241
+ * @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
1163
1242
  * @param {*} [options] Override http request option.
1164
1243
  * @throws {RequiredError}
1165
1244
  */
1166
- async getThemeSongs(itemId, userId, inheritFromParent, options) {
1167
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeSongs(itemId, userId, inheritFromParent, options);
1168
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1245
+ async getThemeSongs(itemId, userId, inheritFromParent, sortBy, sortOrder, options) {
1246
+ var _a, _b, _c;
1247
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeSongs(itemId, userId, inheritFromParent, sortBy, sortOrder, options);
1248
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1249
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getThemeSongs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1250
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1169
1251
  },
1170
1252
  /**
1171
1253
  *
@@ -1173,12 +1255,17 @@ const LibraryApiFp = function (configuration) {
1173
1255
  * @param {string} itemId The item id.
1174
1256
  * @param {string} [userId] Optional. Filter by user id, and attach user data.
1175
1257
  * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
1258
+ * @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
1259
+ * @param {Array<SortOrder>} [sortOrder] Optional. Sort Order - Ascending, Descending.
1176
1260
  * @param {*} [options] Override http request option.
1177
1261
  * @throws {RequiredError}
1178
1262
  */
1179
- async getThemeVideos(itemId, userId, inheritFromParent, options) {
1180
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeVideos(itemId, userId, inheritFromParent, options);
1181
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1263
+ async getThemeVideos(itemId, userId, inheritFromParent, sortBy, sortOrder, options) {
1264
+ var _a, _b, _c;
1265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeVideos(itemId, userId, inheritFromParent, sortBy, sortOrder, options);
1266
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1267
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getThemeVideos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1268
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1182
1269
  },
1183
1270
  /**
1184
1271
  *
@@ -1189,8 +1276,11 @@ const LibraryApiFp = function (configuration) {
1189
1276
  * @throws {RequiredError}
1190
1277
  */
1191
1278
  async postAddedMovies(tmdbId, imdbId, options) {
1279
+ var _a, _b, _c;
1192
1280
  const localVarAxiosArgs = await localVarAxiosParamCreator.postAddedMovies(tmdbId, imdbId, options);
1193
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1281
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1282
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.postAddedMovies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1283
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1194
1284
  },
1195
1285
  /**
1196
1286
  *
@@ -1200,8 +1290,11 @@ const LibraryApiFp = function (configuration) {
1200
1290
  * @throws {RequiredError}
1201
1291
  */
1202
1292
  async postAddedSeries(tvdbId, options) {
1293
+ var _a, _b, _c;
1203
1294
  const localVarAxiosArgs = await localVarAxiosParamCreator.postAddedSeries(tvdbId, options);
1204
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1295
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1296
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.postAddedSeries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1297
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1205
1298
  },
1206
1299
  /**
1207
1300
  *
@@ -1211,8 +1304,11 @@ const LibraryApiFp = function (configuration) {
1211
1304
  * @throws {RequiredError}
1212
1305
  */
1213
1306
  async postUpdatedMedia(mediaUpdateInfoDto, options) {
1307
+ var _a, _b, _c;
1214
1308
  const localVarAxiosArgs = await localVarAxiosParamCreator.postUpdatedMedia(mediaUpdateInfoDto, options);
1215
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1309
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1310
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.postUpdatedMedia']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1311
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1216
1312
  },
1217
1313
  /**
1218
1314
  *
@@ -1223,8 +1319,11 @@ const LibraryApiFp = function (configuration) {
1223
1319
  * @throws {RequiredError}
1224
1320
  */
1225
1321
  async postUpdatedMovies(tmdbId, imdbId, options) {
1322
+ var _a, _b, _c;
1226
1323
  const localVarAxiosArgs = await localVarAxiosParamCreator.postUpdatedMovies(tmdbId, imdbId, options);
1227
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1324
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1325
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.postUpdatedMovies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1326
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1228
1327
  },
1229
1328
  /**
1230
1329
  *
@@ -1234,8 +1333,11 @@ const LibraryApiFp = function (configuration) {
1234
1333
  * @throws {RequiredError}
1235
1334
  */
1236
1335
  async postUpdatedSeries(tvdbId, options) {
1336
+ var _a, _b, _c;
1237
1337
  const localVarAxiosArgs = await localVarAxiosParamCreator.postUpdatedSeries(tvdbId, options);
1238
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1338
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1339
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.postUpdatedSeries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1340
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1239
1341
  },
1240
1342
  /**
1241
1343
  *
@@ -1244,8 +1346,11 @@ const LibraryApiFp = function (configuration) {
1244
1346
  * @throws {RequiredError}
1245
1347
  */
1246
1348
  async refreshLibrary(options) {
1349
+ var _a, _b, _c;
1247
1350
  const localVarAxiosArgs = await localVarAxiosParamCreator.refreshLibrary(options);
1248
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1351
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1352
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.refreshLibrary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1353
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1249
1354
  },
1250
1355
  };
1251
1356
  };
@@ -1259,96 +1364,93 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
1259
1364
  /**
1260
1365
  *
1261
1366
  * @summary Deletes an item from the library and filesystem.
1262
- * @param {string} itemId The item id.
1367
+ * @param {LibraryApiDeleteItemRequest} requestParameters Request parameters.
1263
1368
  * @param {*} [options] Override http request option.
1264
1369
  * @throws {RequiredError}
1265
1370
  */
1266
- deleteItem(itemId, options) {
1267
- return localVarFp.deleteItem(itemId, options).then((request) => request(axios, basePath));
1371
+ deleteItem(requestParameters, options) {
1372
+ return localVarFp.deleteItem(requestParameters.itemId, options).then((request) => request(axios, basePath));
1268
1373
  },
1269
1374
  /**
1270
1375
  *
1271
1376
  * @summary Deletes items from the library and filesystem.
1272
- * @param {Array<string>} [ids] The item ids.
1377
+ * @param {LibraryApiDeleteItemsRequest} requestParameters Request parameters.
1273
1378
  * @param {*} [options] Override http request option.
1274
1379
  * @throws {RequiredError}
1275
1380
  */
1276
- deleteItems(ids, options) {
1277
- return localVarFp.deleteItems(ids, options).then((request) => request(axios, basePath));
1381
+ deleteItems(requestParameters = {}, options) {
1382
+ return localVarFp.deleteItems(requestParameters.ids, options).then((request) => request(axios, basePath));
1278
1383
  },
1279
1384
  /**
1280
1385
  *
1281
1386
  * @summary Gets all parents of an item.
1282
- * @param {string} itemId The item id.
1283
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
1387
+ * @param {LibraryApiGetAncestorsRequest} requestParameters Request parameters.
1284
1388
  * @param {*} [options] Override http request option.
1285
1389
  * @throws {RequiredError}
1286
1390
  */
1287
- getAncestors(itemId, userId, options) {
1288
- return localVarFp.getAncestors(itemId, userId, options).then((request) => request(axios, basePath));
1391
+ getAncestors(requestParameters, options) {
1392
+ return localVarFp.getAncestors(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
1289
1393
  },
1290
1394
  /**
1291
1395
  *
1292
1396
  * @summary Gets critic review for an item.
1293
- * @param {string} itemId
1397
+ * @param {LibraryApiGetCriticReviewsRequest} requestParameters Request parameters.
1294
1398
  * @param {*} [options] Override http request option.
1295
1399
  * @deprecated
1296
1400
  * @throws {RequiredError}
1297
1401
  */
1298
- getCriticReviews(itemId, options) {
1299
- return localVarFp.getCriticReviews(itemId, options).then((request) => request(axios, basePath));
1402
+ getCriticReviews(requestParameters, options) {
1403
+ return localVarFp.getCriticReviews(requestParameters.itemId, options).then((request) => request(axios, basePath));
1300
1404
  },
1301
1405
  /**
1302
1406
  *
1303
1407
  * @summary Downloads item media.
1304
- * @param {string} itemId The item id.
1408
+ * @param {LibraryApiGetDownloadRequest} requestParameters Request parameters.
1305
1409
  * @param {*} [options] Override http request option.
1306
1410
  * @throws {RequiredError}
1307
1411
  */
1308
- getDownload(itemId, options) {
1309
- return localVarFp.getDownload(itemId, options).then((request) => request(axios, basePath));
1412
+ getDownload(requestParameters, options) {
1413
+ return localVarFp.getDownload(requestParameters.itemId, options).then((request) => request(axios, basePath));
1310
1414
  },
1311
1415
  /**
1312
1416
  *
1313
1417
  * @summary Get the original file of an item.
1314
- * @param {string} itemId The item id.
1418
+ * @param {LibraryApiGetFileRequest} requestParameters Request parameters.
1315
1419
  * @param {*} [options] Override http request option.
1316
1420
  * @throws {RequiredError}
1317
1421
  */
1318
- getFile(itemId, options) {
1319
- return localVarFp.getFile(itemId, options).then((request) => request(axios, basePath));
1422
+ getFile(requestParameters, options) {
1423
+ return localVarFp.getFile(requestParameters.itemId, options).then((request) => request(axios, basePath));
1320
1424
  },
1321
1425
  /**
1322
1426
  *
1323
1427
  * @summary Get item counts.
1324
- * @param {string} [userId] Optional. Get counts from a specific user\&#39;s library.
1325
- * @param {boolean} [isFavorite] Optional. Get counts of favorite items.
1428
+ * @param {LibraryApiGetItemCountsRequest} requestParameters Request parameters.
1326
1429
  * @param {*} [options] Override http request option.
1327
1430
  * @throws {RequiredError}
1328
1431
  */
1329
- getItemCounts(userId, isFavorite, options) {
1330
- return localVarFp.getItemCounts(userId, isFavorite, options).then((request) => request(axios, basePath));
1432
+ getItemCounts(requestParameters = {}, options) {
1433
+ return localVarFp.getItemCounts(requestParameters.userId, requestParameters.isFavorite, options).then((request) => request(axios, basePath));
1331
1434
  },
1332
1435
  /**
1333
1436
  *
1334
1437
  * @summary Gets the library options info.
1335
- * @param {CollectionType} [libraryContentType] Library content type.
1336
- * @param {boolean} [isNewLibrary] Whether this is a new library.
1438
+ * @param {LibraryApiGetLibraryOptionsInfoRequest} requestParameters Request parameters.
1337
1439
  * @param {*} [options] Override http request option.
1338
1440
  * @throws {RequiredError}
1339
1441
  */
1340
- getLibraryOptionsInfo(libraryContentType, isNewLibrary, options) {
1341
- return localVarFp.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options).then((request) => request(axios, basePath));
1442
+ getLibraryOptionsInfo(requestParameters = {}, options) {
1443
+ return localVarFp.getLibraryOptionsInfo(requestParameters.libraryContentType, requestParameters.isNewLibrary, options).then((request) => request(axios, basePath));
1342
1444
  },
1343
1445
  /**
1344
1446
  *
1345
1447
  * @summary Gets all user media folders.
1346
- * @param {boolean} [isHidden] Optional. Filter by folders that are marked hidden, or not.
1448
+ * @param {LibraryApiGetMediaFoldersRequest} requestParameters Request parameters.
1347
1449
  * @param {*} [options] Override http request option.
1348
1450
  * @throws {RequiredError}
1349
1451
  */
1350
- getMediaFolders(isHidden, options) {
1351
- return localVarFp.getMediaFolders(isHidden, options).then((request) => request(axios, basePath));
1452
+ getMediaFolders(requestParameters = {}, options) {
1453
+ return localVarFp.getMediaFolders(requestParameters.isHidden, options).then((request) => request(axios, basePath));
1352
1454
  },
1353
1455
  /**
1354
1456
  *
@@ -1362,174 +1464,142 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
1362
1464
  /**
1363
1465
  *
1364
1466
  * @summary Gets similar items.
1365
- * @param {string} itemId The item id.
1366
- * @param {Array<string>} [excludeArtistIds] Exclude artist ids.
1367
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
1368
- * @param {number} [limit] Optional. The maximum number of records to return.
1369
- * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
1467
+ * @param {LibraryApiGetSimilarAlbumsRequest} requestParameters Request parameters.
1370
1468
  * @param {*} [options] Override http request option.
1371
1469
  * @throws {RequiredError}
1372
1470
  */
1373
- getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options) {
1374
- return localVarFp.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1471
+ getSimilarAlbums(requestParameters, options) {
1472
+ return localVarFp.getSimilarAlbums(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
1375
1473
  },
1376
1474
  /**
1377
1475
  *
1378
1476
  * @summary Gets similar items.
1379
- * @param {string} itemId The item id.
1380
- * @param {Array<string>} [excludeArtistIds] Exclude artist ids.
1381
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
1382
- * @param {number} [limit] Optional. The maximum number of records to return.
1383
- * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
1477
+ * @param {LibraryApiGetSimilarArtistsRequest} requestParameters Request parameters.
1384
1478
  * @param {*} [options] Override http request option.
1385
1479
  * @throws {RequiredError}
1386
1480
  */
1387
- getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options) {
1388
- return localVarFp.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1481
+ getSimilarArtists(requestParameters, options) {
1482
+ return localVarFp.getSimilarArtists(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
1389
1483
  },
1390
1484
  /**
1391
1485
  *
1392
1486
  * @summary Gets similar items.
1393
- * @param {string} itemId The item id.
1394
- * @param {Array<string>} [excludeArtistIds] Exclude artist ids.
1395
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
1396
- * @param {number} [limit] Optional. The maximum number of records to return.
1397
- * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
1487
+ * @param {LibraryApiGetSimilarItemsRequest} requestParameters Request parameters.
1398
1488
  * @param {*} [options] Override http request option.
1399
1489
  * @throws {RequiredError}
1400
1490
  */
1401
- getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options) {
1402
- return localVarFp.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1491
+ getSimilarItems(requestParameters, options) {
1492
+ return localVarFp.getSimilarItems(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
1403
1493
  },
1404
1494
  /**
1405
1495
  *
1406
1496
  * @summary Gets similar items.
1407
- * @param {string} itemId The item id.
1408
- * @param {Array<string>} [excludeArtistIds] Exclude artist ids.
1409
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
1410
- * @param {number} [limit] Optional. The maximum number of records to return.
1411
- * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
1497
+ * @param {LibraryApiGetSimilarMoviesRequest} requestParameters Request parameters.
1412
1498
  * @param {*} [options] Override http request option.
1413
1499
  * @throws {RequiredError}
1414
1500
  */
1415
- getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options) {
1416
- return localVarFp.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1501
+ getSimilarMovies(requestParameters, options) {
1502
+ return localVarFp.getSimilarMovies(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
1417
1503
  },
1418
1504
  /**
1419
1505
  *
1420
1506
  * @summary Gets similar items.
1421
- * @param {string} itemId The item id.
1422
- * @param {Array<string>} [excludeArtistIds] Exclude artist ids.
1423
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
1424
- * @param {number} [limit] Optional. The maximum number of records to return.
1425
- * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
1507
+ * @param {LibraryApiGetSimilarShowsRequest} requestParameters Request parameters.
1426
1508
  * @param {*} [options] Override http request option.
1427
1509
  * @throws {RequiredError}
1428
1510
  */
1429
- getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options) {
1430
- return localVarFp.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1511
+ getSimilarShows(requestParameters, options) {
1512
+ return localVarFp.getSimilarShows(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
1431
1513
  },
1432
1514
  /**
1433
1515
  *
1434
1516
  * @summary Gets similar items.
1435
- * @param {string} itemId The item id.
1436
- * @param {Array<string>} [excludeArtistIds] Exclude artist ids.
1437
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
1438
- * @param {number} [limit] Optional. The maximum number of records to return.
1439
- * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines, TrailerUrls.
1517
+ * @param {LibraryApiGetSimilarTrailersRequest} requestParameters Request parameters.
1440
1518
  * @param {*} [options] Override http request option.
1441
1519
  * @throws {RequiredError}
1442
1520
  */
1443
- getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options) {
1444
- return localVarFp.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
1521
+ getSimilarTrailers(requestParameters, options) {
1522
+ return localVarFp.getSimilarTrailers(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
1445
1523
  },
1446
1524
  /**
1447
1525
  *
1448
1526
  * @summary Get theme songs and videos for an item.
1449
- * @param {string} itemId The item id.
1450
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
1451
- * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
1527
+ * @param {LibraryApiGetThemeMediaRequest} requestParameters Request parameters.
1452
1528
  * @param {*} [options] Override http request option.
1453
1529
  * @throws {RequiredError}
1454
1530
  */
1455
- getThemeMedia(itemId, userId, inheritFromParent, options) {
1456
- return localVarFp.getThemeMedia(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
1531
+ getThemeMedia(requestParameters, options) {
1532
+ return localVarFp.getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath));
1457
1533
  },
1458
1534
  /**
1459
1535
  *
1460
1536
  * @summary Get theme songs for an item.
1461
- * @param {string} itemId The item id.
1462
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
1463
- * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
1537
+ * @param {LibraryApiGetThemeSongsRequest} requestParameters Request parameters.
1464
1538
  * @param {*} [options] Override http request option.
1465
1539
  * @throws {RequiredError}
1466
1540
  */
1467
- getThemeSongs(itemId, userId, inheritFromParent, options) {
1468
- return localVarFp.getThemeSongs(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
1541
+ getThemeSongs(requestParameters, options) {
1542
+ return localVarFp.getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath));
1469
1543
  },
1470
1544
  /**
1471
1545
  *
1472
1546
  * @summary Get theme videos for an item.
1473
- * @param {string} itemId The item id.
1474
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
1475
- * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
1547
+ * @param {LibraryApiGetThemeVideosRequest} requestParameters Request parameters.
1476
1548
  * @param {*} [options] Override http request option.
1477
1549
  * @throws {RequiredError}
1478
1550
  */
1479
- getThemeVideos(itemId, userId, inheritFromParent, options) {
1480
- return localVarFp.getThemeVideos(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
1551
+ getThemeVideos(requestParameters, options) {
1552
+ return localVarFp.getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath));
1481
1553
  },
1482
1554
  /**
1483
1555
  *
1484
1556
  * @summary Reports that new movies have been added by an external source.
1485
- * @param {string} [tmdbId] The tmdbId.
1486
- * @param {string} [imdbId] The imdbId.
1557
+ * @param {LibraryApiPostAddedMoviesRequest} requestParameters Request parameters.
1487
1558
  * @param {*} [options] Override http request option.
1488
1559
  * @throws {RequiredError}
1489
1560
  */
1490
- postAddedMovies(tmdbId, imdbId, options) {
1491
- return localVarFp.postAddedMovies(tmdbId, imdbId, options).then((request) => request(axios, basePath));
1561
+ postAddedMovies(requestParameters = {}, options) {
1562
+ return localVarFp.postAddedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then((request) => request(axios, basePath));
1492
1563
  },
1493
1564
  /**
1494
1565
  *
1495
1566
  * @summary Reports that new episodes of a series have been added by an external source.
1496
- * @param {string} [tvdbId] The tvdbId.
1567
+ * @param {LibraryApiPostAddedSeriesRequest} requestParameters Request parameters.
1497
1568
  * @param {*} [options] Override http request option.
1498
1569
  * @throws {RequiredError}
1499
1570
  */
1500
- postAddedSeries(tvdbId, options) {
1501
- return localVarFp.postAddedSeries(tvdbId, options).then((request) => request(axios, basePath));
1571
+ postAddedSeries(requestParameters = {}, options) {
1572
+ return localVarFp.postAddedSeries(requestParameters.tvdbId, options).then((request) => request(axios, basePath));
1502
1573
  },
1503
1574
  /**
1504
1575
  *
1505
1576
  * @summary Reports that new movies have been added by an external source.
1506
- * @param {MediaUpdateInfoDto} mediaUpdateInfoDto The update paths.
1577
+ * @param {LibraryApiPostUpdatedMediaRequest} requestParameters Request parameters.
1507
1578
  * @param {*} [options] Override http request option.
1508
1579
  * @throws {RequiredError}
1509
1580
  */
1510
- postUpdatedMedia(mediaUpdateInfoDto, options) {
1511
- return localVarFp.postUpdatedMedia(mediaUpdateInfoDto, options).then((request) => request(axios, basePath));
1581
+ postUpdatedMedia(requestParameters, options) {
1582
+ return localVarFp.postUpdatedMedia(requestParameters.mediaUpdateInfoDto, options).then((request) => request(axios, basePath));
1512
1583
  },
1513
1584
  /**
1514
1585
  *
1515
1586
  * @summary Reports that new movies have been added by an external source.
1516
- * @param {string} [tmdbId] The tmdbId.
1517
- * @param {string} [imdbId] The imdbId.
1587
+ * @param {LibraryApiPostUpdatedMoviesRequest} requestParameters Request parameters.
1518
1588
  * @param {*} [options] Override http request option.
1519
1589
  * @throws {RequiredError}
1520
1590
  */
1521
- postUpdatedMovies(tmdbId, imdbId, options) {
1522
- return localVarFp.postUpdatedMovies(tmdbId, imdbId, options).then((request) => request(axios, basePath));
1591
+ postUpdatedMovies(requestParameters = {}, options) {
1592
+ return localVarFp.postUpdatedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then((request) => request(axios, basePath));
1523
1593
  },
1524
1594
  /**
1525
1595
  *
1526
1596
  * @summary Reports that new episodes of a series have been added by an external source.
1527
- * @param {string} [tvdbId] The tvdbId.
1597
+ * @param {LibraryApiPostUpdatedSeriesRequest} requestParameters Request parameters.
1528
1598
  * @param {*} [options] Override http request option.
1529
1599
  * @throws {RequiredError}
1530
1600
  */
1531
- postUpdatedSeries(tvdbId, options) {
1532
- return localVarFp.postUpdatedSeries(tvdbId, options).then((request) => request(axios, basePath));
1601
+ postUpdatedSeries(requestParameters = {}, options) {
1602
+ return localVarFp.postUpdatedSeries(requestParameters.tvdbId, options).then((request) => request(axios, basePath));
1533
1603
  },
1534
1604
  /**
1535
1605
  *
@@ -1734,7 +1804,7 @@ class LibraryApi extends BaseAPI {
1734
1804
  * @memberof LibraryApi
1735
1805
  */
1736
1806
  getThemeMedia(requestParameters, options) {
1737
- return LibraryApiFp(this.configuration).getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
1807
+ return LibraryApiFp(this.configuration).getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
1738
1808
  }
1739
1809
  /**
1740
1810
  *
@@ -1745,7 +1815,7 @@ class LibraryApi extends BaseAPI {
1745
1815
  * @memberof LibraryApi
1746
1816
  */
1747
1817
  getThemeSongs(requestParameters, options) {
1748
- return LibraryApiFp(this.configuration).getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
1818
+ return LibraryApiFp(this.configuration).getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
1749
1819
  }
1750
1820
  /**
1751
1821
  *
@@ -1756,7 +1826,7 @@ class LibraryApi extends BaseAPI {
1756
1826
  * @memberof LibraryApi
1757
1827
  */
1758
1828
  getThemeVideos(requestParameters, options) {
1759
- return LibraryApiFp(this.configuration).getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
1829
+ return LibraryApiFp(this.configuration).getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
1760
1830
  }
1761
1831
  /**
1762
1832
  *