@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 */
@@ -28,7 +27,7 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
28
27
  * @param {*} [options] Override http request option.
29
28
  * @throws {RequiredError}
30
29
  */
31
- getTask: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
30
+ getTask: async (taskId, options = {}) => {
32
31
  // verify required parameter 'taskId' is not null or undefined
33
32
  assertParamExists('getTask', 'taskId', taskId);
34
33
  const localVarPath = `/ScheduledTasks/{taskId}`
@@ -39,19 +38,19 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
39
38
  if (configuration) {
40
39
  baseOptions = configuration.baseOptions;
41
40
  }
42
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
41
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
43
42
  const localVarHeaderParameter = {};
44
43
  const localVarQueryParameter = {};
45
44
  // authentication CustomAuthentication required
46
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
45
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
47
46
  setSearchParams(localVarUrlObj, localVarQueryParameter);
48
47
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
49
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
48
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
50
49
  return {
51
50
  url: toPathString(localVarUrlObj),
52
51
  options: localVarRequestOptions,
53
52
  };
54
- }),
53
+ },
55
54
  /**
56
55
  *
57
56
  * @summary Get tasks.
@@ -60,7 +59,7 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
60
59
  * @param {*} [options] Override http request option.
61
60
  * @throws {RequiredError}
62
61
  */
63
- getTasks: (isHidden_1, isEnabled_1, ...args_2) => __awaiter(this, [isHidden_1, isEnabled_1, ...args_2], void 0, function* (isHidden, isEnabled, options = {}) {
62
+ getTasks: async (isHidden, isEnabled, options = {}) => {
64
63
  const localVarPath = `/ScheduledTasks`;
65
64
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
66
65
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -68,11 +67,11 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
68
67
  if (configuration) {
69
68
  baseOptions = configuration.baseOptions;
70
69
  }
71
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
70
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
72
71
  const localVarHeaderParameter = {};
73
72
  const localVarQueryParameter = {};
74
73
  // authentication CustomAuthentication required
75
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
74
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
76
75
  if (isHidden !== undefined) {
77
76
  localVarQueryParameter['isHidden'] = isHidden;
78
77
  }
@@ -81,12 +80,12 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
81
80
  }
82
81
  setSearchParams(localVarUrlObj, localVarQueryParameter);
83
82
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
83
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
85
84
  return {
86
85
  url: toPathString(localVarUrlObj),
87
86
  options: localVarRequestOptions,
88
87
  };
89
- }),
88
+ },
90
89
  /**
91
90
  *
92
91
  * @summary Start specified task.
@@ -94,7 +93,7 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
94
93
  * @param {*} [options] Override http request option.
95
94
  * @throws {RequiredError}
96
95
  */
97
- startTask: (taskId_2, ...args_3) => __awaiter(this, [taskId_2, ...args_3], void 0, function* (taskId, options = {}) {
96
+ startTask: async (taskId, options = {}) => {
98
97
  // verify required parameter 'taskId' is not null or undefined
99
98
  assertParamExists('startTask', 'taskId', taskId);
100
99
  const localVarPath = `/ScheduledTasks/Running/{taskId}`
@@ -105,19 +104,19 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
105
104
  if (configuration) {
106
105
  baseOptions = configuration.baseOptions;
107
106
  }
108
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
107
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
109
108
  const localVarHeaderParameter = {};
110
109
  const localVarQueryParameter = {};
111
110
  // authentication CustomAuthentication required
112
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
111
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
113
112
  setSearchParams(localVarUrlObj, localVarQueryParameter);
114
113
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
115
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
114
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
116
115
  return {
117
116
  url: toPathString(localVarUrlObj),
118
117
  options: localVarRequestOptions,
119
118
  };
120
- }),
119
+ },
121
120
  /**
122
121
  *
123
122
  * @summary Stop specified task.
@@ -125,7 +124,7 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
125
124
  * @param {*} [options] Override http request option.
126
125
  * @throws {RequiredError}
127
126
  */
128
- stopTask: (taskId_3, ...args_4) => __awaiter(this, [taskId_3, ...args_4], void 0, function* (taskId, options = {}) {
127
+ stopTask: async (taskId, options = {}) => {
129
128
  // verify required parameter 'taskId' is not null or undefined
130
129
  assertParamExists('stopTask', 'taskId', taskId);
131
130
  const localVarPath = `/ScheduledTasks/Running/{taskId}`
@@ -136,19 +135,19 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
136
135
  if (configuration) {
137
136
  baseOptions = configuration.baseOptions;
138
137
  }
139
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
138
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
140
139
  const localVarHeaderParameter = {};
141
140
  const localVarQueryParameter = {};
142
141
  // authentication CustomAuthentication required
143
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
142
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
144
143
  setSearchParams(localVarUrlObj, localVarQueryParameter);
145
144
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
145
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
147
146
  return {
148
147
  url: toPathString(localVarUrlObj),
149
148
  options: localVarRequestOptions,
150
149
  };
151
- }),
150
+ },
152
151
  /**
153
152
  *
154
153
  * @summary Update specified task triggers.
@@ -157,7 +156,7 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
157
156
  * @param {*} [options] Override http request option.
158
157
  * @throws {RequiredError}
159
158
  */
160
- updateTask: (taskId_4, taskTriggerInfo_1, ...args_5) => __awaiter(this, [taskId_4, taskTriggerInfo_1, ...args_5], void 0, function* (taskId, taskTriggerInfo, options = {}) {
159
+ updateTask: async (taskId, taskTriggerInfo, options = {}) => {
161
160
  // verify required parameter 'taskId' is not null or undefined
162
161
  assertParamExists('updateTask', 'taskId', taskId);
163
162
  // verify required parameter 'taskTriggerInfo' is not null or undefined
@@ -170,21 +169,21 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
170
169
  if (configuration) {
171
170
  baseOptions = configuration.baseOptions;
172
171
  }
173
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
172
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
174
173
  const localVarHeaderParameter = {};
175
174
  const localVarQueryParameter = {};
176
175
  // authentication CustomAuthentication required
177
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
176
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
178
177
  localVarHeaderParameter['Content-Type'] = 'application/json';
179
178
  setSearchParams(localVarUrlObj, localVarQueryParameter);
180
179
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
180
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
182
181
  localVarRequestOptions.data = serializeDataIfNeeded(taskTriggerInfo, localVarRequestOptions, configuration);
183
182
  return {
184
183
  url: toPathString(localVarUrlObj),
185
184
  options: localVarRequestOptions,
186
185
  };
187
- }),
186
+ },
188
187
  };
189
188
  };
190
189
  /**
@@ -201,11 +200,12 @@ const ScheduledTasksApiFp = function (configuration) {
201
200
  * @param {*} [options] Override http request option.
202
201
  * @throws {RequiredError}
203
202
  */
204
- getTask(taskId, options) {
205
- return __awaiter(this, void 0, void 0, function* () {
206
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTask(taskId, options);
207
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
208
- });
203
+ async getTask(taskId, options) {
204
+ var _a, _b, _c;
205
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTask(taskId, options);
206
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
207
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScheduledTasksApi.getTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
208
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
209
209
  },
210
210
  /**
211
211
  *
@@ -215,11 +215,12 @@ const ScheduledTasksApiFp = function (configuration) {
215
215
  * @param {*} [options] Override http request option.
216
216
  * @throws {RequiredError}
217
217
  */
218
- getTasks(isHidden, isEnabled, options) {
219
- return __awaiter(this, void 0, void 0, function* () {
220
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTasks(isHidden, isEnabled, options);
221
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
222
- });
218
+ async getTasks(isHidden, isEnabled, options) {
219
+ var _a, _b, _c;
220
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTasks(isHidden, isEnabled, options);
221
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
222
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScheduledTasksApi.getTasks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
223
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
223
224
  },
224
225
  /**
225
226
  *
@@ -228,11 +229,12 @@ const ScheduledTasksApiFp = function (configuration) {
228
229
  * @param {*} [options] Override http request option.
229
230
  * @throws {RequiredError}
230
231
  */
231
- startTask(taskId, options) {
232
- return __awaiter(this, void 0, void 0, function* () {
233
- const localVarAxiosArgs = yield localVarAxiosParamCreator.startTask(taskId, options);
234
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
235
- });
232
+ async startTask(taskId, options) {
233
+ var _a, _b, _c;
234
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startTask(taskId, options);
235
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
236
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScheduledTasksApi.startTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
237
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
236
238
  },
237
239
  /**
238
240
  *
@@ -241,11 +243,12 @@ const ScheduledTasksApiFp = function (configuration) {
241
243
  * @param {*} [options] Override http request option.
242
244
  * @throws {RequiredError}
243
245
  */
244
- stopTask(taskId, options) {
245
- return __awaiter(this, void 0, void 0, function* () {
246
- const localVarAxiosArgs = yield localVarAxiosParamCreator.stopTask(taskId, options);
247
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
248
- });
246
+ async stopTask(taskId, options) {
247
+ var _a, _b, _c;
248
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stopTask(taskId, options);
249
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
250
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScheduledTasksApi.stopTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
251
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
249
252
  },
250
253
  /**
251
254
  *
@@ -255,11 +258,12 @@ const ScheduledTasksApiFp = function (configuration) {
255
258
  * @param {*} [options] Override http request option.
256
259
  * @throws {RequiredError}
257
260
  */
258
- updateTask(taskId, taskTriggerInfo, options) {
259
- return __awaiter(this, void 0, void 0, function* () {
260
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTask(taskId, taskTriggerInfo, options);
261
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
262
- });
261
+ async updateTask(taskId, taskTriggerInfo, options) {
262
+ var _a, _b, _c;
263
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateTask(taskId, taskTriggerInfo, options);
264
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
265
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScheduledTasksApi.updateTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
266
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
263
267
  },
264
268
  };
265
269
  };
@@ -273,54 +277,52 @@ const ScheduledTasksApiFactory = function (configuration, basePath, axios) {
273
277
  /**
274
278
  *
275
279
  * @summary Get task by id.
276
- * @param {string} taskId Task Id.
280
+ * @param {ScheduledTasksApiGetTaskRequest} requestParameters Request parameters.
277
281
  * @param {*} [options] Override http request option.
278
282
  * @throws {RequiredError}
279
283
  */
280
- getTask(taskId, options) {
281
- return localVarFp.getTask(taskId, options).then((request) => request(axios, basePath));
284
+ getTask(requestParameters, options) {
285
+ return localVarFp.getTask(requestParameters.taskId, options).then((request) => request(axios, basePath));
282
286
  },
283
287
  /**
284
288
  *
285
289
  * @summary Get tasks.
286
- * @param {boolean} [isHidden] Optional filter tasks that are hidden, or not.
287
- * @param {boolean} [isEnabled] Optional filter tasks that are enabled, or not.
290
+ * @param {ScheduledTasksApiGetTasksRequest} requestParameters Request parameters.
288
291
  * @param {*} [options] Override http request option.
289
292
  * @throws {RequiredError}
290
293
  */
291
- getTasks(isHidden, isEnabled, options) {
292
- return localVarFp.getTasks(isHidden, isEnabled, options).then((request) => request(axios, basePath));
294
+ getTasks(requestParameters = {}, options) {
295
+ return localVarFp.getTasks(requestParameters.isHidden, requestParameters.isEnabled, options).then((request) => request(axios, basePath));
293
296
  },
294
297
  /**
295
298
  *
296
299
  * @summary Start specified task.
297
- * @param {string} taskId Task Id.
300
+ * @param {ScheduledTasksApiStartTaskRequest} requestParameters Request parameters.
298
301
  * @param {*} [options] Override http request option.
299
302
  * @throws {RequiredError}
300
303
  */
301
- startTask(taskId, options) {
302
- return localVarFp.startTask(taskId, options).then((request) => request(axios, basePath));
304
+ startTask(requestParameters, options) {
305
+ return localVarFp.startTask(requestParameters.taskId, options).then((request) => request(axios, basePath));
303
306
  },
304
307
  /**
305
308
  *
306
309
  * @summary Stop specified task.
307
- * @param {string} taskId Task Id.
310
+ * @param {ScheduledTasksApiStopTaskRequest} requestParameters Request parameters.
308
311
  * @param {*} [options] Override http request option.
309
312
  * @throws {RequiredError}
310
313
  */
311
- stopTask(taskId, options) {
312
- return localVarFp.stopTask(taskId, options).then((request) => request(axios, basePath));
314
+ stopTask(requestParameters, options) {
315
+ return localVarFp.stopTask(requestParameters.taskId, options).then((request) => request(axios, basePath));
313
316
  },
314
317
  /**
315
318
  *
316
319
  * @summary Update specified task triggers.
317
- * @param {string} taskId Task Id.
318
- * @param {Array<TaskTriggerInfo>} taskTriggerInfo Triggers.
320
+ * @param {ScheduledTasksApiUpdateTaskRequest} requestParameters Request parameters.
319
321
  * @param {*} [options] Override http request option.
320
322
  * @throws {RequiredError}
321
323
  */
322
- updateTask(taskId, taskTriggerInfo, options) {
323
- return localVarFp.updateTask(taskId, taskTriggerInfo, options).then((request) => request(axios, basePath));
324
+ updateTask(requestParameters, options) {
325
+ return localVarFp.updateTask(requestParameters.taskId, requestParameters.taskTriggerInfo, options).then((request) => request(axios, basePath));
324
326
  },
325
327
  };
326
328
  };
@@ -8,12 +8,12 @@
8
8
  * License, v. 2.0. If a copy of the MPL was not distributed with this
9
9
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
10
  */
11
- import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
12
- import { Configuration } from '../configuration';
13
- import { RequestArgs, BaseAPI } from '../base';
14
- import { BaseItemKind } from '../models';
15
- import { MediaType } from '../models';
16
- import { SearchHintResult } from '../models';
11
+ import type { Configuration } from '../configuration';
12
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
13
+ import { type RequestArgs, BaseAPI } from '../base';
14
+ import type { BaseItemKind } from '../models';
15
+ import type { MediaType } from '../models';
16
+ import type { SearchHintResult } from '../models';
17
17
  /**
18
18
  * SearchApi - axios parameter creator
19
19
  * @export
@@ -43,7 +43,7 @@ export declare const SearchApiAxiosParamCreator: (configuration?: Configuration)
43
43
  * @param {*} [options] Override http request option.
44
44
  * @throws {RequiredError}
45
45
  */
46
- getSearchHints: (searchTerm: string, startIndex?: number, limit?: number, userId?: string, includeItemTypes?: Array<BaseItemKind>, excludeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, parentId?: string, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, includePeople?: boolean, includeMedia?: boolean, includeGenres?: boolean, includeStudios?: boolean, includeArtists?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
46
+ getSearchHints: (searchTerm: string, startIndex?: number, limit?: number, userId?: string, includeItemTypes?: Array<BaseItemKind>, excludeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, parentId?: string, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, includePeople?: boolean, includeMedia?: boolean, includeGenres?: boolean, includeStudios?: boolean, includeArtists?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
47
  };
48
48
  /**
49
49
  * SearchApi - functional programming interface
@@ -74,7 +74,7 @@ export declare const SearchApiFp: (configuration?: Configuration) => {
74
74
  * @param {*} [options] Override http request option.
75
75
  * @throws {RequiredError}
76
76
  */
77
- getSearchHints(searchTerm: string, startIndex?: number, limit?: number, userId?: string, includeItemTypes?: Array<BaseItemKind>, excludeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, parentId?: string, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, includePeople?: boolean, includeMedia?: boolean, includeGenres?: boolean, includeStudios?: boolean, includeArtists?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchHintResult>>;
77
+ getSearchHints(searchTerm: string, startIndex?: number, limit?: number, userId?: string, includeItemTypes?: Array<BaseItemKind>, excludeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, parentId?: string, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, includePeople?: boolean, includeMedia?: boolean, includeGenres?: boolean, includeStudios?: boolean, includeArtists?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchHintResult>>;
78
78
  };
79
79
  /**
80
80
  * SearchApi - factory interface
@@ -84,28 +84,11 @@ export declare const SearchApiFactory: (configuration?: Configuration, basePath?
84
84
  /**
85
85
  *
86
86
  * @summary Gets the search hint result.
87
- * @param {string} searchTerm The search term to filter on.
88
- * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
89
- * @param {number} [limit] Optional. The maximum number of records to return.
90
- * @param {string} [userId] Optional. Supply a user id to search within a user\&#39;s library or omit to search all.
91
- * @param {Array<BaseItemKind>} [includeItemTypes] If specified, only results with the specified item types are returned. This allows multiple, comma delimited.
92
- * @param {Array<BaseItemKind>} [excludeItemTypes] If specified, results with these item types are filtered out. This allows multiple, comma delimited.
93
- * @param {Array<MediaType>} [mediaTypes] If specified, only results with the specified media types are returned. This allows multiple, comma delimited.
94
- * @param {string} [parentId] If specified, only children of the parent are returned.
95
- * @param {boolean} [isMovie] Optional filter for movies.
96
- * @param {boolean} [isSeries] Optional filter for series.
97
- * @param {boolean} [isNews] Optional filter for news.
98
- * @param {boolean} [isKids] Optional filter for kids.
99
- * @param {boolean} [isSports] Optional filter for sports.
100
- * @param {boolean} [includePeople] Optional filter whether to include people.
101
- * @param {boolean} [includeMedia] Optional filter whether to include media.
102
- * @param {boolean} [includeGenres] Optional filter whether to include genres.
103
- * @param {boolean} [includeStudios] Optional filter whether to include studios.
104
- * @param {boolean} [includeArtists] Optional filter whether to include artists.
87
+ * @param {SearchApiGetSearchHintsRequest} requestParameters Request parameters.
105
88
  * @param {*} [options] Override http request option.
106
89
  * @throws {RequiredError}
107
90
  */
108
- getSearchHints(searchTerm: string, startIndex?: number, limit?: number, userId?: string, includeItemTypes?: Array<BaseItemKind>, excludeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, parentId?: string, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, includePeople?: boolean, includeMedia?: boolean, includeGenres?: boolean, includeStudios?: boolean, includeArtists?: boolean, options?: any): AxiosPromise<SearchHintResult>;
91
+ getSearchHints(requestParameters: SearchApiGetSearchHintsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SearchHintResult>;
109
92
  };
110
93
  /**
111
94
  * Request parameters for getSearchHints operation in SearchApi.
@@ -237,5 +220,5 @@ export declare class SearchApi extends BaseAPI {
237
220
  * @throws {RequiredError}
238
221
  * @memberof SearchApi
239
222
  */
240
- getSearchHints(requestParameters: SearchApiGetSearchHintsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SearchHintResult, any>>;
223
+ getSearchHints(requestParameters: SearchApiGetSearchHintsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SearchHintResult, any>>;
241
224
  }
@@ -1,7 +1,6 @@
1
- import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
2
1
  import globalAxios from 'axios';
3
2
  import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
4
- import { BaseAPI, BASE_PATH } from '../base.js';
3
+ import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
5
4
 
6
5
  /* tslint:disable */
7
6
  /* eslint-disable */
@@ -45,7 +44,7 @@ const SearchApiAxiosParamCreator = function (configuration) {
45
44
  * @param {*} [options] Override http request option.
46
45
  * @throws {RequiredError}
47
46
  */
48
- getSearchHints: (searchTerm_1, startIndex_1, limit_1, userId_1, includeItemTypes_1, excludeItemTypes_1, mediaTypes_1, parentId_1, isMovie_1, isSeries_1, isNews_1, isKids_1, isSports_1, includePeople_1, includeMedia_1, includeGenres_1, includeStudios_1, includeArtists_1, ...args_1) => __awaiter(this, [searchTerm_1, startIndex_1, limit_1, userId_1, includeItemTypes_1, excludeItemTypes_1, mediaTypes_1, parentId_1, isMovie_1, isSeries_1, isNews_1, isKids_1, isSports_1, includePeople_1, includeMedia_1, includeGenres_1, includeStudios_1, includeArtists_1, ...args_1], void 0, function* (searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options = {}) {
47
+ getSearchHints: async (searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options = {}) => {
49
48
  // verify required parameter 'searchTerm' is not null or undefined
50
49
  assertParamExists('getSearchHints', 'searchTerm', searchTerm);
51
50
  const localVarPath = `/Search/Hints`;
@@ -55,11 +54,11 @@ const SearchApiAxiosParamCreator = function (configuration) {
55
54
  if (configuration) {
56
55
  baseOptions = configuration.baseOptions;
57
56
  }
58
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
57
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
59
58
  const localVarHeaderParameter = {};
60
59
  const localVarQueryParameter = {};
61
60
  // authentication CustomAuthentication required
62
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
61
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
63
62
  if (startIndex !== undefined) {
64
63
  localVarQueryParameter['startIndex'] = startIndex;
65
64
  }
@@ -116,12 +115,12 @@ const SearchApiAxiosParamCreator = function (configuration) {
116
115
  }
117
116
  setSearchParams(localVarUrlObj, localVarQueryParameter);
118
117
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
119
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
118
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
120
119
  return {
121
120
  url: toPathString(localVarUrlObj),
122
121
  options: localVarRequestOptions,
123
122
  };
124
- }),
123
+ },
125
124
  };
126
125
  };
127
126
  /**
@@ -155,11 +154,12 @@ const SearchApiFp = function (configuration) {
155
154
  * @param {*} [options] Override http request option.
156
155
  * @throws {RequiredError}
157
156
  */
158
- getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options) {
159
- return __awaiter(this, void 0, void 0, function* () {
160
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options);
161
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
162
- });
157
+ async getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options) {
158
+ var _a, _b, _c;
159
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options);
160
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
161
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.getSearchHints']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
162
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
163
163
  },
164
164
  };
165
165
  };
@@ -173,29 +173,12 @@ const SearchApiFactory = function (configuration, basePath, axios) {
173
173
  /**
174
174
  *
175
175
  * @summary Gets the search hint result.
176
- * @param {string} searchTerm The search term to filter on.
177
- * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
178
- * @param {number} [limit] Optional. The maximum number of records to return.
179
- * @param {string} [userId] Optional. Supply a user id to search within a user\&#39;s library or omit to search all.
180
- * @param {Array<BaseItemKind>} [includeItemTypes] If specified, only results with the specified item types are returned. This allows multiple, comma delimited.
181
- * @param {Array<BaseItemKind>} [excludeItemTypes] If specified, results with these item types are filtered out. This allows multiple, comma delimited.
182
- * @param {Array<MediaType>} [mediaTypes] If specified, only results with the specified media types are returned. This allows multiple, comma delimited.
183
- * @param {string} [parentId] If specified, only children of the parent are returned.
184
- * @param {boolean} [isMovie] Optional filter for movies.
185
- * @param {boolean} [isSeries] Optional filter for series.
186
- * @param {boolean} [isNews] Optional filter for news.
187
- * @param {boolean} [isKids] Optional filter for kids.
188
- * @param {boolean} [isSports] Optional filter for sports.
189
- * @param {boolean} [includePeople] Optional filter whether to include people.
190
- * @param {boolean} [includeMedia] Optional filter whether to include media.
191
- * @param {boolean} [includeGenres] Optional filter whether to include genres.
192
- * @param {boolean} [includeStudios] Optional filter whether to include studios.
193
- * @param {boolean} [includeArtists] Optional filter whether to include artists.
176
+ * @param {SearchApiGetSearchHintsRequest} requestParameters Request parameters.
194
177
  * @param {*} [options] Override http request option.
195
178
  * @throws {RequiredError}
196
179
  */
197
- getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options) {
198
- return localVarFp.getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options).then((request) => request(axios, basePath));
180
+ getSearchHints(requestParameters, options) {
181
+ return localVarFp.getSearchHints(requestParameters.searchTerm, requestParameters.startIndex, requestParameters.limit, requestParameters.userId, requestParameters.includeItemTypes, requestParameters.excludeItemTypes, requestParameters.mediaTypes, requestParameters.parentId, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.includePeople, requestParameters.includeMedia, requestParameters.includeGenres, requestParameters.includeStudios, requestParameters.includeArtists, options).then((request) => request(axios, basePath));
199
182
  },
200
183
  };
201
184
  };