@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
2
  import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, 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 */
@@ -645,8 +645,11 @@ const SessionApiFp = function (configuration) {
645
645
  * @throws {RequiredError}
646
646
  */
647
647
  async addUserToSession(sessionId, userId, options) {
648
+ var _a, _b, _c;
648
649
  const localVarAxiosArgs = await localVarAxiosParamCreator.addUserToSession(sessionId, userId, options);
649
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
650
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
651
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.addUserToSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
652
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
650
653
  },
651
654
  /**
652
655
  *
@@ -659,8 +662,11 @@ const SessionApiFp = function (configuration) {
659
662
  * @throws {RequiredError}
660
663
  */
661
664
  async displayContent(sessionId, itemType, itemId, itemName, options) {
665
+ var _a, _b, _c;
662
666
  const localVarAxiosArgs = await localVarAxiosParamCreator.displayContent(sessionId, itemType, itemId, itemName, options);
663
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
667
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
668
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.displayContent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
669
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
664
670
  },
665
671
  /**
666
672
  *
@@ -669,8 +675,11 @@ const SessionApiFp = function (configuration) {
669
675
  * @throws {RequiredError}
670
676
  */
671
677
  async getAuthProviders(options) {
678
+ var _a, _b, _c;
672
679
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthProviders(options);
673
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
680
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
681
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.getAuthProviders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
682
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
674
683
  },
675
684
  /**
676
685
  *
@@ -679,8 +688,11 @@ const SessionApiFp = function (configuration) {
679
688
  * @throws {RequiredError}
680
689
  */
681
690
  async getPasswordResetProviders(options) {
691
+ var _a, _b, _c;
682
692
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPasswordResetProviders(options);
683
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
693
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
694
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.getPasswordResetProviders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
695
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
684
696
  },
685
697
  /**
686
698
  *
@@ -692,8 +704,11 @@ const SessionApiFp = function (configuration) {
692
704
  * @throws {RequiredError}
693
705
  */
694
706
  async getSessions(controllableByUserId, deviceId, activeWithinSeconds, options) {
707
+ var _a, _b, _c;
695
708
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options);
696
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
709
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
710
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.getSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
711
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
697
712
  },
698
713
  /**
699
714
  *
@@ -710,8 +725,11 @@ const SessionApiFp = function (configuration) {
710
725
  * @throws {RequiredError}
711
726
  */
712
727
  async play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options) {
728
+ var _a, _b, _c;
713
729
  const localVarAxiosArgs = await localVarAxiosParamCreator.play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options);
714
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
730
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
731
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.play']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
732
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
715
733
  },
716
734
  /**
717
735
  *
@@ -725,8 +743,11 @@ const SessionApiFp = function (configuration) {
725
743
  * @throws {RequiredError}
726
744
  */
727
745
  async postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options) {
746
+ var _a, _b, _c;
728
747
  const localVarAxiosArgs = await localVarAxiosParamCreator.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options);
729
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
748
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
749
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.postCapabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
750
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
730
751
  },
731
752
  /**
732
753
  *
@@ -737,8 +758,11 @@ const SessionApiFp = function (configuration) {
737
758
  * @throws {RequiredError}
738
759
  */
739
760
  async postFullCapabilities(clientCapabilitiesDto, id, options) {
761
+ var _a, _b, _c;
740
762
  const localVarAxiosArgs = await localVarAxiosParamCreator.postFullCapabilities(clientCapabilitiesDto, id, options);
741
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
763
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
764
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.postFullCapabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
765
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
742
766
  },
743
767
  /**
744
768
  *
@@ -749,8 +773,11 @@ const SessionApiFp = function (configuration) {
749
773
  * @throws {RequiredError}
750
774
  */
751
775
  async removeUserFromSession(sessionId, userId, options) {
776
+ var _a, _b, _c;
752
777
  const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromSession(sessionId, userId, options);
753
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
778
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
779
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.removeUserFromSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
780
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
754
781
  },
755
782
  /**
756
783
  *
@@ -759,8 +786,11 @@ const SessionApiFp = function (configuration) {
759
786
  * @throws {RequiredError}
760
787
  */
761
788
  async reportSessionEnded(options) {
789
+ var _a, _b, _c;
762
790
  const localVarAxiosArgs = await localVarAxiosParamCreator.reportSessionEnded(options);
763
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
791
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
792
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.reportSessionEnded']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
793
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
764
794
  },
765
795
  /**
766
796
  *
@@ -771,8 +801,11 @@ const SessionApiFp = function (configuration) {
771
801
  * @throws {RequiredError}
772
802
  */
773
803
  async reportViewing(itemId, sessionId, options) {
804
+ var _a, _b, _c;
774
805
  const localVarAxiosArgs = await localVarAxiosParamCreator.reportViewing(itemId, sessionId, options);
775
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
806
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
807
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.reportViewing']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
808
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
776
809
  },
777
810
  /**
778
811
  *
@@ -783,8 +816,11 @@ const SessionApiFp = function (configuration) {
783
816
  * @throws {RequiredError}
784
817
  */
785
818
  async sendFullGeneralCommand(sessionId, generalCommand, options) {
819
+ var _a, _b, _c;
786
820
  const localVarAxiosArgs = await localVarAxiosParamCreator.sendFullGeneralCommand(sessionId, generalCommand, options);
787
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
821
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
822
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.sendFullGeneralCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
823
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
788
824
  },
789
825
  /**
790
826
  *
@@ -795,8 +831,11 @@ const SessionApiFp = function (configuration) {
795
831
  * @throws {RequiredError}
796
832
  */
797
833
  async sendGeneralCommand(sessionId, command, options) {
834
+ var _a, _b, _c;
798
835
  const localVarAxiosArgs = await localVarAxiosParamCreator.sendGeneralCommand(sessionId, command, options);
799
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
836
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
837
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.sendGeneralCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
838
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
800
839
  },
801
840
  /**
802
841
  *
@@ -807,8 +846,11 @@ const SessionApiFp = function (configuration) {
807
846
  * @throws {RequiredError}
808
847
  */
809
848
  async sendMessageCommand(sessionId, messageCommand, options) {
849
+ var _a, _b, _c;
810
850
  const localVarAxiosArgs = await localVarAxiosParamCreator.sendMessageCommand(sessionId, messageCommand, options);
811
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
851
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
852
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.sendMessageCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
853
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
812
854
  },
813
855
  /**
814
856
  *
@@ -821,8 +863,11 @@ const SessionApiFp = function (configuration) {
821
863
  * @throws {RequiredError}
822
864
  */
823
865
  async sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options) {
866
+ var _a, _b, _c;
824
867
  const localVarAxiosArgs = await localVarAxiosParamCreator.sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options);
825
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
868
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
869
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.sendPlaystateCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
870
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
826
871
  },
827
872
  /**
828
873
  *
@@ -833,8 +878,11 @@ const SessionApiFp = function (configuration) {
833
878
  * @throws {RequiredError}
834
879
  */
835
880
  async sendSystemCommand(sessionId, command, options) {
881
+ var _a, _b, _c;
836
882
  const localVarAxiosArgs = await localVarAxiosParamCreator.sendSystemCommand(sessionId, command, options);
837
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
883
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
884
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.sendSystemCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
885
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
838
886
  },
839
887
  };
840
888
  };
@@ -848,26 +896,22 @@ const SessionApiFactory = function (configuration, basePath, axios) {
848
896
  /**
849
897
  *
850
898
  * @summary Adds an additional user to a session.
851
- * @param {string} sessionId The session id.
852
- * @param {string} userId The user id.
899
+ * @param {SessionApiAddUserToSessionRequest} requestParameters Request parameters.
853
900
  * @param {*} [options] Override http request option.
854
901
  * @throws {RequiredError}
855
902
  */
856
- addUserToSession(sessionId, userId, options) {
857
- return localVarFp.addUserToSession(sessionId, userId, options).then((request) => request(axios, basePath));
903
+ addUserToSession(requestParameters, options) {
904
+ return localVarFp.addUserToSession(requestParameters.sessionId, requestParameters.userId, options).then((request) => request(axios, basePath));
858
905
  },
859
906
  /**
860
907
  *
861
908
  * @summary Instructs a session to browse to an item or view.
862
- * @param {string} sessionId The session Id.
863
- * @param {BaseItemKind} itemType The type of item to browse to.
864
- * @param {string} itemId The Id of the item.
865
- * @param {string} itemName The name of the item.
909
+ * @param {SessionApiDisplayContentRequest} requestParameters Request parameters.
866
910
  * @param {*} [options] Override http request option.
867
911
  * @throws {RequiredError}
868
912
  */
869
- displayContent(sessionId, itemType, itemId, itemName, options) {
870
- return localVarFp.displayContent(sessionId, itemType, itemId, itemName, options).then((request) => request(axios, basePath));
913
+ displayContent(requestParameters, options) {
914
+ return localVarFp.displayContent(requestParameters.sessionId, requestParameters.itemType, requestParameters.itemId, requestParameters.itemName, options).then((request) => request(axios, basePath));
871
915
  },
872
916
  /**
873
917
  *
@@ -890,67 +934,52 @@ const SessionApiFactory = function (configuration, basePath, axios) {
890
934
  /**
891
935
  *
892
936
  * @summary Gets a list of sessions.
893
- * @param {string} [controllableByUserId] Filter by sessions that a given user is allowed to remote control.
894
- * @param {string} [deviceId] Filter by device Id.
895
- * @param {number} [activeWithinSeconds] Optional. Filter by sessions that were active in the last n seconds.
937
+ * @param {SessionApiGetSessionsRequest} requestParameters Request parameters.
896
938
  * @param {*} [options] Override http request option.
897
939
  * @throws {RequiredError}
898
940
  */
899
- getSessions(controllableByUserId, deviceId, activeWithinSeconds, options) {
900
- return localVarFp.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options).then((request) => request(axios, basePath));
941
+ getSessions(requestParameters = {}, options) {
942
+ return localVarFp.getSessions(requestParameters.controllableByUserId, requestParameters.deviceId, requestParameters.activeWithinSeconds, options).then((request) => request(axios, basePath));
901
943
  },
902
944
  /**
903
945
  *
904
946
  * @summary Instructs a session to play an item.
905
- * @param {string} sessionId The session id.
906
- * @param {PlayCommand} playCommand The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now.
907
- * @param {Array<string>} itemIds The ids of the items to play, comma delimited.
908
- * @param {number} [startPositionTicks] The starting position of the first item.
909
- * @param {string} [mediaSourceId] Optional. The media source id.
910
- * @param {number} [audioStreamIndex] Optional. The index of the audio stream to play.
911
- * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to play.
912
- * @param {number} [startIndex] Optional. The start index.
947
+ * @param {SessionApiPlayRequest} requestParameters Request parameters.
913
948
  * @param {*} [options] Override http request option.
914
949
  * @throws {RequiredError}
915
950
  */
916
- play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options) {
917
- return localVarFp.play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options).then((request) => request(axios, basePath));
951
+ play(requestParameters, options) {
952
+ return localVarFp.play(requestParameters.sessionId, requestParameters.playCommand, requestParameters.itemIds, requestParameters.startPositionTicks, requestParameters.mediaSourceId, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.startIndex, options).then((request) => request(axios, basePath));
918
953
  },
919
954
  /**
920
955
  *
921
956
  * @summary Updates capabilities for a device.
922
- * @param {string} [id] The session id.
923
- * @param {Array<MediaType>} [playableMediaTypes] A list of playable media types, comma delimited. Audio, Video, Book, Photo.
924
- * @param {Array<GeneralCommandType>} [supportedCommands] A list of supported remote control commands, comma delimited.
925
- * @param {boolean} [supportsMediaControl] Determines whether media can be played remotely..
926
- * @param {boolean} [supportsPersistentIdentifier] Determines whether the device supports a unique identifier.
957
+ * @param {SessionApiPostCapabilitiesRequest} requestParameters Request parameters.
927
958
  * @param {*} [options] Override http request option.
928
959
  * @throws {RequiredError}
929
960
  */
930
- postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options) {
931
- return localVarFp.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options).then((request) => request(axios, basePath));
961
+ postCapabilities(requestParameters = {}, options) {
962
+ return localVarFp.postCapabilities(requestParameters.id, requestParameters.playableMediaTypes, requestParameters.supportedCommands, requestParameters.supportsMediaControl, requestParameters.supportsPersistentIdentifier, options).then((request) => request(axios, basePath));
932
963
  },
933
964
  /**
934
965
  *
935
966
  * @summary Updates capabilities for a device.
936
- * @param {ClientCapabilitiesDto} clientCapabilitiesDto The MediaBrowser.Model.Session.ClientCapabilities.
937
- * @param {string} [id] The session id.
967
+ * @param {SessionApiPostFullCapabilitiesRequest} requestParameters Request parameters.
938
968
  * @param {*} [options] Override http request option.
939
969
  * @throws {RequiredError}
940
970
  */
941
- postFullCapabilities(clientCapabilitiesDto, id, options) {
942
- return localVarFp.postFullCapabilities(clientCapabilitiesDto, id, options).then((request) => request(axios, basePath));
971
+ postFullCapabilities(requestParameters, options) {
972
+ return localVarFp.postFullCapabilities(requestParameters.clientCapabilitiesDto, requestParameters.id, options).then((request) => request(axios, basePath));
943
973
  },
944
974
  /**
945
975
  *
946
976
  * @summary Removes an additional user from a session.
947
- * @param {string} sessionId The session id.
948
- * @param {string} userId The user id.
977
+ * @param {SessionApiRemoveUserFromSessionRequest} requestParameters Request parameters.
949
978
  * @param {*} [options] Override http request option.
950
979
  * @throws {RequiredError}
951
980
  */
952
- removeUserFromSession(sessionId, userId, options) {
953
- return localVarFp.removeUserFromSession(sessionId, userId, options).then((request) => request(axios, basePath));
981
+ removeUserFromSession(requestParameters, options) {
982
+ return localVarFp.removeUserFromSession(requestParameters.sessionId, requestParameters.userId, options).then((request) => request(axios, basePath));
954
983
  },
955
984
  /**
956
985
  *
@@ -964,70 +993,62 @@ const SessionApiFactory = function (configuration, basePath, axios) {
964
993
  /**
965
994
  *
966
995
  * @summary Reports that a session is viewing an item.
967
- * @param {string} itemId The item id.
968
- * @param {string} [sessionId] The session id.
996
+ * @param {SessionApiReportViewingRequest} requestParameters Request parameters.
969
997
  * @param {*} [options] Override http request option.
970
998
  * @throws {RequiredError}
971
999
  */
972
- reportViewing(itemId, sessionId, options) {
973
- return localVarFp.reportViewing(itemId, sessionId, options).then((request) => request(axios, basePath));
1000
+ reportViewing(requestParameters, options) {
1001
+ return localVarFp.reportViewing(requestParameters.itemId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
974
1002
  },
975
1003
  /**
976
1004
  *
977
1005
  * @summary Issues a full general command to a client.
978
- * @param {string} sessionId The session id.
979
- * @param {GeneralCommand} generalCommand The MediaBrowser.Model.Session.GeneralCommand.
1006
+ * @param {SessionApiSendFullGeneralCommandRequest} requestParameters Request parameters.
980
1007
  * @param {*} [options] Override http request option.
981
1008
  * @throws {RequiredError}
982
1009
  */
983
- sendFullGeneralCommand(sessionId, generalCommand, options) {
984
- return localVarFp.sendFullGeneralCommand(sessionId, generalCommand, options).then((request) => request(axios, basePath));
1010
+ sendFullGeneralCommand(requestParameters, options) {
1011
+ return localVarFp.sendFullGeneralCommand(requestParameters.sessionId, requestParameters.generalCommand, options).then((request) => request(axios, basePath));
985
1012
  },
986
1013
  /**
987
1014
  *
988
1015
  * @summary Issues a general command to a client.
989
- * @param {string} sessionId The session id.
990
- * @param {GeneralCommandType} command The command to send.
1016
+ * @param {SessionApiSendGeneralCommandRequest} requestParameters Request parameters.
991
1017
  * @param {*} [options] Override http request option.
992
1018
  * @throws {RequiredError}
993
1019
  */
994
- sendGeneralCommand(sessionId, command, options) {
995
- return localVarFp.sendGeneralCommand(sessionId, command, options).then((request) => request(axios, basePath));
1020
+ sendGeneralCommand(requestParameters, options) {
1021
+ return localVarFp.sendGeneralCommand(requestParameters.sessionId, requestParameters.command, options).then((request) => request(axios, basePath));
996
1022
  },
997
1023
  /**
998
1024
  *
999
1025
  * @summary Issues a command to a client to display a message to the user.
1000
- * @param {string} sessionId The session id.
1001
- * @param {MessageCommand} messageCommand The MediaBrowser.Model.Session.MessageCommand object containing Header, Message Text, and TimeoutMs.
1026
+ * @param {SessionApiSendMessageCommandRequest} requestParameters Request parameters.
1002
1027
  * @param {*} [options] Override http request option.
1003
1028
  * @throws {RequiredError}
1004
1029
  */
1005
- sendMessageCommand(sessionId, messageCommand, options) {
1006
- return localVarFp.sendMessageCommand(sessionId, messageCommand, options).then((request) => request(axios, basePath));
1030
+ sendMessageCommand(requestParameters, options) {
1031
+ return localVarFp.sendMessageCommand(requestParameters.sessionId, requestParameters.messageCommand, options).then((request) => request(axios, basePath));
1007
1032
  },
1008
1033
  /**
1009
1034
  *
1010
1035
  * @summary Issues a playstate command to a client.
1011
- * @param {string} sessionId The session id.
1012
- * @param {PlaystateCommand} command The MediaBrowser.Model.Session.PlaystateCommand.
1013
- * @param {number} [seekPositionTicks] The optional position ticks.
1014
- * @param {string} [controllingUserId] The optional controlling user id.
1036
+ * @param {SessionApiSendPlaystateCommandRequest} requestParameters Request parameters.
1015
1037
  * @param {*} [options] Override http request option.
1016
1038
  * @throws {RequiredError}
1017
1039
  */
1018
- sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options) {
1019
- return localVarFp.sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options).then((request) => request(axios, basePath));
1040
+ sendPlaystateCommand(requestParameters, options) {
1041
+ return localVarFp.sendPlaystateCommand(requestParameters.sessionId, requestParameters.command, requestParameters.seekPositionTicks, requestParameters.controllingUserId, options).then((request) => request(axios, basePath));
1020
1042
  },
1021
1043
  /**
1022
1044
  *
1023
1045
  * @summary Issues a system command to a client.
1024
- * @param {string} sessionId The session id.
1025
- * @param {GeneralCommandType} command The command to send.
1046
+ * @param {SessionApiSendSystemCommandRequest} requestParameters Request parameters.
1026
1047
  * @param {*} [options] Override http request option.
1027
1048
  * @throws {RequiredError}
1028
1049
  */
1029
- sendSystemCommand(sessionId, command, options) {
1030
- return localVarFp.sendSystemCommand(sessionId, command, options).then((request) => request(axios, basePath));
1050
+ sendSystemCommand(requestParameters, options) {
1051
+ return localVarFp.sendSystemCommand(requestParameters.sessionId, requestParameters.command, options).then((request) => request(axios, basePath));
1031
1052
  },
1032
1053
  };
1033
1054
  };