@jellyfin/sdk 0.9.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 (335) hide show
  1. package/README.md +10 -0
  2. package/lib/api.d.ts +0 -11
  3. package/lib/api.js +0 -14
  4. package/lib/discovery/discovery-service.js +4 -9
  5. package/lib/discovery/recommended-server-discovery.js +17 -22
  6. package/lib/generated-client/api/activity-log-api.d.ts +9 -12
  7. package/lib/generated-client/api/activity-log-api.js +15 -18
  8. package/lib/generated-client/api/api-key-api.d.ts +18 -18
  9. package/lib/generated-client/api/api-key-api.js +40 -38
  10. package/lib/generated-client/api/artists-api.d.ts +27 -90
  11. package/lib/generated-client/api/artists-api.js +43 -104
  12. package/lib/generated-client/api/audio-api.d.ts +81 -249
  13. package/lib/generated-client/api/audio-api.js +105 -266
  14. package/lib/generated-client/api/branding-api.d.ts +16 -16
  15. package/lib/generated-client/api/branding-api.js +31 -29
  16. package/lib/generated-client/api/channels-api.d.ts +33 -51
  17. package/lib/generated-client/api/channels-api.js +68 -82
  18. package/lib/generated-client/api/client-log-api.d.ts +13 -13
  19. package/lib/generated-client/api/client-log-api.js +17 -17
  20. package/lib/generated-client/api/collection-api.d.ts +19 -24
  21. package/lib/generated-client/api/collection-api.js +43 -46
  22. package/lib/generated-client/api/configuration-api.d.ts +28 -29
  23. package/lib/generated-client/api/configuration-api.js +65 -62
  24. package/lib/generated-client/api/dashboard-api.d.ts +14 -14
  25. package/lib/generated-client/api/dashboard-api.js +28 -27
  26. package/lib/generated-client/api/devices-api.d.ts +31 -33
  27. package/lib/generated-client/api/devices-api.js +71 -68
  28. package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
  29. package/lib/generated-client/api/display-preferences-api.js +29 -33
  30. package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
  31. package/lib/generated-client/api/dynamic-hls-api.js +269 -628
  32. package/lib/generated-client/api/environment-api.d.ts +33 -35
  33. package/lib/generated-client/api/environment-api.js +76 -73
  34. package/lib/generated-client/api/filter-api.d.ts +17 -29
  35. package/lib/generated-client/api/filter-api.js +29 -40
  36. package/lib/generated-client/api/genres-api.d.ts +20 -38
  37. package/lib/generated-client/api/genres-api.js +29 -46
  38. package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
  39. package/lib/generated-client/api/hls-segment-api.js +68 -71
  40. package/lib/generated-client/api/image-api.d.ts +206 -644
  41. package/lib/generated-client/api/image-api.js +501 -903
  42. package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
  43. package/lib/generated-client/api/instant-mix-api.js +113 -162
  44. package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
  45. package/lib/generated-client/api/item-lookup-api.js +155 -147
  46. package/lib/generated-client/api/item-refresh-api.d.ts +9 -13
  47. package/lib/generated-client/api/item-refresh-api.js +15 -19
  48. package/lib/generated-client/api/item-update-api.d.ts +20 -22
  49. package/lib/generated-client/api/item-update-api.js +43 -43
  50. package/lib/generated-client/api/items-api.d.ts +44 -137
  51. package/lib/generated-client/api/items-api.js +63 -156
  52. package/lib/generated-client/api/library-api.d.ts +185 -170
  53. package/lib/generated-client/api/library-api.js +378 -359
  54. package/lib/generated-client/api/library-structure-api.d.ts +48 -58
  55. package/lib/generated-client/api/library-structure-api.js +110 -113
  56. package/lib/generated-client/api/live-tv-api.d.ts +224 -332
  57. package/lib/generated-client/api/live-tv-api.js +558 -626
  58. package/lib/generated-client/api/localization-api.d.ts +23 -23
  59. package/lib/generated-client/api/localization-api.js +45 -42
  60. package/lib/generated-client/api/lyrics-api.d.ts +39 -42
  61. package/lib/generated-client/api/lyrics-api.js +87 -85
  62. package/lib/generated-client/api/media-info-api.d.ts +40 -59
  63. package/lib/generated-client/api/media-info-api.js +77 -95
  64. package/lib/generated-client/api/media-segments-api.d.ts +95 -0
  65. package/lib/generated-client/api/media-segments-api.js +123 -0
  66. package/lib/generated-client/api/movies-api.d.ts +10 -14
  67. package/lib/generated-client/api/movies-api.js +15 -19
  68. package/lib/generated-client/api/music-genres-api.d.ts +20 -38
  69. package/lib/generated-client/api/music-genres-api.js +29 -46
  70. package/lib/generated-client/api/package-api.d.ts +33 -37
  71. package/lib/generated-client/api/package-api.js +79 -78
  72. package/lib/generated-client/api/persons-api.d.ts +18 -31
  73. package/lib/generated-client/api/persons-api.js +29 -41
  74. package/lib/generated-client/api/playlists-api.d.ts +109 -84
  75. package/lib/generated-client/api/playlists-api.js +207 -154
  76. package/lib/generated-client/api/playstate-api.d.ts +54 -80
  77. package/lib/generated-client/api/playstate-api.js +127 -145
  78. package/lib/generated-client/api/plugins-api.d.ts +48 -52
  79. package/lib/generated-client/api/plugins-api.js +124 -120
  80. package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
  81. package/lib/generated-client/api/quick-connect-api.js +48 -46
  82. package/lib/generated-client/api/remote-image-api.d.ts +21 -28
  83. package/lib/generated-client/api/remote-image-api.js +43 -48
  84. package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
  85. package/lib/generated-client/api/scheduled-tasks-api.js +71 -69
  86. package/lib/generated-client/api/search-api.d.ts +11 -28
  87. package/lib/generated-client/api/search-api.js +15 -32
  88. package/lib/generated-client/api/session-api.d.ts +90 -117
  89. package/lib/generated-client/api/session-api.js +216 -228
  90. package/lib/generated-client/api/startup-api.d.ts +37 -37
  91. package/lib/generated-client/api/startup-api.js +87 -81
  92. package/lib/generated-client/api/studios-api.d.ts +18 -35
  93. package/lib/generated-client/api/studios-api.js +29 -45
  94. package/lib/generated-client/api/subtitle-api.d.ts +55 -86
  95. package/lib/generated-client/api/subtitle-api.js +136 -158
  96. package/lib/generated-client/api/suggestions-api.d.ts +11 -16
  97. package/lib/generated-client/api/suggestions-api.js +15 -20
  98. package/lib/generated-client/api/sync-play-api.d.ts +120 -120
  99. package/lib/generated-client/api/sync-play-api.js +280 -260
  100. package/lib/generated-client/api/system-api.d.ts +49 -49
  101. package/lib/generated-client/api/system-api.js +111 -102
  102. package/lib/generated-client/api/time-sync-api.d.ts +8 -8
  103. package/lib/generated-client/api/time-sync-api.js +11 -11
  104. package/lib/generated-client/api/tmdb-api.d.ts +8 -8
  105. package/lib/generated-client/api/tmdb-api.js +12 -12
  106. package/lib/generated-client/api/trailers-api.d.ts +19 -102
  107. package/lib/generated-client/api/trailers-api.js +15 -98
  108. package/lib/generated-client/api/trickplay-api.d.ts +13 -18
  109. package/lib/generated-client/api/trickplay-api.js +29 -33
  110. package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
  111. package/lib/generated-client/api/tv-shows-api.js +57 -99
  112. package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
  113. package/lib/generated-client/api/universal-audio-api.js +41 -64
  114. package/lib/generated-client/api/user-api.d.ts +83 -88
  115. package/lib/generated-client/api/user-api.js +186 -178
  116. package/lib/generated-client/api/user-library-api.d.ts +59 -78
  117. package/lib/generated-client/api/user-library-api.js +141 -151
  118. package/lib/generated-client/api/user-views-api.d.ts +16 -19
  119. package/lib/generated-client/api/user-views-api.js +29 -31
  120. package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
  121. package/lib/generated-client/api/video-attachments-api.js +14 -16
  122. package/lib/generated-client/api/videos-api.d.ts +97 -274
  123. package/lib/generated-client/api/videos-api.js +147 -314
  124. package/lib/generated-client/api/years-api.d.ts +21 -36
  125. package/lib/generated-client/api/years-api.js +29 -43
  126. package/lib/generated-client/api.d.ts +1 -0
  127. package/lib/generated-client/base.d.ts +15 -4
  128. package/lib/generated-client/base.js +8 -4
  129. package/lib/generated-client/common.d.ts +3 -3
  130. package/lib/generated-client/common.js +30 -24
  131. package/lib/generated-client/configuration.d.ts +8 -0
  132. package/lib/generated-client/configuration.js +1 -0
  133. package/lib/generated-client/index.js +8 -1
  134. package/lib/generated-client/models/access-schedule.d.ts +1 -1
  135. package/lib/generated-client/models/activity-log-entry-message.d.ts +2 -2
  136. package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
  137. package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -1
  138. package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +1 -1
  139. package/lib/generated-client/models/activity-log-entry.d.ts +1 -1
  140. package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
  141. package/lib/generated-client/models/album-info-remote-search-query.d.ts +1 -1
  142. package/lib/generated-client/models/album-info.d.ts +5 -5
  143. package/lib/generated-client/models/all-theme-media-result.d.ts +1 -1
  144. package/lib/generated-client/models/artist-info-remote-search-query.d.ts +1 -1
  145. package/lib/generated-client/models/artist-info.d.ts +3 -3
  146. package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
  147. package/lib/generated-client/models/authentication-result.d.ts +7 -7
  148. package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
  149. package/lib/generated-client/models/base-item-dto.d.ts +26 -26
  150. package/lib/generated-client/models/base-item-person.d.ts +2 -2
  151. package/lib/generated-client/models/book-info-remote-search-query.d.ts +1 -1
  152. package/lib/generated-client/models/book-info.d.ts +2 -2
  153. package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +1 -1
  154. package/lib/generated-client/models/box-set-info.d.ts +2 -2
  155. package/lib/generated-client/models/channel-features.d.ts +3 -3
  156. package/lib/generated-client/models/channel-mapping-options-dto.d.ts +3 -3
  157. package/lib/generated-client/models/client-capabilities-dto.d.ts +3 -17
  158. package/lib/generated-client/models/client-capabilities.d.ts +3 -3
  159. package/lib/generated-client/models/codec-profile.d.ts +15 -9
  160. package/lib/generated-client/models/container-profile.d.ts +12 -6
  161. package/lib/generated-client/models/create-playlist-dto.d.ts +2 -2
  162. package/lib/generated-client/models/deinterlace-method.d.ts +20 -0
  163. package/lib/generated-client/models/{hardware-encoding-type.js → deinterlace-method.js} +5 -10
  164. package/lib/generated-client/models/device-info-dto-query-result.d.ts +36 -0
  165. package/lib/generated-client/models/device-info-dto.d.ts +84 -0
  166. package/lib/generated-client/models/device-info-query-result.d.ts +1 -1
  167. package/lib/generated-client/models/device-info.d.ts +1 -1
  168. package/lib/generated-client/models/device-profile.d.ts +8 -8
  169. package/lib/generated-client/models/direct-play-profile.d.ts +6 -6
  170. package/lib/generated-client/models/display-preferences-dto.d.ts +4 -4
  171. package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +3 -1
  172. package/lib/generated-client/models/down-mix-stereo-algorithms.js +4 -2
  173. package/lib/generated-client/models/encoder-preset.d.ts +29 -0
  174. package/lib/generated-client/models/encoder-preset.js +32 -0
  175. package/lib/generated-client/models/encoding-options.d.ts +43 -19
  176. package/lib/generated-client/models/external-id-info.d.ts +2 -1
  177. package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
  178. package/lib/generated-client/models/force-keep-alive-message.d.ts +1 -1
  179. package/lib/generated-client/models/forgot-password-result.d.ts +1 -1
  180. package/lib/generated-client/models/general-command-message.d.ts +2 -2
  181. package/lib/generated-client/models/general-command.d.ts +3 -3
  182. package/lib/generated-client/models/get-programs-dto.d.ts +34 -34
  183. package/lib/generated-client/models/group-info-dto-group-update.d.ts +2 -2
  184. package/lib/generated-client/models/group-info-dto.d.ts +1 -1
  185. package/lib/generated-client/models/group-state-update-group-update.d.ts +2 -2
  186. package/lib/generated-client/models/group-state-update.d.ts +2 -2
  187. package/lib/generated-client/models/group-update.d.ts +23 -5
  188. package/lib/generated-client/models/hardware-acceleration-type.d.ts +26 -0
  189. package/lib/generated-client/models/hardware-acceleration-type.js +29 -0
  190. package/lib/generated-client/models/image-info.d.ts +1 -1
  191. package/lib/generated-client/models/image-option.d.ts +1 -1
  192. package/lib/generated-client/models/image-provider-info.d.ts +1 -1
  193. package/lib/generated-client/models/inbound-keep-alive-message.d.ts +1 -1
  194. package/lib/generated-client/models/inbound-web-socket-message.d.ts +22 -8
  195. package/lib/generated-client/models/index.d.ts +13 -6
  196. package/lib/generated-client/models/index.js +7 -1
  197. package/lib/generated-client/models/installation-info.d.ts +1 -1
  198. package/lib/generated-client/models/library-changed-message.d.ts +2 -2
  199. package/lib/generated-client/models/library-options-result-dto.d.ts +8 -2
  200. package/lib/generated-client/models/library-options.d.ts +57 -3
  201. package/lib/generated-client/models/library-type-options-dto.d.ts +3 -3
  202. package/lib/generated-client/models/listings-provider-info.d.ts +1 -1
  203. package/lib/generated-client/models/live-stream-response.d.ts +1 -1
  204. package/lib/generated-client/models/live-tv-info.d.ts +1 -1
  205. package/lib/generated-client/models/live-tv-options.d.ts +2 -2
  206. package/lib/generated-client/models/live-tv-service-info.d.ts +1 -1
  207. package/lib/generated-client/models/lyric-dto.d.ts +2 -2
  208. package/lib/generated-client/models/media-path-dto.d.ts +1 -1
  209. package/lib/generated-client/models/media-path-info.d.ts +0 -6
  210. package/lib/generated-client/models/media-segment-dto-query-result.d.ts +36 -0
  211. package/lib/generated-client/models/media-segment-dto.d.ts +48 -0
  212. package/lib/generated-client/models/media-segment-type.d.ts +24 -0
  213. package/lib/generated-client/models/media-segment-type.js +27 -0
  214. package/lib/generated-client/models/media-source-info.d.ts +29 -11
  215. package/lib/generated-client/models/media-stream.d.ts +17 -5
  216. package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
  217. package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
  218. package/lib/generated-client/models/movie-info-remote-search-query.d.ts +1 -1
  219. package/lib/generated-client/models/movie-info.d.ts +2 -2
  220. package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +1 -1
  221. package/lib/generated-client/models/music-video-info.d.ts +2 -2
  222. package/lib/generated-client/models/open-live-stream-dto.d.ts +8 -2
  223. package/lib/generated-client/models/outbound-keep-alive-message.d.ts +1 -1
  224. package/lib/generated-client/models/outbound-web-socket-message.d.ts +85 -29
  225. package/lib/generated-client/models/package-info.d.ts +1 -1
  226. package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +1 -1
  227. package/lib/generated-client/models/person-lookup-info.d.ts +2 -2
  228. package/lib/generated-client/models/play-message.d.ts +2 -2
  229. package/lib/generated-client/models/play-queue-update-group-update.d.ts +2 -2
  230. package/lib/generated-client/models/play-queue-update.d.ts +4 -4
  231. package/lib/generated-client/models/play-request.d.ts +1 -1
  232. package/lib/generated-client/models/playback-info-dto.d.ts +7 -1
  233. package/lib/generated-client/models/playback-info-response.d.ts +2 -2
  234. package/lib/generated-client/models/playback-progress-info.d.ts +5 -5
  235. package/lib/generated-client/models/playback-start-info.d.ts +5 -5
  236. package/lib/generated-client/models/playback-stop-info.d.ts +2 -2
  237. package/lib/generated-client/models/player-state-info.d.ts +3 -3
  238. package/lib/generated-client/models/playlist-dto.d.ts +36 -0
  239. package/lib/generated-client/models/playstate-message.d.ts +2 -2
  240. package/lib/generated-client/models/playstate-request.d.ts +1 -1
  241. package/lib/generated-client/models/plugin-info.d.ts +1 -1
  242. package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +2 -2
  243. package/lib/generated-client/models/plugin-installation-completed-message.d.ts +2 -2
  244. package/lib/generated-client/models/plugin-installation-failed-message.d.ts +2 -2
  245. package/lib/generated-client/models/plugin-installing-message.d.ts +2 -2
  246. package/lib/generated-client/models/plugin-uninstalled-message.d.ts +2 -2
  247. package/lib/generated-client/models/problem-details.d.ts +1 -1
  248. package/lib/generated-client/models/profile-condition.d.ts +2 -2
  249. package/lib/generated-client/models/query-filters.d.ts +1 -1
  250. package/lib/generated-client/models/queue-request-dto.d.ts +1 -1
  251. package/lib/generated-client/models/recommendation-dto.d.ts +2 -2
  252. package/lib/generated-client/models/refresh-progress-message.d.ts +3 -3
  253. package/lib/generated-client/models/remote-image-info.d.ts +2 -2
  254. package/lib/generated-client/models/remote-image-result.d.ts +1 -1
  255. package/lib/generated-client/models/remote-lyric-info-dto.d.ts +1 -1
  256. package/lib/generated-client/models/remote-search-result.d.ts +2 -2
  257. package/lib/generated-client/models/restart-required-message.d.ts +1 -1
  258. package/lib/generated-client/models/scheduled-task-ended-message.d.ts +2 -2
  259. package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +2 -2
  260. package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -1
  261. package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +1 -1
  262. package/lib/generated-client/models/search-hint-result.d.ts +1 -1
  263. package/lib/generated-client/models/search-hint.d.ts +3 -3
  264. package/lib/generated-client/models/send-command.d.ts +1 -1
  265. package/lib/generated-client/models/series-info-remote-search-query.d.ts +1 -1
  266. package/lib/generated-client/models/series-info.d.ts +2 -2
  267. package/lib/generated-client/models/series-timer-cancelled-message.d.ts +2 -2
  268. package/lib/generated-client/models/series-timer-created-message.d.ts +2 -2
  269. package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +3 -3
  270. package/lib/generated-client/models/series-timer-info-dto.d.ts +3 -3
  271. package/lib/generated-client/models/server-configuration.d.ts +8 -14
  272. package/lib/generated-client/models/server-restarting-message.d.ts +1 -1
  273. package/lib/generated-client/models/server-shutting-down-message.d.ts +1 -1
  274. package/lib/generated-client/models/session-info-dto.d.ts +199 -0
  275. package/lib/generated-client/models/session-info.d.ts +8 -8
  276. package/lib/generated-client/models/sessions-message.d.ts +4 -4
  277. package/lib/generated-client/models/sessions-start-message.d.ts +1 -1
  278. package/lib/generated-client/models/sessions-stop-message.d.ts +1 -1
  279. package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
  280. package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
  281. package/lib/generated-client/models/song-info.d.ts +2 -2
  282. package/lib/generated-client/models/string-group-update.d.ts +1 -1
  283. package/lib/generated-client/models/subtitle-profile.d.ts +6 -6
  284. package/lib/generated-client/models/sync-play-command-message.d.ts +2 -2
  285. package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
  286. package/lib/generated-client/models/system-info.d.ts +2 -2
  287. package/lib/generated-client/models/task-info.d.ts +3 -3
  288. package/lib/generated-client/models/task-result.d.ts +1 -1
  289. package/lib/generated-client/models/task-trigger-info.d.ts +1 -1
  290. package/lib/generated-client/models/theme-media-result.d.ts +2 -2
  291. package/lib/generated-client/models/timer-cancelled-message.d.ts +2 -2
  292. package/lib/generated-client/models/timer-created-message.d.ts +2 -2
  293. package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
  294. package/lib/generated-client/models/timer-info-dto.d.ts +3 -3
  295. package/lib/generated-client/models/tonemapping-algorithm.d.ts +26 -0
  296. package/lib/generated-client/models/tonemapping-algorithm.js +29 -0
  297. package/lib/generated-client/models/tonemapping-mode.d.ts +23 -0
  298. package/lib/generated-client/models/tonemapping-mode.js +26 -0
  299. package/lib/generated-client/models/tonemapping-range.d.ts +21 -0
  300. package/lib/generated-client/models/tonemapping-range.js +24 -0
  301. package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +1 -1
  302. package/lib/generated-client/models/trailer-info.d.ts +2 -2
  303. package/lib/generated-client/models/transcode-reason.d.ts +1 -0
  304. package/lib/generated-client/models/transcode-reason.js +2 -1
  305. package/lib/generated-client/models/transcoding-info.d.ts +16 -16
  306. package/lib/generated-client/models/transcoding-profile.d.ts +24 -18
  307. package/lib/generated-client/models/trickplay-options.d.ts +8 -2
  308. package/lib/generated-client/models/tuner-host-info.d.ts +18 -0
  309. package/lib/generated-client/models/type-options.d.ts +1 -1
  310. package/lib/generated-client/models/update-library-options-dto.d.ts +1 -1
  311. package/lib/generated-client/models/update-media-path-request-dto.d.ts +1 -1
  312. package/lib/generated-client/models/update-playlist-dto.d.ts +1 -1
  313. package/lib/generated-client/models/user-configuration.d.ts +1 -1
  314. package/lib/generated-client/models/user-data-change-info.d.ts +3 -3
  315. package/lib/generated-client/models/user-data-changed-message.d.ts +2 -2
  316. package/lib/generated-client/models/user-deleted-message.d.ts +1 -1
  317. package/lib/generated-client/models/user-dto.d.ts +2 -2
  318. package/lib/generated-client/models/user-item-data-dto.d.ts +2 -2
  319. package/lib/generated-client/models/user-policy.d.ts +3 -3
  320. package/lib/generated-client/models/user-updated-message.d.ts +2 -2
  321. package/lib/generated-client/models/virtual-folder-info.d.ts +2 -2
  322. package/lib/generated-client/models/web-socket-message.d.ts +2 -2
  323. package/lib/utils/address-candidates.js +15 -10
  324. package/lib/utils/api/image-urls-api.js +16 -4
  325. package/lib/utils/api/index.d.ts +1 -0
  326. package/lib/utils/api/index.js +1 -0
  327. package/lib/utils/api/media-segments-api.d.ts +8 -0
  328. package/lib/utils/api/media-segments-api.js +12 -0
  329. package/lib/utils/index.js +1 -1
  330. package/lib/utils/url/index.d.ts +16 -3
  331. package/lib/utils/url/index.js +26 -4
  332. package/lib/versions.d.ts +1 -1
  333. package/lib/versions.js +1 -1
  334. package/package.json +13 -12
  335. package/lib/node_modules/tslib/tslib.es6.js +0 -33
@@ -1,7 +1,6 @@
1
- import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
2
1
  import globalAxios from 'axios';
3
2
  import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
4
- import { BaseAPI, BASE_PATH } from '../base.js';
3
+ import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
5
4
 
6
5
  /* tslint:disable */
7
6
  /* eslint-disable */
@@ -29,7 +28,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
29
28
  * @param {*} [options] Override http request option.
30
29
  * @throws {RequiredError}
31
30
  */
32
- deleteUserItemRating: (itemId_1, userId_1, ...args_1) => __awaiter(this, [itemId_1, userId_1, ...args_1], void 0, function* (itemId, userId, options = {}) {
31
+ deleteUserItemRating: async (itemId, userId, options = {}) => {
33
32
  // verify required parameter 'itemId' is not null or undefined
34
33
  assertParamExists('deleteUserItemRating', 'itemId', itemId);
35
34
  const localVarPath = `/UserItems/{itemId}/Rating`
@@ -40,22 +39,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
40
39
  if (configuration) {
41
40
  baseOptions = configuration.baseOptions;
42
41
  }
43
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
42
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
44
43
  const localVarHeaderParameter = {};
45
44
  const localVarQueryParameter = {};
46
45
  // authentication CustomAuthentication required
47
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
46
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
48
47
  if (userId !== undefined) {
49
48
  localVarQueryParameter['userId'] = userId;
50
49
  }
51
50
  setSearchParams(localVarUrlObj, localVarQueryParameter);
52
51
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
53
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
52
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
54
53
  return {
55
54
  url: toPathString(localVarUrlObj),
56
55
  options: localVarRequestOptions,
57
56
  };
58
- }),
57
+ },
59
58
  /**
60
59
  *
61
60
  * @summary Gets intros to play before the main media item plays.
@@ -64,7 +63,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
64
63
  * @param {*} [options] Override http request option.
65
64
  * @throws {RequiredError}
66
65
  */
67
- getIntros: (itemId_2, userId_2, ...args_2) => __awaiter(this, [itemId_2, userId_2, ...args_2], void 0, function* (itemId, userId, options = {}) {
66
+ getIntros: async (itemId, userId, options = {}) => {
68
67
  // verify required parameter 'itemId' is not null or undefined
69
68
  assertParamExists('getIntros', 'itemId', itemId);
70
69
  const localVarPath = `/Items/{itemId}/Intros`
@@ -75,22 +74,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
75
74
  if (configuration) {
76
75
  baseOptions = configuration.baseOptions;
77
76
  }
78
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
77
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
79
78
  const localVarHeaderParameter = {};
80
79
  const localVarQueryParameter = {};
81
80
  // authentication CustomAuthentication required
82
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
81
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
83
82
  if (userId !== undefined) {
84
83
  localVarQueryParameter['userId'] = userId;
85
84
  }
86
85
  setSearchParams(localVarUrlObj, localVarQueryParameter);
87
86
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
87
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
89
88
  return {
90
89
  url: toPathString(localVarUrlObj),
91
90
  options: localVarRequestOptions,
92
91
  };
93
- }),
92
+ },
94
93
  /**
95
94
  *
96
95
  * @summary Gets an item from a user\'s library.
@@ -99,7 +98,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
99
98
  * @param {*} [options] Override http request option.
100
99
  * @throws {RequiredError}
101
100
  */
102
- getItem: (itemId_3, userId_3, ...args_3) => __awaiter(this, [itemId_3, userId_3, ...args_3], void 0, function* (itemId, userId, options = {}) {
101
+ getItem: async (itemId, userId, options = {}) => {
103
102
  // verify required parameter 'itemId' is not null or undefined
104
103
  assertParamExists('getItem', 'itemId', itemId);
105
104
  const localVarPath = `/Items/{itemId}`
@@ -110,22 +109,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
110
109
  if (configuration) {
111
110
  baseOptions = configuration.baseOptions;
112
111
  }
113
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
112
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
114
113
  const localVarHeaderParameter = {};
115
114
  const localVarQueryParameter = {};
116
115
  // authentication CustomAuthentication required
117
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
116
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
118
117
  if (userId !== undefined) {
119
118
  localVarQueryParameter['userId'] = userId;
120
119
  }
121
120
  setSearchParams(localVarUrlObj, localVarQueryParameter);
122
121
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
123
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
122
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
124
123
  return {
125
124
  url: toPathString(localVarUrlObj),
126
125
  options: localVarRequestOptions,
127
126
  };
128
- }),
127
+ },
129
128
  /**
130
129
  *
131
130
  * @summary Gets latest media.
@@ -143,7 +142,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
143
142
  * @param {*} [options] Override http request option.
144
143
  * @throws {RequiredError}
145
144
  */
146
- getLatestMedia: (userId_4, parentId_1, fields_1, includeItemTypes_1, isPlayed_1, enableImages_1, imageTypeLimit_1, enableImageTypes_1, enableUserData_1, limit_1, groupItems_1, ...args_4) => __awaiter(this, [userId_4, parentId_1, fields_1, includeItemTypes_1, isPlayed_1, enableImages_1, imageTypeLimit_1, enableImageTypes_1, enableUserData_1, limit_1, groupItems_1, ...args_4], void 0, function* (userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options = {}) {
145
+ getLatestMedia: async (userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options = {}) => {
147
146
  const localVarPath = `/Items/Latest`;
148
147
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
149
148
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -151,11 +150,11 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
151
150
  if (configuration) {
152
151
  baseOptions = configuration.baseOptions;
153
152
  }
154
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
153
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
155
154
  const localVarHeaderParameter = {};
156
155
  const localVarQueryParameter = {};
157
156
  // authentication CustomAuthentication required
158
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
157
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
159
158
  if (userId !== undefined) {
160
159
  localVarQueryParameter['userId'] = userId;
161
160
  }
@@ -191,12 +190,12 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
191
190
  }
192
191
  setSearchParams(localVarUrlObj, localVarQueryParameter);
193
192
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
194
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
193
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
195
194
  return {
196
195
  url: toPathString(localVarUrlObj),
197
196
  options: localVarRequestOptions,
198
197
  };
199
- }),
198
+ },
200
199
  /**
201
200
  *
202
201
  * @summary Gets local trailers for an item.
@@ -205,7 +204,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
205
204
  * @param {*} [options] Override http request option.
206
205
  * @throws {RequiredError}
207
206
  */
208
- getLocalTrailers: (itemId_4, userId_5, ...args_5) => __awaiter(this, [itemId_4, userId_5, ...args_5], void 0, function* (itemId, userId, options = {}) {
207
+ getLocalTrailers: async (itemId, userId, options = {}) => {
209
208
  // verify required parameter 'itemId' is not null or undefined
210
209
  assertParamExists('getLocalTrailers', 'itemId', itemId);
211
210
  const localVarPath = `/Items/{itemId}/LocalTrailers`
@@ -216,22 +215,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
216
215
  if (configuration) {
217
216
  baseOptions = configuration.baseOptions;
218
217
  }
219
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
218
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
220
219
  const localVarHeaderParameter = {};
221
220
  const localVarQueryParameter = {};
222
221
  // authentication CustomAuthentication required
223
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
222
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
224
223
  if (userId !== undefined) {
225
224
  localVarQueryParameter['userId'] = userId;
226
225
  }
227
226
  setSearchParams(localVarUrlObj, localVarQueryParameter);
228
227
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
229
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
228
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
230
229
  return {
231
230
  url: toPathString(localVarUrlObj),
232
231
  options: localVarRequestOptions,
233
232
  };
234
- }),
233
+ },
235
234
  /**
236
235
  *
237
236
  * @summary Gets the root folder from a user\'s library.
@@ -239,7 +238,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
239
238
  * @param {*} [options] Override http request option.
240
239
  * @throws {RequiredError}
241
240
  */
242
- getRootFolder: (userId_6, ...args_6) => __awaiter(this, [userId_6, ...args_6], void 0, function* (userId, options = {}) {
241
+ getRootFolder: async (userId, options = {}) => {
243
242
  const localVarPath = `/Items/Root`;
244
243
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
245
244
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -247,22 +246,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
247
246
  if (configuration) {
248
247
  baseOptions = configuration.baseOptions;
249
248
  }
250
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
249
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
251
250
  const localVarHeaderParameter = {};
252
251
  const localVarQueryParameter = {};
253
252
  // authentication CustomAuthentication required
254
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
253
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
255
254
  if (userId !== undefined) {
256
255
  localVarQueryParameter['userId'] = userId;
257
256
  }
258
257
  setSearchParams(localVarUrlObj, localVarQueryParameter);
259
258
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
259
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
261
260
  return {
262
261
  url: toPathString(localVarUrlObj),
263
262
  options: localVarRequestOptions,
264
263
  };
265
- }),
264
+ },
266
265
  /**
267
266
  *
268
267
  * @summary Gets special features for an item.
@@ -271,7 +270,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
271
270
  * @param {*} [options] Override http request option.
272
271
  * @throws {RequiredError}
273
272
  */
274
- getSpecialFeatures: (itemId_5, userId_7, ...args_7) => __awaiter(this, [itemId_5, userId_7, ...args_7], void 0, function* (itemId, userId, options = {}) {
273
+ getSpecialFeatures: async (itemId, userId, options = {}) => {
275
274
  // verify required parameter 'itemId' is not null or undefined
276
275
  assertParamExists('getSpecialFeatures', 'itemId', itemId);
277
276
  const localVarPath = `/Items/{itemId}/SpecialFeatures`
@@ -282,22 +281,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
282
281
  if (configuration) {
283
282
  baseOptions = configuration.baseOptions;
284
283
  }
285
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
284
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
286
285
  const localVarHeaderParameter = {};
287
286
  const localVarQueryParameter = {};
288
287
  // authentication CustomAuthentication required
289
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
288
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
290
289
  if (userId !== undefined) {
291
290
  localVarQueryParameter['userId'] = userId;
292
291
  }
293
292
  setSearchParams(localVarUrlObj, localVarQueryParameter);
294
293
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
294
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
296
295
  return {
297
296
  url: toPathString(localVarUrlObj),
298
297
  options: localVarRequestOptions,
299
298
  };
300
- }),
299
+ },
301
300
  /**
302
301
  *
303
302
  * @summary Marks an item as a favorite.
@@ -306,7 +305,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
306
305
  * @param {*} [options] Override http request option.
307
306
  * @throws {RequiredError}
308
307
  */
309
- markFavoriteItem: (itemId_6, userId_8, ...args_8) => __awaiter(this, [itemId_6, userId_8, ...args_8], void 0, function* (itemId, userId, options = {}) {
308
+ markFavoriteItem: async (itemId, userId, options = {}) => {
310
309
  // verify required parameter 'itemId' is not null or undefined
311
310
  assertParamExists('markFavoriteItem', 'itemId', itemId);
312
311
  const localVarPath = `/UserFavoriteItems/{itemId}`
@@ -317,22 +316,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
317
316
  if (configuration) {
318
317
  baseOptions = configuration.baseOptions;
319
318
  }
320
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
319
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
321
320
  const localVarHeaderParameter = {};
322
321
  const localVarQueryParameter = {};
323
322
  // authentication CustomAuthentication required
324
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
323
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
325
324
  if (userId !== undefined) {
326
325
  localVarQueryParameter['userId'] = userId;
327
326
  }
328
327
  setSearchParams(localVarUrlObj, localVarQueryParameter);
329
328
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
330
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
329
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
331
330
  return {
332
331
  url: toPathString(localVarUrlObj),
333
332
  options: localVarRequestOptions,
334
333
  };
335
- }),
334
+ },
336
335
  /**
337
336
  *
338
337
  * @summary Unmarks item as a favorite.
@@ -341,7 +340,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
341
340
  * @param {*} [options] Override http request option.
342
341
  * @throws {RequiredError}
343
342
  */
344
- unmarkFavoriteItem: (itemId_7, userId_9, ...args_9) => __awaiter(this, [itemId_7, userId_9, ...args_9], void 0, function* (itemId, userId, options = {}) {
343
+ unmarkFavoriteItem: async (itemId, userId, options = {}) => {
345
344
  // verify required parameter 'itemId' is not null or undefined
346
345
  assertParamExists('unmarkFavoriteItem', 'itemId', itemId);
347
346
  const localVarPath = `/UserFavoriteItems/{itemId}`
@@ -352,22 +351,22 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
352
351
  if (configuration) {
353
352
  baseOptions = configuration.baseOptions;
354
353
  }
355
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
354
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
356
355
  const localVarHeaderParameter = {};
357
356
  const localVarQueryParameter = {};
358
357
  // authentication CustomAuthentication required
359
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
358
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
360
359
  if (userId !== undefined) {
361
360
  localVarQueryParameter['userId'] = userId;
362
361
  }
363
362
  setSearchParams(localVarUrlObj, localVarQueryParameter);
364
363
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
365
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
364
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
366
365
  return {
367
366
  url: toPathString(localVarUrlObj),
368
367
  options: localVarRequestOptions,
369
368
  };
370
- }),
369
+ },
371
370
  /**
372
371
  *
373
372
  * @summary Updates a user\'s rating for an item.
@@ -377,7 +376,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
377
376
  * @param {*} [options] Override http request option.
378
377
  * @throws {RequiredError}
379
378
  */
380
- updateUserItemRating: (itemId_8, userId_10, likes_1, ...args_10) => __awaiter(this, [itemId_8, userId_10, likes_1, ...args_10], void 0, function* (itemId, userId, likes, options = {}) {
379
+ updateUserItemRating: async (itemId, userId, likes, options = {}) => {
381
380
  // verify required parameter 'itemId' is not null or undefined
382
381
  assertParamExists('updateUserItemRating', 'itemId', itemId);
383
382
  const localVarPath = `/UserItems/{itemId}/Rating`
@@ -388,11 +387,11 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
388
387
  if (configuration) {
389
388
  baseOptions = configuration.baseOptions;
390
389
  }
391
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
390
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
392
391
  const localVarHeaderParameter = {};
393
392
  const localVarQueryParameter = {};
394
393
  // authentication CustomAuthentication required
395
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
394
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
396
395
  if (userId !== undefined) {
397
396
  localVarQueryParameter['userId'] = userId;
398
397
  }
@@ -401,12 +400,12 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
401
400
  }
402
401
  setSearchParams(localVarUrlObj, localVarQueryParameter);
403
402
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
404
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
403
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
405
404
  return {
406
405
  url: toPathString(localVarUrlObj),
407
406
  options: localVarRequestOptions,
408
407
  };
409
- }),
408
+ },
410
409
  };
411
410
  };
412
411
  /**
@@ -424,11 +423,12 @@ const UserLibraryApiFp = function (configuration) {
424
423
  * @param {*} [options] Override http request option.
425
424
  * @throws {RequiredError}
426
425
  */
427
- deleteUserItemRating(itemId, userId, options) {
428
- return __awaiter(this, void 0, void 0, function* () {
429
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserItemRating(itemId, userId, options);
430
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
431
- });
426
+ async deleteUserItemRating(itemId, userId, options) {
427
+ var _a, _b, _c;
428
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserItemRating(itemId, userId, options);
429
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
430
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.deleteUserItemRating']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
431
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
432
432
  },
433
433
  /**
434
434
  *
@@ -438,11 +438,12 @@ const UserLibraryApiFp = function (configuration) {
438
438
  * @param {*} [options] Override http request option.
439
439
  * @throws {RequiredError}
440
440
  */
441
- getIntros(itemId, userId, options) {
442
- return __awaiter(this, void 0, void 0, function* () {
443
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntros(itemId, userId, options);
444
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
445
- });
441
+ async getIntros(itemId, userId, options) {
442
+ var _a, _b, _c;
443
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getIntros(itemId, userId, options);
444
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
445
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getIntros']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
446
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
446
447
  },
447
448
  /**
448
449
  *
@@ -452,11 +453,12 @@ const UserLibraryApiFp = function (configuration) {
452
453
  * @param {*} [options] Override http request option.
453
454
  * @throws {RequiredError}
454
455
  */
455
- getItem(itemId, userId, options) {
456
- return __awaiter(this, void 0, void 0, function* () {
457
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getItem(itemId, userId, options);
458
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
459
- });
456
+ async getItem(itemId, userId, options) {
457
+ var _a, _b, _c;
458
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItem(itemId, userId, options);
459
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
460
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
461
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
460
462
  },
461
463
  /**
462
464
  *
@@ -475,11 +477,12 @@ const UserLibraryApiFp = function (configuration) {
475
477
  * @param {*} [options] Override http request option.
476
478
  * @throws {RequiredError}
477
479
  */
478
- getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options) {
479
- return __awaiter(this, void 0, void 0, function* () {
480
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options);
481
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
482
- });
480
+ async getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options) {
481
+ var _a, _b, _c;
482
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options);
483
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
484
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getLatestMedia']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
485
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
483
486
  },
484
487
  /**
485
488
  *
@@ -489,11 +492,12 @@ const UserLibraryApiFp = function (configuration) {
489
492
  * @param {*} [options] Override http request option.
490
493
  * @throws {RequiredError}
491
494
  */
492
- getLocalTrailers(itemId, userId, options) {
493
- return __awaiter(this, void 0, void 0, function* () {
494
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getLocalTrailers(itemId, userId, options);
495
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
496
- });
495
+ async getLocalTrailers(itemId, userId, options) {
496
+ var _a, _b, _c;
497
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLocalTrailers(itemId, userId, options);
498
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
499
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getLocalTrailers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
500
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
497
501
  },
498
502
  /**
499
503
  *
@@ -502,11 +506,12 @@ const UserLibraryApiFp = function (configuration) {
502
506
  * @param {*} [options] Override http request option.
503
507
  * @throws {RequiredError}
504
508
  */
505
- getRootFolder(userId, options) {
506
- return __awaiter(this, void 0, void 0, function* () {
507
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRootFolder(userId, options);
508
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
509
- });
509
+ async getRootFolder(userId, options) {
510
+ var _a, _b, _c;
511
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRootFolder(userId, options);
512
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
513
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getRootFolder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
514
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
510
515
  },
511
516
  /**
512
517
  *
@@ -516,11 +521,12 @@ const UserLibraryApiFp = function (configuration) {
516
521
  * @param {*} [options] Override http request option.
517
522
  * @throws {RequiredError}
518
523
  */
519
- getSpecialFeatures(itemId, userId, options) {
520
- return __awaiter(this, void 0, void 0, function* () {
521
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSpecialFeatures(itemId, userId, options);
522
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
523
- });
524
+ async getSpecialFeatures(itemId, userId, options) {
525
+ var _a, _b, _c;
526
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSpecialFeatures(itemId, userId, options);
527
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
528
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getSpecialFeatures']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
529
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
524
530
  },
525
531
  /**
526
532
  *
@@ -530,11 +536,12 @@ const UserLibraryApiFp = function (configuration) {
530
536
  * @param {*} [options] Override http request option.
531
537
  * @throws {RequiredError}
532
538
  */
533
- markFavoriteItem(itemId, userId, options) {
534
- return __awaiter(this, void 0, void 0, function* () {
535
- const localVarAxiosArgs = yield localVarAxiosParamCreator.markFavoriteItem(itemId, userId, options);
536
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
537
- });
539
+ async markFavoriteItem(itemId, userId, options) {
540
+ var _a, _b, _c;
541
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markFavoriteItem(itemId, userId, options);
542
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
543
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.markFavoriteItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
544
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
538
545
  },
539
546
  /**
540
547
  *
@@ -544,11 +551,12 @@ const UserLibraryApiFp = function (configuration) {
544
551
  * @param {*} [options] Override http request option.
545
552
  * @throws {RequiredError}
546
553
  */
547
- unmarkFavoriteItem(itemId, userId, options) {
548
- return __awaiter(this, void 0, void 0, function* () {
549
- const localVarAxiosArgs = yield localVarAxiosParamCreator.unmarkFavoriteItem(itemId, userId, options);
550
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
551
- });
554
+ async unmarkFavoriteItem(itemId, userId, options) {
555
+ var _a, _b, _c;
556
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unmarkFavoriteItem(itemId, userId, options);
557
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
558
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.unmarkFavoriteItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
559
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
552
560
  },
553
561
  /**
554
562
  *
@@ -559,11 +567,12 @@ const UserLibraryApiFp = function (configuration) {
559
567
  * @param {*} [options] Override http request option.
560
568
  * @throws {RequiredError}
561
569
  */
562
- updateUserItemRating(itemId, userId, likes, options) {
563
- return __awaiter(this, void 0, void 0, function* () {
564
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserItemRating(itemId, userId, likes, options);
565
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
566
- });
570
+ async updateUserItemRating(itemId, userId, likes, options) {
571
+ var _a, _b, _c;
572
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserItemRating(itemId, userId, likes, options);
573
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
574
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.updateUserItemRating']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
575
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
567
576
  },
568
577
  };
569
578
  };
@@ -577,121 +586,102 @@ const UserLibraryApiFactory = function (configuration, basePath, axios) {
577
586
  /**
578
587
  *
579
588
  * @summary Deletes a user\'s saved personal rating for an item.
580
- * @param {string} itemId Item id.
581
- * @param {string} [userId] User id.
589
+ * @param {UserLibraryApiDeleteUserItemRatingRequest} requestParameters Request parameters.
582
590
  * @param {*} [options] Override http request option.
583
591
  * @throws {RequiredError}
584
592
  */
585
- deleteUserItemRating(itemId, userId, options) {
586
- return localVarFp.deleteUserItemRating(itemId, userId, options).then((request) => request(axios, basePath));
593
+ deleteUserItemRating(requestParameters, options) {
594
+ return localVarFp.deleteUserItemRating(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
587
595
  },
588
596
  /**
589
597
  *
590
598
  * @summary Gets intros to play before the main media item plays.
591
- * @param {string} itemId Item id.
592
- * @param {string} [userId] User id.
599
+ * @param {UserLibraryApiGetIntrosRequest} requestParameters Request parameters.
593
600
  * @param {*} [options] Override http request option.
594
601
  * @throws {RequiredError}
595
602
  */
596
- getIntros(itemId, userId, options) {
597
- return localVarFp.getIntros(itemId, userId, options).then((request) => request(axios, basePath));
603
+ getIntros(requestParameters, options) {
604
+ return localVarFp.getIntros(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
598
605
  },
599
606
  /**
600
607
  *
601
608
  * @summary Gets an item from a user\'s library.
602
- * @param {string} itemId Item id.
603
- * @param {string} [userId] User id.
609
+ * @param {UserLibraryApiGetItemRequest} requestParameters Request parameters.
604
610
  * @param {*} [options] Override http request option.
605
611
  * @throws {RequiredError}
606
612
  */
607
- getItem(itemId, userId, options) {
608
- return localVarFp.getItem(itemId, userId, options).then((request) => request(axios, basePath));
613
+ getItem(requestParameters, options) {
614
+ return localVarFp.getItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
609
615
  },
610
616
  /**
611
617
  *
612
618
  * @summary Gets latest media.
613
- * @param {string} [userId] User id.
614
- * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
615
- * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
616
- * @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
617
- * @param {boolean} [isPlayed] Filter by items that are played, or not.
618
- * @param {boolean} [enableImages] Optional. include image information in output.
619
- * @param {number} [imageTypeLimit] Optional. the max number of images to return, per image type.
620
- * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
621
- * @param {boolean} [enableUserData] Optional. include user data.
622
- * @param {number} [limit] Return item limit.
623
- * @param {boolean} [groupItems] Whether or not to group items into a parent container.
619
+ * @param {UserLibraryApiGetLatestMediaRequest} requestParameters Request parameters.
624
620
  * @param {*} [options] Override http request option.
625
621
  * @throws {RequiredError}
626
622
  */
627
- getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options) {
628
- return localVarFp.getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options).then((request) => request(axios, basePath));
623
+ getLatestMedia(requestParameters = {}, options) {
624
+ return localVarFp.getLatestMedia(requestParameters.userId, requestParameters.parentId, requestParameters.fields, requestParameters.includeItemTypes, requestParameters.isPlayed, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.enableUserData, requestParameters.limit, requestParameters.groupItems, options).then((request) => request(axios, basePath));
629
625
  },
630
626
  /**
631
627
  *
632
628
  * @summary Gets local trailers for an item.
633
- * @param {string} itemId Item id.
634
- * @param {string} [userId] User id.
629
+ * @param {UserLibraryApiGetLocalTrailersRequest} requestParameters Request parameters.
635
630
  * @param {*} [options] Override http request option.
636
631
  * @throws {RequiredError}
637
632
  */
638
- getLocalTrailers(itemId, userId, options) {
639
- return localVarFp.getLocalTrailers(itemId, userId, options).then((request) => request(axios, basePath));
633
+ getLocalTrailers(requestParameters, options) {
634
+ return localVarFp.getLocalTrailers(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
640
635
  },
641
636
  /**
642
637
  *
643
638
  * @summary Gets the root folder from a user\'s library.
644
- * @param {string} [userId] User id.
639
+ * @param {UserLibraryApiGetRootFolderRequest} requestParameters Request parameters.
645
640
  * @param {*} [options] Override http request option.
646
641
  * @throws {RequiredError}
647
642
  */
648
- getRootFolder(userId, options) {
649
- return localVarFp.getRootFolder(userId, options).then((request) => request(axios, basePath));
643
+ getRootFolder(requestParameters = {}, options) {
644
+ return localVarFp.getRootFolder(requestParameters.userId, options).then((request) => request(axios, basePath));
650
645
  },
651
646
  /**
652
647
  *
653
648
  * @summary Gets special features for an item.
654
- * @param {string} itemId Item id.
655
- * @param {string} [userId] User id.
649
+ * @param {UserLibraryApiGetSpecialFeaturesRequest} requestParameters Request parameters.
656
650
  * @param {*} [options] Override http request option.
657
651
  * @throws {RequiredError}
658
652
  */
659
- getSpecialFeatures(itemId, userId, options) {
660
- return localVarFp.getSpecialFeatures(itemId, userId, options).then((request) => request(axios, basePath));
653
+ getSpecialFeatures(requestParameters, options) {
654
+ return localVarFp.getSpecialFeatures(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
661
655
  },
662
656
  /**
663
657
  *
664
658
  * @summary Marks an item as a favorite.
665
- * @param {string} itemId Item id.
666
- * @param {string} [userId] User id.
659
+ * @param {UserLibraryApiMarkFavoriteItemRequest} requestParameters Request parameters.
667
660
  * @param {*} [options] Override http request option.
668
661
  * @throws {RequiredError}
669
662
  */
670
- markFavoriteItem(itemId, userId, options) {
671
- return localVarFp.markFavoriteItem(itemId, userId, options).then((request) => request(axios, basePath));
663
+ markFavoriteItem(requestParameters, options) {
664
+ return localVarFp.markFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
672
665
  },
673
666
  /**
674
667
  *
675
668
  * @summary Unmarks item as a favorite.
676
- * @param {string} itemId Item id.
677
- * @param {string} [userId] User id.
669
+ * @param {UserLibraryApiUnmarkFavoriteItemRequest} requestParameters Request parameters.
678
670
  * @param {*} [options] Override http request option.
679
671
  * @throws {RequiredError}
680
672
  */
681
- unmarkFavoriteItem(itemId, userId, options) {
682
- return localVarFp.unmarkFavoriteItem(itemId, userId, options).then((request) => request(axios, basePath));
673
+ unmarkFavoriteItem(requestParameters, options) {
674
+ return localVarFp.unmarkFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
683
675
  },
684
676
  /**
685
677
  *
686
678
  * @summary Updates a user\'s rating for an item.
687
- * @param {string} itemId Item id.
688
- * @param {string} [userId] User id.
689
- * @param {boolean} [likes] Whether this M:Jellyfin.Api.Controllers.UserLibraryController.UpdateUserItemRating(System.Nullable{System.Guid},System.Guid,System.Nullable{System.Boolean}) is likes.
679
+ * @param {UserLibraryApiUpdateUserItemRatingRequest} requestParameters Request parameters.
690
680
  * @param {*} [options] Override http request option.
691
681
  * @throws {RequiredError}
692
682
  */
693
- updateUserItemRating(itemId, userId, likes, options) {
694
- return localVarFp.updateUserItemRating(itemId, userId, likes, options).then((request) => request(axios, basePath));
683
+ updateUserItemRating(requestParameters, options) {
684
+ return localVarFp.updateUserItemRating(requestParameters.itemId, requestParameters.userId, requestParameters.likes, options).then((request) => request(axios, basePath));
695
685
  },
696
686
  };
697
687
  };