@jellyfin/sdk 0.12.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 (759) hide show
  1. package/.nvmrc +1 -0
  2. package/.openapi-generator-ignore +2 -0
  3. package/CHANGELOG.md +40 -3
  4. package/README.md +55 -32
  5. package/eslint.config.mjs +118 -0
  6. package/lib/api.d.ts +33 -9
  7. package/lib/api.js +88 -26
  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 +18 -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/{api-key-api.d.ts → user-data-api.d.ts} +2 -2
  613. package/lib/utils/api/{time-sync-api.js → user-data-api.js} +4 -4
  614. package/lib/utils/api/{channels-api.d.ts → user-view-api.d.ts} +2 -2
  615. package/lib/utils/api/{trailers-api.js → user-view-api.js} +4 -4
  616. package/lib/utils/api/video-api.d.ts +8 -0
  617. package/lib/utils/api/video-api.js +12 -0
  618. package/lib/utils/api/year-api.d.ts +8 -0
  619. package/lib/utils/api/year-api.js +12 -0
  620. package/lib/utils/index.js +2 -2
  621. package/lib/utils/url/index.d.ts +1 -0
  622. package/lib/utils/url/index.js +4 -1
  623. package/lib/utils/versioning.d.ts +12 -1
  624. package/lib/utils/versioning.js +44 -13
  625. package/lib/versions.d.ts +1 -1
  626. package/lib/versions.js +1 -1
  627. package/lib/websocket/constants.d.ts +24 -0
  628. package/lib/websocket/constants.js +42 -0
  629. package/lib/websocket/index.d.ts +8 -0
  630. package/lib/websocket/index.js +3 -0
  631. package/lib/{utils/api/client-log-api.d.ts → websocket/models.d.ts} +6 -3
  632. package/lib/websocket/models.js +16 -0
  633. package/lib/websocket/types.d.ts +37 -0
  634. package/lib/websocket/types.js +42 -0
  635. package/lib/websocket/websocket-service.d.ts +142 -0
  636. package/lib/websocket/websocket-service.js +296 -0
  637. package/package.json +20 -16
  638. package/lib/generated-client/api/activity-log-api.d.ts +0 -110
  639. package/lib/generated-client/api/activity-log-api.js +0 -135
  640. package/lib/generated-client/api/api-key-api.d.ts +0 -161
  641. package/lib/generated-client/api/api-key-api.js +0 -245
  642. package/lib/generated-client/api/client-log-api.d.ts +0 -86
  643. package/lib/generated-client/api/client-log-api.js +0 -117
  644. package/lib/generated-client/api/configuration-api.d.ts +0 -292
  645. package/lib/generated-client/api/configuration-api.js +0 -442
  646. package/lib/generated-client/api/dashboard-api.d.ts +0 -132
  647. package/lib/generated-client/api/dashboard-api.js +0 -182
  648. package/lib/generated-client/api/dlna-api.d.ts +0 -292
  649. package/lib/generated-client/api/dlna-server-api.d.ts +0 -784
  650. package/lib/generated-client/api/dynamic-hls-api.d.ts +0 -4261
  651. package/lib/generated-client/api/dynamic-hls-api.js +0 -3025
  652. package/lib/generated-client/api/hls-segment-api.d.ts +0 -325
  653. package/lib/generated-client/api/hls-segment-api.js +0 -415
  654. package/lib/generated-client/api/image-by-name-api.d.ts +0 -292
  655. package/lib/generated-client/api/item-refresh-api.d.ts +0 -126
  656. package/lib/generated-client/api/item-refresh-api.js +0 -143
  657. package/lib/generated-client/api/items-api.d.ts +0 -1052
  658. package/lib/generated-client/api/items-api.js +0 -835
  659. package/lib/generated-client/api/music-genres-api.d.ts +0 -286
  660. package/lib/generated-client/api/music-genres-api.js +0 -278
  661. package/lib/generated-client/api/notifications-api.d.ts +0 -332
  662. package/lib/generated-client/api/package-api.d.ts +0 -315
  663. package/lib/generated-client/api/package-api.js +0 -455
  664. package/lib/generated-client/api/playstate-api.d.ts +0 -679
  665. package/lib/generated-client/api/playstate-api.js +0 -789
  666. package/lib/generated-client/api/plugins-api.d.ts +0 -473
  667. package/lib/generated-client/api/plugins-api.js +0 -663
  668. package/lib/generated-client/api/quick-connect-api.d.ts +0 -198
  669. package/lib/generated-client/api/quick-connect-api.js +0 -305
  670. package/lib/generated-client/api/time-sync-api.d.ts +0 -69
  671. package/lib/generated-client/api/time-sync-api.js +0 -109
  672. package/lib/generated-client/api/tmdb-api.d.ts +0 -69
  673. package/lib/generated-client/api/tmdb-api.js +0 -111
  674. package/lib/generated-client/api/universal-audio-api.d.ts +0 -420
  675. package/lib/generated-client/api/universal-audio-api.js +0 -364
  676. package/lib/generated-client/api/user-library-api.d.ts +0 -657
  677. package/lib/generated-client/api/video-attachments-api.d.ts +0 -101
  678. package/lib/generated-client/api/video-attachments-api.js +0 -126
  679. package/lib/generated-client/models/admin-notification-dto.d.ts +0 -42
  680. package/lib/generated-client/models/base-item.d.ts +0 -84
  681. package/lib/generated-client/models/branding-options.d.ts +0 -35
  682. package/lib/generated-client/models/client-capabilities.d.ts +0 -76
  683. package/lib/generated-client/models/config-image-types.d.ts +0 -59
  684. package/lib/generated-client/models/control-response.d.ts +0 -37
  685. package/lib/generated-client/models/device-identification.d.ts +0 -72
  686. package/lib/generated-client/models/device-info-query-result.d.ts +0 -36
  687. package/lib/generated-client/models/device-info.d.ts +0 -84
  688. package/lib/generated-client/models/device-options.d.ts +0 -35
  689. package/lib/generated-client/models/device-profile-info.d.ts +0 -36
  690. package/lib/generated-client/models/device-profile-type.d.ts +0 -20
  691. package/lib/generated-client/models/dlna-options.d.ts +0 -83
  692. package/lib/generated-client/models/ffmpeg-location.d.ts +0 -22
  693. package/lib/generated-client/models/group-info-dto-group-update.d.ts +0 -37
  694. package/lib/generated-client/models/group-state-update-group-update.d.ts +0 -37
  695. package/lib/generated-client/models/hardware-encoding-type.d.ts +0 -25
  696. package/lib/generated-client/models/header-match-type.d.ts +0 -21
  697. package/lib/generated-client/models/http-header-info.d.ts +0 -36
  698. package/lib/generated-client/models/image-by-name-info.d.ts +0 -47
  699. package/lib/generated-client/models/media-encoder-path-dto.d.ts +0 -29
  700. package/lib/generated-client/models/notification-dto.d.ts +0 -66
  701. package/lib/generated-client/models/notification-option.d.ts +0 -54
  702. package/lib/generated-client/models/notification-options.d.ts +0 -24
  703. package/lib/generated-client/models/notification-result-dto.d.ts +0 -30
  704. package/lib/generated-client/models/notification-type-info.d.ts +0 -47
  705. package/lib/generated-client/models/notifications-summary-dto.d.ts +0 -30
  706. package/lib/generated-client/models/object-group-update.d.ts +0 -36
  707. package/lib/generated-client/models/play-queue-update-group-update.d.ts +0 -37
  708. package/lib/generated-client/models/response-profile.d.ts +0 -61
  709. package/lib/generated-client/models/send-to-user-type.d.ts +0 -21
  710. package/lib/generated-client/models/session-info.d.ts +0 -199
  711. package/lib/generated-client/models/string-group-update.d.ts +0 -36
  712. package/lib/generated-client/models/subtitle-options.d.ts +0 -71
  713. package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +0 -37
  714. package/lib/generated-client/models/trickplay-info.d.ts +0 -65
  715. package/lib/generated-client/models/update-user-easy-password.d.ts +0 -35
  716. package/lib/generated-client/models/wake-on-lan-info.d.ts +0 -29
  717. package/lib/generated-client/models/xml-attribute.d.ts +0 -29
  718. package/lib/utils/api/activity-log-api.js +0 -12
  719. package/lib/utils/api/api-key-api.js +0 -12
  720. package/lib/utils/api/client-log-api.js +0 -12
  721. package/lib/utils/api/configuration-api.d.ts +0 -8
  722. package/lib/utils/api/devices-api.d.ts +0 -8
  723. package/lib/utils/api/display-preferences-api.d.ts +0 -8
  724. package/lib/utils/api/display-preferences-api.js +0 -12
  725. package/lib/utils/api/item-refresh-api.d.ts +0 -8
  726. package/lib/utils/api/item-refresh-api.js +0 -12
  727. package/lib/utils/api/media-segments-api.d.ts +0 -8
  728. package/lib/utils/api/media-segments-api.js +0 -12
  729. package/lib/utils/api/music-genres-api.d.ts +0 -8
  730. package/lib/utils/api/music-genres-api.js +0 -12
  731. package/lib/utils/api/package-api.js +0 -12
  732. package/lib/utils/api/persons-api.d.ts +0 -8
  733. package/lib/utils/api/persons-api.js +0 -12
  734. package/lib/utils/api/playlists-api.d.ts +0 -8
  735. package/lib/utils/api/playlists-api.js +0 -12
  736. package/lib/utils/api/playstate-api.d.ts +0 -8
  737. package/lib/utils/api/playstate-api.js +0 -12
  738. package/lib/utils/api/plugins-api.d.ts +0 -8
  739. package/lib/utils/api/plugins-api.js +0 -12
  740. package/lib/utils/api/quick-connect-api.d.ts +0 -8
  741. package/lib/utils/api/scheduled-tasks-api.d.ts +0 -8
  742. package/lib/utils/api/scheduled-tasks-api.js +0 -12
  743. package/lib/utils/api/studios-api.d.ts +0 -8
  744. package/lib/utils/api/studios-api.js +0 -12
  745. package/lib/utils/api/suggestions-api.d.ts +0 -8
  746. package/lib/utils/api/suggestions-api.js +0 -12
  747. package/lib/utils/api/time-sync-api.d.ts +0 -8
  748. package/lib/utils/api/trickplay-api.d.ts +0 -8
  749. package/lib/utils/api/trickplay-api.js +0 -12
  750. package/lib/utils/api/tv-shows-api.d.ts +0 -8
  751. package/lib/utils/api/tv-shows-api.js +0 -12
  752. package/lib/utils/api/universal-audio-api.d.ts +0 -8
  753. package/lib/utils/api/universal-audio-api.js +0 -12
  754. package/lib/utils/api/user-library-api.d.ts +0 -8
  755. package/lib/utils/api/user-library-api.js +0 -12
  756. package/lib/utils/api/user-views-api.d.ts +0 -8
  757. package/lib/utils/api/user-views-api.js +0 -12
  758. package/lib/utils/api/video-attachments-api.d.ts +0 -8
  759. package/lib/utils/api/video-attachments-api.js +0 -12
@@ -1,6 +1,6 @@
1
1
  import globalAxios from 'axios';
2
- import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
3
- import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
2
+ import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
3
+ import { BaseAPI, operationServerMap, BASE_PATH } from '../base.js';
4
4
 
5
5
  /* tslint:disable */
6
6
  /* eslint-disable */
@@ -15,10 +15,9 @@ import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
15
15
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
16
16
  */
17
17
  /**
18
- * UserLibraryApi - axios parameter creator
19
- * @export
18
+ * UserDataApi - axios parameter creator
20
19
  */
21
- const UserLibraryApiAxiosParamCreator = function (configuration) {
20
+ const UserDataApiAxiosParamCreator = function (configuration) {
22
21
  return {
23
22
  /**
24
23
  *
@@ -47,6 +46,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
47
46
  if (userId !== undefined) {
48
47
  localVarQueryParameter['userId'] = userId;
49
48
  }
49
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
50
50
  setSearchParams(localVarUrlObj, localVarQueryParameter);
51
51
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
52
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -57,16 +57,16 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
57
57
  },
58
58
  /**
59
59
  *
60
- * @summary Gets intros to play before the main media item plays.
61
- * @param {string} itemId Item id.
62
- * @param {string} [userId] User id.
60
+ * @summary Get Item User Data.
61
+ * @param {string} itemId The item id.
62
+ * @param {string} [userId] The user id.
63
63
  * @param {*} [options] Override http request option.
64
64
  * @throws {RequiredError}
65
65
  */
66
- getIntros: async (itemId, userId, options = {}) => {
66
+ getItemUserData: async (itemId, userId, options = {}) => {
67
67
  // verify required parameter 'itemId' is not null or undefined
68
- assertParamExists('getIntros', 'itemId', itemId);
69
- const localVarPath = `/Items/{itemId}/Intros`
68
+ assertParamExists('getItemUserData', 'itemId', itemId);
69
+ const localVarPath = `/UserItems/{itemId}/UserData`
70
70
  .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
71
71
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
72
72
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -82,6 +82,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
82
82
  if (userId !== undefined) {
83
83
  localVarQueryParameter['userId'] = userId;
84
84
  }
85
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
85
86
  setSearchParams(localVarUrlObj, localVarQueryParameter);
86
87
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
87
88
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -92,16 +93,16 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
92
93
  },
93
94
  /**
94
95
  *
95
- * @summary Gets an item from a user\'s library.
96
+ * @summary Marks an item as a favorite.
96
97
  * @param {string} itemId Item id.
97
98
  * @param {string} [userId] User id.
98
99
  * @param {*} [options] Override http request option.
99
100
  * @throws {RequiredError}
100
101
  */
101
- getItem: async (itemId, userId, options = {}) => {
102
+ markFavoriteItem: async (itemId, userId, options = {}) => {
102
103
  // verify required parameter 'itemId' is not null or undefined
103
- assertParamExists('getItem', 'itemId', itemId);
104
- const localVarPath = `/Items/{itemId}`
104
+ assertParamExists('markFavoriteItem', 'itemId', itemId);
105
+ const localVarPath = `/UserFavoriteItems/{itemId}`
105
106
  .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
106
107
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
107
108
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -109,7 +110,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
109
110
  if (configuration) {
110
111
  baseOptions = configuration.baseOptions;
111
112
  }
112
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
113
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
113
114
  const localVarHeaderParameter = {};
114
115
  const localVarQueryParameter = {};
115
116
  // authentication CustomAuthentication required
@@ -117,6 +118,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
117
118
  if (userId !== undefined) {
118
119
  localVarQueryParameter['userId'] = userId;
119
120
  }
121
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
120
122
  setSearchParams(localVarUrlObj, localVarQueryParameter);
121
123
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
122
124
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -127,87 +129,17 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
127
129
  },
128
130
  /**
129
131
  *
130
- * @summary Gets latest media.
131
- * @param {string} [userId] User id.
132
- * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
133
- * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
134
- * @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
135
- * @param {boolean} [isPlayed] Filter by items that are played, or not.
136
- * @param {boolean} [enableImages] Optional. include image information in output.
137
- * @param {number} [imageTypeLimit] Optional. the max number of images to return, per image type.
138
- * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
139
- * @param {boolean} [enableUserData] Optional. include user data.
140
- * @param {number} [limit] Return item limit.
141
- * @param {boolean} [groupItems] Whether or not to group items into a parent container.
142
- * @param {*} [options] Override http request option.
143
- * @throws {RequiredError}
144
- */
145
- getLatestMedia: async (userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options = {}) => {
146
- const localVarPath = `/Items/Latest`;
147
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
148
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
149
- let baseOptions;
150
- if (configuration) {
151
- baseOptions = configuration.baseOptions;
152
- }
153
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
154
- const localVarHeaderParameter = {};
155
- const localVarQueryParameter = {};
156
- // authentication CustomAuthentication required
157
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
158
- if (userId !== undefined) {
159
- localVarQueryParameter['userId'] = userId;
160
- }
161
- if (parentId !== undefined) {
162
- localVarQueryParameter['parentId'] = parentId;
163
- }
164
- if (fields) {
165
- localVarQueryParameter['fields'] = fields;
166
- }
167
- if (includeItemTypes) {
168
- localVarQueryParameter['includeItemTypes'] = includeItemTypes;
169
- }
170
- if (isPlayed !== undefined) {
171
- localVarQueryParameter['isPlayed'] = isPlayed;
172
- }
173
- if (enableImages !== undefined) {
174
- localVarQueryParameter['enableImages'] = enableImages;
175
- }
176
- if (imageTypeLimit !== undefined) {
177
- localVarQueryParameter['imageTypeLimit'] = imageTypeLimit;
178
- }
179
- if (enableImageTypes) {
180
- localVarQueryParameter['enableImageTypes'] = enableImageTypes;
181
- }
182
- if (enableUserData !== undefined) {
183
- localVarQueryParameter['enableUserData'] = enableUserData;
184
- }
185
- if (limit !== undefined) {
186
- localVarQueryParameter['limit'] = limit;
187
- }
188
- if (groupItems !== undefined) {
189
- localVarQueryParameter['groupItems'] = groupItems;
190
- }
191
- setSearchParams(localVarUrlObj, localVarQueryParameter);
192
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
193
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
194
- return {
195
- url: toPathString(localVarUrlObj),
196
- options: localVarRequestOptions,
197
- };
198
- },
199
- /**
200
- *
201
- * @summary Gets local trailers for an item.
132
+ * @summary Marks an item as played for user.
202
133
  * @param {string} itemId Item id.
203
134
  * @param {string} [userId] User id.
135
+ * @param {string} [datePlayed] Optional. The date the item was played.
204
136
  * @param {*} [options] Override http request option.
205
137
  * @throws {RequiredError}
206
138
  */
207
- getLocalTrailers: async (itemId, userId, options = {}) => {
139
+ markPlayedItem: async (itemId, userId, datePlayed, options = {}) => {
208
140
  // verify required parameter 'itemId' is not null or undefined
209
- assertParamExists('getLocalTrailers', 'itemId', itemId);
210
- const localVarPath = `/Items/{itemId}/LocalTrailers`
141
+ assertParamExists('markPlayedItem', 'itemId', itemId);
142
+ const localVarPath = `/UserPlayedItems/{itemId}`
211
143
  .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
212
144
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
213
145
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -215,7 +147,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
215
147
  if (configuration) {
216
148
  baseOptions = configuration.baseOptions;
217
149
  }
218
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
150
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
219
151
  const localVarHeaderParameter = {};
220
152
  const localVarQueryParameter = {};
221
153
  // authentication CustomAuthentication required
@@ -223,37 +155,12 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
223
155
  if (userId !== undefined) {
224
156
  localVarQueryParameter['userId'] = userId;
225
157
  }
226
- setSearchParams(localVarUrlObj, localVarQueryParameter);
227
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
228
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
229
- return {
230
- url: toPathString(localVarUrlObj),
231
- options: localVarRequestOptions,
232
- };
233
- },
234
- /**
235
- *
236
- * @summary Gets the root folder from a user\'s library.
237
- * @param {string} [userId] User id.
238
- * @param {*} [options] Override http request option.
239
- * @throws {RequiredError}
240
- */
241
- getRootFolder: async (userId, options = {}) => {
242
- const localVarPath = `/Items/Root`;
243
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
244
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
245
- let baseOptions;
246
- if (configuration) {
247
- baseOptions = configuration.baseOptions;
248
- }
249
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
250
- const localVarHeaderParameter = {};
251
- const localVarQueryParameter = {};
252
- // authentication CustomAuthentication required
253
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
254
- if (userId !== undefined) {
255
- localVarQueryParameter['userId'] = userId;
158
+ if (datePlayed !== undefined) {
159
+ localVarQueryParameter['datePlayed'] = (datePlayed instanceof Date) ?
160
+ datePlayed.toISOString() :
161
+ datePlayed;
256
162
  }
163
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
257
164
  setSearchParams(localVarUrlObj, localVarQueryParameter);
258
165
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
166
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -264,16 +171,16 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
264
171
  },
265
172
  /**
266
173
  *
267
- * @summary Gets special features for an item.
174
+ * @summary Marks an item as unplayed for user.
268
175
  * @param {string} itemId Item id.
269
176
  * @param {string} [userId] User id.
270
177
  * @param {*} [options] Override http request option.
271
178
  * @throws {RequiredError}
272
179
  */
273
- getSpecialFeatures: async (itemId, userId, options = {}) => {
180
+ markUnplayedItem: async (itemId, userId, options = {}) => {
274
181
  // verify required parameter 'itemId' is not null or undefined
275
- assertParamExists('getSpecialFeatures', 'itemId', itemId);
276
- const localVarPath = `/Items/{itemId}/SpecialFeatures`
182
+ assertParamExists('markUnplayedItem', 'itemId', itemId);
183
+ const localVarPath = `/UserPlayedItems/{itemId}`
277
184
  .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
278
185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
186
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -281,7 +188,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
281
188
  if (configuration) {
282
189
  baseOptions = configuration.baseOptions;
283
190
  }
284
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
191
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
285
192
  const localVarHeaderParameter = {};
286
193
  const localVarQueryParameter = {};
287
194
  // authentication CustomAuthentication required
@@ -289,6 +196,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
289
196
  if (userId !== undefined) {
290
197
  localVarQueryParameter['userId'] = userId;
291
198
  }
199
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
292
200
  setSearchParams(localVarUrlObj, localVarQueryParameter);
293
201
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
294
202
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -299,15 +207,15 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
299
207
  },
300
208
  /**
301
209
  *
302
- * @summary Marks an item as a favorite.
210
+ * @summary Unmarks item as a favorite.
303
211
  * @param {string} itemId Item id.
304
212
  * @param {string} [userId] User id.
305
213
  * @param {*} [options] Override http request option.
306
214
  * @throws {RequiredError}
307
215
  */
308
- markFavoriteItem: async (itemId, userId, options = {}) => {
216
+ unmarkFavoriteItem: async (itemId, userId, options = {}) => {
309
217
  // verify required parameter 'itemId' is not null or undefined
310
- assertParamExists('markFavoriteItem', 'itemId', itemId);
218
+ assertParamExists('unmarkFavoriteItem', 'itemId', itemId);
311
219
  const localVarPath = `/UserFavoriteItems/{itemId}`
312
220
  .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
313
221
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -316,7 +224,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
316
224
  if (configuration) {
317
225
  baseOptions = configuration.baseOptions;
318
226
  }
319
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
227
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
320
228
  const localVarHeaderParameter = {};
321
229
  const localVarQueryParameter = {};
322
230
  // authentication CustomAuthentication required
@@ -324,6 +232,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
324
232
  if (userId !== undefined) {
325
233
  localVarQueryParameter['userId'] = userId;
326
234
  }
235
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
327
236
  setSearchParams(localVarUrlObj, localVarQueryParameter);
328
237
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
329
238
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -334,16 +243,19 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
334
243
  },
335
244
  /**
336
245
  *
337
- * @summary Unmarks item as a favorite.
338
- * @param {string} itemId Item id.
339
- * @param {string} [userId] User id.
246
+ * @summary Update Item User Data.
247
+ * @param {string} itemId The item id.
248
+ * @param {UpdateUserItemDataDto} updateUserItemDataDto New user data object.
249
+ * @param {string} [userId] The user id.
340
250
  * @param {*} [options] Override http request option.
341
251
  * @throws {RequiredError}
342
252
  */
343
- unmarkFavoriteItem: async (itemId, userId, options = {}) => {
253
+ updateItemUserData: async (itemId, updateUserItemDataDto, userId, options = {}) => {
344
254
  // verify required parameter 'itemId' is not null or undefined
345
- assertParamExists('unmarkFavoriteItem', 'itemId', itemId);
346
- const localVarPath = `/UserFavoriteItems/{itemId}`
255
+ assertParamExists('updateItemUserData', 'itemId', itemId);
256
+ // verify required parameter 'updateUserItemDataDto' is not null or undefined
257
+ assertParamExists('updateItemUserData', 'updateUserItemDataDto', updateUserItemDataDto);
258
+ const localVarPath = `/UserItems/{itemId}/UserData`
347
259
  .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
348
260
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
349
261
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -351,7 +263,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
351
263
  if (configuration) {
352
264
  baseOptions = configuration.baseOptions;
353
265
  }
354
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
266
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
355
267
  const localVarHeaderParameter = {};
356
268
  const localVarQueryParameter = {};
357
269
  // authentication CustomAuthentication required
@@ -359,9 +271,12 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
359
271
  if (userId !== undefined) {
360
272
  localVarQueryParameter['userId'] = userId;
361
273
  }
274
+ localVarHeaderParameter['Content-Type'] = 'application/json';
275
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
362
276
  setSearchParams(localVarUrlObj, localVarQueryParameter);
363
277
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
364
278
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
279
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserItemDataDto, localVarRequestOptions, configuration);
365
280
  return {
366
281
  url: toPathString(localVarUrlObj),
367
282
  options: localVarRequestOptions,
@@ -398,6 +313,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
398
313
  if (likes !== undefined) {
399
314
  localVarQueryParameter['likes'] = likes;
400
315
  }
316
+ localVarHeaderParameter['Accept'] = 'application/json,application/json; profile=CamelCase,application/json; profile=PascalCase,text/html';
401
317
  setSearchParams(localVarUrlObj, localVarQueryParameter);
402
318
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
403
319
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -409,11 +325,10 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
409
325
  };
410
326
  };
411
327
  /**
412
- * UserLibraryApi - functional programming interface
413
- * @export
328
+ * UserDataApi - functional programming interface
414
329
  */
415
- const UserLibraryApiFp = function (configuration) {
416
- const localVarAxiosParamCreator = UserLibraryApiAxiosParamCreator(configuration);
330
+ const UserDataApiFp = function (configuration) {
331
+ const localVarAxiosParamCreator = UserDataApiAxiosParamCreator(configuration);
417
332
  return {
418
333
  /**
419
334
  *
@@ -427,135 +342,99 @@ const UserLibraryApiFp = function (configuration) {
427
342
  var _a, _b, _c;
428
343
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserItemRating(itemId, userId, options);
429
344
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
430
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.deleteUserItemRating']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
345
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserDataApi.deleteUserItemRating']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
431
346
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
432
347
  },
433
348
  /**
434
349
  *
435
- * @summary Gets intros to play before the main media item plays.
436
- * @param {string} itemId Item id.
437
- * @param {string} [userId] User id.
350
+ * @summary Get Item User Data.
351
+ * @param {string} itemId The item id.
352
+ * @param {string} [userId] The user id.
438
353
  * @param {*} [options] Override http request option.
439
354
  * @throws {RequiredError}
440
355
  */
441
- async getIntros(itemId, userId, options) {
356
+ async getItemUserData(itemId, userId, options) {
442
357
  var _a, _b, _c;
443
- const localVarAxiosArgs = await localVarAxiosParamCreator.getIntros(itemId, userId, options);
358
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItemUserData(itemId, userId, options);
444
359
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
445
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getIntros']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
360
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserDataApi.getItemUserData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
446
361
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
447
362
  },
448
363
  /**
449
364
  *
450
- * @summary Gets an item from a user\'s library.
365
+ * @summary Marks an item as a favorite.
451
366
  * @param {string} itemId Item id.
452
367
  * @param {string} [userId] User id.
453
368
  * @param {*} [options] Override http request option.
454
369
  * @throws {RequiredError}
455
370
  */
456
- async getItem(itemId, userId, options) {
457
- var _a, _b, _c;
458
- const localVarAxiosArgs = await localVarAxiosParamCreator.getItem(itemId, userId, options);
459
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
460
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
461
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
462
- },
463
- /**
464
- *
465
- * @summary Gets latest media.
466
- * @param {string} [userId] User id.
467
- * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
468
- * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
469
- * @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
470
- * @param {boolean} [isPlayed] Filter by items that are played, or not.
471
- * @param {boolean} [enableImages] Optional. include image information in output.
472
- * @param {number} [imageTypeLimit] Optional. the max number of images to return, per image type.
473
- * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
474
- * @param {boolean} [enableUserData] Optional. include user data.
475
- * @param {number} [limit] Return item limit.
476
- * @param {boolean} [groupItems] Whether or not to group items into a parent container.
477
- * @param {*} [options] Override http request option.
478
- * @throws {RequiredError}
479
- */
480
- async getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options) {
371
+ async markFavoriteItem(itemId, userId, options) {
481
372
  var _a, _b, _c;
482
- const localVarAxiosArgs = await localVarAxiosParamCreator.getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options);
373
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markFavoriteItem(itemId, userId, options);
483
374
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
484
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getLatestMedia']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
375
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserDataApi.markFavoriteItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
485
376
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
486
377
  },
487
378
  /**
488
379
  *
489
- * @summary Gets local trailers for an item.
380
+ * @summary Marks an item as played for user.
490
381
  * @param {string} itemId Item id.
491
382
  * @param {string} [userId] User id.
383
+ * @param {string} [datePlayed] Optional. The date the item was played.
492
384
  * @param {*} [options] Override http request option.
493
385
  * @throws {RequiredError}
494
386
  */
495
- async getLocalTrailers(itemId, userId, options) {
387
+ async markPlayedItem(itemId, userId, datePlayed, options) {
496
388
  var _a, _b, _c;
497
- const localVarAxiosArgs = await localVarAxiosParamCreator.getLocalTrailers(itemId, userId, options);
389
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markPlayedItem(itemId, userId, datePlayed, options);
498
390
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
499
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getLocalTrailers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
391
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserDataApi.markPlayedItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
500
392
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
501
393
  },
502
394
  /**
503
395
  *
504
- * @summary Gets the root folder from a user\'s library.
505
- * @param {string} [userId] User id.
506
- * @param {*} [options] Override http request option.
507
- * @throws {RequiredError}
508
- */
509
- async getRootFolder(userId, options) {
510
- var _a, _b, _c;
511
- const localVarAxiosArgs = await localVarAxiosParamCreator.getRootFolder(userId, options);
512
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
513
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getRootFolder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
514
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
515
- },
516
- /**
517
- *
518
- * @summary Gets special features for an item.
396
+ * @summary Marks an item as unplayed for user.
519
397
  * @param {string} itemId Item id.
520
398
  * @param {string} [userId] User id.
521
399
  * @param {*} [options] Override http request option.
522
400
  * @throws {RequiredError}
523
401
  */
524
- async getSpecialFeatures(itemId, userId, options) {
402
+ async markUnplayedItem(itemId, userId, options) {
525
403
  var _a, _b, _c;
526
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSpecialFeatures(itemId, userId, options);
404
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markUnplayedItem(itemId, userId, options);
527
405
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
528
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.getSpecialFeatures']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
406
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserDataApi.markUnplayedItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
529
407
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
530
408
  },
531
409
  /**
532
410
  *
533
- * @summary Marks an item as a favorite.
411
+ * @summary Unmarks item as a favorite.
534
412
  * @param {string} itemId Item id.
535
413
  * @param {string} [userId] User id.
536
414
  * @param {*} [options] Override http request option.
537
415
  * @throws {RequiredError}
538
416
  */
539
- async markFavoriteItem(itemId, userId, options) {
417
+ async unmarkFavoriteItem(itemId, userId, options) {
540
418
  var _a, _b, _c;
541
- const localVarAxiosArgs = await localVarAxiosParamCreator.markFavoriteItem(itemId, userId, options);
419
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unmarkFavoriteItem(itemId, userId, options);
542
420
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
543
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.markFavoriteItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
421
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserDataApi.unmarkFavoriteItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
544
422
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
545
423
  },
546
424
  /**
547
425
  *
548
- * @summary Unmarks item as a favorite.
549
- * @param {string} itemId Item id.
550
- * @param {string} [userId] User id.
426
+ * @summary Update Item User Data.
427
+ * @param {string} itemId The item id.
428
+ * @param {UpdateUserItemDataDto} updateUserItemDataDto New user data object.
429
+ * @param {string} [userId] The user id.
551
430
  * @param {*} [options] Override http request option.
552
431
  * @throws {RequiredError}
553
432
  */
554
- async unmarkFavoriteItem(itemId, userId, options) {
433
+ async updateItemUserData(itemId, updateUserItemDataDto, userId, options) {
555
434
  var _a, _b, _c;
556
- const localVarAxiosArgs = await localVarAxiosParamCreator.unmarkFavoriteItem(itemId, userId, options);
435
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateItemUserData(itemId, updateUserItemDataDto, userId, options);
557
436
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
558
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.unmarkFavoriteItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
437
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserDataApi.updateItemUserData']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
559
438
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
560
439
  },
561
440
  /**
@@ -571,22 +450,21 @@ const UserLibraryApiFp = function (configuration) {
571
450
  var _a, _b, _c;
572
451
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserItemRating(itemId, userId, likes, options);
573
452
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
574
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserLibraryApi.updateUserItemRating']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
453
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserDataApi.updateUserItemRating']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
575
454
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
576
455
  },
577
456
  };
578
457
  };
579
458
  /**
580
- * UserLibraryApi - factory interface
581
- * @export
459
+ * UserDataApi - factory interface
582
460
  */
583
- const UserLibraryApiFactory = function (configuration, basePath, axios) {
584
- const localVarFp = UserLibraryApiFp(configuration);
461
+ const UserDataApiFactory = function (configuration, basePath, axios) {
462
+ const localVarFp = UserDataApiFp(configuration);
585
463
  return {
586
464
  /**
587
465
  *
588
466
  * @summary Deletes a user\'s saved personal rating for an item.
589
- * @param {UserLibraryApiDeleteUserItemRatingRequest} requestParameters Request parameters.
467
+ * @param {UserDataApiDeleteUserItemRatingRequest} requestParameters Request parameters.
590
468
  * @param {*} [options] Override http request option.
591
469
  * @throws {RequiredError}
592
470
  */
@@ -595,88 +473,68 @@ const UserLibraryApiFactory = function (configuration, basePath, axios) {
595
473
  },
596
474
  /**
597
475
  *
598
- * @summary Gets intros to play before the main media item plays.
599
- * @param {UserLibraryApiGetIntrosRequest} requestParameters Request parameters.
600
- * @param {*} [options] Override http request option.
601
- * @throws {RequiredError}
602
- */
603
- getIntros(requestParameters, options) {
604
- return localVarFp.getIntros(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
605
- },
606
- /**
607
- *
608
- * @summary Gets an item from a user\'s library.
609
- * @param {UserLibraryApiGetItemRequest} requestParameters Request parameters.
476
+ * @summary Get Item User Data.
477
+ * @param {UserDataApiGetItemUserDataRequest} requestParameters Request parameters.
610
478
  * @param {*} [options] Override http request option.
611
479
  * @throws {RequiredError}
612
480
  */
613
- getItem(requestParameters, options) {
614
- return localVarFp.getItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
481
+ getItemUserData(requestParameters, options) {
482
+ return localVarFp.getItemUserData(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
615
483
  },
616
484
  /**
617
485
  *
618
- * @summary Gets latest media.
619
- * @param {UserLibraryApiGetLatestMediaRequest} requestParameters Request parameters.
486
+ * @summary Marks an item as a favorite.
487
+ * @param {UserDataApiMarkFavoriteItemRequest} requestParameters Request parameters.
620
488
  * @param {*} [options] Override http request option.
621
489
  * @throws {RequiredError}
622
490
  */
623
- getLatestMedia(requestParameters = {}, options) {
624
- 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));
491
+ markFavoriteItem(requestParameters, options) {
492
+ return localVarFp.markFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
625
493
  },
626
494
  /**
627
495
  *
628
- * @summary Gets local trailers for an item.
629
- * @param {UserLibraryApiGetLocalTrailersRequest} requestParameters Request parameters.
496
+ * @summary Marks an item as played for user.
497
+ * @param {UserDataApiMarkPlayedItemRequest} requestParameters Request parameters.
630
498
  * @param {*} [options] Override http request option.
631
499
  * @throws {RequiredError}
632
500
  */
633
- getLocalTrailers(requestParameters, options) {
634
- return localVarFp.getLocalTrailers(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
501
+ markPlayedItem(requestParameters, options) {
502
+ return localVarFp.markPlayedItem(requestParameters.itemId, requestParameters.userId, requestParameters.datePlayed, options).then((request) => request(axios, basePath));
635
503
  },
636
504
  /**
637
505
  *
638
- * @summary Gets the root folder from a user\'s library.
639
- * @param {UserLibraryApiGetRootFolderRequest} requestParameters Request parameters.
506
+ * @summary Marks an item as unplayed for user.
507
+ * @param {UserDataApiMarkUnplayedItemRequest} requestParameters Request parameters.
640
508
  * @param {*} [options] Override http request option.
641
509
  * @throws {RequiredError}
642
510
  */
643
- getRootFolder(requestParameters = {}, options) {
644
- return localVarFp.getRootFolder(requestParameters.userId, options).then((request) => request(axios, basePath));
511
+ markUnplayedItem(requestParameters, options) {
512
+ return localVarFp.markUnplayedItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
645
513
  },
646
514
  /**
647
515
  *
648
- * @summary Gets special features for an item.
649
- * @param {UserLibraryApiGetSpecialFeaturesRequest} requestParameters Request parameters.
516
+ * @summary Unmarks item as a favorite.
517
+ * @param {UserDataApiUnmarkFavoriteItemRequest} requestParameters Request parameters.
650
518
  * @param {*} [options] Override http request option.
651
519
  * @throws {RequiredError}
652
520
  */
653
- getSpecialFeatures(requestParameters, options) {
654
- return localVarFp.getSpecialFeatures(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
521
+ unmarkFavoriteItem(requestParameters, options) {
522
+ return localVarFp.unmarkFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
655
523
  },
656
524
  /**
657
525
  *
658
- * @summary Marks an item as a favorite.
659
- * @param {UserLibraryApiMarkFavoriteItemRequest} requestParameters Request parameters.
526
+ * @summary Update Item User Data.
527
+ * @param {UserDataApiUpdateItemUserDataRequest} requestParameters Request parameters.
660
528
  * @param {*} [options] Override http request option.
661
529
  * @throws {RequiredError}
662
530
  */
663
- markFavoriteItem(requestParameters, options) {
664
- return localVarFp.markFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
665
- },
666
- /**
667
- *
668
- * @summary Unmarks item as a favorite.
669
- * @param {UserLibraryApiUnmarkFavoriteItemRequest} requestParameters Request parameters.
670
- * @param {*} [options] Override http request option.
671
- * @throws {RequiredError}
672
- */
673
- unmarkFavoriteItem(requestParameters, options) {
674
- return localVarFp.unmarkFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
531
+ updateItemUserData(requestParameters, options) {
532
+ return localVarFp.updateItemUserData(requestParameters.itemId, requestParameters.updateUserItemDataDto, requestParameters.userId, options).then((request) => request(axios, basePath));
675
533
  },
676
534
  /**
677
535
  *
678
536
  * @summary Updates a user\'s rating for an item.
679
- * @param {UserLibraryApiUpdateUserItemRatingRequest} requestParameters Request parameters.
537
+ * @param {UserDataApiUpdateUserItemRatingRequest} requestParameters Request parameters.
680
538
  * @param {*} [options] Override http request option.
681
539
  * @throws {RequiredError}
682
540
  */
@@ -686,122 +544,89 @@ const UserLibraryApiFactory = function (configuration, basePath, axios) {
686
544
  };
687
545
  };
688
546
  /**
689
- * UserLibraryApi - object-oriented interface
690
- * @export
691
- * @class UserLibraryApi
692
- * @extends {BaseAPI}
547
+ * UserDataApi - object-oriented interface
693
548
  */
694
- class UserLibraryApi extends BaseAPI {
549
+ class UserDataApi extends BaseAPI {
695
550
  /**
696
551
  *
697
552
  * @summary Deletes a user\'s saved personal rating for an item.
698
- * @param {UserLibraryApiDeleteUserItemRatingRequest} requestParameters Request parameters.
553
+ * @param {UserDataApiDeleteUserItemRatingRequest} requestParameters Request parameters.
699
554
  * @param {*} [options] Override http request option.
700
555
  * @throws {RequiredError}
701
- * @memberof UserLibraryApi
702
556
  */
703
557
  deleteUserItemRating(requestParameters, options) {
704
- return UserLibraryApiFp(this.configuration).deleteUserItemRating(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
558
+ return UserDataApiFp(this.configuration).deleteUserItemRating(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
705
559
  }
706
560
  /**
707
561
  *
708
- * @summary Gets intros to play before the main media item plays.
709
- * @param {UserLibraryApiGetIntrosRequest} requestParameters Request parameters.
562
+ * @summary Get Item User Data.
563
+ * @param {UserDataApiGetItemUserDataRequest} requestParameters Request parameters.
710
564
  * @param {*} [options] Override http request option.
711
565
  * @throws {RequiredError}
712
- * @memberof UserLibraryApi
713
566
  */
714
- getIntros(requestParameters, options) {
715
- return UserLibraryApiFp(this.configuration).getIntros(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
567
+ getItemUserData(requestParameters, options) {
568
+ return UserDataApiFp(this.configuration).getItemUserData(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
716
569
  }
717
570
  /**
718
571
  *
719
- * @summary Gets an item from a user\'s library.
720
- * @param {UserLibraryApiGetItemRequest} requestParameters Request parameters.
721
- * @param {*} [options] Override http request option.
722
- * @throws {RequiredError}
723
- * @memberof UserLibraryApi
724
- */
725
- getItem(requestParameters, options) {
726
- return UserLibraryApiFp(this.configuration).getItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
727
- }
728
- /**
729
- *
730
- * @summary Gets latest media.
731
- * @param {UserLibraryApiGetLatestMediaRequest} requestParameters Request parameters.
732
- * @param {*} [options] Override http request option.
733
- * @throws {RequiredError}
734
- * @memberof UserLibraryApi
735
- */
736
- getLatestMedia(requestParameters = {}, options) {
737
- return UserLibraryApiFp(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));
738
- }
739
- /**
740
- *
741
- * @summary Gets local trailers for an item.
742
- * @param {UserLibraryApiGetLocalTrailersRequest} requestParameters Request parameters.
572
+ * @summary Marks an item as a favorite.
573
+ * @param {UserDataApiMarkFavoriteItemRequest} requestParameters Request parameters.
743
574
  * @param {*} [options] Override http request option.
744
575
  * @throws {RequiredError}
745
- * @memberof UserLibraryApi
746
576
  */
747
- getLocalTrailers(requestParameters, options) {
748
- return UserLibraryApiFp(this.configuration).getLocalTrailers(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
577
+ markFavoriteItem(requestParameters, options) {
578
+ return UserDataApiFp(this.configuration).markFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
749
579
  }
750
580
  /**
751
581
  *
752
- * @summary Gets the root folder from a user\'s library.
753
- * @param {UserLibraryApiGetRootFolderRequest} requestParameters Request parameters.
582
+ * @summary Marks an item as played for user.
583
+ * @param {UserDataApiMarkPlayedItemRequest} requestParameters Request parameters.
754
584
  * @param {*} [options] Override http request option.
755
585
  * @throws {RequiredError}
756
- * @memberof UserLibraryApi
757
586
  */
758
- getRootFolder(requestParameters = {}, options) {
759
- return UserLibraryApiFp(this.configuration).getRootFolder(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
587
+ markPlayedItem(requestParameters, options) {
588
+ return UserDataApiFp(this.configuration).markPlayedItem(requestParameters.itemId, requestParameters.userId, requestParameters.datePlayed, options).then((request) => request(this.axios, this.basePath));
760
589
  }
761
590
  /**
762
591
  *
763
- * @summary Gets special features for an item.
764
- * @param {UserLibraryApiGetSpecialFeaturesRequest} requestParameters Request parameters.
592
+ * @summary Marks an item as unplayed for user.
593
+ * @param {UserDataApiMarkUnplayedItemRequest} requestParameters Request parameters.
765
594
  * @param {*} [options] Override http request option.
766
595
  * @throws {RequiredError}
767
- * @memberof UserLibraryApi
768
596
  */
769
- getSpecialFeatures(requestParameters, options) {
770
- return UserLibraryApiFp(this.configuration).getSpecialFeatures(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
597
+ markUnplayedItem(requestParameters, options) {
598
+ return UserDataApiFp(this.configuration).markUnplayedItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
771
599
  }
772
600
  /**
773
601
  *
774
- * @summary Marks an item as a favorite.
775
- * @param {UserLibraryApiMarkFavoriteItemRequest} requestParameters Request parameters.
602
+ * @summary Unmarks item as a favorite.
603
+ * @param {UserDataApiUnmarkFavoriteItemRequest} requestParameters Request parameters.
776
604
  * @param {*} [options] Override http request option.
777
605
  * @throws {RequiredError}
778
- * @memberof UserLibraryApi
779
606
  */
780
- markFavoriteItem(requestParameters, options) {
781
- return UserLibraryApiFp(this.configuration).markFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
607
+ unmarkFavoriteItem(requestParameters, options) {
608
+ return UserDataApiFp(this.configuration).unmarkFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
782
609
  }
783
610
  /**
784
611
  *
785
- * @summary Unmarks item as a favorite.
786
- * @param {UserLibraryApiUnmarkFavoriteItemRequest} requestParameters Request parameters.
612
+ * @summary Update Item User Data.
613
+ * @param {UserDataApiUpdateItemUserDataRequest} requestParameters Request parameters.
787
614
  * @param {*} [options] Override http request option.
788
615
  * @throws {RequiredError}
789
- * @memberof UserLibraryApi
790
616
  */
791
- unmarkFavoriteItem(requestParameters, options) {
792
- return UserLibraryApiFp(this.configuration).unmarkFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
617
+ updateItemUserData(requestParameters, options) {
618
+ return UserDataApiFp(this.configuration).updateItemUserData(requestParameters.itemId, requestParameters.updateUserItemDataDto, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
793
619
  }
794
620
  /**
795
621
  *
796
622
  * @summary Updates a user\'s rating for an item.
797
- * @param {UserLibraryApiUpdateUserItemRatingRequest} requestParameters Request parameters.
623
+ * @param {UserDataApiUpdateUserItemRatingRequest} requestParameters Request parameters.
798
624
  * @param {*} [options] Override http request option.
799
625
  * @throws {RequiredError}
800
- * @memberof UserLibraryApi
801
626
  */
802
627
  updateUserItemRating(requestParameters, options) {
803
- return UserLibraryApiFp(this.configuration).updateUserItemRating(requestParameters.itemId, requestParameters.userId, requestParameters.likes, options).then((request) => request(this.axios, this.basePath));
628
+ return UserDataApiFp(this.configuration).updateUserItemRating(requestParameters.itemId, requestParameters.userId, requestParameters.likes, options).then((request) => request(this.axios, this.basePath));
804
629
  }
805
630
  }
806
631
 
807
- export { UserLibraryApi, UserLibraryApiAxiosParamCreator, UserLibraryApiFactory, UserLibraryApiFp };
632
+ export { UserDataApi, UserDataApiAxiosParamCreator, UserDataApiFactory, UserDataApiFp };