@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, 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 */
@@ -36,7 +35,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
36
35
  * @param {number} [minSegments] The minimum number of segments.
37
36
  * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
38
37
  * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
39
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
38
+ * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension.
40
39
  * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
41
40
  * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
42
41
  * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
@@ -66,17 +65,18 @@ const AudioApiAxiosParamCreator = function (configuration) {
66
65
  * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
67
66
  * @param {string} [liveStreamId] The live stream id.
68
67
  * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
69
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
68
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension.
70
69
  * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
71
70
  * @param {string} [transcodeReasons] Optional. The transcoding reason.
72
71
  * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
73
72
  * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
74
73
  * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
75
74
  * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
75
+ * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding.
76
76
  * @param {*} [options] Override http request option.
77
77
  * @throws {RequiredError}
78
78
  */
79
- getAudioStream: (itemId_1, container_1, _static_1, params_1, tag_1, deviceProfileId_1, playSessionId_1, segmentContainer_1, segmentLength_1, minSegments_1, mediaSourceId_1, deviceId_1, audioCodec_1, enableAutoStreamCopy_1, allowVideoStreamCopy_1, allowAudioStreamCopy_1, breakOnNonKeyFrames_1, audioSampleRate_1, maxAudioBitDepth_1, audioBitRate_1, audioChannels_1, maxAudioChannels_1, profile_1, level_1, framerate_1, maxFramerate_1, copyTimestamps_1, startTimeTicks_1, width_1, height_1, videoBitRate_1, subtitleStreamIndex_1, subtitleMethod_1, maxRefFrames_1, maxVideoBitDepth_1, requireAvc_1, deInterlace_1, requireNonAnamorphic_1, transcodingMaxAudioChannels_1, cpuCoreLimit_1, liveStreamId_1, enableMpegtsM2TsMode_1, videoCodec_1, subtitleCodec_1, transcodeReasons_1, audioStreamIndex_1, videoStreamIndex_1, context_1, streamOptions_1, ...args_1) => __awaiter(this, [itemId_1, container_1, _static_1, params_1, tag_1, deviceProfileId_1, playSessionId_1, segmentContainer_1, segmentLength_1, minSegments_1, mediaSourceId_1, deviceId_1, audioCodec_1, enableAutoStreamCopy_1, allowVideoStreamCopy_1, allowAudioStreamCopy_1, breakOnNonKeyFrames_1, audioSampleRate_1, maxAudioBitDepth_1, audioBitRate_1, audioChannels_1, maxAudioChannels_1, profile_1, level_1, framerate_1, maxFramerate_1, copyTimestamps_1, startTimeTicks_1, width_1, height_1, videoBitRate_1, subtitleStreamIndex_1, subtitleMethod_1, maxRefFrames_1, maxVideoBitDepth_1, requireAvc_1, deInterlace_1, requireNonAnamorphic_1, transcodingMaxAudioChannels_1, cpuCoreLimit_1, liveStreamId_1, enableMpegtsM2TsMode_1, videoCodec_1, subtitleCodec_1, transcodeReasons_1, audioStreamIndex_1, videoStreamIndex_1, context_1, streamOptions_1, ...args_1], void 0, function* (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options = {}) {
79
+ getAudioStream: async (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options = {}) => {
80
80
  // verify required parameter 'itemId' is not null or undefined
81
81
  assertParamExists('getAudioStream', 'itemId', itemId);
82
82
  const localVarPath = `/Audio/{itemId}/stream`
@@ -87,7 +87,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
87
87
  if (configuration) {
88
88
  baseOptions = configuration.baseOptions;
89
89
  }
90
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
90
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
91
91
  const localVarHeaderParameter = {};
92
92
  const localVarQueryParameter = {};
93
93
  if (container !== undefined) {
@@ -232,16 +232,21 @@ const AudioApiAxiosParamCreator = function (configuration) {
232
232
  localVarQueryParameter['context'] = context;
233
233
  }
234
234
  if (streamOptions !== undefined) {
235
- localVarQueryParameter['streamOptions'] = streamOptions;
235
+ for (const [key, value] of Object.entries(streamOptions)) {
236
+ localVarQueryParameter[key] = value;
237
+ }
238
+ }
239
+ if (enableAudioVbrEncoding !== undefined) {
240
+ localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding;
236
241
  }
237
242
  setSearchParams(localVarUrlObj, localVarQueryParameter);
238
243
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
239
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
244
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
240
245
  return {
241
246
  url: toPathString(localVarUrlObj),
242
247
  options: localVarRequestOptions,
243
248
  };
244
- }),
249
+ },
245
250
  /**
246
251
  *
247
252
  * @summary Gets an audio stream.
@@ -257,7 +262,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
257
262
  * @param {number} [minSegments] The minimum number of segments.
258
263
  * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
259
264
  * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
260
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
265
+ * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension.
261
266
  * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
262
267
  * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
263
268
  * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
@@ -287,17 +292,18 @@ const AudioApiAxiosParamCreator = function (configuration) {
287
292
  * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
288
293
  * @param {string} [liveStreamId] The live stream id.
289
294
  * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
290
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
295
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension.
291
296
  * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
292
297
  * @param {string} [transcodeReasons] Optional. The transcoding reason.
293
298
  * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
294
299
  * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
295
300
  * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
296
301
  * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
302
+ * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding.
297
303
  * @param {*} [options] Override http request option.
298
304
  * @throws {RequiredError}
299
305
  */
300
- getAudioStreamByContainer: (itemId_2, container_2, _static_2, params_2, tag_2, deviceProfileId_2, playSessionId_2, segmentContainer_2, segmentLength_2, minSegments_2, mediaSourceId_2, deviceId_2, audioCodec_2, enableAutoStreamCopy_2, allowVideoStreamCopy_2, allowAudioStreamCopy_2, breakOnNonKeyFrames_2, audioSampleRate_2, maxAudioBitDepth_2, audioBitRate_2, audioChannels_2, maxAudioChannels_2, profile_2, level_2, framerate_2, maxFramerate_2, copyTimestamps_2, startTimeTicks_2, width_2, height_2, videoBitRate_2, subtitleStreamIndex_2, subtitleMethod_2, maxRefFrames_2, maxVideoBitDepth_2, requireAvc_2, deInterlace_2, requireNonAnamorphic_2, transcodingMaxAudioChannels_2, cpuCoreLimit_2, liveStreamId_2, enableMpegtsM2TsMode_2, videoCodec_2, subtitleCodec_2, transcodeReasons_2, audioStreamIndex_2, videoStreamIndex_2, context_2, streamOptions_2, ...args_2) => __awaiter(this, [itemId_2, container_2, _static_2, params_2, tag_2, deviceProfileId_2, playSessionId_2, segmentContainer_2, segmentLength_2, minSegments_2, mediaSourceId_2, deviceId_2, audioCodec_2, enableAutoStreamCopy_2, allowVideoStreamCopy_2, allowAudioStreamCopy_2, breakOnNonKeyFrames_2, audioSampleRate_2, maxAudioBitDepth_2, audioBitRate_2, audioChannels_2, maxAudioChannels_2, profile_2, level_2, framerate_2, maxFramerate_2, copyTimestamps_2, startTimeTicks_2, width_2, height_2, videoBitRate_2, subtitleStreamIndex_2, subtitleMethod_2, maxRefFrames_2, maxVideoBitDepth_2, requireAvc_2, deInterlace_2, requireNonAnamorphic_2, transcodingMaxAudioChannels_2, cpuCoreLimit_2, liveStreamId_2, enableMpegtsM2TsMode_2, videoCodec_2, subtitleCodec_2, transcodeReasons_2, audioStreamIndex_2, videoStreamIndex_2, context_2, streamOptions_2, ...args_2], void 0, function* (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options = {}) {
306
+ getAudioStreamByContainer: async (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options = {}) => {
301
307
  // verify required parameter 'itemId' is not null or undefined
302
308
  assertParamExists('getAudioStreamByContainer', 'itemId', itemId);
303
309
  // verify required parameter 'container' is not null or undefined
@@ -311,7 +317,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
311
317
  if (configuration) {
312
318
  baseOptions = configuration.baseOptions;
313
319
  }
314
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
320
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
315
321
  const localVarHeaderParameter = {};
316
322
  const localVarQueryParameter = {};
317
323
  if (_static !== undefined) {
@@ -453,16 +459,21 @@ const AudioApiAxiosParamCreator = function (configuration) {
453
459
  localVarQueryParameter['context'] = context;
454
460
  }
455
461
  if (streamOptions !== undefined) {
456
- localVarQueryParameter['streamOptions'] = streamOptions;
462
+ for (const [key, value] of Object.entries(streamOptions)) {
463
+ localVarQueryParameter[key] = value;
464
+ }
465
+ }
466
+ if (enableAudioVbrEncoding !== undefined) {
467
+ localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding;
457
468
  }
458
469
  setSearchParams(localVarUrlObj, localVarQueryParameter);
459
470
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
460
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
471
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
461
472
  return {
462
473
  url: toPathString(localVarUrlObj),
463
474
  options: localVarRequestOptions,
464
475
  };
465
- }),
476
+ },
466
477
  /**
467
478
  *
468
479
  * @summary Gets an audio stream.
@@ -478,7 +489,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
478
489
  * @param {number} [minSegments] The minimum number of segments.
479
490
  * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
480
491
  * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
481
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
492
+ * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension.
482
493
  * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
483
494
  * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
484
495
  * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
@@ -508,17 +519,18 @@ const AudioApiAxiosParamCreator = function (configuration) {
508
519
  * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
509
520
  * @param {string} [liveStreamId] The live stream id.
510
521
  * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
511
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
522
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension.
512
523
  * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
513
524
  * @param {string} [transcodeReasons] Optional. The transcoding reason.
514
525
  * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
515
526
  * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
516
527
  * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
517
528
  * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
529
+ * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding.
518
530
  * @param {*} [options] Override http request option.
519
531
  * @throws {RequiredError}
520
532
  */
521
- headAudioStream: (itemId_3, container_3, _static_3, params_3, tag_3, deviceProfileId_3, playSessionId_3, segmentContainer_3, segmentLength_3, minSegments_3, mediaSourceId_3, deviceId_3, audioCodec_3, enableAutoStreamCopy_3, allowVideoStreamCopy_3, allowAudioStreamCopy_3, breakOnNonKeyFrames_3, audioSampleRate_3, maxAudioBitDepth_3, audioBitRate_3, audioChannels_3, maxAudioChannels_3, profile_3, level_3, framerate_3, maxFramerate_3, copyTimestamps_3, startTimeTicks_3, width_3, height_3, videoBitRate_3, subtitleStreamIndex_3, subtitleMethod_3, maxRefFrames_3, maxVideoBitDepth_3, requireAvc_3, deInterlace_3, requireNonAnamorphic_3, transcodingMaxAudioChannels_3, cpuCoreLimit_3, liveStreamId_3, enableMpegtsM2TsMode_3, videoCodec_3, subtitleCodec_3, transcodeReasons_3, audioStreamIndex_3, videoStreamIndex_3, context_3, streamOptions_3, ...args_3) => __awaiter(this, [itemId_3, container_3, _static_3, params_3, tag_3, deviceProfileId_3, playSessionId_3, segmentContainer_3, segmentLength_3, minSegments_3, mediaSourceId_3, deviceId_3, audioCodec_3, enableAutoStreamCopy_3, allowVideoStreamCopy_3, allowAudioStreamCopy_3, breakOnNonKeyFrames_3, audioSampleRate_3, maxAudioBitDepth_3, audioBitRate_3, audioChannels_3, maxAudioChannels_3, profile_3, level_3, framerate_3, maxFramerate_3, copyTimestamps_3, startTimeTicks_3, width_3, height_3, videoBitRate_3, subtitleStreamIndex_3, subtitleMethod_3, maxRefFrames_3, maxVideoBitDepth_3, requireAvc_3, deInterlace_3, requireNonAnamorphic_3, transcodingMaxAudioChannels_3, cpuCoreLimit_3, liveStreamId_3, enableMpegtsM2TsMode_3, videoCodec_3, subtitleCodec_3, transcodeReasons_3, audioStreamIndex_3, videoStreamIndex_3, context_3, streamOptions_3, ...args_3], void 0, function* (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options = {}) {
533
+ headAudioStream: async (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options = {}) => {
522
534
  // verify required parameter 'itemId' is not null or undefined
523
535
  assertParamExists('headAudioStream', 'itemId', itemId);
524
536
  const localVarPath = `/Audio/{itemId}/stream`
@@ -529,7 +541,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
529
541
  if (configuration) {
530
542
  baseOptions = configuration.baseOptions;
531
543
  }
532
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
544
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
533
545
  const localVarHeaderParameter = {};
534
546
  const localVarQueryParameter = {};
535
547
  if (container !== undefined) {
@@ -674,16 +686,21 @@ const AudioApiAxiosParamCreator = function (configuration) {
674
686
  localVarQueryParameter['context'] = context;
675
687
  }
676
688
  if (streamOptions !== undefined) {
677
- localVarQueryParameter['streamOptions'] = streamOptions;
689
+ for (const [key, value] of Object.entries(streamOptions)) {
690
+ localVarQueryParameter[key] = value;
691
+ }
692
+ }
693
+ if (enableAudioVbrEncoding !== undefined) {
694
+ localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding;
678
695
  }
679
696
  setSearchParams(localVarUrlObj, localVarQueryParameter);
680
697
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
681
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
698
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
682
699
  return {
683
700
  url: toPathString(localVarUrlObj),
684
701
  options: localVarRequestOptions,
685
702
  };
686
- }),
703
+ },
687
704
  /**
688
705
  *
689
706
  * @summary Gets an audio stream.
@@ -699,7 +716,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
699
716
  * @param {number} [minSegments] The minimum number of segments.
700
717
  * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
701
718
  * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
702
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
719
+ * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension.
703
720
  * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
704
721
  * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
705
722
  * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
@@ -729,17 +746,18 @@ const AudioApiAxiosParamCreator = function (configuration) {
729
746
  * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
730
747
  * @param {string} [liveStreamId] The live stream id.
731
748
  * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
732
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
749
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension.
733
750
  * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
734
751
  * @param {string} [transcodeReasons] Optional. The transcoding reason.
735
752
  * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
736
753
  * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
737
754
  * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
738
755
  * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
756
+ * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding.
739
757
  * @param {*} [options] Override http request option.
740
758
  * @throws {RequiredError}
741
759
  */
742
- headAudioStreamByContainer: (itemId_4, container_4, _static_4, params_4, tag_4, deviceProfileId_4, playSessionId_4, segmentContainer_4, segmentLength_4, minSegments_4, mediaSourceId_4, deviceId_4, audioCodec_4, enableAutoStreamCopy_4, allowVideoStreamCopy_4, allowAudioStreamCopy_4, breakOnNonKeyFrames_4, audioSampleRate_4, maxAudioBitDepth_4, audioBitRate_4, audioChannels_4, maxAudioChannels_4, profile_4, level_4, framerate_4, maxFramerate_4, copyTimestamps_4, startTimeTicks_4, width_4, height_4, videoBitRate_4, subtitleStreamIndex_4, subtitleMethod_4, maxRefFrames_4, maxVideoBitDepth_4, requireAvc_4, deInterlace_4, requireNonAnamorphic_4, transcodingMaxAudioChannels_4, cpuCoreLimit_4, liveStreamId_4, enableMpegtsM2TsMode_4, videoCodec_4, subtitleCodec_4, transcodeReasons_4, audioStreamIndex_4, videoStreamIndex_4, context_4, streamOptions_4, ...args_4) => __awaiter(this, [itemId_4, container_4, _static_4, params_4, tag_4, deviceProfileId_4, playSessionId_4, segmentContainer_4, segmentLength_4, minSegments_4, mediaSourceId_4, deviceId_4, audioCodec_4, enableAutoStreamCopy_4, allowVideoStreamCopy_4, allowAudioStreamCopy_4, breakOnNonKeyFrames_4, audioSampleRate_4, maxAudioBitDepth_4, audioBitRate_4, audioChannels_4, maxAudioChannels_4, profile_4, level_4, framerate_4, maxFramerate_4, copyTimestamps_4, startTimeTicks_4, width_4, height_4, videoBitRate_4, subtitleStreamIndex_4, subtitleMethod_4, maxRefFrames_4, maxVideoBitDepth_4, requireAvc_4, deInterlace_4, requireNonAnamorphic_4, transcodingMaxAudioChannels_4, cpuCoreLimit_4, liveStreamId_4, enableMpegtsM2TsMode_4, videoCodec_4, subtitleCodec_4, transcodeReasons_4, audioStreamIndex_4, videoStreamIndex_4, context_4, streamOptions_4, ...args_4], void 0, function* (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options = {}) {
760
+ headAudioStreamByContainer: async (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options = {}) => {
743
761
  // verify required parameter 'itemId' is not null or undefined
744
762
  assertParamExists('headAudioStreamByContainer', 'itemId', itemId);
745
763
  // verify required parameter 'container' is not null or undefined
@@ -753,7 +771,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
753
771
  if (configuration) {
754
772
  baseOptions = configuration.baseOptions;
755
773
  }
756
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
774
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
757
775
  const localVarHeaderParameter = {};
758
776
  const localVarQueryParameter = {};
759
777
  if (_static !== undefined) {
@@ -895,16 +913,21 @@ const AudioApiAxiosParamCreator = function (configuration) {
895
913
  localVarQueryParameter['context'] = context;
896
914
  }
897
915
  if (streamOptions !== undefined) {
898
- localVarQueryParameter['streamOptions'] = streamOptions;
916
+ for (const [key, value] of Object.entries(streamOptions)) {
917
+ localVarQueryParameter[key] = value;
918
+ }
919
+ }
920
+ if (enableAudioVbrEncoding !== undefined) {
921
+ localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding;
899
922
  }
900
923
  setSearchParams(localVarUrlObj, localVarQueryParameter);
901
924
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
902
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
925
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
903
926
  return {
904
927
  url: toPathString(localVarUrlObj),
905
928
  options: localVarRequestOptions,
906
929
  };
907
- }),
930
+ },
908
931
  };
909
932
  };
910
933
  /**
@@ -929,7 +952,7 @@ const AudioApiFp = function (configuration) {
929
952
  * @param {number} [minSegments] The minimum number of segments.
930
953
  * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
931
954
  * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
932
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
955
+ * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension.
933
956
  * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
934
957
  * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
935
958
  * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
@@ -959,21 +982,23 @@ const AudioApiFp = function (configuration) {
959
982
  * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
960
983
  * @param {string} [liveStreamId] The live stream id.
961
984
  * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
962
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
985
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension.
963
986
  * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
964
987
  * @param {string} [transcodeReasons] Optional. The transcoding reason.
965
988
  * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
966
989
  * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
967
990
  * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
968
991
  * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
992
+ * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding.
969
993
  * @param {*} [options] Override http request option.
970
994
  * @throws {RequiredError}
971
995
  */
972
- getAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
973
- return __awaiter(this, void 0, void 0, function* () {
974
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
975
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
976
- });
996
+ async getAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options) {
997
+ var _a, _b, _c;
998
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options);
999
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1000
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AudioApi.getAudioStream']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1001
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
977
1002
  },
978
1003
  /**
979
1004
  *
@@ -990,7 +1015,7 @@ const AudioApiFp = function (configuration) {
990
1015
  * @param {number} [minSegments] The minimum number of segments.
991
1016
  * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
992
1017
  * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
993
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1018
+ * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension.
994
1019
  * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
995
1020
  * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
996
1021
  * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
@@ -1020,21 +1045,23 @@ const AudioApiFp = function (configuration) {
1020
1045
  * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1021
1046
  * @param {string} [liveStreamId] The live stream id.
1022
1047
  * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1023
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1048
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension.
1024
1049
  * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1025
1050
  * @param {string} [transcodeReasons] Optional. The transcoding reason.
1026
1051
  * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1027
1052
  * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1028
1053
  * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1029
1054
  * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1055
+ * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding.
1030
1056
  * @param {*} [options] Override http request option.
1031
1057
  * @throws {RequiredError}
1032
1058
  */
1033
- getAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1034
- return __awaiter(this, void 0, void 0, function* () {
1035
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
1036
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1037
- });
1059
+ async getAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options) {
1060
+ var _a, _b, _c;
1061
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options);
1062
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1063
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AudioApi.getAudioStreamByContainer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1064
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1038
1065
  },
1039
1066
  /**
1040
1067
  *
@@ -1051,7 +1078,7 @@ const AudioApiFp = function (configuration) {
1051
1078
  * @param {number} [minSegments] The minimum number of segments.
1052
1079
  * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1053
1080
  * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1054
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1081
+ * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension.
1055
1082
  * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1056
1083
  * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1057
1084
  * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
@@ -1081,21 +1108,23 @@ const AudioApiFp = function (configuration) {
1081
1108
  * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1082
1109
  * @param {string} [liveStreamId] The live stream id.
1083
1110
  * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1084
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1111
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension.
1085
1112
  * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1086
1113
  * @param {string} [transcodeReasons] Optional. The transcoding reason.
1087
1114
  * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1088
1115
  * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1089
1116
  * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1090
1117
  * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1118
+ * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding.
1091
1119
  * @param {*} [options] Override http request option.
1092
1120
  * @throws {RequiredError}
1093
1121
  */
1094
- headAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1095
- return __awaiter(this, void 0, void 0, function* () {
1096
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
1097
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1098
- });
1122
+ async headAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options) {
1123
+ var _a, _b, _c;
1124
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options);
1125
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1126
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AudioApi.headAudioStream']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1127
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1099
1128
  },
1100
1129
  /**
1101
1130
  *
@@ -1112,7 +1141,7 @@ const AudioApiFp = function (configuration) {
1112
1141
  * @param {number} [minSegments] The minimum number of segments.
1113
1142
  * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1114
1143
  * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1115
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1144
+ * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension.
1116
1145
  * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1117
1146
  * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1118
1147
  * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
@@ -1142,21 +1171,23 @@ const AudioApiFp = function (configuration) {
1142
1171
  * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1143
1172
  * @param {string} [liveStreamId] The live stream id.
1144
1173
  * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1145
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1174
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension.
1146
1175
  * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1147
1176
  * @param {string} [transcodeReasons] Optional. The transcoding reason.
1148
1177
  * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1149
1178
  * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1150
1179
  * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1151
1180
  * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1181
+ * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding.
1152
1182
  * @param {*} [options] Override http request option.
1153
1183
  * @throws {RequiredError}
1154
1184
  */
1155
- headAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1156
- return __awaiter(this, void 0, void 0, function* () {
1157
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
1158
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1159
- });
1185
+ async headAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options) {
1186
+ var _a, _b, _c;
1187
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options);
1188
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1189
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AudioApi.headAudioStreamByContainer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1190
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1160
1191
  },
1161
1192
  };
1162
1193
  };
@@ -1170,234 +1201,42 @@ const AudioApiFactory = function (configuration, basePath, axios) {
1170
1201
  /**
1171
1202
  *
1172
1203
  * @summary Gets an audio stream.
1173
- * @param {string} itemId The item id.
1174
- * @param {string} [container] The audio container.
1175
- * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
1176
- * @param {string} [params] The streaming parameters.
1177
- * @param {string} [tag] The tag.
1178
- * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1179
- * @param {string} [playSessionId] The play session id.
1180
- * @param {string} [segmentContainer] The segment container.
1181
- * @param {number} [segmentLength] The segment length.
1182
- * @param {number} [minSegments] The minimum number of segments.
1183
- * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1184
- * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1185
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1186
- * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1187
- * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1188
- * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1189
- * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1190
- * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1191
- * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1192
- * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1193
- * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1194
- * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1195
- * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1196
- * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1197
- * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1198
- * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1199
- * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1200
- * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1201
- * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1202
- * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1203
- * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1204
- * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1205
- * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1206
- * @param {number} [maxRefFrames] Optional.
1207
- * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1208
- * @param {boolean} [requireAvc] Optional. Whether to require avc.
1209
- * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1210
- * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1211
- * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1212
- * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1213
- * @param {string} [liveStreamId] The live stream id.
1214
- * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1215
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1216
- * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1217
- * @param {string} [transcodeReasons] Optional. The transcoding reason.
1218
- * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1219
- * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1220
- * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1221
- * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1204
+ * @param {AudioApiGetAudioStreamRequest} requestParameters Request parameters.
1222
1205
  * @param {*} [options] Override http request option.
1223
1206
  * @throws {RequiredError}
1224
1207
  */
1225
- getAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1226
- return localVarFp.getAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then((request) => request(axios, basePath));
1208
+ getAudioStream(requestParameters, options) {
1209
+ return localVarFp.getAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath));
1227
1210
  },
1228
1211
  /**
1229
1212
  *
1230
1213
  * @summary Gets an audio stream.
1231
- * @param {string} itemId The item id.
1232
- * @param {string} container The audio container.
1233
- * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
1234
- * @param {string} [params] The streaming parameters.
1235
- * @param {string} [tag] The tag.
1236
- * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1237
- * @param {string} [playSessionId] The play session id.
1238
- * @param {string} [segmentContainer] The segment container.
1239
- * @param {number} [segmentLength] The segment length.
1240
- * @param {number} [minSegments] The minimum number of segments.
1241
- * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1242
- * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1243
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1244
- * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1245
- * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1246
- * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1247
- * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1248
- * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1249
- * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1250
- * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1251
- * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1252
- * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1253
- * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1254
- * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1255
- * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1256
- * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1257
- * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1258
- * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1259
- * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1260
- * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1261
- * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1262
- * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1263
- * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1264
- * @param {number} [maxRefFrames] Optional.
1265
- * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1266
- * @param {boolean} [requireAvc] Optional. Whether to require avc.
1267
- * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1268
- * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
1269
- * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1270
- * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1271
- * @param {string} [liveStreamId] The live stream id.
1272
- * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1273
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1274
- * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1275
- * @param {string} [transcodeReasons] Optional. The transcoding reason.
1276
- * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1277
- * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1278
- * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1279
- * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1214
+ * @param {AudioApiGetAudioStreamByContainerRequest} requestParameters Request parameters.
1280
1215
  * @param {*} [options] Override http request option.
1281
1216
  * @throws {RequiredError}
1282
1217
  */
1283
- getAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1284
- return localVarFp.getAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then((request) => request(axios, basePath));
1218
+ getAudioStreamByContainer(requestParameters, options) {
1219
+ return localVarFp.getAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath));
1285
1220
  },
1286
1221
  /**
1287
1222
  *
1288
1223
  * @summary Gets an audio stream.
1289
- * @param {string} itemId The item id.
1290
- * @param {string} [container] The audio container.
1291
- * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
1292
- * @param {string} [params] The streaming parameters.
1293
- * @param {string} [tag] The tag.
1294
- * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1295
- * @param {string} [playSessionId] The play session id.
1296
- * @param {string} [segmentContainer] The segment container.
1297
- * @param {number} [segmentLength] The segment length.
1298
- * @param {number} [minSegments] The minimum number of segments.
1299
- * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1300
- * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1301
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1302
- * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1303
- * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1304
- * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1305
- * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1306
- * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1307
- * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1308
- * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1309
- * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1310
- * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1311
- * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1312
- * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1313
- * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1314
- * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1315
- * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1316
- * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1317
- * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1318
- * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1319
- * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1320
- * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1321
- * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1322
- * @param {number} [maxRefFrames] Optional.
1323
- * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1324
- * @param {boolean} [requireAvc] Optional. Whether to require avc.
1325
- * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1326
- * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1327
- * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1328
- * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1329
- * @param {string} [liveStreamId] The live stream id.
1330
- * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1331
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1332
- * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1333
- * @param {string} [transcodeReasons] Optional. The transcoding reason.
1334
- * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1335
- * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1336
- * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1337
- * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1224
+ * @param {AudioApiHeadAudioStreamRequest} requestParameters Request parameters.
1338
1225
  * @param {*} [options] Override http request option.
1339
1226
  * @throws {RequiredError}
1340
1227
  */
1341
- headAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1342
- return localVarFp.headAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then((request) => request(axios, basePath));
1228
+ headAudioStream(requestParameters, options) {
1229
+ return localVarFp.headAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath));
1343
1230
  },
1344
1231
  /**
1345
1232
  *
1346
1233
  * @summary Gets an audio stream.
1347
- * @param {string} itemId The item id.
1348
- * @param {string} container The audio container.
1349
- * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.
1350
- * @param {string} [params] The streaming parameters.
1351
- * @param {string} [tag] The tag.
1352
- * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1353
- * @param {string} [playSessionId] The play session id.
1354
- * @param {string} [segmentContainer] The segment container.
1355
- * @param {number} [segmentLength] The segment length.
1356
- * @param {number} [minSegments] The minimum number of segments.
1357
- * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1358
- * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1359
- * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma.
1360
- * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1361
- * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1362
- * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1363
- * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1364
- * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1365
- * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1366
- * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1367
- * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1368
- * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1369
- * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1370
- * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1371
- * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1372
- * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.
1373
- * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1374
- * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1375
- * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1376
- * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1377
- * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1378
- * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1379
- * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1380
- * @param {number} [maxRefFrames] Optional.
1381
- * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1382
- * @param {boolean} [requireAvc] Optional. Whether to require avc.
1383
- * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1384
- * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
1385
- * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1386
- * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1387
- * @param {string} [liveStreamId] The live stream id.
1388
- * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1389
- * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1390
- * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1391
- * @param {string} [transcodeReasons] Optional. The transcoding reason.
1392
- * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1393
- * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1394
- * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1395
- * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1234
+ * @param {AudioApiHeadAudioStreamByContainerRequest} requestParameters Request parameters.
1396
1235
  * @param {*} [options] Override http request option.
1397
1236
  * @throws {RequiredError}
1398
1237
  */
1399
- headAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1400
- return localVarFp.headAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then((request) => request(axios, basePath));
1238
+ headAudioStreamByContainer(requestParameters, options) {
1239
+ return localVarFp.headAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath));
1401
1240
  },
1402
1241
  };
1403
1242
  };
@@ -1417,7 +1256,7 @@ class AudioApi extends BaseAPI {
1417
1256
  * @memberof AudioApi
1418
1257
  */
1419
1258
  getAudioStream(requestParameters, options) {
1420
- return AudioApiFp(this.configuration).getAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath));
1259
+ return AudioApiFp(this.configuration).getAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath));
1421
1260
  }
1422
1261
  /**
1423
1262
  *
@@ -1428,7 +1267,7 @@ class AudioApi extends BaseAPI {
1428
1267
  * @memberof AudioApi
1429
1268
  */
1430
1269
  getAudioStreamByContainer(requestParameters, options) {
1431
- return AudioApiFp(this.configuration).getAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath));
1270
+ return AudioApiFp(this.configuration).getAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath));
1432
1271
  }
1433
1272
  /**
1434
1273
  *
@@ -1439,7 +1278,7 @@ class AudioApi extends BaseAPI {
1439
1278
  * @memberof AudioApi
1440
1279
  */
1441
1280
  headAudioStream(requestParameters, options) {
1442
- return AudioApiFp(this.configuration).headAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath));
1281
+ return AudioApiFp(this.configuration).headAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath));
1443
1282
  }
1444
1283
  /**
1445
1284
  *
@@ -1450,7 +1289,7 @@ class AudioApi extends BaseAPI {
1450
1289
  * @memberof AudioApi
1451
1290
  */
1452
1291
  headAudioStreamByContainer(requestParameters, options) {
1453
- return AudioApiFp(this.configuration).headAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath));
1292
+ return AudioApiFp(this.configuration).headAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath));
1454
1293
  }
1455
1294
  }
1456
1295