@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, serializeDataIfNeeded, 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 */
@@ -30,7 +29,7 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
30
29
  * @param {*} [options] Override http request option.
31
30
  * @throws {RequiredError}
32
31
  */
33
- addItemToPlaylist: (playlistId_1, ids_1, userId_1, ...args_1) => __awaiter(this, [playlistId_1, ids_1, userId_1, ...args_1], void 0, function* (playlistId, ids, userId, options = {}) {
32
+ addItemToPlaylist: async (playlistId, ids, userId, options = {}) => {
34
33
  // verify required parameter 'playlistId' is not null or undefined
35
34
  assertParamExists('addItemToPlaylist', 'playlistId', playlistId);
36
35
  const localVarPath = `/Playlists/{playlistId}/Items`
@@ -41,11 +40,11 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
41
40
  if (configuration) {
42
41
  baseOptions = configuration.baseOptions;
43
42
  }
44
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
43
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
45
44
  const localVarHeaderParameter = {};
46
45
  const localVarQueryParameter = {};
47
46
  // authentication CustomAuthentication required
48
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
47
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
49
48
  if (ids) {
50
49
  localVarQueryParameter['ids'] = ids;
51
50
  }
@@ -54,12 +53,12 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
54
53
  }
55
54
  setSearchParams(localVarUrlObj, localVarQueryParameter);
56
55
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
56
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
58
57
  return {
59
58
  url: toPathString(localVarUrlObj),
60
59
  options: localVarRequestOptions,
61
60
  };
62
- }),
61
+ },
63
62
  /**
64
63
  * For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.
65
64
  * @summary Creates a new playlist.
@@ -71,7 +70,7 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
71
70
  * @param {*} [options] Override http request option.
72
71
  * @throws {RequiredError}
73
72
  */
74
- createPlaylist: (name_1, ids_2, userId_2, mediaType_1, createPlaylistDto_1, ...args_2) => __awaiter(this, [name_1, ids_2, userId_2, mediaType_1, createPlaylistDto_1, ...args_2], void 0, function* (name, ids, userId, mediaType, createPlaylistDto, options = {}) {
73
+ createPlaylist: async (name, ids, userId, mediaType, createPlaylistDto, options = {}) => {
75
74
  const localVarPath = `/Playlists`;
76
75
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
76
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -79,11 +78,11 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
79
78
  if (configuration) {
80
79
  baseOptions = configuration.baseOptions;
81
80
  }
82
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
81
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
83
82
  const localVarHeaderParameter = {};
84
83
  const localVarQueryParameter = {};
85
84
  // authentication CustomAuthentication required
86
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
85
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
87
86
  if (name !== undefined) {
88
87
  localVarQueryParameter['name'] = name;
89
88
  }
@@ -99,13 +98,44 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
99
98
  localVarHeaderParameter['Content-Type'] = 'application/json';
100
99
  setSearchParams(localVarUrlObj, localVarQueryParameter);
101
100
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
102
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
101
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
103
102
  localVarRequestOptions.data = serializeDataIfNeeded(createPlaylistDto, localVarRequestOptions, configuration);
104
103
  return {
105
104
  url: toPathString(localVarUrlObj),
106
105
  options: localVarRequestOptions,
107
106
  };
108
- }),
107
+ },
108
+ /**
109
+ *
110
+ * @summary Get a playlist.
111
+ * @param {string} playlistId The playlist id.
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ getPlaylist: async (playlistId, options = {}) => {
116
+ // verify required parameter 'playlistId' is not null or undefined
117
+ assertParamExists('getPlaylist', 'playlistId', playlistId);
118
+ const localVarPath = `/Playlists/{playlistId}`
119
+ .replace(`{${"playlistId"}}`, encodeURIComponent(String(playlistId)));
120
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
121
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
122
+ let baseOptions;
123
+ if (configuration) {
124
+ baseOptions = configuration.baseOptions;
125
+ }
126
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
127
+ const localVarHeaderParameter = {};
128
+ const localVarQueryParameter = {};
129
+ // authentication CustomAuthentication required
130
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
131
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
134
+ return {
135
+ url: toPathString(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ };
138
+ },
109
139
  /**
110
140
  *
111
141
  * @summary Gets the original items of a playlist.
@@ -121,7 +151,7 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
121
151
  * @param {*} [options] Override http request option.
122
152
  * @throws {RequiredError}
123
153
  */
124
- getPlaylistItems: (playlistId_2, userId_3, startIndex_1, limit_1, fields_1, enableImages_1, enableUserData_1, imageTypeLimit_1, enableImageTypes_1, ...args_3) => __awaiter(this, [playlistId_2, userId_3, startIndex_1, limit_1, fields_1, enableImages_1, enableUserData_1, imageTypeLimit_1, enableImageTypes_1, ...args_3], void 0, function* (playlistId, userId, startIndex, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options = {}) {
154
+ getPlaylistItems: async (playlistId, userId, startIndex, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options = {}) => {
125
155
  // verify required parameter 'playlistId' is not null or undefined
126
156
  assertParamExists('getPlaylistItems', 'playlistId', playlistId);
127
157
  const localVarPath = `/Playlists/{playlistId}/Items`
@@ -132,11 +162,11 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
132
162
  if (configuration) {
133
163
  baseOptions = configuration.baseOptions;
134
164
  }
135
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
165
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
136
166
  const localVarHeaderParameter = {};
137
167
  const localVarQueryParameter = {};
138
168
  // authentication CustomAuthentication required
139
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
169
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
140
170
  if (userId !== undefined) {
141
171
  localVarQueryParameter['userId'] = userId;
142
172
  }
@@ -163,12 +193,12 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
163
193
  }
164
194
  setSearchParams(localVarUrlObj, localVarQueryParameter);
165
195
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
166
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
196
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
167
197
  return {
168
198
  url: toPathString(localVarUrlObj),
169
199
  options: localVarRequestOptions,
170
200
  };
171
- }),
201
+ },
172
202
  /**
173
203
  *
174
204
  * @summary Get a playlist user.
@@ -177,7 +207,7 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
177
207
  * @param {*} [options] Override http request option.
178
208
  * @throws {RequiredError}
179
209
  */
180
- getPlaylistUser: (playlistId_3, userId_4, ...args_4) => __awaiter(this, [playlistId_3, userId_4, ...args_4], void 0, function* (playlistId, userId, options = {}) {
210
+ getPlaylistUser: async (playlistId, userId, options = {}) => {
181
211
  // verify required parameter 'playlistId' is not null or undefined
182
212
  assertParamExists('getPlaylistUser', 'playlistId', playlistId);
183
213
  // verify required parameter 'userId' is not null or undefined
@@ -191,19 +221,19 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
191
221
  if (configuration) {
192
222
  baseOptions = configuration.baseOptions;
193
223
  }
194
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
224
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
195
225
  const localVarHeaderParameter = {};
196
226
  const localVarQueryParameter = {};
197
227
  // authentication CustomAuthentication required
198
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
228
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
199
229
  setSearchParams(localVarUrlObj, localVarQueryParameter);
200
230
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
201
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
231
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
202
232
  return {
203
233
  url: toPathString(localVarUrlObj),
204
234
  options: localVarRequestOptions,
205
235
  };
206
- }),
236
+ },
207
237
  /**
208
238
  *
209
239
  * @summary Get a playlist\'s users.
@@ -211,7 +241,7 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
211
241
  * @param {*} [options] Override http request option.
212
242
  * @throws {RequiredError}
213
243
  */
214
- getPlaylistUsers: (playlistId_4, ...args_5) => __awaiter(this, [playlistId_4, ...args_5], void 0, function* (playlistId, options = {}) {
244
+ getPlaylistUsers: async (playlistId, options = {}) => {
215
245
  // verify required parameter 'playlistId' is not null or undefined
216
246
  assertParamExists('getPlaylistUsers', 'playlistId', playlistId);
217
247
  const localVarPath = `/Playlists/{playlistId}/Users`
@@ -222,19 +252,19 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
222
252
  if (configuration) {
223
253
  baseOptions = configuration.baseOptions;
224
254
  }
225
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
255
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
226
256
  const localVarHeaderParameter = {};
227
257
  const localVarQueryParameter = {};
228
258
  // authentication CustomAuthentication required
229
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
259
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
230
260
  setSearchParams(localVarUrlObj, localVarQueryParameter);
231
261
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
232
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
262
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
233
263
  return {
234
264
  url: toPathString(localVarUrlObj),
235
265
  options: localVarRequestOptions,
236
266
  };
237
- }),
267
+ },
238
268
  /**
239
269
  *
240
270
  * @summary Moves a playlist item.
@@ -244,7 +274,7 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
244
274
  * @param {*} [options] Override http request option.
245
275
  * @throws {RequiredError}
246
276
  */
247
- moveItem: (playlistId_5, itemId_1, newIndex_1, ...args_6) => __awaiter(this, [playlistId_5, itemId_1, newIndex_1, ...args_6], void 0, function* (playlistId, itemId, newIndex, options = {}) {
277
+ moveItem: async (playlistId, itemId, newIndex, options = {}) => {
248
278
  // verify required parameter 'playlistId' is not null or undefined
249
279
  assertParamExists('moveItem', 'playlistId', playlistId);
250
280
  // verify required parameter 'itemId' is not null or undefined
@@ -261,19 +291,19 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
261
291
  if (configuration) {
262
292
  baseOptions = configuration.baseOptions;
263
293
  }
264
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
294
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
265
295
  const localVarHeaderParameter = {};
266
296
  const localVarQueryParameter = {};
267
297
  // authentication CustomAuthentication required
268
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
298
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
269
299
  setSearchParams(localVarUrlObj, localVarQueryParameter);
270
300
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
271
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
301
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
272
302
  return {
273
303
  url: toPathString(localVarUrlObj),
274
304
  options: localVarRequestOptions,
275
305
  };
276
- }),
306
+ },
277
307
  /**
278
308
  *
279
309
  * @summary Removes items from a playlist.
@@ -282,7 +312,7 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
282
312
  * @param {*} [options] Override http request option.
283
313
  * @throws {RequiredError}
284
314
  */
285
- removeItemFromPlaylist: (playlistId_6, entryIds_1, ...args_7) => __awaiter(this, [playlistId_6, entryIds_1, ...args_7], void 0, function* (playlistId, entryIds, options = {}) {
315
+ removeItemFromPlaylist: async (playlistId, entryIds, options = {}) => {
286
316
  // verify required parameter 'playlistId' is not null or undefined
287
317
  assertParamExists('removeItemFromPlaylist', 'playlistId', playlistId);
288
318
  const localVarPath = `/Playlists/{playlistId}/Items`
@@ -293,22 +323,22 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
293
323
  if (configuration) {
294
324
  baseOptions = configuration.baseOptions;
295
325
  }
296
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
326
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
297
327
  const localVarHeaderParameter = {};
298
328
  const localVarQueryParameter = {};
299
329
  // authentication CustomAuthentication required
300
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
330
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
301
331
  if (entryIds) {
302
332
  localVarQueryParameter['entryIds'] = entryIds;
303
333
  }
304
334
  setSearchParams(localVarUrlObj, localVarQueryParameter);
305
335
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
306
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
336
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
307
337
  return {
308
338
  url: toPathString(localVarUrlObj),
309
339
  options: localVarRequestOptions,
310
340
  };
311
- }),
341
+ },
312
342
  /**
313
343
  *
314
344
  * @summary Remove a user from a playlist\'s users.
@@ -317,7 +347,7 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
317
347
  * @param {*} [options] Override http request option.
318
348
  * @throws {RequiredError}
319
349
  */
320
- removeUserFromPlaylist: (playlistId_7, userId_5, ...args_8) => __awaiter(this, [playlistId_7, userId_5, ...args_8], void 0, function* (playlistId, userId, options = {}) {
350
+ removeUserFromPlaylist: async (playlistId, userId, options = {}) => {
321
351
  // verify required parameter 'playlistId' is not null or undefined
322
352
  assertParamExists('removeUserFromPlaylist', 'playlistId', playlistId);
323
353
  // verify required parameter 'userId' is not null or undefined
@@ -331,19 +361,19 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
331
361
  if (configuration) {
332
362
  baseOptions = configuration.baseOptions;
333
363
  }
334
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
364
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
335
365
  const localVarHeaderParameter = {};
336
366
  const localVarQueryParameter = {};
337
367
  // authentication CustomAuthentication required
338
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
368
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
339
369
  setSearchParams(localVarUrlObj, localVarQueryParameter);
340
370
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
341
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
371
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
342
372
  return {
343
373
  url: toPathString(localVarUrlObj),
344
374
  options: localVarRequestOptions,
345
375
  };
346
- }),
376
+ },
347
377
  /**
348
378
  *
349
379
  * @summary Updates a playlist.
@@ -352,7 +382,7 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
352
382
  * @param {*} [options] Override http request option.
353
383
  * @throws {RequiredError}
354
384
  */
355
- updatePlaylist: (playlistId_8, updatePlaylistDto_1, ...args_9) => __awaiter(this, [playlistId_8, updatePlaylistDto_1, ...args_9], void 0, function* (playlistId, updatePlaylistDto, options = {}) {
385
+ updatePlaylist: async (playlistId, updatePlaylistDto, options = {}) => {
356
386
  // verify required parameter 'playlistId' is not null or undefined
357
387
  assertParamExists('updatePlaylist', 'playlistId', playlistId);
358
388
  // verify required parameter 'updatePlaylistDto' is not null or undefined
@@ -365,21 +395,21 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
365
395
  if (configuration) {
366
396
  baseOptions = configuration.baseOptions;
367
397
  }
368
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
398
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
369
399
  const localVarHeaderParameter = {};
370
400
  const localVarQueryParameter = {};
371
401
  // authentication CustomAuthentication required
372
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
402
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
373
403
  localVarHeaderParameter['Content-Type'] = 'application/json';
374
404
  setSearchParams(localVarUrlObj, localVarQueryParameter);
375
405
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
376
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
406
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
377
407
  localVarRequestOptions.data = serializeDataIfNeeded(updatePlaylistDto, localVarRequestOptions, configuration);
378
408
  return {
379
409
  url: toPathString(localVarUrlObj),
380
410
  options: localVarRequestOptions,
381
411
  };
382
- }),
412
+ },
383
413
  /**
384
414
  *
385
415
  * @summary Modify a user of a playlist\'s users.
@@ -389,7 +419,7 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
389
419
  * @param {*} [options] Override http request option.
390
420
  * @throws {RequiredError}
391
421
  */
392
- updatePlaylistUser: (playlistId_9, userId_6, updatePlaylistUserDto_1, ...args_10) => __awaiter(this, [playlistId_9, userId_6, updatePlaylistUserDto_1, ...args_10], void 0, function* (playlistId, userId, updatePlaylistUserDto, options = {}) {
422
+ updatePlaylistUser: async (playlistId, userId, updatePlaylistUserDto, options = {}) => {
393
423
  // verify required parameter 'playlistId' is not null or undefined
394
424
  assertParamExists('updatePlaylistUser', 'playlistId', playlistId);
395
425
  // verify required parameter 'userId' is not null or undefined
@@ -405,21 +435,21 @@ const PlaylistsApiAxiosParamCreator = function (configuration) {
405
435
  if (configuration) {
406
436
  baseOptions = configuration.baseOptions;
407
437
  }
408
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
438
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
409
439
  const localVarHeaderParameter = {};
410
440
  const localVarQueryParameter = {};
411
441
  // authentication CustomAuthentication required
412
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
442
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
413
443
  localVarHeaderParameter['Content-Type'] = 'application/json';
414
444
  setSearchParams(localVarUrlObj, localVarQueryParameter);
415
445
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
416
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
446
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
417
447
  localVarRequestOptions.data = serializeDataIfNeeded(updatePlaylistUserDto, localVarRequestOptions, configuration);
418
448
  return {
419
449
  url: toPathString(localVarUrlObj),
420
450
  options: localVarRequestOptions,
421
451
  };
422
- }),
452
+ },
423
453
  };
424
454
  };
425
455
  /**
@@ -438,11 +468,12 @@ const PlaylistsApiFp = function (configuration) {
438
468
  * @param {*} [options] Override http request option.
439
469
  * @throws {RequiredError}
440
470
  */
441
- addItemToPlaylist(playlistId, ids, userId, options) {
442
- return __awaiter(this, void 0, void 0, function* () {
443
- const localVarAxiosArgs = yield localVarAxiosParamCreator.addItemToPlaylist(playlistId, ids, userId, options);
444
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
445
- });
471
+ async addItemToPlaylist(playlistId, ids, userId, options) {
472
+ var _a, _b, _c;
473
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addItemToPlaylist(playlistId, ids, userId, options);
474
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
475
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.addItemToPlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
476
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
446
477
  },
447
478
  /**
448
479
  * For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.
@@ -455,11 +486,26 @@ const PlaylistsApiFp = function (configuration) {
455
486
  * @param {*} [options] Override http request option.
456
487
  * @throws {RequiredError}
457
488
  */
458
- createPlaylist(name, ids, userId, mediaType, createPlaylistDto, options) {
459
- return __awaiter(this, void 0, void 0, function* () {
460
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPlaylist(name, ids, userId, mediaType, createPlaylistDto, options);
461
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
462
- });
489
+ async createPlaylist(name, ids, userId, mediaType, createPlaylistDto, options) {
490
+ var _a, _b, _c;
491
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPlaylist(name, ids, userId, mediaType, createPlaylistDto, options);
492
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
493
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.createPlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
494
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
495
+ },
496
+ /**
497
+ *
498
+ * @summary Get a playlist.
499
+ * @param {string} playlistId The playlist id.
500
+ * @param {*} [options] Override http request option.
501
+ * @throws {RequiredError}
502
+ */
503
+ async getPlaylist(playlistId, options) {
504
+ var _a, _b, _c;
505
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylist(playlistId, options);
506
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
507
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.getPlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
508
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
463
509
  },
464
510
  /**
465
511
  *
@@ -476,11 +522,12 @@ const PlaylistsApiFp = function (configuration) {
476
522
  * @param {*} [options] Override http request option.
477
523
  * @throws {RequiredError}
478
524
  */
479
- getPlaylistItems(playlistId, userId, startIndex, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) {
480
- return __awaiter(this, void 0, void 0, function* () {
481
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlaylistItems(playlistId, userId, startIndex, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options);
482
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
483
- });
525
+ async getPlaylistItems(playlistId, userId, startIndex, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) {
526
+ var _a, _b, _c;
527
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylistItems(playlistId, userId, startIndex, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options);
528
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
529
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.getPlaylistItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
530
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
484
531
  },
485
532
  /**
486
533
  *
@@ -490,11 +537,12 @@ const PlaylistsApiFp = function (configuration) {
490
537
  * @param {*} [options] Override http request option.
491
538
  * @throws {RequiredError}
492
539
  */
493
- getPlaylistUser(playlistId, userId, options) {
494
- return __awaiter(this, void 0, void 0, function* () {
495
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlaylistUser(playlistId, userId, options);
496
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
497
- });
540
+ async getPlaylistUser(playlistId, userId, options) {
541
+ var _a, _b, _c;
542
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylistUser(playlistId, userId, options);
543
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
544
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.getPlaylistUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
545
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
498
546
  },
499
547
  /**
500
548
  *
@@ -503,11 +551,12 @@ const PlaylistsApiFp = function (configuration) {
503
551
  * @param {*} [options] Override http request option.
504
552
  * @throws {RequiredError}
505
553
  */
506
- getPlaylistUsers(playlistId, options) {
507
- return __awaiter(this, void 0, void 0, function* () {
508
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlaylistUsers(playlistId, options);
509
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
510
- });
554
+ async getPlaylistUsers(playlistId, options) {
555
+ var _a, _b, _c;
556
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylistUsers(playlistId, 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['PlaylistsApi.getPlaylistUsers']) === 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);
511
560
  },
512
561
  /**
513
562
  *
@@ -518,11 +567,12 @@ const PlaylistsApiFp = function (configuration) {
518
567
  * @param {*} [options] Override http request option.
519
568
  * @throws {RequiredError}
520
569
  */
521
- moveItem(playlistId, itemId, newIndex, options) {
522
- return __awaiter(this, void 0, void 0, function* () {
523
- const localVarAxiosArgs = yield localVarAxiosParamCreator.moveItem(playlistId, itemId, newIndex, options);
524
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
525
- });
570
+ async moveItem(playlistId, itemId, newIndex, options) {
571
+ var _a, _b, _c;
572
+ const localVarAxiosArgs = await localVarAxiosParamCreator.moveItem(playlistId, itemId, newIndex, 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['PlaylistsApi.moveItem']) === 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);
526
576
  },
527
577
  /**
528
578
  *
@@ -532,11 +582,12 @@ const PlaylistsApiFp = function (configuration) {
532
582
  * @param {*} [options] Override http request option.
533
583
  * @throws {RequiredError}
534
584
  */
535
- removeItemFromPlaylist(playlistId, entryIds, options) {
536
- return __awaiter(this, void 0, void 0, function* () {
537
- const localVarAxiosArgs = yield localVarAxiosParamCreator.removeItemFromPlaylist(playlistId, entryIds, options);
538
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
539
- });
585
+ async removeItemFromPlaylist(playlistId, entryIds, options) {
586
+ var _a, _b, _c;
587
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeItemFromPlaylist(playlistId, entryIds, options);
588
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
589
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.removeItemFromPlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
590
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
540
591
  },
541
592
  /**
542
593
  *
@@ -546,11 +597,12 @@ const PlaylistsApiFp = function (configuration) {
546
597
  * @param {*} [options] Override http request option.
547
598
  * @throws {RequiredError}
548
599
  */
549
- removeUserFromPlaylist(playlistId, userId, options) {
550
- return __awaiter(this, void 0, void 0, function* () {
551
- const localVarAxiosArgs = yield localVarAxiosParamCreator.removeUserFromPlaylist(playlistId, userId, options);
552
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
553
- });
600
+ async removeUserFromPlaylist(playlistId, userId, options) {
601
+ var _a, _b, _c;
602
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromPlaylist(playlistId, userId, options);
603
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
604
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.removeUserFromPlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
605
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
554
606
  },
555
607
  /**
556
608
  *
@@ -560,11 +612,12 @@ const PlaylistsApiFp = function (configuration) {
560
612
  * @param {*} [options] Override http request option.
561
613
  * @throws {RequiredError}
562
614
  */
563
- updatePlaylist(playlistId, updatePlaylistDto, options) {
564
- return __awaiter(this, void 0, void 0, function* () {
565
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlaylist(playlistId, updatePlaylistDto, options);
566
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
567
- });
615
+ async updatePlaylist(playlistId, updatePlaylistDto, options) {
616
+ var _a, _b, _c;
617
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlaylist(playlistId, updatePlaylistDto, options);
618
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
619
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.updatePlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
620
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
568
621
  },
569
622
  /**
570
623
  *
@@ -575,11 +628,12 @@ const PlaylistsApiFp = function (configuration) {
575
628
  * @param {*} [options] Override http request option.
576
629
  * @throws {RequiredError}
577
630
  */
578
- updatePlaylistUser(playlistId, userId, updatePlaylistUserDto, options) {
579
- return __awaiter(this, void 0, void 0, function* () {
580
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlaylistUser(playlistId, userId, updatePlaylistUserDto, options);
581
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
582
- });
631
+ async updatePlaylistUser(playlistId, userId, updatePlaylistUserDto, options) {
632
+ var _a, _b, _c;
633
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlaylistUser(playlistId, userId, updatePlaylistUserDto, options);
634
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
635
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaylistsApi.updatePlaylistUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
636
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
583
637
  },
584
638
  };
585
639
  };
@@ -593,124 +647,112 @@ const PlaylistsApiFactory = function (configuration, basePath, axios) {
593
647
  /**
594
648
  *
595
649
  * @summary Adds items to a playlist.
596
- * @param {string} playlistId The playlist id.
597
- * @param {Array<string>} [ids] Item id, comma delimited.
598
- * @param {string} [userId] The userId.
650
+ * @param {PlaylistsApiAddItemToPlaylistRequest} requestParameters Request parameters.
599
651
  * @param {*} [options] Override http request option.
600
652
  * @throws {RequiredError}
601
653
  */
602
- addItemToPlaylist(playlistId, ids, userId, options) {
603
- return localVarFp.addItemToPlaylist(playlistId, ids, userId, options).then((request) => request(axios, basePath));
654
+ addItemToPlaylist(requestParameters, options) {
655
+ return localVarFp.addItemToPlaylist(requestParameters.playlistId, requestParameters.ids, requestParameters.userId, options).then((request) => request(axios, basePath));
604
656
  },
605
657
  /**
606
658
  * For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.
607
659
  * @summary Creates a new playlist.
608
- * @param {string} [name] The playlist name.
609
- * @param {Array<string>} [ids] The item ids.
610
- * @param {string} [userId] The user id.
611
- * @param {MediaType} [mediaType] The media type.
612
- * @param {CreatePlaylistDto} [createPlaylistDto] The create playlist payload.
660
+ * @param {PlaylistsApiCreatePlaylistRequest} requestParameters Request parameters.
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ */
664
+ createPlaylist(requestParameters = {}, options) {
665
+ return localVarFp.createPlaylist(requestParameters.name, requestParameters.ids, requestParameters.userId, requestParameters.mediaType, requestParameters.createPlaylistDto, options).then((request) => request(axios, basePath));
666
+ },
667
+ /**
668
+ *
669
+ * @summary Get a playlist.
670
+ * @param {PlaylistsApiGetPlaylistRequest} requestParameters Request parameters.
613
671
  * @param {*} [options] Override http request option.
614
672
  * @throws {RequiredError}
615
673
  */
616
- createPlaylist(name, ids, userId, mediaType, createPlaylistDto, options) {
617
- return localVarFp.createPlaylist(name, ids, userId, mediaType, createPlaylistDto, options).then((request) => request(axios, basePath));
674
+ getPlaylist(requestParameters, options) {
675
+ return localVarFp.getPlaylist(requestParameters.playlistId, options).then((request) => request(axios, basePath));
618
676
  },
619
677
  /**
620
678
  *
621
679
  * @summary Gets the original items of a playlist.
622
- * @param {string} playlistId The playlist id.
623
- * @param {string} [userId] User id.
624
- * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
625
- * @param {number} [limit] Optional. The maximum number of records to return.
626
- * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
627
- * @param {boolean} [enableImages] Optional. Include image information in output.
628
- * @param {boolean} [enableUserData] Optional. Include user data.
629
- * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
630
- * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
680
+ * @param {PlaylistsApiGetPlaylistItemsRequest} requestParameters Request parameters.
631
681
  * @param {*} [options] Override http request option.
632
682
  * @throws {RequiredError}
633
683
  */
634
- getPlaylistItems(playlistId, userId, startIndex, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) {
635
- return localVarFp.getPlaylistItems(playlistId, userId, startIndex, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options).then((request) => request(axios, basePath));
684
+ getPlaylistItems(requestParameters, options) {
685
+ return localVarFp.getPlaylistItems(requestParameters.playlistId, requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.fields, requestParameters.enableImages, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, options).then((request) => request(axios, basePath));
636
686
  },
637
687
  /**
638
688
  *
639
689
  * @summary Get a playlist user.
640
- * @param {string} playlistId The playlist id.
641
- * @param {string} userId The user id.
690
+ * @param {PlaylistsApiGetPlaylistUserRequest} requestParameters Request parameters.
642
691
  * @param {*} [options] Override http request option.
643
692
  * @throws {RequiredError}
644
693
  */
645
- getPlaylistUser(playlistId, userId, options) {
646
- return localVarFp.getPlaylistUser(playlistId, userId, options).then((request) => request(axios, basePath));
694
+ getPlaylistUser(requestParameters, options) {
695
+ return localVarFp.getPlaylistUser(requestParameters.playlistId, requestParameters.userId, options).then((request) => request(axios, basePath));
647
696
  },
648
697
  /**
649
698
  *
650
699
  * @summary Get a playlist\'s users.
651
- * @param {string} playlistId The playlist id.
700
+ * @param {PlaylistsApiGetPlaylistUsersRequest} requestParameters Request parameters.
652
701
  * @param {*} [options] Override http request option.
653
702
  * @throws {RequiredError}
654
703
  */
655
- getPlaylistUsers(playlistId, options) {
656
- return localVarFp.getPlaylistUsers(playlistId, options).then((request) => request(axios, basePath));
704
+ getPlaylistUsers(requestParameters, options) {
705
+ return localVarFp.getPlaylistUsers(requestParameters.playlistId, options).then((request) => request(axios, basePath));
657
706
  },
658
707
  /**
659
708
  *
660
709
  * @summary Moves a playlist item.
661
- * @param {string} playlistId The playlist id.
662
- * @param {string} itemId The item id.
663
- * @param {number} newIndex The new index.
710
+ * @param {PlaylistsApiMoveItemRequest} requestParameters Request parameters.
664
711
  * @param {*} [options] Override http request option.
665
712
  * @throws {RequiredError}
666
713
  */
667
- moveItem(playlistId, itemId, newIndex, options) {
668
- return localVarFp.moveItem(playlistId, itemId, newIndex, options).then((request) => request(axios, basePath));
714
+ moveItem(requestParameters, options) {
715
+ return localVarFp.moveItem(requestParameters.playlistId, requestParameters.itemId, requestParameters.newIndex, options).then((request) => request(axios, basePath));
669
716
  },
670
717
  /**
671
718
  *
672
719
  * @summary Removes items from a playlist.
673
- * @param {string} playlistId The playlist id.
674
- * @param {Array<string>} [entryIds] The item ids, comma delimited.
720
+ * @param {PlaylistsApiRemoveItemFromPlaylistRequest} requestParameters Request parameters.
675
721
  * @param {*} [options] Override http request option.
676
722
  * @throws {RequiredError}
677
723
  */
678
- removeItemFromPlaylist(playlistId, entryIds, options) {
679
- return localVarFp.removeItemFromPlaylist(playlistId, entryIds, options).then((request) => request(axios, basePath));
724
+ removeItemFromPlaylist(requestParameters, options) {
725
+ return localVarFp.removeItemFromPlaylist(requestParameters.playlistId, requestParameters.entryIds, options).then((request) => request(axios, basePath));
680
726
  },
681
727
  /**
682
728
  *
683
729
  * @summary Remove a user from a playlist\'s users.
684
- * @param {string} playlistId The playlist id.
685
- * @param {string} userId The user id.
730
+ * @param {PlaylistsApiRemoveUserFromPlaylistRequest} requestParameters Request parameters.
686
731
  * @param {*} [options] Override http request option.
687
732
  * @throws {RequiredError}
688
733
  */
689
- removeUserFromPlaylist(playlistId, userId, options) {
690
- return localVarFp.removeUserFromPlaylist(playlistId, userId, options).then((request) => request(axios, basePath));
734
+ removeUserFromPlaylist(requestParameters, options) {
735
+ return localVarFp.removeUserFromPlaylist(requestParameters.playlistId, requestParameters.userId, options).then((request) => request(axios, basePath));
691
736
  },
692
737
  /**
693
738
  *
694
739
  * @summary Updates a playlist.
695
- * @param {string} playlistId The playlist id.
696
- * @param {UpdatePlaylistDto} updatePlaylistDto The Jellyfin.Api.Models.PlaylistDtos.UpdatePlaylistDto id.
740
+ * @param {PlaylistsApiUpdatePlaylistRequest} requestParameters Request parameters.
697
741
  * @param {*} [options] Override http request option.
698
742
  * @throws {RequiredError}
699
743
  */
700
- updatePlaylist(playlistId, updatePlaylistDto, options) {
701
- return localVarFp.updatePlaylist(playlistId, updatePlaylistDto, options).then((request) => request(axios, basePath));
744
+ updatePlaylist(requestParameters, options) {
745
+ return localVarFp.updatePlaylist(requestParameters.playlistId, requestParameters.updatePlaylistDto, options).then((request) => request(axios, basePath));
702
746
  },
703
747
  /**
704
748
  *
705
749
  * @summary Modify a user of a playlist\'s users.
706
- * @param {string} playlistId The playlist id.
707
- * @param {string} userId The user id.
708
- * @param {UpdatePlaylistUserDto} updatePlaylistUserDto The Jellyfin.Api.Models.PlaylistDtos.UpdatePlaylistUserDto.
750
+ * @param {PlaylistsApiUpdatePlaylistUserRequest} requestParameters Request parameters.
709
751
  * @param {*} [options] Override http request option.
710
752
  * @throws {RequiredError}
711
753
  */
712
- updatePlaylistUser(playlistId, userId, updatePlaylistUserDto, options) {
713
- return localVarFp.updatePlaylistUser(playlistId, userId, updatePlaylistUserDto, options).then((request) => request(axios, basePath));
754
+ updatePlaylistUser(requestParameters, options) {
755
+ return localVarFp.updatePlaylistUser(requestParameters.playlistId, requestParameters.userId, requestParameters.updatePlaylistUserDto, options).then((request) => request(axios, basePath));
714
756
  },
715
757
  };
716
758
  };
@@ -743,6 +785,17 @@ class PlaylistsApi extends BaseAPI {
743
785
  createPlaylist(requestParameters = {}, options) {
744
786
  return PlaylistsApiFp(this.configuration).createPlaylist(requestParameters.name, requestParameters.ids, requestParameters.userId, requestParameters.mediaType, requestParameters.createPlaylistDto, options).then((request) => request(this.axios, this.basePath));
745
787
  }
788
+ /**
789
+ *
790
+ * @summary Get a playlist.
791
+ * @param {PlaylistsApiGetPlaylistRequest} requestParameters Request parameters.
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ * @memberof PlaylistsApi
795
+ */
796
+ getPlaylist(requestParameters, options) {
797
+ return PlaylistsApiFp(this.configuration).getPlaylist(requestParameters.playlistId, options).then((request) => request(this.axios, this.basePath));
798
+ }
746
799
  /**
747
800
  *
748
801
  * @summary Gets the original items of a playlist.