@jellyfin/sdk 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/README.md +3 -41
  3. package/lib/api.d.ts +7 -11
  4. package/lib/api.js +13 -14
  5. package/lib/generated-client/api/activity-log-api.d.ts +9 -12
  6. package/lib/generated-client/api/activity-log-api.js +8 -8
  7. package/lib/generated-client/api/api-key-api.d.ts +18 -18
  8. package/lib/generated-client/api/api-key-api.js +19 -10
  9. package/lib/generated-client/api/artists-api.d.ts +27 -90
  10. package/lib/generated-client/api/artists-api.js +22 -76
  11. package/lib/generated-client/api/audio-api.d.ts +87 -255
  12. package/lib/generated-client/api/audio-api.js +97 -249
  13. package/lib/generated-client/api/backup-api.d.ts +209 -0
  14. package/lib/generated-client/api/backup-api.js +311 -0
  15. package/lib/generated-client/api/branding-api.d.ts +16 -16
  16. package/lib/generated-client/api/branding-api.js +13 -4
  17. package/lib/generated-client/api/channels-api.d.ts +33 -51
  18. package/lib/generated-client/api/channels-api.js +33 -36
  19. package/lib/generated-client/api/client-log-api.d.ts +13 -13
  20. package/lib/generated-client/api/client-log-api.js +10 -7
  21. package/lib/generated-client/api/collection-api.d.ts +19 -24
  22. package/lib/generated-client/api/collection-api.js +22 -18
  23. package/lib/generated-client/api/configuration-api.d.ts +75 -29
  24. package/lib/generated-client/api/configuration-api.js +98 -17
  25. package/lib/generated-client/api/dashboard-api.d.ts +14 -14
  26. package/lib/generated-client/api/dashboard-api.js +16 -10
  27. package/lib/generated-client/api/devices-api.d.ts +31 -33
  28. package/lib/generated-client/api/devices-api.js +37 -23
  29. package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
  30. package/lib/generated-client/api/display-preferences-api.js +16 -15
  31. package/lib/generated-client/api/dlna-api.d.ts +6 -6
  32. package/lib/generated-client/api/dlna-server-api.d.ts +16 -16
  33. package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
  34. package/lib/generated-client/api/dynamic-hls-api.js +233 -573
  35. package/lib/generated-client/api/environment-api.d.ts +33 -35
  36. package/lib/generated-client/api/environment-api.js +35 -19
  37. package/lib/generated-client/api/filter-api.d.ts +17 -29
  38. package/lib/generated-client/api/filter-api.js +15 -21
  39. package/lib/generated-client/api/genres-api.d.ts +20 -38
  40. package/lib/generated-client/api/genres-api.js +16 -28
  41. package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
  42. package/lib/generated-client/api/hls-segment-api.js +37 -29
  43. package/lib/generated-client/api/image-api.d.ts +216 -942
  44. package/lib/generated-client/api/image-api.js +282 -789
  45. package/lib/generated-client/api/image-by-name-api.d.ts +6 -6
  46. package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
  47. package/lib/generated-client/api/instant-mix-api.js +57 -89
  48. package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
  49. package/lib/generated-client/api/item-lookup-api.js +78 -47
  50. package/lib/generated-client/api/item-refresh-api.d.ts +17 -13
  51. package/lib/generated-client/api/item-refresh-api.js +17 -13
  52. package/lib/generated-client/api/item-update-api.d.ts +20 -22
  53. package/lib/generated-client/api/item-update-api.js +22 -15
  54. package/lib/generated-client/api/items-api.d.ts +44 -137
  55. package/lib/generated-client/api/items-api.js +39 -123
  56. package/lib/generated-client/api/library-api.d.ts +185 -170
  57. package/lib/generated-client/api/library-api.js +213 -143
  58. package/lib/generated-client/api/library-structure-api.d.ts +48 -58
  59. package/lib/generated-client/api/library-structure-api.js +54 -40
  60. package/lib/generated-client/api/live-tv-api.d.ts +236 -336
  61. package/lib/generated-client/api/live-tv-api.js +287 -267
  62. package/lib/generated-client/api/localization-api.d.ts +23 -23
  63. package/lib/generated-client/api/localization-api.js +17 -5
  64. package/lib/generated-client/api/lyrics-api.d.ts +39 -42
  65. package/lib/generated-client/api/lyrics-api.js +46 -31
  66. package/lib/generated-client/api/media-info-api.d.ts +40 -59
  67. package/lib/generated-client/api/media-info-api.js +46 -53
  68. package/lib/generated-client/api/media-segments-api.d.ts +95 -0
  69. package/lib/generated-client/api/media-segments-api.js +123 -0
  70. package/lib/generated-client/api/movies-api.d.ts +10 -14
  71. package/lib/generated-client/api/movies-api.js +8 -9
  72. package/lib/generated-client/api/music-genres-api.d.ts +20 -38
  73. package/lib/generated-client/api/music-genres-api.js +16 -28
  74. package/lib/generated-client/api/notifications-api.d.ts +7 -7
  75. package/lib/generated-client/api/package-api.d.ts +33 -37
  76. package/lib/generated-client/api/package-api.js +38 -24
  77. package/lib/generated-client/api/persons-api.d.ts +18 -31
  78. package/lib/generated-client/api/persons-api.js +16 -23
  79. package/lib/generated-client/api/playlists-api.d.ts +109 -84
  80. package/lib/generated-client/api/playlists-api.js +138 -64
  81. package/lib/generated-client/api/playstate-api.d.ts +66 -80
  82. package/lib/generated-client/api/playstate-api.js +77 -64
  83. package/lib/generated-client/api/plugins-api.d.ts +48 -52
  84. package/lib/generated-client/api/plugins-api.js +61 -38
  85. package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
  86. package/lib/generated-client/api/quick-connect-api.js +24 -13
  87. package/lib/generated-client/api/remote-image-api.d.ts +21 -28
  88. package/lib/generated-client/api/remote-image-api.js +22 -20
  89. package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
  90. package/lib/generated-client/api/scheduled-tasks-api.js +37 -24
  91. package/lib/generated-client/api/search-api.d.ts +11 -28
  92. package/lib/generated-client/api/search-api.js +8 -22
  93. package/lib/generated-client/api/session-api.d.ts +90 -117
  94. package/lib/generated-client/api/session-api.js +104 -83
  95. package/lib/generated-client/api/startup-api.d.ts +37 -37
  96. package/lib/generated-client/api/startup-api.js +39 -18
  97. package/lib/generated-client/api/studios-api.d.ts +18 -35
  98. package/lib/generated-client/api/studios-api.js +16 -27
  99. package/lib/generated-client/api/subtitle-api.d.ts +55 -86
  100. package/lib/generated-client/api/subtitle-api.js +69 -70
  101. package/lib/generated-client/api/suggestions-api.d.ts +11 -16
  102. package/lib/generated-client/api/suggestions-api.js +8 -10
  103. package/lib/generated-client/api/sync-play-api.d.ts +166 -120
  104. package/lib/generated-client/api/sync-play-api.js +200 -71
  105. package/lib/generated-client/api/system-api.d.ts +53 -57
  106. package/lib/generated-client/api/system-api.js +56 -30
  107. package/lib/generated-client/api/time-sync-api.d.ts +8 -8
  108. package/lib/generated-client/api/time-sync-api.js +5 -2
  109. package/lib/generated-client/api/tmdb-api.d.ts +8 -8
  110. package/lib/generated-client/api/tmdb-api.js +5 -2
  111. package/lib/generated-client/api/trailers-api.d.ts +19 -102
  112. package/lib/generated-client/api/trailers-api.js +8 -88
  113. package/lib/generated-client/api/trickplay-api.d.ts +13 -18
  114. package/lib/generated-client/api/trickplay-api.js +15 -14
  115. package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
  116. package/lib/generated-client/api/tv-shows-api.js +30 -63
  117. package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
  118. package/lib/generated-client/api/universal-audio-api.js +33 -51
  119. package/lib/generated-client/api/user-api.d.ts +83 -88
  120. package/lib/generated-client/api/user-api.js +94 -57
  121. package/lib/generated-client/api/user-library-api.d.ts +59 -78
  122. package/lib/generated-client/api/user-library-api.js +71 -60
  123. package/lib/generated-client/api/user-views-api.d.ts +16 -19
  124. package/lib/generated-client/api/user-views-api.js +15 -12
  125. package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
  126. package/lib/generated-client/api/video-attachments-api.js +8 -7
  127. package/lib/generated-client/api/videos-api.d.ts +97 -274
  128. package/lib/generated-client/api/videos-api.js +114 -266
  129. package/lib/generated-client/api/years-api.d.ts +21 -36
  130. package/lib/generated-client/api/years-api.js +16 -25
  131. package/lib/generated-client/api.d.ts +2 -0
  132. package/lib/generated-client/base.d.ts +15 -4
  133. package/lib/generated-client/base.js +8 -4
  134. package/lib/generated-client/common.d.ts +4 -4
  135. package/lib/generated-client/common.js +23 -14
  136. package/lib/generated-client/configuration.d.ts +8 -0
  137. package/lib/generated-client/configuration.js +1 -0
  138. package/lib/generated-client/index.js +11 -1
  139. package/lib/generated-client/models/access-schedule.d.ts +1 -1
  140. package/lib/generated-client/models/activity-log-entry-message.d.ts +2 -2
  141. package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
  142. package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -1
  143. package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +1 -1
  144. package/lib/generated-client/models/activity-log-entry.d.ts +1 -1
  145. package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
  146. package/lib/generated-client/models/album-info-remote-search-query.d.ts +1 -1
  147. package/lib/generated-client/models/album-info.d.ts +5 -5
  148. package/lib/generated-client/models/all-theme-media-result.d.ts +1 -1
  149. package/lib/generated-client/models/artist-info-remote-search-query.d.ts +1 -1
  150. package/lib/generated-client/models/artist-info.d.ts +3 -3
  151. package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
  152. package/lib/generated-client/models/authentication-result.d.ts +7 -7
  153. package/lib/generated-client/models/backup-manifest-dto.d.ts +48 -0
  154. package/lib/generated-client/models/backup-options-dto.d.ts +41 -0
  155. package/lib/generated-client/models/backup-restore-request-dto.d.ts +23 -0
  156. package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
  157. package/lib/generated-client/models/base-item-dto.d.ts +28 -28
  158. package/lib/generated-client/models/base-item-person.d.ts +2 -2
  159. package/lib/generated-client/models/book-info-remote-search-query.d.ts +1 -1
  160. package/lib/generated-client/models/book-info.d.ts +2 -2
  161. package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +1 -1
  162. package/lib/generated-client/models/box-set-info.d.ts +2 -2
  163. package/lib/generated-client/models/branding-options-dto.d.ts +35 -0
  164. package/lib/generated-client/models/channel-features.d.ts +3 -3
  165. package/lib/generated-client/models/channel-mapping-options-dto.d.ts +3 -3
  166. package/lib/generated-client/models/client-capabilities-dto.d.ts +3 -17
  167. package/lib/generated-client/models/client-capabilities.d.ts +3 -3
  168. package/lib/generated-client/models/codec-profile.d.ts +15 -9
  169. package/lib/generated-client/models/container-profile.d.ts +12 -6
  170. package/lib/generated-client/models/create-playlist-dto.d.ts +2 -2
  171. package/lib/generated-client/models/custom-database-option.d.ts +29 -0
  172. package/lib/generated-client/models/custom-database-options.d.ts +42 -0
  173. package/lib/generated-client/models/database-configuration-options.d.ts +37 -0
  174. package/lib/generated-client/models/database-locking-behavior-types.d.ts +21 -0
  175. package/lib/generated-client/models/database-locking-behavior-types.js +24 -0
  176. package/lib/generated-client/models/deinterlace-method.d.ts +20 -0
  177. package/lib/generated-client/models/{hardware-encoding-type.js → deinterlace-method.js} +5 -10
  178. package/lib/generated-client/models/device-info-dto-query-result.d.ts +36 -0
  179. package/lib/generated-client/models/device-info-dto.d.ts +84 -0
  180. package/lib/generated-client/models/device-info-query-result.d.ts +1 -1
  181. package/lib/generated-client/models/device-info.d.ts +1 -1
  182. package/lib/generated-client/models/device-profile.d.ts +8 -8
  183. package/lib/generated-client/models/direct-play-profile.d.ts +6 -6
  184. package/lib/generated-client/models/display-preferences-dto.d.ts +4 -4
  185. package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +3 -1
  186. package/lib/generated-client/models/down-mix-stereo-algorithms.js +4 -2
  187. package/lib/generated-client/models/encoder-preset.d.ts +29 -0
  188. package/lib/generated-client/models/encoder-preset.js +32 -0
  189. package/lib/generated-client/models/encoding-options.d.ts +43 -19
  190. package/lib/generated-client/models/external-id-info.d.ts +1 -7
  191. package/lib/generated-client/models/external-id-media-type.d.ts +1 -0
  192. package/lib/generated-client/models/external-id-media-type.js +2 -1
  193. package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
  194. package/lib/generated-client/models/folder-storage-dto.d.ts +47 -0
  195. package/lib/generated-client/models/force-keep-alive-message.d.ts +1 -1
  196. package/lib/generated-client/models/forgot-password-result.d.ts +1 -1
  197. package/lib/generated-client/models/general-command-message.d.ts +2 -2
  198. package/lib/generated-client/models/general-command.d.ts +3 -3
  199. package/lib/generated-client/models/get-programs-dto.d.ts +34 -34
  200. package/lib/generated-client/models/group-info-dto-group-update.d.ts +2 -2
  201. package/lib/generated-client/models/group-info-dto.d.ts +1 -1
  202. package/lib/generated-client/models/group-state-update-group-update.d.ts +2 -2
  203. package/lib/generated-client/models/group-state-update.d.ts +2 -2
  204. package/lib/generated-client/models/group-update-type.d.ts +0 -2
  205. package/lib/generated-client/models/group-update-type.js +0 -2
  206. package/lib/generated-client/models/group-update.d.ts +29 -6
  207. package/lib/generated-client/models/hardware-acceleration-type.d.ts +26 -0
  208. package/lib/generated-client/models/hardware-acceleration-type.js +29 -0
  209. package/lib/generated-client/models/image-info.d.ts +1 -1
  210. package/lib/generated-client/models/image-option.d.ts +1 -1
  211. package/lib/generated-client/models/image-provider-info.d.ts +1 -1
  212. package/lib/generated-client/models/inbound-keep-alive-message.d.ts +1 -1
  213. package/lib/generated-client/models/inbound-web-socket-message.d.ts +22 -8
  214. package/lib/generated-client/models/index.d.ts +38 -14
  215. package/lib/generated-client/models/index.js +9 -1
  216. package/lib/generated-client/models/installation-info.d.ts +1 -1
  217. package/lib/generated-client/models/item-fields.d.ts +0 -11
  218. package/lib/generated-client/models/item-fields.js +0 -11
  219. package/lib/generated-client/models/item-sort-by.d.ts +0 -2
  220. package/lib/generated-client/models/item-sort-by.js +1 -3
  221. package/lib/generated-client/models/library-changed-message.d.ts +2 -2
  222. package/lib/generated-client/models/library-options-result-dto.d.ts +14 -2
  223. package/lib/generated-client/models/library-options.d.ts +57 -3
  224. package/lib/generated-client/models/library-storage-dto.d.ts +36 -0
  225. package/lib/generated-client/models/library-type-options-dto.d.ts +3 -3
  226. package/lib/generated-client/models/listings-provider-info.d.ts +1 -1
  227. package/lib/generated-client/models/live-stream-response.d.ts +1 -1
  228. package/lib/generated-client/models/live-tv-info.d.ts +1 -1
  229. package/lib/generated-client/models/live-tv-options.d.ts +2 -2
  230. package/lib/generated-client/models/live-tv-service-info.d.ts +1 -1
  231. package/lib/generated-client/models/lyric-dto.d.ts +2 -2
  232. package/lib/generated-client/models/lyric-line-cue.d.ts +41 -0
  233. package/lib/generated-client/models/lyric-line.d.ts +7 -0
  234. package/lib/generated-client/models/media-path-dto.d.ts +1 -1
  235. package/lib/generated-client/models/media-path-info.d.ts +0 -6
  236. package/lib/generated-client/models/media-segment-dto-query-result.d.ts +36 -0
  237. package/lib/generated-client/models/media-segment-dto.d.ts +48 -0
  238. package/lib/generated-client/models/media-segment-type.d.ts +24 -0
  239. package/lib/generated-client/models/media-segment-type.js +27 -0
  240. package/lib/generated-client/models/media-source-info.d.ts +29 -11
  241. package/lib/generated-client/models/media-stream.d.ts +23 -5
  242. package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
  243. package/lib/generated-client/models/metadata-editor-info.d.ts +12 -12
  244. package/lib/generated-client/models/movie-info-remote-search-query.d.ts +1 -1
  245. package/lib/generated-client/models/movie-info.d.ts +2 -2
  246. package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +1 -1
  247. package/lib/generated-client/models/music-video-info.d.ts +2 -2
  248. package/lib/generated-client/models/network-configuration.d.ts +1 -0
  249. package/lib/generated-client/models/open-live-stream-dto.d.ts +9 -3
  250. package/lib/generated-client/models/outbound-keep-alive-message.d.ts +1 -1
  251. package/lib/generated-client/models/outbound-web-socket-message.d.ts +85 -29
  252. package/lib/generated-client/models/package-info.d.ts +1 -1
  253. package/lib/generated-client/models/parental-rating-score.d.ts +29 -0
  254. package/lib/generated-client/models/parental-rating.d.ts +8 -1
  255. package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +1 -1
  256. package/lib/generated-client/models/person-lookup-info.d.ts +2 -2
  257. package/lib/generated-client/models/play-message.d.ts +2 -2
  258. package/lib/generated-client/models/play-queue-update-group-update.d.ts +2 -2
  259. package/lib/generated-client/models/play-queue-update.d.ts +4 -4
  260. package/lib/generated-client/models/play-request.d.ts +1 -1
  261. package/lib/generated-client/models/playback-info-dto.d.ts +8 -2
  262. package/lib/generated-client/models/playback-info-response.d.ts +2 -2
  263. package/lib/generated-client/models/playback-progress-info.d.ts +5 -5
  264. package/lib/generated-client/models/playback-start-info.d.ts +5 -5
  265. package/lib/generated-client/models/playback-stop-info.d.ts +2 -2
  266. package/lib/generated-client/models/player-state-info.d.ts +3 -3
  267. package/lib/generated-client/models/playlist-dto.d.ts +36 -0
  268. package/lib/generated-client/models/playstate-message.d.ts +2 -2
  269. package/lib/generated-client/models/playstate-request.d.ts +1 -1
  270. package/lib/generated-client/models/plugin-info.d.ts +1 -1
  271. package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +2 -2
  272. package/lib/generated-client/models/plugin-installation-completed-message.d.ts +2 -2
  273. package/lib/generated-client/models/plugin-installation-failed-message.d.ts +2 -2
  274. package/lib/generated-client/models/plugin-installing-message.d.ts +2 -2
  275. package/lib/generated-client/models/plugin-status.d.ts +1 -0
  276. package/lib/generated-client/models/plugin-status.js +1 -0
  277. package/lib/generated-client/models/plugin-uninstalled-message.d.ts +2 -2
  278. package/lib/generated-client/models/problem-details.d.ts +1 -1
  279. package/lib/generated-client/models/profile-condition-value.d.ts +1 -0
  280. package/lib/generated-client/models/profile-condition-value.js +2 -1
  281. package/lib/generated-client/models/profile-condition.d.ts +2 -2
  282. package/lib/generated-client/models/query-filters.d.ts +1 -1
  283. package/lib/generated-client/models/queue-request-dto.d.ts +1 -1
  284. package/lib/generated-client/models/recommendation-dto.d.ts +2 -2
  285. package/lib/generated-client/models/refresh-progress-message.d.ts +3 -3
  286. package/lib/generated-client/models/remote-image-info.d.ts +2 -2
  287. package/lib/generated-client/models/remote-image-result.d.ts +1 -1
  288. package/lib/generated-client/models/remote-lyric-info-dto.d.ts +1 -1
  289. package/lib/generated-client/models/remote-search-result.d.ts +2 -2
  290. package/lib/generated-client/models/restart-required-message.d.ts +1 -1
  291. package/lib/generated-client/models/scheduled-task-ended-message.d.ts +2 -2
  292. package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +2 -2
  293. package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -1
  294. package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +1 -1
  295. package/lib/generated-client/models/search-hint-result.d.ts +1 -1
  296. package/lib/generated-client/models/search-hint.d.ts +2 -2
  297. package/lib/generated-client/models/send-command.d.ts +1 -1
  298. package/lib/generated-client/models/series-info-remote-search-query.d.ts +1 -1
  299. package/lib/generated-client/models/series-info.d.ts +2 -2
  300. package/lib/generated-client/models/series-timer-cancelled-message.d.ts +2 -2
  301. package/lib/generated-client/models/series-timer-created-message.d.ts +2 -2
  302. package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +3 -3
  303. package/lib/generated-client/models/series-timer-info-dto.d.ts +3 -3
  304. package/lib/generated-client/models/server-configuration.d.ts +29 -23
  305. package/lib/generated-client/models/server-restarting-message.d.ts +1 -1
  306. package/lib/generated-client/models/server-shutting-down-message.d.ts +1 -1
  307. package/lib/generated-client/models/session-info-dto.d.ts +199 -0
  308. package/lib/generated-client/models/session-info.d.ts +8 -8
  309. package/lib/generated-client/models/sessions-message.d.ts +4 -4
  310. package/lib/generated-client/models/sessions-start-message.d.ts +1 -1
  311. package/lib/generated-client/models/sessions-stop-message.d.ts +1 -1
  312. package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
  313. package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
  314. package/lib/generated-client/models/song-info.d.ts +2 -2
  315. package/lib/generated-client/models/startup-configuration-dto.d.ts +6 -0
  316. package/lib/generated-client/models/startup-remote-access-dto.d.ts +1 -0
  317. package/lib/generated-client/models/string-group-update.d.ts +1 -1
  318. package/lib/generated-client/models/subtitle-profile.d.ts +6 -6
  319. package/lib/generated-client/models/sync-play-command-message.d.ts +2 -2
  320. package/lib/generated-client/models/sync-play-group-does-not-exist-update.d.ts +36 -0
  321. package/lib/generated-client/models/sync-play-group-joined-update.d.ts +37 -0
  322. package/lib/generated-client/models/sync-play-group-left-update.d.ts +36 -0
  323. package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
  324. package/lib/generated-client/models/sync-play-group-update-message.d.ts +37 -0
  325. package/lib/generated-client/models/sync-play-library-access-denied-update.d.ts +36 -0
  326. package/lib/generated-client/models/sync-play-not-in-group-update.d.ts +36 -0
  327. package/lib/generated-client/models/sync-play-play-queue-update.d.ts +37 -0
  328. package/lib/generated-client/models/sync-play-state-update.d.ts +37 -0
  329. package/lib/generated-client/models/sync-play-user-joined-update.d.ts +36 -0
  330. package/lib/generated-client/models/sync-play-user-left-update.d.ts +36 -0
  331. package/lib/generated-client/models/system-info.d.ts +9 -2
  332. package/lib/generated-client/models/system-storage-dto.d.ts +67 -0
  333. package/lib/generated-client/models/task-info.d.ts +3 -3
  334. package/lib/generated-client/models/task-result.d.ts +1 -1
  335. package/lib/generated-client/models/task-trigger-info-type.d.ts +22 -0
  336. package/lib/generated-client/models/task-trigger-info-type.js +25 -0
  337. package/lib/generated-client/models/task-trigger-info.d.ts +5 -4
  338. package/lib/generated-client/models/theme-media-result.d.ts +2 -2
  339. package/lib/generated-client/models/timer-cancelled-message.d.ts +2 -2
  340. package/lib/generated-client/models/timer-created-message.d.ts +2 -2
  341. package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
  342. package/lib/generated-client/models/timer-info-dto.d.ts +3 -3
  343. package/lib/generated-client/models/tonemapping-algorithm.d.ts +26 -0
  344. package/lib/generated-client/models/tonemapping-algorithm.js +29 -0
  345. package/lib/generated-client/models/tonemapping-mode.d.ts +23 -0
  346. package/lib/generated-client/models/tonemapping-mode.js +26 -0
  347. package/lib/generated-client/models/tonemapping-range.d.ts +21 -0
  348. package/lib/generated-client/models/tonemapping-range.js +24 -0
  349. package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +1 -1
  350. package/lib/generated-client/models/trailer-info.d.ts +2 -2
  351. package/lib/generated-client/models/transcode-reason.d.ts +2 -0
  352. package/lib/generated-client/models/transcode-reason.js +3 -1
  353. package/lib/generated-client/models/transcoding-info.d.ts +16 -16
  354. package/lib/generated-client/models/transcoding-profile.d.ts +24 -18
  355. package/lib/generated-client/models/trickplay-info-dto.d.ts +59 -0
  356. package/lib/generated-client/models/trickplay-info.d.ts +7 -1
  357. package/lib/generated-client/models/trickplay-options.d.ts +8 -2
  358. package/lib/generated-client/models/tuner-host-info.d.ts +24 -0
  359. package/lib/generated-client/models/type-options.d.ts +1 -1
  360. package/lib/generated-client/models/update-library-options-dto.d.ts +1 -1
  361. package/lib/generated-client/models/update-media-path-request-dto.d.ts +1 -1
  362. package/lib/generated-client/models/update-playlist-dto.d.ts +1 -1
  363. package/lib/generated-client/models/user-configuration.d.ts +1 -1
  364. package/lib/generated-client/models/user-data-change-info.d.ts +3 -3
  365. package/lib/generated-client/models/user-data-changed-message.d.ts +2 -2
  366. package/lib/generated-client/models/user-deleted-message.d.ts +1 -1
  367. package/lib/generated-client/models/user-dto.d.ts +2 -2
  368. package/lib/generated-client/models/user-item-data-dto.d.ts +2 -2
  369. package/lib/generated-client/models/user-policy.d.ts +9 -3
  370. package/lib/generated-client/models/user-updated-message.d.ts +2 -2
  371. package/lib/generated-client/models/video-range-type.d.ts +4 -0
  372. package/lib/generated-client/models/video-range-type.js +4 -0
  373. package/lib/generated-client/models/virtual-folder-info.d.ts +2 -2
  374. package/lib/generated-client/models/web-socket-message.d.ts +2 -2
  375. package/lib/models/api/image-request-parameters.d.ts +0 -1
  376. package/lib/models/api/index.d.ts +0 -1
  377. package/lib/models/api/index.js +1 -1
  378. package/lib/utils/address-candidates.js +15 -10
  379. package/lib/utils/api/index.d.ts +1 -0
  380. package/lib/utils/api/index.js +1 -0
  381. package/lib/utils/api/media-segments-api.d.ts +8 -0
  382. package/lib/utils/api/media-segments-api.js +12 -0
  383. package/lib/utils/index.js +1 -1
  384. package/lib/utils/url/index.d.ts +16 -3
  385. package/lib/utils/url/index.js +26 -4
  386. package/lib/versions.d.ts +2 -2
  387. package/lib/versions.js +2 -2
  388. package/package.json +20 -18
  389. package/lib/models/api/item-sort-by.d.ts +0 -40
  390. package/lib/models/api/item-sort-by.js +0 -43
@@ -1,6 +1,6 @@
1
1
  import globalAxios from 'axios';
2
- import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
3
- import { BaseAPI, BASE_PATH } from '../base.js';
2
+ import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, assertParamExists, createRequestFunction } from '../common.js';
3
+ import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
4
4
 
5
5
  /* tslint:disable */
6
6
  /* eslint-disable */
@@ -223,11 +223,12 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
223
223
  * @param {string} [itemId] The item id.
224
224
  * @param {boolean} [enableDirectPlay] Whether to enable direct play. Default: true.
225
225
  * @param {boolean} [enableDirectStream] Whether to enable direct stream. Default: true.
226
+ * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Always burn-in subtitle when transcoding.
226
227
  * @param {OpenLiveStreamDto} [openLiveStreamDto] The open live stream dto.
227
228
  * @param {*} [options] Override http request option.
228
229
  * @throws {RequiredError}
229
230
  */
230
- openLiveStream: async (openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, openLiveStreamDto, options = {}) => {
231
+ openLiveStream: async (openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, alwaysBurnInSubtitleWhenTranscoding, openLiveStreamDto, options = {}) => {
231
232
  const localVarPath = `/LiveStreams/Open`;
232
233
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
233
234
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -273,6 +274,9 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
273
274
  if (enableDirectStream !== undefined) {
274
275
  localVarQueryParameter['enableDirectStream'] = enableDirectStream;
275
276
  }
277
+ if (alwaysBurnInSubtitleWhenTranscoding !== undefined) {
278
+ localVarQueryParameter['alwaysBurnInSubtitleWhenTranscoding'] = alwaysBurnInSubtitleWhenTranscoding;
279
+ }
276
280
  localVarHeaderParameter['Content-Type'] = 'application/json';
277
281
  setSearchParams(localVarUrlObj, localVarQueryParameter);
278
282
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -300,8 +304,11 @@ const MediaInfoApiFp = function (configuration) {
300
304
  * @throws {RequiredError}
301
305
  */
302
306
  async closeLiveStream(liveStreamId, options) {
307
+ var _a, _b, _c;
303
308
  const localVarAxiosArgs = await localVarAxiosParamCreator.closeLiveStream(liveStreamId, options);
304
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
309
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
310
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaInfoApi.closeLiveStream']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
311
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
305
312
  },
306
313
  /**
307
314
  *
@@ -311,8 +318,11 @@ const MediaInfoApiFp = function (configuration) {
311
318
  * @throws {RequiredError}
312
319
  */
313
320
  async getBitrateTestBytes(size, options) {
321
+ var _a, _b, _c;
314
322
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBitrateTestBytes(size, options);
315
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
323
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
324
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaInfoApi.getBitrateTestBytes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
325
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
316
326
  },
317
327
  /**
318
328
  *
@@ -323,8 +333,11 @@ const MediaInfoApiFp = function (configuration) {
323
333
  * @throws {RequiredError}
324
334
  */
325
335
  async getPlaybackInfo(itemId, userId, options) {
336
+ var _a, _b, _c;
326
337
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaybackInfo(itemId, userId, options);
327
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
338
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
339
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaInfoApi.getPlaybackInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
340
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
328
341
  },
329
342
  /**
330
343
  * For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.
@@ -349,8 +362,11 @@ const MediaInfoApiFp = function (configuration) {
349
362
  * @throws {RequiredError}
350
363
  */
351
364
  async getPostedPlaybackInfo(itemId, userId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, mediaSourceId, liveStreamId, autoOpenLiveStream, enableDirectPlay, enableDirectStream, enableTranscoding, allowVideoStreamCopy, allowAudioStreamCopy, playbackInfoDto, options) {
365
+ var _a, _b, _c;
352
366
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPostedPlaybackInfo(itemId, userId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, mediaSourceId, liveStreamId, autoOpenLiveStream, enableDirectPlay, enableDirectStream, enableTranscoding, allowVideoStreamCopy, allowAudioStreamCopy, playbackInfoDto, options);
353
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
367
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
368
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaInfoApi.getPostedPlaybackInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
369
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
354
370
  },
355
371
  /**
356
372
  *
@@ -366,13 +382,17 @@ const MediaInfoApiFp = function (configuration) {
366
382
  * @param {string} [itemId] The item id.
367
383
  * @param {boolean} [enableDirectPlay] Whether to enable direct play. Default: true.
368
384
  * @param {boolean} [enableDirectStream] Whether to enable direct stream. Default: true.
385
+ * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Always burn-in subtitle when transcoding.
369
386
  * @param {OpenLiveStreamDto} [openLiveStreamDto] The open live stream dto.
370
387
  * @param {*} [options] Override http request option.
371
388
  * @throws {RequiredError}
372
389
  */
373
- async openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, openLiveStreamDto, options) {
374
- const localVarAxiosArgs = await localVarAxiosParamCreator.openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, openLiveStreamDto, options);
375
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
390
+ async openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, alwaysBurnInSubtitleWhenTranscoding, openLiveStreamDto, options) {
391
+ var _a, _b, _c;
392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, alwaysBurnInSubtitleWhenTranscoding, openLiveStreamDto, options);
393
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
394
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaInfoApi.openLiveStream']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
395
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
376
396
  },
377
397
  };
378
398
  };
@@ -386,79 +406,52 @@ const MediaInfoApiFactory = function (configuration, basePath, axios) {
386
406
  /**
387
407
  *
388
408
  * @summary Closes a media source.
389
- * @param {string} liveStreamId The livestream id.
409
+ * @param {MediaInfoApiCloseLiveStreamRequest} requestParameters Request parameters.
390
410
  * @param {*} [options] Override http request option.
391
411
  * @throws {RequiredError}
392
412
  */
393
- closeLiveStream(liveStreamId, options) {
394
- return localVarFp.closeLiveStream(liveStreamId, options).then((request) => request(axios, basePath));
413
+ closeLiveStream(requestParameters, options) {
414
+ return localVarFp.closeLiveStream(requestParameters.liveStreamId, options).then((request) => request(axios, basePath));
395
415
  },
396
416
  /**
397
417
  *
398
418
  * @summary Tests the network with a request with the size of the bitrate.
399
- * @param {number} [size] The bitrate. Defaults to 102400.
419
+ * @param {MediaInfoApiGetBitrateTestBytesRequest} requestParameters Request parameters.
400
420
  * @param {*} [options] Override http request option.
401
421
  * @throws {RequiredError}
402
422
  */
403
- getBitrateTestBytes(size, options) {
404
- return localVarFp.getBitrateTestBytes(size, options).then((request) => request(axios, basePath));
423
+ getBitrateTestBytes(requestParameters = {}, options) {
424
+ return localVarFp.getBitrateTestBytes(requestParameters.size, options).then((request) => request(axios, basePath));
405
425
  },
406
426
  /**
407
427
  *
408
428
  * @summary Gets live playback media info for an item.
409
- * @param {string} itemId The item id.
410
- * @param {string} [userId] The user id.
429
+ * @param {MediaInfoApiGetPlaybackInfoRequest} requestParameters Request parameters.
411
430
  * @param {*} [options] Override http request option.
412
431
  * @throws {RequiredError}
413
432
  */
414
- getPlaybackInfo(itemId, userId, options) {
415
- return localVarFp.getPlaybackInfo(itemId, userId, options).then((request) => request(axios, basePath));
433
+ getPlaybackInfo(requestParameters, options) {
434
+ return localVarFp.getPlaybackInfo(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
416
435
  },
417
436
  /**
418
437
  * For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.
419
438
  * @summary Gets live playback media info for an item.
420
- * @param {string} itemId The item id.
421
- * @param {string} [userId] The user id.
422
- * @param {number} [maxStreamingBitrate] The maximum streaming bitrate.
423
- * @param {number} [startTimeTicks] The start time in ticks.
424
- * @param {number} [audioStreamIndex] The audio stream index.
425
- * @param {number} [subtitleStreamIndex] The subtitle stream index.
426
- * @param {number} [maxAudioChannels] The maximum number of audio channels.
427
- * @param {string} [mediaSourceId] The media source id.
428
- * @param {string} [liveStreamId] The livestream id.
429
- * @param {boolean} [autoOpenLiveStream] Whether to auto open the livestream.
430
- * @param {boolean} [enableDirectPlay] Whether to enable direct play. Default: true.
431
- * @param {boolean} [enableDirectStream] Whether to enable direct stream. Default: true.
432
- * @param {boolean} [enableTranscoding] Whether to enable transcoding. Default: true.
433
- * @param {boolean} [allowVideoStreamCopy] Whether to allow to copy the video stream. Default: true.
434
- * @param {boolean} [allowAudioStreamCopy] Whether to allow to copy the audio stream. Default: true.
435
- * @param {PlaybackInfoDto} [playbackInfoDto] The playback info.
439
+ * @param {MediaInfoApiGetPostedPlaybackInfoRequest} requestParameters Request parameters.
436
440
  * @param {*} [options] Override http request option.
437
441
  * @throws {RequiredError}
438
442
  */
439
- getPostedPlaybackInfo(itemId, userId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, mediaSourceId, liveStreamId, autoOpenLiveStream, enableDirectPlay, enableDirectStream, enableTranscoding, allowVideoStreamCopy, allowAudioStreamCopy, playbackInfoDto, options) {
440
- return localVarFp.getPostedPlaybackInfo(itemId, userId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, mediaSourceId, liveStreamId, autoOpenLiveStream, enableDirectPlay, enableDirectStream, enableTranscoding, allowVideoStreamCopy, allowAudioStreamCopy, playbackInfoDto, options).then((request) => request(axios, basePath));
443
+ getPostedPlaybackInfo(requestParameters, options) {
444
+ return localVarFp.getPostedPlaybackInfo(requestParameters.itemId, requestParameters.userId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.mediaSourceId, requestParameters.liveStreamId, requestParameters.autoOpenLiveStream, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.enableTranscoding, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.playbackInfoDto, options).then((request) => request(axios, basePath));
441
445
  },
442
446
  /**
443
447
  *
444
448
  * @summary Opens a media source.
445
- * @param {string} [openToken] The open token.
446
- * @param {string} [userId] The user id.
447
- * @param {string} [playSessionId] The play session id.
448
- * @param {number} [maxStreamingBitrate] The maximum streaming bitrate.
449
- * @param {number} [startTimeTicks] The start time in ticks.
450
- * @param {number} [audioStreamIndex] The audio stream index.
451
- * @param {number} [subtitleStreamIndex] The subtitle stream index.
452
- * @param {number} [maxAudioChannels] The maximum number of audio channels.
453
- * @param {string} [itemId] The item id.
454
- * @param {boolean} [enableDirectPlay] Whether to enable direct play. Default: true.
455
- * @param {boolean} [enableDirectStream] Whether to enable direct stream. Default: true.
456
- * @param {OpenLiveStreamDto} [openLiveStreamDto] The open live stream dto.
449
+ * @param {MediaInfoApiOpenLiveStreamRequest} requestParameters Request parameters.
457
450
  * @param {*} [options] Override http request option.
458
451
  * @throws {RequiredError}
459
452
  */
460
- openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, openLiveStreamDto, options) {
461
- return localVarFp.openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, openLiveStreamDto, options).then((request) => request(axios, basePath));
453
+ openLiveStream(requestParameters = {}, options) {
454
+ return localVarFp.openLiveStream(requestParameters.openToken, requestParameters.userId, requestParameters.playSessionId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.itemId, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.alwaysBurnInSubtitleWhenTranscoding, requestParameters.openLiveStreamDto, options).then((request) => request(axios, basePath));
462
455
  },
463
456
  };
464
457
  };
@@ -522,7 +515,7 @@ class MediaInfoApi extends BaseAPI {
522
515
  * @memberof MediaInfoApi
523
516
  */
524
517
  openLiveStream(requestParameters = {}, options) {
525
- return MediaInfoApiFp(this.configuration).openLiveStream(requestParameters.openToken, requestParameters.userId, requestParameters.playSessionId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.itemId, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.openLiveStreamDto, options).then((request) => request(this.axios, this.basePath));
518
+ return MediaInfoApiFp(this.configuration).openLiveStream(requestParameters.openToken, requestParameters.userId, requestParameters.playSessionId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.itemId, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.alwaysBurnInSubtitleWhenTranscoding, requestParameters.openLiveStreamDto, options).then((request) => request(this.axios, this.basePath));
526
519
  }
527
520
  }
528
521
 
@@ -0,0 +1,95 @@
1
+ /**
2
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3
+ * Do not edit the class manually.
4
+ *
5
+ * Jellyfin API
6
+ *
7
+ * This Source Code Form is subject to the terms of the Mozilla Public
8
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
9
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
+ */
11
+ import type { Configuration } from '../configuration';
12
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
13
+ import { type RequestArgs, BaseAPI } from '../base';
14
+ import type { MediaSegmentDtoQueryResult } from '../models';
15
+ import type { MediaSegmentType } from '../models';
16
+ /**
17
+ * MediaSegmentsApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const MediaSegmentsApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @summary Gets all media segments based on an itemId.
24
+ * @param {string} itemId The ItemId.
25
+ * @param {Array<MediaSegmentType>} [includeSegmentTypes] Optional filter of requested segment types.
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ getItemSegments: (itemId: string, includeSegmentTypes?: Array<MediaSegmentType>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30
+ };
31
+ /**
32
+ * MediaSegmentsApi - functional programming interface
33
+ * @export
34
+ */
35
+ export declare const MediaSegmentsApiFp: (configuration?: Configuration) => {
36
+ /**
37
+ *
38
+ * @summary Gets all media segments based on an itemId.
39
+ * @param {string} itemId The ItemId.
40
+ * @param {Array<MediaSegmentType>} [includeSegmentTypes] Optional filter of requested segment types.
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ getItemSegments(itemId: string, includeSegmentTypes?: Array<MediaSegmentType>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaSegmentDtoQueryResult>>;
45
+ };
46
+ /**
47
+ * MediaSegmentsApi - factory interface
48
+ * @export
49
+ */
50
+ export declare const MediaSegmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
51
+ /**
52
+ *
53
+ * @summary Gets all media segments based on an itemId.
54
+ * @param {MediaSegmentsApiGetItemSegmentsRequest} requestParameters Request parameters.
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ getItemSegments(requestParameters: MediaSegmentsApiGetItemSegmentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<MediaSegmentDtoQueryResult>;
59
+ };
60
+ /**
61
+ * Request parameters for getItemSegments operation in MediaSegmentsApi.
62
+ * @export
63
+ * @interface MediaSegmentsApiGetItemSegmentsRequest
64
+ */
65
+ export interface MediaSegmentsApiGetItemSegmentsRequest {
66
+ /**
67
+ * The ItemId.
68
+ * @type {string}
69
+ * @memberof MediaSegmentsApiGetItemSegments
70
+ */
71
+ readonly itemId: string;
72
+ /**
73
+ * Optional filter of requested segment types.
74
+ * @type {Array<MediaSegmentType>}
75
+ * @memberof MediaSegmentsApiGetItemSegments
76
+ */
77
+ readonly includeSegmentTypes?: Array<MediaSegmentType>;
78
+ }
79
+ /**
80
+ * MediaSegmentsApi - object-oriented interface
81
+ * @export
82
+ * @class MediaSegmentsApi
83
+ * @extends {BaseAPI}
84
+ */
85
+ export declare class MediaSegmentsApi extends BaseAPI {
86
+ /**
87
+ *
88
+ * @summary Gets all media segments based on an itemId.
89
+ * @param {MediaSegmentsApiGetItemSegmentsRequest} requestParameters Request parameters.
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ * @memberof MediaSegmentsApi
93
+ */
94
+ getItemSegments(requestParameters: MediaSegmentsApiGetItemSegmentsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MediaSegmentDtoQueryResult, any, {}>>;
95
+ }
@@ -0,0 +1,123 @@
1
+ import globalAxios from 'axios';
2
+ import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
3
+ import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * Do not edit the class manually.
10
+ *
11
+ * Jellyfin API
12
+ *
13
+ * This Source Code Form is subject to the terms of the Mozilla Public
14
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
15
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
16
+ */
17
+ /**
18
+ * MediaSegmentsApi - axios parameter creator
19
+ * @export
20
+ */
21
+ const MediaSegmentsApiAxiosParamCreator = function (configuration) {
22
+ return {
23
+ /**
24
+ *
25
+ * @summary Gets all media segments based on an itemId.
26
+ * @param {string} itemId The ItemId.
27
+ * @param {Array<MediaSegmentType>} [includeSegmentTypes] Optional filter of requested segment types.
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ getItemSegments: async (itemId, includeSegmentTypes, options = {}) => {
32
+ // verify required parameter 'itemId' is not null or undefined
33
+ assertParamExists('getItemSegments', 'itemId', itemId);
34
+ const localVarPath = `/MediaSegments/{itemId}`
35
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
36
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38
+ let baseOptions;
39
+ if (configuration) {
40
+ baseOptions = configuration.baseOptions;
41
+ }
42
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
43
+ const localVarHeaderParameter = {};
44
+ const localVarQueryParameter = {};
45
+ // authentication CustomAuthentication required
46
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
47
+ if (includeSegmentTypes) {
48
+ localVarQueryParameter['includeSegmentTypes'] = includeSegmentTypes;
49
+ }
50
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
51
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
53
+ return {
54
+ url: toPathString(localVarUrlObj),
55
+ options: localVarRequestOptions,
56
+ };
57
+ },
58
+ };
59
+ };
60
+ /**
61
+ * MediaSegmentsApi - functional programming interface
62
+ * @export
63
+ */
64
+ const MediaSegmentsApiFp = function (configuration) {
65
+ const localVarAxiosParamCreator = MediaSegmentsApiAxiosParamCreator(configuration);
66
+ return {
67
+ /**
68
+ *
69
+ * @summary Gets all media segments based on an itemId.
70
+ * @param {string} itemId The ItemId.
71
+ * @param {Array<MediaSegmentType>} [includeSegmentTypes] Optional filter of requested segment types.
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ async getItemSegments(itemId, includeSegmentTypes, options) {
76
+ var _a, _b, _c;
77
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItemSegments(itemId, includeSegmentTypes, options);
78
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
79
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaSegmentsApi.getItemSegments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
80
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
81
+ },
82
+ };
83
+ };
84
+ /**
85
+ * MediaSegmentsApi - factory interface
86
+ * @export
87
+ */
88
+ const MediaSegmentsApiFactory = function (configuration, basePath, axios) {
89
+ const localVarFp = MediaSegmentsApiFp(configuration);
90
+ return {
91
+ /**
92
+ *
93
+ * @summary Gets all media segments based on an itemId.
94
+ * @param {MediaSegmentsApiGetItemSegmentsRequest} requestParameters Request parameters.
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ getItemSegments(requestParameters, options) {
99
+ return localVarFp.getItemSegments(requestParameters.itemId, requestParameters.includeSegmentTypes, options).then((request) => request(axios, basePath));
100
+ },
101
+ };
102
+ };
103
+ /**
104
+ * MediaSegmentsApi - object-oriented interface
105
+ * @export
106
+ * @class MediaSegmentsApi
107
+ * @extends {BaseAPI}
108
+ */
109
+ class MediaSegmentsApi extends BaseAPI {
110
+ /**
111
+ *
112
+ * @summary Gets all media segments based on an itemId.
113
+ * @param {MediaSegmentsApiGetItemSegmentsRequest} requestParameters Request parameters.
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ * @memberof MediaSegmentsApi
117
+ */
118
+ getItemSegments(requestParameters, options) {
119
+ return MediaSegmentsApiFp(this.configuration).getItemSegments(requestParameters.itemId, requestParameters.includeSegmentTypes, options).then((request) => request(this.axios, this.basePath));
120
+ }
121
+ }
122
+
123
+ export { MediaSegmentsApi, MediaSegmentsApiAxiosParamCreator, MediaSegmentsApiFactory, MediaSegmentsApiFp };
@@ -8,11 +8,11 @@
8
8
  * License, v. 2.0. If a copy of the MPL was not distributed with this
9
9
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
10
  */
11
- import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
12
- import { Configuration } from '../configuration';
13
- import { RequestArgs, BaseAPI } from '../base';
14
- import { ItemFields } from '../models';
15
- import { RecommendationDto } from '../models';
11
+ import type { Configuration } from '../configuration';
12
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
13
+ import { type RequestArgs, BaseAPI } from '../base';
14
+ import type { ItemFields } from '../models';
15
+ import type { RecommendationDto } from '../models';
16
16
  /**
17
17
  * MoviesApi - axios parameter creator
18
18
  * @export
@@ -29,7 +29,7 @@ export declare const MoviesApiAxiosParamCreator: (configuration?: Configuration)
29
29
  * @param {*} [options] Override http request option.
30
30
  * @throws {RequiredError}
31
31
  */
32
- getMovieRecommendations: (userId?: string, parentId?: string, fields?: Array<ItemFields>, categoryLimit?: number, itemLimit?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ getMovieRecommendations: (userId?: string, parentId?: string, fields?: Array<ItemFields>, categoryLimit?: number, itemLimit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33
33
  };
34
34
  /**
35
35
  * MoviesApi - functional programming interface
@@ -47,7 +47,7 @@ export declare const MoviesApiFp: (configuration?: Configuration) => {
47
47
  * @param {*} [options] Override http request option.
48
48
  * @throws {RequiredError}
49
49
  */
50
- getMovieRecommendations(userId?: string, parentId?: string, fields?: Array<ItemFields>, categoryLimit?: number, itemLimit?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RecommendationDto>>>;
50
+ getMovieRecommendations(userId?: string, parentId?: string, fields?: Array<ItemFields>, categoryLimit?: number, itemLimit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RecommendationDto>>>;
51
51
  };
52
52
  /**
53
53
  * MoviesApi - factory interface
@@ -57,15 +57,11 @@ export declare const MoviesApiFactory: (configuration?: Configuration, basePath?
57
57
  /**
58
58
  *
59
59
  * @summary Gets movie recommendations.
60
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
61
- * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
62
- * @param {Array<ItemFields>} [fields] Optional. The fields to return.
63
- * @param {number} [categoryLimit] The max number of categories to return.
64
- * @param {number} [itemLimit] The max number of items to return per category.
60
+ * @param {MoviesApiGetMovieRecommendationsRequest} requestParameters Request parameters.
65
61
  * @param {*} [options] Override http request option.
66
62
  * @throws {RequiredError}
67
63
  */
68
- getMovieRecommendations(userId?: string, parentId?: string, fields?: Array<ItemFields>, categoryLimit?: number, itemLimit?: number, options?: any): AxiosPromise<Array<RecommendationDto>>;
64
+ getMovieRecommendations(requestParameters?: MoviesApiGetMovieRecommendationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<RecommendationDto>>;
69
65
  };
70
66
  /**
71
67
  * Request parameters for getMovieRecommendations operation in MoviesApi.
@@ -119,5 +115,5 @@ export declare class MoviesApi extends BaseAPI {
119
115
  * @throws {RequiredError}
120
116
  * @memberof MoviesApi
121
117
  */
122
- getMovieRecommendations(requestParameters?: MoviesApiGetMovieRecommendationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RecommendationDto[], any>>;
118
+ getMovieRecommendations(requestParameters?: MoviesApiGetMovieRecommendationsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RecommendationDto[], any, {}>>;
123
119
  }
@@ -1,6 +1,6 @@
1
1
  import globalAxios from 'axios';
2
2
  import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
3
- import { BaseAPI, BASE_PATH } from '../base.js';
3
+ import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
4
4
 
5
5
  /* tslint:disable */
6
6
  /* eslint-disable */
@@ -88,8 +88,11 @@ const MoviesApiFp = function (configuration) {
88
88
  * @throws {RequiredError}
89
89
  */
90
90
  async getMovieRecommendations(userId, parentId, fields, categoryLimit, itemLimit, options) {
91
+ var _a, _b, _c;
91
92
  const localVarAxiosArgs = await localVarAxiosParamCreator.getMovieRecommendations(userId, parentId, fields, categoryLimit, itemLimit, options);
92
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
93
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
94
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MoviesApi.getMovieRecommendations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
95
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
93
96
  },
94
97
  };
95
98
  };
@@ -103,16 +106,12 @@ const MoviesApiFactory = function (configuration, basePath, axios) {
103
106
  /**
104
107
  *
105
108
  * @summary Gets movie recommendations.
106
- * @param {string} [userId] Optional. Filter by user id, and attach user data.
107
- * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
108
- * @param {Array<ItemFields>} [fields] Optional. The fields to return.
109
- * @param {number} [categoryLimit] The max number of categories to return.
110
- * @param {number} [itemLimit] The max number of items to return per category.
109
+ * @param {MoviesApiGetMovieRecommendationsRequest} requestParameters Request parameters.
111
110
  * @param {*} [options] Override http request option.
112
111
  * @throws {RequiredError}
113
112
  */
114
- getMovieRecommendations(userId, parentId, fields, categoryLimit, itemLimit, options) {
115
- return localVarFp.getMovieRecommendations(userId, parentId, fields, categoryLimit, itemLimit, options).then((request) => request(axios, basePath));
113
+ getMovieRecommendations(requestParameters = {}, options) {
114
+ return localVarFp.getMovieRecommendations(requestParameters.userId, requestParameters.parentId, requestParameters.fields, requestParameters.categoryLimit, requestParameters.itemLimit, options).then((request) => request(axios, basePath));
116
115
  },
117
116
  };
118
117
  };