@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
package/README.md CHANGED
@@ -35,6 +35,8 @@ yarn add @jellyfin/sdk
35
35
 
36
36
  | SDK Version | Jellyfin Version |
37
37
  |:-:|:-:|
38
+ | 0.11.0 | 10.10.x |
39
+ | 0.10.0 | 10.9.x |
38
40
  | 0.9.0 | 10.9.x |
39
41
  | 0.8.2 - 0.6.0 | 10.8.1 - 10.8.13 |
40
42
  | 0.5.0 | 10.8.0 |
@@ -107,6 +109,14 @@ await api.logout();
107
109
 
108
110
  ## Breaking Changes
109
111
 
112
+ ### v0.11.0
113
+
114
+ * Updated OpenAPI spec for Jellyfin 10.10.0. [#816](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/816)
115
+
116
+ ### v0.10.0
117
+
118
+ * Updated build target to ES2018. [#712](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/712)
119
+
110
120
  ### v0.9.0
111
121
 
112
122
  * Updated OpenAPI spec for Jellyfin 10.9.1. [#694](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/694)
package/lib/api.d.ts CHANGED
@@ -6,9 +6,7 @@
6
6
  import type { AxiosInstance, AxiosResponse } from 'axios';
7
7
  import { Configuration } from './generated-client/configuration';
8
8
  import type { AuthenticationResult } from './generated-client/models/authentication-result';
9
- import { ImageType } from './generated-client/models/image-type';
10
9
  import type { ClientInfo, DeviceInfo } from './models';
11
- import type { ImageRequestParameters } from './models/api/image-request-parameters';
12
10
  /** The authorization header field name. */
13
11
  export declare const AUTHORIZATION_HEADER = "Authorization";
14
12
  /** Class representing the Jellyfin API. */
@@ -30,14 +28,5 @@ export declare class Api {
30
28
  * Convenience method for logging out and updating the internal state.
31
29
  */
32
30
  logout(): Promise<AxiosResponse<never> | AxiosResponse<void>>;
33
- /**
34
- * Get an item image URL.
35
- * @deprecated Use {@link ImageUrlsApi.getItemImageUrlById} instead.
36
- * @param itemId The Item ID.
37
- * @param imageType An optional Image Type (Primary by default).
38
- * @param params Additional request parameters.
39
- * @returns The image URL.
40
- */
41
- getItemImageUrl(itemId: string, imageType?: ImageType, params?: ImageRequestParameters): string | undefined;
42
31
  get authorizationHeader(): string;
43
32
  }
package/lib/api.js CHANGED
@@ -1,8 +1,6 @@
1
1
  import globalAxios from 'axios';
2
2
  import { Configuration } from './generated-client/configuration.js';
3
- import { ImageType } from './generated-client/models/image-type.js';
4
3
  import { getAuthorizationHeader } from './utils/authentication.js';
5
- import { getImageApi } from './utils/api/image-api.js';
6
4
  import { getSessionApi } from './utils/api/session-api.js';
7
5
  import { getUserApi } from './utils/api/user-api.js';
8
6
 
@@ -49,18 +47,6 @@ class Api {
49
47
  return response;
50
48
  });
51
49
  }
52
- /**
53
- * Get an item image URL.
54
- * @deprecated Use {@link ImageUrlsApi.getItemImageUrlById} instead.
55
- * @param itemId The Item ID.
56
- * @param imageType An optional Image Type (Primary by default).
57
- * @param params Additional request parameters.
58
- * @returns The image URL.
59
- */
60
- getItemImageUrl(itemId, imageType = ImageType.Primary, params = {}) {
61
- return getImageApi(this)
62
- .getItemImageUrlById(itemId, imageType, params);
63
- }
64
50
  get authorizationHeader() {
65
51
  return getAuthorizationHeader(this.clientInfo, this.deviceInfo, this.accessToken);
66
52
  }
@@ -1,4 +1,3 @@
1
- import { __awaiter } from '../node_modules/tslib/tslib.es6.js';
2
1
  import { RecommendedServerInfoScore } from '../models/recommended-server-info.js';
3
2
  import { getAddressCandidates } from '../utils/address-candidates.js';
4
3
  import { RecommendedServerDiscovery } from './recommended-server-discovery.js';
@@ -49,10 +48,8 @@ class DiscoveryService {
49
48
  * @param minimumScore The minimum server score to include in the results.
50
49
  * @returns A list of RecommendedServerInfo from the possible server addresses.
51
50
  */
52
- getRecommendedServers(servers, minimumScore) {
53
- return __awaiter(this, void 0, void 0, function* () {
54
- return this.recommendedServerDiscovery.discover(servers, minimumScore);
55
- });
51
+ async getRecommendedServers(servers, minimumScore) {
52
+ return this.recommendedServerDiscovery.discover(servers, minimumScore);
56
53
  }
57
54
  /**
58
55
  * Gets a list of recommended server information from the address
@@ -61,10 +58,8 @@ class DiscoveryService {
61
58
  * @param minimumScore The minimum server score to include in the results.
62
59
  * @returns A list of RecommendedServerInfo from the address candidates.
63
60
  */
64
- getRecommendedServerCandidates(input, minimumScore) {
65
- return __awaiter(this, void 0, void 0, function* () {
66
- return this.getRecommendedServers(this.getAddressCandidates(input), minimumScore);
67
- });
61
+ async getRecommendedServerCandidates(input, minimumScore) {
62
+ return this.getRecommendedServers(this.getAddressCandidates(input), minimumScore);
68
63
  }
69
64
  }
70
65
 
@@ -1,4 +1,3 @@
1
- import { __awaiter } from '../node_modules/tslib/tslib.es6.js';
2
1
  import { RecommendedServerInfoScore } from '../models/recommended-server-info.js';
3
2
  import { SystemInfoIssue, ProductNameIssue, VersionMissingIssue, VersionUnsupportedIssue, VersionOutdatedIssue, SlowResponseIssue } from '../models/recommended-server-issue.js';
4
3
  import { getSystemApi } from '../utils/api/system-api.js';
@@ -82,33 +81,29 @@ class RecommendedServerDiscovery {
82
81
  * @param address The server address.
83
82
  * @returns The resulting RecommendedServerInfo.
84
83
  */
85
- fetchRecommendedServerInfo(address) {
86
- return __awaiter(this, void 0, void 0, function* () {
87
- const api = this.jellyfin.createApi(address);
88
- const startTime = Date.now();
89
- return getSystemApi(api).getPublicSystemInfo({ timeout: HTTP_TIMEOUT })
90
- .then(response => ({
91
- address,
92
- response,
93
- responseTime: Date.now() - startTime
94
- }))
95
- .catch(error => ({
96
- address,
97
- error,
98
- responseTime: Date.now() - startTime
99
- }))
100
- .then(result => toRecommendedServerInfo(result));
101
- });
84
+ async fetchRecommendedServerInfo(address) {
85
+ const api = this.jellyfin.createApi(address);
86
+ const startTime = Date.now();
87
+ return getSystemApi(api).getPublicSystemInfo({ timeout: HTTP_TIMEOUT })
88
+ .then(response => ({
89
+ address,
90
+ response,
91
+ responseTime: Date.now() - startTime
92
+ }))
93
+ .catch(error => ({
94
+ address,
95
+ error,
96
+ responseTime: Date.now() - startTime
97
+ }))
98
+ .then(result => toRecommendedServerInfo(result));
102
99
  }
103
100
  /**
104
101
  * Fetches the RecommendedServerInfo for multiple server addresses.
105
102
  * @param servers An array of server addresses.
106
103
  * @returns The RecommendedServerInfo for each address.
107
104
  */
108
- discover(servers_1) {
109
- return __awaiter(this, arguments, void 0, function* (servers, minimumScore = RecommendedServerInfoScore.BAD) {
110
- return (yield Promise.all(servers.map(server => this.fetchRecommendedServerInfo(server)))).filter(serverInfo => serverInfo.score >= minimumScore);
111
- });
105
+ async discover(servers, minimumScore = RecommendedServerInfoScore.BAD) {
106
+ return (await Promise.all(servers.map(server => this.fetchRecommendedServerInfo(server)))).filter(serverInfo => serverInfo.score >= minimumScore);
112
107
  }
113
108
  }
114
109
 
@@ -8,10 +8,10 @@
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 { ActivityLogEntryQueryResult } 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 { ActivityLogEntryQueryResult } from '../models';
15
15
  /**
16
16
  * ActivityLogApi - axios parameter creator
17
17
  * @export
@@ -27,7 +27,7 @@ export declare const ActivityLogApiAxiosParamCreator: (configuration?: Configura
27
27
  * @param {*} [options] Override http request option.
28
28
  * @throws {RequiredError}
29
29
  */
30
- getLogEntries: (startIndex?: number, limit?: number, minDate?: string, hasUserId?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ getLogEntries: (startIndex?: number, limit?: number, minDate?: string, hasUserId?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
31
  };
32
32
  /**
33
33
  * ActivityLogApi - functional programming interface
@@ -44,7 +44,7 @@ export declare const ActivityLogApiFp: (configuration?: Configuration) => {
44
44
  * @param {*} [options] Override http request option.
45
45
  * @throws {RequiredError}
46
46
  */
47
- getLogEntries(startIndex?: number, limit?: number, minDate?: string, hasUserId?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityLogEntryQueryResult>>;
47
+ getLogEntries(startIndex?: number, limit?: number, minDate?: string, hasUserId?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityLogEntryQueryResult>>;
48
48
  };
49
49
  /**
50
50
  * ActivityLogApi - factory interface
@@ -54,14 +54,11 @@ export declare const ActivityLogApiFactory: (configuration?: Configuration, base
54
54
  /**
55
55
  *
56
56
  * @summary Gets activity log entries.
57
- * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
58
- * @param {number} [limit] Optional. The maximum number of records to return.
59
- * @param {string} [minDate] Optional. The minimum date. Format &#x3D; ISO.
60
- * @param {boolean} [hasUserId] Optional. Filter log entries if it has user id, or not.
57
+ * @param {ActivityLogApiGetLogEntriesRequest} requestParameters Request parameters.
61
58
  * @param {*} [options] Override http request option.
62
59
  * @throws {RequiredError}
63
60
  */
64
- getLogEntries(startIndex?: number, limit?: number, minDate?: string, hasUserId?: boolean, options?: any): AxiosPromise<ActivityLogEntryQueryResult>;
61
+ getLogEntries(requestParameters?: ActivityLogApiGetLogEntriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ActivityLogEntryQueryResult>;
65
62
  };
66
63
  /**
67
64
  * Request parameters for getLogEntries operation in ActivityLogApi.
@@ -109,5 +106,5 @@ export declare class ActivityLogApi extends BaseAPI {
109
106
  * @throws {RequiredError}
110
107
  * @memberof ActivityLogApi
111
108
  */
112
- getLogEntries(requestParameters?: ActivityLogApiGetLogEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ActivityLogEntryQueryResult, any>>;
109
+ getLogEntries(requestParameters?: ActivityLogApiGetLogEntriesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ActivityLogEntryQueryResult, any>>;
113
110
  }
@@ -1,7 +1,6 @@
1
- import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
2
1
  import globalAxios from 'axios';
3
2
  import { 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 */
@@ -31,7 +30,7 @@ const ActivityLogApiAxiosParamCreator = function (configuration) {
31
30
  * @param {*} [options] Override http request option.
32
31
  * @throws {RequiredError}
33
32
  */
34
- getLogEntries: (startIndex_1, limit_1, minDate_1, hasUserId_1, ...args_1) => __awaiter(this, [startIndex_1, limit_1, minDate_1, hasUserId_1, ...args_1], void 0, function* (startIndex, limit, minDate, hasUserId, options = {}) {
33
+ getLogEntries: async (startIndex, limit, minDate, hasUserId, options = {}) => {
35
34
  const localVarPath = `/System/ActivityLog/Entries`;
36
35
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
37
36
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -39,11 +38,11 @@ const ActivityLogApiAxiosParamCreator = 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
  if (startIndex !== undefined) {
48
47
  localVarQueryParameter['startIndex'] = startIndex;
49
48
  }
@@ -60,12 +59,12 @@ const ActivityLogApiAxiosParamCreator = function (configuration) {
60
59
  }
61
60
  setSearchParams(localVarUrlObj, localVarQueryParameter);
62
61
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
64
63
  return {
65
64
  url: toPathString(localVarUrlObj),
66
65
  options: localVarRequestOptions,
67
66
  };
68
- }),
67
+ },
69
68
  };
70
69
  };
71
70
  /**
@@ -85,11 +84,12 @@ const ActivityLogApiFp = function (configuration) {
85
84
  * @param {*} [options] Override http request option.
86
85
  * @throws {RequiredError}
87
86
  */
88
- getLogEntries(startIndex, limit, minDate, hasUserId, options) {
89
- return __awaiter(this, void 0, void 0, function* () {
90
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getLogEntries(startIndex, limit, minDate, hasUserId, options);
91
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
92
- });
87
+ async getLogEntries(startIndex, limit, minDate, hasUserId, options) {
88
+ var _a, _b, _c;
89
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLogEntries(startIndex, limit, minDate, hasUserId, options);
90
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
91
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ActivityLogApi.getLogEntries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
92
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
93
93
  },
94
94
  };
95
95
  };
@@ -103,15 +103,12 @@ const ActivityLogApiFactory = function (configuration, basePath, axios) {
103
103
  /**
104
104
  *
105
105
  * @summary Gets activity log entries.
106
- * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
107
- * @param {number} [limit] Optional. The maximum number of records to return.
108
- * @param {string} [minDate] Optional. The minimum date. Format &#x3D; ISO.
109
- * @param {boolean} [hasUserId] Optional. Filter log entries if it has user id, or not.
106
+ * @param {ActivityLogApiGetLogEntriesRequest} requestParameters Request parameters.
110
107
  * @param {*} [options] Override http request option.
111
108
  * @throws {RequiredError}
112
109
  */
113
- getLogEntries(startIndex, limit, minDate, hasUserId, options) {
114
- return localVarFp.getLogEntries(startIndex, limit, minDate, hasUserId, options).then((request) => request(axios, basePath));
110
+ getLogEntries(requestParameters = {}, options) {
111
+ return localVarFp.getLogEntries(requestParameters.startIndex, requestParameters.limit, requestParameters.minDate, requestParameters.hasUserId, options).then((request) => request(axios, basePath));
115
112
  },
116
113
  };
117
114
  };
@@ -8,10 +8,10 @@
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 { AuthenticationInfoQueryResult } 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 { AuthenticationInfoQueryResult } from '../models';
15
15
  /**
16
16
  * ApiKeyApi - axios parameter creator
17
17
  * @export
@@ -24,14 +24,14 @@ export declare const ApiKeyApiAxiosParamCreator: (configuration?: Configuration)
24
24
  * @param {*} [options] Override http request option.
25
25
  * @throws {RequiredError}
26
26
  */
27
- createKey: (app: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
+ createKey: (app: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28
28
  /**
29
29
  *
30
30
  * @summary Get all keys.
31
31
  * @param {*} [options] Override http request option.
32
32
  * @throws {RequiredError}
33
33
  */
34
- getKeys: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
+ getKeys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
35
35
  /**
36
36
  *
37
37
  * @summary Remove an api key.
@@ -39,7 +39,7 @@ export declare const ApiKeyApiAxiosParamCreator: (configuration?: Configuration)
39
39
  * @param {*} [options] Override http request option.
40
40
  * @throws {RequiredError}
41
41
  */
42
- revokeKey: (key: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ revokeKey: (key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
43
43
  };
44
44
  /**
45
45
  * ApiKeyApi - functional programming interface
@@ -53,14 +53,14 @@ export declare const ApiKeyApiFp: (configuration?: Configuration) => {
53
53
  * @param {*} [options] Override http request option.
54
54
  * @throws {RequiredError}
55
55
  */
56
- createKey(app: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
56
+ createKey(app: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
57
57
  /**
58
58
  *
59
59
  * @summary Get all keys.
60
60
  * @param {*} [options] Override http request option.
61
61
  * @throws {RequiredError}
62
62
  */
63
- getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticationInfoQueryResult>>;
63
+ getKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticationInfoQueryResult>>;
64
64
  /**
65
65
  *
66
66
  * @summary Remove an api key.
@@ -68,7 +68,7 @@ export declare const ApiKeyApiFp: (configuration?: Configuration) => {
68
68
  * @param {*} [options] Override http request option.
69
69
  * @throws {RequiredError}
70
70
  */
71
- revokeKey(key: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
71
+ revokeKey(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
72
72
  };
73
73
  /**
74
74
  * ApiKeyApi - factory interface
@@ -78,26 +78,26 @@ export declare const ApiKeyApiFactory: (configuration?: Configuration, basePath?
78
78
  /**
79
79
  *
80
80
  * @summary Create a new api key.
81
- * @param {string} app Name of the app using the authentication key.
81
+ * @param {ApiKeyApiCreateKeyRequest} requestParameters Request parameters.
82
82
  * @param {*} [options] Override http request option.
83
83
  * @throws {RequiredError}
84
84
  */
85
- createKey(app: string, options?: any): AxiosPromise<void>;
85
+ createKey(requestParameters: ApiKeyApiCreateKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
86
86
  /**
87
87
  *
88
88
  * @summary Get all keys.
89
89
  * @param {*} [options] Override http request option.
90
90
  * @throws {RequiredError}
91
91
  */
92
- getKeys(options?: any): AxiosPromise<AuthenticationInfoQueryResult>;
92
+ getKeys(options?: RawAxiosRequestConfig): AxiosPromise<AuthenticationInfoQueryResult>;
93
93
  /**
94
94
  *
95
95
  * @summary Remove an api key.
96
- * @param {string} key The access token to delete.
96
+ * @param {ApiKeyApiRevokeKeyRequest} requestParameters Request parameters.
97
97
  * @param {*} [options] Override http request option.
98
98
  * @throws {RequiredError}
99
99
  */
100
- revokeKey(key: string, options?: any): AxiosPromise<void>;
100
+ revokeKey(requestParameters: ApiKeyApiRevokeKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
101
101
  };
102
102
  /**
103
103
  * Request parameters for createKey operation in ApiKeyApi.
@@ -140,7 +140,7 @@ export declare class ApiKeyApi extends BaseAPI {
140
140
  * @throws {RequiredError}
141
141
  * @memberof ApiKeyApi
142
142
  */
143
- createKey(requestParameters: ApiKeyApiCreateKeyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
143
+ createKey(requestParameters: ApiKeyApiCreateKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
144
144
  /**
145
145
  *
146
146
  * @summary Get all keys.
@@ -148,7 +148,7 @@ export declare class ApiKeyApi extends BaseAPI {
148
148
  * @throws {RequiredError}
149
149
  * @memberof ApiKeyApi
150
150
  */
151
- getKeys(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticationInfoQueryResult, any>>;
151
+ getKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticationInfoQueryResult, any>>;
152
152
  /**
153
153
  *
154
154
  * @summary Remove an api key.
@@ -157,5 +157,5 @@ export declare class ApiKeyApi extends BaseAPI {
157
157
  * @throws {RequiredError}
158
158
  * @memberof ApiKeyApi
159
159
  */
160
- revokeKey(requestParameters: ApiKeyApiRevokeKeyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
160
+ revokeKey(requestParameters: ApiKeyApiRevokeKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
161
161
  }
@@ -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 */
@@ -28,7 +27,7 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
28
27
  * @param {*} [options] Override http request option.
29
28
  * @throws {RequiredError}
30
29
  */
31
- createKey: (app_1, ...args_1) => __awaiter(this, [app_1, ...args_1], void 0, function* (app, options = {}) {
30
+ createKey: async (app, options = {}) => {
32
31
  // verify required parameter 'app' is not null or undefined
33
32
  assertParamExists('createKey', 'app', app);
34
33
  const localVarPath = `/Auth/Keys`;
@@ -38,29 +37,29 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
38
37
  if (configuration) {
39
38
  baseOptions = configuration.baseOptions;
40
39
  }
41
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
40
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42
41
  const localVarHeaderParameter = {};
43
42
  const localVarQueryParameter = {};
44
43
  // authentication CustomAuthentication required
45
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
44
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
46
45
  if (app !== undefined) {
47
46
  localVarQueryParameter['app'] = app;
48
47
  }
49
48
  setSearchParams(localVarUrlObj, localVarQueryParameter);
50
49
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
51
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
50
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
52
51
  return {
53
52
  url: toPathString(localVarUrlObj),
54
53
  options: localVarRequestOptions,
55
54
  };
56
- }),
55
+ },
57
56
  /**
58
57
  *
59
58
  * @summary Get all keys.
60
59
  * @param {*} [options] Override http request option.
61
60
  * @throws {RequiredError}
62
61
  */
63
- getKeys: (...args_2) => __awaiter(this, [...args_2], void 0, function* (options = {}) {
62
+ getKeys: async (options = {}) => {
64
63
  const localVarPath = `/Auth/Keys`;
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,19 +67,19 @@ const ApiKeyApiAxiosParamCreator = 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
  setSearchParams(localVarUrlObj, localVarQueryParameter);
77
76
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
77
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
79
78
  return {
80
79
  url: toPathString(localVarUrlObj),
81
80
  options: localVarRequestOptions,
82
81
  };
83
- }),
82
+ },
84
83
  /**
85
84
  *
86
85
  * @summary Remove an api key.
@@ -88,7 +87,7 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
88
87
  * @param {*} [options] Override http request option.
89
88
  * @throws {RequiredError}
90
89
  */
91
- revokeKey: (key_1, ...args_3) => __awaiter(this, [key_1, ...args_3], void 0, function* (key, options = {}) {
90
+ revokeKey: async (key, options = {}) => {
92
91
  // verify required parameter 'key' is not null or undefined
93
92
  assertParamExists('revokeKey', 'key', key);
94
93
  const localVarPath = `/Auth/Keys/{key}`
@@ -99,19 +98,19 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
99
98
  if (configuration) {
100
99
  baseOptions = configuration.baseOptions;
101
100
  }
102
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
101
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
103
102
  const localVarHeaderParameter = {};
104
103
  const localVarQueryParameter = {};
105
104
  // authentication CustomAuthentication required
106
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
105
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
107
106
  setSearchParams(localVarUrlObj, localVarQueryParameter);
108
107
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
109
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
108
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
110
109
  return {
111
110
  url: toPathString(localVarUrlObj),
112
111
  options: localVarRequestOptions,
113
112
  };
114
- }),
113
+ },
115
114
  };
116
115
  };
117
116
  /**
@@ -128,11 +127,12 @@ const ApiKeyApiFp = function (configuration) {
128
127
  * @param {*} [options] Override http request option.
129
128
  * @throws {RequiredError}
130
129
  */
131
- createKey(app, options) {
132
- return __awaiter(this, void 0, void 0, function* () {
133
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createKey(app, options);
134
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
135
- });
130
+ async createKey(app, options) {
131
+ var _a, _b, _c;
132
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(app, options);
133
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
134
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeyApi.createKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
135
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
136
136
  },
137
137
  /**
138
138
  *
@@ -140,11 +140,12 @@ const ApiKeyApiFp = function (configuration) {
140
140
  * @param {*} [options] Override http request option.
141
141
  * @throws {RequiredError}
142
142
  */
143
- getKeys(options) {
144
- return __awaiter(this, void 0, void 0, function* () {
145
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getKeys(options);
146
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
147
- });
143
+ async getKeys(options) {
144
+ var _a, _b, _c;
145
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
146
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
147
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeyApi.getKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
148
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
148
149
  },
149
150
  /**
150
151
  *
@@ -153,11 +154,12 @@ const ApiKeyApiFp = function (configuration) {
153
154
  * @param {*} [options] Override http request option.
154
155
  * @throws {RequiredError}
155
156
  */
156
- revokeKey(key, options) {
157
- return __awaiter(this, void 0, void 0, function* () {
158
- const localVarAxiosArgs = yield localVarAxiosParamCreator.revokeKey(key, options);
159
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
160
- });
157
+ async revokeKey(key, options) {
158
+ var _a, _b, _c;
159
+ const localVarAxiosArgs = await localVarAxiosParamCreator.revokeKey(key, 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['ApiKeyApi.revokeKey']) === 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);
161
163
  },
162
164
  };
163
165
  };
@@ -171,12 +173,12 @@ const ApiKeyApiFactory = function (configuration, basePath, axios) {
171
173
  /**
172
174
  *
173
175
  * @summary Create a new api key.
174
- * @param {string} app Name of the app using the authentication key.
176
+ * @param {ApiKeyApiCreateKeyRequest} requestParameters Request parameters.
175
177
  * @param {*} [options] Override http request option.
176
178
  * @throws {RequiredError}
177
179
  */
178
- createKey(app, options) {
179
- return localVarFp.createKey(app, options).then((request) => request(axios, basePath));
180
+ createKey(requestParameters, options) {
181
+ return localVarFp.createKey(requestParameters.app, options).then((request) => request(axios, basePath));
180
182
  },
181
183
  /**
182
184
  *
@@ -190,12 +192,12 @@ const ApiKeyApiFactory = function (configuration, basePath, axios) {
190
192
  /**
191
193
  *
192
194
  * @summary Remove an api key.
193
- * @param {string} key The access token to delete.
195
+ * @param {ApiKeyApiRevokeKeyRequest} requestParameters Request parameters.
194
196
  * @param {*} [options] Override http request option.
195
197
  * @throws {RequiredError}
196
198
  */
197
- revokeKey(key, options) {
198
- return localVarFp.revokeKey(key, options).then((request) => request(axios, basePath));
199
+ revokeKey(requestParameters, options) {
200
+ return localVarFp.revokeKey(requestParameters.key, options).then((request) => request(axios, basePath));
199
201
  },
200
202
  };
201
203
  };