@jellyfin/sdk 0.0.0-unstable.202212091849

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 (880) hide show
  1. package/.gitattributes +5 -0
  2. package/LICENSE +373 -0
  3. package/README.md +153 -0
  4. package/lib/api.d.ts +42 -0
  5. package/lib/api.js +70 -0
  6. package/lib/discovery/discovery-service.d.ts +41 -0
  7. package/lib/discovery/discovery-service.js +76 -0
  8. package/lib/discovery/index.d.ts +7 -0
  9. package/lib/discovery/index.js +7 -0
  10. package/lib/discovery/recommended-server-discovery.d.ts +23 -0
  11. package/lib/discovery/recommended-server-discovery.js +110 -0
  12. package/lib/generated-client/api/activity-log-api.d.ts +113 -0
  13. package/lib/generated-client/api/activity-log-api.js +146 -0
  14. package/lib/generated-client/api/api-key-api.d.ts +161 -0
  15. package/lib/generated-client/api/api-key-api.js +251 -0
  16. package/lib/generated-client/api/artists-api.d.ts +751 -0
  17. package/lib/generated-client/api/artists-api.js +634 -0
  18. package/lib/generated-client/api/audio-api.d.ts +1985 -0
  19. package/lib/generated-client/api/audio-api.js +1465 -0
  20. package/lib/generated-client/api/branding-api.d.ts +127 -0
  21. package/lib/generated-client/api/branding-api.js +229 -0
  22. package/lib/generated-client/api/channels-api.d.ts +419 -0
  23. package/lib/generated-client/api/channels-api.js +487 -0
  24. package/lib/generated-client/api/client-log-api.d.ts +86 -0
  25. package/lib/generated-client/api/client-log-api.js +125 -0
  26. package/lib/generated-client/api/collection-api.d.ts +223 -0
  27. package/lib/generated-client/api/collection-api.js +290 -0
  28. package/lib/generated-client/api/configuration-api.d.ts +293 -0
  29. package/lib/generated-client/api/configuration-api.js +446 -0
  30. package/lib/generated-client/api/dashboard-api.d.ts +132 -0
  31. package/lib/generated-client/api/dashboard-api.js +189 -0
  32. package/lib/generated-client/api/devices-api.d.ts +291 -0
  33. package/lib/generated-client/api/devices-api.js +407 -0
  34. package/lib/generated-client/api/display-preferences-api.d.ts +177 -0
  35. package/lib/generated-client/api/display-preferences-api.js +230 -0
  36. package/lib/generated-client/api/dlna-api.d.ts +292 -0
  37. package/lib/generated-client/api/dlna-api.js +441 -0
  38. package/lib/generated-client/api/dlna-server-api.d.ts +784 -0
  39. package/lib/generated-client/api/dlna-server-api.js +1107 -0
  40. package/lib/generated-client/api/dynamic-hls-api.d.ts +4604 -0
  41. package/lib/generated-client/api/dynamic-hls-api.js +3380 -0
  42. package/lib/generated-client/api/environment-api.d.ts +289 -0
  43. package/lib/generated-client/api/environment-api.js +451 -0
  44. package/lib/generated-client/api/filter-api.d.ts +242 -0
  45. package/lib/generated-client/api/filter-api.js +263 -0
  46. package/lib/generated-client/api/genres-api.d.ts +299 -0
  47. package/lib/generated-client/api/genres-api.js +299 -0
  48. package/lib/generated-client/api/hls-segment-api.d.ts +332 -0
  49. package/lib/generated-client/api/hls-segment-api.js +426 -0
  50. package/lib/generated-client/api/image-api.d.ts +6744 -0
  51. package/lib/generated-client/api/image-api.js +5880 -0
  52. package/lib/generated-client/api/image-by-name-api.d.ts +292 -0
  53. package/lib/generated-client/api/image-by-name-api.js +442 -0
  54. package/lib/generated-client/api/instant-mix-api.d.ts +918 -0
  55. package/lib/generated-client/api/instant-mix-api.js +925 -0
  56. package/lib/generated-client/api/item-lookup-api.d.ts +574 -0
  57. package/lib/generated-client/api/item-lookup-api.js +798 -0
  58. package/lib/generated-client/api/item-refresh-api.d.ts +122 -0
  59. package/lib/generated-client/api/item-refresh-api.js +150 -0
  60. package/lib/generated-client/api/item-update-api.d.ts +197 -0
  61. package/lib/generated-client/api/item-update-api.js +269 -0
  62. package/lib/generated-client/api/items-api.d.ts +1824 -0
  63. package/lib/generated-client/api/items-api.js +1364 -0
  64. package/lib/generated-client/api/library-api.d.ts +1482 -0
  65. package/lib/generated-client/api/library-api.js +1887 -0
  66. package/lib/generated-client/api/library-structure-api.d.ts +486 -0
  67. package/lib/generated-client/api/library-structure-api.js +634 -0
  68. package/lib/generated-client/api/live-tv-api.d.ts +2844 -0
  69. package/lib/generated-client/api/live-tv-api.js +3349 -0
  70. package/lib/generated-client/api/localization-api.d.ts +159 -0
  71. package/lib/generated-client/api/localization-api.js +293 -0
  72. package/lib/generated-client/api/media-info-api.d.ts +516 -0
  73. package/lib/generated-client/api/media-info-api.js +550 -0
  74. package/lib/generated-client/api/movies-api.d.ts +123 -0
  75. package/lib/generated-client/api/movies-api.js +150 -0
  76. package/lib/generated-client/api/music-genres-api.d.ts +303 -0
  77. package/lib/generated-client/api/music-genres-api.js +303 -0
  78. package/lib/generated-client/api/notifications-api.d.ts +332 -0
  79. package/lib/generated-client/api/notifications-api.js +503 -0
  80. package/lib/generated-client/api/package-api.d.ts +319 -0
  81. package/lib/generated-client/api/package-api.js +462 -0
  82. package/lib/generated-client/api/persons-api.d.ts +253 -0
  83. package/lib/generated-client/api/persons-api.js +269 -0
  84. package/lib/generated-client/api/playlists-api.d.ts +427 -0
  85. package/lib/generated-client/api/playlists-api.js +489 -0
  86. package/lib/generated-client/api/playstate-api.d.ts +720 -0
  87. package/lib/generated-client/api/playstate-api.js +821 -0
  88. package/lib/generated-client/api/plugins-api.d.ts +477 -0
  89. package/lib/generated-client/api/plugins-api.js +667 -0
  90. package/lib/generated-client/api/quick-connect-api.d.ts +199 -0
  91. package/lib/generated-client/api/quick-connect-api.js +311 -0
  92. package/lib/generated-client/api/remote-image-api.d.ts +243 -0
  93. package/lib/generated-client/api/remote-image-api.js +300 -0
  94. package/lib/generated-client/api/scheduled-tasks-api.d.ts +289 -0
  95. package/lib/generated-client/api/scheduled-tasks-api.js +399 -0
  96. package/lib/generated-client/api/search-api.d.ts +240 -0
  97. package/lib/generated-client/api/search-api.js +230 -0
  98. package/lib/generated-client/api/session-api.d.ts +985 -0
  99. package/lib/generated-client/api/session-api.js +1263 -0
  100. package/lib/generated-client/api/startup-api.d.ts +296 -0
  101. package/lib/generated-client/api/startup-api.js +489 -0
  102. package/lib/generated-client/api/studios-api.d.ts +289 -0
  103. package/lib/generated-client/api/studios-api.js +293 -0
  104. package/lib/generated-client/api/subtitle-api.d.ts +764 -0
  105. package/lib/generated-client/api/subtitle-api.js +889 -0
  106. package/lib/generated-client/api/suggestions-api.d.ts +132 -0
  107. package/lib/generated-client/api/suggestions-api.js +156 -0
  108. package/lib/generated-client/api/sync-play-api.d.ts +937 -0
  109. package/lib/generated-client/api/sync-play-api.js +1407 -0
  110. package/lib/generated-client/api/system-api.d.ts +355 -0
  111. package/lib/generated-client/api/system-api.js +648 -0
  112. package/lib/generated-client/api/time-sync-api.d.ts +69 -0
  113. package/lib/generated-client/api/time-sync-api.js +117 -0
  114. package/lib/generated-client/api/tmdb-api.d.ts +69 -0
  115. package/lib/generated-client/api/tmdb-api.js +119 -0
  116. package/lib/generated-client/api/trailers-api.d.ts +841 -0
  117. package/lib/generated-client/api/trailers-api.js +632 -0
  118. package/lib/generated-client/api/tv-shows-api.d.ts +622 -0
  119. package/lib/generated-client/api/tv-shows-api.js +587 -0
  120. package/lib/generated-client/api/universal-audio-api.d.ts +437 -0
  121. package/lib/generated-client/api/universal-audio-api.js +395 -0
  122. package/lib/generated-client/api/user-api.d.ts +826 -0
  123. package/lib/generated-client/api/user-api.js +1135 -0
  124. package/lib/generated-client/api/user-library-api.d.ts +732 -0
  125. package/lib/generated-client/api/user-library-api.js +896 -0
  126. package/lib/generated-client/api/user-views-api.d.ts +160 -0
  127. package/lib/generated-client/api/user-views-api.js +209 -0
  128. package/lib/generated-client/api/video-attachments-api.d.ts +103 -0
  129. package/lib/generated-client/api/video-attachments-api.js +136 -0
  130. package/lib/generated-client/api/videos-api.d.ts +2205 -0
  131. package/lib/generated-client/api/videos-api.js +1716 -0
  132. package/lib/generated-client/api/years-api.d.ts +272 -0
  133. package/lib/generated-client/api/years-api.js +281 -0
  134. package/lib/generated-client/api.d.ts +71 -0
  135. package/lib/generated-client/api.js +73 -0
  136. package/lib/generated-client/base.d.ts +54 -0
  137. package/lib/generated-client/base.js +55 -0
  138. package/lib/generated-client/common.d.ts +64 -0
  139. package/lib/generated-client/common.js +139 -0
  140. package/lib/generated-client/configuration.d.ts +82 -0
  141. package/lib/generated-client/configuration.js +37 -0
  142. package/lib/generated-client/index.d.ts +13 -0
  143. package/lib/generated-client/index.js +15 -0
  144. package/lib/generated-client/models/access-schedule.d.ts +48 -0
  145. package/lib/generated-client/models/access-schedule.js +13 -0
  146. package/lib/generated-client/models/activity-log-entry-query-result.d.ts +36 -0
  147. package/lib/generated-client/models/activity-log-entry-query-result.js +13 -0
  148. package/lib/generated-client/models/activity-log-entry.d.ts +79 -0
  149. package/lib/generated-client/models/activity-log-entry.js +13 -0
  150. package/lib/generated-client/models/add-virtual-folder-dto.d.ts +24 -0
  151. package/lib/generated-client/models/add-virtual-folder-dto.js +13 -0
  152. package/lib/generated-client/models/admin-notification-dto.d.ts +42 -0
  153. package/lib/generated-client/models/admin-notification-dto.js +13 -0
  154. package/lib/generated-client/models/album-info-remote-search-query.d.ts +42 -0
  155. package/lib/generated-client/models/album-info-remote-search-query.js +13 -0
  156. package/lib/generated-client/models/album-info.d.ts +106 -0
  157. package/lib/generated-client/models/album-info.js +13 -0
  158. package/lib/generated-client/models/all-theme-media-result.d.ts +36 -0
  159. package/lib/generated-client/models/all-theme-media-result.js +13 -0
  160. package/lib/generated-client/models/architecture.d.ts +27 -0
  161. package/lib/generated-client/models/architecture.js +28 -0
  162. package/lib/generated-client/models/artist-info-remote-search-query.d.ts +42 -0
  163. package/lib/generated-client/models/artist-info-remote-search-query.js +13 -0
  164. package/lib/generated-client/models/artist-info.d.ts +92 -0
  165. package/lib/generated-client/models/artist-info.js +13 -0
  166. package/lib/generated-client/models/authenticate-user-by-name.d.ts +36 -0
  167. package/lib/generated-client/models/authenticate-user-by-name.js +13 -0
  168. package/lib/generated-client/models/authentication-info-query-result.d.ts +36 -0
  169. package/lib/generated-client/models/authentication-info-query-result.js +13 -0
  170. package/lib/generated-client/models/authentication-info.d.ts +89 -0
  171. package/lib/generated-client/models/authentication-info.js +13 -0
  172. package/lib/generated-client/models/authentication-result.d.ts +43 -0
  173. package/lib/generated-client/models/authentication-result.js +13 -0
  174. package/lib/generated-client/models/base-item-dto-image-blur-hashes.d.ts +121 -0
  175. package/lib/generated-client/models/base-item-dto-image-blur-hashes.js +13 -0
  176. package/lib/generated-client/models/base-item-dto-query-result.d.ts +36 -0
  177. package/lib/generated-client/models/base-item-dto-query-result.js +13 -0
  178. package/lib/generated-client/models/base-item-dto.d.ts +953 -0
  179. package/lib/generated-client/models/base-item-dto.js +13 -0
  180. package/lib/generated-client/models/base-item-kind.d.ts +55 -0
  181. package/lib/generated-client/models/base-item-kind.js +56 -0
  182. package/lib/generated-client/models/base-item-person-image-blur-hashes.d.ts +121 -0
  183. package/lib/generated-client/models/base-item-person-image-blur-hashes.js +13 -0
  184. package/lib/generated-client/models/base-item-person.d.ts +54 -0
  185. package/lib/generated-client/models/base-item-person.js +13 -0
  186. package/lib/generated-client/models/base-item.d.ts +84 -0
  187. package/lib/generated-client/models/base-item.js +13 -0
  188. package/lib/generated-client/models/book-info-remote-search-query.d.ts +42 -0
  189. package/lib/generated-client/models/book-info-remote-search-query.js +13 -0
  190. package/lib/generated-client/models/book-info.d.ts +91 -0
  191. package/lib/generated-client/models/book-info.js +13 -0
  192. package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +42 -0
  193. package/lib/generated-client/models/box-set-info-remote-search-query.js +13 -0
  194. package/lib/generated-client/models/box-set-info.d.ts +85 -0
  195. package/lib/generated-client/models/box-set-info.js +13 -0
  196. package/lib/generated-client/models/branding-options.d.ts +35 -0
  197. package/lib/generated-client/models/branding-options.js +13 -0
  198. package/lib/generated-client/models/buffer-request-dto.d.ts +41 -0
  199. package/lib/generated-client/models/buffer-request-dto.js +13 -0
  200. package/lib/generated-client/models/channel-features.d.ts +92 -0
  201. package/lib/generated-client/models/channel-features.js +13 -0
  202. package/lib/generated-client/models/channel-item-sort-field.d.ts +25 -0
  203. package/lib/generated-client/models/channel-item-sort-field.js +26 -0
  204. package/lib/generated-client/models/channel-mapping-options-dto.d.ts +44 -0
  205. package/lib/generated-client/models/channel-mapping-options-dto.js +13 -0
  206. package/lib/generated-client/models/channel-media-content-type.d.ts +26 -0
  207. package/lib/generated-client/models/channel-media-content-type.js +27 -0
  208. package/lib/generated-client/models/channel-media-type.d.ts +21 -0
  209. package/lib/generated-client/models/channel-media-type.js +22 -0
  210. package/lib/generated-client/models/channel-type.d.ts +20 -0
  211. package/lib/generated-client/models/channel-type.js +21 -0
  212. package/lib/generated-client/models/chapter-info.d.ts +47 -0
  213. package/lib/generated-client/models/chapter-info.js +13 -0
  214. package/lib/generated-client/models/client-capabilities-dto.d.ts +79 -0
  215. package/lib/generated-client/models/client-capabilities-dto.js +13 -0
  216. package/lib/generated-client/models/client-capabilities.d.ts +79 -0
  217. package/lib/generated-client/models/client-capabilities.js +13 -0
  218. package/lib/generated-client/models/client-log-document-response-dto.d.ts +23 -0
  219. package/lib/generated-client/models/client-log-document-response-dto.js +13 -0
  220. package/lib/generated-client/models/codec-profile.d.ts +49 -0
  221. package/lib/generated-client/models/codec-profile.js +13 -0
  222. package/lib/generated-client/models/codec-type.d.ts +21 -0
  223. package/lib/generated-client/models/codec-type.js +22 -0
  224. package/lib/generated-client/models/collection-creation-result.d.ts +23 -0
  225. package/lib/generated-client/models/collection-creation-result.js +13 -0
  226. package/lib/generated-client/models/collection-type-options.d.ts +26 -0
  227. package/lib/generated-client/models/collection-type-options.js +27 -0
  228. package/lib/generated-client/models/config-image-types.d.ts +59 -0
  229. package/lib/generated-client/models/config-image-types.js +13 -0
  230. package/lib/generated-client/models/configuration-page-info.d.ts +53 -0
  231. package/lib/generated-client/models/configuration-page-info.js +13 -0
  232. package/lib/generated-client/models/container-profile.d.ts +37 -0
  233. package/lib/generated-client/models/container-profile.js +13 -0
  234. package/lib/generated-client/models/control-response.d.ts +37 -0
  235. package/lib/generated-client/models/control-response.js +13 -0
  236. package/lib/generated-client/models/country-info.d.ts +41 -0
  237. package/lib/generated-client/models/country-info.js +13 -0
  238. package/lib/generated-client/models/create-playlist-dto.d.ts +41 -0
  239. package/lib/generated-client/models/create-playlist-dto.js +13 -0
  240. package/lib/generated-client/models/create-user-by-name.d.ts +29 -0
  241. package/lib/generated-client/models/create-user-by-name.js +13 -0
  242. package/lib/generated-client/models/culture-dto.d.ts +47 -0
  243. package/lib/generated-client/models/culture-dto.js +13 -0
  244. package/lib/generated-client/models/day-of-week.d.ts +25 -0
  245. package/lib/generated-client/models/day-of-week.js +26 -0
  246. package/lib/generated-client/models/day-pattern.d.ts +21 -0
  247. package/lib/generated-client/models/day-pattern.js +22 -0
  248. package/lib/generated-client/models/default-directory-browser-info-dto.d.ts +23 -0
  249. package/lib/generated-client/models/default-directory-browser-info-dto.js +13 -0
  250. package/lib/generated-client/models/device-identification.d.ts +72 -0
  251. package/lib/generated-client/models/device-identification.js +13 -0
  252. package/lib/generated-client/models/device-info-query-result.d.ts +36 -0
  253. package/lib/generated-client/models/device-info-query-result.js +13 -0
  254. package/lib/generated-client/models/device-info.d.ts +78 -0
  255. package/lib/generated-client/models/device-info.js +13 -0
  256. package/lib/generated-client/models/device-options-dto.d.ts +35 -0
  257. package/lib/generated-client/models/device-options-dto.js +13 -0
  258. package/lib/generated-client/models/device-options.d.ts +35 -0
  259. package/lib/generated-client/models/device-options.js +13 -0
  260. package/lib/generated-client/models/device-profile-info.d.ts +36 -0
  261. package/lib/generated-client/models/device-profile-info.js +13 -0
  262. package/lib/generated-client/models/device-profile-type.d.ts +20 -0
  263. package/lib/generated-client/models/device-profile-type.js +21 -0
  264. package/lib/generated-client/models/device-profile.d.ts +259 -0
  265. package/lib/generated-client/models/device-profile.js +13 -0
  266. package/lib/generated-client/models/direct-play-profile.d.ts +42 -0
  267. package/lib/generated-client/models/direct-play-profile.js +13 -0
  268. package/lib/generated-client/models/display-preferences-dto.d.ts +105 -0
  269. package/lib/generated-client/models/display-preferences-dto.js +13 -0
  270. package/lib/generated-client/models/dlna-options.d.ts +83 -0
  271. package/lib/generated-client/models/dlna-options.js +13 -0
  272. package/lib/generated-client/models/dlna-profile-type.d.ts +22 -0
  273. package/lib/generated-client/models/dlna-profile-type.js +23 -0
  274. package/lib/generated-client/models/dynamic-day-of-week.d.ts +28 -0
  275. package/lib/generated-client/models/dynamic-day-of-week.js +29 -0
  276. package/lib/generated-client/models/embedded-subtitle-options.d.ts +22 -0
  277. package/lib/generated-client/models/embedded-subtitle-options.js +23 -0
  278. package/lib/generated-client/models/encoding-context.d.ts +20 -0
  279. package/lib/generated-client/models/encoding-context.js +21 -0
  280. package/lib/generated-client/models/encoding-options.d.ts +245 -0
  281. package/lib/generated-client/models/encoding-options.js +13 -0
  282. package/lib/generated-client/models/end-point-info.d.ts +29 -0
  283. package/lib/generated-client/models/end-point-info.js +13 -0
  284. package/lib/generated-client/models/external-id-info.d.ts +42 -0
  285. package/lib/generated-client/models/external-id-info.js +13 -0
  286. package/lib/generated-client/models/external-id-media-type.d.ts +30 -0
  287. package/lib/generated-client/models/external-id-media-type.js +31 -0
  288. package/lib/generated-client/models/external-url.d.ts +29 -0
  289. package/lib/generated-client/models/external-url.js +13 -0
  290. package/lib/generated-client/models/ffmpeg-location.d.ts +22 -0
  291. package/lib/generated-client/models/ffmpeg-location.js +23 -0
  292. package/lib/generated-client/models/file-system-entry-info.d.ts +36 -0
  293. package/lib/generated-client/models/file-system-entry-info.js +13 -0
  294. package/lib/generated-client/models/file-system-entry-type.d.ts +22 -0
  295. package/lib/generated-client/models/file-system-entry-type.js +23 -0
  296. package/lib/generated-client/models/font-file.d.ts +41 -0
  297. package/lib/generated-client/models/font-file.js +13 -0
  298. package/lib/generated-client/models/forgot-password-action.d.ts +21 -0
  299. package/lib/generated-client/models/forgot-password-action.js +22 -0
  300. package/lib/generated-client/models/forgot-password-dto.d.ts +23 -0
  301. package/lib/generated-client/models/forgot-password-dto.js +13 -0
  302. package/lib/generated-client/models/forgot-password-pin-dto.d.ts +23 -0
  303. package/lib/generated-client/models/forgot-password-pin-dto.js +13 -0
  304. package/lib/generated-client/models/forgot-password-result.d.ts +36 -0
  305. package/lib/generated-client/models/forgot-password-result.js +13 -0
  306. package/lib/generated-client/models/general-command-type.d.ts +60 -0
  307. package/lib/generated-client/models/general-command-type.js +61 -0
  308. package/lib/generated-client/models/general-command.d.ts +38 -0
  309. package/lib/generated-client/models/general-command.js +13 -0
  310. package/lib/generated-client/models/get-programs-dto.d.ts +182 -0
  311. package/lib/generated-client/models/get-programs-dto.js +13 -0
  312. package/lib/generated-client/models/group-info-dto.d.ts +48 -0
  313. package/lib/generated-client/models/group-info-dto.js +13 -0
  314. package/lib/generated-client/models/group-queue-mode.d.ts +20 -0
  315. package/lib/generated-client/models/group-queue-mode.js +21 -0
  316. package/lib/generated-client/models/group-repeat-mode.d.ts +21 -0
  317. package/lib/generated-client/models/group-repeat-mode.js +22 -0
  318. package/lib/generated-client/models/group-shuffle-mode.d.ts +20 -0
  319. package/lib/generated-client/models/group-shuffle-mode.js +21 -0
  320. package/lib/generated-client/models/group-state-type.d.ts +22 -0
  321. package/lib/generated-client/models/group-state-type.js +23 -0
  322. package/lib/generated-client/models/group-update-type.d.ts +29 -0
  323. package/lib/generated-client/models/group-update-type.js +30 -0
  324. package/lib/generated-client/models/guide-info.d.ts +29 -0
  325. package/lib/generated-client/models/guide-info.js +13 -0
  326. package/lib/generated-client/models/hardware-encoding-type.d.ts +24 -0
  327. package/lib/generated-client/models/hardware-encoding-type.js +25 -0
  328. package/lib/generated-client/models/header-match-type.d.ts +21 -0
  329. package/lib/generated-client/models/header-match-type.js +22 -0
  330. package/lib/generated-client/models/http-header-info.d.ts +36 -0
  331. package/lib/generated-client/models/http-header-info.js +13 -0
  332. package/lib/generated-client/models/ignore-wait-request-dto.d.ts +23 -0
  333. package/lib/generated-client/models/ignore-wait-request-dto.js +13 -0
  334. package/lib/generated-client/models/image-by-name-info.d.ts +47 -0
  335. package/lib/generated-client/models/image-by-name-info.js +13 -0
  336. package/lib/generated-client/models/image-format.d.ts +23 -0
  337. package/lib/generated-client/models/image-format.js +24 -0
  338. package/lib/generated-client/models/image-info.d.ts +66 -0
  339. package/lib/generated-client/models/image-info.js +13 -0
  340. package/lib/generated-client/models/image-option.d.ts +36 -0
  341. package/lib/generated-client/models/image-option.js +13 -0
  342. package/lib/generated-client/models/image-orientation.d.ts +26 -0
  343. package/lib/generated-client/models/image-orientation.js +27 -0
  344. package/lib/generated-client/models/image-provider-info.d.ts +30 -0
  345. package/lib/generated-client/models/image-provider-info.js +13 -0
  346. package/lib/generated-client/models/image-resolution.d.ts +27 -0
  347. package/lib/generated-client/models/image-resolution.js +28 -0
  348. package/lib/generated-client/models/image-saving-convention.d.ts +20 -0
  349. package/lib/generated-client/models/image-saving-convention.js +21 -0
  350. package/lib/generated-client/models/image-type.d.ts +31 -0
  351. package/lib/generated-client/models/image-type.js +32 -0
  352. package/lib/generated-client/models/index.d.ts +289 -0
  353. package/lib/generated-client/models/index.js +289 -0
  354. package/lib/generated-client/models/installation-info.d.ts +60 -0
  355. package/lib/generated-client/models/installation-info.js +13 -0
  356. package/lib/generated-client/models/iplugin.d.ts +59 -0
  357. package/lib/generated-client/models/iplugin.js +13 -0
  358. package/lib/generated-client/models/iso-type.d.ts +20 -0
  359. package/lib/generated-client/models/iso-type.js +21 -0
  360. package/lib/generated-client/models/item-counts.d.ts +89 -0
  361. package/lib/generated-client/models/item-counts.js +13 -0
  362. package/lib/generated-client/models/item-fields.d.ts +79 -0
  363. package/lib/generated-client/models/item-fields.js +80 -0
  364. package/lib/generated-client/models/item-filter.d.ts +27 -0
  365. package/lib/generated-client/models/item-filter.js +28 -0
  366. package/lib/generated-client/models/join-group-request-dto.d.ts +23 -0
  367. package/lib/generated-client/models/join-group-request-dto.js +13 -0
  368. package/lib/generated-client/models/keep-until.d.ts +22 -0
  369. package/lib/generated-client/models/keep-until.js +23 -0
  370. package/lib/generated-client/models/library-option-info-dto.d.ts +29 -0
  371. package/lib/generated-client/models/library-option-info-dto.js +13 -0
  372. package/lib/generated-client/models/library-options-result-dto.d.ts +43 -0
  373. package/lib/generated-client/models/library-options-result-dto.js +13 -0
  374. package/lib/generated-client/models/library-options.d.ts +183 -0
  375. package/lib/generated-client/models/library-options.js +13 -0
  376. package/lib/generated-client/models/library-type-options-dto.d.ts +50 -0
  377. package/lib/generated-client/models/library-type-options-dto.js +13 -0
  378. package/lib/generated-client/models/library-update-info.d.ts +59 -0
  379. package/lib/generated-client/models/library-update-info.js +13 -0
  380. package/lib/generated-client/models/listings-provider-info.d.ts +126 -0
  381. package/lib/generated-client/models/listings-provider-info.js +13 -0
  382. package/lib/generated-client/models/live-stream-response.d.ts +24 -0
  383. package/lib/generated-client/models/live-stream-response.js +13 -0
  384. package/lib/generated-client/models/live-tv-info.d.ts +36 -0
  385. package/lib/generated-client/models/live-tv-info.js +13 -0
  386. package/lib/generated-client/models/live-tv-options.d.ts +97 -0
  387. package/lib/generated-client/models/live-tv-options.js +13 -0
  388. package/lib/generated-client/models/live-tv-service-info.d.ts +66 -0
  389. package/lib/generated-client/models/live-tv-service-info.js +13 -0
  390. package/lib/generated-client/models/live-tv-service-status.d.ts +20 -0
  391. package/lib/generated-client/models/live-tv-service-status.js +21 -0
  392. package/lib/generated-client/models/localization-option.d.ts +29 -0
  393. package/lib/generated-client/models/localization-option.js +13 -0
  394. package/lib/generated-client/models/location-type.d.ts +22 -0
  395. package/lib/generated-client/models/location-type.js +23 -0
  396. package/lib/generated-client/models/log-file.d.ts +41 -0
  397. package/lib/generated-client/models/log-file.js +13 -0
  398. package/lib/generated-client/models/log-level.d.ts +25 -0
  399. package/lib/generated-client/models/log-level.js +26 -0
  400. package/lib/generated-client/models/lyric-line.d.ts +29 -0
  401. package/lib/generated-client/models/lyric-line.js +13 -0
  402. package/lib/generated-client/models/lyric-metadata.d.ts +71 -0
  403. package/lib/generated-client/models/lyric-metadata.js +13 -0
  404. package/lib/generated-client/models/lyric-response.d.ts +31 -0
  405. package/lib/generated-client/models/lyric-response.js +13 -0
  406. package/lib/generated-client/models/media-attachment.d.ts +59 -0
  407. package/lib/generated-client/models/media-attachment.js +13 -0
  408. package/lib/generated-client/models/media-encoder-path-dto.d.ts +29 -0
  409. package/lib/generated-client/models/media-encoder-path-dto.js +13 -0
  410. package/lib/generated-client/models/media-path-dto.d.ts +36 -0
  411. package/lib/generated-client/models/media-path-dto.js +13 -0
  412. package/lib/generated-client/models/media-path-info.d.ts +29 -0
  413. package/lib/generated-client/models/media-path-info.js +13 -0
  414. package/lib/generated-client/models/media-protocol.d.ts +25 -0
  415. package/lib/generated-client/models/media-protocol.js +26 -0
  416. package/lib/generated-client/models/media-source-info.d.ts +279 -0
  417. package/lib/generated-client/models/media-source-info.js +13 -0
  418. package/lib/generated-client/models/media-source-type.d.ts +21 -0
  419. package/lib/generated-client/models/media-source-type.js +22 -0
  420. package/lib/generated-client/models/media-stream-type.d.ts +23 -0
  421. package/lib/generated-client/models/media-stream-type.js +24 -0
  422. package/lib/generated-client/models/media-stream.d.ts +379 -0
  423. package/lib/generated-client/models/media-stream.js +13 -0
  424. package/lib/generated-client/models/media-update-info-dto.d.ts +24 -0
  425. package/lib/generated-client/models/media-update-info-dto.js +13 -0
  426. package/lib/generated-client/models/media-update-info-path-dto.d.ts +29 -0
  427. package/lib/generated-client/models/media-update-info-path-dto.js +13 -0
  428. package/lib/generated-client/models/media-url.d.ts +29 -0
  429. package/lib/generated-client/models/media-url.js +13 -0
  430. package/lib/generated-client/models/message-command.d.ts +35 -0
  431. package/lib/generated-client/models/message-command.js +13 -0
  432. package/lib/generated-client/models/metadata-configuration.d.ts +23 -0
  433. package/lib/generated-client/models/metadata-configuration.js +13 -0
  434. package/lib/generated-client/models/metadata-editor-info.d.ts +58 -0
  435. package/lib/generated-client/models/metadata-editor-info.js +13 -0
  436. package/lib/generated-client/models/metadata-field.d.ts +27 -0
  437. package/lib/generated-client/models/metadata-field.js +28 -0
  438. package/lib/generated-client/models/metadata-options.d.ts +59 -0
  439. package/lib/generated-client/models/metadata-options.js +13 -0
  440. package/lib/generated-client/models/metadata-refresh-mode.d.ts +22 -0
  441. package/lib/generated-client/models/metadata-refresh-mode.js +23 -0
  442. package/lib/generated-client/models/move-playlist-item-request-dto.d.ts +29 -0
  443. package/lib/generated-client/models/move-playlist-item-request-dto.js +13 -0
  444. package/lib/generated-client/models/movie-info-remote-search-query.d.ts +42 -0
  445. package/lib/generated-client/models/movie-info-remote-search-query.js +13 -0
  446. package/lib/generated-client/models/movie-info.d.ts +85 -0
  447. package/lib/generated-client/models/movie-info.js +13 -0
  448. package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +42 -0
  449. package/lib/generated-client/models/music-video-info-remote-search-query.js +13 -0
  450. package/lib/generated-client/models/music-video-info.d.ts +91 -0
  451. package/lib/generated-client/models/music-video-info.js +13 -0
  452. package/lib/generated-client/models/name-guid-pair.d.ts +29 -0
  453. package/lib/generated-client/models/name-guid-pair.js +13 -0
  454. package/lib/generated-client/models/name-id-pair.d.ts +29 -0
  455. package/lib/generated-client/models/name-id-pair.js +13 -0
  456. package/lib/generated-client/models/name-value-pair.d.ts +29 -0
  457. package/lib/generated-client/models/name-value-pair.js +13 -0
  458. package/lib/generated-client/models/network-configuration.d.ts +221 -0
  459. package/lib/generated-client/models/network-configuration.js +13 -0
  460. package/lib/generated-client/models/new-group-request-dto.d.ts +23 -0
  461. package/lib/generated-client/models/new-group-request-dto.js +13 -0
  462. package/lib/generated-client/models/next-item-request-dto.d.ts +23 -0
  463. package/lib/generated-client/models/next-item-request-dto.js +13 -0
  464. package/lib/generated-client/models/notification-dto.d.ts +66 -0
  465. package/lib/generated-client/models/notification-dto.js +13 -0
  466. package/lib/generated-client/models/notification-level.d.ts +21 -0
  467. package/lib/generated-client/models/notification-level.js +22 -0
  468. package/lib/generated-client/models/notification-option.d.ts +54 -0
  469. package/lib/generated-client/models/notification-option.js +13 -0
  470. package/lib/generated-client/models/notification-options.d.ts +24 -0
  471. package/lib/generated-client/models/notification-options.js +13 -0
  472. package/lib/generated-client/models/notification-result-dto.d.ts +30 -0
  473. package/lib/generated-client/models/notification-result-dto.js +13 -0
  474. package/lib/generated-client/models/notification-type-info.d.ts +47 -0
  475. package/lib/generated-client/models/notification-type-info.js +13 -0
  476. package/lib/generated-client/models/notifications-summary-dto.d.ts +30 -0
  477. package/lib/generated-client/models/notifications-summary-dto.js +13 -0
  478. package/lib/generated-client/models/object-group-update.d.ts +36 -0
  479. package/lib/generated-client/models/object-group-update.js +13 -0
  480. package/lib/generated-client/models/open-live-stream-dto.d.ts +97 -0
  481. package/lib/generated-client/models/open-live-stream-dto.js +13 -0
  482. package/lib/generated-client/models/package-info.d.ts +66 -0
  483. package/lib/generated-client/models/package-info.js +13 -0
  484. package/lib/generated-client/models/parental-rating.d.ts +29 -0
  485. package/lib/generated-client/models/parental-rating.js +13 -0
  486. package/lib/generated-client/models/path-substitution.d.ts +29 -0
  487. package/lib/generated-client/models/path-substitution.js +13 -0
  488. package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +42 -0
  489. package/lib/generated-client/models/person-lookup-info-remote-search-query.js +13 -0
  490. package/lib/generated-client/models/person-lookup-info.d.ts +85 -0
  491. package/lib/generated-client/models/person-lookup-info.js +13 -0
  492. package/lib/generated-client/models/pin-redeem-result.d.ts +29 -0
  493. package/lib/generated-client/models/pin-redeem-result.js +13 -0
  494. package/lib/generated-client/models/ping-request-dto.d.ts +23 -0
  495. package/lib/generated-client/models/ping-request-dto.js +13 -0
  496. package/lib/generated-client/models/play-access.d.ts +20 -0
  497. package/lib/generated-client/models/play-access.js +21 -0
  498. package/lib/generated-client/models/play-command.d.ts +23 -0
  499. package/lib/generated-client/models/play-command.js +24 -0
  500. package/lib/generated-client/models/play-method.d.ts +21 -0
  501. package/lib/generated-client/models/play-method.js +22 -0
  502. package/lib/generated-client/models/play-request-dto.d.ts +35 -0
  503. package/lib/generated-client/models/play-request-dto.js +13 -0
  504. package/lib/generated-client/models/play-request.d.ts +66 -0
  505. package/lib/generated-client/models/play-request.js +13 -0
  506. package/lib/generated-client/models/playback-error-code.d.ts +21 -0
  507. package/lib/generated-client/models/playback-error-code.js +22 -0
  508. package/lib/generated-client/models/playback-info-dto.d.ts +108 -0
  509. package/lib/generated-client/models/playback-info-dto.js +13 -0
  510. package/lib/generated-client/models/playback-info-response.d.ts +37 -0
  511. package/lib/generated-client/models/playback-info-response.js +13 -0
  512. package/lib/generated-client/models/playback-progress-info.d.ts +141 -0
  513. package/lib/generated-client/models/playback-progress-info.js +13 -0
  514. package/lib/generated-client/models/playback-start-info.d.ts +141 -0
  515. package/lib/generated-client/models/playback-start-info.js +13 -0
  516. package/lib/generated-client/models/playback-stop-info.d.ts +85 -0
  517. package/lib/generated-client/models/playback-stop-info.js +13 -0
  518. package/lib/generated-client/models/player-state-info.d.ts +85 -0
  519. package/lib/generated-client/models/player-state-info.js +13 -0
  520. package/lib/generated-client/models/playlist-creation-result.d.ts +23 -0
  521. package/lib/generated-client/models/playlist-creation-result.js +13 -0
  522. package/lib/generated-client/models/playstate-command.d.ts +27 -0
  523. package/lib/generated-client/models/playstate-command.js +28 -0
  524. package/lib/generated-client/models/playstate-request.d.ts +36 -0
  525. package/lib/generated-client/models/playstate-request.js +13 -0
  526. package/lib/generated-client/models/plugin-info.d.ts +66 -0
  527. package/lib/generated-client/models/plugin-info.js +13 -0
  528. package/lib/generated-client/models/plugin-status.d.ts +25 -0
  529. package/lib/generated-client/models/plugin-status.js +26 -0
  530. package/lib/generated-client/models/previous-item-request-dto.d.ts +23 -0
  531. package/lib/generated-client/models/previous-item-request-dto.js +13 -0
  532. package/lib/generated-client/models/problem-details.d.ts +48 -0
  533. package/lib/generated-client/models/problem-details.js +13 -0
  534. package/lib/generated-client/models/profile-condition-type.d.ts +23 -0
  535. package/lib/generated-client/models/profile-condition-type.js +24 -0
  536. package/lib/generated-client/models/profile-condition-value.d.ts +42 -0
  537. package/lib/generated-client/models/profile-condition-value.js +43 -0
  538. package/lib/generated-client/models/profile-condition.d.ts +43 -0
  539. package/lib/generated-client/models/profile-condition.js +13 -0
  540. package/lib/generated-client/models/program-audio.d.ts +24 -0
  541. package/lib/generated-client/models/program-audio.js +25 -0
  542. package/lib/generated-client/models/public-system-info.d.ts +59 -0
  543. package/lib/generated-client/models/public-system-info.js +13 -0
  544. package/lib/generated-client/models/query-filters-legacy.d.ts +41 -0
  545. package/lib/generated-client/models/query-filters-legacy.js +13 -0
  546. package/lib/generated-client/models/query-filters.d.ts +30 -0
  547. package/lib/generated-client/models/query-filters.js +13 -0
  548. package/lib/generated-client/models/queue-item.d.ts +29 -0
  549. package/lib/generated-client/models/queue-item.js +13 -0
  550. package/lib/generated-client/models/queue-request-dto.d.ts +30 -0
  551. package/lib/generated-client/models/queue-request-dto.js +13 -0
  552. package/lib/generated-client/models/quick-connect-dto.d.ts +23 -0
  553. package/lib/generated-client/models/quick-connect-dto.js +13 -0
  554. package/lib/generated-client/models/quick-connect-result.d.ts +65 -0
  555. package/lib/generated-client/models/quick-connect-result.js +13 -0
  556. package/lib/generated-client/models/rating-type.d.ts +20 -0
  557. package/lib/generated-client/models/rating-type.js +21 -0
  558. package/lib/generated-client/models/ready-request-dto.d.ts +41 -0
  559. package/lib/generated-client/models/ready-request-dto.js +13 -0
  560. package/lib/generated-client/models/recommendation-dto.d.ts +43 -0
  561. package/lib/generated-client/models/recommendation-dto.js +13 -0
  562. package/lib/generated-client/models/recommendation-type.d.ts +24 -0
  563. package/lib/generated-client/models/recommendation-type.js +25 -0
  564. package/lib/generated-client/models/recording-status.d.ts +25 -0
  565. package/lib/generated-client/models/recording-status.js +26 -0
  566. package/lib/generated-client/models/remote-image-info.d.ts +79 -0
  567. package/lib/generated-client/models/remote-image-info.js +13 -0
  568. package/lib/generated-client/models/remote-image-result.d.ts +36 -0
  569. package/lib/generated-client/models/remote-image-result.js +13 -0
  570. package/lib/generated-client/models/remote-search-result.d.ts +91 -0
  571. package/lib/generated-client/models/remote-search-result.js +13 -0
  572. package/lib/generated-client/models/remote-subtitle-info.d.ts +83 -0
  573. package/lib/generated-client/models/remote-subtitle-info.js +13 -0
  574. package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +35 -0
  575. package/lib/generated-client/models/remove-from-playlist-request-dto.js +13 -0
  576. package/lib/generated-client/models/repeat-mode.d.ts +21 -0
  577. package/lib/generated-client/models/repeat-mode.js +22 -0
  578. package/lib/generated-client/models/repository-info.d.ts +35 -0
  579. package/lib/generated-client/models/repository-info.js +13 -0
  580. package/lib/generated-client/models/response-profile.d.ts +61 -0
  581. package/lib/generated-client/models/response-profile.js +13 -0
  582. package/lib/generated-client/models/scroll-direction.d.ts +20 -0
  583. package/lib/generated-client/models/scroll-direction.js +21 -0
  584. package/lib/generated-client/models/search-hint-result.d.ts +30 -0
  585. package/lib/generated-client/models/search-hint-result.js +13 -0
  586. package/lib/generated-client/models/search-hint.d.ts +193 -0
  587. package/lib/generated-client/models/search-hint.js +13 -0
  588. package/lib/generated-client/models/seek-request-dto.d.ts +23 -0
  589. package/lib/generated-client/models/seek-request-dto.js +13 -0
  590. package/lib/generated-client/models/send-command-type.d.ts +22 -0
  591. package/lib/generated-client/models/send-command-type.js +23 -0
  592. package/lib/generated-client/models/send-command.d.ts +54 -0
  593. package/lib/generated-client/models/send-command.js +13 -0
  594. package/lib/generated-client/models/send-to-user-type.d.ts +21 -0
  595. package/lib/generated-client/models/send-to-user-type.js +22 -0
  596. package/lib/generated-client/models/series-info-remote-search-query.d.ts +42 -0
  597. package/lib/generated-client/models/series-info-remote-search-query.js +13 -0
  598. package/lib/generated-client/models/series-info.d.ts +85 -0
  599. package/lib/generated-client/models/series-info.js +13 -0
  600. package/lib/generated-client/models/series-status.d.ts +21 -0
  601. package/lib/generated-client/models/series-status.js +22 -0
  602. package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +36 -0
  603. package/lib/generated-client/models/series-timer-info-dto-query-result.js +13 -0
  604. package/lib/generated-client/models/series-timer-info-dto.d.ts +232 -0
  605. package/lib/generated-client/models/series-timer-info-dto.js +13 -0
  606. package/lib/generated-client/models/server-configuration.d.ts +329 -0
  607. package/lib/generated-client/models/server-configuration.js +13 -0
  608. package/lib/generated-client/models/server-discovery-info.d.ts +41 -0
  609. package/lib/generated-client/models/server-discovery-info.js +13 -0
  610. package/lib/generated-client/models/session-info.d.ts +199 -0
  611. package/lib/generated-client/models/session-info.js +13 -0
  612. package/lib/generated-client/models/session-message-type.d.ts +52 -0
  613. package/lib/generated-client/models/session-message-type.js +53 -0
  614. package/lib/generated-client/models/session-user-info.d.ts +29 -0
  615. package/lib/generated-client/models/session-user-info.js +13 -0
  616. package/lib/generated-client/models/set-channel-mapping-dto.d.ts +35 -0
  617. package/lib/generated-client/models/set-channel-mapping-dto.js +13 -0
  618. package/lib/generated-client/models/set-playlist-item-request-dto.d.ts +23 -0
  619. package/lib/generated-client/models/set-playlist-item-request-dto.js +13 -0
  620. package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +24 -0
  621. package/lib/generated-client/models/set-repeat-mode-request-dto.js +13 -0
  622. package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +24 -0
  623. package/lib/generated-client/models/set-shuffle-mode-request-dto.js +13 -0
  624. package/lib/generated-client/models/song-info.d.ts +103 -0
  625. package/lib/generated-client/models/song-info.js +13 -0
  626. package/lib/generated-client/models/sort-order.d.ts +20 -0
  627. package/lib/generated-client/models/sort-order.js +21 -0
  628. package/lib/generated-client/models/special-view-option-dto.d.ts +29 -0
  629. package/lib/generated-client/models/special-view-option-dto.js +13 -0
  630. package/lib/generated-client/models/startup-configuration-dto.d.ts +35 -0
  631. package/lib/generated-client/models/startup-configuration-dto.js +13 -0
  632. package/lib/generated-client/models/startup-remote-access-dto.d.ts +29 -0
  633. package/lib/generated-client/models/startup-remote-access-dto.js +13 -0
  634. package/lib/generated-client/models/startup-user-dto.d.ts +29 -0
  635. package/lib/generated-client/models/startup-user-dto.js +13 -0
  636. package/lib/generated-client/models/subtitle-delivery-method.d.ts +23 -0
  637. package/lib/generated-client/models/subtitle-delivery-method.js +24 -0
  638. package/lib/generated-client/models/subtitle-options.d.ts +71 -0
  639. package/lib/generated-client/models/subtitle-options.js +13 -0
  640. package/lib/generated-client/models/subtitle-playback-mode.d.ts +23 -0
  641. package/lib/generated-client/models/subtitle-playback-mode.js +24 -0
  642. package/lib/generated-client/models/subtitle-profile.d.ts +48 -0
  643. package/lib/generated-client/models/subtitle-profile.js +13 -0
  644. package/lib/generated-client/models/sync-play-user-access-type.d.ts +21 -0
  645. package/lib/generated-client/models/sync-play-user-access-type.js +22 -0
  646. package/lib/generated-client/models/system-info.d.ts +177 -0
  647. package/lib/generated-client/models/system-info.js +13 -0
  648. package/lib/generated-client/models/task-completion-status.d.ts +22 -0
  649. package/lib/generated-client/models/task-completion-status.js +23 -0
  650. package/lib/generated-client/models/task-info.d.ts +80 -0
  651. package/lib/generated-client/models/task-info.js +13 -0
  652. package/lib/generated-client/models/task-result.d.ts +66 -0
  653. package/lib/generated-client/models/task-result.js +13 -0
  654. package/lib/generated-client/models/task-state.d.ts +21 -0
  655. package/lib/generated-client/models/task-state.js +22 -0
  656. package/lib/generated-client/models/task-trigger-info.d.ts +48 -0
  657. package/lib/generated-client/models/task-trigger-info.js +13 -0
  658. package/lib/generated-client/models/theme-media-result.d.ts +42 -0
  659. package/lib/generated-client/models/theme-media-result.js +13 -0
  660. package/lib/generated-client/models/timer-event-info.d.ts +29 -0
  661. package/lib/generated-client/models/timer-event-info.js +13 -0
  662. package/lib/generated-client/models/timer-info-dto-query-result.d.ts +36 -0
  663. package/lib/generated-client/models/timer-info-dto-query-result.js +13 -0
  664. package/lib/generated-client/models/timer-info-dto.d.ts +188 -0
  665. package/lib/generated-client/models/timer-info-dto.js +13 -0
  666. package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +42 -0
  667. package/lib/generated-client/models/trailer-info-remote-search-query.js +13 -0
  668. package/lib/generated-client/models/trailer-info.d.ts +85 -0
  669. package/lib/generated-client/models/trailer-info.js +13 -0
  670. package/lib/generated-client/models/transcode-reason.d.ts +43 -0
  671. package/lib/generated-client/models/transcode-reason.js +44 -0
  672. package/lib/generated-client/models/transcode-seek-info.d.ts +20 -0
  673. package/lib/generated-client/models/transcode-seek-info.js +21 -0
  674. package/lib/generated-client/models/transcoding-info.d.ts +97 -0
  675. package/lib/generated-client/models/transcoding-info.js +13 -0
  676. package/lib/generated-client/models/transcoding-profile.d.ts +117 -0
  677. package/lib/generated-client/models/transcoding-profile.js +13 -0
  678. package/lib/generated-client/models/transport-stream-timestamp.d.ts +21 -0
  679. package/lib/generated-client/models/transport-stream-timestamp.js +22 -0
  680. package/lib/generated-client/models/tuner-channel-mapping.d.ts +41 -0
  681. package/lib/generated-client/models/tuner-channel-mapping.js +13 -0
  682. package/lib/generated-client/models/tuner-host-info.d.ts +89 -0
  683. package/lib/generated-client/models/tuner-host-info.js +13 -0
  684. package/lib/generated-client/models/type-options.d.ts +54 -0
  685. package/lib/generated-client/models/type-options.js +13 -0
  686. package/lib/generated-client/models/unrated-item.d.ts +27 -0
  687. package/lib/generated-client/models/unrated-item.js +28 -0
  688. package/lib/generated-client/models/update-library-options-dto.d.ts +30 -0
  689. package/lib/generated-client/models/update-library-options-dto.js +13 -0
  690. package/lib/generated-client/models/update-media-path-request-dto.d.ts +30 -0
  691. package/lib/generated-client/models/update-media-path-request-dto.js +13 -0
  692. package/lib/generated-client/models/update-user-easy-password.d.ts +35 -0
  693. package/lib/generated-client/models/update-user-easy-password.js +13 -0
  694. package/lib/generated-client/models/update-user-password.d.ts +41 -0
  695. package/lib/generated-client/models/update-user-password.js +13 -0
  696. package/lib/generated-client/models/upload-subtitle-dto.d.ts +41 -0
  697. package/lib/generated-client/models/upload-subtitle-dto.js +13 -0
  698. package/lib/generated-client/models/user-configuration.d.ts +108 -0
  699. package/lib/generated-client/models/user-configuration.js +13 -0
  700. package/lib/generated-client/models/user-dto.d.ts +103 -0
  701. package/lib/generated-client/models/user-dto.js +13 -0
  702. package/lib/generated-client/models/user-item-data-dto.d.ts +83 -0
  703. package/lib/generated-client/models/user-item-data-dto.js +13 -0
  704. package/lib/generated-client/models/user-policy.d.ts +254 -0
  705. package/lib/generated-client/models/user-policy.js +13 -0
  706. package/lib/generated-client/models/utc-time-response.d.ts +29 -0
  707. package/lib/generated-client/models/utc-time-response.js +13 -0
  708. package/lib/generated-client/models/validate-path-dto.d.ts +35 -0
  709. package/lib/generated-client/models/validate-path-dto.js +13 -0
  710. package/lib/generated-client/models/version-info.d.ts +71 -0
  711. package/lib/generated-client/models/version-info.js +13 -0
  712. package/lib/generated-client/models/video-type.d.ts +22 -0
  713. package/lib/generated-client/models/video-type.js +23 -0
  714. package/lib/generated-client/models/video3-dformat.d.ts +23 -0
  715. package/lib/generated-client/models/video3-dformat.js +24 -0
  716. package/lib/generated-client/models/virtual-folder-info.d.ts +67 -0
  717. package/lib/generated-client/models/virtual-folder-info.js +13 -0
  718. package/lib/generated-client/models/wake-on-lan-info.d.ts +29 -0
  719. package/lib/generated-client/models/wake-on-lan-info.js +13 -0
  720. package/lib/generated-client/models/xbmc-metadata-options.d.ts +47 -0
  721. package/lib/generated-client/models/xbmc-metadata-options.js +13 -0
  722. package/lib/generated-client/models/xml-attribute.d.ts +29 -0
  723. package/lib/generated-client/models/xml-attribute.js +13 -0
  724. package/lib/index.d.ts +10 -0
  725. package/lib/index.js +12 -0
  726. package/lib/jellyfin.d.ts +33 -0
  727. package/lib/jellyfin.js +29 -0
  728. package/lib/models/api/image-request-parameters.d.ts +29 -0
  729. package/lib/models/api/image-request-parameters.js +6 -0
  730. package/lib/models/api/index.d.ts +7 -0
  731. package/lib/models/api/index.js +7 -0
  732. package/lib/models/api/item-sort-by.d.ts +40 -0
  733. package/lib/models/api/item-sort-by.js +41 -0
  734. package/lib/models/client-info.d.ts +12 -0
  735. package/lib/models/client-info.js +6 -0
  736. package/lib/models/device-info.d.ts +12 -0
  737. package/lib/models/device-info.js +6 -0
  738. package/lib/models/index.d.ts +9 -0
  739. package/lib/models/index.js +9 -0
  740. package/lib/models/recommended-server-info.d.ts +22 -0
  741. package/lib/models/recommended-server-info.js +13 -0
  742. package/lib/models/recommended-server-issue.d.ts +48 -0
  743. package/lib/models/recommended-server-issue.js +55 -0
  744. package/lib/utils/address-candidates.d.ts +16 -0
  745. package/lib/utils/address-candidates.js +81 -0
  746. package/lib/utils/api/activity-log-api.d.ts +8 -0
  747. package/lib/utils/api/activity-log-api.js +9 -0
  748. package/lib/utils/api/api-key-api.d.ts +8 -0
  749. package/lib/utils/api/api-key-api.js +9 -0
  750. package/lib/utils/api/artists-api.d.ts +8 -0
  751. package/lib/utils/api/artists-api.js +9 -0
  752. package/lib/utils/api/audio-api.d.ts +8 -0
  753. package/lib/utils/api/audio-api.js +9 -0
  754. package/lib/utils/api/branding-api.d.ts +8 -0
  755. package/lib/utils/api/branding-api.js +9 -0
  756. package/lib/utils/api/channels-api.d.ts +8 -0
  757. package/lib/utils/api/channels-api.js +9 -0
  758. package/lib/utils/api/client-log-api.d.ts +8 -0
  759. package/lib/utils/api/client-log-api.js +9 -0
  760. package/lib/utils/api/collection-api.d.ts +8 -0
  761. package/lib/utils/api/collection-api.js +9 -0
  762. package/lib/utils/api/configuration-api.d.ts +8 -0
  763. package/lib/utils/api/configuration-api.js +9 -0
  764. package/lib/utils/api/dashboard-api.d.ts +8 -0
  765. package/lib/utils/api/dashboard-api.js +9 -0
  766. package/lib/utils/api/devices-api.d.ts +8 -0
  767. package/lib/utils/api/devices-api.js +9 -0
  768. package/lib/utils/api/display-preferences-api.d.ts +8 -0
  769. package/lib/utils/api/display-preferences-api.js +9 -0
  770. package/lib/utils/api/dlna-api.d.ts +8 -0
  771. package/lib/utils/api/dlna-api.js +9 -0
  772. package/lib/utils/api/dlna-server-api.d.ts +8 -0
  773. package/lib/utils/api/dlna-server-api.js +9 -0
  774. package/lib/utils/api/dynamic-hls-api.d.ts +8 -0
  775. package/lib/utils/api/dynamic-hls-api.js +9 -0
  776. package/lib/utils/api/environment-api.d.ts +8 -0
  777. package/lib/utils/api/environment-api.js +9 -0
  778. package/lib/utils/api/filter-api.d.ts +8 -0
  779. package/lib/utils/api/filter-api.js +9 -0
  780. package/lib/utils/api/genres-api.d.ts +8 -0
  781. package/lib/utils/api/genres-api.js +9 -0
  782. package/lib/utils/api/hls-segment-api.d.ts +8 -0
  783. package/lib/utils/api/hls-segment-api.js +9 -0
  784. package/lib/utils/api/image-api.d.ts +8 -0
  785. package/lib/utils/api/image-api.js +9 -0
  786. package/lib/utils/api/image-by-name-api.d.ts +8 -0
  787. package/lib/utils/api/image-by-name-api.js +9 -0
  788. package/lib/utils/api/instant-mix-api.d.ts +8 -0
  789. package/lib/utils/api/instant-mix-api.js +9 -0
  790. package/lib/utils/api/item-lookup-api.d.ts +8 -0
  791. package/lib/utils/api/item-lookup-api.js +9 -0
  792. package/lib/utils/api/item-refresh-api.d.ts +8 -0
  793. package/lib/utils/api/item-refresh-api.js +9 -0
  794. package/lib/utils/api/item-update-api.d.ts +8 -0
  795. package/lib/utils/api/item-update-api.js +9 -0
  796. package/lib/utils/api/items-api.d.ts +8 -0
  797. package/lib/utils/api/items-api.js +9 -0
  798. package/lib/utils/api/library-api.d.ts +8 -0
  799. package/lib/utils/api/library-api.js +9 -0
  800. package/lib/utils/api/library-structure-api.d.ts +8 -0
  801. package/lib/utils/api/library-structure-api.js +9 -0
  802. package/lib/utils/api/live-tv-api.d.ts +8 -0
  803. package/lib/utils/api/live-tv-api.js +9 -0
  804. package/lib/utils/api/localization-api.d.ts +8 -0
  805. package/lib/utils/api/localization-api.js +9 -0
  806. package/lib/utils/api/media-info-api.d.ts +8 -0
  807. package/lib/utils/api/media-info-api.js +9 -0
  808. package/lib/utils/api/movies-api.d.ts +8 -0
  809. package/lib/utils/api/movies-api.js +9 -0
  810. package/lib/utils/api/music-genres-api.d.ts +8 -0
  811. package/lib/utils/api/music-genres-api.js +9 -0
  812. package/lib/utils/api/notifications-api.d.ts +8 -0
  813. package/lib/utils/api/notifications-api.js +9 -0
  814. package/lib/utils/api/package-api.d.ts +8 -0
  815. package/lib/utils/api/package-api.js +9 -0
  816. package/lib/utils/api/persons-api.d.ts +8 -0
  817. package/lib/utils/api/persons-api.js +9 -0
  818. package/lib/utils/api/playlists-api.d.ts +8 -0
  819. package/lib/utils/api/playlists-api.js +9 -0
  820. package/lib/utils/api/playstate-api.d.ts +8 -0
  821. package/lib/utils/api/playstate-api.js +9 -0
  822. package/lib/utils/api/plugins-api.d.ts +8 -0
  823. package/lib/utils/api/plugins-api.js +9 -0
  824. package/lib/utils/api/quick-connect-api.d.ts +8 -0
  825. package/lib/utils/api/quick-connect-api.js +9 -0
  826. package/lib/utils/api/remote-image-api.d.ts +8 -0
  827. package/lib/utils/api/remote-image-api.js +9 -0
  828. package/lib/utils/api/scheduled-tasks-api.d.ts +8 -0
  829. package/lib/utils/api/scheduled-tasks-api.js +9 -0
  830. package/lib/utils/api/search-api.d.ts +8 -0
  831. package/lib/utils/api/search-api.js +9 -0
  832. package/lib/utils/api/session-api.d.ts +8 -0
  833. package/lib/utils/api/session-api.js +9 -0
  834. package/lib/utils/api/startup-api.d.ts +8 -0
  835. package/lib/utils/api/startup-api.js +9 -0
  836. package/lib/utils/api/studios-api.d.ts +8 -0
  837. package/lib/utils/api/studios-api.js +9 -0
  838. package/lib/utils/api/subtitle-api.d.ts +8 -0
  839. package/lib/utils/api/subtitle-api.js +9 -0
  840. package/lib/utils/api/suggestions-api.d.ts +8 -0
  841. package/lib/utils/api/suggestions-api.js +9 -0
  842. package/lib/utils/api/sync-play-api.d.ts +8 -0
  843. package/lib/utils/api/sync-play-api.js +9 -0
  844. package/lib/utils/api/system-api.d.ts +8 -0
  845. package/lib/utils/api/system-api.js +9 -0
  846. package/lib/utils/api/time-sync-api.d.ts +8 -0
  847. package/lib/utils/api/time-sync-api.js +9 -0
  848. package/lib/utils/api/tmdb-api.d.ts +8 -0
  849. package/lib/utils/api/tmdb-api.js +9 -0
  850. package/lib/utils/api/trailers-api.d.ts +8 -0
  851. package/lib/utils/api/trailers-api.js +9 -0
  852. package/lib/utils/api/tv-shows-api.d.ts +8 -0
  853. package/lib/utils/api/tv-shows-api.js +9 -0
  854. package/lib/utils/api/universal-audio-api.d.ts +8 -0
  855. package/lib/utils/api/universal-audio-api.js +9 -0
  856. package/lib/utils/api/user-api.d.ts +8 -0
  857. package/lib/utils/api/user-api.js +9 -0
  858. package/lib/utils/api/user-library-api.d.ts +8 -0
  859. package/lib/utils/api/user-library-api.js +9 -0
  860. package/lib/utils/api/user-views-api.d.ts +8 -0
  861. package/lib/utils/api/user-views-api.js +9 -0
  862. package/lib/utils/api/video-attachments-api.d.ts +8 -0
  863. package/lib/utils/api/video-attachments-api.js +9 -0
  864. package/lib/utils/api/videos-api.d.ts +8 -0
  865. package/lib/utils/api/videos-api.js +9 -0
  866. package/lib/utils/api/years-api.d.ts +8 -0
  867. package/lib/utils/api/years-api.js +9 -0
  868. package/lib/utils/authentication.d.ts +10 -0
  869. package/lib/utils/authentication.js +13 -0
  870. package/lib/utils/browser-profiles.d.ts +25 -0
  871. package/lib/utils/browser-profiles.js +40 -0
  872. package/lib/utils/index.d.ts +9 -0
  873. package/lib/utils/index.js +9 -0
  874. package/lib/utils/normalize-url.d.ts +20 -0
  875. package/lib/utils/normalize-url.js +93 -0
  876. package/lib/utils/url.d.ts +31 -0
  877. package/lib/utils/url.js +45 -0
  878. package/openapi-templates/licenseInfo.mustache +10 -0
  879. package/package.json +45 -0
  880. package/tsconfig.json +27 -0
@@ -0,0 +1,1465 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5
+ * Do not edit the class manually.
6
+ *
7
+ * Jellyfin API
8
+ *
9
+ * This Source Code Form is subject to the terms of the Mozilla Public
10
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
11
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12
+ */
13
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ import globalAxios from 'axios';
23
+ // Some imports not used depending on template conditions
24
+ // @ts-ignore
25
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from '../common';
26
+ // @ts-ignore
27
+ import { BASE_PATH, BaseAPI } from '../base';
28
+ /**
29
+ * AudioApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export const AudioApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @summary Gets an audio stream.
37
+ * @param {string} itemId The item id.
38
+ * @param {string} [container] The audio container.
39
+ * @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.
40
+ * @param {string} [params] The streaming parameters.
41
+ * @param {string} [tag] The tag.
42
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
43
+ * @param {string} [playSessionId] The play session id.
44
+ * @param {string} [segmentContainer] The segment container.
45
+ * @param {number} [segmentLength] The segment length.
46
+ * @param {number} [minSegments] The minimum number of segments.
47
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
48
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
49
+ * @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.
50
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
51
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
52
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
53
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
54
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
55
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
56
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
57
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
58
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
59
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
60
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
61
+ * @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.
62
+ * @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.
63
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
64
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
65
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
66
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
67
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
68
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
69
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
70
+ * @param {number} [maxRefFrames] Optional.
71
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
72
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
73
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
74
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
75
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
76
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
77
+ * @param {string} [liveStreamId] The live stream id.
78
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
79
+ * @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.
80
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
81
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
82
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
83
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
84
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
85
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ 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 = {}) => __awaiter(this, void 0, void 0, function* () {
90
+ // verify required parameter 'itemId' is not null or undefined
91
+ assertParamExists('getAudioStream', 'itemId', itemId);
92
+ const localVarPath = `/Audio/{itemId}/stream`
93
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
94
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
95
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
96
+ let baseOptions;
97
+ if (configuration) {
98
+ baseOptions = configuration.baseOptions;
99
+ }
100
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
101
+ const localVarHeaderParameter = {};
102
+ const localVarQueryParameter = {};
103
+ if (container !== undefined) {
104
+ localVarQueryParameter['container'] = container;
105
+ }
106
+ if (_static !== undefined) {
107
+ localVarQueryParameter['static'] = _static;
108
+ }
109
+ if (params !== undefined) {
110
+ localVarQueryParameter['params'] = params;
111
+ }
112
+ if (tag !== undefined) {
113
+ localVarQueryParameter['tag'] = tag;
114
+ }
115
+ if (deviceProfileId !== undefined) {
116
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
117
+ }
118
+ if (playSessionId !== undefined) {
119
+ localVarQueryParameter['playSessionId'] = playSessionId;
120
+ }
121
+ if (segmentContainer !== undefined) {
122
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
123
+ }
124
+ if (segmentLength !== undefined) {
125
+ localVarQueryParameter['segmentLength'] = segmentLength;
126
+ }
127
+ if (minSegments !== undefined) {
128
+ localVarQueryParameter['minSegments'] = minSegments;
129
+ }
130
+ if (mediaSourceId !== undefined) {
131
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
132
+ }
133
+ if (deviceId !== undefined) {
134
+ localVarQueryParameter['deviceId'] = deviceId;
135
+ }
136
+ if (audioCodec !== undefined) {
137
+ localVarQueryParameter['audioCodec'] = audioCodec;
138
+ }
139
+ if (enableAutoStreamCopy !== undefined) {
140
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
141
+ }
142
+ if (allowVideoStreamCopy !== undefined) {
143
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
144
+ }
145
+ if (allowAudioStreamCopy !== undefined) {
146
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
147
+ }
148
+ if (breakOnNonKeyFrames !== undefined) {
149
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
150
+ }
151
+ if (audioSampleRate !== undefined) {
152
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
153
+ }
154
+ if (maxAudioBitDepth !== undefined) {
155
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
156
+ }
157
+ if (audioBitRate !== undefined) {
158
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
159
+ }
160
+ if (audioChannels !== undefined) {
161
+ localVarQueryParameter['audioChannels'] = audioChannels;
162
+ }
163
+ if (maxAudioChannels !== undefined) {
164
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
165
+ }
166
+ if (profile !== undefined) {
167
+ localVarQueryParameter['profile'] = profile;
168
+ }
169
+ if (level !== undefined) {
170
+ localVarQueryParameter['level'] = level;
171
+ }
172
+ if (framerate !== undefined) {
173
+ localVarQueryParameter['framerate'] = framerate;
174
+ }
175
+ if (maxFramerate !== undefined) {
176
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
177
+ }
178
+ if (copyTimestamps !== undefined) {
179
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
180
+ }
181
+ if (startTimeTicks !== undefined) {
182
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
183
+ }
184
+ if (width !== undefined) {
185
+ localVarQueryParameter['width'] = width;
186
+ }
187
+ if (height !== undefined) {
188
+ localVarQueryParameter['height'] = height;
189
+ }
190
+ if (videoBitRate !== undefined) {
191
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
192
+ }
193
+ if (subtitleStreamIndex !== undefined) {
194
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
195
+ }
196
+ if (subtitleMethod !== undefined) {
197
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
198
+ }
199
+ if (maxRefFrames !== undefined) {
200
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
201
+ }
202
+ if (maxVideoBitDepth !== undefined) {
203
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
204
+ }
205
+ if (requireAvc !== undefined) {
206
+ localVarQueryParameter['requireAvc'] = requireAvc;
207
+ }
208
+ if (deInterlace !== undefined) {
209
+ localVarQueryParameter['deInterlace'] = deInterlace;
210
+ }
211
+ if (requireNonAnamorphic !== undefined) {
212
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
213
+ }
214
+ if (transcodingMaxAudioChannels !== undefined) {
215
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
216
+ }
217
+ if (cpuCoreLimit !== undefined) {
218
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
219
+ }
220
+ if (liveStreamId !== undefined) {
221
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
222
+ }
223
+ if (enableMpegtsM2TsMode !== undefined) {
224
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
225
+ }
226
+ if (videoCodec !== undefined) {
227
+ localVarQueryParameter['videoCodec'] = videoCodec;
228
+ }
229
+ if (subtitleCodec !== undefined) {
230
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
231
+ }
232
+ if (transcodeReasons !== undefined) {
233
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
234
+ }
235
+ if (audioStreamIndex !== undefined) {
236
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
237
+ }
238
+ if (videoStreamIndex !== undefined) {
239
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
240
+ }
241
+ if (context !== undefined) {
242
+ localVarQueryParameter['context'] = context;
243
+ }
244
+ if (streamOptions !== undefined) {
245
+ localVarQueryParameter['streamOptions'] = streamOptions;
246
+ }
247
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
248
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
250
+ return {
251
+ url: toPathString(localVarUrlObj),
252
+ options: localVarRequestOptions,
253
+ };
254
+ }),
255
+ /**
256
+ *
257
+ * @summary Gets an audio stream.
258
+ * @param {string} itemId The item id.
259
+ * @param {string} container The audio container.
260
+ * @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.
261
+ * @param {string} [params] The streaming parameters.
262
+ * @param {string} [tag] The tag.
263
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
264
+ * @param {string} [playSessionId] The play session id.
265
+ * @param {string} [segmentContainer] The segment container.
266
+ * @param {number} [segmentLength] The segment length.
267
+ * @param {number} [minSegments] The minimum number of segments.
268
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
269
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
270
+ * @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.
271
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
272
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
273
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
274
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
275
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
276
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
277
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
278
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
279
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
280
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
281
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
282
+ * @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.
283
+ * @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.
284
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
285
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
286
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
287
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
288
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
289
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
290
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
291
+ * @param {number} [maxRefFrames] Optional.
292
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
293
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
294
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
295
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
296
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
297
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
298
+ * @param {string} [liveStreamId] The live stream id.
299
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
300
+ * @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.
301
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
302
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
303
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
304
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
305
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
306
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
307
+ * @param {*} [options] Override http request option.
308
+ * @throws {RequiredError}
309
+ */
310
+ 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 = {}) => __awaiter(this, void 0, void 0, function* () {
311
+ // verify required parameter 'itemId' is not null or undefined
312
+ assertParamExists('getAudioStreamByContainer', 'itemId', itemId);
313
+ // verify required parameter 'container' is not null or undefined
314
+ assertParamExists('getAudioStreamByContainer', 'container', container);
315
+ const localVarPath = `/Audio/{itemId}/stream.{container}`
316
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)))
317
+ .replace(`{${"container"}}`, encodeURIComponent(String(container)));
318
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
319
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
320
+ let baseOptions;
321
+ if (configuration) {
322
+ baseOptions = configuration.baseOptions;
323
+ }
324
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
325
+ const localVarHeaderParameter = {};
326
+ const localVarQueryParameter = {};
327
+ if (_static !== undefined) {
328
+ localVarQueryParameter['static'] = _static;
329
+ }
330
+ if (params !== undefined) {
331
+ localVarQueryParameter['params'] = params;
332
+ }
333
+ if (tag !== undefined) {
334
+ localVarQueryParameter['tag'] = tag;
335
+ }
336
+ if (deviceProfileId !== undefined) {
337
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
338
+ }
339
+ if (playSessionId !== undefined) {
340
+ localVarQueryParameter['playSessionId'] = playSessionId;
341
+ }
342
+ if (segmentContainer !== undefined) {
343
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
344
+ }
345
+ if (segmentLength !== undefined) {
346
+ localVarQueryParameter['segmentLength'] = segmentLength;
347
+ }
348
+ if (minSegments !== undefined) {
349
+ localVarQueryParameter['minSegments'] = minSegments;
350
+ }
351
+ if (mediaSourceId !== undefined) {
352
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
353
+ }
354
+ if (deviceId !== undefined) {
355
+ localVarQueryParameter['deviceId'] = deviceId;
356
+ }
357
+ if (audioCodec !== undefined) {
358
+ localVarQueryParameter['audioCodec'] = audioCodec;
359
+ }
360
+ if (enableAutoStreamCopy !== undefined) {
361
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
362
+ }
363
+ if (allowVideoStreamCopy !== undefined) {
364
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
365
+ }
366
+ if (allowAudioStreamCopy !== undefined) {
367
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
368
+ }
369
+ if (breakOnNonKeyFrames !== undefined) {
370
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
371
+ }
372
+ if (audioSampleRate !== undefined) {
373
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
374
+ }
375
+ if (maxAudioBitDepth !== undefined) {
376
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
377
+ }
378
+ if (audioBitRate !== undefined) {
379
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
380
+ }
381
+ if (audioChannels !== undefined) {
382
+ localVarQueryParameter['audioChannels'] = audioChannels;
383
+ }
384
+ if (maxAudioChannels !== undefined) {
385
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
386
+ }
387
+ if (profile !== undefined) {
388
+ localVarQueryParameter['profile'] = profile;
389
+ }
390
+ if (level !== undefined) {
391
+ localVarQueryParameter['level'] = level;
392
+ }
393
+ if (framerate !== undefined) {
394
+ localVarQueryParameter['framerate'] = framerate;
395
+ }
396
+ if (maxFramerate !== undefined) {
397
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
398
+ }
399
+ if (copyTimestamps !== undefined) {
400
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
401
+ }
402
+ if (startTimeTicks !== undefined) {
403
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
404
+ }
405
+ if (width !== undefined) {
406
+ localVarQueryParameter['width'] = width;
407
+ }
408
+ if (height !== undefined) {
409
+ localVarQueryParameter['height'] = height;
410
+ }
411
+ if (videoBitRate !== undefined) {
412
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
413
+ }
414
+ if (subtitleStreamIndex !== undefined) {
415
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
416
+ }
417
+ if (subtitleMethod !== undefined) {
418
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
419
+ }
420
+ if (maxRefFrames !== undefined) {
421
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
422
+ }
423
+ if (maxVideoBitDepth !== undefined) {
424
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
425
+ }
426
+ if (requireAvc !== undefined) {
427
+ localVarQueryParameter['requireAvc'] = requireAvc;
428
+ }
429
+ if (deInterlace !== undefined) {
430
+ localVarQueryParameter['deInterlace'] = deInterlace;
431
+ }
432
+ if (requireNonAnamorphic !== undefined) {
433
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
434
+ }
435
+ if (transcodingMaxAudioChannels !== undefined) {
436
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
437
+ }
438
+ if (cpuCoreLimit !== undefined) {
439
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
440
+ }
441
+ if (liveStreamId !== undefined) {
442
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
443
+ }
444
+ if (enableMpegtsM2TsMode !== undefined) {
445
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
446
+ }
447
+ if (videoCodec !== undefined) {
448
+ localVarQueryParameter['videoCodec'] = videoCodec;
449
+ }
450
+ if (subtitleCodec !== undefined) {
451
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
452
+ }
453
+ if (transcodeReasons !== undefined) {
454
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
455
+ }
456
+ if (audioStreamIndex !== undefined) {
457
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
458
+ }
459
+ if (videoStreamIndex !== undefined) {
460
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
461
+ }
462
+ if (context !== undefined) {
463
+ localVarQueryParameter['context'] = context;
464
+ }
465
+ if (streamOptions !== undefined) {
466
+ localVarQueryParameter['streamOptions'] = streamOptions;
467
+ }
468
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
469
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
470
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
471
+ return {
472
+ url: toPathString(localVarUrlObj),
473
+ options: localVarRequestOptions,
474
+ };
475
+ }),
476
+ /**
477
+ *
478
+ * @summary Gets an audio stream.
479
+ * @param {string} itemId The item id.
480
+ * @param {string} [container] The audio container.
481
+ * @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.
482
+ * @param {string} [params] The streaming parameters.
483
+ * @param {string} [tag] The tag.
484
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
485
+ * @param {string} [playSessionId] The play session id.
486
+ * @param {string} [segmentContainer] The segment container.
487
+ * @param {number} [segmentLength] The segment length.
488
+ * @param {number} [minSegments] The minimum number of segments.
489
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
490
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
491
+ * @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 {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
493
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
494
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
495
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
496
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
497
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
498
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
499
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
500
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
501
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
502
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
503
+ * @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.
504
+ * @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.
505
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
506
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
507
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
508
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
509
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
510
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
511
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
512
+ * @param {number} [maxRefFrames] Optional.
513
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
514
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
515
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
516
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
517
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
518
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
519
+ * @param {string} [liveStreamId] The live stream id.
520
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
521
+ * @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} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
523
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
524
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
525
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
526
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
527
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ */
531
+ 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 = {}) => __awaiter(this, void 0, void 0, function* () {
532
+ // verify required parameter 'itemId' is not null or undefined
533
+ assertParamExists('headAudioStream', 'itemId', itemId);
534
+ const localVarPath = `/Audio/{itemId}/stream`
535
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
536
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
537
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
538
+ let baseOptions;
539
+ if (configuration) {
540
+ baseOptions = configuration.baseOptions;
541
+ }
542
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
543
+ const localVarHeaderParameter = {};
544
+ const localVarQueryParameter = {};
545
+ if (container !== undefined) {
546
+ localVarQueryParameter['container'] = container;
547
+ }
548
+ if (_static !== undefined) {
549
+ localVarQueryParameter['static'] = _static;
550
+ }
551
+ if (params !== undefined) {
552
+ localVarQueryParameter['params'] = params;
553
+ }
554
+ if (tag !== undefined) {
555
+ localVarQueryParameter['tag'] = tag;
556
+ }
557
+ if (deviceProfileId !== undefined) {
558
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
559
+ }
560
+ if (playSessionId !== undefined) {
561
+ localVarQueryParameter['playSessionId'] = playSessionId;
562
+ }
563
+ if (segmentContainer !== undefined) {
564
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
565
+ }
566
+ if (segmentLength !== undefined) {
567
+ localVarQueryParameter['segmentLength'] = segmentLength;
568
+ }
569
+ if (minSegments !== undefined) {
570
+ localVarQueryParameter['minSegments'] = minSegments;
571
+ }
572
+ if (mediaSourceId !== undefined) {
573
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
574
+ }
575
+ if (deviceId !== undefined) {
576
+ localVarQueryParameter['deviceId'] = deviceId;
577
+ }
578
+ if (audioCodec !== undefined) {
579
+ localVarQueryParameter['audioCodec'] = audioCodec;
580
+ }
581
+ if (enableAutoStreamCopy !== undefined) {
582
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
583
+ }
584
+ if (allowVideoStreamCopy !== undefined) {
585
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
586
+ }
587
+ if (allowAudioStreamCopy !== undefined) {
588
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
589
+ }
590
+ if (breakOnNonKeyFrames !== undefined) {
591
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
592
+ }
593
+ if (audioSampleRate !== undefined) {
594
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
595
+ }
596
+ if (maxAudioBitDepth !== undefined) {
597
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
598
+ }
599
+ if (audioBitRate !== undefined) {
600
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
601
+ }
602
+ if (audioChannels !== undefined) {
603
+ localVarQueryParameter['audioChannels'] = audioChannels;
604
+ }
605
+ if (maxAudioChannels !== undefined) {
606
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
607
+ }
608
+ if (profile !== undefined) {
609
+ localVarQueryParameter['profile'] = profile;
610
+ }
611
+ if (level !== undefined) {
612
+ localVarQueryParameter['level'] = level;
613
+ }
614
+ if (framerate !== undefined) {
615
+ localVarQueryParameter['framerate'] = framerate;
616
+ }
617
+ if (maxFramerate !== undefined) {
618
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
619
+ }
620
+ if (copyTimestamps !== undefined) {
621
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
622
+ }
623
+ if (startTimeTicks !== undefined) {
624
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
625
+ }
626
+ if (width !== undefined) {
627
+ localVarQueryParameter['width'] = width;
628
+ }
629
+ if (height !== undefined) {
630
+ localVarQueryParameter['height'] = height;
631
+ }
632
+ if (videoBitRate !== undefined) {
633
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
634
+ }
635
+ if (subtitleStreamIndex !== undefined) {
636
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
637
+ }
638
+ if (subtitleMethod !== undefined) {
639
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
640
+ }
641
+ if (maxRefFrames !== undefined) {
642
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
643
+ }
644
+ if (maxVideoBitDepth !== undefined) {
645
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
646
+ }
647
+ if (requireAvc !== undefined) {
648
+ localVarQueryParameter['requireAvc'] = requireAvc;
649
+ }
650
+ if (deInterlace !== undefined) {
651
+ localVarQueryParameter['deInterlace'] = deInterlace;
652
+ }
653
+ if (requireNonAnamorphic !== undefined) {
654
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
655
+ }
656
+ if (transcodingMaxAudioChannels !== undefined) {
657
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
658
+ }
659
+ if (cpuCoreLimit !== undefined) {
660
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
661
+ }
662
+ if (liveStreamId !== undefined) {
663
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
664
+ }
665
+ if (enableMpegtsM2TsMode !== undefined) {
666
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
667
+ }
668
+ if (videoCodec !== undefined) {
669
+ localVarQueryParameter['videoCodec'] = videoCodec;
670
+ }
671
+ if (subtitleCodec !== undefined) {
672
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
673
+ }
674
+ if (transcodeReasons !== undefined) {
675
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
676
+ }
677
+ if (audioStreamIndex !== undefined) {
678
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
679
+ }
680
+ if (videoStreamIndex !== undefined) {
681
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
682
+ }
683
+ if (context !== undefined) {
684
+ localVarQueryParameter['context'] = context;
685
+ }
686
+ if (streamOptions !== undefined) {
687
+ localVarQueryParameter['streamOptions'] = streamOptions;
688
+ }
689
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
690
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
691
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
692
+ return {
693
+ url: toPathString(localVarUrlObj),
694
+ options: localVarRequestOptions,
695
+ };
696
+ }),
697
+ /**
698
+ *
699
+ * @summary Gets an audio stream.
700
+ * @param {string} itemId The item id.
701
+ * @param {string} container The audio container.
702
+ * @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.
703
+ * @param {string} [params] The streaming parameters.
704
+ * @param {string} [tag] The tag.
705
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
706
+ * @param {string} [playSessionId] The play session id.
707
+ * @param {string} [segmentContainer] The segment container.
708
+ * @param {number} [segmentLength] The segment length.
709
+ * @param {number} [minSegments] The minimum number of segments.
710
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
711
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
712
+ * @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.
713
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
714
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
715
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
716
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
717
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
718
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
719
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
720
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
721
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
722
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
723
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
724
+ * @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.
725
+ * @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.
726
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
727
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
728
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
729
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
730
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
731
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
732
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
733
+ * @param {number} [maxRefFrames] Optional.
734
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
735
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
736
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
737
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
738
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
739
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
740
+ * @param {string} [liveStreamId] The live stream id.
741
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
742
+ * @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.
743
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
744
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
745
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
746
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
747
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
748
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ */
752
+ 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 = {}) => __awaiter(this, void 0, void 0, function* () {
753
+ // verify required parameter 'itemId' is not null or undefined
754
+ assertParamExists('headAudioStreamByContainer', 'itemId', itemId);
755
+ // verify required parameter 'container' is not null or undefined
756
+ assertParamExists('headAudioStreamByContainer', 'container', container);
757
+ const localVarPath = `/Audio/{itemId}/stream.{container}`
758
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)))
759
+ .replace(`{${"container"}}`, encodeURIComponent(String(container)));
760
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
761
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
762
+ let baseOptions;
763
+ if (configuration) {
764
+ baseOptions = configuration.baseOptions;
765
+ }
766
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
767
+ const localVarHeaderParameter = {};
768
+ const localVarQueryParameter = {};
769
+ if (_static !== undefined) {
770
+ localVarQueryParameter['static'] = _static;
771
+ }
772
+ if (params !== undefined) {
773
+ localVarQueryParameter['params'] = params;
774
+ }
775
+ if (tag !== undefined) {
776
+ localVarQueryParameter['tag'] = tag;
777
+ }
778
+ if (deviceProfileId !== undefined) {
779
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
780
+ }
781
+ if (playSessionId !== undefined) {
782
+ localVarQueryParameter['playSessionId'] = playSessionId;
783
+ }
784
+ if (segmentContainer !== undefined) {
785
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
786
+ }
787
+ if (segmentLength !== undefined) {
788
+ localVarQueryParameter['segmentLength'] = segmentLength;
789
+ }
790
+ if (minSegments !== undefined) {
791
+ localVarQueryParameter['minSegments'] = minSegments;
792
+ }
793
+ if (mediaSourceId !== undefined) {
794
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
795
+ }
796
+ if (deviceId !== undefined) {
797
+ localVarQueryParameter['deviceId'] = deviceId;
798
+ }
799
+ if (audioCodec !== undefined) {
800
+ localVarQueryParameter['audioCodec'] = audioCodec;
801
+ }
802
+ if (enableAutoStreamCopy !== undefined) {
803
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
804
+ }
805
+ if (allowVideoStreamCopy !== undefined) {
806
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
807
+ }
808
+ if (allowAudioStreamCopy !== undefined) {
809
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
810
+ }
811
+ if (breakOnNonKeyFrames !== undefined) {
812
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
813
+ }
814
+ if (audioSampleRate !== undefined) {
815
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
816
+ }
817
+ if (maxAudioBitDepth !== undefined) {
818
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
819
+ }
820
+ if (audioBitRate !== undefined) {
821
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
822
+ }
823
+ if (audioChannels !== undefined) {
824
+ localVarQueryParameter['audioChannels'] = audioChannels;
825
+ }
826
+ if (maxAudioChannels !== undefined) {
827
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
828
+ }
829
+ if (profile !== undefined) {
830
+ localVarQueryParameter['profile'] = profile;
831
+ }
832
+ if (level !== undefined) {
833
+ localVarQueryParameter['level'] = level;
834
+ }
835
+ if (framerate !== undefined) {
836
+ localVarQueryParameter['framerate'] = framerate;
837
+ }
838
+ if (maxFramerate !== undefined) {
839
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
840
+ }
841
+ if (copyTimestamps !== undefined) {
842
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
843
+ }
844
+ if (startTimeTicks !== undefined) {
845
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
846
+ }
847
+ if (width !== undefined) {
848
+ localVarQueryParameter['width'] = width;
849
+ }
850
+ if (height !== undefined) {
851
+ localVarQueryParameter['height'] = height;
852
+ }
853
+ if (videoBitRate !== undefined) {
854
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
855
+ }
856
+ if (subtitleStreamIndex !== undefined) {
857
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
858
+ }
859
+ if (subtitleMethod !== undefined) {
860
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
861
+ }
862
+ if (maxRefFrames !== undefined) {
863
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
864
+ }
865
+ if (maxVideoBitDepth !== undefined) {
866
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
867
+ }
868
+ if (requireAvc !== undefined) {
869
+ localVarQueryParameter['requireAvc'] = requireAvc;
870
+ }
871
+ if (deInterlace !== undefined) {
872
+ localVarQueryParameter['deInterlace'] = deInterlace;
873
+ }
874
+ if (requireNonAnamorphic !== undefined) {
875
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
876
+ }
877
+ if (transcodingMaxAudioChannels !== undefined) {
878
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
879
+ }
880
+ if (cpuCoreLimit !== undefined) {
881
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
882
+ }
883
+ if (liveStreamId !== undefined) {
884
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
885
+ }
886
+ if (enableMpegtsM2TsMode !== undefined) {
887
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
888
+ }
889
+ if (videoCodec !== undefined) {
890
+ localVarQueryParameter['videoCodec'] = videoCodec;
891
+ }
892
+ if (subtitleCodec !== undefined) {
893
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
894
+ }
895
+ if (transcodeReasons !== undefined) {
896
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
897
+ }
898
+ if (audioStreamIndex !== undefined) {
899
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
900
+ }
901
+ if (videoStreamIndex !== undefined) {
902
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
903
+ }
904
+ if (context !== undefined) {
905
+ localVarQueryParameter['context'] = context;
906
+ }
907
+ if (streamOptions !== undefined) {
908
+ localVarQueryParameter['streamOptions'] = streamOptions;
909
+ }
910
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
911
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
912
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
913
+ return {
914
+ url: toPathString(localVarUrlObj),
915
+ options: localVarRequestOptions,
916
+ };
917
+ }),
918
+ };
919
+ };
920
+ /**
921
+ * AudioApi - functional programming interface
922
+ * @export
923
+ */
924
+ export const AudioApiFp = function (configuration) {
925
+ const localVarAxiosParamCreator = AudioApiAxiosParamCreator(configuration);
926
+ return {
927
+ /**
928
+ *
929
+ * @summary Gets an audio stream.
930
+ * @param {string} itemId The item id.
931
+ * @param {string} [container] The audio container.
932
+ * @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.
933
+ * @param {string} [params] The streaming parameters.
934
+ * @param {string} [tag] The tag.
935
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
936
+ * @param {string} [playSessionId] The play session id.
937
+ * @param {string} [segmentContainer] The segment container.
938
+ * @param {number} [segmentLength] The segment length.
939
+ * @param {number} [minSegments] The minimum number of segments.
940
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
941
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
942
+ * @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.
943
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
944
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
945
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
946
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
947
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
948
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
949
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
950
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
951
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
952
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
953
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
954
+ * @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.
955
+ * @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.
956
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
957
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
958
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
959
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
960
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
961
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
962
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
963
+ * @param {number} [maxRefFrames] Optional.
964
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
965
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
966
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
967
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
968
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
969
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
970
+ * @param {string} [liveStreamId] The live stream id.
971
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
972
+ * @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.
973
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
974
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
975
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
976
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
977
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
978
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ */
982
+ 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) {
983
+ return __awaiter(this, void 0, void 0, function* () {
984
+ 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);
985
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
986
+ });
987
+ },
988
+ /**
989
+ *
990
+ * @summary Gets an audio stream.
991
+ * @param {string} itemId The item id.
992
+ * @param {string} container The audio container.
993
+ * @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.
994
+ * @param {string} [params] The streaming parameters.
995
+ * @param {string} [tag] The tag.
996
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
997
+ * @param {string} [playSessionId] The play session id.
998
+ * @param {string} [segmentContainer] The segment container.
999
+ * @param {number} [segmentLength] The segment length.
1000
+ * @param {number} [minSegments] The minimum number of segments.
1001
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1002
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1003
+ * @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.
1004
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1005
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1006
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1007
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1008
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1009
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1010
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1011
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1012
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1013
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1014
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1015
+ * @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.
1016
+ * @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.
1017
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1018
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1019
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1020
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1021
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1022
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1023
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1024
+ * @param {number} [maxRefFrames] Optional.
1025
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1026
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1027
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1028
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
1029
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1030
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1031
+ * @param {string} [liveStreamId] The live stream id.
1032
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1033
+ * @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.
1034
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1035
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1036
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1037
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1038
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1039
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1040
+ * @param {*} [options] Override http request option.
1041
+ * @throws {RequiredError}
1042
+ */
1043
+ 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) {
1044
+ return __awaiter(this, void 0, void 0, function* () {
1045
+ 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);
1046
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1047
+ });
1048
+ },
1049
+ /**
1050
+ *
1051
+ * @summary Gets an audio stream.
1052
+ * @param {string} itemId The item id.
1053
+ * @param {string} [container] The audio container.
1054
+ * @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.
1055
+ * @param {string} [params] The streaming parameters.
1056
+ * @param {string} [tag] The tag.
1057
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1058
+ * @param {string} [playSessionId] The play session id.
1059
+ * @param {string} [segmentContainer] The segment container.
1060
+ * @param {number} [segmentLength] The segment length.
1061
+ * @param {number} [minSegments] The minimum number of segments.
1062
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1063
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1064
+ * @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.
1065
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1066
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1067
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1068
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1069
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1070
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1071
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1072
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1073
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1074
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1075
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1076
+ * @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.
1077
+ * @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.
1078
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1079
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1080
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1081
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1082
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1083
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1084
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1085
+ * @param {number} [maxRefFrames] Optional.
1086
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1087
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1088
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1089
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1090
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1091
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1092
+ * @param {string} [liveStreamId] The live stream id.
1093
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1094
+ * @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.
1095
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1096
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1097
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1098
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1099
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1100
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ */
1104
+ 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) {
1105
+ return __awaiter(this, void 0, void 0, function* () {
1106
+ 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);
1107
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1108
+ });
1109
+ },
1110
+ /**
1111
+ *
1112
+ * @summary Gets an audio stream.
1113
+ * @param {string} itemId The item id.
1114
+ * @param {string} container The audio container.
1115
+ * @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.
1116
+ * @param {string} [params] The streaming parameters.
1117
+ * @param {string} [tag] The tag.
1118
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1119
+ * @param {string} [playSessionId] The play session id.
1120
+ * @param {string} [segmentContainer] The segment container.
1121
+ * @param {number} [segmentLength] The segment length.
1122
+ * @param {number} [minSegments] The minimum number of segments.
1123
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1124
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1125
+ * @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.
1126
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1127
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1128
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1129
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1130
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1131
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1132
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1133
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1134
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1135
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1136
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1137
+ * @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.
1138
+ * @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.
1139
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1140
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1141
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1142
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1143
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1144
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1145
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1146
+ * @param {number} [maxRefFrames] Optional.
1147
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1148
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1149
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1150
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
1151
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1152
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1153
+ * @param {string} [liveStreamId] The live stream id.
1154
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1155
+ * @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.
1156
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1157
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1158
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1159
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1160
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1161
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1162
+ * @param {*} [options] Override http request option.
1163
+ * @throws {RequiredError}
1164
+ */
1165
+ 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) {
1166
+ return __awaiter(this, void 0, void 0, function* () {
1167
+ 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);
1168
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1169
+ });
1170
+ },
1171
+ };
1172
+ };
1173
+ /**
1174
+ * AudioApi - factory interface
1175
+ * @export
1176
+ */
1177
+ export const AudioApiFactory = function (configuration, basePath, axios) {
1178
+ const localVarFp = AudioApiFp(configuration);
1179
+ return {
1180
+ /**
1181
+ *
1182
+ * @summary Gets an audio stream.
1183
+ * @param {string} itemId The item id.
1184
+ * @param {string} [container] The audio container.
1185
+ * @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.
1186
+ * @param {string} [params] The streaming parameters.
1187
+ * @param {string} [tag] The tag.
1188
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1189
+ * @param {string} [playSessionId] The play session id.
1190
+ * @param {string} [segmentContainer] The segment container.
1191
+ * @param {number} [segmentLength] The segment length.
1192
+ * @param {number} [minSegments] The minimum number of segments.
1193
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1194
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1195
+ * @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.
1196
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1197
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1198
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1199
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1200
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1201
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1202
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1203
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1204
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1205
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1206
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1207
+ * @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.
1208
+ * @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.
1209
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1210
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1211
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1212
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1213
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1214
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1215
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1216
+ * @param {number} [maxRefFrames] Optional.
1217
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1218
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1219
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1220
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1221
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1222
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1223
+ * @param {string} [liveStreamId] The live stream id.
1224
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1225
+ * @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.
1226
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1227
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1228
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1229
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1230
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1231
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1232
+ * @param {*} [options] Override http request option.
1233
+ * @throws {RequiredError}
1234
+ */
1235
+ 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) {
1236
+ 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));
1237
+ },
1238
+ /**
1239
+ *
1240
+ * @summary Gets an audio stream.
1241
+ * @param {string} itemId The item id.
1242
+ * @param {string} container The audio container.
1243
+ * @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.
1244
+ * @param {string} [params] The streaming parameters.
1245
+ * @param {string} [tag] The tag.
1246
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1247
+ * @param {string} [playSessionId] The play session id.
1248
+ * @param {string} [segmentContainer] The segment container.
1249
+ * @param {number} [segmentLength] The segment length.
1250
+ * @param {number} [minSegments] The minimum number of segments.
1251
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1252
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1253
+ * @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.
1254
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1255
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1256
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1257
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1258
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1259
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1260
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1261
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1262
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1263
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1264
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1265
+ * @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.
1266
+ * @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.
1267
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1268
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1269
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1270
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1271
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1272
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1273
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1274
+ * @param {number} [maxRefFrames] Optional.
1275
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1276
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1277
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1278
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
1279
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1280
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1281
+ * @param {string} [liveStreamId] The live stream id.
1282
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1283
+ * @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.
1284
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1285
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1286
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1287
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1288
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1289
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1290
+ * @param {*} [options] Override http request option.
1291
+ * @throws {RequiredError}
1292
+ */
1293
+ 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) {
1294
+ 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));
1295
+ },
1296
+ /**
1297
+ *
1298
+ * @summary Gets an audio stream.
1299
+ * @param {string} itemId The item id.
1300
+ * @param {string} [container] The audio container.
1301
+ * @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.
1302
+ * @param {string} [params] The streaming parameters.
1303
+ * @param {string} [tag] The tag.
1304
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1305
+ * @param {string} [playSessionId] The play session id.
1306
+ * @param {string} [segmentContainer] The segment container.
1307
+ * @param {number} [segmentLength] The segment length.
1308
+ * @param {number} [minSegments] The minimum number of segments.
1309
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1310
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1311
+ * @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.
1312
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1313
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1314
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1315
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1316
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1317
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1318
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1319
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1320
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1321
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1322
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1323
+ * @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.
1324
+ * @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.
1325
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1326
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1327
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1328
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1329
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1330
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1331
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1332
+ * @param {number} [maxRefFrames] Optional.
1333
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1334
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1335
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1336
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1337
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1338
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1339
+ * @param {string} [liveStreamId] The live stream id.
1340
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1341
+ * @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.
1342
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1343
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1344
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1345
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1346
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1347
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ */
1351
+ 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) {
1352
+ 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));
1353
+ },
1354
+ /**
1355
+ *
1356
+ * @summary Gets an audio stream.
1357
+ * @param {string} itemId The item id.
1358
+ * @param {string} container The audio container.
1359
+ * @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.
1360
+ * @param {string} [params] The streaming parameters.
1361
+ * @param {string} [tag] The tag.
1362
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1363
+ * @param {string} [playSessionId] The play session id.
1364
+ * @param {string} [segmentContainer] The segment container.
1365
+ * @param {number} [segmentLength] The segment length.
1366
+ * @param {number} [minSegments] The minimum number of segments.
1367
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1368
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1369
+ * @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.
1370
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1371
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1372
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1373
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1374
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1375
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1376
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1377
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1378
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1379
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1380
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1381
+ * @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.
1382
+ * @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.
1383
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1384
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
1385
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1386
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1387
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1388
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1389
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1390
+ * @param {number} [maxRefFrames] Optional.
1391
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1392
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1393
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1394
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream.
1395
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1396
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1397
+ * @param {string} [liveStreamId] The live stream id.
1398
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1399
+ * @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.
1400
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1401
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1402
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1403
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1404
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1405
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1406
+ * @param {*} [options] Override http request option.
1407
+ * @throws {RequiredError}
1408
+ */
1409
+ 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) {
1410
+ 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));
1411
+ },
1412
+ };
1413
+ };
1414
+ /**
1415
+ * AudioApi - object-oriented interface
1416
+ * @export
1417
+ * @class AudioApi
1418
+ * @extends {BaseAPI}
1419
+ */
1420
+ export class AudioApi extends BaseAPI {
1421
+ /**
1422
+ *
1423
+ * @summary Gets an audio stream.
1424
+ * @param {AudioApiGetAudioStreamRequest} requestParameters Request parameters.
1425
+ * @param {*} [options] Override http request option.
1426
+ * @throws {RequiredError}
1427
+ * @memberof AudioApi
1428
+ */
1429
+ getAudioStream(requestParameters, options) {
1430
+ 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));
1431
+ }
1432
+ /**
1433
+ *
1434
+ * @summary Gets an audio stream.
1435
+ * @param {AudioApiGetAudioStreamByContainerRequest} requestParameters Request parameters.
1436
+ * @param {*} [options] Override http request option.
1437
+ * @throws {RequiredError}
1438
+ * @memberof AudioApi
1439
+ */
1440
+ getAudioStreamByContainer(requestParameters, options) {
1441
+ 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));
1442
+ }
1443
+ /**
1444
+ *
1445
+ * @summary Gets an audio stream.
1446
+ * @param {AudioApiHeadAudioStreamRequest} requestParameters Request parameters.
1447
+ * @param {*} [options] Override http request option.
1448
+ * @throws {RequiredError}
1449
+ * @memberof AudioApi
1450
+ */
1451
+ headAudioStream(requestParameters, options) {
1452
+ 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));
1453
+ }
1454
+ /**
1455
+ *
1456
+ * @summary Gets an audio stream.
1457
+ * @param {AudioApiHeadAudioStreamByContainerRequest} requestParameters Request parameters.
1458
+ * @param {*} [options] Override http request option.
1459
+ * @throws {RequiredError}
1460
+ * @memberof AudioApi
1461
+ */
1462
+ headAudioStreamByContainer(requestParameters, options) {
1463
+ 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));
1464
+ }
1465
+ }