@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,1716 @@
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, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
26
+ // @ts-ignore
27
+ import { BASE_PATH, BaseAPI } from '../base';
28
+ /**
29
+ * VideosApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export const VideosApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @summary Removes alternate video sources.
37
+ * @param {string} itemId The item id.
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ deleteAlternateSources: (itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
42
+ // verify required parameter 'itemId' is not null or undefined
43
+ assertParamExists('deleteAlternateSources', 'itemId', itemId);
44
+ const localVarPath = `/Videos/{itemId}/AlternateSources`
45
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication CustomAuthentication required
56
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
57
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
59
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
60
+ return {
61
+ url: toPathString(localVarUrlObj),
62
+ options: localVarRequestOptions,
63
+ };
64
+ }),
65
+ /**
66
+ *
67
+ * @summary Gets additional parts for a video.
68
+ * @param {string} itemId The item id.
69
+ * @param {string} [userId] Optional. Filter by user id, and attach user data.
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ getAdditionalPart: (itemId, userId, options = {}) => __awaiter(this, void 0, void 0, function* () {
74
+ // verify required parameter 'itemId' is not null or undefined
75
+ assertParamExists('getAdditionalPart', 'itemId', itemId);
76
+ const localVarPath = `/Videos/{itemId}/AdditionalParts`
77
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
78
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
80
+ let baseOptions;
81
+ if (configuration) {
82
+ baseOptions = configuration.baseOptions;
83
+ }
84
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
85
+ const localVarHeaderParameter = {};
86
+ const localVarQueryParameter = {};
87
+ // authentication CustomAuthentication required
88
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
89
+ if (userId !== undefined) {
90
+ localVarQueryParameter['userId'] = userId;
91
+ }
92
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
93
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95
+ return {
96
+ url: toPathString(localVarUrlObj),
97
+ options: localVarRequestOptions,
98
+ };
99
+ }),
100
+ /**
101
+ *
102
+ * @summary Gets a video stream.
103
+ * @param {string} itemId The item id.
104
+ * @param {string} [container] The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
105
+ * @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.
106
+ * @param {string} [params] The streaming parameters.
107
+ * @param {string} [tag] The tag.
108
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
109
+ * @param {string} [playSessionId] The play session id.
110
+ * @param {string} [segmentContainer] The segment container.
111
+ * @param {number} [segmentLength] The segment length.
112
+ * @param {number} [minSegments] The minimum number of segments.
113
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
114
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
115
+ * @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.
116
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
117
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
118
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
119
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
120
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
121
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
122
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
123
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
124
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
125
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
126
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
127
+ * @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.
128
+ * @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.
129
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
130
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
131
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
132
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
133
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
134
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
135
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
136
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
137
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
138
+ * @param {number} [maxRefFrames] Optional.
139
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
140
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
141
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
142
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
143
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
144
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
145
+ * @param {string} [liveStreamId] The live stream id.
146
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
147
+ * @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.
148
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
149
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
150
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
151
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
152
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
153
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ getVideoStream: (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, maxWidth, maxHeight, 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* () {
158
+ // verify required parameter 'itemId' is not null or undefined
159
+ assertParamExists('getVideoStream', 'itemId', itemId);
160
+ const localVarPath = `/Videos/{itemId}/stream`
161
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
162
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
163
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
164
+ let baseOptions;
165
+ if (configuration) {
166
+ baseOptions = configuration.baseOptions;
167
+ }
168
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
169
+ const localVarHeaderParameter = {};
170
+ const localVarQueryParameter = {};
171
+ if (container !== undefined) {
172
+ localVarQueryParameter['container'] = container;
173
+ }
174
+ if (_static !== undefined) {
175
+ localVarQueryParameter['static'] = _static;
176
+ }
177
+ if (params !== undefined) {
178
+ localVarQueryParameter['params'] = params;
179
+ }
180
+ if (tag !== undefined) {
181
+ localVarQueryParameter['tag'] = tag;
182
+ }
183
+ if (deviceProfileId !== undefined) {
184
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
185
+ }
186
+ if (playSessionId !== undefined) {
187
+ localVarQueryParameter['playSessionId'] = playSessionId;
188
+ }
189
+ if (segmentContainer !== undefined) {
190
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
191
+ }
192
+ if (segmentLength !== undefined) {
193
+ localVarQueryParameter['segmentLength'] = segmentLength;
194
+ }
195
+ if (minSegments !== undefined) {
196
+ localVarQueryParameter['minSegments'] = minSegments;
197
+ }
198
+ if (mediaSourceId !== undefined) {
199
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
200
+ }
201
+ if (deviceId !== undefined) {
202
+ localVarQueryParameter['deviceId'] = deviceId;
203
+ }
204
+ if (audioCodec !== undefined) {
205
+ localVarQueryParameter['audioCodec'] = audioCodec;
206
+ }
207
+ if (enableAutoStreamCopy !== undefined) {
208
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
209
+ }
210
+ if (allowVideoStreamCopy !== undefined) {
211
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
212
+ }
213
+ if (allowAudioStreamCopy !== undefined) {
214
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
215
+ }
216
+ if (breakOnNonKeyFrames !== undefined) {
217
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
218
+ }
219
+ if (audioSampleRate !== undefined) {
220
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
221
+ }
222
+ if (maxAudioBitDepth !== undefined) {
223
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
224
+ }
225
+ if (audioBitRate !== undefined) {
226
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
227
+ }
228
+ if (audioChannels !== undefined) {
229
+ localVarQueryParameter['audioChannels'] = audioChannels;
230
+ }
231
+ if (maxAudioChannels !== undefined) {
232
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
233
+ }
234
+ if (profile !== undefined) {
235
+ localVarQueryParameter['profile'] = profile;
236
+ }
237
+ if (level !== undefined) {
238
+ localVarQueryParameter['level'] = level;
239
+ }
240
+ if (framerate !== undefined) {
241
+ localVarQueryParameter['framerate'] = framerate;
242
+ }
243
+ if (maxFramerate !== undefined) {
244
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
245
+ }
246
+ if (copyTimestamps !== undefined) {
247
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
248
+ }
249
+ if (startTimeTicks !== undefined) {
250
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
251
+ }
252
+ if (width !== undefined) {
253
+ localVarQueryParameter['width'] = width;
254
+ }
255
+ if (height !== undefined) {
256
+ localVarQueryParameter['height'] = height;
257
+ }
258
+ if (maxWidth !== undefined) {
259
+ localVarQueryParameter['maxWidth'] = maxWidth;
260
+ }
261
+ if (maxHeight !== undefined) {
262
+ localVarQueryParameter['maxHeight'] = maxHeight;
263
+ }
264
+ if (videoBitRate !== undefined) {
265
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
266
+ }
267
+ if (subtitleStreamIndex !== undefined) {
268
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
269
+ }
270
+ if (subtitleMethod !== undefined) {
271
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
272
+ }
273
+ if (maxRefFrames !== undefined) {
274
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
275
+ }
276
+ if (maxVideoBitDepth !== undefined) {
277
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
278
+ }
279
+ if (requireAvc !== undefined) {
280
+ localVarQueryParameter['requireAvc'] = requireAvc;
281
+ }
282
+ if (deInterlace !== undefined) {
283
+ localVarQueryParameter['deInterlace'] = deInterlace;
284
+ }
285
+ if (requireNonAnamorphic !== undefined) {
286
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
287
+ }
288
+ if (transcodingMaxAudioChannels !== undefined) {
289
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
290
+ }
291
+ if (cpuCoreLimit !== undefined) {
292
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
293
+ }
294
+ if (liveStreamId !== undefined) {
295
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
296
+ }
297
+ if (enableMpegtsM2TsMode !== undefined) {
298
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
299
+ }
300
+ if (videoCodec !== undefined) {
301
+ localVarQueryParameter['videoCodec'] = videoCodec;
302
+ }
303
+ if (subtitleCodec !== undefined) {
304
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
305
+ }
306
+ if (transcodeReasons !== undefined) {
307
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
308
+ }
309
+ if (audioStreamIndex !== undefined) {
310
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
311
+ }
312
+ if (videoStreamIndex !== undefined) {
313
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
314
+ }
315
+ if (context !== undefined) {
316
+ localVarQueryParameter['context'] = context;
317
+ }
318
+ if (streamOptions !== undefined) {
319
+ localVarQueryParameter['streamOptions'] = streamOptions;
320
+ }
321
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
322
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
323
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
324
+ return {
325
+ url: toPathString(localVarUrlObj),
326
+ options: localVarRequestOptions,
327
+ };
328
+ }),
329
+ /**
330
+ *
331
+ * @summary Gets a video stream.
332
+ * @param {string} itemId The item id.
333
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
334
+ * @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.
335
+ * @param {string} [params] The streaming parameters.
336
+ * @param {string} [tag] The tag.
337
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
338
+ * @param {string} [playSessionId] The play session id.
339
+ * @param {string} [segmentContainer] The segment container.
340
+ * @param {number} [segmentLength] The segment length.
341
+ * @param {number} [minSegments] The minimum number of segments.
342
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
343
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
344
+ * @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.
345
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
346
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
347
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
348
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
349
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
350
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
351
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
352
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
353
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
354
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
355
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
356
+ * @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.
357
+ * @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.
358
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
359
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
360
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
361
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
362
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
363
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
364
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
365
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
366
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
367
+ * @param {number} [maxRefFrames] Optional.
368
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
369
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
370
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
371
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
372
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
373
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
374
+ * @param {string} [liveStreamId] The live stream id.
375
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
376
+ * @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.
377
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
378
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
379
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
380
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
381
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
382
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ getVideoStreamByContainer: (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, maxWidth, maxHeight, 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* () {
387
+ // verify required parameter 'itemId' is not null or undefined
388
+ assertParamExists('getVideoStreamByContainer', 'itemId', itemId);
389
+ // verify required parameter 'container' is not null or undefined
390
+ assertParamExists('getVideoStreamByContainer', 'container', container);
391
+ const localVarPath = `/Videos/{itemId}/stream.{container}`
392
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)))
393
+ .replace(`{${"container"}}`, encodeURIComponent(String(container)));
394
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
395
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
396
+ let baseOptions;
397
+ if (configuration) {
398
+ baseOptions = configuration.baseOptions;
399
+ }
400
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
401
+ const localVarHeaderParameter = {};
402
+ const localVarQueryParameter = {};
403
+ if (_static !== undefined) {
404
+ localVarQueryParameter['static'] = _static;
405
+ }
406
+ if (params !== undefined) {
407
+ localVarQueryParameter['params'] = params;
408
+ }
409
+ if (tag !== undefined) {
410
+ localVarQueryParameter['tag'] = tag;
411
+ }
412
+ if (deviceProfileId !== undefined) {
413
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
414
+ }
415
+ if (playSessionId !== undefined) {
416
+ localVarQueryParameter['playSessionId'] = playSessionId;
417
+ }
418
+ if (segmentContainer !== undefined) {
419
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
420
+ }
421
+ if (segmentLength !== undefined) {
422
+ localVarQueryParameter['segmentLength'] = segmentLength;
423
+ }
424
+ if (minSegments !== undefined) {
425
+ localVarQueryParameter['minSegments'] = minSegments;
426
+ }
427
+ if (mediaSourceId !== undefined) {
428
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
429
+ }
430
+ if (deviceId !== undefined) {
431
+ localVarQueryParameter['deviceId'] = deviceId;
432
+ }
433
+ if (audioCodec !== undefined) {
434
+ localVarQueryParameter['audioCodec'] = audioCodec;
435
+ }
436
+ if (enableAutoStreamCopy !== undefined) {
437
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
438
+ }
439
+ if (allowVideoStreamCopy !== undefined) {
440
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
441
+ }
442
+ if (allowAudioStreamCopy !== undefined) {
443
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
444
+ }
445
+ if (breakOnNonKeyFrames !== undefined) {
446
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
447
+ }
448
+ if (audioSampleRate !== undefined) {
449
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
450
+ }
451
+ if (maxAudioBitDepth !== undefined) {
452
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
453
+ }
454
+ if (audioBitRate !== undefined) {
455
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
456
+ }
457
+ if (audioChannels !== undefined) {
458
+ localVarQueryParameter['audioChannels'] = audioChannels;
459
+ }
460
+ if (maxAudioChannels !== undefined) {
461
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
462
+ }
463
+ if (profile !== undefined) {
464
+ localVarQueryParameter['profile'] = profile;
465
+ }
466
+ if (level !== undefined) {
467
+ localVarQueryParameter['level'] = level;
468
+ }
469
+ if (framerate !== undefined) {
470
+ localVarQueryParameter['framerate'] = framerate;
471
+ }
472
+ if (maxFramerate !== undefined) {
473
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
474
+ }
475
+ if (copyTimestamps !== undefined) {
476
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
477
+ }
478
+ if (startTimeTicks !== undefined) {
479
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
480
+ }
481
+ if (width !== undefined) {
482
+ localVarQueryParameter['width'] = width;
483
+ }
484
+ if (height !== undefined) {
485
+ localVarQueryParameter['height'] = height;
486
+ }
487
+ if (maxWidth !== undefined) {
488
+ localVarQueryParameter['maxWidth'] = maxWidth;
489
+ }
490
+ if (maxHeight !== undefined) {
491
+ localVarQueryParameter['maxHeight'] = maxHeight;
492
+ }
493
+ if (videoBitRate !== undefined) {
494
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
495
+ }
496
+ if (subtitleStreamIndex !== undefined) {
497
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
498
+ }
499
+ if (subtitleMethod !== undefined) {
500
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
501
+ }
502
+ if (maxRefFrames !== undefined) {
503
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
504
+ }
505
+ if (maxVideoBitDepth !== undefined) {
506
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
507
+ }
508
+ if (requireAvc !== undefined) {
509
+ localVarQueryParameter['requireAvc'] = requireAvc;
510
+ }
511
+ if (deInterlace !== undefined) {
512
+ localVarQueryParameter['deInterlace'] = deInterlace;
513
+ }
514
+ if (requireNonAnamorphic !== undefined) {
515
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
516
+ }
517
+ if (transcodingMaxAudioChannels !== undefined) {
518
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
519
+ }
520
+ if (cpuCoreLimit !== undefined) {
521
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
522
+ }
523
+ if (liveStreamId !== undefined) {
524
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
525
+ }
526
+ if (enableMpegtsM2TsMode !== undefined) {
527
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
528
+ }
529
+ if (videoCodec !== undefined) {
530
+ localVarQueryParameter['videoCodec'] = videoCodec;
531
+ }
532
+ if (subtitleCodec !== undefined) {
533
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
534
+ }
535
+ if (transcodeReasons !== undefined) {
536
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
537
+ }
538
+ if (audioStreamIndex !== undefined) {
539
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
540
+ }
541
+ if (videoStreamIndex !== undefined) {
542
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
543
+ }
544
+ if (context !== undefined) {
545
+ localVarQueryParameter['context'] = context;
546
+ }
547
+ if (streamOptions !== undefined) {
548
+ localVarQueryParameter['streamOptions'] = streamOptions;
549
+ }
550
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
551
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
552
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
553
+ return {
554
+ url: toPathString(localVarUrlObj),
555
+ options: localVarRequestOptions,
556
+ };
557
+ }),
558
+ /**
559
+ *
560
+ * @summary Gets a video stream.
561
+ * @param {string} itemId The item id.
562
+ * @param {string} [container] The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
563
+ * @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.
564
+ * @param {string} [params] The streaming parameters.
565
+ * @param {string} [tag] The tag.
566
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
567
+ * @param {string} [playSessionId] The play session id.
568
+ * @param {string} [segmentContainer] The segment container.
569
+ * @param {number} [segmentLength] The segment length.
570
+ * @param {number} [minSegments] The minimum number of segments.
571
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
572
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
573
+ * @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.
574
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
575
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
576
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
577
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
578
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
579
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
580
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
581
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
582
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
583
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
584
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
585
+ * @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.
586
+ * @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.
587
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
588
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
589
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
590
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
591
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
592
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
593
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
594
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
595
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
596
+ * @param {number} [maxRefFrames] Optional.
597
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
598
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
599
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
600
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
601
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
602
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
603
+ * @param {string} [liveStreamId] The live stream id.
604
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
605
+ * @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.
606
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
607
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
608
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
609
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
610
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
611
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ headVideoStream: (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, maxWidth, maxHeight, 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* () {
616
+ // verify required parameter 'itemId' is not null or undefined
617
+ assertParamExists('headVideoStream', 'itemId', itemId);
618
+ const localVarPath = `/Videos/{itemId}/stream`
619
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
620
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
621
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
622
+ let baseOptions;
623
+ if (configuration) {
624
+ baseOptions = configuration.baseOptions;
625
+ }
626
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
627
+ const localVarHeaderParameter = {};
628
+ const localVarQueryParameter = {};
629
+ if (container !== undefined) {
630
+ localVarQueryParameter['container'] = container;
631
+ }
632
+ if (_static !== undefined) {
633
+ localVarQueryParameter['static'] = _static;
634
+ }
635
+ if (params !== undefined) {
636
+ localVarQueryParameter['params'] = params;
637
+ }
638
+ if (tag !== undefined) {
639
+ localVarQueryParameter['tag'] = tag;
640
+ }
641
+ if (deviceProfileId !== undefined) {
642
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
643
+ }
644
+ if (playSessionId !== undefined) {
645
+ localVarQueryParameter['playSessionId'] = playSessionId;
646
+ }
647
+ if (segmentContainer !== undefined) {
648
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
649
+ }
650
+ if (segmentLength !== undefined) {
651
+ localVarQueryParameter['segmentLength'] = segmentLength;
652
+ }
653
+ if (minSegments !== undefined) {
654
+ localVarQueryParameter['minSegments'] = minSegments;
655
+ }
656
+ if (mediaSourceId !== undefined) {
657
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
658
+ }
659
+ if (deviceId !== undefined) {
660
+ localVarQueryParameter['deviceId'] = deviceId;
661
+ }
662
+ if (audioCodec !== undefined) {
663
+ localVarQueryParameter['audioCodec'] = audioCodec;
664
+ }
665
+ if (enableAutoStreamCopy !== undefined) {
666
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
667
+ }
668
+ if (allowVideoStreamCopy !== undefined) {
669
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
670
+ }
671
+ if (allowAudioStreamCopy !== undefined) {
672
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
673
+ }
674
+ if (breakOnNonKeyFrames !== undefined) {
675
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
676
+ }
677
+ if (audioSampleRate !== undefined) {
678
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
679
+ }
680
+ if (maxAudioBitDepth !== undefined) {
681
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
682
+ }
683
+ if (audioBitRate !== undefined) {
684
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
685
+ }
686
+ if (audioChannels !== undefined) {
687
+ localVarQueryParameter['audioChannels'] = audioChannels;
688
+ }
689
+ if (maxAudioChannels !== undefined) {
690
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
691
+ }
692
+ if (profile !== undefined) {
693
+ localVarQueryParameter['profile'] = profile;
694
+ }
695
+ if (level !== undefined) {
696
+ localVarQueryParameter['level'] = level;
697
+ }
698
+ if (framerate !== undefined) {
699
+ localVarQueryParameter['framerate'] = framerate;
700
+ }
701
+ if (maxFramerate !== undefined) {
702
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
703
+ }
704
+ if (copyTimestamps !== undefined) {
705
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
706
+ }
707
+ if (startTimeTicks !== undefined) {
708
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
709
+ }
710
+ if (width !== undefined) {
711
+ localVarQueryParameter['width'] = width;
712
+ }
713
+ if (height !== undefined) {
714
+ localVarQueryParameter['height'] = height;
715
+ }
716
+ if (maxWidth !== undefined) {
717
+ localVarQueryParameter['maxWidth'] = maxWidth;
718
+ }
719
+ if (maxHeight !== undefined) {
720
+ localVarQueryParameter['maxHeight'] = maxHeight;
721
+ }
722
+ if (videoBitRate !== undefined) {
723
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
724
+ }
725
+ if (subtitleStreamIndex !== undefined) {
726
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
727
+ }
728
+ if (subtitleMethod !== undefined) {
729
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
730
+ }
731
+ if (maxRefFrames !== undefined) {
732
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
733
+ }
734
+ if (maxVideoBitDepth !== undefined) {
735
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
736
+ }
737
+ if (requireAvc !== undefined) {
738
+ localVarQueryParameter['requireAvc'] = requireAvc;
739
+ }
740
+ if (deInterlace !== undefined) {
741
+ localVarQueryParameter['deInterlace'] = deInterlace;
742
+ }
743
+ if (requireNonAnamorphic !== undefined) {
744
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
745
+ }
746
+ if (transcodingMaxAudioChannels !== undefined) {
747
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
748
+ }
749
+ if (cpuCoreLimit !== undefined) {
750
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
751
+ }
752
+ if (liveStreamId !== undefined) {
753
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
754
+ }
755
+ if (enableMpegtsM2TsMode !== undefined) {
756
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
757
+ }
758
+ if (videoCodec !== undefined) {
759
+ localVarQueryParameter['videoCodec'] = videoCodec;
760
+ }
761
+ if (subtitleCodec !== undefined) {
762
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
763
+ }
764
+ if (transcodeReasons !== undefined) {
765
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
766
+ }
767
+ if (audioStreamIndex !== undefined) {
768
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
769
+ }
770
+ if (videoStreamIndex !== undefined) {
771
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
772
+ }
773
+ if (context !== undefined) {
774
+ localVarQueryParameter['context'] = context;
775
+ }
776
+ if (streamOptions !== undefined) {
777
+ localVarQueryParameter['streamOptions'] = streamOptions;
778
+ }
779
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
780
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
781
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
782
+ return {
783
+ url: toPathString(localVarUrlObj),
784
+ options: localVarRequestOptions,
785
+ };
786
+ }),
787
+ /**
788
+ *
789
+ * @summary Gets a video stream.
790
+ * @param {string} itemId The item id.
791
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
792
+ * @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.
793
+ * @param {string} [params] The streaming parameters.
794
+ * @param {string} [tag] The tag.
795
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
796
+ * @param {string} [playSessionId] The play session id.
797
+ * @param {string} [segmentContainer] The segment container.
798
+ * @param {number} [segmentLength] The segment length.
799
+ * @param {number} [minSegments] The minimum number of segments.
800
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
801
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
802
+ * @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.
803
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
804
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
805
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
806
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
807
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
808
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
809
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
810
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
811
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
812
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
813
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
814
+ * @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.
815
+ * @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.
816
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
817
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
818
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
819
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
820
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
821
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
822
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
823
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
824
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
825
+ * @param {number} [maxRefFrames] Optional.
826
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
827
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
828
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
829
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
830
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
831
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
832
+ * @param {string} [liveStreamId] The live stream id.
833
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
834
+ * @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.
835
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
836
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
837
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
838
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
839
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
840
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ */
844
+ headVideoStreamByContainer: (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, maxWidth, maxHeight, 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* () {
845
+ // verify required parameter 'itemId' is not null or undefined
846
+ assertParamExists('headVideoStreamByContainer', 'itemId', itemId);
847
+ // verify required parameter 'container' is not null or undefined
848
+ assertParamExists('headVideoStreamByContainer', 'container', container);
849
+ const localVarPath = `/Videos/{itemId}/stream.{container}`
850
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)))
851
+ .replace(`{${"container"}}`, encodeURIComponent(String(container)));
852
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
853
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
854
+ let baseOptions;
855
+ if (configuration) {
856
+ baseOptions = configuration.baseOptions;
857
+ }
858
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
859
+ const localVarHeaderParameter = {};
860
+ const localVarQueryParameter = {};
861
+ if (_static !== undefined) {
862
+ localVarQueryParameter['static'] = _static;
863
+ }
864
+ if (params !== undefined) {
865
+ localVarQueryParameter['params'] = params;
866
+ }
867
+ if (tag !== undefined) {
868
+ localVarQueryParameter['tag'] = tag;
869
+ }
870
+ if (deviceProfileId !== undefined) {
871
+ localVarQueryParameter['deviceProfileId'] = deviceProfileId;
872
+ }
873
+ if (playSessionId !== undefined) {
874
+ localVarQueryParameter['playSessionId'] = playSessionId;
875
+ }
876
+ if (segmentContainer !== undefined) {
877
+ localVarQueryParameter['segmentContainer'] = segmentContainer;
878
+ }
879
+ if (segmentLength !== undefined) {
880
+ localVarQueryParameter['segmentLength'] = segmentLength;
881
+ }
882
+ if (minSegments !== undefined) {
883
+ localVarQueryParameter['minSegments'] = minSegments;
884
+ }
885
+ if (mediaSourceId !== undefined) {
886
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
887
+ }
888
+ if (deviceId !== undefined) {
889
+ localVarQueryParameter['deviceId'] = deviceId;
890
+ }
891
+ if (audioCodec !== undefined) {
892
+ localVarQueryParameter['audioCodec'] = audioCodec;
893
+ }
894
+ if (enableAutoStreamCopy !== undefined) {
895
+ localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy;
896
+ }
897
+ if (allowVideoStreamCopy !== undefined) {
898
+ localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy;
899
+ }
900
+ if (allowAudioStreamCopy !== undefined) {
901
+ localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy;
902
+ }
903
+ if (breakOnNonKeyFrames !== undefined) {
904
+ localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames;
905
+ }
906
+ if (audioSampleRate !== undefined) {
907
+ localVarQueryParameter['audioSampleRate'] = audioSampleRate;
908
+ }
909
+ if (maxAudioBitDepth !== undefined) {
910
+ localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth;
911
+ }
912
+ if (audioBitRate !== undefined) {
913
+ localVarQueryParameter['audioBitRate'] = audioBitRate;
914
+ }
915
+ if (audioChannels !== undefined) {
916
+ localVarQueryParameter['audioChannels'] = audioChannels;
917
+ }
918
+ if (maxAudioChannels !== undefined) {
919
+ localVarQueryParameter['maxAudioChannels'] = maxAudioChannels;
920
+ }
921
+ if (profile !== undefined) {
922
+ localVarQueryParameter['profile'] = profile;
923
+ }
924
+ if (level !== undefined) {
925
+ localVarQueryParameter['level'] = level;
926
+ }
927
+ if (framerate !== undefined) {
928
+ localVarQueryParameter['framerate'] = framerate;
929
+ }
930
+ if (maxFramerate !== undefined) {
931
+ localVarQueryParameter['maxFramerate'] = maxFramerate;
932
+ }
933
+ if (copyTimestamps !== undefined) {
934
+ localVarQueryParameter['copyTimestamps'] = copyTimestamps;
935
+ }
936
+ if (startTimeTicks !== undefined) {
937
+ localVarQueryParameter['startTimeTicks'] = startTimeTicks;
938
+ }
939
+ if (width !== undefined) {
940
+ localVarQueryParameter['width'] = width;
941
+ }
942
+ if (height !== undefined) {
943
+ localVarQueryParameter['height'] = height;
944
+ }
945
+ if (maxWidth !== undefined) {
946
+ localVarQueryParameter['maxWidth'] = maxWidth;
947
+ }
948
+ if (maxHeight !== undefined) {
949
+ localVarQueryParameter['maxHeight'] = maxHeight;
950
+ }
951
+ if (videoBitRate !== undefined) {
952
+ localVarQueryParameter['videoBitRate'] = videoBitRate;
953
+ }
954
+ if (subtitleStreamIndex !== undefined) {
955
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
956
+ }
957
+ if (subtitleMethod !== undefined) {
958
+ localVarQueryParameter['subtitleMethod'] = subtitleMethod;
959
+ }
960
+ if (maxRefFrames !== undefined) {
961
+ localVarQueryParameter['maxRefFrames'] = maxRefFrames;
962
+ }
963
+ if (maxVideoBitDepth !== undefined) {
964
+ localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth;
965
+ }
966
+ if (requireAvc !== undefined) {
967
+ localVarQueryParameter['requireAvc'] = requireAvc;
968
+ }
969
+ if (deInterlace !== undefined) {
970
+ localVarQueryParameter['deInterlace'] = deInterlace;
971
+ }
972
+ if (requireNonAnamorphic !== undefined) {
973
+ localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic;
974
+ }
975
+ if (transcodingMaxAudioChannels !== undefined) {
976
+ localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels;
977
+ }
978
+ if (cpuCoreLimit !== undefined) {
979
+ localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit;
980
+ }
981
+ if (liveStreamId !== undefined) {
982
+ localVarQueryParameter['liveStreamId'] = liveStreamId;
983
+ }
984
+ if (enableMpegtsM2TsMode !== undefined) {
985
+ localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode;
986
+ }
987
+ if (videoCodec !== undefined) {
988
+ localVarQueryParameter['videoCodec'] = videoCodec;
989
+ }
990
+ if (subtitleCodec !== undefined) {
991
+ localVarQueryParameter['subtitleCodec'] = subtitleCodec;
992
+ }
993
+ if (transcodeReasons !== undefined) {
994
+ localVarQueryParameter['transcodeReasons'] = transcodeReasons;
995
+ }
996
+ if (audioStreamIndex !== undefined) {
997
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
998
+ }
999
+ if (videoStreamIndex !== undefined) {
1000
+ localVarQueryParameter['videoStreamIndex'] = videoStreamIndex;
1001
+ }
1002
+ if (context !== undefined) {
1003
+ localVarQueryParameter['context'] = context;
1004
+ }
1005
+ if (streamOptions !== undefined) {
1006
+ localVarQueryParameter['streamOptions'] = streamOptions;
1007
+ }
1008
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1009
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1010
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1011
+ return {
1012
+ url: toPathString(localVarUrlObj),
1013
+ options: localVarRequestOptions,
1014
+ };
1015
+ }),
1016
+ /**
1017
+ *
1018
+ * @summary Merges videos into a single record.
1019
+ * @param {Array<string>} ids Item id list. This allows multiple, comma delimited.
1020
+ * @param {*} [options] Override http request option.
1021
+ * @throws {RequiredError}
1022
+ */
1023
+ mergeVersions: (ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
1024
+ // verify required parameter 'ids' is not null or undefined
1025
+ assertParamExists('mergeVersions', 'ids', ids);
1026
+ const localVarPath = `/Videos/MergeVersions`;
1027
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1028
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1029
+ let baseOptions;
1030
+ if (configuration) {
1031
+ baseOptions = configuration.baseOptions;
1032
+ }
1033
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1034
+ const localVarHeaderParameter = {};
1035
+ const localVarQueryParameter = {};
1036
+ // authentication CustomAuthentication required
1037
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1038
+ if (ids) {
1039
+ localVarQueryParameter['ids'] = ids;
1040
+ }
1041
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1042
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1043
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1044
+ return {
1045
+ url: toPathString(localVarUrlObj),
1046
+ options: localVarRequestOptions,
1047
+ };
1048
+ }),
1049
+ };
1050
+ };
1051
+ /**
1052
+ * VideosApi - functional programming interface
1053
+ * @export
1054
+ */
1055
+ export const VideosApiFp = function (configuration) {
1056
+ const localVarAxiosParamCreator = VideosApiAxiosParamCreator(configuration);
1057
+ return {
1058
+ /**
1059
+ *
1060
+ * @summary Removes alternate video sources.
1061
+ * @param {string} itemId The item id.
1062
+ * @param {*} [options] Override http request option.
1063
+ * @throws {RequiredError}
1064
+ */
1065
+ deleteAlternateSources(itemId, options) {
1066
+ return __awaiter(this, void 0, void 0, function* () {
1067
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAlternateSources(itemId, options);
1068
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1069
+ });
1070
+ },
1071
+ /**
1072
+ *
1073
+ * @summary Gets additional parts for a video.
1074
+ * @param {string} itemId The item id.
1075
+ * @param {string} [userId] Optional. Filter by user id, and attach user data.
1076
+ * @param {*} [options] Override http request option.
1077
+ * @throws {RequiredError}
1078
+ */
1079
+ getAdditionalPart(itemId, userId, options) {
1080
+ return __awaiter(this, void 0, void 0, function* () {
1081
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAdditionalPart(itemId, userId, options);
1082
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1083
+ });
1084
+ },
1085
+ /**
1086
+ *
1087
+ * @summary Gets a video stream.
1088
+ * @param {string} itemId The item id.
1089
+ * @param {string} [container] The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
1090
+ * @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.
1091
+ * @param {string} [params] The streaming parameters.
1092
+ * @param {string} [tag] The tag.
1093
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1094
+ * @param {string} [playSessionId] The play session id.
1095
+ * @param {string} [segmentContainer] The segment container.
1096
+ * @param {number} [segmentLength] The segment length.
1097
+ * @param {number} [minSegments] The minimum number of segments.
1098
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1099
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1100
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\&#39;s extension. Options: aac, mp3, vorbis, wma.
1101
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1102
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1103
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1104
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1105
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1106
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1107
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1108
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1109
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1110
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1111
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1112
+ * @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.
1113
+ * @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.
1114
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1115
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick &#x3D; 10000 ms.
1116
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1117
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1118
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
1119
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
1120
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1121
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1122
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1123
+ * @param {number} [maxRefFrames] Optional.
1124
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1125
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1126
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1127
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1128
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1129
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1130
+ * @param {string} [liveStreamId] The live stream id.
1131
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1132
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\&#39;s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1133
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1134
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1135
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1136
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1137
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1138
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1139
+ * @param {*} [options] Override http request option.
1140
+ * @throws {RequiredError}
1141
+ */
1142
+ getVideoStream(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1143
+ return __awaiter(this, void 0, void 0, function* () {
1144
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getVideoStream(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
1145
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1146
+ });
1147
+ },
1148
+ /**
1149
+ *
1150
+ * @summary Gets a video stream.
1151
+ * @param {string} itemId The item id.
1152
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
1153
+ * @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.
1154
+ * @param {string} [params] The streaming parameters.
1155
+ * @param {string} [tag] The tag.
1156
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1157
+ * @param {string} [playSessionId] The play session id.
1158
+ * @param {string} [segmentContainer] The segment container.
1159
+ * @param {number} [segmentLength] The segment length.
1160
+ * @param {number} [minSegments] The minimum number of segments.
1161
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1162
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1163
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\&#39;s extension. Options: aac, mp3, vorbis, wma.
1164
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1165
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1166
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1167
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1168
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1169
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1170
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1171
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1172
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1173
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1174
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1175
+ * @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.
1176
+ * @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.
1177
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1178
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick &#x3D; 10000 ms.
1179
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1180
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1181
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
1182
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
1183
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1184
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1185
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1186
+ * @param {number} [maxRefFrames] Optional.
1187
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1188
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1189
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1190
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1191
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1192
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1193
+ * @param {string} [liveStreamId] The live stream id.
1194
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1195
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\&#39;s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1196
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1197
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1198
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1199
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1200
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1201
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1202
+ * @param {*} [options] Override http request option.
1203
+ * @throws {RequiredError}
1204
+ */
1205
+ getVideoStreamByContainer(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1206
+ return __awaiter(this, void 0, void 0, function* () {
1207
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getVideoStreamByContainer(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
1208
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1209
+ });
1210
+ },
1211
+ /**
1212
+ *
1213
+ * @summary Gets a video stream.
1214
+ * @param {string} itemId The item id.
1215
+ * @param {string} [container] The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
1216
+ * @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.
1217
+ * @param {string} [params] The streaming parameters.
1218
+ * @param {string} [tag] The tag.
1219
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1220
+ * @param {string} [playSessionId] The play session id.
1221
+ * @param {string} [segmentContainer] The segment container.
1222
+ * @param {number} [segmentLength] The segment length.
1223
+ * @param {number} [minSegments] The minimum number of segments.
1224
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1225
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1226
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\&#39;s extension. Options: aac, mp3, vorbis, wma.
1227
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1228
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1229
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1230
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1231
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1232
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1233
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1234
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1235
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1236
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1237
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1238
+ * @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.
1239
+ * @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.
1240
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1241
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick &#x3D; 10000 ms.
1242
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1243
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1244
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
1245
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
1246
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1247
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1248
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1249
+ * @param {number} [maxRefFrames] Optional.
1250
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1251
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1252
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1253
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1254
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1255
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1256
+ * @param {string} [liveStreamId] The live stream id.
1257
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1258
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\&#39;s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1259
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1260
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1261
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1262
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1263
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1264
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1265
+ * @param {*} [options] Override http request option.
1266
+ * @throws {RequiredError}
1267
+ */
1268
+ headVideoStream(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1269
+ return __awaiter(this, void 0, void 0, function* () {
1270
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.headVideoStream(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
1271
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1272
+ });
1273
+ },
1274
+ /**
1275
+ *
1276
+ * @summary Gets a video stream.
1277
+ * @param {string} itemId The item id.
1278
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
1279
+ * @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.
1280
+ * @param {string} [params] The streaming parameters.
1281
+ * @param {string} [tag] The tag.
1282
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1283
+ * @param {string} [playSessionId] The play session id.
1284
+ * @param {string} [segmentContainer] The segment container.
1285
+ * @param {number} [segmentLength] The segment length.
1286
+ * @param {number} [minSegments] The minimum number of segments.
1287
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1288
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1289
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\&#39;s extension. Options: aac, mp3, vorbis, wma.
1290
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1291
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1292
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1293
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1294
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1295
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1296
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1297
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1298
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1299
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1300
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1301
+ * @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.
1302
+ * @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.
1303
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1304
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick &#x3D; 10000 ms.
1305
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1306
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1307
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
1308
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
1309
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1310
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1311
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1312
+ * @param {number} [maxRefFrames] Optional.
1313
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1314
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1315
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1316
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1317
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1318
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1319
+ * @param {string} [liveStreamId] The live stream id.
1320
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1321
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\&#39;s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1322
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1323
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1324
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1325
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1326
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1327
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1328
+ * @param {*} [options] Override http request option.
1329
+ * @throws {RequiredError}
1330
+ */
1331
+ headVideoStreamByContainer(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1332
+ return __awaiter(this, void 0, void 0, function* () {
1333
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.headVideoStreamByContainer(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options);
1334
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1335
+ });
1336
+ },
1337
+ /**
1338
+ *
1339
+ * @summary Merges videos into a single record.
1340
+ * @param {Array<string>} ids Item id list. This allows multiple, comma delimited.
1341
+ * @param {*} [options] Override http request option.
1342
+ * @throws {RequiredError}
1343
+ */
1344
+ mergeVersions(ids, options) {
1345
+ return __awaiter(this, void 0, void 0, function* () {
1346
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.mergeVersions(ids, options);
1347
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1348
+ });
1349
+ },
1350
+ };
1351
+ };
1352
+ /**
1353
+ * VideosApi - factory interface
1354
+ * @export
1355
+ */
1356
+ export const VideosApiFactory = function (configuration, basePath, axios) {
1357
+ const localVarFp = VideosApiFp(configuration);
1358
+ return {
1359
+ /**
1360
+ *
1361
+ * @summary Removes alternate video sources.
1362
+ * @param {string} itemId The item id.
1363
+ * @param {*} [options] Override http request option.
1364
+ * @throws {RequiredError}
1365
+ */
1366
+ deleteAlternateSources(itemId, options) {
1367
+ return localVarFp.deleteAlternateSources(itemId, options).then((request) => request(axios, basePath));
1368
+ },
1369
+ /**
1370
+ *
1371
+ * @summary Gets additional parts for a video.
1372
+ * @param {string} itemId The item id.
1373
+ * @param {string} [userId] Optional. Filter by user id, and attach user data.
1374
+ * @param {*} [options] Override http request option.
1375
+ * @throws {RequiredError}
1376
+ */
1377
+ getAdditionalPart(itemId, userId, options) {
1378
+ return localVarFp.getAdditionalPart(itemId, userId, options).then((request) => request(axios, basePath));
1379
+ },
1380
+ /**
1381
+ *
1382
+ * @summary Gets a video stream.
1383
+ * @param {string} itemId The item id.
1384
+ * @param {string} [container] The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
1385
+ * @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.
1386
+ * @param {string} [params] The streaming parameters.
1387
+ * @param {string} [tag] The tag.
1388
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1389
+ * @param {string} [playSessionId] The play session id.
1390
+ * @param {string} [segmentContainer] The segment container.
1391
+ * @param {number} [segmentLength] The segment length.
1392
+ * @param {number} [minSegments] The minimum number of segments.
1393
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1394
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1395
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\&#39;s extension. Options: aac, mp3, vorbis, wma.
1396
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1397
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1398
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1399
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1400
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1401
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1402
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1403
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1404
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1405
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1406
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1407
+ * @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.
1408
+ * @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.
1409
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1410
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick &#x3D; 10000 ms.
1411
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1412
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1413
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
1414
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
1415
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1416
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1417
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1418
+ * @param {number} [maxRefFrames] Optional.
1419
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1420
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1421
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1422
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1423
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1424
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1425
+ * @param {string} [liveStreamId] The live stream id.
1426
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1427
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\&#39;s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1428
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1429
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1430
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1431
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1432
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1433
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1434
+ * @param {*} [options] Override http request option.
1435
+ * @throws {RequiredError}
1436
+ */
1437
+ getVideoStream(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1438
+ return localVarFp.getVideoStream(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, maxWidth, maxHeight, 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));
1439
+ },
1440
+ /**
1441
+ *
1442
+ * @summary Gets a video stream.
1443
+ * @param {string} itemId The item id.
1444
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
1445
+ * @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.
1446
+ * @param {string} [params] The streaming parameters.
1447
+ * @param {string} [tag] The tag.
1448
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1449
+ * @param {string} [playSessionId] The play session id.
1450
+ * @param {string} [segmentContainer] The segment container.
1451
+ * @param {number} [segmentLength] The segment length.
1452
+ * @param {number} [minSegments] The minimum number of segments.
1453
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1454
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1455
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\&#39;s extension. Options: aac, mp3, vorbis, wma.
1456
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1457
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1458
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1459
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1460
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1461
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1462
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1463
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1464
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1465
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1466
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1467
+ * @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.
1468
+ * @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.
1469
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1470
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick &#x3D; 10000 ms.
1471
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1472
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1473
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
1474
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
1475
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1476
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1477
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1478
+ * @param {number} [maxRefFrames] Optional.
1479
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1480
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1481
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1482
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1483
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1484
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1485
+ * @param {string} [liveStreamId] The live stream id.
1486
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1487
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\&#39;s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1488
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1489
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1490
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1491
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1492
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1493
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1494
+ * @param {*} [options] Override http request option.
1495
+ * @throws {RequiredError}
1496
+ */
1497
+ getVideoStreamByContainer(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1498
+ return localVarFp.getVideoStreamByContainer(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, maxWidth, maxHeight, 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));
1499
+ },
1500
+ /**
1501
+ *
1502
+ * @summary Gets a video stream.
1503
+ * @param {string} itemId The item id.
1504
+ * @param {string} [container] The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
1505
+ * @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.
1506
+ * @param {string} [params] The streaming parameters.
1507
+ * @param {string} [tag] The tag.
1508
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1509
+ * @param {string} [playSessionId] The play session id.
1510
+ * @param {string} [segmentContainer] The segment container.
1511
+ * @param {number} [segmentLength] The segment length.
1512
+ * @param {number} [minSegments] The minimum number of segments.
1513
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1514
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1515
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\&#39;s extension. Options: aac, mp3, vorbis, wma.
1516
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1517
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1518
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1519
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1520
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1521
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1522
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1523
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1524
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1525
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1526
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1527
+ * @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.
1528
+ * @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.
1529
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1530
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick &#x3D; 10000 ms.
1531
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1532
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1533
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
1534
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
1535
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1536
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1537
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1538
+ * @param {number} [maxRefFrames] Optional.
1539
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1540
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1541
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1542
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1543
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1544
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1545
+ * @param {string} [liveStreamId] The live stream id.
1546
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1547
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\&#39;s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1548
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1549
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1550
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1551
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1552
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1553
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1554
+ * @param {*} [options] Override http request option.
1555
+ * @throws {RequiredError}
1556
+ */
1557
+ headVideoStream(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1558
+ return localVarFp.headVideoStream(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, maxWidth, maxHeight, 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));
1559
+ },
1560
+ /**
1561
+ *
1562
+ * @summary Gets a video stream.
1563
+ * @param {string} itemId The item id.
1564
+ * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.
1565
+ * @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.
1566
+ * @param {string} [params] The streaming parameters.
1567
+ * @param {string} [tag] The tag.
1568
+ * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize.
1569
+ * @param {string} [playSessionId] The play session id.
1570
+ * @param {string} [segmentContainer] The segment container.
1571
+ * @param {number} [segmentLength] The segment length.
1572
+ * @param {number} [minSegments] The minimum number of segments.
1573
+ * @param {string} [mediaSourceId] The media version id, if playing an alternate version.
1574
+ * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed.
1575
+ * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\&#39;s extension. Options: aac, mp3, vorbis, wma.
1576
+ * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.
1577
+ * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url.
1578
+ * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url.
1579
+ * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames.
1580
+ * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100.
1581
+ * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
1582
+ * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
1583
+ * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2.
1584
+ * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2.
1585
+ * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.
1586
+ * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.
1587
+ * @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.
1588
+ * @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.
1589
+ * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false.
1590
+ * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick &#x3D; 10000 ms.
1591
+ * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video.
1592
+ * @param {number} [height] Optional. The fixed vertical resolution of the encoded video.
1593
+ * @param {number} [maxWidth] Optional. The maximum horizontal resolution of the encoded video.
1594
+ * @param {number} [maxHeight] Optional. The maximum vertical resolution of the encoded video.
1595
+ * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.
1596
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.
1597
+ * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method.
1598
+ * @param {number} [maxRefFrames] Optional.
1599
+ * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth.
1600
+ * @param {boolean} [requireAvc] Optional. Whether to require avc.
1601
+ * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video.
1602
+ * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream.
1603
+ * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode.
1604
+ * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use.
1605
+ * @param {string} [liveStreamId] The live stream id.
1606
+ * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode.
1607
+ * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\&#39;s extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx (deprecated), wmv.
1608
+ * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to.
1609
+ * @param {string} [transcodeReasons] Optional. The transcoding reason.
1610
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used.
1611
+ * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used.
1612
+ * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext.
1613
+ * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options.
1614
+ * @param {*} [options] Override http request option.
1615
+ * @throws {RequiredError}
1616
+ */
1617
+ headVideoStreamByContainer(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, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) {
1618
+ return localVarFp.headVideoStreamByContainer(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, maxWidth, maxHeight, 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));
1619
+ },
1620
+ /**
1621
+ *
1622
+ * @summary Merges videos into a single record.
1623
+ * @param {Array<string>} ids Item id list. This allows multiple, comma delimited.
1624
+ * @param {*} [options] Override http request option.
1625
+ * @throws {RequiredError}
1626
+ */
1627
+ mergeVersions(ids, options) {
1628
+ return localVarFp.mergeVersions(ids, options).then((request) => request(axios, basePath));
1629
+ },
1630
+ };
1631
+ };
1632
+ /**
1633
+ * VideosApi - object-oriented interface
1634
+ * @export
1635
+ * @class VideosApi
1636
+ * @extends {BaseAPI}
1637
+ */
1638
+ export class VideosApi extends BaseAPI {
1639
+ /**
1640
+ *
1641
+ * @summary Removes alternate video sources.
1642
+ * @param {VideosApiDeleteAlternateSourcesRequest} requestParameters Request parameters.
1643
+ * @param {*} [options] Override http request option.
1644
+ * @throws {RequiredError}
1645
+ * @memberof VideosApi
1646
+ */
1647
+ deleteAlternateSources(requestParameters, options) {
1648
+ return VideosApiFp(this.configuration).deleteAlternateSources(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
1649
+ }
1650
+ /**
1651
+ *
1652
+ * @summary Gets additional parts for a video.
1653
+ * @param {VideosApiGetAdditionalPartRequest} requestParameters Request parameters.
1654
+ * @param {*} [options] Override http request option.
1655
+ * @throws {RequiredError}
1656
+ * @memberof VideosApi
1657
+ */
1658
+ getAdditionalPart(requestParameters, options) {
1659
+ return VideosApiFp(this.configuration).getAdditionalPart(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
1660
+ }
1661
+ /**
1662
+ *
1663
+ * @summary Gets a video stream.
1664
+ * @param {VideosApiGetVideoStreamRequest} requestParameters Request parameters.
1665
+ * @param {*} [options] Override http request option.
1666
+ * @throws {RequiredError}
1667
+ * @memberof VideosApi
1668
+ */
1669
+ getVideoStream(requestParameters, options) {
1670
+ return VideosApiFp(this.configuration).getVideoStream(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.maxWidth, requestParameters.maxHeight, 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));
1671
+ }
1672
+ /**
1673
+ *
1674
+ * @summary Gets a video stream.
1675
+ * @param {VideosApiGetVideoStreamByContainerRequest} requestParameters Request parameters.
1676
+ * @param {*} [options] Override http request option.
1677
+ * @throws {RequiredError}
1678
+ * @memberof VideosApi
1679
+ */
1680
+ getVideoStreamByContainer(requestParameters, options) {
1681
+ return VideosApiFp(this.configuration).getVideoStreamByContainer(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.maxWidth, requestParameters.maxHeight, 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));
1682
+ }
1683
+ /**
1684
+ *
1685
+ * @summary Gets a video stream.
1686
+ * @param {VideosApiHeadVideoStreamRequest} requestParameters Request parameters.
1687
+ * @param {*} [options] Override http request option.
1688
+ * @throws {RequiredError}
1689
+ * @memberof VideosApi
1690
+ */
1691
+ headVideoStream(requestParameters, options) {
1692
+ return VideosApiFp(this.configuration).headVideoStream(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.maxWidth, requestParameters.maxHeight, 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));
1693
+ }
1694
+ /**
1695
+ *
1696
+ * @summary Gets a video stream.
1697
+ * @param {VideosApiHeadVideoStreamByContainerRequest} requestParameters Request parameters.
1698
+ * @param {*} [options] Override http request option.
1699
+ * @throws {RequiredError}
1700
+ * @memberof VideosApi
1701
+ */
1702
+ headVideoStreamByContainer(requestParameters, options) {
1703
+ return VideosApiFp(this.configuration).headVideoStreamByContainer(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.maxWidth, requestParameters.maxHeight, 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));
1704
+ }
1705
+ /**
1706
+ *
1707
+ * @summary Merges videos into a single record.
1708
+ * @param {VideosApiMergeVersionsRequest} requestParameters Request parameters.
1709
+ * @param {*} [options] Override http request option.
1710
+ * @throws {RequiredError}
1711
+ * @memberof VideosApi
1712
+ */
1713
+ mergeVersions(requestParameters, options) {
1714
+ return VideosApiFp(this.configuration).mergeVersions(requestParameters.ids, options).then((request) => request(this.axios, this.basePath));
1715
+ }
1716
+ }