@jellyfin/sdk 0.13.0 → 1.0.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 (760) hide show
  1. package/.nvmrc +1 -0
  2. package/.openapi-generator-ignore +2 -0
  3. package/CHANGELOG.md +24 -2
  4. package/README.md +52 -27
  5. package/eslint.config.mjs +118 -0
  6. package/lib/api.d.ts +30 -8
  7. package/lib/api.js +79 -14
  8. package/lib/constants.d.ts +11 -0
  9. package/lib/constants.js +13 -0
  10. package/lib/generated-client/api/{artists-api.d.ts → artist-api.d.ts} +38 -173
  11. package/lib/generated-client/api/{artists-api.js → artist-api.js} +39 -33
  12. package/lib/generated-client/api/audio-api.d.ts +295 -450
  13. package/lib/generated-client/api/audio-api.js +332 -64
  14. package/lib/generated-client/api/authentication-api.d.ts +517 -0
  15. package/lib/generated-client/api/authentication-api.js +870 -0
  16. package/lib/generated-client/api/backup-api.d.ts +0 -22
  17. package/lib/generated-client/api/backup-api.js +5 -11
  18. package/lib/generated-client/api/branding-api.d.ts +0 -9
  19. package/lib/generated-client/api/branding-api.js +4 -10
  20. package/lib/generated-client/api/{channels-api.d.ts → channel-api.d.ts} +32 -95
  21. package/lib/generated-client/api/{channels-api.js → channel-api.js} +35 -41
  22. package/lib/generated-client/api/collection-api.d.ts +0 -31
  23. package/lib/generated-client/api/collection-api.js +4 -10
  24. package/lib/generated-client/api/{devices-api.d.ts → device-api.d.ts} +48 -81
  25. package/lib/generated-client/api/{devices-api.js → device-api.js} +46 -54
  26. package/lib/generated-client/api/{display-preferences-api.d.ts → display-preference-api.d.ts} +20 -46
  27. package/lib/generated-client/api/{display-preferences-api.js → display-preference-api.js} +22 -28
  28. package/lib/generated-client/api/environment-api.d.ts +0 -60
  29. package/lib/generated-client/api/environment-api.js +6 -75
  30. package/lib/generated-client/api/filter-api.d.ts +0 -40
  31. package/lib/generated-client/api/filter-api.js +3 -9
  32. package/lib/generated-client/api/{genres-api.d.ts → genre-api.d.ts} +20 -72
  33. package/lib/generated-client/api/{genres-api.js → genre-api.js} +22 -28
  34. package/lib/generated-client/api/image-api.d.ts +4 -1007
  35. package/lib/generated-client/api/image-api.js +42 -48
  36. package/lib/generated-client/api/instant-mix-api.d.ts +8 -245
  37. package/lib/generated-client/api/instant-mix-api.js +16 -121
  38. package/lib/generated-client/api/item-lookup-api.d.ts +0 -65
  39. package/lib/generated-client/api/item-lookup-api.js +12 -18
  40. package/lib/generated-client/api/item-update-api.d.ts +0 -25
  41. package/lib/generated-client/api/item-update-api.js +4 -10
  42. package/lib/generated-client/api/library-api.d.ts +1239 -327
  43. package/lib/generated-client/api/library-api.js +1307 -95
  44. package/lib/generated-client/api/library-structure-api.d.ts +0 -62
  45. package/lib/generated-client/api/library-structure-api.js +9 -15
  46. package/lib/generated-client/api/live-tv-api.d.ts +0 -622
  47. package/lib/generated-client/api/live-tv-api.js +39 -320
  48. package/lib/generated-client/api/localization-api.d.ts +0 -10
  49. package/lib/generated-client/api/localization-api.js +5 -11
  50. package/lib/generated-client/api/{lyrics-api.d.ts → lyric-api.d.ts} +44 -89
  51. package/lib/generated-client/api/{lyrics-api.js → lyric-api.js} +42 -48
  52. package/lib/generated-client/api/media-info-api.d.ts +4 -91
  53. package/lib/generated-client/api/media-info-api.js +10 -16
  54. package/lib/generated-client/api/{media-segments-api.d.ts → media-segment-api.d.ts} +14 -27
  55. package/lib/generated-client/api/{media-segments-api.js → media-segment-api.js} +17 -23
  56. package/lib/generated-client/api/{movies-api.d.ts → movie-api.d.ts} +14 -33
  57. package/lib/generated-client/api/{movies-api.js → movie-api.js} +17 -23
  58. package/lib/generated-client/api/music-genre-api.d.ts +85 -0
  59. package/lib/generated-client/api/music-genre-api.js +121 -0
  60. package/lib/generated-client/api/{persons-api.d.ts → person-api.d.ts} +52 -64
  61. package/lib/generated-client/api/{persons-api.js → person-api.js} +51 -32
  62. package/lib/generated-client/api/{playlists-api.d.ts → playlist-api.d.ts} +86 -185
  63. package/lib/generated-client/api/{playlists-api.js → playlist-api.js} +80 -81
  64. package/lib/generated-client/api/plugin-api.d.ts +743 -0
  65. package/lib/generated-client/api/plugin-api.js +1186 -0
  66. package/lib/generated-client/api/remote-image-api.d.ts +0 -35
  67. package/lib/generated-client/api/remote-image-api.js +4 -10
  68. package/lib/generated-client/api/{scheduled-tasks-api.d.ts → scheduled-task-api.d.ts} +38 -73
  69. package/lib/generated-client/api/{scheduled-tasks-api.js → scheduled-task-api.js} +37 -43
  70. package/lib/generated-client/api/search-api.d.ts +0 -45
  71. package/lib/generated-client/api/search-api.js +2 -8
  72. package/lib/generated-client/api/session-api.d.ts +163 -181
  73. package/lib/generated-client/api/session-api.js +262 -123
  74. package/lib/generated-client/api/{tv-shows-api.d.ts → show-api.d.ts} +34 -156
  75. package/lib/generated-client/api/{tv-shows-api.js → show-api.js} +36 -47
  76. package/lib/generated-client/api/startup-api.d.ts +20 -25
  77. package/lib/generated-client/api/startup-api.js +28 -14
  78. package/lib/generated-client/api/{studios-api.d.ts → studio-api.d.ts} +20 -70
  79. package/lib/generated-client/api/{studios-api.js → studio-api.js} +22 -28
  80. package/lib/generated-client/api/subtitle-api.d.ts +0 -114
  81. package/lib/generated-client/api/subtitle-api.js +11 -17
  82. package/lib/generated-client/api/{suggestions-api.d.ts → suggestion-api.d.ts} +14 -35
  83. package/lib/generated-client/api/{suggestions-api.js → suggestion-api.js} +17 -23
  84. package/lib/generated-client/api/sync-play-api.d.ts +0 -96
  85. package/lib/generated-client/api/sync-play-api.js +23 -29
  86. package/lib/generated-client/api/system-api.d.ts +420 -20
  87. package/lib/generated-client/api/system-api.js +659 -18
  88. package/lib/generated-client/api/{trailers-api.d.ts → trailer-api.d.ts} +32 -193
  89. package/lib/generated-client/api/{trailers-api.js → trailer-api.js} +35 -27
  90. package/lib/generated-client/api/{trickplay-api.d.ts → trick-play-api.d.ts} +20 -46
  91. package/lib/generated-client/api/{trickplay-api.js → trick-play-api.js} +22 -28
  92. package/lib/generated-client/api/user-api.d.ts +0 -249
  93. package/lib/generated-client/api/user-api.js +11 -277
  94. package/lib/generated-client/api/user-data-api.d.ts +429 -0
  95. package/lib/generated-client/api/{user-library-api.js → user-data-api.js} +149 -324
  96. package/lib/generated-client/api/{user-views-api.d.ts → user-view-api.d.ts} +20 -42
  97. package/lib/generated-client/api/{user-views-api.js → user-view-api.js} +22 -28
  98. package/lib/generated-client/api/{videos-api.d.ts → video-api.d.ts} +111 -533
  99. package/lib/generated-client/api/{videos-api.js → video-api.js} +141 -101
  100. package/lib/generated-client/api/{years-api.d.ts → year-api.d.ts} +20 -66
  101. package/lib/generated-client/api/{years-api.js → year-api.js} +22 -28
  102. package/lib/generated-client/api.d.ts +23 -38
  103. package/lib/generated-client/base.d.ts +0 -24
  104. package/lib/generated-client/base.js +0 -15
  105. package/lib/generated-client/common.d.ts +4 -35
  106. package/lib/generated-client/common.js +15 -26
  107. package/lib/generated-client/configuration.d.ts +24 -17
  108. package/lib/generated-client/configuration.js +8 -2
  109. package/lib/generated-client/index.js +25 -39
  110. package/lib/generated-client/models/access-schedule.d.ts +0 -15
  111. package/lib/generated-client/models/activity-log-entry-message.d.ts +0 -11
  112. package/lib/generated-client/models/activity-log-entry-query-result.d.ts +0 -8
  113. package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -10
  114. package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +0 -7
  115. package/lib/generated-client/models/activity-log-entry.d.ts +0 -25
  116. package/lib/generated-client/models/activity-log-sort-by.d.ts +23 -0
  117. package/lib/generated-client/models/{architecture.d.ts → activity-log-sort-by.js} +13 -11
  118. package/lib/generated-client/models/add-virtual-folder-dto.d.ts +0 -7
  119. package/lib/generated-client/models/album-info-remote-search-query.d.ts +0 -19
  120. package/lib/generated-client/models/album-info.d.ts +1 -49
  121. package/lib/generated-client/models/all-theme-media-result.d.ts +0 -20
  122. package/lib/generated-client/models/artist-info-remote-search-query.d.ts +0 -19
  123. package/lib/generated-client/models/artist-info.d.ts +0 -44
  124. package/lib/generated-client/models/audio-spatial-format.d.ts +0 -2
  125. package/lib/generated-client/models/audio-spatial-format.js +0 -2
  126. package/lib/generated-client/models/authenticate-user-by-name.d.ts +0 -6
  127. package/lib/generated-client/models/authentication-info-query-result.d.ts +0 -8
  128. package/lib/generated-client/models/authentication-info.d.ts +0 -35
  129. package/lib/generated-client/models/authentication-result.d.ts +0 -16
  130. package/lib/generated-client/models/backup-manifest-dto.d.ts +5 -20
  131. package/lib/generated-client/models/backup-options-dto.d.ts +0 -10
  132. package/lib/generated-client/models/backup-restore-request-dto.d.ts +1 -5
  133. package/lib/generated-client/models/base-item-dto-image-blur-hashes.d.ts +14 -81
  134. package/lib/generated-client/models/base-item-dto-query-result.d.ts +0 -8
  135. package/lib/generated-client/models/base-item-dto.d.ts +6 -456
  136. package/lib/generated-client/models/base-item-kind.d.ts +0 -2
  137. package/lib/generated-client/models/base-item-kind.js +0 -2
  138. package/lib/generated-client/models/base-item-person-image-blur-hashes.d.ts +13 -80
  139. package/lib/generated-client/models/base-item-person.d.ts +0 -20
  140. package/lib/generated-client/models/book-info-remote-search-query.d.ts +0 -19
  141. package/lib/generated-client/models/book-info.d.ts +2 -40
  142. package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +0 -19
  143. package/lib/generated-client/models/box-set-info.d.ts +1 -37
  144. package/lib/generated-client/models/branding-options-dto.d.ts +1 -9
  145. package/lib/generated-client/models/buffer-request-dto.d.ts +0 -10
  146. package/lib/generated-client/models/cast-receiver-application.d.ts +2 -8
  147. package/lib/generated-client/models/channel-features.d.ts +0 -29
  148. package/lib/generated-client/models/channel-item-sort-field.d.ts +0 -5
  149. package/lib/generated-client/models/channel-item-sort-field.js +0 -5
  150. package/lib/generated-client/models/channel-mapping-options-dto.d.ts +2 -12
  151. package/lib/generated-client/models/channel-media-content-type.d.ts +0 -5
  152. package/lib/generated-client/models/channel-media-content-type.js +0 -5
  153. package/lib/generated-client/models/channel-media-type.d.ts +0 -5
  154. package/lib/generated-client/models/channel-media-type.js +0 -5
  155. package/lib/generated-client/models/channel-type.d.ts +0 -2
  156. package/lib/generated-client/models/channel-type.js +0 -2
  157. package/lib/generated-client/models/chapter-info.d.ts +0 -18
  158. package/lib/generated-client/models/client-capabilities-dto.d.ts +0 -19
  159. package/lib/generated-client/models/client-log-document-response-dto.d.ts +0 -4
  160. package/lib/generated-client/models/codec-profile.d.ts +0 -17
  161. package/lib/generated-client/models/codec-type.d.ts +1 -3
  162. package/lib/generated-client/models/codec-type.js +1 -3
  163. package/lib/generated-client/models/collection-creation-result.d.ts +0 -10
  164. package/lib/generated-client/models/collection-type-options.d.ts +0 -2
  165. package/lib/generated-client/models/collection-type-options.js +0 -2
  166. package/lib/generated-client/models/collection-type.d.ts +0 -2
  167. package/lib/generated-client/models/collection-type.js +0 -2
  168. package/lib/generated-client/models/configuration-page-info.d.ts +0 -14
  169. package/lib/generated-client/models/container-profile.d.ts +0 -13
  170. package/lib/generated-client/models/country-info.d.ts +0 -10
  171. package/lib/generated-client/models/create-playlist-dto.d.ts +1 -18
  172. package/lib/generated-client/models/create-user-by-name.d.ts +0 -6
  173. package/lib/generated-client/models/culture-dto.d.ts +0 -15
  174. package/lib/generated-client/models/custom-database-option.d.ts +2 -8
  175. package/lib/generated-client/models/custom-database-options.d.ts +3 -13
  176. package/lib/generated-client/models/database-configuration-options.d.ts +1 -15
  177. package/lib/generated-client/models/database-locking-behavior-types.d.ts +0 -2
  178. package/lib/generated-client/models/database-locking-behavior-types.js +0 -2
  179. package/lib/generated-client/models/day-of-week.d.ts +0 -5
  180. package/lib/generated-client/models/day-of-week.js +0 -5
  181. package/lib/generated-client/models/day-pattern.d.ts +1 -3
  182. package/lib/generated-client/models/day-pattern.js +1 -3
  183. package/lib/generated-client/models/default-directory-browser-info-dto.d.ts +0 -4
  184. package/lib/generated-client/models/deinterlace-method.d.ts +0 -2
  185. package/lib/generated-client/models/deinterlace-method.js +0 -2
  186. package/lib/generated-client/models/device-info-dto-query-result.d.ts +0 -8
  187. package/lib/generated-client/models/device-info-dto.d.ts +0 -27
  188. package/lib/generated-client/models/device-options-dto.d.ts +0 -8
  189. package/lib/generated-client/models/device-profile.d.ts +1 -25
  190. package/lib/generated-client/models/direct-play-profile.d.ts +0 -13
  191. package/lib/generated-client/models/display-preferences-dto.d.ts +0 -36
  192. package/lib/generated-client/models/dlna-profile-type.d.ts +0 -5
  193. package/lib/generated-client/models/dlna-profile-type.js +0 -5
  194. package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +0 -2
  195. package/lib/generated-client/models/down-mix-stereo-algorithms.js +0 -2
  196. package/lib/generated-client/models/dynamic-day-of-week.d.ts +0 -2
  197. package/lib/generated-client/models/dynamic-day-of-week.js +0 -2
  198. package/lib/generated-client/models/embedded-subtitle-options.d.ts +0 -2
  199. package/lib/generated-client/models/embedded-subtitle-options.js +0 -2
  200. package/lib/generated-client/models/encoder-preset.d.ts +0 -2
  201. package/lib/generated-client/models/encoder-preset.js +0 -2
  202. package/lib/generated-client/models/encoding-context.d.ts +1 -3
  203. package/lib/generated-client/models/encoding-context.js +1 -3
  204. package/lib/generated-client/models/encoding-options.d.ts +6 -117
  205. package/lib/generated-client/models/end-point-info.d.ts +0 -15
  206. package/lib/generated-client/models/external-id-info.d.ts +0 -11
  207. package/lib/generated-client/models/external-id-media-type.d.ts +0 -2
  208. package/lib/generated-client/models/external-id-media-type.js +0 -2
  209. package/lib/generated-client/models/external-url.d.ts +0 -9
  210. package/lib/generated-client/models/extra-type.d.ts +0 -5
  211. package/lib/generated-client/models/extra-type.js +0 -5
  212. package/lib/generated-client/models/file-system-entry-info.d.ts +0 -11
  213. package/lib/generated-client/models/file-system-entry-type.d.ts +0 -2
  214. package/lib/generated-client/models/file-system-entry-type.js +0 -2
  215. package/lib/generated-client/models/folder-storage-dto.d.ts +1 -13
  216. package/lib/generated-client/models/font-file.d.ts +0 -10
  217. package/lib/generated-client/models/force-keep-alive-message.d.ts +0 -11
  218. package/lib/generated-client/models/forgot-password-action.d.ts +0 -5
  219. package/lib/generated-client/models/forgot-password-action.js +0 -5
  220. package/lib/generated-client/models/forgot-password-dto.d.ts +0 -4
  221. package/lib/generated-client/models/forgot-password-pin-dto.d.ts +0 -4
  222. package/lib/generated-client/models/forgot-password-result.d.ts +0 -14
  223. package/lib/generated-client/models/general-command-message.d.ts +0 -14
  224. package/lib/generated-client/models/general-command-type.d.ts +0 -2
  225. package/lib/generated-client/models/general-command-type.js +0 -2
  226. package/lib/generated-client/models/general-command.d.ts +1 -21
  227. package/lib/generated-client/models/get-programs-dto.d.ts +0 -56
  228. package/lib/generated-client/models/group-info-dto.d.ts +0 -15
  229. package/lib/generated-client/models/group-queue-mode.d.ts +0 -2
  230. package/lib/generated-client/models/group-queue-mode.js +0 -2
  231. package/lib/generated-client/models/group-repeat-mode.d.ts +0 -2
  232. package/lib/generated-client/models/group-repeat-mode.js +0 -2
  233. package/lib/generated-client/models/group-shuffle-mode.d.ts +0 -2
  234. package/lib/generated-client/models/group-shuffle-mode.js +0 -2
  235. package/lib/generated-client/models/group-state-type.d.ts +0 -2
  236. package/lib/generated-client/models/group-state-type.js +0 -2
  237. package/lib/generated-client/models/group-state-update.d.ts +0 -12
  238. package/lib/generated-client/models/group-update-type.d.ts +0 -2
  239. package/lib/generated-client/models/group-update-type.js +0 -2
  240. package/lib/generated-client/models/group-update.d.ts +0 -1
  241. package/lib/generated-client/models/guide-info.d.ts +0 -9
  242. package/lib/generated-client/models/hardware-acceleration-type.d.ts +0 -2
  243. package/lib/generated-client/models/hardware-acceleration-type.js +0 -2
  244. package/lib/generated-client/models/{notification-level.d.ts → hls-audio-seek-strategy.d.ts} +5 -8
  245. package/lib/generated-client/models/{transcoding-info.js → hls-audio-seek-strategy.js} +8 -2
  246. package/lib/generated-client/models/ignore-wait-request-dto.d.ts +0 -4
  247. package/lib/generated-client/models/image-format.d.ts +0 -2
  248. package/lib/generated-client/models/image-format.js +0 -2
  249. package/lib/generated-client/models/image-info.d.ts +0 -21
  250. package/lib/generated-client/models/image-option.d.ts +0 -14
  251. package/lib/generated-client/models/image-orientation.d.ts +0 -5
  252. package/lib/generated-client/models/image-orientation.js +0 -5
  253. package/lib/generated-client/models/image-provider-info.d.ts +0 -6
  254. package/lib/generated-client/models/image-resolution.d.ts +0 -2
  255. package/lib/generated-client/models/image-resolution.js +0 -2
  256. package/lib/generated-client/models/image-saving-convention.d.ts +1 -3
  257. package/lib/generated-client/models/image-saving-convention.js +1 -3
  258. package/lib/generated-client/models/image-type.d.ts +0 -2
  259. package/lib/generated-client/models/image-type.js +0 -2
  260. package/lib/generated-client/models/inbound-keep-alive-message.d.ts +0 -7
  261. package/lib/generated-client/models/inbound-web-socket-message.d.ts +0 -1
  262. package/lib/generated-client/models/index.d.ts +2 -2
  263. package/lib/generated-client/models/index.js +2 -1
  264. package/lib/generated-client/models/installation-info.d.ts +0 -19
  265. package/lib/generated-client/models/iplugin.d.ts +0 -16
  266. package/lib/generated-client/models/iso-type.d.ts +0 -2
  267. package/lib/generated-client/models/iso-type.js +0 -2
  268. package/lib/generated-client/models/item-counts.d.ts +0 -26
  269. package/lib/generated-client/models/item-fields.d.ts +0 -2
  270. package/lib/generated-client/models/item-fields.js +0 -2
  271. package/lib/generated-client/models/item-filter.d.ts +0 -2
  272. package/lib/generated-client/models/item-filter.js +0 -2
  273. package/lib/generated-client/models/item-sort-by.d.ts +0 -2
  274. package/lib/generated-client/models/item-sort-by.js +0 -2
  275. package/lib/generated-client/models/join-group-request-dto.d.ts +0 -4
  276. package/lib/generated-client/models/keep-until.d.ts +0 -5
  277. package/lib/generated-client/models/keep-until.js +0 -5
  278. package/lib/generated-client/models/library-changed-message.d.ts +0 -14
  279. package/lib/generated-client/models/library-option-info-dto.d.ts +0 -6
  280. package/lib/generated-client/models/library-options-result-dto.d.ts +0 -14
  281. package/lib/generated-client/models/library-options.d.ts +0 -207
  282. package/lib/generated-client/models/library-storage-dto.d.ts +3 -11
  283. package/lib/generated-client/models/library-type-options-dto.d.ts +4 -12
  284. package/lib/generated-client/models/library-update-info.d.ts +0 -22
  285. package/lib/generated-client/models/listings-provider-info.d.ts +0 -95
  286. package/lib/generated-client/models/live-stream-response.d.ts +0 -10
  287. package/lib/generated-client/models/live-tv-info.d.ts +0 -11
  288. package/lib/generated-client/models/live-tv-options.d.ts +0 -80
  289. package/lib/generated-client/models/live-tv-service-info.d.ts +0 -24
  290. package/lib/generated-client/models/live-tv-service-status.d.ts +1 -3
  291. package/lib/generated-client/models/live-tv-service-status.js +1 -3
  292. package/lib/generated-client/models/localization-option.d.ts +0 -15
  293. package/lib/generated-client/models/location-type.d.ts +0 -2
  294. package/lib/generated-client/models/location-type.js +0 -2
  295. package/lib/generated-client/models/log-file.d.ts +1 -14
  296. package/lib/generated-client/models/log-level.d.ts +0 -5
  297. package/lib/generated-client/models/log-level.js +0 -5
  298. package/lib/generated-client/models/lyric-dto.d.ts +0 -9
  299. package/lib/generated-client/models/lyric-line-cue.d.ts +0 -10
  300. package/lib/generated-client/models/lyric-line.d.ts +0 -8
  301. package/lib/generated-client/models/lyric-metadata.d.ts +0 -22
  302. package/lib/generated-client/models/media-attachment.d.ts +0 -16
  303. package/lib/generated-client/models/media-path-dto.d.ts +0 -11
  304. package/lib/generated-client/models/media-path-info.d.ts +0 -10
  305. package/lib/generated-client/models/media-protocol.d.ts +0 -5
  306. package/lib/generated-client/models/media-protocol.js +0 -5
  307. package/lib/generated-client/models/media-segment-dto-query-result.d.ts +0 -8
  308. package/lib/generated-client/models/media-segment-dto.d.ts +0 -15
  309. package/lib/generated-client/models/media-segment-type.d.ts +0 -2
  310. package/lib/generated-client/models/media-segment-type.js +0 -2
  311. package/lib/generated-client/models/media-source-info.d.ts +1 -228
  312. package/lib/generated-client/models/media-source-type.d.ts +1 -3
  313. package/lib/generated-client/models/media-source-type.js +1 -3
  314. package/lib/generated-client/models/media-stream-protocol.d.ts +1 -3
  315. package/lib/generated-client/models/media-stream-protocol.js +1 -3
  316. package/lib/generated-client/models/media-stream-type.d.ts +0 -2
  317. package/lib/generated-client/models/media-stream-type.js +0 -2
  318. package/lib/generated-client/models/media-stream.d.ts +7 -176
  319. package/lib/generated-client/models/media-type.d.ts +0 -2
  320. package/lib/generated-client/models/media-type.js +0 -2
  321. package/lib/generated-client/models/media-update-info-dto.d.ts +0 -4
  322. package/lib/generated-client/models/media-update-info-path-dto.d.ts +1 -7
  323. package/lib/generated-client/models/media-url.d.ts +0 -15
  324. package/lib/generated-client/models/message-command.d.ts +4 -12
  325. package/lib/generated-client/models/metadata-configuration.d.ts +0 -10
  326. package/lib/generated-client/models/metadata-editor-info.d.ts +0 -17
  327. package/lib/generated-client/models/metadata-field.d.ts +0 -2
  328. package/lib/generated-client/models/metadata-field.js +0 -2
  329. package/lib/generated-client/models/metadata-options.d.ts +0 -37
  330. package/lib/generated-client/models/metadata-refresh-mode.d.ts +0 -5
  331. package/lib/generated-client/models/metadata-refresh-mode.js +0 -5
  332. package/lib/generated-client/models/move-playlist-item-request-dto.d.ts +0 -6
  333. package/lib/generated-client/models/movie-info-remote-search-query.d.ts +0 -19
  334. package/lib/generated-client/models/movie-info.d.ts +1 -37
  335. package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +0 -19
  336. package/lib/generated-client/models/music-video-info.d.ts +0 -44
  337. package/lib/generated-client/models/name-guid-pair.d.ts +0 -15
  338. package/lib/generated-client/models/name-id-pair.d.ts +0 -9
  339. package/lib/generated-client/models/name-value-pair.d.ts +0 -9
  340. package/lib/generated-client/models/network-configuration.d.ts +1 -49
  341. package/lib/generated-client/models/new-group-request-dto.d.ts +0 -4
  342. package/lib/generated-client/models/next-item-request-dto.d.ts +0 -4
  343. package/lib/generated-client/models/open-live-stream-dto.d.ts +0 -33
  344. package/lib/generated-client/models/outbound-keep-alive-message.d.ts +0 -9
  345. package/lib/generated-client/models/outbound-web-socket-message.d.ts +0 -1
  346. package/lib/generated-client/models/package-info.d.ts +1 -19
  347. package/lib/generated-client/models/parental-rating-score.d.ts +0 -6
  348. package/lib/generated-client/models/parental-rating.d.ts +0 -11
  349. package/lib/generated-client/models/path-substitution.d.ts +0 -6
  350. package/lib/generated-client/models/person-kind.d.ts +1 -2
  351. package/lib/generated-client/models/person-kind.js +2 -3
  352. package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +0 -19
  353. package/lib/generated-client/models/person-lookup-info.d.ts +1 -37
  354. package/lib/generated-client/models/pin-redeem-result.d.ts +0 -9
  355. package/lib/generated-client/models/ping-request-dto.d.ts +0 -4
  356. package/lib/generated-client/models/play-access.d.ts +1 -3
  357. package/lib/generated-client/models/play-access.js +1 -3
  358. package/lib/generated-client/models/play-command.d.ts +0 -2
  359. package/lib/generated-client/models/play-command.js +0 -2
  360. package/lib/generated-client/models/play-message.d.ts +0 -14
  361. package/lib/generated-client/models/play-method.d.ts +1 -3
  362. package/lib/generated-client/models/play-method.js +1 -3
  363. package/lib/generated-client/models/play-queue-update-reason.d.ts +0 -2
  364. package/lib/generated-client/models/play-queue-update-reason.js +0 -2
  365. package/lib/generated-client/models/play-queue-update.d.ts +0 -27
  366. package/lib/generated-client/models/play-request-dto.d.ts +0 -8
  367. package/lib/generated-client/models/play-request.d.ts +0 -33
  368. package/lib/generated-client/models/playback-error-code.d.ts +1 -3
  369. package/lib/generated-client/models/playback-error-code.js +1 -3
  370. package/lib/generated-client/models/playback-info-dto.d.ts +0 -37
  371. package/lib/generated-client/models/playback-info-response.d.ts +0 -11
  372. package/lib/generated-client/models/playback-order.d.ts +0 -2
  373. package/lib/generated-client/models/playback-order.js +0 -2
  374. package/lib/generated-client/models/playback-progress-info.d.ts +0 -71
  375. package/lib/generated-client/models/playback-request-type.d.ts +0 -2
  376. package/lib/generated-client/models/playback-request-type.js +0 -2
  377. package/lib/generated-client/models/playback-start-info.d.ts +0 -71
  378. package/lib/generated-client/models/playback-stop-info.d.ts +0 -36
  379. package/lib/generated-client/models/player-state-info.d.ts +0 -38
  380. package/lib/generated-client/models/playlist-creation-result.d.ts +0 -10
  381. package/lib/generated-client/models/playlist-dto.d.ts +2 -10
  382. package/lib/generated-client/models/playlist-user-permissions.d.ts +0 -6
  383. package/lib/generated-client/models/playstate-command.d.ts +0 -2
  384. package/lib/generated-client/models/playstate-command.js +0 -2
  385. package/lib/generated-client/models/playstate-message.d.ts +0 -14
  386. package/lib/generated-client/models/playstate-request.d.ts +2 -13
  387. package/lib/generated-client/models/plugin-info.d.ts +0 -21
  388. package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +0 -14
  389. package/lib/generated-client/models/plugin-installation-completed-message.d.ts +0 -14
  390. package/lib/generated-client/models/plugin-installation-failed-message.d.ts +0 -14
  391. package/lib/generated-client/models/plugin-installing-message.d.ts +0 -14
  392. package/lib/generated-client/models/plugin-status.d.ts +0 -2
  393. package/lib/generated-client/models/plugin-status.js +0 -2
  394. package/lib/generated-client/models/plugin-uninstalled-message.d.ts +0 -14
  395. package/lib/generated-client/models/previous-item-request-dto.d.ts +0 -4
  396. package/lib/generated-client/models/problem-details.d.ts +0 -30
  397. package/lib/generated-client/models/process-priority-class.d.ts +0 -5
  398. package/lib/generated-client/models/process-priority-class.js +0 -5
  399. package/lib/generated-client/models/profile-condition-type.d.ts +0 -5
  400. package/lib/generated-client/models/profile-condition-type.js +0 -5
  401. package/lib/generated-client/models/profile-condition-value.d.ts +1 -5
  402. package/lib/generated-client/models/profile-condition-value.js +2 -6
  403. package/lib/generated-client/models/profile-condition.d.ts +0 -25
  404. package/lib/generated-client/models/program-audio.d.ts +0 -5
  405. package/lib/generated-client/models/program-audio.js +0 -5
  406. package/lib/generated-client/models/public-system-info.d.ts +0 -19
  407. package/lib/generated-client/models/query-filters-legacy.d.ts +0 -25
  408. package/lib/generated-client/models/query-filters.d.ts +3 -15
  409. package/lib/generated-client/models/queue-item.d.ts +3 -9
  410. package/lib/generated-client/models/queue-request-dto.d.ts +0 -9
  411. package/lib/generated-client/models/quick-connect-dto.d.ts +0 -4
  412. package/lib/generated-client/models/quick-connect-result.d.ts +0 -18
  413. package/lib/generated-client/models/rating-type.d.ts +1 -3
  414. package/lib/generated-client/models/rating-type.js +1 -3
  415. package/lib/generated-client/models/ready-request-dto.d.ts +0 -10
  416. package/lib/generated-client/models/recommendation-dto.d.ts +0 -25
  417. package/lib/generated-client/models/recommendation-type.d.ts +0 -5
  418. package/lib/generated-client/models/recommendation-type.js +0 -5
  419. package/lib/generated-client/models/recording-status.d.ts +0 -5
  420. package/lib/generated-client/models/recording-status.js +0 -5
  421. package/lib/generated-client/models/refresh-progress-message.d.ts +0 -11
  422. package/lib/generated-client/models/remote-image-info.d.ts +0 -28
  423. package/lib/generated-client/models/remote-image-result.d.ts +0 -8
  424. package/lib/generated-client/models/remote-lyric-info-dto.d.ts +3 -14
  425. package/lib/generated-client/models/remote-search-result.d.ts +3 -59
  426. package/lib/generated-client/models/remote-subtitle-info.d.ts +0 -85
  427. package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +0 -8
  428. package/lib/generated-client/models/repeat-mode.d.ts +1 -3
  429. package/lib/generated-client/models/repeat-mode.js +1 -3
  430. package/lib/generated-client/models/repository-info.d.ts +0 -8
  431. package/lib/generated-client/models/restart-required-message.d.ts +0 -9
  432. package/lib/generated-client/models/scheduled-task-ended-message.d.ts +0 -14
  433. package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +0 -11
  434. package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -10
  435. package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +0 -7
  436. package/lib/generated-client/models/scroll-direction.d.ts +0 -2
  437. package/lib/generated-client/models/scroll-direction.js +0 -2
  438. package/lib/generated-client/models/search-hint-result.d.ts +0 -6
  439. package/lib/generated-client/models/search-hint.d.ts +0 -66
  440. package/lib/generated-client/models/seek-request-dto.d.ts +0 -4
  441. package/lib/generated-client/models/send-command-type.d.ts +0 -2
  442. package/lib/generated-client/models/send-command-type.js +0 -2
  443. package/lib/generated-client/models/send-command.d.ts +0 -17
  444. package/lib/generated-client/models/series-info-remote-search-query.d.ts +0 -19
  445. package/lib/generated-client/models/series-info.d.ts +1 -37
  446. package/lib/generated-client/models/series-status.d.ts +0 -2
  447. package/lib/generated-client/models/series-status.js +0 -2
  448. package/lib/generated-client/models/series-timer-cancelled-message.d.ts +0 -14
  449. package/lib/generated-client/models/series-timer-created-message.d.ts +0 -14
  450. package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +0 -8
  451. package/lib/generated-client/models/series-timer-info-dto.d.ts +1 -91
  452. package/lib/generated-client/models/server-configuration.d.ts +3 -180
  453. package/lib/generated-client/models/server-discovery-info.d.ts +0 -10
  454. package/lib/generated-client/models/server-restarting-message.d.ts +0 -9
  455. package/lib/generated-client/models/server-shutting-down-message.d.ts +0 -9
  456. package/lib/generated-client/models/session-info-dto.d.ts +1 -80
  457. package/lib/generated-client/models/session-message-type.d.ts +0 -2
  458. package/lib/generated-client/models/session-message-type.js +0 -2
  459. package/lib/generated-client/models/session-user-info.d.ts +0 -6
  460. package/lib/generated-client/models/sessions-message.d.ts +0 -11
  461. package/lib/generated-client/models/sessions-start-message.d.ts +1 -10
  462. package/lib/generated-client/models/sessions-stop-message.d.ts +0 -7
  463. package/lib/generated-client/models/set-channel-mapping-dto.d.ts +0 -8
  464. package/lib/generated-client/models/set-playlist-item-request-dto.d.ts +0 -4
  465. package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +0 -7
  466. package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +0 -7
  467. package/lib/generated-client/models/song-info.d.ts +0 -54
  468. package/lib/generated-client/models/sort-order.d.ts +0 -2
  469. package/lib/generated-client/models/sort-order.js +0 -2
  470. package/lib/generated-client/models/special-view-option-dto.d.ts +0 -6
  471. package/lib/generated-client/models/startup-configuration-dto.d.ts +0 -10
  472. package/lib/generated-client/models/startup-remote-access-dto.d.ts +0 -11
  473. package/lib/generated-client/models/startup-user-dto.d.ts +0 -6
  474. package/lib/generated-client/models/subtitle-delivery-method.d.ts +0 -2
  475. package/lib/generated-client/models/subtitle-delivery-method.js +0 -2
  476. package/lib/generated-client/models/subtitle-playback-mode.d.ts +0 -2
  477. package/lib/generated-client/models/subtitle-playback-mode.js +0 -2
  478. package/lib/generated-client/models/subtitle-profile.d.ts +0 -15
  479. package/lib/generated-client/models/sync-play-command-message.d.ts +0 -14
  480. package/lib/generated-client/models/sync-play-group-does-not-exist-update.d.ts +0 -14
  481. package/lib/generated-client/models/sync-play-group-joined-update.d.ts +0 -17
  482. package/lib/generated-client/models/sync-play-group-left-update.d.ts +0 -14
  483. package/lib/generated-client/models/sync-play-group-update-message.d.ts +0 -14
  484. package/lib/generated-client/models/sync-play-library-access-denied-update.d.ts +0 -14
  485. package/lib/generated-client/models/sync-play-not-in-group-update.d.ts +0 -14
  486. package/lib/generated-client/models/sync-play-play-queue-update.d.ts +0 -17
  487. package/lib/generated-client/models/sync-play-queue-item.d.ts +0 -6
  488. package/lib/generated-client/models/sync-play-state-update.d.ts +0 -17
  489. package/lib/generated-client/models/sync-play-user-access-type.d.ts +0 -2
  490. package/lib/generated-client/models/sync-play-user-access-type.js +0 -2
  491. package/lib/generated-client/models/sync-play-user-joined-update.d.ts +0 -14
  492. package/lib/generated-client/models/sync-play-user-left-update.d.ts +0 -14
  493. package/lib/generated-client/models/system-info.d.ts +0 -62
  494. package/lib/generated-client/models/system-storage-dto.d.ts +8 -47
  495. package/lib/generated-client/models/task-completion-status.d.ts +0 -2
  496. package/lib/generated-client/models/task-completion-status.js +0 -2
  497. package/lib/generated-client/models/task-info.d.ts +0 -28
  498. package/lib/generated-client/models/task-result.d.ts +0 -21
  499. package/lib/generated-client/models/task-state.d.ts +0 -2
  500. package/lib/generated-client/models/task-state.js +0 -2
  501. package/lib/generated-client/models/task-trigger-info-type.d.ts +0 -2
  502. package/lib/generated-client/models/task-trigger-info-type.js +0 -2
  503. package/lib/generated-client/models/task-trigger-info.d.ts +0 -18
  504. package/lib/generated-client/models/theme-media-result.d.ts +0 -10
  505. package/lib/generated-client/models/timer-cancelled-message.d.ts +0 -14
  506. package/lib/generated-client/models/timer-created-message.d.ts +0 -14
  507. package/lib/generated-client/models/timer-event-info.d.ts +0 -15
  508. package/lib/generated-client/models/timer-info-dto-query-result.d.ts +0 -8
  509. package/lib/generated-client/models/timer-info-dto.d.ts +0 -76
  510. package/lib/generated-client/models/tonemapping-algorithm.d.ts +0 -2
  511. package/lib/generated-client/models/tonemapping-algorithm.js +0 -2
  512. package/lib/generated-client/models/tonemapping-mode.d.ts +0 -2
  513. package/lib/generated-client/models/tonemapping-mode.js +0 -2
  514. package/lib/generated-client/models/tonemapping-range.d.ts +0 -2
  515. package/lib/generated-client/models/tonemapping-range.js +0 -2
  516. package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +0 -19
  517. package/lib/generated-client/models/trailer-info.d.ts +1 -37
  518. package/lib/generated-client/models/transcode-reason.d.ts +1 -5
  519. package/lib/generated-client/models/transcode-reason.js +2 -6
  520. package/lib/generated-client/models/transcode-seek-info.d.ts +1 -3
  521. package/lib/generated-client/models/transcode-seek-info.js +1 -3
  522. package/lib/generated-client/models/transcoding-info.d.ts +2 -34
  523. package/lib/generated-client/models/transcoding-profile.d.ts +3 -50
  524. package/lib/generated-client/models/transport-stream-timestamp.d.ts +1 -3
  525. package/lib/generated-client/models/transport-stream-timestamp.js +1 -3
  526. package/lib/generated-client/models/trickplay-info-dto.d.ts +0 -16
  527. package/lib/generated-client/models/trickplay-options.d.ts +1 -33
  528. package/lib/generated-client/models/trickplay-scan-behavior.d.ts +0 -2
  529. package/lib/generated-client/models/trickplay-scan-behavior.js +0 -2
  530. package/lib/generated-client/models/tuner-channel-mapping.d.ts +0 -25
  531. package/lib/generated-client/models/tuner-host-info.d.ts +0 -85
  532. package/lib/generated-client/models/type-options.d.ts +2 -35
  533. package/lib/generated-client/models/unrated-item.d.ts +0 -2
  534. package/lib/generated-client/models/unrated-item.js +0 -2
  535. package/lib/generated-client/models/update-library-options-dto.d.ts +0 -9
  536. package/lib/generated-client/models/update-media-path-request-dto.d.ts +0 -9
  537. package/lib/generated-client/models/update-playlist-dto.d.ts +0 -10
  538. package/lib/generated-client/models/update-playlist-user-dto.d.ts +0 -4
  539. package/lib/generated-client/models/update-user-item-data-dto.d.ts +0 -24
  540. package/lib/generated-client/models/update-user-password.d.ts +0 -10
  541. package/lib/generated-client/models/upload-subtitle-dto.d.ts +0 -12
  542. package/lib/generated-client/models/user-configuration.d.ts +0 -70
  543. package/lib/generated-client/models/user-data-change-info.d.ts +1 -7
  544. package/lib/generated-client/models/user-data-changed-message.d.ts +0 -14
  545. package/lib/generated-client/models/user-deleted-message.d.ts +0 -11
  546. package/lib/generated-client/models/user-dto.d.ts +6 -40
  547. package/lib/generated-client/models/user-item-data-dto.d.ts +1 -25
  548. package/lib/generated-client/models/user-policy.d.ts +0 -201
  549. package/lib/generated-client/models/user-updated-message.d.ts +0 -14
  550. package/lib/generated-client/models/utc-time-response.d.ts +0 -6
  551. package/lib/generated-client/models/validate-path-dto.d.ts +0 -8
  552. package/lib/generated-client/models/version-info.d.ts +0 -20
  553. package/lib/generated-client/models/video-range-type.d.ts +0 -2
  554. package/lib/generated-client/models/video-range-type.js +0 -2
  555. package/lib/generated-client/models/video-range.d.ts +0 -2
  556. package/lib/generated-client/models/video-range.js +0 -2
  557. package/lib/generated-client/models/video-type.d.ts +0 -2
  558. package/lib/generated-client/models/video-type.js +0 -2
  559. package/lib/generated-client/models/video3-dformat.d.ts +0 -5
  560. package/lib/generated-client/models/video3-dformat.js +0 -5
  561. package/lib/generated-client/models/virtual-folder-info.d.ts +0 -30
  562. package/lib/generated-client/models/web-socket-message.d.ts +0 -1
  563. package/lib/generated-client/models/xbmc-metadata-options.d.ts +0 -30
  564. package/lib/index.js +1 -1
  565. package/lib/models/api/image-request-parameters.d.ts +1 -1
  566. package/lib/models/device-info.d.ts +1 -0
  567. package/lib/utils/api/{videos-api.d.ts → artist-api.d.ts} +2 -2
  568. package/lib/utils/api/{movies-api.js → artist-api.js} +4 -4
  569. package/lib/utils/api/authentication-api.d.ts +8 -0
  570. package/lib/utils/api/authentication-api.js +35 -0
  571. package/lib/utils/api/{tmdb-api.d.ts → backup-api.d.ts} +2 -2
  572. package/lib/utils/api/backup-api.js +13 -0
  573. package/lib/utils/api/{artists-api.d.ts → channel-api.d.ts} +2 -2
  574. package/lib/utils/api/{artists-api.js → channel-api.js} +4 -4
  575. package/lib/utils/api/{movies-api.d.ts → device-api.d.ts} +2 -2
  576. package/lib/utils/api/{lyrics-api.js → device-api.js} +4 -4
  577. package/lib/utils/api/display-preference-api.d.ts +8 -0
  578. package/lib/utils/api/display-preference-api.js +12 -0
  579. package/lib/utils/api/{items-api.d.ts → genre-api.d.ts} +2 -2
  580. package/lib/utils/api/{items-api.js → genre-api.js} +4 -4
  581. package/lib/utils/api/index.d.ts +24 -38
  582. package/lib/utils/api/index.js +24 -38
  583. package/lib/utils/api/library-api.d.ts +14 -2
  584. package/lib/utils/api/library-api.js +17 -1
  585. package/lib/utils/api/{years-api.d.ts → lyric-api.d.ts} +2 -2
  586. package/lib/utils/api/{years-api.js → lyric-api.js} +4 -4
  587. package/lib/utils/api/{activity-log-api.d.ts → media-segment-api.d.ts} +2 -2
  588. package/lib/utils/api/{quick-connect-api.js → media-segment-api.js} +4 -4
  589. package/lib/utils/api/movie-api.d.ts +8 -0
  590. package/lib/utils/api/movie-api.js +12 -0
  591. package/lib/utils/api/{dynamic-hls-api.d.ts → music-genre-api.d.ts} +2 -2
  592. package/lib/utils/api/{dynamic-hls-api.js → music-genre-api.js} +4 -4
  593. package/lib/utils/api/{genres-api.d.ts → person-api.d.ts} +2 -2
  594. package/lib/utils/api/{genres-api.js → person-api.js} +4 -4
  595. package/lib/utils/api/{trailers-api.d.ts → playlist-api.d.ts} +2 -2
  596. package/lib/utils/api/{channels-api.js → playlist-api.js} +4 -4
  597. package/lib/utils/api/{lyrics-api.d.ts → plugin-api.d.ts} +2 -2
  598. package/lib/utils/api/{videos-api.js → plugin-api.js} +4 -4
  599. package/lib/utils/api/scheduled-task-api.d.ts +8 -0
  600. package/lib/utils/api/{configuration-api.js → scheduled-task-api.js} +4 -4
  601. package/lib/utils/api/session-api.js +3 -1
  602. package/lib/utils/api/show-api.d.ts +8 -0
  603. package/lib/utils/api/{tmdb-api.js → show-api.js} +4 -4
  604. package/lib/utils/api/studio-api.d.ts +8 -0
  605. package/lib/utils/api/studio-api.js +12 -0
  606. package/lib/utils/api/{hls-segment-api.d.ts → suggestion-api.d.ts} +2 -2
  607. package/lib/utils/api/{hls-segment-api.js → suggestion-api.js} +4 -4
  608. package/lib/utils/api/{package-api.d.ts → trailer-api.d.ts} +2 -2
  609. package/lib/utils/api/{devices-api.js → trailer-api.js} +4 -4
  610. package/lib/utils/api/{dashboard-api.d.ts → trick-play-api.d.ts} +2 -2
  611. package/lib/utils/api/{dashboard-api.js → trick-play-api.js} +4 -4
  612. package/lib/utils/api/user-api.js +1 -26
  613. package/lib/utils/api/{api-key-api.d.ts → user-data-api.d.ts} +2 -2
  614. package/lib/utils/api/{time-sync-api.js → user-data-api.js} +4 -4
  615. package/lib/utils/api/{channels-api.d.ts → user-view-api.d.ts} +2 -2
  616. package/lib/utils/api/{trailers-api.js → user-view-api.js} +4 -4
  617. package/lib/utils/api/video-api.d.ts +8 -0
  618. package/lib/utils/api/video-api.js +12 -0
  619. package/lib/utils/api/year-api.d.ts +8 -0
  620. package/lib/utils/api/year-api.js +12 -0
  621. package/lib/utils/index.js +2 -2
  622. package/lib/utils/url/index.d.ts +1 -0
  623. package/lib/utils/url/index.js +4 -1
  624. package/lib/utils/versioning.d.ts +12 -1
  625. package/lib/utils/versioning.js +44 -13
  626. package/lib/versions.d.ts +1 -1
  627. package/lib/versions.js +1 -1
  628. package/lib/websocket/constants.d.ts +24 -0
  629. package/lib/websocket/constants.js +42 -0
  630. package/lib/websocket/index.d.ts +8 -0
  631. package/lib/websocket/index.js +3 -0
  632. package/lib/{utils/api/client-log-api.d.ts → websocket/models.d.ts} +6 -3
  633. package/lib/websocket/models.js +16 -0
  634. package/lib/websocket/types.d.ts +37 -0
  635. package/lib/websocket/types.js +42 -0
  636. package/lib/websocket/websocket-service.d.ts +142 -0
  637. package/lib/websocket/websocket-service.js +296 -0
  638. package/package.json +20 -17
  639. package/lib/generated-client/api/activity-log-api.d.ts +0 -110
  640. package/lib/generated-client/api/activity-log-api.js +0 -135
  641. package/lib/generated-client/api/api-key-api.d.ts +0 -161
  642. package/lib/generated-client/api/api-key-api.js +0 -245
  643. package/lib/generated-client/api/client-log-api.d.ts +0 -86
  644. package/lib/generated-client/api/client-log-api.js +0 -117
  645. package/lib/generated-client/api/configuration-api.d.ts +0 -292
  646. package/lib/generated-client/api/configuration-api.js +0 -442
  647. package/lib/generated-client/api/dashboard-api.d.ts +0 -132
  648. package/lib/generated-client/api/dashboard-api.js +0 -182
  649. package/lib/generated-client/api/dlna-api.d.ts +0 -292
  650. package/lib/generated-client/api/dlna-server-api.d.ts +0 -784
  651. package/lib/generated-client/api/dynamic-hls-api.d.ts +0 -4261
  652. package/lib/generated-client/api/dynamic-hls-api.js +0 -3025
  653. package/lib/generated-client/api/hls-segment-api.d.ts +0 -325
  654. package/lib/generated-client/api/hls-segment-api.js +0 -415
  655. package/lib/generated-client/api/image-by-name-api.d.ts +0 -292
  656. package/lib/generated-client/api/item-refresh-api.d.ts +0 -126
  657. package/lib/generated-client/api/item-refresh-api.js +0 -143
  658. package/lib/generated-client/api/items-api.d.ts +0 -1052
  659. package/lib/generated-client/api/items-api.js +0 -835
  660. package/lib/generated-client/api/music-genres-api.d.ts +0 -286
  661. package/lib/generated-client/api/music-genres-api.js +0 -278
  662. package/lib/generated-client/api/notifications-api.d.ts +0 -332
  663. package/lib/generated-client/api/package-api.d.ts +0 -315
  664. package/lib/generated-client/api/package-api.js +0 -455
  665. package/lib/generated-client/api/playstate-api.d.ts +0 -679
  666. package/lib/generated-client/api/playstate-api.js +0 -789
  667. package/lib/generated-client/api/plugins-api.d.ts +0 -473
  668. package/lib/generated-client/api/plugins-api.js +0 -663
  669. package/lib/generated-client/api/quick-connect-api.d.ts +0 -198
  670. package/lib/generated-client/api/quick-connect-api.js +0 -305
  671. package/lib/generated-client/api/time-sync-api.d.ts +0 -69
  672. package/lib/generated-client/api/time-sync-api.js +0 -109
  673. package/lib/generated-client/api/tmdb-api.d.ts +0 -69
  674. package/lib/generated-client/api/tmdb-api.js +0 -111
  675. package/lib/generated-client/api/universal-audio-api.d.ts +0 -420
  676. package/lib/generated-client/api/universal-audio-api.js +0 -364
  677. package/lib/generated-client/api/user-library-api.d.ts +0 -657
  678. package/lib/generated-client/api/video-attachments-api.d.ts +0 -101
  679. package/lib/generated-client/api/video-attachments-api.js +0 -126
  680. package/lib/generated-client/models/admin-notification-dto.d.ts +0 -42
  681. package/lib/generated-client/models/base-item.d.ts +0 -84
  682. package/lib/generated-client/models/branding-options.d.ts +0 -35
  683. package/lib/generated-client/models/client-capabilities.d.ts +0 -76
  684. package/lib/generated-client/models/config-image-types.d.ts +0 -59
  685. package/lib/generated-client/models/control-response.d.ts +0 -37
  686. package/lib/generated-client/models/device-identification.d.ts +0 -72
  687. package/lib/generated-client/models/device-info-query-result.d.ts +0 -36
  688. package/lib/generated-client/models/device-info.d.ts +0 -84
  689. package/lib/generated-client/models/device-options.d.ts +0 -35
  690. package/lib/generated-client/models/device-profile-info.d.ts +0 -36
  691. package/lib/generated-client/models/device-profile-type.d.ts +0 -20
  692. package/lib/generated-client/models/dlna-options.d.ts +0 -83
  693. package/lib/generated-client/models/ffmpeg-location.d.ts +0 -22
  694. package/lib/generated-client/models/group-info-dto-group-update.d.ts +0 -37
  695. package/lib/generated-client/models/group-state-update-group-update.d.ts +0 -37
  696. package/lib/generated-client/models/hardware-encoding-type.d.ts +0 -25
  697. package/lib/generated-client/models/header-match-type.d.ts +0 -21
  698. package/lib/generated-client/models/http-header-info.d.ts +0 -36
  699. package/lib/generated-client/models/image-by-name-info.d.ts +0 -47
  700. package/lib/generated-client/models/media-encoder-path-dto.d.ts +0 -29
  701. package/lib/generated-client/models/notification-dto.d.ts +0 -66
  702. package/lib/generated-client/models/notification-option.d.ts +0 -54
  703. package/lib/generated-client/models/notification-options.d.ts +0 -24
  704. package/lib/generated-client/models/notification-result-dto.d.ts +0 -30
  705. package/lib/generated-client/models/notification-type-info.d.ts +0 -47
  706. package/lib/generated-client/models/notifications-summary-dto.d.ts +0 -30
  707. package/lib/generated-client/models/object-group-update.d.ts +0 -36
  708. package/lib/generated-client/models/play-queue-update-group-update.d.ts +0 -37
  709. package/lib/generated-client/models/response-profile.d.ts +0 -61
  710. package/lib/generated-client/models/send-to-user-type.d.ts +0 -21
  711. package/lib/generated-client/models/session-info.d.ts +0 -199
  712. package/lib/generated-client/models/string-group-update.d.ts +0 -36
  713. package/lib/generated-client/models/subtitle-options.d.ts +0 -71
  714. package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +0 -37
  715. package/lib/generated-client/models/trickplay-info.d.ts +0 -65
  716. package/lib/generated-client/models/update-user-easy-password.d.ts +0 -35
  717. package/lib/generated-client/models/wake-on-lan-info.d.ts +0 -29
  718. package/lib/generated-client/models/xml-attribute.d.ts +0 -29
  719. package/lib/utils/api/activity-log-api.js +0 -12
  720. package/lib/utils/api/api-key-api.js +0 -12
  721. package/lib/utils/api/client-log-api.js +0 -12
  722. package/lib/utils/api/configuration-api.d.ts +0 -8
  723. package/lib/utils/api/devices-api.d.ts +0 -8
  724. package/lib/utils/api/display-preferences-api.d.ts +0 -8
  725. package/lib/utils/api/display-preferences-api.js +0 -12
  726. package/lib/utils/api/item-refresh-api.d.ts +0 -8
  727. package/lib/utils/api/item-refresh-api.js +0 -12
  728. package/lib/utils/api/media-segments-api.d.ts +0 -8
  729. package/lib/utils/api/media-segments-api.js +0 -12
  730. package/lib/utils/api/music-genres-api.d.ts +0 -8
  731. package/lib/utils/api/music-genres-api.js +0 -12
  732. package/lib/utils/api/package-api.js +0 -12
  733. package/lib/utils/api/persons-api.d.ts +0 -8
  734. package/lib/utils/api/persons-api.js +0 -12
  735. package/lib/utils/api/playlists-api.d.ts +0 -8
  736. package/lib/utils/api/playlists-api.js +0 -12
  737. package/lib/utils/api/playstate-api.d.ts +0 -8
  738. package/lib/utils/api/playstate-api.js +0 -12
  739. package/lib/utils/api/plugins-api.d.ts +0 -8
  740. package/lib/utils/api/plugins-api.js +0 -12
  741. package/lib/utils/api/quick-connect-api.d.ts +0 -8
  742. package/lib/utils/api/scheduled-tasks-api.d.ts +0 -8
  743. package/lib/utils/api/scheduled-tasks-api.js +0 -12
  744. package/lib/utils/api/studios-api.d.ts +0 -8
  745. package/lib/utils/api/studios-api.js +0 -12
  746. package/lib/utils/api/suggestions-api.d.ts +0 -8
  747. package/lib/utils/api/suggestions-api.js +0 -12
  748. package/lib/utils/api/time-sync-api.d.ts +0 -8
  749. package/lib/utils/api/trickplay-api.d.ts +0 -8
  750. package/lib/utils/api/trickplay-api.js +0 -12
  751. package/lib/utils/api/tv-shows-api.d.ts +0 -8
  752. package/lib/utils/api/tv-shows-api.js +0 -12
  753. package/lib/utils/api/universal-audio-api.d.ts +0 -8
  754. package/lib/utils/api/universal-audio-api.js +0 -12
  755. package/lib/utils/api/user-library-api.d.ts +0 -8
  756. package/lib/utils/api/user-library-api.js +0 -12
  757. package/lib/utils/api/user-views-api.d.ts +0 -8
  758. package/lib/utils/api/user-views-api.js +0 -12
  759. package/lib/utils/api/video-attachments-api.d.ts +0 -8
  760. package/lib/utils/api/video-attachments-api.js +0 -12
@@ -1,6 +1,6 @@
1
1
  import globalAxios from 'axios';
2
2
  import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, assertParamExists, serializeDataIfNeeded, createRequestFunction } from '../common.js';
3
- import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
3
+ import { BaseAPI, operationServerMap, BASE_PATH } from '../base.js';
4
4
 
5
5
  /* tslint:disable */
6
6
  /* eslint-disable */
@@ -16,7 +16,6 @@ import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
16
16
  */
17
17
  /**
18
18
  * LibraryApi - axios parameter creator
19
- * @export
20
19
  */
21
20
  const LibraryApiAxiosParamCreator = function (configuration) {
22
21
  return {
@@ -43,6 +42,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
43
42
  const localVarQueryParameter = {};
44
43
  // authentication CustomAuthentication required
45
44
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
45
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
46
46
  setSearchParams(localVarUrlObj, localVarQueryParameter);
47
47
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48
48
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -74,6 +74,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
74
74
  if (ids) {
75
75
  localVarQueryParameter['ids'] = ids;
76
76
  }
77
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
77
78
  setSearchParams(localVarUrlObj, localVarQueryParameter);
78
79
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
79
80
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -109,6 +110,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
109
110
  if (userId !== undefined) {
110
111
  localVarQueryParameter['userId'] = userId;
111
112
  }
113
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
112
114
  setSearchParams(localVarUrlObj, localVarQueryParameter);
113
115
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
114
116
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -119,16 +121,15 @@ const LibraryApiAxiosParamCreator = function (configuration) {
119
121
  },
120
122
  /**
121
123
  *
122
- * @summary Gets critic review for an item.
123
- * @param {string} itemId
124
+ * @summary Downloads item media.
125
+ * @param {string} itemId The item id.
124
126
  * @param {*} [options] Override http request option.
125
- * @deprecated
126
127
  * @throws {RequiredError}
127
128
  */
128
- getCriticReviews: async (itemId, options = {}) => {
129
+ getDownload: async (itemId, options = {}) => {
129
130
  // verify required parameter 'itemId' is not null or undefined
130
- assertParamExists('getCriticReviews', 'itemId', itemId);
131
- const localVarPath = `/Items/{itemId}/CriticReviews`
131
+ assertParamExists('getDownload', 'itemId', itemId);
132
+ const localVarPath = `/Items/{itemId}/Download`
132
133
  .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
133
134
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
134
135
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -141,6 +142,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
141
142
  const localVarQueryParameter = {};
142
143
  // authentication CustomAuthentication required
143
144
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
145
+ localVarHeaderParameter['Accept'] = 'video/*,audio/*,application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
144
146
  setSearchParams(localVarUrlObj, localVarQueryParameter);
145
147
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
148
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -151,15 +153,15 @@ const LibraryApiAxiosParamCreator = function (configuration) {
151
153
  },
152
154
  /**
153
155
  *
154
- * @summary Downloads item media.
156
+ * @summary Get the original file of an item.
155
157
  * @param {string} itemId The item id.
156
158
  * @param {*} [options] Override http request option.
157
159
  * @throws {RequiredError}
158
160
  */
159
- getDownload: async (itemId, options = {}) => {
161
+ getFile: async (itemId, options = {}) => {
160
162
  // verify required parameter 'itemId' is not null or undefined
161
- assertParamExists('getDownload', 'itemId', itemId);
162
- const localVarPath = `/Items/{itemId}/Download`
163
+ assertParamExists('getFile', 'itemId', itemId);
164
+ const localVarPath = `/Items/{itemId}/File`
163
165
  .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
164
166
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
165
167
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -172,6 +174,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
172
174
  const localVarQueryParameter = {};
173
175
  // authentication CustomAuthentication required
174
176
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
177
+ localVarHeaderParameter['Accept'] = 'video/*,audio/*,application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
175
178
  setSearchParams(localVarUrlObj, localVarQueryParameter);
176
179
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
177
180
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -182,15 +185,91 @@ const LibraryApiAxiosParamCreator = function (configuration) {
182
185
  },
183
186
  /**
184
187
  *
185
- * @summary Get the original file of an item.
188
+ * @summary Gets intros to play before the main media item plays.
189
+ * @param {string} itemId Item id.
190
+ * @param {string} [userId] User id.
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ getIntros: async (itemId, userId, options = {}) => {
195
+ // verify required parameter 'itemId' is not null or undefined
196
+ assertParamExists('getIntros', 'itemId', itemId);
197
+ const localVarPath = `/Items/{itemId}/Intros`
198
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
200
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
201
+ let baseOptions;
202
+ if (configuration) {
203
+ baseOptions = configuration.baseOptions;
204
+ }
205
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
206
+ const localVarHeaderParameter = {};
207
+ const localVarQueryParameter = {};
208
+ // authentication CustomAuthentication required
209
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
210
+ if (userId !== undefined) {
211
+ localVarQueryParameter['userId'] = userId;
212
+ }
213
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
217
+ return {
218
+ url: toPathString(localVarUrlObj),
219
+ options: localVarRequestOptions,
220
+ };
221
+ },
222
+ /**
223
+ *
224
+ * @summary Gets an item from a user\'s library.
225
+ * @param {string} itemId Item id.
226
+ * @param {string} [userId] User id.
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ getItem: async (itemId, userId, options = {}) => {
231
+ // verify required parameter 'itemId' is not null or undefined
232
+ assertParamExists('getItem', 'itemId', itemId);
233
+ const localVarPath = `/Items/{itemId}`
234
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
235
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
236
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
237
+ let baseOptions;
238
+ if (configuration) {
239
+ baseOptions = configuration.baseOptions;
240
+ }
241
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
242
+ const localVarHeaderParameter = {};
243
+ const localVarQueryParameter = {};
244
+ // authentication CustomAuthentication required
245
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
246
+ if (userId !== undefined) {
247
+ localVarQueryParameter['userId'] = userId;
248
+ }
249
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
250
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
251
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
252
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
253
+ return {
254
+ url: toPathString(localVarUrlObj),
255
+ options: localVarRequestOptions,
256
+ };
257
+ },
258
+ /**
259
+ *
260
+ * @summary Gets the collections that include the specified item.
186
261
  * @param {string} itemId The item id.
262
+ * @param {string} [userId] Optional. Filter by user id, and attach user data.
263
+ * @param {number} [startIndex] Optional. The index of the first record in the output.
264
+ * @param {number} [limit] Optional. The maximum number of records to return.
265
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
187
266
  * @param {*} [options] Override http request option.
188
267
  * @throws {RequiredError}
189
268
  */
190
- getFile: async (itemId, options = {}) => {
269
+ getItemCollections: async (itemId, userId, startIndex, limit, fields, options = {}) => {
191
270
  // verify required parameter 'itemId' is not null or undefined
192
- assertParamExists('getFile', 'itemId', itemId);
193
- const localVarPath = `/Items/{itemId}/File`
271
+ assertParamExists('getItemCollections', 'itemId', itemId);
272
+ const localVarPath = `/Items/{itemId}/Collections`
194
273
  .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
195
274
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
275
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -203,6 +282,19 @@ const LibraryApiAxiosParamCreator = function (configuration) {
203
282
  const localVarQueryParameter = {};
204
283
  // authentication CustomAuthentication required
205
284
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
285
+ if (userId !== undefined) {
286
+ localVarQueryParameter['userId'] = userId;
287
+ }
288
+ if (startIndex !== undefined) {
289
+ localVarQueryParameter['startIndex'] = startIndex;
290
+ }
291
+ if (limit !== undefined) {
292
+ localVarQueryParameter['limit'] = limit;
293
+ }
294
+ if (fields) {
295
+ localVarQueryParameter['fields'] = fields;
296
+ }
297
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
206
298
  setSearchParams(localVarUrlObj, localVarQueryParameter);
207
299
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
208
300
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -238,6 +330,467 @@ const LibraryApiAxiosParamCreator = function (configuration) {
238
330
  if (isFavorite !== undefined) {
239
331
  localVarQueryParameter['isFavorite'] = isFavorite;
240
332
  }
333
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
334
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
335
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
336
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
337
+ return {
338
+ url: toPathString(localVarUrlObj),
339
+ options: localVarRequestOptions,
340
+ };
341
+ },
342
+ /**
343
+ *
344
+ * @summary Gets items based on a query.
345
+ * @param {string} [userId] The user id supplied as query parameter; this is required when not using an API key.
346
+ * @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
347
+ * @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
348
+ * @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
349
+ * @param {boolean} [hasSubtitles] Optional filter by items with subtitles.
350
+ * @param {boolean} [hasSpecialFeature] Optional filter by items with special features.
351
+ * @param {boolean} [hasTrailer] Optional filter by items with trailers.
352
+ * @param {string} [adjacentTo] Optional. Return items that are siblings of a supplied item.
353
+ * @param {number} [indexNumber] Optional filter by index number.
354
+ * @param {number} [parentIndexNumber] Optional filter by parent index number.
355
+ * @param {boolean} [hasParentalRating] Optional filter by items that have or do not have a parental rating.
356
+ * @param {boolean} [isHd] Optional filter by items that are HD or not.
357
+ * @param {boolean} [is4K] Optional filter by items that are 4K or not.
358
+ * @param {Array<LocationType>} [locationTypes] Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited.
359
+ * @param {Array<LocationType>} [excludeLocationTypes] Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited.
360
+ * @param {boolean} [isMissing] Optional filter by items that are missing episodes or not.
361
+ * @param {boolean} [isUnaired] Optional filter by items that are unaired episodes or not.
362
+ * @param {number} [minCommunityRating] Optional filter by minimum community rating.
363
+ * @param {number} [minCriticRating] Optional filter by minimum critic rating.
364
+ * @param {string} [minPremiereDate] Optional. The minimum premiere date. Format &#x3D; ISO.
365
+ * @param {string} [minDateLastSaved] Optional. The minimum last saved date. Format &#x3D; ISO.
366
+ * @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format &#x3D; ISO.
367
+ * @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format &#x3D; ISO.
368
+ * @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
369
+ * @param {boolean} [hasImdbId] Optional filter by items that have an IMDb id or not.
370
+ * @param {boolean} [hasTmdbId] Optional filter by items that have a TMDb id or not.
371
+ * @param {boolean} [hasTvdbId] Optional filter by items that have a TVDb id or not.
372
+ * @param {boolean} [isMovie] Optional filter for live tv movies.
373
+ * @param {boolean} [isSeries] Optional filter for live tv series.
374
+ * @param {boolean} [isNews] Optional filter for live tv news.
375
+ * @param {boolean} [isKids] Optional filter for live tv kids.
376
+ * @param {boolean} [isSports] Optional filter for live tv sports.
377
+ * @param {Array<string>} [excludeItemIds] Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited.
378
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
379
+ * @param {number} [limit] Optional. The maximum number of records to return.
380
+ * @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
381
+ * @param {string} [searchTerm] Optional. Filter based on a search term.
382
+ * @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending, Descending.
383
+ * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
384
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
385
+ * @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
386
+ * @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited.
387
+ * @param {Array<ItemFilter>} [filters] Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes.
388
+ * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not.
389
+ * @param {Array<MediaType>} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited.
390
+ * @param {Array<ImageType>} [imageTypes] Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited.
391
+ * @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
392
+ * @param {boolean} [isPlayed] Optional filter by items that are played, or not.
393
+ * @param {Array<string>} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited.
394
+ * @param {Array<string>} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited.
395
+ * @param {Array<string>} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited.
396
+ * @param {Array<number>} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited.
397
+ * @param {boolean} [enableUserData] Optional, include user data.
398
+ * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
399
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
400
+ * @param {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person.
401
+ * @param {Array<string>} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person id.
402
+ * @param {Array<string>} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited.
403
+ * @param {Array<string>} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited.
404
+ * @param {Array<string>} [artists] Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited.
405
+ * @param {Array<string>} [excludeArtistIds] Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited.
406
+ * @param {Array<string>} [artistIds] Optional. If specified, results will be filtered to include only those containing the specified artist id.
407
+ * @param {Array<string>} [albumArtistIds] Optional. If specified, results will be filtered to include only those containing the specified album artist id.
408
+ * @param {Array<string>} [contributingArtistIds] Optional. If specified, results will be filtered to include only those containing the specified contributing artist id.
409
+ * @param {Array<string>} [albums] Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited.
410
+ * @param {Array<string>} [albumIds] Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited.
411
+ * @param {Array<string>} [ids] Optional. If specific items are needed, specify a list of item id\&#39;s to retrieve. This allows multiple, comma delimited.
412
+ * @param {Array<VideoType>} [videoTypes] Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited.
413
+ * @param {string} [minOfficialRating] Optional filter by minimum official rating (PG, PG-13, TV-MA, etc).
414
+ * @param {boolean} [isLocked] Optional filter by items that are locked.
415
+ * @param {boolean} [isPlaceHolder] Optional filter by items that are placeholders.
416
+ * @param {boolean} [hasOfficialRating] Optional filter by items that have official ratings.
417
+ * @param {boolean} [collapseBoxSetItems] Whether or not to hide items behind their boxsets.
418
+ * @param {number} [minWidth] Optional. Filter by the minimum width of the item.
419
+ * @param {number} [minHeight] Optional. Filter by the minimum height of the item.
420
+ * @param {number} [maxWidth] Optional. Filter by the maximum width of the item.
421
+ * @param {number} [maxHeight] Optional. Filter by the maximum height of the item.
422
+ * @param {boolean} [is3D] Optional filter by items that are 3D, or not.
423
+ * @param {Array<SeriesStatus>} [seriesStatus] Optional filter by Series Status. Allows multiple, comma delimited.
424
+ * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string.
425
+ * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string.
426
+ * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string.
427
+ * @param {Array<string>} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited.
428
+ * @param {Array<string>} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited.
429
+ * @param {Array<string>} [audioLanguages] Optional. If specified, results will be filtered based on audio language. This allows multiple, comma delimited values.
430
+ * @param {Array<string>} [subtitleLanguages] Optional. If specified, results will be filtered based on subtitle language. This allows multiple, comma delimited values.
431
+ * @param {boolean} [enableTotalRecordCount] Optional. Enable the total record count.
432
+ * @param {boolean} [enableImages] Optional, include image information in output.
433
+ * @param {*} [options] Override http request option.
434
+ * @throws {RequiredError}
435
+ */
436
+ getItems: async (userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, indexNumber, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, audioLanguages, subtitleLanguages, enableTotalRecordCount, enableImages, options = {}) => {
437
+ const localVarPath = `/Items`;
438
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
439
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
440
+ let baseOptions;
441
+ if (configuration) {
442
+ baseOptions = configuration.baseOptions;
443
+ }
444
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
445
+ const localVarHeaderParameter = {};
446
+ const localVarQueryParameter = {};
447
+ // authentication CustomAuthentication required
448
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
449
+ if (userId !== undefined) {
450
+ localVarQueryParameter['userId'] = userId;
451
+ }
452
+ if (maxOfficialRating !== undefined) {
453
+ localVarQueryParameter['maxOfficialRating'] = maxOfficialRating;
454
+ }
455
+ if (hasThemeSong !== undefined) {
456
+ localVarQueryParameter['hasThemeSong'] = hasThemeSong;
457
+ }
458
+ if (hasThemeVideo !== undefined) {
459
+ localVarQueryParameter['hasThemeVideo'] = hasThemeVideo;
460
+ }
461
+ if (hasSubtitles !== undefined) {
462
+ localVarQueryParameter['hasSubtitles'] = hasSubtitles;
463
+ }
464
+ if (hasSpecialFeature !== undefined) {
465
+ localVarQueryParameter['hasSpecialFeature'] = hasSpecialFeature;
466
+ }
467
+ if (hasTrailer !== undefined) {
468
+ localVarQueryParameter['hasTrailer'] = hasTrailer;
469
+ }
470
+ if (adjacentTo !== undefined) {
471
+ localVarQueryParameter['adjacentTo'] = adjacentTo;
472
+ }
473
+ if (indexNumber !== undefined) {
474
+ localVarQueryParameter['indexNumber'] = indexNumber;
475
+ }
476
+ if (parentIndexNumber !== undefined) {
477
+ localVarQueryParameter['parentIndexNumber'] = parentIndexNumber;
478
+ }
479
+ if (hasParentalRating !== undefined) {
480
+ localVarQueryParameter['hasParentalRating'] = hasParentalRating;
481
+ }
482
+ if (isHd !== undefined) {
483
+ localVarQueryParameter['isHd'] = isHd;
484
+ }
485
+ if (is4K !== undefined) {
486
+ localVarQueryParameter['is4K'] = is4K;
487
+ }
488
+ if (locationTypes) {
489
+ localVarQueryParameter['locationTypes'] = locationTypes;
490
+ }
491
+ if (excludeLocationTypes) {
492
+ localVarQueryParameter['excludeLocationTypes'] = excludeLocationTypes;
493
+ }
494
+ if (isMissing !== undefined) {
495
+ localVarQueryParameter['isMissing'] = isMissing;
496
+ }
497
+ if (isUnaired !== undefined) {
498
+ localVarQueryParameter['isUnaired'] = isUnaired;
499
+ }
500
+ if (minCommunityRating !== undefined) {
501
+ localVarQueryParameter['minCommunityRating'] = minCommunityRating;
502
+ }
503
+ if (minCriticRating !== undefined) {
504
+ localVarQueryParameter['minCriticRating'] = minCriticRating;
505
+ }
506
+ if (minPremiereDate !== undefined) {
507
+ localVarQueryParameter['minPremiereDate'] = (minPremiereDate instanceof Date) ?
508
+ minPremiereDate.toISOString() :
509
+ minPremiereDate;
510
+ }
511
+ if (minDateLastSaved !== undefined) {
512
+ localVarQueryParameter['minDateLastSaved'] = (minDateLastSaved instanceof Date) ?
513
+ minDateLastSaved.toISOString() :
514
+ minDateLastSaved;
515
+ }
516
+ if (minDateLastSavedForUser !== undefined) {
517
+ localVarQueryParameter['minDateLastSavedForUser'] = (minDateLastSavedForUser instanceof Date) ?
518
+ minDateLastSavedForUser.toISOString() :
519
+ minDateLastSavedForUser;
520
+ }
521
+ if (maxPremiereDate !== undefined) {
522
+ localVarQueryParameter['maxPremiereDate'] = (maxPremiereDate instanceof Date) ?
523
+ maxPremiereDate.toISOString() :
524
+ maxPremiereDate;
525
+ }
526
+ if (hasOverview !== undefined) {
527
+ localVarQueryParameter['hasOverview'] = hasOverview;
528
+ }
529
+ if (hasImdbId !== undefined) {
530
+ localVarQueryParameter['hasImdbId'] = hasImdbId;
531
+ }
532
+ if (hasTmdbId !== undefined) {
533
+ localVarQueryParameter['hasTmdbId'] = hasTmdbId;
534
+ }
535
+ if (hasTvdbId !== undefined) {
536
+ localVarQueryParameter['hasTvdbId'] = hasTvdbId;
537
+ }
538
+ if (isMovie !== undefined) {
539
+ localVarQueryParameter['isMovie'] = isMovie;
540
+ }
541
+ if (isSeries !== undefined) {
542
+ localVarQueryParameter['isSeries'] = isSeries;
543
+ }
544
+ if (isNews !== undefined) {
545
+ localVarQueryParameter['isNews'] = isNews;
546
+ }
547
+ if (isKids !== undefined) {
548
+ localVarQueryParameter['isKids'] = isKids;
549
+ }
550
+ if (isSports !== undefined) {
551
+ localVarQueryParameter['isSports'] = isSports;
552
+ }
553
+ if (excludeItemIds) {
554
+ localVarQueryParameter['excludeItemIds'] = excludeItemIds;
555
+ }
556
+ if (startIndex !== undefined) {
557
+ localVarQueryParameter['startIndex'] = startIndex;
558
+ }
559
+ if (limit !== undefined) {
560
+ localVarQueryParameter['limit'] = limit;
561
+ }
562
+ if (recursive !== undefined) {
563
+ localVarQueryParameter['recursive'] = recursive;
564
+ }
565
+ if (searchTerm !== undefined) {
566
+ localVarQueryParameter['searchTerm'] = searchTerm;
567
+ }
568
+ if (sortOrder) {
569
+ localVarQueryParameter['sortOrder'] = sortOrder;
570
+ }
571
+ if (parentId !== undefined) {
572
+ localVarQueryParameter['parentId'] = parentId;
573
+ }
574
+ if (fields) {
575
+ localVarQueryParameter['fields'] = fields;
576
+ }
577
+ if (excludeItemTypes) {
578
+ localVarQueryParameter['excludeItemTypes'] = excludeItemTypes;
579
+ }
580
+ if (includeItemTypes) {
581
+ localVarQueryParameter['includeItemTypes'] = includeItemTypes;
582
+ }
583
+ if (filters) {
584
+ localVarQueryParameter['filters'] = filters;
585
+ }
586
+ if (isFavorite !== undefined) {
587
+ localVarQueryParameter['isFavorite'] = isFavorite;
588
+ }
589
+ if (mediaTypes) {
590
+ localVarQueryParameter['mediaTypes'] = mediaTypes;
591
+ }
592
+ if (imageTypes) {
593
+ localVarQueryParameter['imageTypes'] = imageTypes;
594
+ }
595
+ if (sortBy) {
596
+ localVarQueryParameter['sortBy'] = sortBy;
597
+ }
598
+ if (isPlayed !== undefined) {
599
+ localVarQueryParameter['isPlayed'] = isPlayed;
600
+ }
601
+ if (genres) {
602
+ localVarQueryParameter['genres'] = genres;
603
+ }
604
+ if (officialRatings) {
605
+ localVarQueryParameter['officialRatings'] = officialRatings;
606
+ }
607
+ if (tags) {
608
+ localVarQueryParameter['tags'] = tags;
609
+ }
610
+ if (years) {
611
+ localVarQueryParameter['years'] = years;
612
+ }
613
+ if (enableUserData !== undefined) {
614
+ localVarQueryParameter['enableUserData'] = enableUserData;
615
+ }
616
+ if (imageTypeLimit !== undefined) {
617
+ localVarQueryParameter['imageTypeLimit'] = imageTypeLimit;
618
+ }
619
+ if (enableImageTypes) {
620
+ localVarQueryParameter['enableImageTypes'] = enableImageTypes;
621
+ }
622
+ if (person !== undefined) {
623
+ localVarQueryParameter['person'] = person;
624
+ }
625
+ if (personIds) {
626
+ localVarQueryParameter['personIds'] = personIds;
627
+ }
628
+ if (personTypes) {
629
+ localVarQueryParameter['personTypes'] = personTypes;
630
+ }
631
+ if (studios) {
632
+ localVarQueryParameter['studios'] = studios;
633
+ }
634
+ if (artists) {
635
+ localVarQueryParameter['artists'] = artists;
636
+ }
637
+ if (excludeArtistIds) {
638
+ localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
639
+ }
640
+ if (artistIds) {
641
+ localVarQueryParameter['artistIds'] = artistIds;
642
+ }
643
+ if (albumArtistIds) {
644
+ localVarQueryParameter['albumArtistIds'] = albumArtistIds;
645
+ }
646
+ if (contributingArtistIds) {
647
+ localVarQueryParameter['contributingArtistIds'] = contributingArtistIds;
648
+ }
649
+ if (albums) {
650
+ localVarQueryParameter['albums'] = albums;
651
+ }
652
+ if (albumIds) {
653
+ localVarQueryParameter['albumIds'] = albumIds;
654
+ }
655
+ if (ids) {
656
+ localVarQueryParameter['ids'] = ids;
657
+ }
658
+ if (videoTypes) {
659
+ localVarQueryParameter['videoTypes'] = videoTypes;
660
+ }
661
+ if (minOfficialRating !== undefined) {
662
+ localVarQueryParameter['minOfficialRating'] = minOfficialRating;
663
+ }
664
+ if (isLocked !== undefined) {
665
+ localVarQueryParameter['isLocked'] = isLocked;
666
+ }
667
+ if (isPlaceHolder !== undefined) {
668
+ localVarQueryParameter['isPlaceHolder'] = isPlaceHolder;
669
+ }
670
+ if (hasOfficialRating !== undefined) {
671
+ localVarQueryParameter['hasOfficialRating'] = hasOfficialRating;
672
+ }
673
+ if (collapseBoxSetItems !== undefined) {
674
+ localVarQueryParameter['collapseBoxSetItems'] = collapseBoxSetItems;
675
+ }
676
+ if (minWidth !== undefined) {
677
+ localVarQueryParameter['minWidth'] = minWidth;
678
+ }
679
+ if (minHeight !== undefined) {
680
+ localVarQueryParameter['minHeight'] = minHeight;
681
+ }
682
+ if (maxWidth !== undefined) {
683
+ localVarQueryParameter['maxWidth'] = maxWidth;
684
+ }
685
+ if (maxHeight !== undefined) {
686
+ localVarQueryParameter['maxHeight'] = maxHeight;
687
+ }
688
+ if (is3D !== undefined) {
689
+ localVarQueryParameter['is3D'] = is3D;
690
+ }
691
+ if (seriesStatus) {
692
+ localVarQueryParameter['seriesStatus'] = seriesStatus;
693
+ }
694
+ if (nameStartsWithOrGreater !== undefined) {
695
+ localVarQueryParameter['nameStartsWithOrGreater'] = nameStartsWithOrGreater;
696
+ }
697
+ if (nameStartsWith !== undefined) {
698
+ localVarQueryParameter['nameStartsWith'] = nameStartsWith;
699
+ }
700
+ if (nameLessThan !== undefined) {
701
+ localVarQueryParameter['nameLessThan'] = nameLessThan;
702
+ }
703
+ if (studioIds) {
704
+ localVarQueryParameter['studioIds'] = studioIds;
705
+ }
706
+ if (genreIds) {
707
+ localVarQueryParameter['genreIds'] = genreIds;
708
+ }
709
+ if (audioLanguages) {
710
+ localVarQueryParameter['audioLanguages'] = audioLanguages;
711
+ }
712
+ if (subtitleLanguages) {
713
+ localVarQueryParameter['subtitleLanguages'] = subtitleLanguages;
714
+ }
715
+ if (enableTotalRecordCount !== undefined) {
716
+ localVarQueryParameter['enableTotalRecordCount'] = enableTotalRecordCount;
717
+ }
718
+ if (enableImages !== undefined) {
719
+ localVarQueryParameter['enableImages'] = enableImages;
720
+ }
721
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
722
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
723
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
724
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
725
+ return {
726
+ url: toPathString(localVarUrlObj),
727
+ options: localVarRequestOptions,
728
+ };
729
+ },
730
+ /**
731
+ *
732
+ * @summary Gets latest media.
733
+ * @param {string} [userId] User id.
734
+ * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
735
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
736
+ * @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
737
+ * @param {boolean} [isPlayed] Filter by items that are played, or not.
738
+ * @param {boolean} [enableImages] Optional. include image information in output.
739
+ * @param {number} [imageTypeLimit] Optional. the max number of images to return, per image type.
740
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
741
+ * @param {boolean} [enableUserData] Optional. include user data.
742
+ * @param {number} [limit] Return item limit.
743
+ * @param {boolean} [groupItems] Whether or not to group items into a parent container.
744
+ * @param {*} [options] Override http request option.
745
+ * @throws {RequiredError}
746
+ */
747
+ getLatestMedia: async (userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options = {}) => {
748
+ const localVarPath = `/Items/Latest`;
749
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
750
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
751
+ let baseOptions;
752
+ if (configuration) {
753
+ baseOptions = configuration.baseOptions;
754
+ }
755
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
756
+ const localVarHeaderParameter = {};
757
+ const localVarQueryParameter = {};
758
+ // authentication CustomAuthentication required
759
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
760
+ if (userId !== undefined) {
761
+ localVarQueryParameter['userId'] = userId;
762
+ }
763
+ if (parentId !== undefined) {
764
+ localVarQueryParameter['parentId'] = parentId;
765
+ }
766
+ if (fields) {
767
+ localVarQueryParameter['fields'] = fields;
768
+ }
769
+ if (includeItemTypes) {
770
+ localVarQueryParameter['includeItemTypes'] = includeItemTypes;
771
+ }
772
+ if (isPlayed !== undefined) {
773
+ localVarQueryParameter['isPlayed'] = isPlayed;
774
+ }
775
+ if (enableImages !== undefined) {
776
+ localVarQueryParameter['enableImages'] = enableImages;
777
+ }
778
+ if (imageTypeLimit !== undefined) {
779
+ localVarQueryParameter['imageTypeLimit'] = imageTypeLimit;
780
+ }
781
+ if (enableImageTypes) {
782
+ localVarQueryParameter['enableImageTypes'] = enableImageTypes;
783
+ }
784
+ if (enableUserData !== undefined) {
785
+ localVarQueryParameter['enableUserData'] = enableUserData;
786
+ }
787
+ if (limit !== undefined) {
788
+ localVarQueryParameter['limit'] = limit;
789
+ }
790
+ if (groupItems !== undefined) {
791
+ localVarQueryParameter['groupItems'] = groupItems;
792
+ }
793
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
241
794
  setSearchParams(localVarUrlObj, localVarQueryParameter);
242
795
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
243
796
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -273,6 +826,43 @@ const LibraryApiAxiosParamCreator = function (configuration) {
273
826
  if (isNewLibrary !== undefined) {
274
827
  localVarQueryParameter['isNewLibrary'] = isNewLibrary;
275
828
  }
829
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
830
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
831
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
832
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
833
+ return {
834
+ url: toPathString(localVarUrlObj),
835
+ options: localVarRequestOptions,
836
+ };
837
+ },
838
+ /**
839
+ *
840
+ * @summary Gets local trailers for an item.
841
+ * @param {string} itemId Item id.
842
+ * @param {string} [userId] User id.
843
+ * @param {*} [options] Override http request option.
844
+ * @throws {RequiredError}
845
+ */
846
+ getLocalTrailers: async (itemId, userId, options = {}) => {
847
+ // verify required parameter 'itemId' is not null or undefined
848
+ assertParamExists('getLocalTrailers', 'itemId', itemId);
849
+ const localVarPath = `/Items/{itemId}/LocalTrailers`
850
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
851
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
852
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
853
+ let baseOptions;
854
+ if (configuration) {
855
+ baseOptions = configuration.baseOptions;
856
+ }
857
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
858
+ const localVarHeaderParameter = {};
859
+ const localVarQueryParameter = {};
860
+ // authentication CustomAuthentication required
861
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
862
+ if (userId !== undefined) {
863
+ localVarQueryParameter['userId'] = userId;
864
+ }
865
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
276
866
  setSearchParams(localVarUrlObj, localVarQueryParameter);
277
867
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
278
868
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -304,6 +894,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
304
894
  if (isHidden !== undefined) {
305
895
  localVarQueryParameter['isHidden'] = isHidden;
306
896
  }
897
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
307
898
  setSearchParams(localVarUrlObj, localVarQueryParameter);
308
899
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
309
900
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -331,6 +922,127 @@ const LibraryApiAxiosParamCreator = function (configuration) {
331
922
  const localVarQueryParameter = {};
332
923
  // authentication CustomAuthentication required
333
924
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
925
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
926
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
927
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
928
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
929
+ return {
930
+ url: toPathString(localVarUrlObj),
931
+ options: localVarRequestOptions,
932
+ };
933
+ },
934
+ /**
935
+ *
936
+ * @summary Gets items based on a query.
937
+ * @param {string} [userId] The user id.
938
+ * @param {number} [startIndex] The start index.
939
+ * @param {number} [limit] The item limit.
940
+ * @param {string} [searchTerm] The search term.
941
+ * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
942
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
943
+ * @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited.
944
+ * @param {boolean} [enableUserData] Optional. Include user data.
945
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
946
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
947
+ * @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
948
+ * @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited.
949
+ * @param {boolean} [enableTotalRecordCount] Optional. Enable the total record count.
950
+ * @param {boolean} [enableImages] Optional. Include image information in output.
951
+ * @param {boolean} [excludeActiveSessions] Optional. Whether to exclude the currently active sessions.
952
+ * @param {*} [options] Override http request option.
953
+ * @throws {RequiredError}
954
+ */
955
+ getResumeItems: async (userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options = {}) => {
956
+ const localVarPath = `/UserItems/Resume`;
957
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
958
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
959
+ let baseOptions;
960
+ if (configuration) {
961
+ baseOptions = configuration.baseOptions;
962
+ }
963
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
964
+ const localVarHeaderParameter = {};
965
+ const localVarQueryParameter = {};
966
+ // authentication CustomAuthentication required
967
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
968
+ if (userId !== undefined) {
969
+ localVarQueryParameter['userId'] = userId;
970
+ }
971
+ if (startIndex !== undefined) {
972
+ localVarQueryParameter['startIndex'] = startIndex;
973
+ }
974
+ if (limit !== undefined) {
975
+ localVarQueryParameter['limit'] = limit;
976
+ }
977
+ if (searchTerm !== undefined) {
978
+ localVarQueryParameter['searchTerm'] = searchTerm;
979
+ }
980
+ if (parentId !== undefined) {
981
+ localVarQueryParameter['parentId'] = parentId;
982
+ }
983
+ if (fields) {
984
+ localVarQueryParameter['fields'] = fields;
985
+ }
986
+ if (mediaTypes) {
987
+ localVarQueryParameter['mediaTypes'] = mediaTypes;
988
+ }
989
+ if (enableUserData !== undefined) {
990
+ localVarQueryParameter['enableUserData'] = enableUserData;
991
+ }
992
+ if (imageTypeLimit !== undefined) {
993
+ localVarQueryParameter['imageTypeLimit'] = imageTypeLimit;
994
+ }
995
+ if (enableImageTypes) {
996
+ localVarQueryParameter['enableImageTypes'] = enableImageTypes;
997
+ }
998
+ if (excludeItemTypes) {
999
+ localVarQueryParameter['excludeItemTypes'] = excludeItemTypes;
1000
+ }
1001
+ if (includeItemTypes) {
1002
+ localVarQueryParameter['includeItemTypes'] = includeItemTypes;
1003
+ }
1004
+ if (enableTotalRecordCount !== undefined) {
1005
+ localVarQueryParameter['enableTotalRecordCount'] = enableTotalRecordCount;
1006
+ }
1007
+ if (enableImages !== undefined) {
1008
+ localVarQueryParameter['enableImages'] = enableImages;
1009
+ }
1010
+ if (excludeActiveSessions !== undefined) {
1011
+ localVarQueryParameter['excludeActiveSessions'] = excludeActiveSessions;
1012
+ }
1013
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
1014
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1016
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1017
+ return {
1018
+ url: toPathString(localVarUrlObj),
1019
+ options: localVarRequestOptions,
1020
+ };
1021
+ },
1022
+ /**
1023
+ *
1024
+ * @summary Gets the root folder from a user\'s library.
1025
+ * @param {string} [userId] User id.
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ getRootFolder: async (userId, options = {}) => {
1030
+ const localVarPath = `/Items/Root`;
1031
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1032
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1033
+ let baseOptions;
1034
+ if (configuration) {
1035
+ baseOptions = configuration.baseOptions;
1036
+ }
1037
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1038
+ const localVarHeaderParameter = {};
1039
+ const localVarQueryParameter = {};
1040
+ // authentication CustomAuthentication required
1041
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1042
+ if (userId !== undefined) {
1043
+ localVarQueryParameter['userId'] = userId;
1044
+ }
1045
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
334
1046
  setSearchParams(localVarUrlObj, localVarQueryParameter);
335
1047
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
336
1048
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -378,6 +1090,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
378
1090
  if (fields) {
379
1091
  localVarQueryParameter['fields'] = fields;
380
1092
  }
1093
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
381
1094
  setSearchParams(localVarUrlObj, localVarQueryParameter);
382
1095
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
383
1096
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -425,6 +1138,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
425
1138
  if (fields) {
426
1139
  localVarQueryParameter['fields'] = fields;
427
1140
  }
1141
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
428
1142
  setSearchParams(localVarUrlObj, localVarQueryParameter);
429
1143
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
430
1144
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -472,6 +1186,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
472
1186
  if (fields) {
473
1187
  localVarQueryParameter['fields'] = fields;
474
1188
  }
1189
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
475
1190
  setSearchParams(localVarUrlObj, localVarQueryParameter);
476
1191
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
477
1192
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -519,6 +1234,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
519
1234
  if (fields) {
520
1235
  localVarQueryParameter['fields'] = fields;
521
1236
  }
1237
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
522
1238
  setSearchParams(localVarUrlObj, localVarQueryParameter);
523
1239
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
524
1240
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -566,6 +1282,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
566
1282
  if (fields) {
567
1283
  localVarQueryParameter['fields'] = fields;
568
1284
  }
1285
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
569
1286
  setSearchParams(localVarUrlObj, localVarQueryParameter);
570
1287
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
571
1288
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -613,6 +1330,43 @@ const LibraryApiAxiosParamCreator = function (configuration) {
613
1330
  if (fields) {
614
1331
  localVarQueryParameter['fields'] = fields;
615
1332
  }
1333
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
1334
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1335
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1336
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1337
+ return {
1338
+ url: toPathString(localVarUrlObj),
1339
+ options: localVarRequestOptions,
1340
+ };
1341
+ },
1342
+ /**
1343
+ *
1344
+ * @summary Gets special features for an item.
1345
+ * @param {string} itemId Item id.
1346
+ * @param {string} [userId] User id.
1347
+ * @param {*} [options] Override http request option.
1348
+ * @throws {RequiredError}
1349
+ */
1350
+ getSpecialFeatures: async (itemId, userId, options = {}) => {
1351
+ // verify required parameter 'itemId' is not null or undefined
1352
+ assertParamExists('getSpecialFeatures', 'itemId', itemId);
1353
+ const localVarPath = `/Items/{itemId}/SpecialFeatures`
1354
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
1355
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1356
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1357
+ let baseOptions;
1358
+ if (configuration) {
1359
+ baseOptions = configuration.baseOptions;
1360
+ }
1361
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1362
+ const localVarHeaderParameter = {};
1363
+ const localVarQueryParameter = {};
1364
+ // authentication CustomAuthentication required
1365
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1366
+ if (userId !== undefined) {
1367
+ localVarQueryParameter['userId'] = userId;
1368
+ }
1369
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
616
1370
  setSearchParams(localVarUrlObj, localVarQueryParameter);
617
1371
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
618
1372
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -660,6 +1414,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
660
1414
  if (sortOrder) {
661
1415
  localVarQueryParameter['sortOrder'] = sortOrder;
662
1416
  }
1417
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
663
1418
  setSearchParams(localVarUrlObj, localVarQueryParameter);
664
1419
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
665
1420
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -707,6 +1462,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
707
1462
  if (sortOrder) {
708
1463
  localVarQueryParameter['sortOrder'] = sortOrder;
709
1464
  }
1465
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
710
1466
  setSearchParams(localVarUrlObj, localVarQueryParameter);
711
1467
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
712
1468
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -754,6 +1510,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
754
1510
  if (sortOrder) {
755
1511
  localVarQueryParameter['sortOrder'] = sortOrder;
756
1512
  }
1513
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
757
1514
  setSearchParams(localVarUrlObj, localVarQueryParameter);
758
1515
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
759
1516
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -789,6 +1546,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
789
1546
  if (imdbId !== undefined) {
790
1547
  localVarQueryParameter['imdbId'] = imdbId;
791
1548
  }
1549
+ localVarHeaderParameter['Accept'] = 'text/html';
792
1550
  setSearchParams(localVarUrlObj, localVarQueryParameter);
793
1551
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
794
1552
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -820,6 +1578,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
820
1578
  if (tvdbId !== undefined) {
821
1579
  localVarQueryParameter['tvdbId'] = tvdbId;
822
1580
  }
1581
+ localVarHeaderParameter['Accept'] = 'text/html';
823
1582
  setSearchParams(localVarUrlObj, localVarQueryParameter);
824
1583
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
825
1584
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -851,6 +1610,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
851
1610
  // authentication CustomAuthentication required
852
1611
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
853
1612
  localVarHeaderParameter['Content-Type'] = 'application/json';
1613
+ localVarHeaderParameter['Accept'] = 'text/html';
854
1614
  setSearchParams(localVarUrlObj, localVarQueryParameter);
855
1615
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
856
1616
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -868,8 +1628,43 @@ const LibraryApiAxiosParamCreator = function (configuration) {
868
1628
  * @param {*} [options] Override http request option.
869
1629
  * @throws {RequiredError}
870
1630
  */
871
- postUpdatedMovies: async (tmdbId, imdbId, options = {}) => {
872
- const localVarPath = `/Library/Movies/Updated`;
1631
+ postUpdatedMovies: async (tmdbId, imdbId, options = {}) => {
1632
+ const localVarPath = `/Library/Movies/Updated`;
1633
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1634
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1635
+ let baseOptions;
1636
+ if (configuration) {
1637
+ baseOptions = configuration.baseOptions;
1638
+ }
1639
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1640
+ const localVarHeaderParameter = {};
1641
+ const localVarQueryParameter = {};
1642
+ // authentication CustomAuthentication required
1643
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1644
+ if (tmdbId !== undefined) {
1645
+ localVarQueryParameter['tmdbId'] = tmdbId;
1646
+ }
1647
+ if (imdbId !== undefined) {
1648
+ localVarQueryParameter['imdbId'] = imdbId;
1649
+ }
1650
+ localVarHeaderParameter['Accept'] = 'text/html';
1651
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1652
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1653
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1654
+ return {
1655
+ url: toPathString(localVarUrlObj),
1656
+ options: localVarRequestOptions,
1657
+ };
1658
+ },
1659
+ /**
1660
+ *
1661
+ * @summary Reports that new episodes of a series have been added by an external source.
1662
+ * @param {string} [tvdbId] The tvdbId.
1663
+ * @param {*} [options] Override http request option.
1664
+ * @throws {RequiredError}
1665
+ */
1666
+ postUpdatedSeries: async (tvdbId, options = {}) => {
1667
+ const localVarPath = `/Library/Series/Updated`;
873
1668
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
874
1669
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
875
1670
  let baseOptions;
@@ -881,12 +1676,10 @@ const LibraryApiAxiosParamCreator = function (configuration) {
881
1676
  const localVarQueryParameter = {};
882
1677
  // authentication CustomAuthentication required
883
1678
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
884
- if (tmdbId !== undefined) {
885
- localVarQueryParameter['tmdbId'] = tmdbId;
886
- }
887
- if (imdbId !== undefined) {
888
- localVarQueryParameter['imdbId'] = imdbId;
1679
+ if (tvdbId !== undefined) {
1680
+ localVarQueryParameter['tvdbId'] = tvdbId;
889
1681
  }
1682
+ localVarHeaderParameter['Accept'] = 'text/html';
890
1683
  setSearchParams(localVarUrlObj, localVarQueryParameter);
891
1684
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
892
1685
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -897,13 +1690,21 @@ const LibraryApiAxiosParamCreator = function (configuration) {
897
1690
  },
898
1691
  /**
899
1692
  *
900
- * @summary Reports that new episodes of a series have been added by an external source.
901
- * @param {string} [tvdbId] The tvdbId.
1693
+ * @summary Refreshes metadata for an item.
1694
+ * @param {string} itemId Item id.
1695
+ * @param {MetadataRefreshMode} [metadataRefreshMode] (Optional) Specifies the metadata refresh mode.
1696
+ * @param {MetadataRefreshMode} [imageRefreshMode] (Optional) Specifies the image refresh mode.
1697
+ * @param {boolean} [replaceAllMetadata] (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh.
1698
+ * @param {boolean} [replaceAllImages] (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh.
1699
+ * @param {boolean} [regenerateTrickplay] (Optional) Determines if trickplay images should be replaced. Only applicable if mode is FullRefresh.
902
1700
  * @param {*} [options] Override http request option.
903
1701
  * @throws {RequiredError}
904
1702
  */
905
- postUpdatedSeries: async (tvdbId, options = {}) => {
906
- const localVarPath = `/Library/Series/Updated`;
1703
+ refreshItem: async (itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, regenerateTrickplay, options = {}) => {
1704
+ // verify required parameter 'itemId' is not null or undefined
1705
+ assertParamExists('refreshItem', 'itemId', itemId);
1706
+ const localVarPath = `/Items/{itemId}/Refresh`
1707
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
907
1708
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
908
1709
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
909
1710
  let baseOptions;
@@ -915,9 +1716,22 @@ const LibraryApiAxiosParamCreator = function (configuration) {
915
1716
  const localVarQueryParameter = {};
916
1717
  // authentication CustomAuthentication required
917
1718
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
918
- if (tvdbId !== undefined) {
919
- localVarQueryParameter['tvdbId'] = tvdbId;
1719
+ if (metadataRefreshMode !== undefined) {
1720
+ localVarQueryParameter['metadataRefreshMode'] = metadataRefreshMode;
1721
+ }
1722
+ if (imageRefreshMode !== undefined) {
1723
+ localVarQueryParameter['imageRefreshMode'] = imageRefreshMode;
1724
+ }
1725
+ if (replaceAllMetadata !== undefined) {
1726
+ localVarQueryParameter['replaceAllMetadata'] = replaceAllMetadata;
1727
+ }
1728
+ if (replaceAllImages !== undefined) {
1729
+ localVarQueryParameter['replaceAllImages'] = replaceAllImages;
920
1730
  }
1731
+ if (regenerateTrickplay !== undefined) {
1732
+ localVarQueryParameter['regenerateTrickplay'] = regenerateTrickplay;
1733
+ }
1734
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
921
1735
  setSearchParams(localVarUrlObj, localVarQueryParameter);
922
1736
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
923
1737
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -945,6 +1759,7 @@ const LibraryApiAxiosParamCreator = function (configuration) {
945
1759
  const localVarQueryParameter = {};
946
1760
  // authentication CustomAuthentication required
947
1761
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1762
+ localVarHeaderParameter['Accept'] = 'text/html';
948
1763
  setSearchParams(localVarUrlObj, localVarQueryParameter);
949
1764
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
950
1765
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -957,7 +1772,6 @@ const LibraryApiAxiosParamCreator = function (configuration) {
957
1772
  };
958
1773
  /**
959
1774
  * LibraryApi - functional programming interface
960
- * @export
961
1775
  */
962
1776
  const LibraryApiFp = function (configuration) {
963
1777
  const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration);
@@ -1007,45 +1821,78 @@ const LibraryApiFp = function (configuration) {
1007
1821
  },
1008
1822
  /**
1009
1823
  *
1010
- * @summary Gets critic review for an item.
1011
- * @param {string} itemId
1824
+ * @summary Downloads item media.
1825
+ * @param {string} itemId The item id.
1012
1826
  * @param {*} [options] Override http request option.
1013
- * @deprecated
1014
1827
  * @throws {RequiredError}
1015
1828
  */
1016
- async getCriticReviews(itemId, options) {
1829
+ async getDownload(itemId, options) {
1017
1830
  var _a, _b, _c;
1018
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCriticReviews(itemId, options);
1831
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDownload(itemId, options);
1019
1832
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1020
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getCriticReviews']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1833
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getDownload']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1021
1834
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1022
1835
  },
1023
1836
  /**
1024
1837
  *
1025
- * @summary Downloads item media.
1838
+ * @summary Get the original file of an item.
1026
1839
  * @param {string} itemId The item id.
1027
1840
  * @param {*} [options] Override http request option.
1028
1841
  * @throws {RequiredError}
1029
1842
  */
1030
- async getDownload(itemId, options) {
1843
+ async getFile(itemId, options) {
1031
1844
  var _a, _b, _c;
1032
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDownload(itemId, options);
1845
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFile(itemId, options);
1033
1846
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1034
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getDownload']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1847
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1035
1848
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1036
1849
  },
1037
1850
  /**
1038
1851
  *
1039
- * @summary Get the original file of an item.
1852
+ * @summary Gets intros to play before the main media item plays.
1853
+ * @param {string} itemId Item id.
1854
+ * @param {string} [userId] User id.
1855
+ * @param {*} [options] Override http request option.
1856
+ * @throws {RequiredError}
1857
+ */
1858
+ async getIntros(itemId, userId, options) {
1859
+ var _a, _b, _c;
1860
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getIntros(itemId, userId, options);
1861
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1862
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getIntros']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1863
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1864
+ },
1865
+ /**
1866
+ *
1867
+ * @summary Gets an item from a user\'s library.
1868
+ * @param {string} itemId Item id.
1869
+ * @param {string} [userId] User id.
1870
+ * @param {*} [options] Override http request option.
1871
+ * @throws {RequiredError}
1872
+ */
1873
+ async getItem(itemId, userId, options) {
1874
+ var _a, _b, _c;
1875
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItem(itemId, userId, options);
1876
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1877
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1878
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1879
+ },
1880
+ /**
1881
+ *
1882
+ * @summary Gets the collections that include the specified item.
1040
1883
  * @param {string} itemId The item id.
1884
+ * @param {string} [userId] Optional. Filter by user id, and attach user data.
1885
+ * @param {number} [startIndex] Optional. The index of the first record in the output.
1886
+ * @param {number} [limit] Optional. The maximum number of records to return.
1887
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
1041
1888
  * @param {*} [options] Override http request option.
1042
1889
  * @throws {RequiredError}
1043
1890
  */
1044
- async getFile(itemId, options) {
1891
+ async getItemCollections(itemId, userId, startIndex, limit, fields, options) {
1045
1892
  var _a, _b, _c;
1046
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFile(itemId, options);
1893
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItemCollections(itemId, userId, startIndex, limit, fields, options);
1047
1894
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1048
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1895
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getItemCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1049
1896
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1050
1897
  },
1051
1898
  /**
@@ -1063,6 +1910,131 @@ const LibraryApiFp = function (configuration) {
1063
1910
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getItemCounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1064
1911
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1065
1912
  },
1913
+ /**
1914
+ *
1915
+ * @summary Gets items based on a query.
1916
+ * @param {string} [userId] The user id supplied as query parameter; this is required when not using an API key.
1917
+ * @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
1918
+ * @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
1919
+ * @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
1920
+ * @param {boolean} [hasSubtitles] Optional filter by items with subtitles.
1921
+ * @param {boolean} [hasSpecialFeature] Optional filter by items with special features.
1922
+ * @param {boolean} [hasTrailer] Optional filter by items with trailers.
1923
+ * @param {string} [adjacentTo] Optional. Return items that are siblings of a supplied item.
1924
+ * @param {number} [indexNumber] Optional filter by index number.
1925
+ * @param {number} [parentIndexNumber] Optional filter by parent index number.
1926
+ * @param {boolean} [hasParentalRating] Optional filter by items that have or do not have a parental rating.
1927
+ * @param {boolean} [isHd] Optional filter by items that are HD or not.
1928
+ * @param {boolean} [is4K] Optional filter by items that are 4K or not.
1929
+ * @param {Array<LocationType>} [locationTypes] Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited.
1930
+ * @param {Array<LocationType>} [excludeLocationTypes] Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited.
1931
+ * @param {boolean} [isMissing] Optional filter by items that are missing episodes or not.
1932
+ * @param {boolean} [isUnaired] Optional filter by items that are unaired episodes or not.
1933
+ * @param {number} [minCommunityRating] Optional filter by minimum community rating.
1934
+ * @param {number} [minCriticRating] Optional filter by minimum critic rating.
1935
+ * @param {string} [minPremiereDate] Optional. The minimum premiere date. Format &#x3D; ISO.
1936
+ * @param {string} [minDateLastSaved] Optional. The minimum last saved date. Format &#x3D; ISO.
1937
+ * @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format &#x3D; ISO.
1938
+ * @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format &#x3D; ISO.
1939
+ * @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
1940
+ * @param {boolean} [hasImdbId] Optional filter by items that have an IMDb id or not.
1941
+ * @param {boolean} [hasTmdbId] Optional filter by items that have a TMDb id or not.
1942
+ * @param {boolean} [hasTvdbId] Optional filter by items that have a TVDb id or not.
1943
+ * @param {boolean} [isMovie] Optional filter for live tv movies.
1944
+ * @param {boolean} [isSeries] Optional filter for live tv series.
1945
+ * @param {boolean} [isNews] Optional filter for live tv news.
1946
+ * @param {boolean} [isKids] Optional filter for live tv kids.
1947
+ * @param {boolean} [isSports] Optional filter for live tv sports.
1948
+ * @param {Array<string>} [excludeItemIds] Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited.
1949
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
1950
+ * @param {number} [limit] Optional. The maximum number of records to return.
1951
+ * @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
1952
+ * @param {string} [searchTerm] Optional. Filter based on a search term.
1953
+ * @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending, Descending.
1954
+ * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
1955
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
1956
+ * @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
1957
+ * @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited.
1958
+ * @param {Array<ItemFilter>} [filters] Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes.
1959
+ * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not.
1960
+ * @param {Array<MediaType>} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited.
1961
+ * @param {Array<ImageType>} [imageTypes] Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited.
1962
+ * @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
1963
+ * @param {boolean} [isPlayed] Optional filter by items that are played, or not.
1964
+ * @param {Array<string>} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited.
1965
+ * @param {Array<string>} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited.
1966
+ * @param {Array<string>} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited.
1967
+ * @param {Array<number>} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited.
1968
+ * @param {boolean} [enableUserData] Optional, include user data.
1969
+ * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
1970
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
1971
+ * @param {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person.
1972
+ * @param {Array<string>} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person id.
1973
+ * @param {Array<string>} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited.
1974
+ * @param {Array<string>} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited.
1975
+ * @param {Array<string>} [artists] Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited.
1976
+ * @param {Array<string>} [excludeArtistIds] Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited.
1977
+ * @param {Array<string>} [artistIds] Optional. If specified, results will be filtered to include only those containing the specified artist id.
1978
+ * @param {Array<string>} [albumArtistIds] Optional. If specified, results will be filtered to include only those containing the specified album artist id.
1979
+ * @param {Array<string>} [contributingArtistIds] Optional. If specified, results will be filtered to include only those containing the specified contributing artist id.
1980
+ * @param {Array<string>} [albums] Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited.
1981
+ * @param {Array<string>} [albumIds] Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited.
1982
+ * @param {Array<string>} [ids] Optional. If specific items are needed, specify a list of item id\&#39;s to retrieve. This allows multiple, comma delimited.
1983
+ * @param {Array<VideoType>} [videoTypes] Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited.
1984
+ * @param {string} [minOfficialRating] Optional filter by minimum official rating (PG, PG-13, TV-MA, etc).
1985
+ * @param {boolean} [isLocked] Optional filter by items that are locked.
1986
+ * @param {boolean} [isPlaceHolder] Optional filter by items that are placeholders.
1987
+ * @param {boolean} [hasOfficialRating] Optional filter by items that have official ratings.
1988
+ * @param {boolean} [collapseBoxSetItems] Whether or not to hide items behind their boxsets.
1989
+ * @param {number} [minWidth] Optional. Filter by the minimum width of the item.
1990
+ * @param {number} [minHeight] Optional. Filter by the minimum height of the item.
1991
+ * @param {number} [maxWidth] Optional. Filter by the maximum width of the item.
1992
+ * @param {number} [maxHeight] Optional. Filter by the maximum height of the item.
1993
+ * @param {boolean} [is3D] Optional filter by items that are 3D, or not.
1994
+ * @param {Array<SeriesStatus>} [seriesStatus] Optional filter by Series Status. Allows multiple, comma delimited.
1995
+ * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string.
1996
+ * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string.
1997
+ * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string.
1998
+ * @param {Array<string>} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited.
1999
+ * @param {Array<string>} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited.
2000
+ * @param {Array<string>} [audioLanguages] Optional. If specified, results will be filtered based on audio language. This allows multiple, comma delimited values.
2001
+ * @param {Array<string>} [subtitleLanguages] Optional. If specified, results will be filtered based on subtitle language. This allows multiple, comma delimited values.
2002
+ * @param {boolean} [enableTotalRecordCount] Optional. Enable the total record count.
2003
+ * @param {boolean} [enableImages] Optional, include image information in output.
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ */
2007
+ async getItems(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, indexNumber, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, audioLanguages, subtitleLanguages, enableTotalRecordCount, enableImages, options) {
2008
+ var _a, _b, _c;
2009
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItems(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, indexNumber, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, audioLanguages, subtitleLanguages, enableTotalRecordCount, enableImages, options);
2010
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2011
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2012
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2013
+ },
2014
+ /**
2015
+ *
2016
+ * @summary Gets latest media.
2017
+ * @param {string} [userId] User id.
2018
+ * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
2019
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
2020
+ * @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
2021
+ * @param {boolean} [isPlayed] Filter by items that are played, or not.
2022
+ * @param {boolean} [enableImages] Optional. include image information in output.
2023
+ * @param {number} [imageTypeLimit] Optional. the max number of images to return, per image type.
2024
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
2025
+ * @param {boolean} [enableUserData] Optional. include user data.
2026
+ * @param {number} [limit] Return item limit.
2027
+ * @param {boolean} [groupItems] Whether or not to group items into a parent container.
2028
+ * @param {*} [options] Override http request option.
2029
+ * @throws {RequiredError}
2030
+ */
2031
+ async getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options) {
2032
+ var _a, _b, _c;
2033
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options);
2034
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2035
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getLatestMedia']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2036
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2037
+ },
1066
2038
  /**
1067
2039
  *
1068
2040
  * @summary Gets the library options info.
@@ -1078,6 +2050,21 @@ const LibraryApiFp = function (configuration) {
1078
2050
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getLibraryOptionsInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1079
2051
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1080
2052
  },
2053
+ /**
2054
+ *
2055
+ * @summary Gets local trailers for an item.
2056
+ * @param {string} itemId Item id.
2057
+ * @param {string} [userId] User id.
2058
+ * @param {*} [options] Override http request option.
2059
+ * @throws {RequiredError}
2060
+ */
2061
+ async getLocalTrailers(itemId, userId, options) {
2062
+ var _a, _b, _c;
2063
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLocalTrailers(itemId, userId, options);
2064
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2065
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getLocalTrailers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2066
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2067
+ },
1081
2068
  /**
1082
2069
  *
1083
2070
  * @summary Gets all user media folders.
@@ -1105,6 +2092,48 @@ const LibraryApiFp = function (configuration) {
1105
2092
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getPhysicalPaths']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1106
2093
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1107
2094
  },
2095
+ /**
2096
+ *
2097
+ * @summary Gets items based on a query.
2098
+ * @param {string} [userId] The user id.
2099
+ * @param {number} [startIndex] The start index.
2100
+ * @param {number} [limit] The item limit.
2101
+ * @param {string} [searchTerm] The search term.
2102
+ * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
2103
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
2104
+ * @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited.
2105
+ * @param {boolean} [enableUserData] Optional. Include user data.
2106
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
2107
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
2108
+ * @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
2109
+ * @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited.
2110
+ * @param {boolean} [enableTotalRecordCount] Optional. Enable the total record count.
2111
+ * @param {boolean} [enableImages] Optional. Include image information in output.
2112
+ * @param {boolean} [excludeActiveSessions] Optional. Whether to exclude the currently active sessions.
2113
+ * @param {*} [options] Override http request option.
2114
+ * @throws {RequiredError}
2115
+ */
2116
+ async getResumeItems(userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options) {
2117
+ var _a, _b, _c;
2118
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getResumeItems(userId, startIndex, limit, searchTerm, parentId, fields, mediaTypes, enableUserData, imageTypeLimit, enableImageTypes, excludeItemTypes, includeItemTypes, enableTotalRecordCount, enableImages, excludeActiveSessions, options);
2119
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2120
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getResumeItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2121
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2122
+ },
2123
+ /**
2124
+ *
2125
+ * @summary Gets the root folder from a user\'s library.
2126
+ * @param {string} [userId] User id.
2127
+ * @param {*} [options] Override http request option.
2128
+ * @throws {RequiredError}
2129
+ */
2130
+ async getRootFolder(userId, options) {
2131
+ var _a, _b, _c;
2132
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRootFolder(userId, options);
2133
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2134
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getRootFolder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2135
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2136
+ },
1108
2137
  /**
1109
2138
  *
1110
2139
  * @summary Gets similar items.
@@ -1213,6 +2242,21 @@ const LibraryApiFp = function (configuration) {
1213
2242
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSimilarTrailers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1214
2243
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1215
2244
  },
2245
+ /**
2246
+ *
2247
+ * @summary Gets special features for an item.
2248
+ * @param {string} itemId Item id.
2249
+ * @param {string} [userId] User id.
2250
+ * @param {*} [options] Override http request option.
2251
+ * @throws {RequiredError}
2252
+ */
2253
+ async getSpecialFeatures(itemId, userId, options) {
2254
+ var _a, _b, _c;
2255
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSpecialFeatures(itemId, userId, options);
2256
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2257
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.getSpecialFeatures']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2258
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2259
+ },
1216
2260
  /**
1217
2261
  *
1218
2262
  * @summary Get theme songs and videos for an item.
@@ -1339,6 +2383,25 @@ const LibraryApiFp = function (configuration) {
1339
2383
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.postUpdatedSeries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1340
2384
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1341
2385
  },
2386
+ /**
2387
+ *
2388
+ * @summary Refreshes metadata for an item.
2389
+ * @param {string} itemId Item id.
2390
+ * @param {MetadataRefreshMode} [metadataRefreshMode] (Optional) Specifies the metadata refresh mode.
2391
+ * @param {MetadataRefreshMode} [imageRefreshMode] (Optional) Specifies the image refresh mode.
2392
+ * @param {boolean} [replaceAllMetadata] (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh.
2393
+ * @param {boolean} [replaceAllImages] (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh.
2394
+ * @param {boolean} [regenerateTrickplay] (Optional) Determines if trickplay images should be replaced. Only applicable if mode is FullRefresh.
2395
+ * @param {*} [options] Override http request option.
2396
+ * @throws {RequiredError}
2397
+ */
2398
+ async refreshItem(itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, regenerateTrickplay, options) {
2399
+ var _a, _b, _c;
2400
+ const localVarAxiosArgs = await localVarAxiosParamCreator.refreshItem(itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, regenerateTrickplay, options);
2401
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2402
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LibraryApi.refreshItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2403
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2404
+ },
1342
2405
  /**
1343
2406
  *
1344
2407
  * @summary Starts a library scan.
@@ -1356,7 +2419,6 @@ const LibraryApiFp = function (configuration) {
1356
2419
  };
1357
2420
  /**
1358
2421
  * LibraryApi - factory interface
1359
- * @export
1360
2422
  */
1361
2423
  const LibraryApiFactory = function (configuration, basePath, axios) {
1362
2424
  const localVarFp = LibraryApiFp(configuration);
@@ -1391,17 +2453,6 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
1391
2453
  getAncestors(requestParameters, options) {
1392
2454
  return localVarFp.getAncestors(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
1393
2455
  },
1394
- /**
1395
- *
1396
- * @summary Gets critic review for an item.
1397
- * @param {LibraryApiGetCriticReviewsRequest} requestParameters Request parameters.
1398
- * @param {*} [options] Override http request option.
1399
- * @deprecated
1400
- * @throws {RequiredError}
1401
- */
1402
- getCriticReviews(requestParameters, options) {
1403
- return localVarFp.getCriticReviews(requestParameters.itemId, options).then((request) => request(axios, basePath));
1404
- },
1405
2456
  /**
1406
2457
  *
1407
2458
  * @summary Downloads item media.
@@ -1422,6 +2473,36 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
1422
2473
  getFile(requestParameters, options) {
1423
2474
  return localVarFp.getFile(requestParameters.itemId, options).then((request) => request(axios, basePath));
1424
2475
  },
2476
+ /**
2477
+ *
2478
+ * @summary Gets intros to play before the main media item plays.
2479
+ * @param {LibraryApiGetIntrosRequest} requestParameters Request parameters.
2480
+ * @param {*} [options] Override http request option.
2481
+ * @throws {RequiredError}
2482
+ */
2483
+ getIntros(requestParameters, options) {
2484
+ return localVarFp.getIntros(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
2485
+ },
2486
+ /**
2487
+ *
2488
+ * @summary Gets an item from a user\'s library.
2489
+ * @param {LibraryApiGetItemRequest} requestParameters Request parameters.
2490
+ * @param {*} [options] Override http request option.
2491
+ * @throws {RequiredError}
2492
+ */
2493
+ getItem(requestParameters, options) {
2494
+ return localVarFp.getItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
2495
+ },
2496
+ /**
2497
+ *
2498
+ * @summary Gets the collections that include the specified item.
2499
+ * @param {LibraryApiGetItemCollectionsRequest} requestParameters Request parameters.
2500
+ * @param {*} [options] Override http request option.
2501
+ * @throws {RequiredError}
2502
+ */
2503
+ getItemCollections(requestParameters, options) {
2504
+ return localVarFp.getItemCollections(requestParameters.itemId, requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
2505
+ },
1425
2506
  /**
1426
2507
  *
1427
2508
  * @summary Get item counts.
@@ -1432,6 +2513,26 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
1432
2513
  getItemCounts(requestParameters = {}, options) {
1433
2514
  return localVarFp.getItemCounts(requestParameters.userId, requestParameters.isFavorite, options).then((request) => request(axios, basePath));
1434
2515
  },
2516
+ /**
2517
+ *
2518
+ * @summary Gets items based on a query.
2519
+ * @param {LibraryApiGetItemsRequest} requestParameters Request parameters.
2520
+ * @param {*} [options] Override http request option.
2521
+ * @throws {RequiredError}
2522
+ */
2523
+ getItems(requestParameters = {}, options) {
2524
+ return localVarFp.getItems(requestParameters.userId, requestParameters.maxOfficialRating, requestParameters.hasThemeSong, requestParameters.hasThemeVideo, requestParameters.hasSubtitles, requestParameters.hasSpecialFeature, requestParameters.hasTrailer, requestParameters.adjacentTo, requestParameters.indexNumber, requestParameters.parentIndexNumber, requestParameters.hasParentalRating, requestParameters.isHd, requestParameters.is4K, requestParameters.locationTypes, requestParameters.excludeLocationTypes, requestParameters.isMissing, requestParameters.isUnaired, requestParameters.minCommunityRating, requestParameters.minCriticRating, requestParameters.minPremiereDate, requestParameters.minDateLastSaved, requestParameters.minDateLastSavedForUser, requestParameters.maxPremiereDate, requestParameters.hasOverview, requestParameters.hasImdbId, requestParameters.hasTmdbId, requestParameters.hasTvdbId, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.excludeItemIds, requestParameters.startIndex, requestParameters.limit, requestParameters.recursive, requestParameters.searchTerm, requestParameters.sortOrder, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.filters, requestParameters.isFavorite, requestParameters.mediaTypes, requestParameters.imageTypes, requestParameters.sortBy, requestParameters.isPlayed, requestParameters.genres, requestParameters.officialRatings, requestParameters.tags, requestParameters.years, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.person, requestParameters.personIds, requestParameters.personTypes, requestParameters.studios, requestParameters.artists, requestParameters.excludeArtistIds, requestParameters.artistIds, requestParameters.albumArtistIds, requestParameters.contributingArtistIds, requestParameters.albums, requestParameters.albumIds, requestParameters.ids, requestParameters.videoTypes, requestParameters.minOfficialRating, requestParameters.isLocked, requestParameters.isPlaceHolder, requestParameters.hasOfficialRating, requestParameters.collapseBoxSetItems, requestParameters.minWidth, requestParameters.minHeight, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.is3D, requestParameters.seriesStatus, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.studioIds, requestParameters.genreIds, requestParameters.audioLanguages, requestParameters.subtitleLanguages, requestParameters.enableTotalRecordCount, requestParameters.enableImages, options).then((request) => request(axios, basePath));
2525
+ },
2526
+ /**
2527
+ *
2528
+ * @summary Gets latest media.
2529
+ * @param {LibraryApiGetLatestMediaRequest} requestParameters Request parameters.
2530
+ * @param {*} [options] Override http request option.
2531
+ * @throws {RequiredError}
2532
+ */
2533
+ getLatestMedia(requestParameters = {}, options) {
2534
+ return localVarFp.getLatestMedia(requestParameters.userId, requestParameters.parentId, requestParameters.fields, requestParameters.includeItemTypes, requestParameters.isPlayed, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.enableUserData, requestParameters.limit, requestParameters.groupItems, options).then((request) => request(axios, basePath));
2535
+ },
1435
2536
  /**
1436
2537
  *
1437
2538
  * @summary Gets the library options info.
@@ -1442,6 +2543,16 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
1442
2543
  getLibraryOptionsInfo(requestParameters = {}, options) {
1443
2544
  return localVarFp.getLibraryOptionsInfo(requestParameters.libraryContentType, requestParameters.isNewLibrary, options).then((request) => request(axios, basePath));
1444
2545
  },
2546
+ /**
2547
+ *
2548
+ * @summary Gets local trailers for an item.
2549
+ * @param {LibraryApiGetLocalTrailersRequest} requestParameters Request parameters.
2550
+ * @param {*} [options] Override http request option.
2551
+ * @throws {RequiredError}
2552
+ */
2553
+ getLocalTrailers(requestParameters, options) {
2554
+ return localVarFp.getLocalTrailers(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
2555
+ },
1445
2556
  /**
1446
2557
  *
1447
2558
  * @summary Gets all user media folders.
@@ -1461,6 +2572,26 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
1461
2572
  getPhysicalPaths(options) {
1462
2573
  return localVarFp.getPhysicalPaths(options).then((request) => request(axios, basePath));
1463
2574
  },
2575
+ /**
2576
+ *
2577
+ * @summary Gets items based on a query.
2578
+ * @param {LibraryApiGetResumeItemsRequest} requestParameters Request parameters.
2579
+ * @param {*} [options] Override http request option.
2580
+ * @throws {RequiredError}
2581
+ */
2582
+ getResumeItems(requestParameters = {}, options) {
2583
+ return localVarFp.getResumeItems(requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.searchTerm, requestParameters.parentId, requestParameters.fields, requestParameters.mediaTypes, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.enableTotalRecordCount, requestParameters.enableImages, requestParameters.excludeActiveSessions, options).then((request) => request(axios, basePath));
2584
+ },
2585
+ /**
2586
+ *
2587
+ * @summary Gets the root folder from a user\'s library.
2588
+ * @param {LibraryApiGetRootFolderRequest} requestParameters Request parameters.
2589
+ * @param {*} [options] Override http request option.
2590
+ * @throws {RequiredError}
2591
+ */
2592
+ getRootFolder(requestParameters = {}, options) {
2593
+ return localVarFp.getRootFolder(requestParameters.userId, options).then((request) => request(axios, basePath));
2594
+ },
1464
2595
  /**
1465
2596
  *
1466
2597
  * @summary Gets similar items.
@@ -1521,6 +2652,16 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
1521
2652
  getSimilarTrailers(requestParameters, options) {
1522
2653
  return localVarFp.getSimilarTrailers(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(axios, basePath));
1523
2654
  },
2655
+ /**
2656
+ *
2657
+ * @summary Gets special features for an item.
2658
+ * @param {LibraryApiGetSpecialFeaturesRequest} requestParameters Request parameters.
2659
+ * @param {*} [options] Override http request option.
2660
+ * @throws {RequiredError}
2661
+ */
2662
+ getSpecialFeatures(requestParameters, options) {
2663
+ return localVarFp.getSpecialFeatures(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
2664
+ },
1524
2665
  /**
1525
2666
  *
1526
2667
  * @summary Get theme songs and videos for an item.
@@ -1601,6 +2742,16 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
1601
2742
  postUpdatedSeries(requestParameters = {}, options) {
1602
2743
  return localVarFp.postUpdatedSeries(requestParameters.tvdbId, options).then((request) => request(axios, basePath));
1603
2744
  },
2745
+ /**
2746
+ *
2747
+ * @summary Refreshes metadata for an item.
2748
+ * @param {LibraryApiRefreshItemRequest} requestParameters Request parameters.
2749
+ * @param {*} [options] Override http request option.
2750
+ * @throws {RequiredError}
2751
+ */
2752
+ refreshItem(requestParameters, options) {
2753
+ return localVarFp.refreshItem(requestParameters.itemId, requestParameters.metadataRefreshMode, requestParameters.imageRefreshMode, requestParameters.replaceAllMetadata, requestParameters.replaceAllImages, requestParameters.regenerateTrickplay, options).then((request) => request(axios, basePath));
2754
+ },
1604
2755
  /**
1605
2756
  *
1606
2757
  * @summary Starts a library scan.
@@ -1614,9 +2765,6 @@ const LibraryApiFactory = function (configuration, basePath, axios) {
1614
2765
  };
1615
2766
  /**
1616
2767
  * LibraryApi - object-oriented interface
1617
- * @export
1618
- * @class LibraryApi
1619
- * @extends {BaseAPI}
1620
2768
  */
1621
2769
  class LibraryApi extends BaseAPI {
1622
2770
  /**
@@ -1625,7 +2773,6 @@ class LibraryApi extends BaseAPI {
1625
2773
  * @param {LibraryApiDeleteItemRequest} requestParameters Request parameters.
1626
2774
  * @param {*} [options] Override http request option.
1627
2775
  * @throws {RequiredError}
1628
- * @memberof LibraryApi
1629
2776
  */
1630
2777
  deleteItem(requestParameters, options) {
1631
2778
  return LibraryApiFp(this.configuration).deleteItem(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
@@ -1636,7 +2783,6 @@ class LibraryApi extends BaseAPI {
1636
2783
  * @param {LibraryApiDeleteItemsRequest} requestParameters Request parameters.
1637
2784
  * @param {*} [options] Override http request option.
1638
2785
  * @throws {RequiredError}
1639
- * @memberof LibraryApi
1640
2786
  */
1641
2787
  deleteItems(requestParameters = {}, options) {
1642
2788
  return LibraryApiFp(this.configuration).deleteItems(requestParameters.ids, options).then((request) => request(this.axios, this.basePath));
@@ -1647,30 +2793,16 @@ class LibraryApi extends BaseAPI {
1647
2793
  * @param {LibraryApiGetAncestorsRequest} requestParameters Request parameters.
1648
2794
  * @param {*} [options] Override http request option.
1649
2795
  * @throws {RequiredError}
1650
- * @memberof LibraryApi
1651
2796
  */
1652
2797
  getAncestors(requestParameters, options) {
1653
2798
  return LibraryApiFp(this.configuration).getAncestors(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
1654
2799
  }
1655
- /**
1656
- *
1657
- * @summary Gets critic review for an item.
1658
- * @param {LibraryApiGetCriticReviewsRequest} requestParameters Request parameters.
1659
- * @param {*} [options] Override http request option.
1660
- * @deprecated
1661
- * @throws {RequiredError}
1662
- * @memberof LibraryApi
1663
- */
1664
- getCriticReviews(requestParameters, options) {
1665
- return LibraryApiFp(this.configuration).getCriticReviews(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
1666
- }
1667
2800
  /**
1668
2801
  *
1669
2802
  * @summary Downloads item media.
1670
2803
  * @param {LibraryApiGetDownloadRequest} requestParameters Request parameters.
1671
2804
  * @param {*} [options] Override http request option.
1672
2805
  * @throws {RequiredError}
1673
- * @memberof LibraryApi
1674
2806
  */
1675
2807
  getDownload(requestParameters, options) {
1676
2808
  return LibraryApiFp(this.configuration).getDownload(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
@@ -1681,40 +2813,96 @@ class LibraryApi extends BaseAPI {
1681
2813
  * @param {LibraryApiGetFileRequest} requestParameters Request parameters.
1682
2814
  * @param {*} [options] Override http request option.
1683
2815
  * @throws {RequiredError}
1684
- * @memberof LibraryApi
1685
2816
  */
1686
2817
  getFile(requestParameters, options) {
1687
2818
  return LibraryApiFp(this.configuration).getFile(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
1688
2819
  }
2820
+ /**
2821
+ *
2822
+ * @summary Gets intros to play before the main media item plays.
2823
+ * @param {LibraryApiGetIntrosRequest} requestParameters Request parameters.
2824
+ * @param {*} [options] Override http request option.
2825
+ * @throws {RequiredError}
2826
+ */
2827
+ getIntros(requestParameters, options) {
2828
+ return LibraryApiFp(this.configuration).getIntros(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2829
+ }
2830
+ /**
2831
+ *
2832
+ * @summary Gets an item from a user\'s library.
2833
+ * @param {LibraryApiGetItemRequest} requestParameters Request parameters.
2834
+ * @param {*} [options] Override http request option.
2835
+ * @throws {RequiredError}
2836
+ */
2837
+ getItem(requestParameters, options) {
2838
+ return LibraryApiFp(this.configuration).getItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2839
+ }
2840
+ /**
2841
+ *
2842
+ * @summary Gets the collections that include the specified item.
2843
+ * @param {LibraryApiGetItemCollectionsRequest} requestParameters Request parameters.
2844
+ * @param {*} [options] Override http request option.
2845
+ * @throws {RequiredError}
2846
+ */
2847
+ getItemCollections(requestParameters, options) {
2848
+ return LibraryApiFp(this.configuration).getItemCollections(requestParameters.itemId, requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
2849
+ }
1689
2850
  /**
1690
2851
  *
1691
2852
  * @summary Get item counts.
1692
2853
  * @param {LibraryApiGetItemCountsRequest} requestParameters Request parameters.
1693
2854
  * @param {*} [options] Override http request option.
1694
2855
  * @throws {RequiredError}
1695
- * @memberof LibraryApi
1696
2856
  */
1697
2857
  getItemCounts(requestParameters = {}, options) {
1698
2858
  return LibraryApiFp(this.configuration).getItemCounts(requestParameters.userId, requestParameters.isFavorite, options).then((request) => request(this.axios, this.basePath));
1699
2859
  }
2860
+ /**
2861
+ *
2862
+ * @summary Gets items based on a query.
2863
+ * @param {LibraryApiGetItemsRequest} requestParameters Request parameters.
2864
+ * @param {*} [options] Override http request option.
2865
+ * @throws {RequiredError}
2866
+ */
2867
+ getItems(requestParameters = {}, options) {
2868
+ return LibraryApiFp(this.configuration).getItems(requestParameters.userId, requestParameters.maxOfficialRating, requestParameters.hasThemeSong, requestParameters.hasThemeVideo, requestParameters.hasSubtitles, requestParameters.hasSpecialFeature, requestParameters.hasTrailer, requestParameters.adjacentTo, requestParameters.indexNumber, requestParameters.parentIndexNumber, requestParameters.hasParentalRating, requestParameters.isHd, requestParameters.is4K, requestParameters.locationTypes, requestParameters.excludeLocationTypes, requestParameters.isMissing, requestParameters.isUnaired, requestParameters.minCommunityRating, requestParameters.minCriticRating, requestParameters.minPremiereDate, requestParameters.minDateLastSaved, requestParameters.minDateLastSavedForUser, requestParameters.maxPremiereDate, requestParameters.hasOverview, requestParameters.hasImdbId, requestParameters.hasTmdbId, requestParameters.hasTvdbId, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.excludeItemIds, requestParameters.startIndex, requestParameters.limit, requestParameters.recursive, requestParameters.searchTerm, requestParameters.sortOrder, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.filters, requestParameters.isFavorite, requestParameters.mediaTypes, requestParameters.imageTypes, requestParameters.sortBy, requestParameters.isPlayed, requestParameters.genres, requestParameters.officialRatings, requestParameters.tags, requestParameters.years, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.person, requestParameters.personIds, requestParameters.personTypes, requestParameters.studios, requestParameters.artists, requestParameters.excludeArtistIds, requestParameters.artistIds, requestParameters.albumArtistIds, requestParameters.contributingArtistIds, requestParameters.albums, requestParameters.albumIds, requestParameters.ids, requestParameters.videoTypes, requestParameters.minOfficialRating, requestParameters.isLocked, requestParameters.isPlaceHolder, requestParameters.hasOfficialRating, requestParameters.collapseBoxSetItems, requestParameters.minWidth, requestParameters.minHeight, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.is3D, requestParameters.seriesStatus, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.studioIds, requestParameters.genreIds, requestParameters.audioLanguages, requestParameters.subtitleLanguages, requestParameters.enableTotalRecordCount, requestParameters.enableImages, options).then((request) => request(this.axios, this.basePath));
2869
+ }
2870
+ /**
2871
+ *
2872
+ * @summary Gets latest media.
2873
+ * @param {LibraryApiGetLatestMediaRequest} requestParameters Request parameters.
2874
+ * @param {*} [options] Override http request option.
2875
+ * @throws {RequiredError}
2876
+ */
2877
+ getLatestMedia(requestParameters = {}, options) {
2878
+ return LibraryApiFp(this.configuration).getLatestMedia(requestParameters.userId, requestParameters.parentId, requestParameters.fields, requestParameters.includeItemTypes, requestParameters.isPlayed, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.enableUserData, requestParameters.limit, requestParameters.groupItems, options).then((request) => request(this.axios, this.basePath));
2879
+ }
1700
2880
  /**
1701
2881
  *
1702
2882
  * @summary Gets the library options info.
1703
2883
  * @param {LibraryApiGetLibraryOptionsInfoRequest} requestParameters Request parameters.
1704
2884
  * @param {*} [options] Override http request option.
1705
2885
  * @throws {RequiredError}
1706
- * @memberof LibraryApi
1707
2886
  */
1708
2887
  getLibraryOptionsInfo(requestParameters = {}, options) {
1709
2888
  return LibraryApiFp(this.configuration).getLibraryOptionsInfo(requestParameters.libraryContentType, requestParameters.isNewLibrary, options).then((request) => request(this.axios, this.basePath));
1710
2889
  }
2890
+ /**
2891
+ *
2892
+ * @summary Gets local trailers for an item.
2893
+ * @param {LibraryApiGetLocalTrailersRequest} requestParameters Request parameters.
2894
+ * @param {*} [options] Override http request option.
2895
+ * @throws {RequiredError}
2896
+ */
2897
+ getLocalTrailers(requestParameters, options) {
2898
+ return LibraryApiFp(this.configuration).getLocalTrailers(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2899
+ }
1711
2900
  /**
1712
2901
  *
1713
2902
  * @summary Gets all user media folders.
1714
2903
  * @param {LibraryApiGetMediaFoldersRequest} requestParameters Request parameters.
1715
2904
  * @param {*} [options] Override http request option.
1716
2905
  * @throws {RequiredError}
1717
- * @memberof LibraryApi
1718
2906
  */
1719
2907
  getMediaFolders(requestParameters = {}, options) {
1720
2908
  return LibraryApiFp(this.configuration).getMediaFolders(requestParameters.isHidden, options).then((request) => request(this.axios, this.basePath));
@@ -1724,18 +2912,36 @@ class LibraryApi extends BaseAPI {
1724
2912
  * @summary Gets a list of physical paths from virtual folders.
1725
2913
  * @param {*} [options] Override http request option.
1726
2914
  * @throws {RequiredError}
1727
- * @memberof LibraryApi
1728
2915
  */
1729
2916
  getPhysicalPaths(options) {
1730
2917
  return LibraryApiFp(this.configuration).getPhysicalPaths(options).then((request) => request(this.axios, this.basePath));
1731
2918
  }
2919
+ /**
2920
+ *
2921
+ * @summary Gets items based on a query.
2922
+ * @param {LibraryApiGetResumeItemsRequest} requestParameters Request parameters.
2923
+ * @param {*} [options] Override http request option.
2924
+ * @throws {RequiredError}
2925
+ */
2926
+ getResumeItems(requestParameters = {}, options) {
2927
+ return LibraryApiFp(this.configuration).getResumeItems(requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.searchTerm, requestParameters.parentId, requestParameters.fields, requestParameters.mediaTypes, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.enableTotalRecordCount, requestParameters.enableImages, requestParameters.excludeActiveSessions, options).then((request) => request(this.axios, this.basePath));
2928
+ }
2929
+ /**
2930
+ *
2931
+ * @summary Gets the root folder from a user\'s library.
2932
+ * @param {LibraryApiGetRootFolderRequest} requestParameters Request parameters.
2933
+ * @param {*} [options] Override http request option.
2934
+ * @throws {RequiredError}
2935
+ */
2936
+ getRootFolder(requestParameters = {}, options) {
2937
+ return LibraryApiFp(this.configuration).getRootFolder(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
2938
+ }
1732
2939
  /**
1733
2940
  *
1734
2941
  * @summary Gets similar items.
1735
2942
  * @param {LibraryApiGetSimilarAlbumsRequest} requestParameters Request parameters.
1736
2943
  * @param {*} [options] Override http request option.
1737
2944
  * @throws {RequiredError}
1738
- * @memberof LibraryApi
1739
2945
  */
1740
2946
  getSimilarAlbums(requestParameters, options) {
1741
2947
  return LibraryApiFp(this.configuration).getSimilarAlbums(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
@@ -1746,7 +2952,6 @@ class LibraryApi extends BaseAPI {
1746
2952
  * @param {LibraryApiGetSimilarArtistsRequest} requestParameters Request parameters.
1747
2953
  * @param {*} [options] Override http request option.
1748
2954
  * @throws {RequiredError}
1749
- * @memberof LibraryApi
1750
2955
  */
1751
2956
  getSimilarArtists(requestParameters, options) {
1752
2957
  return LibraryApiFp(this.configuration).getSimilarArtists(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
@@ -1757,7 +2962,6 @@ class LibraryApi extends BaseAPI {
1757
2962
  * @param {LibraryApiGetSimilarItemsRequest} requestParameters Request parameters.
1758
2963
  * @param {*} [options] Override http request option.
1759
2964
  * @throws {RequiredError}
1760
- * @memberof LibraryApi
1761
2965
  */
1762
2966
  getSimilarItems(requestParameters, options) {
1763
2967
  return LibraryApiFp(this.configuration).getSimilarItems(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
@@ -1768,7 +2972,6 @@ class LibraryApi extends BaseAPI {
1768
2972
  * @param {LibraryApiGetSimilarMoviesRequest} requestParameters Request parameters.
1769
2973
  * @param {*} [options] Override http request option.
1770
2974
  * @throws {RequiredError}
1771
- * @memberof LibraryApi
1772
2975
  */
1773
2976
  getSimilarMovies(requestParameters, options) {
1774
2977
  return LibraryApiFp(this.configuration).getSimilarMovies(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
@@ -1779,7 +2982,6 @@ class LibraryApi extends BaseAPI {
1779
2982
  * @param {LibraryApiGetSimilarShowsRequest} requestParameters Request parameters.
1780
2983
  * @param {*} [options] Override http request option.
1781
2984
  * @throws {RequiredError}
1782
- * @memberof LibraryApi
1783
2985
  */
1784
2986
  getSimilarShows(requestParameters, options) {
1785
2987
  return LibraryApiFp(this.configuration).getSimilarShows(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
@@ -1790,18 +2992,26 @@ class LibraryApi extends BaseAPI {
1790
2992
  * @param {LibraryApiGetSimilarTrailersRequest} requestParameters Request parameters.
1791
2993
  * @param {*} [options] Override http request option.
1792
2994
  * @throws {RequiredError}
1793
- * @memberof LibraryApi
1794
2995
  */
1795
2996
  getSimilarTrailers(requestParameters, options) {
1796
2997
  return LibraryApiFp(this.configuration).getSimilarTrailers(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
1797
2998
  }
2999
+ /**
3000
+ *
3001
+ * @summary Gets special features for an item.
3002
+ * @param {LibraryApiGetSpecialFeaturesRequest} requestParameters Request parameters.
3003
+ * @param {*} [options] Override http request option.
3004
+ * @throws {RequiredError}
3005
+ */
3006
+ getSpecialFeatures(requestParameters, options) {
3007
+ return LibraryApiFp(this.configuration).getSpecialFeatures(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
3008
+ }
1798
3009
  /**
1799
3010
  *
1800
3011
  * @summary Get theme songs and videos for an item.
1801
3012
  * @param {LibraryApiGetThemeMediaRequest} requestParameters Request parameters.
1802
3013
  * @param {*} [options] Override http request option.
1803
3014
  * @throws {RequiredError}
1804
- * @memberof LibraryApi
1805
3015
  */
1806
3016
  getThemeMedia(requestParameters, options) {
1807
3017
  return LibraryApiFp(this.configuration).getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
@@ -1812,7 +3022,6 @@ class LibraryApi extends BaseAPI {
1812
3022
  * @param {LibraryApiGetThemeSongsRequest} requestParameters Request parameters.
1813
3023
  * @param {*} [options] Override http request option.
1814
3024
  * @throws {RequiredError}
1815
- * @memberof LibraryApi
1816
3025
  */
1817
3026
  getThemeSongs(requestParameters, options) {
1818
3027
  return LibraryApiFp(this.configuration).getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
@@ -1823,7 +3032,6 @@ class LibraryApi extends BaseAPI {
1823
3032
  * @param {LibraryApiGetThemeVideosRequest} requestParameters Request parameters.
1824
3033
  * @param {*} [options] Override http request option.
1825
3034
  * @throws {RequiredError}
1826
- * @memberof LibraryApi
1827
3035
  */
1828
3036
  getThemeVideos(requestParameters, options) {
1829
3037
  return LibraryApiFp(this.configuration).getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
@@ -1834,7 +3042,6 @@ class LibraryApi extends BaseAPI {
1834
3042
  * @param {LibraryApiPostAddedMoviesRequest} requestParameters Request parameters.
1835
3043
  * @param {*} [options] Override http request option.
1836
3044
  * @throws {RequiredError}
1837
- * @memberof LibraryApi
1838
3045
  */
1839
3046
  postAddedMovies(requestParameters = {}, options) {
1840
3047
  return LibraryApiFp(this.configuration).postAddedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then((request) => request(this.axios, this.basePath));
@@ -1845,7 +3052,6 @@ class LibraryApi extends BaseAPI {
1845
3052
  * @param {LibraryApiPostAddedSeriesRequest} requestParameters Request parameters.
1846
3053
  * @param {*} [options] Override http request option.
1847
3054
  * @throws {RequiredError}
1848
- * @memberof LibraryApi
1849
3055
  */
1850
3056
  postAddedSeries(requestParameters = {}, options) {
1851
3057
  return LibraryApiFp(this.configuration).postAddedSeries(requestParameters.tvdbId, options).then((request) => request(this.axios, this.basePath));
@@ -1856,7 +3062,6 @@ class LibraryApi extends BaseAPI {
1856
3062
  * @param {LibraryApiPostUpdatedMediaRequest} requestParameters Request parameters.
1857
3063
  * @param {*} [options] Override http request option.
1858
3064
  * @throws {RequiredError}
1859
- * @memberof LibraryApi
1860
3065
  */
1861
3066
  postUpdatedMedia(requestParameters, options) {
1862
3067
  return LibraryApiFp(this.configuration).postUpdatedMedia(requestParameters.mediaUpdateInfoDto, options).then((request) => request(this.axios, this.basePath));
@@ -1867,7 +3072,6 @@ class LibraryApi extends BaseAPI {
1867
3072
  * @param {LibraryApiPostUpdatedMoviesRequest} requestParameters Request parameters.
1868
3073
  * @param {*} [options] Override http request option.
1869
3074
  * @throws {RequiredError}
1870
- * @memberof LibraryApi
1871
3075
  */
1872
3076
  postUpdatedMovies(requestParameters = {}, options) {
1873
3077
  return LibraryApiFp(this.configuration).postUpdatedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then((request) => request(this.axios, this.basePath));
@@ -1878,17 +3082,25 @@ class LibraryApi extends BaseAPI {
1878
3082
  * @param {LibraryApiPostUpdatedSeriesRequest} requestParameters Request parameters.
1879
3083
  * @param {*} [options] Override http request option.
1880
3084
  * @throws {RequiredError}
1881
- * @memberof LibraryApi
1882
3085
  */
1883
3086
  postUpdatedSeries(requestParameters = {}, options) {
1884
3087
  return LibraryApiFp(this.configuration).postUpdatedSeries(requestParameters.tvdbId, options).then((request) => request(this.axios, this.basePath));
1885
3088
  }
3089
+ /**
3090
+ *
3091
+ * @summary Refreshes metadata for an item.
3092
+ * @param {LibraryApiRefreshItemRequest} requestParameters Request parameters.
3093
+ * @param {*} [options] Override http request option.
3094
+ * @throws {RequiredError}
3095
+ */
3096
+ refreshItem(requestParameters, options) {
3097
+ return LibraryApiFp(this.configuration).refreshItem(requestParameters.itemId, requestParameters.metadataRefreshMode, requestParameters.imageRefreshMode, requestParameters.replaceAllMetadata, requestParameters.replaceAllImages, requestParameters.regenerateTrickplay, options).then((request) => request(this.axios, this.basePath));
3098
+ }
1886
3099
  /**
1887
3100
  *
1888
3101
  * @summary Starts a library scan.
1889
3102
  * @param {*} [options] Override http request option.
1890
3103
  * @throws {RequiredError}
1891
- * @memberof LibraryApi
1892
3104
  */
1893
3105
  refreshLibrary(options) {
1894
3106
  return LibraryApiFp(this.configuration).refreshLibrary(options).then((request) => request(this.axios, this.basePath));