@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 PlaystateApiAxiosParamCreator = function (configuration) {
30
29
  * @param {*} [options] Override http request option.
31
30
  * @throws {RequiredError}
32
31
  */
33
- markPlayedItem: (itemId_1, userId_1, datePlayed_1, ...args_1) => __awaiter(this, [itemId_1, userId_1, datePlayed_1, ...args_1], void 0, function* (itemId, userId, datePlayed, options = {}) {
32
+ markPlayedItem: async (itemId, userId, datePlayed, options = {}) => {
34
33
  // verify required parameter 'itemId' is not null or undefined
35
34
  assertParamExists('markPlayedItem', 'itemId', itemId);
36
35
  const localVarPath = `/UserPlayedItems/{itemId}`
@@ -41,11 +40,11 @@ const PlaystateApiAxiosParamCreator = 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 (userId !== undefined) {
50
49
  localVarQueryParameter['userId'] = userId;
51
50
  }
@@ -56,12 +55,12 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
56
55
  }
57
56
  setSearchParams(localVarUrlObj, localVarQueryParameter);
58
57
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
59
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
58
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
60
59
  return {
61
60
  url: toPathString(localVarUrlObj),
62
61
  options: localVarRequestOptions,
63
62
  };
64
- }),
63
+ },
65
64
  /**
66
65
  *
67
66
  * @summary Marks an item as unplayed for user.
@@ -70,7 +69,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
70
69
  * @param {*} [options] Override http request option.
71
70
  * @throws {RequiredError}
72
71
  */
73
- markUnplayedItem: (itemId_2, userId_2, ...args_2) => __awaiter(this, [itemId_2, userId_2, ...args_2], void 0, function* (itemId, userId, options = {}) {
72
+ markUnplayedItem: async (itemId, userId, options = {}) => {
74
73
  // verify required parameter 'itemId' is not null or undefined
75
74
  assertParamExists('markUnplayedItem', 'itemId', itemId);
76
75
  const localVarPath = `/UserPlayedItems/{itemId}`
@@ -81,22 +80,22 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
81
80
  if (configuration) {
82
81
  baseOptions = configuration.baseOptions;
83
82
  }
84
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
83
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
85
84
  const localVarHeaderParameter = {};
86
85
  const localVarQueryParameter = {};
87
86
  // authentication CustomAuthentication required
88
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
87
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
89
88
  if (userId !== undefined) {
90
89
  localVarQueryParameter['userId'] = userId;
91
90
  }
92
91
  setSearchParams(localVarUrlObj, localVarQueryParameter);
93
92
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
93
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
95
94
  return {
96
95
  url: toPathString(localVarUrlObj),
97
96
  options: localVarRequestOptions,
98
97
  };
99
- }),
98
+ },
100
99
  /**
101
100
  *
102
101
  * @summary Reports a session\'s playback progress.
@@ -115,7 +114,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
115
114
  * @param {*} [options] Override http request option.
116
115
  * @throws {RequiredError}
117
116
  */
118
- onPlaybackProgress: (itemId_3, mediaSourceId_1, positionTicks_1, audioStreamIndex_1, subtitleStreamIndex_1, volumeLevel_1, playMethod_1, liveStreamId_1, playSessionId_1, repeatMode_1, isPaused_1, isMuted_1, ...args_3) => __awaiter(this, [itemId_3, mediaSourceId_1, positionTicks_1, audioStreamIndex_1, subtitleStreamIndex_1, volumeLevel_1, playMethod_1, liveStreamId_1, playSessionId_1, repeatMode_1, isPaused_1, isMuted_1, ...args_3], void 0, function* (itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options = {}) {
117
+ onPlaybackProgress: async (itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options = {}) => {
119
118
  // verify required parameter 'itemId' is not null or undefined
120
119
  assertParamExists('onPlaybackProgress', 'itemId', itemId);
121
120
  const localVarPath = `/PlayingItems/{itemId}/Progress`
@@ -126,11 +125,11 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
126
125
  if (configuration) {
127
126
  baseOptions = configuration.baseOptions;
128
127
  }
129
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
128
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
130
129
  const localVarHeaderParameter = {};
131
130
  const localVarQueryParameter = {};
132
131
  // authentication CustomAuthentication required
133
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
132
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
134
133
  if (mediaSourceId !== undefined) {
135
134
  localVarQueryParameter['mediaSourceId'] = mediaSourceId;
136
135
  }
@@ -166,12 +165,12 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
166
165
  }
167
166
  setSearchParams(localVarUrlObj, localVarQueryParameter);
168
167
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
169
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
168
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
170
169
  return {
171
170
  url: toPathString(localVarUrlObj),
172
171
  options: localVarRequestOptions,
173
172
  };
174
- }),
173
+ },
175
174
  /**
176
175
  *
177
176
  * @summary Reports that a session has begun playing an item.
@@ -186,7 +185,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
186
185
  * @param {*} [options] Override http request option.
187
186
  * @throws {RequiredError}
188
187
  */
189
- onPlaybackStart: (itemId_4, mediaSourceId_2, audioStreamIndex_2, subtitleStreamIndex_2, playMethod_2, liveStreamId_2, playSessionId_2, canSeek_1, ...args_4) => __awaiter(this, [itemId_4, mediaSourceId_2, audioStreamIndex_2, subtitleStreamIndex_2, playMethod_2, liveStreamId_2, playSessionId_2, canSeek_1, ...args_4], void 0, function* (itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options = {}) {
188
+ onPlaybackStart: async (itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options = {}) => {
190
189
  // verify required parameter 'itemId' is not null or undefined
191
190
  assertParamExists('onPlaybackStart', 'itemId', itemId);
192
191
  const localVarPath = `/PlayingItems/{itemId}`
@@ -197,11 +196,11 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
197
196
  if (configuration) {
198
197
  baseOptions = configuration.baseOptions;
199
198
  }
200
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
199
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
201
200
  const localVarHeaderParameter = {};
202
201
  const localVarQueryParameter = {};
203
202
  // authentication CustomAuthentication required
204
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
203
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
205
204
  if (mediaSourceId !== undefined) {
206
205
  localVarQueryParameter['mediaSourceId'] = mediaSourceId;
207
206
  }
@@ -225,12 +224,12 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
225
224
  }
226
225
  setSearchParams(localVarUrlObj, localVarQueryParameter);
227
226
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
228
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
227
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
229
228
  return {
230
229
  url: toPathString(localVarUrlObj),
231
230
  options: localVarRequestOptions,
232
231
  };
233
- }),
232
+ },
234
233
  /**
235
234
  *
236
235
  * @summary Reports that a session has stopped playing an item.
@@ -243,7 +242,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
243
242
  * @param {*} [options] Override http request option.
244
243
  * @throws {RequiredError}
245
244
  */
246
- onPlaybackStopped: (itemId_5, mediaSourceId_3, nextMediaType_1, positionTicks_2, liveStreamId_3, playSessionId_3, ...args_5) => __awaiter(this, [itemId_5, mediaSourceId_3, nextMediaType_1, positionTicks_2, liveStreamId_3, playSessionId_3, ...args_5], void 0, function* (itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options = {}) {
245
+ onPlaybackStopped: async (itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options = {}) => {
247
246
  // verify required parameter 'itemId' is not null or undefined
248
247
  assertParamExists('onPlaybackStopped', 'itemId', itemId);
249
248
  const localVarPath = `/PlayingItems/{itemId}`
@@ -254,11 +253,11 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
254
253
  if (configuration) {
255
254
  baseOptions = configuration.baseOptions;
256
255
  }
257
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
256
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
258
257
  const localVarHeaderParameter = {};
259
258
  const localVarQueryParameter = {};
260
259
  // authentication CustomAuthentication required
261
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
260
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
262
261
  if (mediaSourceId !== undefined) {
263
262
  localVarQueryParameter['mediaSourceId'] = mediaSourceId;
264
263
  }
@@ -276,12 +275,12 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
276
275
  }
277
276
  setSearchParams(localVarUrlObj, localVarQueryParameter);
278
277
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
279
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
278
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
280
279
  return {
281
280
  url: toPathString(localVarUrlObj),
282
281
  options: localVarRequestOptions,
283
282
  };
284
- }),
283
+ },
285
284
  /**
286
285
  *
287
286
  * @summary Pings a playback session.
@@ -289,7 +288,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
289
288
  * @param {*} [options] Override http request option.
290
289
  * @throws {RequiredError}
291
290
  */
292
- pingPlaybackSession: (playSessionId_4, ...args_6) => __awaiter(this, [playSessionId_4, ...args_6], void 0, function* (playSessionId, options = {}) {
291
+ pingPlaybackSession: async (playSessionId, options = {}) => {
293
292
  // verify required parameter 'playSessionId' is not null or undefined
294
293
  assertParamExists('pingPlaybackSession', 'playSessionId', playSessionId);
295
294
  const localVarPath = `/Sessions/Playing/Ping`;
@@ -299,22 +298,22 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
299
298
  if (configuration) {
300
299
  baseOptions = configuration.baseOptions;
301
300
  }
302
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
301
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
303
302
  const localVarHeaderParameter = {};
304
303
  const localVarQueryParameter = {};
305
304
  // authentication CustomAuthentication required
306
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
305
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
307
306
  if (playSessionId !== undefined) {
308
307
  localVarQueryParameter['playSessionId'] = playSessionId;
309
308
  }
310
309
  setSearchParams(localVarUrlObj, localVarQueryParameter);
311
310
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
312
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
311
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
313
312
  return {
314
313
  url: toPathString(localVarUrlObj),
315
314
  options: localVarRequestOptions,
316
315
  };
317
- }),
316
+ },
318
317
  /**
319
318
  *
320
319
  * @summary Reports playback progress within a session.
@@ -322,7 +321,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
322
321
  * @param {*} [options] Override http request option.
323
322
  * @throws {RequiredError}
324
323
  */
325
- reportPlaybackProgress: (playbackProgressInfo_1, ...args_7) => __awaiter(this, [playbackProgressInfo_1, ...args_7], void 0, function* (playbackProgressInfo, options = {}) {
324
+ reportPlaybackProgress: async (playbackProgressInfo, options = {}) => {
326
325
  const localVarPath = `/Sessions/Playing/Progress`;
327
326
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
328
327
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -330,21 +329,21 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
330
329
  if (configuration) {
331
330
  baseOptions = configuration.baseOptions;
332
331
  }
333
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
332
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
334
333
  const localVarHeaderParameter = {};
335
334
  const localVarQueryParameter = {};
336
335
  // authentication CustomAuthentication required
337
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
336
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
338
337
  localVarHeaderParameter['Content-Type'] = 'application/json';
339
338
  setSearchParams(localVarUrlObj, localVarQueryParameter);
340
339
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
341
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
340
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
342
341
  localVarRequestOptions.data = serializeDataIfNeeded(playbackProgressInfo, localVarRequestOptions, configuration);
343
342
  return {
344
343
  url: toPathString(localVarUrlObj),
345
344
  options: localVarRequestOptions,
346
345
  };
347
- }),
346
+ },
348
347
  /**
349
348
  *
350
349
  * @summary Reports playback has started within a session.
@@ -352,7 +351,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
352
351
  * @param {*} [options] Override http request option.
353
352
  * @throws {RequiredError}
354
353
  */
355
- reportPlaybackStart: (playbackStartInfo_1, ...args_8) => __awaiter(this, [playbackStartInfo_1, ...args_8], void 0, function* (playbackStartInfo, options = {}) {
354
+ reportPlaybackStart: async (playbackStartInfo, options = {}) => {
356
355
  const localVarPath = `/Sessions/Playing`;
357
356
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
358
357
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -360,21 +359,21 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
360
359
  if (configuration) {
361
360
  baseOptions = configuration.baseOptions;
362
361
  }
363
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
362
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
364
363
  const localVarHeaderParameter = {};
365
364
  const localVarQueryParameter = {};
366
365
  // authentication CustomAuthentication required
367
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
366
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
368
367
  localVarHeaderParameter['Content-Type'] = 'application/json';
369
368
  setSearchParams(localVarUrlObj, localVarQueryParameter);
370
369
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
371
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
370
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
372
371
  localVarRequestOptions.data = serializeDataIfNeeded(playbackStartInfo, localVarRequestOptions, configuration);
373
372
  return {
374
373
  url: toPathString(localVarUrlObj),
375
374
  options: localVarRequestOptions,
376
375
  };
377
- }),
376
+ },
378
377
  /**
379
378
  *
380
379
  * @summary Reports playback has stopped within a session.
@@ -382,7 +381,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
382
381
  * @param {*} [options] Override http request option.
383
382
  * @throws {RequiredError}
384
383
  */
385
- reportPlaybackStopped: (playbackStopInfo_1, ...args_9) => __awaiter(this, [playbackStopInfo_1, ...args_9], void 0, function* (playbackStopInfo, options = {}) {
384
+ reportPlaybackStopped: async (playbackStopInfo, options = {}) => {
386
385
  const localVarPath = `/Sessions/Playing/Stopped`;
387
386
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
388
387
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -390,21 +389,21 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
390
389
  if (configuration) {
391
390
  baseOptions = configuration.baseOptions;
392
391
  }
393
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
392
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
394
393
  const localVarHeaderParameter = {};
395
394
  const localVarQueryParameter = {};
396
395
  // authentication CustomAuthentication required
397
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
396
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
398
397
  localVarHeaderParameter['Content-Type'] = 'application/json';
399
398
  setSearchParams(localVarUrlObj, localVarQueryParameter);
400
399
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
401
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
400
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
402
401
  localVarRequestOptions.data = serializeDataIfNeeded(playbackStopInfo, localVarRequestOptions, configuration);
403
402
  return {
404
403
  url: toPathString(localVarUrlObj),
405
404
  options: localVarRequestOptions,
406
405
  };
407
- }),
406
+ },
408
407
  };
409
408
  };
410
409
  /**
@@ -423,11 +422,12 @@ const PlaystateApiFp = function (configuration) {
423
422
  * @param {*} [options] Override http request option.
424
423
  * @throws {RequiredError}
425
424
  */
426
- markPlayedItem(itemId, userId, datePlayed, options) {
427
- return __awaiter(this, void 0, void 0, function* () {
428
- const localVarAxiosArgs = yield localVarAxiosParamCreator.markPlayedItem(itemId, userId, datePlayed, options);
429
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
430
- });
425
+ async markPlayedItem(itemId, userId, datePlayed, options) {
426
+ var _a, _b, _c;
427
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markPlayedItem(itemId, userId, datePlayed, options);
428
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
429
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.markPlayedItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
430
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
431
431
  },
432
432
  /**
433
433
  *
@@ -437,11 +437,12 @@ const PlaystateApiFp = function (configuration) {
437
437
  * @param {*} [options] Override http request option.
438
438
  * @throws {RequiredError}
439
439
  */
440
- markUnplayedItem(itemId, userId, options) {
441
- return __awaiter(this, void 0, void 0, function* () {
442
- const localVarAxiosArgs = yield localVarAxiosParamCreator.markUnplayedItem(itemId, userId, options);
443
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
444
- });
440
+ async markUnplayedItem(itemId, userId, options) {
441
+ var _a, _b, _c;
442
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markUnplayedItem(itemId, userId, options);
443
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
444
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.markUnplayedItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
445
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
445
446
  },
446
447
  /**
447
448
  *
@@ -461,11 +462,12 @@ const PlaystateApiFp = function (configuration) {
461
462
  * @param {*} [options] Override http request option.
462
463
  * @throws {RequiredError}
463
464
  */
464
- onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options) {
465
- return __awaiter(this, void 0, void 0, function* () {
466
- const localVarAxiosArgs = yield localVarAxiosParamCreator.onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options);
467
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
468
- });
465
+ async onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options) {
466
+ var _a, _b, _c;
467
+ const localVarAxiosArgs = await localVarAxiosParamCreator.onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options);
468
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
469
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.onPlaybackProgress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
470
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
469
471
  },
470
472
  /**
471
473
  *
@@ -481,11 +483,12 @@ const PlaystateApiFp = function (configuration) {
481
483
  * @param {*} [options] Override http request option.
482
484
  * @throws {RequiredError}
483
485
  */
484
- onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options) {
485
- return __awaiter(this, void 0, void 0, function* () {
486
- const localVarAxiosArgs = yield localVarAxiosParamCreator.onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options);
487
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
488
- });
486
+ async onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options) {
487
+ var _a, _b, _c;
488
+ const localVarAxiosArgs = await localVarAxiosParamCreator.onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options);
489
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
490
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.onPlaybackStart']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
491
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
489
492
  },
490
493
  /**
491
494
  *
@@ -499,11 +502,12 @@ const PlaystateApiFp = function (configuration) {
499
502
  * @param {*} [options] Override http request option.
500
503
  * @throws {RequiredError}
501
504
  */
502
- onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options) {
503
- return __awaiter(this, void 0, void 0, function* () {
504
- const localVarAxiosArgs = yield localVarAxiosParamCreator.onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options);
505
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
506
- });
505
+ async onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options) {
506
+ var _a, _b, _c;
507
+ const localVarAxiosArgs = await localVarAxiosParamCreator.onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options);
508
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
509
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.onPlaybackStopped']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
510
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
507
511
  },
508
512
  /**
509
513
  *
@@ -512,11 +516,12 @@ const PlaystateApiFp = function (configuration) {
512
516
  * @param {*} [options] Override http request option.
513
517
  * @throws {RequiredError}
514
518
  */
515
- pingPlaybackSession(playSessionId, options) {
516
- return __awaiter(this, void 0, void 0, function* () {
517
- const localVarAxiosArgs = yield localVarAxiosParamCreator.pingPlaybackSession(playSessionId, options);
518
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
519
- });
519
+ async pingPlaybackSession(playSessionId, options) {
520
+ var _a, _b, _c;
521
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pingPlaybackSession(playSessionId, options);
522
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
523
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.pingPlaybackSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
524
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
520
525
  },
521
526
  /**
522
527
  *
@@ -525,11 +530,12 @@ const PlaystateApiFp = function (configuration) {
525
530
  * @param {*} [options] Override http request option.
526
531
  * @throws {RequiredError}
527
532
  */
528
- reportPlaybackProgress(playbackProgressInfo, options) {
529
- return __awaiter(this, void 0, void 0, function* () {
530
- const localVarAxiosArgs = yield localVarAxiosParamCreator.reportPlaybackProgress(playbackProgressInfo, options);
531
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
532
- });
533
+ async reportPlaybackProgress(playbackProgressInfo, options) {
534
+ var _a, _b, _c;
535
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reportPlaybackProgress(playbackProgressInfo, options);
536
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
537
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.reportPlaybackProgress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
538
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
533
539
  },
534
540
  /**
535
541
  *
@@ -538,11 +544,12 @@ const PlaystateApiFp = function (configuration) {
538
544
  * @param {*} [options] Override http request option.
539
545
  * @throws {RequiredError}
540
546
  */
541
- reportPlaybackStart(playbackStartInfo, options) {
542
- return __awaiter(this, void 0, void 0, function* () {
543
- const localVarAxiosArgs = yield localVarAxiosParamCreator.reportPlaybackStart(playbackStartInfo, options);
544
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
545
- });
547
+ async reportPlaybackStart(playbackStartInfo, options) {
548
+ var _a, _b, _c;
549
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reportPlaybackStart(playbackStartInfo, options);
550
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
551
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.reportPlaybackStart']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
552
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
546
553
  },
547
554
  /**
548
555
  *
@@ -551,11 +558,12 @@ const PlaystateApiFp = function (configuration) {
551
558
  * @param {*} [options] Override http request option.
552
559
  * @throws {RequiredError}
553
560
  */
554
- reportPlaybackStopped(playbackStopInfo, options) {
555
- return __awaiter(this, void 0, void 0, function* () {
556
- const localVarAxiosArgs = yield localVarAxiosParamCreator.reportPlaybackStopped(playbackStopInfo, options);
557
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
558
- });
561
+ async reportPlaybackStopped(playbackStopInfo, options) {
562
+ var _a, _b, _c;
563
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reportPlaybackStopped(playbackStopInfo, options);
564
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
565
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.reportPlaybackStopped']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
566
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
559
567
  },
560
568
  };
561
569
  };
@@ -569,118 +577,92 @@ const PlaystateApiFactory = function (configuration, basePath, axios) {
569
577
  /**
570
578
  *
571
579
  * @summary Marks an item as played for user.
572
- * @param {string} itemId Item id.
573
- * @param {string} [userId] User id.
574
- * @param {string} [datePlayed] Optional. The date the item was played.
580
+ * @param {PlaystateApiMarkPlayedItemRequest} requestParameters Request parameters.
575
581
  * @param {*} [options] Override http request option.
576
582
  * @throws {RequiredError}
577
583
  */
578
- markPlayedItem(itemId, userId, datePlayed, options) {
579
- return localVarFp.markPlayedItem(itemId, userId, datePlayed, options).then((request) => request(axios, basePath));
584
+ markPlayedItem(requestParameters, options) {
585
+ return localVarFp.markPlayedItem(requestParameters.itemId, requestParameters.userId, requestParameters.datePlayed, options).then((request) => request(axios, basePath));
580
586
  },
581
587
  /**
582
588
  *
583
589
  * @summary Marks an item as unplayed for user.
584
- * @param {string} itemId Item id.
585
- * @param {string} [userId] User id.
590
+ * @param {PlaystateApiMarkUnplayedItemRequest} requestParameters Request parameters.
586
591
  * @param {*} [options] Override http request option.
587
592
  * @throws {RequiredError}
588
593
  */
589
- markUnplayedItem(itemId, userId, options) {
590
- return localVarFp.markUnplayedItem(itemId, userId, options).then((request) => request(axios, basePath));
594
+ markUnplayedItem(requestParameters, options) {
595
+ return localVarFp.markUnplayedItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
591
596
  },
592
597
  /**
593
598
  *
594
599
  * @summary Reports a session\'s playback progress.
595
- * @param {string} itemId Item id.
596
- * @param {string} [mediaSourceId] The id of the MediaSource.
597
- * @param {number} [positionTicks] Optional. The current position, in ticks. 1 tick = 10000 ms.
598
- * @param {number} [audioStreamIndex] The audio stream index.
599
- * @param {number} [subtitleStreamIndex] The subtitle stream index.
600
- * @param {number} [volumeLevel] Scale of 0-100.
601
- * @param {PlayMethod} [playMethod] The play method.
602
- * @param {string} [liveStreamId] The live stream id.
603
- * @param {string} [playSessionId] The play session id.
604
- * @param {RepeatMode} [repeatMode] The repeat mode.
605
- * @param {boolean} [isPaused] Indicates if the player is paused.
606
- * @param {boolean} [isMuted] Indicates if the player is muted.
600
+ * @param {PlaystateApiOnPlaybackProgressRequest} requestParameters Request parameters.
607
601
  * @param {*} [options] Override http request option.
608
602
  * @throws {RequiredError}
609
603
  */
610
- onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options) {
611
- return localVarFp.onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options).then((request) => request(axios, basePath));
604
+ onPlaybackProgress(requestParameters, options) {
605
+ return localVarFp.onPlaybackProgress(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.positionTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.volumeLevel, requestParameters.playMethod, requestParameters.liveStreamId, requestParameters.playSessionId, requestParameters.repeatMode, requestParameters.isPaused, requestParameters.isMuted, options).then((request) => request(axios, basePath));
612
606
  },
613
607
  /**
614
608
  *
615
609
  * @summary Reports that a session has begun playing an item.
616
- * @param {string} itemId Item id.
617
- * @param {string} [mediaSourceId] The id of the MediaSource.
618
- * @param {number} [audioStreamIndex] The audio stream index.
619
- * @param {number} [subtitleStreamIndex] The subtitle stream index.
620
- * @param {PlayMethod} [playMethod] The play method.
621
- * @param {string} [liveStreamId] The live stream id.
622
- * @param {string} [playSessionId] The play session id.
623
- * @param {boolean} [canSeek] Indicates if the client can seek.
610
+ * @param {PlaystateApiOnPlaybackStartRequest} requestParameters Request parameters.
624
611
  * @param {*} [options] Override http request option.
625
612
  * @throws {RequiredError}
626
613
  */
627
- onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options) {
628
- return localVarFp.onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options).then((request) => request(axios, basePath));
614
+ onPlaybackStart(requestParameters, options) {
615
+ return localVarFp.onPlaybackStart(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.playMethod, requestParameters.liveStreamId, requestParameters.playSessionId, requestParameters.canSeek, options).then((request) => request(axios, basePath));
629
616
  },
630
617
  /**
631
618
  *
632
619
  * @summary Reports that a session has stopped playing an item.
633
- * @param {string} itemId Item id.
634
- * @param {string} [mediaSourceId] The id of the MediaSource.
635
- * @param {string} [nextMediaType] The next media type that will play.
636
- * @param {number} [positionTicks] Optional. The position, in ticks, where playback stopped. 1 tick = 10000 ms.
637
- * @param {string} [liveStreamId] The live stream id.
638
- * @param {string} [playSessionId] The play session id.
620
+ * @param {PlaystateApiOnPlaybackStoppedRequest} requestParameters Request parameters.
639
621
  * @param {*} [options] Override http request option.
640
622
  * @throws {RequiredError}
641
623
  */
642
- onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options) {
643
- return localVarFp.onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options).then((request) => request(axios, basePath));
624
+ onPlaybackStopped(requestParameters, options) {
625
+ return localVarFp.onPlaybackStopped(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.nextMediaType, requestParameters.positionTicks, requestParameters.liveStreamId, requestParameters.playSessionId, options).then((request) => request(axios, basePath));
644
626
  },
645
627
  /**
646
628
  *
647
629
  * @summary Pings a playback session.
648
- * @param {string} playSessionId Playback session id.
630
+ * @param {PlaystateApiPingPlaybackSessionRequest} requestParameters Request parameters.
649
631
  * @param {*} [options] Override http request option.
650
632
  * @throws {RequiredError}
651
633
  */
652
- pingPlaybackSession(playSessionId, options) {
653
- return localVarFp.pingPlaybackSession(playSessionId, options).then((request) => request(axios, basePath));
634
+ pingPlaybackSession(requestParameters, options) {
635
+ return localVarFp.pingPlaybackSession(requestParameters.playSessionId, options).then((request) => request(axios, basePath));
654
636
  },
655
637
  /**
656
638
  *
657
639
  * @summary Reports playback progress within a session.
658
- * @param {PlaybackProgressInfo} [playbackProgressInfo] The playback progress info.
640
+ * @param {PlaystateApiReportPlaybackProgressRequest} requestParameters Request parameters.
659
641
  * @param {*} [options] Override http request option.
660
642
  * @throws {RequiredError}
661
643
  */
662
- reportPlaybackProgress(playbackProgressInfo, options) {
663
- return localVarFp.reportPlaybackProgress(playbackProgressInfo, options).then((request) => request(axios, basePath));
644
+ reportPlaybackProgress(requestParameters = {}, options) {
645
+ return localVarFp.reportPlaybackProgress(requestParameters.playbackProgressInfo, options).then((request) => request(axios, basePath));
664
646
  },
665
647
  /**
666
648
  *
667
649
  * @summary Reports playback has started within a session.
668
- * @param {PlaybackStartInfo} [playbackStartInfo] The playback start info.
650
+ * @param {PlaystateApiReportPlaybackStartRequest} requestParameters Request parameters.
669
651
  * @param {*} [options] Override http request option.
670
652
  * @throws {RequiredError}
671
653
  */
672
- reportPlaybackStart(playbackStartInfo, options) {
673
- return localVarFp.reportPlaybackStart(playbackStartInfo, options).then((request) => request(axios, basePath));
654
+ reportPlaybackStart(requestParameters = {}, options) {
655
+ return localVarFp.reportPlaybackStart(requestParameters.playbackStartInfo, options).then((request) => request(axios, basePath));
674
656
  },
675
657
  /**
676
658
  *
677
659
  * @summary Reports playback has stopped within a session.
678
- * @param {PlaybackStopInfo} [playbackStopInfo] The playback stop info.
660
+ * @param {PlaystateApiReportPlaybackStoppedRequest} requestParameters Request parameters.
679
661
  * @param {*} [options] Override http request option.
680
662
  * @throws {RequiredError}
681
663
  */
682
- reportPlaybackStopped(playbackStopInfo, options) {
683
- return localVarFp.reportPlaybackStopped(playbackStopInfo, options).then((request) => request(axios, basePath));
664
+ reportPlaybackStopped(requestParameters = {}, options) {
665
+ return localVarFp.reportPlaybackStopped(requestParameters.playbackStopInfo, options).then((request) => request(axios, basePath));
684
666
  },
685
667
  };
686
668
  };