@jellyfin/sdk 0.8.2 → 0.10.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 (277) hide show
  1. package/README.md +14 -4
  2. package/lib/api.d.ts +1 -0
  3. package/lib/api.js +4 -4
  4. package/lib/discovery/discovery-service.js +4 -9
  5. package/lib/discovery/recommended-server-discovery.js +39 -36
  6. package/lib/generated-client/api/activity-log-api.js +19 -11
  7. package/lib/generated-client/api/api-key-api.js +35 -31
  8. package/lib/generated-client/api/artists-api.d.ts +28 -26
  9. package/lib/generated-client/api/artists-api.js +47 -43
  10. package/lib/generated-client/api/audio-api.d.ts +20 -20
  11. package/lib/generated-client/api/audio-api.js +45 -43
  12. package/lib/generated-client/api/branding-api.js +32 -28
  13. package/lib/generated-client/api/channels-api.d.ts +9 -8
  14. package/lib/generated-client/api/channels-api.js +54 -54
  15. package/lib/generated-client/api/client-log-api.js +19 -11
  16. package/lib/generated-client/api/collection-api.js +35 -31
  17. package/lib/generated-client/api/configuration-api.d.ts +0 -47
  18. package/lib/generated-client/api/configuration-api.js +51 -117
  19. package/lib/generated-client/api/dashboard-api.js +26 -20
  20. package/lib/generated-client/api/devices-api.d.ts +3 -12
  21. package/lib/generated-client/api/devices-api.js +54 -60
  22. package/lib/generated-client/api/display-preferences-api.d.ts +22 -22
  23. package/lib/generated-client/api/display-preferences-api.js +39 -37
  24. package/lib/generated-client/api/dynamic-hls-api.d.ts +49 -31
  25. package/lib/generated-client/api/dynamic-hls-api.js +104 -100
  26. package/lib/generated-client/api/environment-api.js +59 -61
  27. package/lib/generated-client/api/filter-api.d.ts +9 -8
  28. package/lib/generated-client/api/filter-api.js +30 -24
  29. package/lib/generated-client/api/genres-api.d.ts +9 -8
  30. package/lib/generated-client/api/genres-api.js +30 -24
  31. package/lib/generated-client/api/hls-segment-api.js +48 -48
  32. package/lib/generated-client/api/image-api.d.ts +109 -1184
  33. package/lib/generated-client/api/image-api.js +394 -1307
  34. package/lib/generated-client/api/instant-mix-api.d.ts +35 -35
  35. package/lib/generated-client/api/instant-mix-api.js +125 -131
  36. package/lib/generated-client/api/item-lookup-api.js +99 -111
  37. package/lib/generated-client/api/item-refresh-api.js +19 -11
  38. package/lib/generated-client/api/item-update-api.js +35 -31
  39. package/lib/generated-client/api/items-api.d.ts +333 -1012
  40. package/lib/generated-client/api/items-api.js +191 -617
  41. package/lib/generated-client/api/library-api.d.ts +9 -8
  42. package/lib/generated-client/api/library-api.js +214 -254
  43. package/lib/generated-client/api/library-structure-api.js +75 -81
  44. package/lib/generated-client/api/live-tv-api.d.ts +17 -16
  45. package/lib/generated-client/api/live-tv-api.js +343 -415
  46. package/lib/generated-client/api/localization-api.js +43 -41
  47. package/lib/generated-client/api/lyrics-api.d.ts +344 -0
  48. package/lib/generated-client/api/lyrics-api.js +449 -0
  49. package/lib/generated-client/api/media-info-api.d.ts +7 -7
  50. package/lib/generated-client/api/media-info-api.js +54 -56
  51. package/lib/generated-client/api/movies-api.js +19 -11
  52. package/lib/generated-client/api/music-genres-api.d.ts +9 -8
  53. package/lib/generated-client/api/music-genres-api.js +30 -24
  54. package/lib/generated-client/api/package-api.js +59 -61
  55. package/lib/generated-client/api/persons-api.js +27 -21
  56. package/lib/generated-client/api/playlists-api.d.ts +315 -36
  57. package/lib/generated-client/api/playlists-api.js +416 -71
  58. package/lib/generated-client/api/playstate-api.d.ts +41 -68
  59. package/lib/generated-client/api/playstate-api.js +127 -153
  60. package/lib/generated-client/api/plugins-api.js +83 -91
  61. package/lib/generated-client/api/quick-connect-api.d.ts +46 -37
  62. package/lib/generated-client/api/quick-connect-api.js +83 -75
  63. package/lib/generated-client/api/remote-image-api.js +35 -31
  64. package/lib/generated-client/api/scheduled-tasks-api.js +51 -51
  65. package/lib/generated-client/api/search-api.d.ts +41 -40
  66. package/lib/generated-client/api/search-api.js +34 -26
  67. package/lib/generated-client/api/session-api.d.ts +9 -17
  68. package/lib/generated-client/api/session-api.js +145 -173
  69. package/lib/generated-client/api/startup-api.js +67 -71
  70. package/lib/generated-client/api/studios-api.js +27 -21
  71. package/lib/generated-client/api/subtitle-api.d.ts +7 -7
  72. package/lib/generated-client/api/subtitle-api.js +99 -109
  73. package/lib/generated-client/api/suggestions-api.d.ts +14 -13
  74. package/lib/generated-client/api/suggestions-api.js +31 -23
  75. package/lib/generated-client/api/sync-play-api.js +179 -211
  76. package/lib/generated-client/api/system-api.js +88 -98
  77. package/lib/generated-client/api/time-sync-api.js +18 -10
  78. package/lib/generated-client/api/tmdb-api.js +19 -11
  79. package/lib/generated-client/api/trailers-api.d.ts +35 -33
  80. package/lib/generated-client/api/trailers-api.js +40 -32
  81. package/lib/generated-client/api/trickplay-api.d.ts +176 -0
  82. package/lib/generated-client/api/trickplay-api.js +208 -0
  83. package/lib/generated-client/api/tv-shows-api.d.ts +25 -15
  84. package/lib/generated-client/api/tv-shows-api.js +58 -50
  85. package/lib/generated-client/api/universal-audio-api.d.ts +17 -16
  86. package/lib/generated-client/api/universal-audio-api.js +33 -27
  87. package/lib/generated-client/api/user-api.d.ts +35 -155
  88. package/lib/generated-client/api/user-api.js +152 -319
  89. package/lib/generated-client/api/user-library-api.d.ts +100 -100
  90. package/lib/generated-client/api/user-library-api.js +190 -200
  91. package/lib/generated-client/api/user-views-api.d.ts +22 -21
  92. package/lib/generated-client/api/user-views-api.js +47 -41
  93. package/lib/generated-client/api/video-attachments-api.js +18 -10
  94. package/lib/generated-client/api/videos-api.d.ts +12 -12
  95. package/lib/generated-client/api/videos-api.js +63 -67
  96. package/lib/generated-client/api/years-api.d.ts +15 -13
  97. package/lib/generated-client/api/years-api.js +33 -27
  98. package/lib/generated-client/api.d.ts +2 -4
  99. package/lib/generated-client/base.js +13 -0
  100. package/lib/generated-client/common.js +19 -11
  101. package/lib/generated-client/index.js +19 -10
  102. package/lib/generated-client/models/activity-log-entry-message.d.ts +37 -0
  103. package/lib/generated-client/models/activity-log-entry-start-message.d.ts +30 -0
  104. package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +24 -0
  105. package/lib/generated-client/models/audio-spatial-format.d.ts +21 -0
  106. package/lib/generated-client/models/audio-spatial-format.js +24 -0
  107. package/lib/generated-client/models/authenticate-user-by-name.d.ts +0 -7
  108. package/lib/generated-client/models/base-item-dto.d.ts +37 -17
  109. package/lib/generated-client/models/base-item-person.d.ts +4 -3
  110. package/lib/generated-client/models/cast-receiver-application.d.ts +29 -0
  111. package/lib/generated-client/models/client-capabilities-dto.d.ts +17 -20
  112. package/lib/generated-client/models/client-capabilities.d.ts +16 -19
  113. package/lib/generated-client/models/collection-type-options.d.ts +9 -9
  114. package/lib/generated-client/models/collection-type-options.js +9 -9
  115. package/lib/generated-client/models/collection-type.d.ts +31 -0
  116. package/lib/generated-client/models/collection-type.js +34 -0
  117. package/lib/generated-client/models/container-profile.d.ts +1 -1
  118. package/lib/generated-client/models/create-playlist-dto.d.ts +18 -4
  119. package/lib/generated-client/models/create-user-by-name.d.ts +1 -1
  120. package/lib/generated-client/models/device-info.d.ts +6 -0
  121. package/lib/generated-client/models/device-profile.d.ts +0 -171
  122. package/lib/generated-client/models/dlna-profile-type.d.ts +1 -0
  123. package/lib/generated-client/models/dlna-profile-type.js +2 -1
  124. package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +21 -0
  125. package/lib/generated-client/models/down-mix-stereo-algorithms.js +24 -0
  126. package/lib/generated-client/models/encoding-options.d.ts +77 -40
  127. package/lib/generated-client/models/external-id-media-type.d.ts +1 -0
  128. package/lib/generated-client/models/external-id-media-type.js +2 -1
  129. package/lib/generated-client/models/extra-type.d.ts +30 -0
  130. package/lib/generated-client/models/extra-type.js +33 -0
  131. package/lib/generated-client/models/force-keep-alive-message.d.ts +36 -0
  132. package/lib/generated-client/models/general-command-message.d.ts +37 -0
  133. package/lib/generated-client/models/general-command-type.d.ts +1 -0
  134. package/lib/generated-client/models/general-command-type.js +2 -1
  135. package/lib/generated-client/models/get-programs-dto.d.ts +4 -3
  136. package/lib/generated-client/models/group-info-dto-group-update.d.ts +37 -0
  137. package/lib/generated-client/models/group-state-update-group-update.d.ts +37 -0
  138. package/lib/generated-client/models/group-state-update.d.ts +31 -0
  139. package/lib/generated-client/models/group-update.d.ts +20 -0
  140. package/lib/generated-client/models/hardware-encoding-type.d.ts +1 -0
  141. package/lib/generated-client/models/hardware-encoding-type.js +2 -1
  142. package/lib/generated-client/models/image-format.d.ts +1 -0
  143. package/lib/generated-client/models/image-format.js +2 -1
  144. package/lib/generated-client/models/image-resolution.d.ts +27 -0
  145. package/lib/generated-client/models/{ffmpeg-location.js → image-resolution.js} +12 -7
  146. package/lib/generated-client/models/inbound-keep-alive-message.d.ts +24 -0
  147. package/lib/generated-client/models/inbound-web-socket-message.d.ts +23 -0
  148. package/lib/generated-client/models/index.d.ts +74 -25
  149. package/lib/generated-client/models/index.js +17 -6
  150. package/lib/generated-client/models/item-fields.d.ts +1 -2
  151. package/lib/generated-client/models/item-fields.js +1 -2
  152. package/lib/generated-client/models/item-sort-by.d.ts +50 -0
  153. package/lib/generated-client/models/item-sort-by.js +53 -0
  154. package/lib/generated-client/models/library-changed-message.d.ts +37 -0
  155. package/lib/generated-client/models/library-options.d.ts +36 -0
  156. package/lib/generated-client/models/live-tv-options.d.ts +12 -0
  157. package/lib/generated-client/models/log-file.d.ts +1 -1
  158. package/lib/generated-client/models/lyric-dto.d.ts +31 -0
  159. package/lib/generated-client/models/lyric-line.d.ts +29 -0
  160. package/lib/generated-client/models/lyric-metadata.d.ts +77 -0
  161. package/lib/generated-client/models/media-source-info.d.ts +3 -2
  162. package/lib/generated-client/models/media-stream-protocol.d.ts +20 -0
  163. package/lib/generated-client/models/{header-match-type.js → media-stream-protocol.js} +5 -6
  164. package/lib/generated-client/models/media-stream-type.d.ts +1 -0
  165. package/lib/generated-client/models/media-stream-type.js +2 -1
  166. package/lib/generated-client/models/media-stream.d.ts +27 -6
  167. package/lib/generated-client/models/media-type.d.ts +23 -0
  168. package/lib/generated-client/models/{architecture.js → media-type.js} +8 -9
  169. package/lib/generated-client/models/metadata-editor-info.d.ts +3 -2
  170. package/lib/generated-client/models/network-configuration.d.ts +50 -116
  171. package/lib/generated-client/models/outbound-keep-alive-message.d.ts +30 -0
  172. package/lib/generated-client/models/outbound-web-socket-message.d.ts +44 -0
  173. package/lib/generated-client/models/parental-rating.d.ts +1 -1
  174. package/lib/generated-client/models/person-kind.d.ts +43 -0
  175. package/lib/generated-client/models/person-kind.js +46 -0
  176. package/lib/generated-client/models/play-message.d.ts +37 -0
  177. package/lib/generated-client/models/play-queue-update-group-update.d.ts +37 -0
  178. package/lib/generated-client/models/play-queue-update-reason.d.ts +28 -0
  179. package/lib/generated-client/models/play-queue-update-reason.js +31 -0
  180. package/lib/generated-client/models/play-queue-update.d.ts +69 -0
  181. package/lib/generated-client/models/playback-order.d.ts +20 -0
  182. package/lib/generated-client/models/{send-to-user-type.js → playback-order.js} +5 -6
  183. package/lib/generated-client/models/playback-progress-info.d.ts +7 -0
  184. package/lib/generated-client/models/playback-request-type.d.ts +35 -0
  185. package/lib/generated-client/models/playback-request-type.js +38 -0
  186. package/lib/generated-client/models/playback-start-info.d.ts +7 -0
  187. package/lib/generated-client/models/player-state-info.d.ts +7 -0
  188. package/lib/generated-client/models/playlist-user-permissions.d.ts +29 -0
  189. package/lib/generated-client/models/playstate-message.d.ts +37 -0
  190. package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +37 -0
  191. package/lib/generated-client/models/plugin-installation-completed-message.d.ts +37 -0
  192. package/lib/generated-client/models/plugin-installation-failed-message.d.ts +37 -0
  193. package/lib/generated-client/models/plugin-installing-message.d.ts +37 -0
  194. package/lib/generated-client/models/plugin-uninstalled-message.d.ts +37 -0
  195. package/lib/generated-client/models/process-priority-class.d.ts +24 -0
  196. package/lib/generated-client/models/process-priority-class.js +27 -0
  197. package/lib/generated-client/models/public-system-info.d.ts +1 -0
  198. package/lib/generated-client/models/refresh-progress-message.d.ts +38 -0
  199. package/lib/generated-client/models/remote-lyric-info-dto.d.ts +36 -0
  200. package/lib/generated-client/models/remote-subtitle-info.d.ts +30 -0
  201. package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +1 -1
  202. package/lib/generated-client/models/restart-required-message.d.ts +30 -0
  203. package/lib/generated-client/models/scheduled-task-ended-message.d.ts +37 -0
  204. package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +37 -0
  205. package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +30 -0
  206. package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +24 -0
  207. package/lib/generated-client/models/search-hint.d.ts +19 -16
  208. package/lib/generated-client/models/series-status.d.ts +2 -1
  209. package/lib/generated-client/models/series-status.js +3 -2
  210. package/lib/generated-client/models/series-timer-cancelled-message.d.ts +37 -0
  211. package/lib/generated-client/models/series-timer-created-message.d.ts +37 -0
  212. package/lib/generated-client/models/server-configuration.d.ts +45 -0
  213. package/lib/generated-client/models/server-restarting-message.d.ts +30 -0
  214. package/lib/generated-client/models/server-shutting-down-message.d.ts +30 -0
  215. package/lib/generated-client/models/session-info.d.ts +9 -9
  216. package/lib/generated-client/models/sessions-message.d.ts +37 -0
  217. package/lib/generated-client/models/sessions-start-message.d.ts +30 -0
  218. package/lib/generated-client/models/sessions-stop-message.d.ts +24 -0
  219. package/lib/generated-client/models/string-group-update.d.ts +36 -0
  220. package/lib/generated-client/models/sync-play-command-message.d.ts +37 -0
  221. package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +37 -0
  222. package/lib/generated-client/models/sync-play-queue-item.d.ts +29 -0
  223. package/lib/generated-client/models/system-info.d.ts +17 -6
  224. package/lib/generated-client/models/timer-cancelled-message.d.ts +37 -0
  225. package/lib/generated-client/models/timer-created-message.d.ts +37 -0
  226. package/lib/generated-client/models/transcoding-info.d.ts +3 -2
  227. package/lib/generated-client/models/transcoding-info.js +15 -0
  228. package/lib/generated-client/models/transcoding-profile.d.ts +3 -2
  229. package/lib/generated-client/models/trickplay-info.d.ts +59 -0
  230. package/lib/generated-client/models/trickplay-options.d.ts +85 -0
  231. package/lib/generated-client/models/trickplay-scan-behavior.d.ts +20 -0
  232. package/lib/generated-client/models/{notification-level.js → trickplay-scan-behavior.js} +5 -6
  233. package/lib/generated-client/models/tuner-host-info.d.ts +6 -0
  234. package/lib/generated-client/models/update-playlist-dto.d.ts +42 -0
  235. package/lib/generated-client/models/update-playlist-user-dto.d.ts +23 -0
  236. package/lib/generated-client/models/update-user-item-data-dto.d.ts +83 -0
  237. package/lib/generated-client/models/upload-subtitle-dto.d.ts +6 -0
  238. package/lib/generated-client/models/user-configuration.d.ts +6 -0
  239. package/lib/generated-client/models/user-data-change-info.d.ts +30 -0
  240. package/lib/generated-client/models/user-data-changed-message.d.ts +37 -0
  241. package/lib/generated-client/models/user-deleted-message.d.ts +36 -0
  242. package/lib/generated-client/models/user-dto.d.ts +1 -0
  243. package/lib/generated-client/models/user-policy.d.ts +26 -2
  244. package/lib/generated-client/models/user-updated-message.d.ts +37 -0
  245. package/lib/generated-client/models/video-range-type.d.ts +27 -0
  246. package/lib/generated-client/models/video-range-type.js +30 -0
  247. package/lib/generated-client/models/video-range.d.ts +21 -0
  248. package/lib/generated-client/models/{device-profile-type.js → video-range.js} +6 -5
  249. package/lib/generated-client/models/web-socket-message.d.ts +18 -0
  250. package/lib/utils/api/image-api.d.ts +2 -2
  251. package/lib/utils/api/image-api.js +2 -2
  252. package/lib/utils/api/image-urls-api.d.ts +55 -0
  253. package/lib/utils/api/image-urls-api.js +115 -0
  254. package/lib/utils/api/index.d.ts +2 -4
  255. package/lib/utils/api/index.js +2 -4
  256. package/lib/utils/api/{dlna-api.d.ts → lyrics-api.d.ts} +2 -2
  257. package/lib/utils/api/{dlna-api.js → lyrics-api.js} +4 -4
  258. package/lib/utils/api/{dlna-server-api.d.ts → trickplay-api.d.ts} +2 -2
  259. package/lib/utils/api/trickplay-api.js +12 -0
  260. package/lib/utils/authentication.js +5 -6
  261. package/lib/utils/index.d.ts +2 -1
  262. package/lib/utils/index.js +2 -1
  263. package/lib/utils/versioning.d.ts +9 -0
  264. package/lib/utils/versioning.js +32 -0
  265. package/lib/versions.d.ts +2 -2
  266. package/lib/versions.js +2 -2
  267. package/package.json +17 -22
  268. package/lib/generated-client/api/dlna-api.js +0 -422
  269. package/lib/generated-client/api/dlna-server-api.js +0 -1088
  270. package/lib/generated-client/api/image-by-name-api.js +0 -423
  271. package/lib/generated-client/api/notifications-api.js +0 -484
  272. package/lib/node_modules/tslib/tslib.es6.js +0 -26
  273. package/lib/utils/api/dlna-server-api.js +0 -12
  274. package/lib/utils/api/image-by-name-api.d.ts +0 -8
  275. package/lib/utils/api/image-by-name-api.js +0 -12
  276. package/lib/utils/api/notifications-api.d.ts +0 -8
  277. package/lib/utils/api/notifications-api.js +0 -12
@@ -1,9 +1,19 @@
1
- import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
2
1
  import globalAxios from 'axios';
3
2
  import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, assertParamExists, serializeDataIfNeeded, createRequestFunction } from '../common.js';
4
3
  import { BaseAPI, BASE_PATH } from '../base.js';
5
4
 
6
5
  /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * Do not edit the class manually.
10
+ *
11
+ * Jellyfin API
12
+ *
13
+ * This Source Code Form is subject to the terms of the Mozilla Public
14
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
15
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
16
+ */
7
17
  /**
8
18
  * ImageApi - axios parameter creator
9
19
  * @export
@@ -16,7 +26,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
16
26
  * @param {*} [options] Override http request option.
17
27
  * @throws {RequiredError}
18
28
  */
19
- deleteCustomSplashscreen: (options = {}) => __awaiter(this, void 0, void 0, function* () {
29
+ deleteCustomSplashscreen: async (options = {}) => {
20
30
  const localVarPath = `/Branding/Splashscreen`;
21
31
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
22
32
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -24,19 +34,19 @@ const ImageApiAxiosParamCreator = function (configuration) {
24
34
  if (configuration) {
25
35
  baseOptions = configuration.baseOptions;
26
36
  }
27
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
37
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
28
38
  const localVarHeaderParameter = {};
29
39
  const localVarQueryParameter = {};
30
40
  // authentication CustomAuthentication required
31
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
41
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
32
42
  setSearchParams(localVarUrlObj, localVarQueryParameter);
33
43
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
44
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
35
45
  return {
36
46
  url: toPathString(localVarUrlObj),
37
47
  options: localVarRequestOptions,
38
48
  };
39
- }),
49
+ },
40
50
  /**
41
51
  *
42
52
  * @summary Delete an item\'s image.
@@ -46,7 +56,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
46
56
  * @param {*} [options] Override http request option.
47
57
  * @throws {RequiredError}
48
58
  */
49
- deleteItemImage: (itemId, imageType, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
59
+ deleteItemImage: async (itemId, imageType, imageIndex, options = {}) => {
50
60
  // verify required parameter 'itemId' is not null or undefined
51
61
  assertParamExists('deleteItemImage', 'itemId', itemId);
52
62
  // verify required parameter 'imageType' is not null or undefined
@@ -60,22 +70,22 @@ const ImageApiAxiosParamCreator = function (configuration) {
60
70
  if (configuration) {
61
71
  baseOptions = configuration.baseOptions;
62
72
  }
63
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
73
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
64
74
  const localVarHeaderParameter = {};
65
75
  const localVarQueryParameter = {};
66
76
  // authentication CustomAuthentication required
67
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
77
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
68
78
  if (imageIndex !== undefined) {
69
79
  localVarQueryParameter['imageIndex'] = imageIndex;
70
80
  }
71
81
  setSearchParams(localVarUrlObj, localVarQueryParameter);
72
82
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
73
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
83
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
74
84
  return {
75
85
  url: toPathString(localVarUrlObj),
76
86
  options: localVarRequestOptions,
77
87
  };
78
- }),
88
+ },
79
89
  /**
80
90
  *
81
91
  * @summary Delete an item\'s image.
@@ -85,7 +95,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
85
95
  * @param {*} [options] Override http request option.
86
96
  * @throws {RequiredError}
87
97
  */
88
- deleteItemImageByIndex: (itemId, imageType, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
98
+ deleteItemImageByIndex: async (itemId, imageType, imageIndex, options = {}) => {
89
99
  // verify required parameter 'itemId' is not null or undefined
90
100
  assertParamExists('deleteItemImageByIndex', 'itemId', itemId);
91
101
  // verify required parameter 'imageType' is not null or undefined
@@ -102,97 +112,50 @@ const ImageApiAxiosParamCreator = function (configuration) {
102
112
  if (configuration) {
103
113
  baseOptions = configuration.baseOptions;
104
114
  }
105
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
115
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
106
116
  const localVarHeaderParameter = {};
107
117
  const localVarQueryParameter = {};
108
118
  // authentication CustomAuthentication required
109
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
119
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
110
120
  setSearchParams(localVarUrlObj, localVarQueryParameter);
111
121
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
112
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
122
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
113
123
  return {
114
124
  url: toPathString(localVarUrlObj),
115
125
  options: localVarRequestOptions,
116
126
  };
117
- }),
127
+ },
118
128
  /**
119
129
  *
120
130
  * @summary Delete the user\'s image.
121
- * @param {string} userId User Id.
122
- * @param {ImageType} imageType (Unused) Image type.
123
- * @param {number} [index] (Unused) Image index.
131
+ * @param {string} [userId] User Id.
124
132
  * @param {*} [options] Override http request option.
125
133
  * @throws {RequiredError}
126
134
  */
127
- deleteUserImage: (userId, imageType, index, options = {}) => __awaiter(this, void 0, void 0, function* () {
128
- // verify required parameter 'userId' is not null or undefined
129
- assertParamExists('deleteUserImage', 'userId', userId);
130
- // verify required parameter 'imageType' is not null or undefined
131
- assertParamExists('deleteUserImage', 'imageType', imageType);
132
- const localVarPath = `/Users/{userId}/Images/{imageType}`
133
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
134
- .replace(`{${"imageType"}}`, encodeURIComponent(String(imageType)));
135
+ deleteUserImage: async (userId, options = {}) => {
136
+ const localVarPath = `/UserImage`;
135
137
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
136
138
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
137
139
  let baseOptions;
138
140
  if (configuration) {
139
141
  baseOptions = configuration.baseOptions;
140
142
  }
141
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
143
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
142
144
  const localVarHeaderParameter = {};
143
145
  const localVarQueryParameter = {};
144
146
  // authentication CustomAuthentication required
145
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
146
- if (index !== undefined) {
147
- localVarQueryParameter['index'] = index;
147
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
148
+ if (userId !== undefined) {
149
+ localVarQueryParameter['userId'] = userId;
148
150
  }
149
151
  setSearchParams(localVarUrlObj, localVarQueryParameter);
150
152
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
153
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
152
154
  return {
153
155
  url: toPathString(localVarUrlObj),
154
156
  options: localVarRequestOptions,
155
157
  };
156
- }),
157
- /**
158
- *
159
- * @summary Delete the user\'s image.
160
- * @param {string} userId User Id.
161
- * @param {ImageType} imageType (Unused) Image type.
162
- * @param {number} index (Unused) Image index.
163
- * @param {*} [options] Override http request option.
164
- * @throws {RequiredError}
165
- */
166
- deleteUserImageByIndex: (userId, imageType, index, options = {}) => __awaiter(this, void 0, void 0, function* () {
167
- // verify required parameter 'userId' is not null or undefined
168
- assertParamExists('deleteUserImageByIndex', 'userId', userId);
169
- // verify required parameter 'imageType' is not null or undefined
170
- assertParamExists('deleteUserImageByIndex', 'imageType', imageType);
171
- // verify required parameter 'index' is not null or undefined
172
- assertParamExists('deleteUserImageByIndex', 'index', index);
173
- const localVarPath = `/Users/{userId}/Images/{imageType}/{index}`
174
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
175
- .replace(`{${"imageType"}}`, encodeURIComponent(String(imageType)))
176
- .replace(`{${"index"}}`, encodeURIComponent(String(index)));
177
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
178
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
179
- let baseOptions;
180
- if (configuration) {
181
- baseOptions = configuration.baseOptions;
182
- }
183
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
184
- const localVarHeaderParameter = {};
185
- const localVarQueryParameter = {};
186
- // authentication CustomAuthentication required
187
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
188
- setSearchParams(localVarUrlObj, localVarQueryParameter);
189
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
190
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
191
- return {
192
- url: toPathString(localVarUrlObj),
193
- options: localVarRequestOptions,
194
- };
195
- }),
158
+ },
196
159
  /**
197
160
  *
198
161
  * @summary Get artist image by name.
@@ -210,15 +173,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
210
173
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
211
174
  * @param {number} [fillWidth] Width of box to fill.
212
175
  * @param {number} [fillHeight] Height of box to fill.
213
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
214
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
215
176
  * @param {number} [blur] Optional. Blur image.
216
177
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
217
178
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
218
179
  * @param {*} [options] Override http request option.
219
180
  * @throws {RequiredError}
220
181
  */
221
- getArtistImage: (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
182
+ getArtistImage: async (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
222
183
  // verify required parameter 'name' is not null or undefined
223
184
  assertParamExists('getArtistImage', 'name', name);
224
185
  // verify required parameter 'imageType' is not null or undefined
@@ -235,7 +196,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
235
196
  if (configuration) {
236
197
  baseOptions = configuration.baseOptions;
237
198
  }
238
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
199
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
239
200
  const localVarHeaderParameter = {};
240
201
  const localVarQueryParameter = {};
241
202
  if (tag !== undefined) {
@@ -271,12 +232,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
271
232
  if (fillHeight !== undefined) {
272
233
  localVarQueryParameter['fillHeight'] = fillHeight;
273
234
  }
274
- if (cropWhitespace !== undefined) {
275
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
276
- }
277
- if (addPlayedIndicator !== undefined) {
278
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
279
- }
280
235
  if (blur !== undefined) {
281
236
  localVarQueryParameter['blur'] = blur;
282
237
  }
@@ -288,12 +243,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
288
243
  }
289
244
  setSearchParams(localVarUrlObj, localVarQueryParameter);
290
245
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
291
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
246
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
292
247
  return {
293
248
  url: toPathString(localVarUrlObj),
294
249
  options: localVarRequestOptions,
295
250
  };
296
- }),
251
+ },
297
252
  /**
298
253
  *
299
254
  * @summary Get genre image by name.
@@ -310,8 +265,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
310
265
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
311
266
  * @param {number} [fillWidth] Width of box to fill.
312
267
  * @param {number} [fillHeight] Height of box to fill.
313
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
314
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
315
268
  * @param {number} [blur] Optional. Blur image.
316
269
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
317
270
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -319,7 +272,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
319
272
  * @param {*} [options] Override http request option.
320
273
  * @throws {RequiredError}
321
274
  */
322
- getGenreImage: (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
275
+ getGenreImage: async (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
323
276
  // verify required parameter 'name' is not null or undefined
324
277
  assertParamExists('getGenreImage', 'name', name);
325
278
  // verify required parameter 'imageType' is not null or undefined
@@ -333,7 +286,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
333
286
  if (configuration) {
334
287
  baseOptions = configuration.baseOptions;
335
288
  }
336
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
289
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
337
290
  const localVarHeaderParameter = {};
338
291
  const localVarQueryParameter = {};
339
292
  if (tag !== undefined) {
@@ -369,12 +322,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
369
322
  if (fillHeight !== undefined) {
370
323
  localVarQueryParameter['fillHeight'] = fillHeight;
371
324
  }
372
- if (cropWhitespace !== undefined) {
373
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
374
- }
375
- if (addPlayedIndicator !== undefined) {
376
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
377
- }
378
325
  if (blur !== undefined) {
379
326
  localVarQueryParameter['blur'] = blur;
380
327
  }
@@ -389,12 +336,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
389
336
  }
390
337
  setSearchParams(localVarUrlObj, localVarQueryParameter);
391
338
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
392
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
339
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
393
340
  return {
394
341
  url: toPathString(localVarUrlObj),
395
342
  options: localVarRequestOptions,
396
343
  };
397
- }),
344
+ },
398
345
  /**
399
346
  *
400
347
  * @summary Get genre image by name.
@@ -412,15 +359,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
412
359
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
413
360
  * @param {number} [fillWidth] Width of box to fill.
414
361
  * @param {number} [fillHeight] Height of box to fill.
415
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
416
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
417
362
  * @param {number} [blur] Optional. Blur image.
418
363
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
419
364
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
420
365
  * @param {*} [options] Override http request option.
421
366
  * @throws {RequiredError}
422
367
  */
423
- getGenreImageByIndex: (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
368
+ getGenreImageByIndex: async (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
424
369
  // verify required parameter 'name' is not null or undefined
425
370
  assertParamExists('getGenreImageByIndex', 'name', name);
426
371
  // verify required parameter 'imageType' is not null or undefined
@@ -437,7 +382,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
437
382
  if (configuration) {
438
383
  baseOptions = configuration.baseOptions;
439
384
  }
440
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
385
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
441
386
  const localVarHeaderParameter = {};
442
387
  const localVarQueryParameter = {};
443
388
  if (tag !== undefined) {
@@ -473,12 +418,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
473
418
  if (fillHeight !== undefined) {
474
419
  localVarQueryParameter['fillHeight'] = fillHeight;
475
420
  }
476
- if (cropWhitespace !== undefined) {
477
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
478
- }
479
- if (addPlayedIndicator !== undefined) {
480
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
481
- }
482
421
  if (blur !== undefined) {
483
422
  localVarQueryParameter['blur'] = blur;
484
423
  }
@@ -490,12 +429,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
490
429
  }
491
430
  setSearchParams(localVarUrlObj, localVarQueryParameter);
492
431
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
493
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
432
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
494
433
  return {
495
434
  url: toPathString(localVarUrlObj),
496
435
  options: localVarRequestOptions,
497
436
  };
498
- }),
437
+ },
499
438
  /**
500
439
  *
501
440
  * @summary Gets the item\'s image.
@@ -509,9 +448,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
509
448
  * @param {number} [fillWidth] Width of box to fill.
510
449
  * @param {number} [fillHeight] Height of box to fill.
511
450
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
512
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
513
451
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
514
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
515
452
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
516
453
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
517
454
  * @param {number} [blur] Optional. Blur image.
@@ -521,7 +458,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
521
458
  * @param {*} [options] Override http request option.
522
459
  * @throws {RequiredError}
523
460
  */
524
- getItemImage: (itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
461
+ getItemImage: async (itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
525
462
  // verify required parameter 'itemId' is not null or undefined
526
463
  assertParamExists('getItemImage', 'itemId', itemId);
527
464
  // verify required parameter 'imageType' is not null or undefined
@@ -535,7 +472,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
535
472
  if (configuration) {
536
473
  baseOptions = configuration.baseOptions;
537
474
  }
538
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
475
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
539
476
  const localVarHeaderParameter = {};
540
477
  const localVarQueryParameter = {};
541
478
  if (maxWidth !== undefined) {
@@ -562,15 +499,9 @@ const ImageApiAxiosParamCreator = function (configuration) {
562
499
  if (tag !== undefined) {
563
500
  localVarQueryParameter['tag'] = tag;
564
501
  }
565
- if (cropWhitespace !== undefined) {
566
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
567
- }
568
502
  if (format !== undefined) {
569
503
  localVarQueryParameter['format'] = format;
570
504
  }
571
- if (addPlayedIndicator !== undefined) {
572
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
573
- }
574
505
  if (percentPlayed !== undefined) {
575
506
  localVarQueryParameter['percentPlayed'] = percentPlayed;
576
507
  }
@@ -591,12 +522,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
591
522
  }
592
523
  setSearchParams(localVarUrlObj, localVarQueryParameter);
593
524
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
594
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
525
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
595
526
  return {
596
527
  url: toPathString(localVarUrlObj),
597
528
  options: localVarRequestOptions,
598
529
  };
599
- }),
530
+ },
600
531
  /**
601
532
  *
602
533
  * @summary Gets the item\'s image.
@@ -614,15 +545,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
614
545
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
615
546
  * @param {number} [fillWidth] Width of box to fill.
616
547
  * @param {number} [fillHeight] Height of box to fill.
617
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
618
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
619
548
  * @param {number} [blur] Optional. Blur image.
620
549
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
621
550
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
622
551
  * @param {*} [options] Override http request option.
623
552
  * @throws {RequiredError}
624
553
  */
625
- getItemImage2: (itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
554
+ getItemImage2: async (itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
626
555
  // verify required parameter 'itemId' is not null or undefined
627
556
  assertParamExists('getItemImage2', 'itemId', itemId);
628
557
  // verify required parameter 'imageType' is not null or undefined
@@ -657,7 +586,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
657
586
  if (configuration) {
658
587
  baseOptions = configuration.baseOptions;
659
588
  }
660
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
589
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
661
590
  const localVarHeaderParameter = {};
662
591
  const localVarQueryParameter = {};
663
592
  if (width !== undefined) {
@@ -675,12 +604,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
675
604
  if (fillHeight !== undefined) {
676
605
  localVarQueryParameter['fillHeight'] = fillHeight;
677
606
  }
678
- if (cropWhitespace !== undefined) {
679
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
680
- }
681
- if (addPlayedIndicator !== undefined) {
682
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
683
- }
684
607
  if (blur !== undefined) {
685
608
  localVarQueryParameter['blur'] = blur;
686
609
  }
@@ -692,12 +615,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
692
615
  }
693
616
  setSearchParams(localVarUrlObj, localVarQueryParameter);
694
617
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
695
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
618
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
696
619
  return {
697
620
  url: toPathString(localVarUrlObj),
698
621
  options: localVarRequestOptions,
699
622
  };
700
- }),
623
+ },
701
624
  /**
702
625
  *
703
626
  * @summary Gets the item\'s image.
@@ -712,9 +635,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
712
635
  * @param {number} [fillWidth] Width of box to fill.
713
636
  * @param {number} [fillHeight] Height of box to fill.
714
637
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
715
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
716
638
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
717
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
718
639
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
719
640
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
720
641
  * @param {number} [blur] Optional. Blur image.
@@ -723,7 +644,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
723
644
  * @param {*} [options] Override http request option.
724
645
  * @throws {RequiredError}
725
646
  */
726
- getItemImageByIndex: (itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
647
+ getItemImageByIndex: async (itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options = {}) => {
727
648
  // verify required parameter 'itemId' is not null or undefined
728
649
  assertParamExists('getItemImageByIndex', 'itemId', itemId);
729
650
  // verify required parameter 'imageType' is not null or undefined
@@ -740,7 +661,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
740
661
  if (configuration) {
741
662
  baseOptions = configuration.baseOptions;
742
663
  }
743
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
664
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
744
665
  const localVarHeaderParameter = {};
745
666
  const localVarQueryParameter = {};
746
667
  if (maxWidth !== undefined) {
@@ -767,15 +688,9 @@ const ImageApiAxiosParamCreator = function (configuration) {
767
688
  if (tag !== undefined) {
768
689
  localVarQueryParameter['tag'] = tag;
769
690
  }
770
- if (cropWhitespace !== undefined) {
771
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
772
- }
773
691
  if (format !== undefined) {
774
692
  localVarQueryParameter['format'] = format;
775
693
  }
776
- if (addPlayedIndicator !== undefined) {
777
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
778
- }
779
694
  if (percentPlayed !== undefined) {
780
695
  localVarQueryParameter['percentPlayed'] = percentPlayed;
781
696
  }
@@ -793,12 +708,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
793
708
  }
794
709
  setSearchParams(localVarUrlObj, localVarQueryParameter);
795
710
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
796
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
711
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
797
712
  return {
798
713
  url: toPathString(localVarUrlObj),
799
714
  options: localVarRequestOptions,
800
715
  };
801
- }),
716
+ },
802
717
  /**
803
718
  *
804
719
  * @summary Get item image infos.
@@ -806,7 +721,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
806
721
  * @param {*} [options] Override http request option.
807
722
  * @throws {RequiredError}
808
723
  */
809
- getItemImageInfos: (itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
724
+ getItemImageInfos: async (itemId, options = {}) => {
810
725
  // verify required parameter 'itemId' is not null or undefined
811
726
  assertParamExists('getItemImageInfos', 'itemId', itemId);
812
727
  const localVarPath = `/Items/{itemId}/Images`
@@ -817,19 +732,19 @@ const ImageApiAxiosParamCreator = function (configuration) {
817
732
  if (configuration) {
818
733
  baseOptions = configuration.baseOptions;
819
734
  }
820
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
735
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
821
736
  const localVarHeaderParameter = {};
822
737
  const localVarQueryParameter = {};
823
738
  // authentication CustomAuthentication required
824
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
739
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
825
740
  setSearchParams(localVarUrlObj, localVarQueryParameter);
826
741
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
827
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
742
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
828
743
  return {
829
744
  url: toPathString(localVarUrlObj),
830
745
  options: localVarRequestOptions,
831
746
  };
832
- }),
747
+ },
833
748
  /**
834
749
  *
835
750
  * @summary Get music genre image by name.
@@ -846,8 +761,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
846
761
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
847
762
  * @param {number} [fillWidth] Width of box to fill.
848
763
  * @param {number} [fillHeight] Height of box to fill.
849
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
850
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
851
764
  * @param {number} [blur] Optional. Blur image.
852
765
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
853
766
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -855,7 +768,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
855
768
  * @param {*} [options] Override http request option.
856
769
  * @throws {RequiredError}
857
770
  */
858
- getMusicGenreImage: (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
771
+ getMusicGenreImage: async (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
859
772
  // verify required parameter 'name' is not null or undefined
860
773
  assertParamExists('getMusicGenreImage', 'name', name);
861
774
  // verify required parameter 'imageType' is not null or undefined
@@ -869,7 +782,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
869
782
  if (configuration) {
870
783
  baseOptions = configuration.baseOptions;
871
784
  }
872
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
785
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
873
786
  const localVarHeaderParameter = {};
874
787
  const localVarQueryParameter = {};
875
788
  if (tag !== undefined) {
@@ -905,12 +818,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
905
818
  if (fillHeight !== undefined) {
906
819
  localVarQueryParameter['fillHeight'] = fillHeight;
907
820
  }
908
- if (cropWhitespace !== undefined) {
909
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
910
- }
911
- if (addPlayedIndicator !== undefined) {
912
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
913
- }
914
821
  if (blur !== undefined) {
915
822
  localVarQueryParameter['blur'] = blur;
916
823
  }
@@ -925,12 +832,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
925
832
  }
926
833
  setSearchParams(localVarUrlObj, localVarQueryParameter);
927
834
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
928
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
835
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
929
836
  return {
930
837
  url: toPathString(localVarUrlObj),
931
838
  options: localVarRequestOptions,
932
839
  };
933
- }),
840
+ },
934
841
  /**
935
842
  *
936
843
  * @summary Get music genre image by name.
@@ -948,15 +855,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
948
855
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
949
856
  * @param {number} [fillWidth] Width of box to fill.
950
857
  * @param {number} [fillHeight] Height of box to fill.
951
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
952
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
953
858
  * @param {number} [blur] Optional. Blur image.
954
859
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
955
860
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
956
861
  * @param {*} [options] Override http request option.
957
862
  * @throws {RequiredError}
958
863
  */
959
- getMusicGenreImageByIndex: (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
864
+ getMusicGenreImageByIndex: async (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
960
865
  // verify required parameter 'name' is not null or undefined
961
866
  assertParamExists('getMusicGenreImageByIndex', 'name', name);
962
867
  // verify required parameter 'imageType' is not null or undefined
@@ -973,7 +878,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
973
878
  if (configuration) {
974
879
  baseOptions = configuration.baseOptions;
975
880
  }
976
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
881
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
977
882
  const localVarHeaderParameter = {};
978
883
  const localVarQueryParameter = {};
979
884
  if (tag !== undefined) {
@@ -1009,12 +914,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1009
914
  if (fillHeight !== undefined) {
1010
915
  localVarQueryParameter['fillHeight'] = fillHeight;
1011
916
  }
1012
- if (cropWhitespace !== undefined) {
1013
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
1014
- }
1015
- if (addPlayedIndicator !== undefined) {
1016
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
1017
- }
1018
917
  if (blur !== undefined) {
1019
918
  localVarQueryParameter['blur'] = blur;
1020
919
  }
@@ -1026,12 +925,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
1026
925
  }
1027
926
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1028
927
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1029
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
928
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1030
929
  return {
1031
930
  url: toPathString(localVarUrlObj),
1032
931
  options: localVarRequestOptions,
1033
932
  };
1034
- }),
933
+ },
1035
934
  /**
1036
935
  *
1037
936
  * @summary Get person image by name.
@@ -1048,8 +947,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1048
947
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
1049
948
  * @param {number} [fillWidth] Width of box to fill.
1050
949
  * @param {number} [fillHeight] Height of box to fill.
1051
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
1052
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
1053
950
  * @param {number} [blur] Optional. Blur image.
1054
951
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
1055
952
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -1057,7 +954,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1057
954
  * @param {*} [options] Override http request option.
1058
955
  * @throws {RequiredError}
1059
956
  */
1060
- getPersonImage: (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
957
+ getPersonImage: async (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
1061
958
  // verify required parameter 'name' is not null or undefined
1062
959
  assertParamExists('getPersonImage', 'name', name);
1063
960
  // verify required parameter 'imageType' is not null or undefined
@@ -1071,7 +968,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1071
968
  if (configuration) {
1072
969
  baseOptions = configuration.baseOptions;
1073
970
  }
1074
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
971
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1075
972
  const localVarHeaderParameter = {};
1076
973
  const localVarQueryParameter = {};
1077
974
  if (tag !== undefined) {
@@ -1107,12 +1004,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1107
1004
  if (fillHeight !== undefined) {
1108
1005
  localVarQueryParameter['fillHeight'] = fillHeight;
1109
1006
  }
1110
- if (cropWhitespace !== undefined) {
1111
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
1112
- }
1113
- if (addPlayedIndicator !== undefined) {
1114
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
1115
- }
1116
1007
  if (blur !== undefined) {
1117
1008
  localVarQueryParameter['blur'] = blur;
1118
1009
  }
@@ -1127,12 +1018,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
1127
1018
  }
1128
1019
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1129
1020
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1130
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1021
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1131
1022
  return {
1132
1023
  url: toPathString(localVarUrlObj),
1133
1024
  options: localVarRequestOptions,
1134
1025
  };
1135
- }),
1026
+ },
1136
1027
  /**
1137
1028
  *
1138
1029
  * @summary Get person image by name.
@@ -1150,15 +1041,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
1150
1041
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
1151
1042
  * @param {number} [fillWidth] Width of box to fill.
1152
1043
  * @param {number} [fillHeight] Height of box to fill.
1153
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
1154
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
1155
1044
  * @param {number} [blur] Optional. Blur image.
1156
1045
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
1157
1046
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
1158
1047
  * @param {*} [options] Override http request option.
1159
1048
  * @throws {RequiredError}
1160
1049
  */
1161
- getPersonImageByIndex: (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
1050
+ getPersonImageByIndex: async (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
1162
1051
  // verify required parameter 'name' is not null or undefined
1163
1052
  assertParamExists('getPersonImageByIndex', 'name', name);
1164
1053
  // verify required parameter 'imageType' is not null or undefined
@@ -1175,7 +1064,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1175
1064
  if (configuration) {
1176
1065
  baseOptions = configuration.baseOptions;
1177
1066
  }
1178
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1067
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1179
1068
  const localVarHeaderParameter = {};
1180
1069
  const localVarQueryParameter = {};
1181
1070
  if (tag !== undefined) {
@@ -1211,12 +1100,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1211
1100
  if (fillHeight !== undefined) {
1212
1101
  localVarQueryParameter['fillHeight'] = fillHeight;
1213
1102
  }
1214
- if (cropWhitespace !== undefined) {
1215
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
1216
- }
1217
- if (addPlayedIndicator !== undefined) {
1218
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
1219
- }
1220
1103
  if (blur !== undefined) {
1221
1104
  localVarQueryParameter['blur'] = blur;
1222
1105
  }
@@ -1228,12 +1111,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
1228
1111
  }
1229
1112
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1230
1113
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1231
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1114
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1232
1115
  return {
1233
1116
  url: toPathString(localVarUrlObj),
1234
1117
  options: localVarRequestOptions,
1235
1118
  };
1236
- }),
1119
+ },
1237
1120
  /**
1238
1121
  *
1239
1122
  * @summary Generates or gets the splashscreen.
@@ -1252,7 +1135,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1252
1135
  * @param {*} [options] Override http request option.
1253
1136
  * @throws {RequiredError}
1254
1137
  */
1255
- getSplashscreen: (tag, format, maxWidth, maxHeight, width, height, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, quality, options = {}) => __awaiter(this, void 0, void 0, function* () {
1138
+ getSplashscreen: async (tag, format, maxWidth, maxHeight, width, height, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, quality, options = {}) => {
1256
1139
  const localVarPath = `/Branding/Splashscreen`;
1257
1140
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1258
1141
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1260,7 +1143,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1260
1143
  if (configuration) {
1261
1144
  baseOptions = configuration.baseOptions;
1262
1145
  }
1263
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1146
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1264
1147
  const localVarHeaderParameter = {};
1265
1148
  const localVarQueryParameter = {};
1266
1149
  if (tag !== undefined) {
@@ -1301,12 +1184,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
1301
1184
  }
1302
1185
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1303
1186
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1304
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1187
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1305
1188
  return {
1306
1189
  url: toPathString(localVarUrlObj),
1307
1190
  options: localVarRequestOptions,
1308
1191
  };
1309
- }),
1192
+ },
1310
1193
  /**
1311
1194
  *
1312
1195
  * @summary Get studio image by name.
@@ -1323,8 +1206,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1323
1206
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
1324
1207
  * @param {number} [fillWidth] Width of box to fill.
1325
1208
  * @param {number} [fillHeight] Height of box to fill.
1326
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
1327
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
1328
1209
  * @param {number} [blur] Optional. Blur image.
1329
1210
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
1330
1211
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -1332,7 +1213,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1332
1213
  * @param {*} [options] Override http request option.
1333
1214
  * @throws {RequiredError}
1334
1215
  */
1335
- getStudioImage: (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
1216
+ getStudioImage: async (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
1336
1217
  // verify required parameter 'name' is not null or undefined
1337
1218
  assertParamExists('getStudioImage', 'name', name);
1338
1219
  // verify required parameter 'imageType' is not null or undefined
@@ -1346,7 +1227,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1346
1227
  if (configuration) {
1347
1228
  baseOptions = configuration.baseOptions;
1348
1229
  }
1349
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1230
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1350
1231
  const localVarHeaderParameter = {};
1351
1232
  const localVarQueryParameter = {};
1352
1233
  if (tag !== undefined) {
@@ -1382,12 +1263,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1382
1263
  if (fillHeight !== undefined) {
1383
1264
  localVarQueryParameter['fillHeight'] = fillHeight;
1384
1265
  }
1385
- if (cropWhitespace !== undefined) {
1386
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
1387
- }
1388
- if (addPlayedIndicator !== undefined) {
1389
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
1390
- }
1391
1266
  if (blur !== undefined) {
1392
1267
  localVarQueryParameter['blur'] = blur;
1393
1268
  }
@@ -1402,12 +1277,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
1402
1277
  }
1403
1278
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1404
1279
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1405
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1280
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1406
1281
  return {
1407
1282
  url: toPathString(localVarUrlObj),
1408
1283
  options: localVarRequestOptions,
1409
1284
  };
1410
- }),
1285
+ },
1411
1286
  /**
1412
1287
  *
1413
1288
  * @summary Get studio image by name.
@@ -1425,15 +1300,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
1425
1300
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
1426
1301
  * @param {number} [fillWidth] Width of box to fill.
1427
1302
  * @param {number} [fillHeight] Height of box to fill.
1428
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
1429
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
1430
1303
  * @param {number} [blur] Optional. Blur image.
1431
1304
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
1432
1305
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
1433
1306
  * @param {*} [options] Override http request option.
1434
1307
  * @throws {RequiredError}
1435
1308
  */
1436
- getStudioImageByIndex: (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
1309
+ getStudioImageByIndex: async (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
1437
1310
  // verify required parameter 'name' is not null or undefined
1438
1311
  assertParamExists('getStudioImageByIndex', 'name', name);
1439
1312
  // verify required parameter 'imageType' is not null or undefined
@@ -1450,7 +1323,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1450
1323
  if (configuration) {
1451
1324
  baseOptions = configuration.baseOptions;
1452
1325
  }
1453
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1326
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1454
1327
  const localVarHeaderParameter = {};
1455
1328
  const localVarQueryParameter = {};
1456
1329
  if (tag !== undefined) {
@@ -1486,12 +1359,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1486
1359
  if (fillHeight !== undefined) {
1487
1360
  localVarQueryParameter['fillHeight'] = fillHeight;
1488
1361
  }
1489
- if (cropWhitespace !== undefined) {
1490
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
1491
- }
1492
- if (addPlayedIndicator !== undefined) {
1493
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
1494
- }
1495
1362
  if (blur !== undefined) {
1496
1363
  localVarQueryParameter['blur'] = blur;
1497
1364
  }
@@ -1503,17 +1370,16 @@ const ImageApiAxiosParamCreator = function (configuration) {
1503
1370
  }
1504
1371
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1505
1372
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1506
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1373
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1507
1374
  return {
1508
1375
  url: toPathString(localVarUrlObj),
1509
1376
  options: localVarRequestOptions,
1510
1377
  };
1511
- }),
1378
+ },
1512
1379
  /**
1513
1380
  *
1514
1381
  * @summary Get user profile image.
1515
- * @param {string} userId User id.
1516
- * @param {ImageType} imageType Image type.
1382
+ * @param {string} [userId] User id.
1517
1383
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
1518
1384
  * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
1519
1385
  * @param {number} [maxWidth] The maximum image width to return.
@@ -1525,8 +1391,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1525
1391
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
1526
1392
  * @param {number} [fillWidth] Width of box to fill.
1527
1393
  * @param {number} [fillHeight] Height of box to fill.
1528
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
1529
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
1530
1394
  * @param {number} [blur] Optional. Blur image.
1531
1395
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
1532
1396
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -1534,23 +1398,20 @@ const ImageApiAxiosParamCreator = function (configuration) {
1534
1398
  * @param {*} [options] Override http request option.
1535
1399
  * @throws {RequiredError}
1536
1400
  */
1537
- getUserImage: (userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
1538
- // verify required parameter 'userId' is not null or undefined
1539
- assertParamExists('getUserImage', 'userId', userId);
1540
- // verify required parameter 'imageType' is not null or undefined
1541
- assertParamExists('getUserImage', 'imageType', imageType);
1542
- const localVarPath = `/Users/{userId}/Images/{imageType}`
1543
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
1544
- .replace(`{${"imageType"}}`, encodeURIComponent(String(imageType)));
1401
+ getUserImage: async (userId, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
1402
+ const localVarPath = `/UserImage`;
1545
1403
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1546
1404
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1547
1405
  let baseOptions;
1548
1406
  if (configuration) {
1549
1407
  baseOptions = configuration.baseOptions;
1550
1408
  }
1551
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1409
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1552
1410
  const localVarHeaderParameter = {};
1553
1411
  const localVarQueryParameter = {};
1412
+ if (userId !== undefined) {
1413
+ localVarQueryParameter['userId'] = userId;
1414
+ }
1554
1415
  if (tag !== undefined) {
1555
1416
  localVarQueryParameter['tag'] = tag;
1556
1417
  }
@@ -1584,12 +1445,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1584
1445
  if (fillHeight !== undefined) {
1585
1446
  localVarQueryParameter['fillHeight'] = fillHeight;
1586
1447
  }
1587
- if (cropWhitespace !== undefined) {
1588
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
1589
- }
1590
- if (addPlayedIndicator !== undefined) {
1591
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
1592
- }
1593
1448
  if (blur !== undefined) {
1594
1449
  localVarQueryParameter['blur'] = blur;
1595
1450
  }
@@ -1604,113 +1459,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
1604
1459
  }
1605
1460
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1606
1461
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1607
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1608
- return {
1609
- url: toPathString(localVarUrlObj),
1610
- options: localVarRequestOptions,
1611
- };
1612
- }),
1613
- /**
1614
- *
1615
- * @summary Get user profile image.
1616
- * @param {string} userId User id.
1617
- * @param {ImageType} imageType Image type.
1618
- * @param {number} imageIndex Image index.
1619
- * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
1620
- * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
1621
- * @param {number} [maxWidth] The maximum image width to return.
1622
- * @param {number} [maxHeight] The maximum image height to return.
1623
- * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
1624
- * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
1625
- * @param {number} [width] The fixed image width to return.
1626
- * @param {number} [height] The fixed image height to return.
1627
- * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
1628
- * @param {number} [fillWidth] Width of box to fill.
1629
- * @param {number} [fillHeight] Height of box to fill.
1630
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
1631
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
1632
- * @param {number} [blur] Optional. Blur image.
1633
- * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
1634
- * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
1635
- * @param {*} [options] Override http request option.
1636
- * @throws {RequiredError}
1637
- */
1638
- getUserImageByIndex: (userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
1639
- // verify required parameter 'userId' is not null or undefined
1640
- assertParamExists('getUserImageByIndex', 'userId', userId);
1641
- // verify required parameter 'imageType' is not null or undefined
1642
- assertParamExists('getUserImageByIndex', 'imageType', imageType);
1643
- // verify required parameter 'imageIndex' is not null or undefined
1644
- assertParamExists('getUserImageByIndex', 'imageIndex', imageIndex);
1645
- const localVarPath = `/Users/{userId}/Images/{imageType}/{imageIndex}`
1646
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
1647
- .replace(`{${"imageType"}}`, encodeURIComponent(String(imageType)))
1648
- .replace(`{${"imageIndex"}}`, encodeURIComponent(String(imageIndex)));
1649
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1650
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1651
- let baseOptions;
1652
- if (configuration) {
1653
- baseOptions = configuration.baseOptions;
1654
- }
1655
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1656
- const localVarHeaderParameter = {};
1657
- const localVarQueryParameter = {};
1658
- if (tag !== undefined) {
1659
- localVarQueryParameter['tag'] = tag;
1660
- }
1661
- if (format !== undefined) {
1662
- localVarQueryParameter['format'] = format;
1663
- }
1664
- if (maxWidth !== undefined) {
1665
- localVarQueryParameter['maxWidth'] = maxWidth;
1666
- }
1667
- if (maxHeight !== undefined) {
1668
- localVarQueryParameter['maxHeight'] = maxHeight;
1669
- }
1670
- if (percentPlayed !== undefined) {
1671
- localVarQueryParameter['percentPlayed'] = percentPlayed;
1672
- }
1673
- if (unplayedCount !== undefined) {
1674
- localVarQueryParameter['unplayedCount'] = unplayedCount;
1675
- }
1676
- if (width !== undefined) {
1677
- localVarQueryParameter['width'] = width;
1678
- }
1679
- if (height !== undefined) {
1680
- localVarQueryParameter['height'] = height;
1681
- }
1682
- if (quality !== undefined) {
1683
- localVarQueryParameter['quality'] = quality;
1684
- }
1685
- if (fillWidth !== undefined) {
1686
- localVarQueryParameter['fillWidth'] = fillWidth;
1687
- }
1688
- if (fillHeight !== undefined) {
1689
- localVarQueryParameter['fillHeight'] = fillHeight;
1690
- }
1691
- if (cropWhitespace !== undefined) {
1692
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
1693
- }
1694
- if (addPlayedIndicator !== undefined) {
1695
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
1696
- }
1697
- if (blur !== undefined) {
1698
- localVarQueryParameter['blur'] = blur;
1699
- }
1700
- if (backgroundColor !== undefined) {
1701
- localVarQueryParameter['backgroundColor'] = backgroundColor;
1702
- }
1703
- if (foregroundLayer !== undefined) {
1704
- localVarQueryParameter['foregroundLayer'] = foregroundLayer;
1705
- }
1706
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1707
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1708
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1462
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1709
1463
  return {
1710
1464
  url: toPathString(localVarUrlObj),
1711
1465
  options: localVarRequestOptions,
1712
1466
  };
1713
- }),
1467
+ },
1714
1468
  /**
1715
1469
  *
1716
1470
  * @summary Get artist image by name.
@@ -1728,15 +1482,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
1728
1482
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
1729
1483
  * @param {number} [fillWidth] Width of box to fill.
1730
1484
  * @param {number} [fillHeight] Height of box to fill.
1731
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
1732
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
1733
1485
  * @param {number} [blur] Optional. Blur image.
1734
1486
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
1735
1487
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
1736
1488
  * @param {*} [options] Override http request option.
1737
1489
  * @throws {RequiredError}
1738
1490
  */
1739
- headArtistImage: (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
1491
+ headArtistImage: async (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
1740
1492
  // verify required parameter 'name' is not null or undefined
1741
1493
  assertParamExists('headArtistImage', 'name', name);
1742
1494
  // verify required parameter 'imageType' is not null or undefined
@@ -1753,7 +1505,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1753
1505
  if (configuration) {
1754
1506
  baseOptions = configuration.baseOptions;
1755
1507
  }
1756
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
1508
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
1757
1509
  const localVarHeaderParameter = {};
1758
1510
  const localVarQueryParameter = {};
1759
1511
  if (tag !== undefined) {
@@ -1789,12 +1541,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1789
1541
  if (fillHeight !== undefined) {
1790
1542
  localVarQueryParameter['fillHeight'] = fillHeight;
1791
1543
  }
1792
- if (cropWhitespace !== undefined) {
1793
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
1794
- }
1795
- if (addPlayedIndicator !== undefined) {
1796
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
1797
- }
1798
1544
  if (blur !== undefined) {
1799
1545
  localVarQueryParameter['blur'] = blur;
1800
1546
  }
@@ -1806,12 +1552,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
1806
1552
  }
1807
1553
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1808
1554
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1809
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1555
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1810
1556
  return {
1811
1557
  url: toPathString(localVarUrlObj),
1812
1558
  options: localVarRequestOptions,
1813
1559
  };
1814
- }),
1560
+ },
1815
1561
  /**
1816
1562
  *
1817
1563
  * @summary Get genre image by name.
@@ -1828,8 +1574,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1828
1574
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
1829
1575
  * @param {number} [fillWidth] Width of box to fill.
1830
1576
  * @param {number} [fillHeight] Height of box to fill.
1831
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
1832
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
1833
1577
  * @param {number} [blur] Optional. Blur image.
1834
1578
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
1835
1579
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -1837,7 +1581,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1837
1581
  * @param {*} [options] Override http request option.
1838
1582
  * @throws {RequiredError}
1839
1583
  */
1840
- headGenreImage: (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
1584
+ headGenreImage: async (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
1841
1585
  // verify required parameter 'name' is not null or undefined
1842
1586
  assertParamExists('headGenreImage', 'name', name);
1843
1587
  // verify required parameter 'imageType' is not null or undefined
@@ -1851,7 +1595,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1851
1595
  if (configuration) {
1852
1596
  baseOptions = configuration.baseOptions;
1853
1597
  }
1854
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
1598
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
1855
1599
  const localVarHeaderParameter = {};
1856
1600
  const localVarQueryParameter = {};
1857
1601
  if (tag !== undefined) {
@@ -1887,12 +1631,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1887
1631
  if (fillHeight !== undefined) {
1888
1632
  localVarQueryParameter['fillHeight'] = fillHeight;
1889
1633
  }
1890
- if (cropWhitespace !== undefined) {
1891
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
1892
- }
1893
- if (addPlayedIndicator !== undefined) {
1894
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
1895
- }
1896
1634
  if (blur !== undefined) {
1897
1635
  localVarQueryParameter['blur'] = blur;
1898
1636
  }
@@ -1907,12 +1645,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
1907
1645
  }
1908
1646
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1909
1647
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1910
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1648
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1911
1649
  return {
1912
1650
  url: toPathString(localVarUrlObj),
1913
1651
  options: localVarRequestOptions,
1914
1652
  };
1915
- }),
1653
+ },
1916
1654
  /**
1917
1655
  *
1918
1656
  * @summary Get genre image by name.
@@ -1930,15 +1668,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
1930
1668
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
1931
1669
  * @param {number} [fillWidth] Width of box to fill.
1932
1670
  * @param {number} [fillHeight] Height of box to fill.
1933
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
1934
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
1935
1671
  * @param {number} [blur] Optional. Blur image.
1936
1672
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
1937
1673
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
1938
1674
  * @param {*} [options] Override http request option.
1939
1675
  * @throws {RequiredError}
1940
1676
  */
1941
- headGenreImageByIndex: (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
1677
+ headGenreImageByIndex: async (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
1942
1678
  // verify required parameter 'name' is not null or undefined
1943
1679
  assertParamExists('headGenreImageByIndex', 'name', name);
1944
1680
  // verify required parameter 'imageType' is not null or undefined
@@ -1955,7 +1691,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
1955
1691
  if (configuration) {
1956
1692
  baseOptions = configuration.baseOptions;
1957
1693
  }
1958
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
1694
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
1959
1695
  const localVarHeaderParameter = {};
1960
1696
  const localVarQueryParameter = {};
1961
1697
  if (tag !== undefined) {
@@ -1991,12 +1727,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
1991
1727
  if (fillHeight !== undefined) {
1992
1728
  localVarQueryParameter['fillHeight'] = fillHeight;
1993
1729
  }
1994
- if (cropWhitespace !== undefined) {
1995
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
1996
- }
1997
- if (addPlayedIndicator !== undefined) {
1998
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
1999
- }
2000
1730
  if (blur !== undefined) {
2001
1731
  localVarQueryParameter['blur'] = blur;
2002
1732
  }
@@ -2008,12 +1738,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
2008
1738
  }
2009
1739
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2010
1740
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2011
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1741
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2012
1742
  return {
2013
1743
  url: toPathString(localVarUrlObj),
2014
1744
  options: localVarRequestOptions,
2015
1745
  };
2016
- }),
1746
+ },
2017
1747
  /**
2018
1748
  *
2019
1749
  * @summary Gets the item\'s image.
@@ -2027,9 +1757,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2027
1757
  * @param {number} [fillWidth] Width of box to fill.
2028
1758
  * @param {number} [fillHeight] Height of box to fill.
2029
1759
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
2030
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
2031
1760
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
2032
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
2033
1761
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
2034
1762
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
2035
1763
  * @param {number} [blur] Optional. Blur image.
@@ -2039,7 +1767,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2039
1767
  * @param {*} [options] Override http request option.
2040
1768
  * @throws {RequiredError}
2041
1769
  */
2042
- headItemImage: (itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
1770
+ headItemImage: async (itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
2043
1771
  // verify required parameter 'itemId' is not null or undefined
2044
1772
  assertParamExists('headItemImage', 'itemId', itemId);
2045
1773
  // verify required parameter 'imageType' is not null or undefined
@@ -2053,7 +1781,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2053
1781
  if (configuration) {
2054
1782
  baseOptions = configuration.baseOptions;
2055
1783
  }
2056
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
1784
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
2057
1785
  const localVarHeaderParameter = {};
2058
1786
  const localVarQueryParameter = {};
2059
1787
  if (maxWidth !== undefined) {
@@ -2080,15 +1808,9 @@ const ImageApiAxiosParamCreator = function (configuration) {
2080
1808
  if (tag !== undefined) {
2081
1809
  localVarQueryParameter['tag'] = tag;
2082
1810
  }
2083
- if (cropWhitespace !== undefined) {
2084
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
2085
- }
2086
1811
  if (format !== undefined) {
2087
1812
  localVarQueryParameter['format'] = format;
2088
1813
  }
2089
- if (addPlayedIndicator !== undefined) {
2090
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
2091
- }
2092
1814
  if (percentPlayed !== undefined) {
2093
1815
  localVarQueryParameter['percentPlayed'] = percentPlayed;
2094
1816
  }
@@ -2109,12 +1831,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
2109
1831
  }
2110
1832
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2111
1833
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2112
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1834
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2113
1835
  return {
2114
1836
  url: toPathString(localVarUrlObj),
2115
1837
  options: localVarRequestOptions,
2116
1838
  };
2117
- }),
1839
+ },
2118
1840
  /**
2119
1841
  *
2120
1842
  * @summary Gets the item\'s image.
@@ -2132,15 +1854,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
2132
1854
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
2133
1855
  * @param {number} [fillWidth] Width of box to fill.
2134
1856
  * @param {number} [fillHeight] Height of box to fill.
2135
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
2136
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
2137
1857
  * @param {number} [blur] Optional. Blur image.
2138
1858
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
2139
1859
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
2140
1860
  * @param {*} [options] Override http request option.
2141
1861
  * @throws {RequiredError}
2142
1862
  */
2143
- headItemImage2: (itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
1863
+ headItemImage2: async (itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
2144
1864
  // verify required parameter 'itemId' is not null or undefined
2145
1865
  assertParamExists('headItemImage2', 'itemId', itemId);
2146
1866
  // verify required parameter 'imageType' is not null or undefined
@@ -2175,7 +1895,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2175
1895
  if (configuration) {
2176
1896
  baseOptions = configuration.baseOptions;
2177
1897
  }
2178
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
1898
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
2179
1899
  const localVarHeaderParameter = {};
2180
1900
  const localVarQueryParameter = {};
2181
1901
  if (width !== undefined) {
@@ -2193,12 +1913,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2193
1913
  if (fillHeight !== undefined) {
2194
1914
  localVarQueryParameter['fillHeight'] = fillHeight;
2195
1915
  }
2196
- if (cropWhitespace !== undefined) {
2197
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
2198
- }
2199
- if (addPlayedIndicator !== undefined) {
2200
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
2201
- }
2202
1916
  if (blur !== undefined) {
2203
1917
  localVarQueryParameter['blur'] = blur;
2204
1918
  }
@@ -2210,12 +1924,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
2210
1924
  }
2211
1925
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2212
1926
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2213
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1927
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2214
1928
  return {
2215
1929
  url: toPathString(localVarUrlObj),
2216
1930
  options: localVarRequestOptions,
2217
1931
  };
2218
- }),
1932
+ },
2219
1933
  /**
2220
1934
  *
2221
1935
  * @summary Gets the item\'s image.
@@ -2230,9 +1944,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2230
1944
  * @param {number} [fillWidth] Width of box to fill.
2231
1945
  * @param {number} [fillHeight] Height of box to fill.
2232
1946
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
2233
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
2234
1947
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
2235
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
2236
1948
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
2237
1949
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
2238
1950
  * @param {number} [blur] Optional. Blur image.
@@ -2241,7 +1953,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2241
1953
  * @param {*} [options] Override http request option.
2242
1954
  * @throws {RequiredError}
2243
1955
  */
2244
- headItemImageByIndex: (itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
1956
+ headItemImageByIndex: async (itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options = {}) => {
2245
1957
  // verify required parameter 'itemId' is not null or undefined
2246
1958
  assertParamExists('headItemImageByIndex', 'itemId', itemId);
2247
1959
  // verify required parameter 'imageType' is not null or undefined
@@ -2258,7 +1970,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2258
1970
  if (configuration) {
2259
1971
  baseOptions = configuration.baseOptions;
2260
1972
  }
2261
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
1973
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
2262
1974
  const localVarHeaderParameter = {};
2263
1975
  const localVarQueryParameter = {};
2264
1976
  if (maxWidth !== undefined) {
@@ -2285,15 +1997,9 @@ const ImageApiAxiosParamCreator = function (configuration) {
2285
1997
  if (tag !== undefined) {
2286
1998
  localVarQueryParameter['tag'] = tag;
2287
1999
  }
2288
- if (cropWhitespace !== undefined) {
2289
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
2290
- }
2291
2000
  if (format !== undefined) {
2292
2001
  localVarQueryParameter['format'] = format;
2293
2002
  }
2294
- if (addPlayedIndicator !== undefined) {
2295
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
2296
- }
2297
2003
  if (percentPlayed !== undefined) {
2298
2004
  localVarQueryParameter['percentPlayed'] = percentPlayed;
2299
2005
  }
@@ -2311,12 +2017,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
2311
2017
  }
2312
2018
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2313
2019
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2314
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2020
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2315
2021
  return {
2316
2022
  url: toPathString(localVarUrlObj),
2317
2023
  options: localVarRequestOptions,
2318
2024
  };
2319
- }),
2025
+ },
2320
2026
  /**
2321
2027
  *
2322
2028
  * @summary Get music genre image by name.
@@ -2333,8 +2039,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2333
2039
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
2334
2040
  * @param {number} [fillWidth] Width of box to fill.
2335
2041
  * @param {number} [fillHeight] Height of box to fill.
2336
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
2337
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
2338
2042
  * @param {number} [blur] Optional. Blur image.
2339
2043
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
2340
2044
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -2342,7 +2046,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2342
2046
  * @param {*} [options] Override http request option.
2343
2047
  * @throws {RequiredError}
2344
2048
  */
2345
- headMusicGenreImage: (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
2049
+ headMusicGenreImage: async (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
2346
2050
  // verify required parameter 'name' is not null or undefined
2347
2051
  assertParamExists('headMusicGenreImage', 'name', name);
2348
2052
  // verify required parameter 'imageType' is not null or undefined
@@ -2356,7 +2060,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2356
2060
  if (configuration) {
2357
2061
  baseOptions = configuration.baseOptions;
2358
2062
  }
2359
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
2063
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
2360
2064
  const localVarHeaderParameter = {};
2361
2065
  const localVarQueryParameter = {};
2362
2066
  if (tag !== undefined) {
@@ -2392,12 +2096,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2392
2096
  if (fillHeight !== undefined) {
2393
2097
  localVarQueryParameter['fillHeight'] = fillHeight;
2394
2098
  }
2395
- if (cropWhitespace !== undefined) {
2396
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
2397
- }
2398
- if (addPlayedIndicator !== undefined) {
2399
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
2400
- }
2401
2099
  if (blur !== undefined) {
2402
2100
  localVarQueryParameter['blur'] = blur;
2403
2101
  }
@@ -2412,12 +2110,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
2412
2110
  }
2413
2111
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2414
2112
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2415
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2113
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2416
2114
  return {
2417
2115
  url: toPathString(localVarUrlObj),
2418
2116
  options: localVarRequestOptions,
2419
2117
  };
2420
- }),
2118
+ },
2421
2119
  /**
2422
2120
  *
2423
2121
  * @summary Get music genre image by name.
@@ -2435,15 +2133,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
2435
2133
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
2436
2134
  * @param {number} [fillWidth] Width of box to fill.
2437
2135
  * @param {number} [fillHeight] Height of box to fill.
2438
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
2439
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
2440
2136
  * @param {number} [blur] Optional. Blur image.
2441
2137
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
2442
2138
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
2443
2139
  * @param {*} [options] Override http request option.
2444
2140
  * @throws {RequiredError}
2445
2141
  */
2446
- headMusicGenreImageByIndex: (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
2142
+ headMusicGenreImageByIndex: async (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
2447
2143
  // verify required parameter 'name' is not null or undefined
2448
2144
  assertParamExists('headMusicGenreImageByIndex', 'name', name);
2449
2145
  // verify required parameter 'imageType' is not null or undefined
@@ -2460,7 +2156,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2460
2156
  if (configuration) {
2461
2157
  baseOptions = configuration.baseOptions;
2462
2158
  }
2463
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
2159
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
2464
2160
  const localVarHeaderParameter = {};
2465
2161
  const localVarQueryParameter = {};
2466
2162
  if (tag !== undefined) {
@@ -2496,12 +2192,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2496
2192
  if (fillHeight !== undefined) {
2497
2193
  localVarQueryParameter['fillHeight'] = fillHeight;
2498
2194
  }
2499
- if (cropWhitespace !== undefined) {
2500
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
2501
- }
2502
- if (addPlayedIndicator !== undefined) {
2503
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
2504
- }
2505
2195
  if (blur !== undefined) {
2506
2196
  localVarQueryParameter['blur'] = blur;
2507
2197
  }
@@ -2513,12 +2203,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
2513
2203
  }
2514
2204
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2515
2205
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2516
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2206
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2517
2207
  return {
2518
2208
  url: toPathString(localVarUrlObj),
2519
2209
  options: localVarRequestOptions,
2520
2210
  };
2521
- }),
2211
+ },
2522
2212
  /**
2523
2213
  *
2524
2214
  * @summary Get person image by name.
@@ -2535,8 +2225,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2535
2225
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
2536
2226
  * @param {number} [fillWidth] Width of box to fill.
2537
2227
  * @param {number} [fillHeight] Height of box to fill.
2538
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
2539
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
2540
2228
  * @param {number} [blur] Optional. Blur image.
2541
2229
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
2542
2230
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -2544,7 +2232,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2544
2232
  * @param {*} [options] Override http request option.
2545
2233
  * @throws {RequiredError}
2546
2234
  */
2547
- headPersonImage: (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
2235
+ headPersonImage: async (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
2548
2236
  // verify required parameter 'name' is not null or undefined
2549
2237
  assertParamExists('headPersonImage', 'name', name);
2550
2238
  // verify required parameter 'imageType' is not null or undefined
@@ -2558,7 +2246,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2558
2246
  if (configuration) {
2559
2247
  baseOptions = configuration.baseOptions;
2560
2248
  }
2561
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
2249
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
2562
2250
  const localVarHeaderParameter = {};
2563
2251
  const localVarQueryParameter = {};
2564
2252
  if (tag !== undefined) {
@@ -2594,12 +2282,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2594
2282
  if (fillHeight !== undefined) {
2595
2283
  localVarQueryParameter['fillHeight'] = fillHeight;
2596
2284
  }
2597
- if (cropWhitespace !== undefined) {
2598
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
2599
- }
2600
- if (addPlayedIndicator !== undefined) {
2601
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
2602
- }
2603
2285
  if (blur !== undefined) {
2604
2286
  localVarQueryParameter['blur'] = blur;
2605
2287
  }
@@ -2614,12 +2296,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
2614
2296
  }
2615
2297
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2616
2298
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2617
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2299
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2618
2300
  return {
2619
2301
  url: toPathString(localVarUrlObj),
2620
2302
  options: localVarRequestOptions,
2621
2303
  };
2622
- }),
2304
+ },
2623
2305
  /**
2624
2306
  *
2625
2307
  * @summary Get person image by name.
@@ -2637,15 +2319,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
2637
2319
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
2638
2320
  * @param {number} [fillWidth] Width of box to fill.
2639
2321
  * @param {number} [fillHeight] Height of box to fill.
2640
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
2641
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
2642
2322
  * @param {number} [blur] Optional. Blur image.
2643
2323
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
2644
2324
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
2645
2325
  * @param {*} [options] Override http request option.
2646
2326
  * @throws {RequiredError}
2647
2327
  */
2648
- headPersonImageByIndex: (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
2328
+ headPersonImageByIndex: async (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
2649
2329
  // verify required parameter 'name' is not null or undefined
2650
2330
  assertParamExists('headPersonImageByIndex', 'name', name);
2651
2331
  // verify required parameter 'imageType' is not null or undefined
@@ -2662,7 +2342,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2662
2342
  if (configuration) {
2663
2343
  baseOptions = configuration.baseOptions;
2664
2344
  }
2665
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
2345
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
2666
2346
  const localVarHeaderParameter = {};
2667
2347
  const localVarQueryParameter = {};
2668
2348
  if (tag !== undefined) {
@@ -2698,12 +2378,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2698
2378
  if (fillHeight !== undefined) {
2699
2379
  localVarQueryParameter['fillHeight'] = fillHeight;
2700
2380
  }
2701
- if (cropWhitespace !== undefined) {
2702
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
2703
- }
2704
- if (addPlayedIndicator !== undefined) {
2705
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
2706
- }
2707
2381
  if (blur !== undefined) {
2708
2382
  localVarQueryParameter['blur'] = blur;
2709
2383
  }
@@ -2715,12 +2389,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
2715
2389
  }
2716
2390
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2717
2391
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2718
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2392
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2719
2393
  return {
2720
2394
  url: toPathString(localVarUrlObj),
2721
2395
  options: localVarRequestOptions,
2722
2396
  };
2723
- }),
2397
+ },
2724
2398
  /**
2725
2399
  *
2726
2400
  * @summary Get studio image by name.
@@ -2737,8 +2411,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2737
2411
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
2738
2412
  * @param {number} [fillWidth] Width of box to fill.
2739
2413
  * @param {number} [fillHeight] Height of box to fill.
2740
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
2741
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
2742
2414
  * @param {number} [blur] Optional. Blur image.
2743
2415
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
2744
2416
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -2746,7 +2418,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2746
2418
  * @param {*} [options] Override http request option.
2747
2419
  * @throws {RequiredError}
2748
2420
  */
2749
- headStudioImage: (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
2421
+ headStudioImage: async (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
2750
2422
  // verify required parameter 'name' is not null or undefined
2751
2423
  assertParamExists('headStudioImage', 'name', name);
2752
2424
  // verify required parameter 'imageType' is not null or undefined
@@ -2760,7 +2432,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2760
2432
  if (configuration) {
2761
2433
  baseOptions = configuration.baseOptions;
2762
2434
  }
2763
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
2435
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
2764
2436
  const localVarHeaderParameter = {};
2765
2437
  const localVarQueryParameter = {};
2766
2438
  if (tag !== undefined) {
@@ -2796,12 +2468,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2796
2468
  if (fillHeight !== undefined) {
2797
2469
  localVarQueryParameter['fillHeight'] = fillHeight;
2798
2470
  }
2799
- if (cropWhitespace !== undefined) {
2800
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
2801
- }
2802
- if (addPlayedIndicator !== undefined) {
2803
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
2804
- }
2805
2471
  if (blur !== undefined) {
2806
2472
  localVarQueryParameter['blur'] = blur;
2807
2473
  }
@@ -2816,12 +2482,12 @@ const ImageApiAxiosParamCreator = function (configuration) {
2816
2482
  }
2817
2483
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2818
2484
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2819
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2485
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2820
2486
  return {
2821
2487
  url: toPathString(localVarUrlObj),
2822
2488
  options: localVarRequestOptions,
2823
2489
  };
2824
- }),
2490
+ },
2825
2491
  /**
2826
2492
  *
2827
2493
  * @summary Get studio image by name.
@@ -2839,15 +2505,13 @@ const ImageApiAxiosParamCreator = function (configuration) {
2839
2505
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
2840
2506
  * @param {number} [fillWidth] Width of box to fill.
2841
2507
  * @param {number} [fillHeight] Height of box to fill.
2842
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
2843
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
2844
2508
  * @param {number} [blur] Optional. Blur image.
2845
2509
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
2846
2510
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
2847
2511
  * @param {*} [options] Override http request option.
2848
2512
  * @throws {RequiredError}
2849
2513
  */
2850
- headStudioImageByIndex: (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
2514
+ headStudioImageByIndex: async (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options = {}) => {
2851
2515
  // verify required parameter 'name' is not null or undefined
2852
2516
  assertParamExists('headStudioImageByIndex', 'name', name);
2853
2517
  // verify required parameter 'imageType' is not null or undefined
@@ -2864,7 +2528,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
2864
2528
  if (configuration) {
2865
2529
  baseOptions = configuration.baseOptions;
2866
2530
  }
2867
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
2531
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
2868
2532
  const localVarHeaderParameter = {};
2869
2533
  const localVarQueryParameter = {};
2870
2534
  if (tag !== undefined) {
@@ -2900,12 +2564,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2900
2564
  if (fillHeight !== undefined) {
2901
2565
  localVarQueryParameter['fillHeight'] = fillHeight;
2902
2566
  }
2903
- if (cropWhitespace !== undefined) {
2904
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
2905
- }
2906
- if (addPlayedIndicator !== undefined) {
2907
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
2908
- }
2909
2567
  if (blur !== undefined) {
2910
2568
  localVarQueryParameter['blur'] = blur;
2911
2569
  }
@@ -2917,17 +2575,16 @@ const ImageApiAxiosParamCreator = function (configuration) {
2917
2575
  }
2918
2576
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2919
2577
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2920
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2578
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2921
2579
  return {
2922
2580
  url: toPathString(localVarUrlObj),
2923
2581
  options: localVarRequestOptions,
2924
2582
  };
2925
- }),
2583
+ },
2926
2584
  /**
2927
2585
  *
2928
2586
  * @summary Get user profile image.
2929
- * @param {string} userId User id.
2930
- * @param {ImageType} imageType Image type.
2587
+ * @param {string} [userId] User id.
2931
2588
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
2932
2589
  * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
2933
2590
  * @param {number} [maxWidth] The maximum image width to return.
@@ -2939,8 +2596,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2939
2596
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
2940
2597
  * @param {number} [fillWidth] Width of box to fill.
2941
2598
  * @param {number} [fillHeight] Height of box to fill.
2942
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
2943
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
2944
2599
  * @param {number} [blur] Optional. Blur image.
2945
2600
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
2946
2601
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -2948,23 +2603,20 @@ const ImageApiAxiosParamCreator = function (configuration) {
2948
2603
  * @param {*} [options] Override http request option.
2949
2604
  * @throws {RequiredError}
2950
2605
  */
2951
- headUserImage: (userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
2952
- // verify required parameter 'userId' is not null or undefined
2953
- assertParamExists('headUserImage', 'userId', userId);
2954
- // verify required parameter 'imageType' is not null or undefined
2955
- assertParamExists('headUserImage', 'imageType', imageType);
2956
- const localVarPath = `/Users/{userId}/Images/{imageType}`
2957
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
2958
- .replace(`{${"imageType"}}`, encodeURIComponent(String(imageType)));
2606
+ headUserImage: async (userId, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options = {}) => {
2607
+ const localVarPath = `/UserImage`;
2959
2608
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2960
2609
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2961
2610
  let baseOptions;
2962
2611
  if (configuration) {
2963
2612
  baseOptions = configuration.baseOptions;
2964
2613
  }
2965
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
2614
+ const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
2966
2615
  const localVarHeaderParameter = {};
2967
2616
  const localVarQueryParameter = {};
2617
+ if (userId !== undefined) {
2618
+ localVarQueryParameter['userId'] = userId;
2619
+ }
2968
2620
  if (tag !== undefined) {
2969
2621
  localVarQueryParameter['tag'] = tag;
2970
2622
  }
@@ -2998,12 +2650,6 @@ const ImageApiAxiosParamCreator = function (configuration) {
2998
2650
  if (fillHeight !== undefined) {
2999
2651
  localVarQueryParameter['fillHeight'] = fillHeight;
3000
2652
  }
3001
- if (cropWhitespace !== undefined) {
3002
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
3003
- }
3004
- if (addPlayedIndicator !== undefined) {
3005
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
3006
- }
3007
2653
  if (blur !== undefined) {
3008
2654
  localVarQueryParameter['blur'] = blur;
3009
2655
  }
@@ -3018,197 +2664,46 @@ const ImageApiAxiosParamCreator = function (configuration) {
3018
2664
  }
3019
2665
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3020
2666
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3021
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2667
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3022
2668
  return {
3023
2669
  url: toPathString(localVarUrlObj),
3024
2670
  options: localVarRequestOptions,
3025
2671
  };
3026
- }),
3027
- /**
3028
- *
3029
- * @summary Get user profile image.
3030
- * @param {string} userId User id.
3031
- * @param {ImageType} imageType Image type.
3032
- * @param {number} imageIndex Image index.
3033
- * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
3034
- * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
3035
- * @param {number} [maxWidth] The maximum image width to return.
3036
- * @param {number} [maxHeight] The maximum image height to return.
3037
- * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
3038
- * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
3039
- * @param {number} [width] The fixed image width to return.
3040
- * @param {number} [height] The fixed image height to return.
3041
- * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3042
- * @param {number} [fillWidth] Width of box to fill.
3043
- * @param {number} [fillHeight] Height of box to fill.
3044
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3045
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3046
- * @param {number} [blur] Optional. Blur image.
3047
- * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3048
- * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
3049
- * @param {*} [options] Override http request option.
3050
- * @throws {RequiredError}
3051
- */
3052
- headUserImageByIndex: (userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options = {}) => __awaiter(this, void 0, void 0, function* () {
3053
- // verify required parameter 'userId' is not null or undefined
3054
- assertParamExists('headUserImageByIndex', 'userId', userId);
3055
- // verify required parameter 'imageType' is not null or undefined
3056
- assertParamExists('headUserImageByIndex', 'imageType', imageType);
3057
- // verify required parameter 'imageIndex' is not null or undefined
3058
- assertParamExists('headUserImageByIndex', 'imageIndex', imageIndex);
3059
- const localVarPath = `/Users/{userId}/Images/{imageType}/{imageIndex}`
3060
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
3061
- .replace(`{${"imageType"}}`, encodeURIComponent(String(imageType)))
3062
- .replace(`{${"imageIndex"}}`, encodeURIComponent(String(imageIndex)));
3063
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3064
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3065
- let baseOptions;
3066
- if (configuration) {
3067
- baseOptions = configuration.baseOptions;
3068
- }
3069
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
3070
- const localVarHeaderParameter = {};
3071
- const localVarQueryParameter = {};
3072
- if (tag !== undefined) {
3073
- localVarQueryParameter['tag'] = tag;
3074
- }
3075
- if (format !== undefined) {
3076
- localVarQueryParameter['format'] = format;
3077
- }
3078
- if (maxWidth !== undefined) {
3079
- localVarQueryParameter['maxWidth'] = maxWidth;
3080
- }
3081
- if (maxHeight !== undefined) {
3082
- localVarQueryParameter['maxHeight'] = maxHeight;
3083
- }
3084
- if (percentPlayed !== undefined) {
3085
- localVarQueryParameter['percentPlayed'] = percentPlayed;
3086
- }
3087
- if (unplayedCount !== undefined) {
3088
- localVarQueryParameter['unplayedCount'] = unplayedCount;
3089
- }
3090
- if (width !== undefined) {
3091
- localVarQueryParameter['width'] = width;
3092
- }
3093
- if (height !== undefined) {
3094
- localVarQueryParameter['height'] = height;
3095
- }
3096
- if (quality !== undefined) {
3097
- localVarQueryParameter['quality'] = quality;
3098
- }
3099
- if (fillWidth !== undefined) {
3100
- localVarQueryParameter['fillWidth'] = fillWidth;
3101
- }
3102
- if (fillHeight !== undefined) {
3103
- localVarQueryParameter['fillHeight'] = fillHeight;
3104
- }
3105
- if (cropWhitespace !== undefined) {
3106
- localVarQueryParameter['cropWhitespace'] = cropWhitespace;
3107
- }
3108
- if (addPlayedIndicator !== undefined) {
3109
- localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator;
3110
- }
3111
- if (blur !== undefined) {
3112
- localVarQueryParameter['blur'] = blur;
3113
- }
3114
- if (backgroundColor !== undefined) {
3115
- localVarQueryParameter['backgroundColor'] = backgroundColor;
3116
- }
3117
- if (foregroundLayer !== undefined) {
3118
- localVarQueryParameter['foregroundLayer'] = foregroundLayer;
3119
- }
3120
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3121
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3122
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3123
- return {
3124
- url: toPathString(localVarUrlObj),
3125
- options: localVarRequestOptions,
3126
- };
3127
- }),
2672
+ },
3128
2673
  /**
3129
2674
  *
3130
2675
  * @summary Sets the user image.
3131
- * @param {string} userId User Id.
3132
- * @param {ImageType} imageType (Unused) Image type.
3133
- * @param {number} [index] (Unused) Image index.
2676
+ * @param {string} [userId] User Id.
3134
2677
  * @param {any} [body]
3135
2678
  * @param {*} [options] Override http request option.
3136
2679
  * @throws {RequiredError}
3137
2680
  */
3138
- postUserImage: (userId, imageType, index, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
3139
- // verify required parameter 'userId' is not null or undefined
3140
- assertParamExists('postUserImage', 'userId', userId);
3141
- // verify required parameter 'imageType' is not null or undefined
3142
- assertParamExists('postUserImage', 'imageType', imageType);
3143
- const localVarPath = `/Users/{userId}/Images/{imageType}`
3144
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
3145
- .replace(`{${"imageType"}}`, encodeURIComponent(String(imageType)));
2681
+ postUserImage: async (userId, body, options = {}) => {
2682
+ const localVarPath = `/UserImage`;
3146
2683
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3147
2684
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3148
2685
  let baseOptions;
3149
2686
  if (configuration) {
3150
2687
  baseOptions = configuration.baseOptions;
3151
2688
  }
3152
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2689
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3153
2690
  const localVarHeaderParameter = {};
3154
2691
  const localVarQueryParameter = {};
3155
2692
  // authentication CustomAuthentication required
3156
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3157
- if (index !== undefined) {
3158
- localVarQueryParameter['index'] = index;
3159
- }
3160
- localVarHeaderParameter['Content-Type'] = 'image/_*';
3161
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3162
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3163
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3164
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
3165
- return {
3166
- url: toPathString(localVarUrlObj),
3167
- options: localVarRequestOptions,
3168
- };
3169
- }),
3170
- /**
3171
- *
3172
- * @summary Sets the user image.
3173
- * @param {string} userId User Id.
3174
- * @param {ImageType} imageType (Unused) Image type.
3175
- * @param {number} index (Unused) Image index.
3176
- * @param {any} [body]
3177
- * @param {*} [options] Override http request option.
3178
- * @throws {RequiredError}
3179
- */
3180
- postUserImageByIndex: (userId, imageType, index, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
3181
- // verify required parameter 'userId' is not null or undefined
3182
- assertParamExists('postUserImageByIndex', 'userId', userId);
3183
- // verify required parameter 'imageType' is not null or undefined
3184
- assertParamExists('postUserImageByIndex', 'imageType', imageType);
3185
- // verify required parameter 'index' is not null or undefined
3186
- assertParamExists('postUserImageByIndex', 'index', index);
3187
- const localVarPath = `/Users/{userId}/Images/{imageType}/{index}`
3188
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
3189
- .replace(`{${"imageType"}}`, encodeURIComponent(String(imageType)))
3190
- .replace(`{${"index"}}`, encodeURIComponent(String(index)));
3191
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3192
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3193
- let baseOptions;
3194
- if (configuration) {
3195
- baseOptions = configuration.baseOptions;
2693
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2694
+ if (userId !== undefined) {
2695
+ localVarQueryParameter['userId'] = userId;
3196
2696
  }
3197
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3198
- const localVarHeaderParameter = {};
3199
- const localVarQueryParameter = {};
3200
- // authentication CustomAuthentication required
3201
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3202
2697
  localVarHeaderParameter['Content-Type'] = 'image/_*';
3203
2698
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3204
2699
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3205
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2700
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3206
2701
  localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
3207
2702
  return {
3208
2703
  url: toPathString(localVarUrlObj),
3209
2704
  options: localVarRequestOptions,
3210
2705
  };
3211
- }),
2706
+ },
3212
2707
  /**
3213
2708
  *
3214
2709
  * @summary Set item image.
@@ -3218,7 +2713,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
3218
2713
  * @param {*} [options] Override http request option.
3219
2714
  * @throws {RequiredError}
3220
2715
  */
3221
- setItemImage: (itemId, imageType, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
2716
+ setItemImage: async (itemId, imageType, body, options = {}) => {
3222
2717
  // verify required parameter 'itemId' is not null or undefined
3223
2718
  assertParamExists('setItemImage', 'itemId', itemId);
3224
2719
  // verify required parameter 'imageType' is not null or undefined
@@ -3232,21 +2727,21 @@ const ImageApiAxiosParamCreator = function (configuration) {
3232
2727
  if (configuration) {
3233
2728
  baseOptions = configuration.baseOptions;
3234
2729
  }
3235
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2730
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3236
2731
  const localVarHeaderParameter = {};
3237
2732
  const localVarQueryParameter = {};
3238
2733
  // authentication CustomAuthentication required
3239
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2734
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3240
2735
  localVarHeaderParameter['Content-Type'] = 'image/_*';
3241
2736
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3242
2737
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3243
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2738
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3244
2739
  localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
3245
2740
  return {
3246
2741
  url: toPathString(localVarUrlObj),
3247
2742
  options: localVarRequestOptions,
3248
2743
  };
3249
- }),
2744
+ },
3250
2745
  /**
3251
2746
  *
3252
2747
  * @summary Set item image.
@@ -3257,7 +2752,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
3257
2752
  * @param {*} [options] Override http request option.
3258
2753
  * @throws {RequiredError}
3259
2754
  */
3260
- setItemImageByIndex: (itemId, imageType, imageIndex, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
2755
+ setItemImageByIndex: async (itemId, imageType, imageIndex, body, options = {}) => {
3261
2756
  // verify required parameter 'itemId' is not null or undefined
3262
2757
  assertParamExists('setItemImageByIndex', 'itemId', itemId);
3263
2758
  // verify required parameter 'imageType' is not null or undefined
@@ -3274,21 +2769,21 @@ const ImageApiAxiosParamCreator = function (configuration) {
3274
2769
  if (configuration) {
3275
2770
  baseOptions = configuration.baseOptions;
3276
2771
  }
3277
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2772
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3278
2773
  const localVarHeaderParameter = {};
3279
2774
  const localVarQueryParameter = {};
3280
2775
  // authentication CustomAuthentication required
3281
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2776
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3282
2777
  localVarHeaderParameter['Content-Type'] = 'image/_*';
3283
2778
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3284
2779
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3285
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2780
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3286
2781
  localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
3287
2782
  return {
3288
2783
  url: toPathString(localVarUrlObj),
3289
2784
  options: localVarRequestOptions,
3290
2785
  };
3291
- }),
2786
+ },
3292
2787
  /**
3293
2788
  *
3294
2789
  * @summary Updates the index for an item image.
@@ -3299,7 +2794,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
3299
2794
  * @param {*} [options] Override http request option.
3300
2795
  * @throws {RequiredError}
3301
2796
  */
3302
- updateItemImageIndex: (itemId, imageType, imageIndex, newIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
2797
+ updateItemImageIndex: async (itemId, imageType, imageIndex, newIndex, options = {}) => {
3303
2798
  // verify required parameter 'itemId' is not null or undefined
3304
2799
  assertParamExists('updateItemImageIndex', 'itemId', itemId);
3305
2800
  // verify required parameter 'imageType' is not null or undefined
@@ -3318,22 +2813,22 @@ const ImageApiAxiosParamCreator = function (configuration) {
3318
2813
  if (configuration) {
3319
2814
  baseOptions = configuration.baseOptions;
3320
2815
  }
3321
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2816
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3322
2817
  const localVarHeaderParameter = {};
3323
2818
  const localVarQueryParameter = {};
3324
2819
  // authentication CustomAuthentication required
3325
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2820
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3326
2821
  if (newIndex !== undefined) {
3327
2822
  localVarQueryParameter['newIndex'] = newIndex;
3328
2823
  }
3329
2824
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3330
2825
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3331
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2826
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3332
2827
  return {
3333
2828
  url: toPathString(localVarUrlObj),
3334
2829
  options: localVarRequestOptions,
3335
2830
  };
3336
- }),
2831
+ },
3337
2832
  /**
3338
2833
  *
3339
2834
  * @summary Uploads a custom splashscreen. The body is expected to the image contents base64 encoded.
@@ -3341,7 +2836,7 @@ const ImageApiAxiosParamCreator = function (configuration) {
3341
2836
  * @param {*} [options] Override http request option.
3342
2837
  * @throws {RequiredError}
3343
2838
  */
3344
- uploadCustomSplashscreen: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
2839
+ uploadCustomSplashscreen: async (body, options = {}) => {
3345
2840
  const localVarPath = `/Branding/Splashscreen`;
3346
2841
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3347
2842
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3349,21 +2844,21 @@ const ImageApiAxiosParamCreator = function (configuration) {
3349
2844
  if (configuration) {
3350
2845
  baseOptions = configuration.baseOptions;
3351
2846
  }
3352
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2847
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3353
2848
  const localVarHeaderParameter = {};
3354
2849
  const localVarQueryParameter = {};
3355
2850
  // authentication CustomAuthentication required
3356
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2851
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
3357
2852
  localVarHeaderParameter['Content-Type'] = 'image/_*';
3358
2853
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3359
2854
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3360
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2855
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3361
2856
  localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
3362
2857
  return {
3363
2858
  url: toPathString(localVarUrlObj),
3364
2859
  options: localVarRequestOptions,
3365
2860
  };
3366
- }),
2861
+ },
3367
2862
  };
3368
2863
  };
3369
2864
  /**
@@ -3379,11 +2874,9 @@ const ImageApiFp = function (configuration) {
3379
2874
  * @param {*} [options] Override http request option.
3380
2875
  * @throws {RequiredError}
3381
2876
  */
3382
- deleteCustomSplashscreen(options) {
3383
- return __awaiter(this, void 0, void 0, function* () {
3384
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCustomSplashscreen(options);
3385
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3386
- });
2877
+ async deleteCustomSplashscreen(options) {
2878
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCustomSplashscreen(options);
2879
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3387
2880
  },
3388
2881
  /**
3389
2882
  *
@@ -3394,11 +2887,9 @@ const ImageApiFp = function (configuration) {
3394
2887
  * @param {*} [options] Override http request option.
3395
2888
  * @throws {RequiredError}
3396
2889
  */
3397
- deleteItemImage(itemId, imageType, imageIndex, options) {
3398
- return __awaiter(this, void 0, void 0, function* () {
3399
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteItemImage(itemId, imageType, imageIndex, options);
3400
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3401
- });
2890
+ async deleteItemImage(itemId, imageType, imageIndex, options) {
2891
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteItemImage(itemId, imageType, imageIndex, options);
2892
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3402
2893
  },
3403
2894
  /**
3404
2895
  *
@@ -3409,41 +2900,20 @@ const ImageApiFp = function (configuration) {
3409
2900
  * @param {*} [options] Override http request option.
3410
2901
  * @throws {RequiredError}
3411
2902
  */
3412
- deleteItemImageByIndex(itemId, imageType, imageIndex, options) {
3413
- return __awaiter(this, void 0, void 0, function* () {
3414
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteItemImageByIndex(itemId, imageType, imageIndex, options);
3415
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3416
- });
2903
+ async deleteItemImageByIndex(itemId, imageType, imageIndex, options) {
2904
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteItemImageByIndex(itemId, imageType, imageIndex, options);
2905
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3417
2906
  },
3418
2907
  /**
3419
2908
  *
3420
2909
  * @summary Delete the user\'s image.
3421
- * @param {string} userId User Id.
3422
- * @param {ImageType} imageType (Unused) Image type.
3423
- * @param {number} [index] (Unused) Image index.
2910
+ * @param {string} [userId] User Id.
3424
2911
  * @param {*} [options] Override http request option.
3425
2912
  * @throws {RequiredError}
3426
2913
  */
3427
- deleteUserImage(userId, imageType, index, options) {
3428
- return __awaiter(this, void 0, void 0, function* () {
3429
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserImage(userId, imageType, index, options);
3430
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3431
- });
3432
- },
3433
- /**
3434
- *
3435
- * @summary Delete the user\'s image.
3436
- * @param {string} userId User Id.
3437
- * @param {ImageType} imageType (Unused) Image type.
3438
- * @param {number} index (Unused) Image index.
3439
- * @param {*} [options] Override http request option.
3440
- * @throws {RequiredError}
3441
- */
3442
- deleteUserImageByIndex(userId, imageType, index, options) {
3443
- return __awaiter(this, void 0, void 0, function* () {
3444
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserImageByIndex(userId, imageType, index, options);
3445
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3446
- });
2914
+ async deleteUserImage(userId, options) {
2915
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserImage(userId, options);
2916
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3447
2917
  },
3448
2918
  /**
3449
2919
  *
@@ -3462,19 +2932,15 @@ const ImageApiFp = function (configuration) {
3462
2932
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3463
2933
  * @param {number} [fillWidth] Width of box to fill.
3464
2934
  * @param {number} [fillHeight] Height of box to fill.
3465
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3466
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3467
2935
  * @param {number} [blur] Optional. Blur image.
3468
2936
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3469
2937
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
3470
2938
  * @param {*} [options] Override http request option.
3471
2939
  * @throws {RequiredError}
3472
2940
  */
3473
- getArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
3474
- return __awaiter(this, void 0, void 0, function* () {
3475
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
3476
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3477
- });
2941
+ async getArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
2942
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
2943
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3478
2944
  },
3479
2945
  /**
3480
2946
  *
@@ -3492,8 +2958,6 @@ const ImageApiFp = function (configuration) {
3492
2958
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3493
2959
  * @param {number} [fillWidth] Width of box to fill.
3494
2960
  * @param {number} [fillHeight] Height of box to fill.
3495
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3496
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3497
2961
  * @param {number} [blur] Optional. Blur image.
3498
2962
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3499
2963
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -3501,11 +2965,9 @@ const ImageApiFp = function (configuration) {
3501
2965
  * @param {*} [options] Override http request option.
3502
2966
  * @throws {RequiredError}
3503
2967
  */
3504
- getGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3505
- return __awaiter(this, void 0, void 0, function* () {
3506
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options);
3507
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3508
- });
2968
+ async getGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
2969
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options);
2970
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3509
2971
  },
3510
2972
  /**
3511
2973
  *
@@ -3524,19 +2986,15 @@ const ImageApiFp = function (configuration) {
3524
2986
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3525
2987
  * @param {number} [fillWidth] Width of box to fill.
3526
2988
  * @param {number} [fillHeight] Height of box to fill.
3527
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3528
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3529
2989
  * @param {number} [blur] Optional. Blur image.
3530
2990
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3531
2991
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
3532
2992
  * @param {*} [options] Override http request option.
3533
2993
  * @throws {RequiredError}
3534
2994
  */
3535
- getGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
3536
- return __awaiter(this, void 0, void 0, function* () {
3537
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
3538
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3539
- });
2995
+ async getGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
2996
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
2997
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3540
2998
  },
3541
2999
  /**
3542
3000
  *
@@ -3551,9 +3009,7 @@ const ImageApiFp = function (configuration) {
3551
3009
  * @param {number} [fillWidth] Width of box to fill.
3552
3010
  * @param {number} [fillHeight] Height of box to fill.
3553
3011
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
3554
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3555
3012
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
3556
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3557
3013
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
3558
3014
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
3559
3015
  * @param {number} [blur] Optional. Blur image.
@@ -3563,11 +3019,9 @@ const ImageApiFp = function (configuration) {
3563
3019
  * @param {*} [options] Override http request option.
3564
3020
  * @throws {RequiredError}
3565
3021
  */
3566
- getItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3567
- return __awaiter(this, void 0, void 0, function* () {
3568
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options);
3569
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3570
- });
3022
+ async getItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3023
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options);
3024
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3571
3025
  },
3572
3026
  /**
3573
3027
  *
@@ -3586,19 +3040,15 @@ const ImageApiFp = function (configuration) {
3586
3040
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3587
3041
  * @param {number} [fillWidth] Width of box to fill.
3588
3042
  * @param {number} [fillHeight] Height of box to fill.
3589
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3590
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3591
3043
  * @param {number} [blur] Optional. Blur image.
3592
3044
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3593
3045
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
3594
3046
  * @param {*} [options] Override http request option.
3595
3047
  * @throws {RequiredError}
3596
3048
  */
3597
- getItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
3598
- return __awaiter(this, void 0, void 0, function* () {
3599
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
3600
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3601
- });
3049
+ async getItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3050
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
3051
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3602
3052
  },
3603
3053
  /**
3604
3054
  *
@@ -3614,9 +3064,7 @@ const ImageApiFp = function (configuration) {
3614
3064
  * @param {number} [fillWidth] Width of box to fill.
3615
3065
  * @param {number} [fillHeight] Height of box to fill.
3616
3066
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
3617
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3618
3067
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
3619
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3620
3068
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
3621
3069
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
3622
3070
  * @param {number} [blur] Optional. Blur image.
@@ -3625,11 +3073,9 @@ const ImageApiFp = function (configuration) {
3625
3073
  * @param {*} [options] Override http request option.
3626
3074
  * @throws {RequiredError}
3627
3075
  */
3628
- getItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) {
3629
- return __awaiter(this, void 0, void 0, function* () {
3630
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options);
3631
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3632
- });
3076
+ async getItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) {
3077
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options);
3078
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3633
3079
  },
3634
3080
  /**
3635
3081
  *
@@ -3638,11 +3084,9 @@ const ImageApiFp = function (configuration) {
3638
3084
  * @param {*} [options] Override http request option.
3639
3085
  * @throws {RequiredError}
3640
3086
  */
3641
- getItemImageInfos(itemId, options) {
3642
- return __awaiter(this, void 0, void 0, function* () {
3643
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getItemImageInfos(itemId, options);
3644
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3645
- });
3087
+ async getItemImageInfos(itemId, options) {
3088
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getItemImageInfos(itemId, options);
3089
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3646
3090
  },
3647
3091
  /**
3648
3092
  *
@@ -3660,8 +3104,6 @@ const ImageApiFp = function (configuration) {
3660
3104
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3661
3105
  * @param {number} [fillWidth] Width of box to fill.
3662
3106
  * @param {number} [fillHeight] Height of box to fill.
3663
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3664
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3665
3107
  * @param {number} [blur] Optional. Blur image.
3666
3108
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3667
3109
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -3669,11 +3111,9 @@ const ImageApiFp = function (configuration) {
3669
3111
  * @param {*} [options] Override http request option.
3670
3112
  * @throws {RequiredError}
3671
3113
  */
3672
- getMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3673
- return __awaiter(this, void 0, void 0, function* () {
3674
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options);
3675
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3676
- });
3114
+ async getMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3115
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options);
3116
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3677
3117
  },
3678
3118
  /**
3679
3119
  *
@@ -3692,19 +3132,15 @@ const ImageApiFp = function (configuration) {
3692
3132
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3693
3133
  * @param {number} [fillWidth] Width of box to fill.
3694
3134
  * @param {number} [fillHeight] Height of box to fill.
3695
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3696
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3697
3135
  * @param {number} [blur] Optional. Blur image.
3698
3136
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3699
3137
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
3700
3138
  * @param {*} [options] Override http request option.
3701
3139
  * @throws {RequiredError}
3702
3140
  */
3703
- getMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
3704
- return __awaiter(this, void 0, void 0, function* () {
3705
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
3706
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3707
- });
3141
+ async getMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3142
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
3143
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3708
3144
  },
3709
3145
  /**
3710
3146
  *
@@ -3722,8 +3158,6 @@ const ImageApiFp = function (configuration) {
3722
3158
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3723
3159
  * @param {number} [fillWidth] Width of box to fill.
3724
3160
  * @param {number} [fillHeight] Height of box to fill.
3725
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3726
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3727
3161
  * @param {number} [blur] Optional. Blur image.
3728
3162
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3729
3163
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -3731,11 +3165,9 @@ const ImageApiFp = function (configuration) {
3731
3165
  * @param {*} [options] Override http request option.
3732
3166
  * @throws {RequiredError}
3733
3167
  */
3734
- getPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3735
- return __awaiter(this, void 0, void 0, function* () {
3736
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options);
3737
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3738
- });
3168
+ async getPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3169
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options);
3170
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3739
3171
  },
3740
3172
  /**
3741
3173
  *
@@ -3754,19 +3186,15 @@ const ImageApiFp = function (configuration) {
3754
3186
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3755
3187
  * @param {number} [fillWidth] Width of box to fill.
3756
3188
  * @param {number} [fillHeight] Height of box to fill.
3757
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3758
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3759
3189
  * @param {number} [blur] Optional. Blur image.
3760
3190
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3761
3191
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
3762
3192
  * @param {*} [options] Override http request option.
3763
3193
  * @throws {RequiredError}
3764
3194
  */
3765
- getPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
3766
- return __awaiter(this, void 0, void 0, function* () {
3767
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
3768
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3769
- });
3195
+ async getPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3196
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
3197
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3770
3198
  },
3771
3199
  /**
3772
3200
  *
@@ -3786,11 +3214,9 @@ const ImageApiFp = function (configuration) {
3786
3214
  * @param {*} [options] Override http request option.
3787
3215
  * @throws {RequiredError}
3788
3216
  */
3789
- getSplashscreen(tag, format, maxWidth, maxHeight, width, height, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, quality, options) {
3790
- return __awaiter(this, void 0, void 0, function* () {
3791
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSplashscreen(tag, format, maxWidth, maxHeight, width, height, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, quality, options);
3792
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3793
- });
3217
+ async getSplashscreen(tag, format, maxWidth, maxHeight, width, height, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, quality, options) {
3218
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSplashscreen(tag, format, maxWidth, maxHeight, width, height, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, quality, options);
3219
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3794
3220
  },
3795
3221
  /**
3796
3222
  *
@@ -3808,8 +3234,6 @@ const ImageApiFp = function (configuration) {
3808
3234
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3809
3235
  * @param {number} [fillWidth] Width of box to fill.
3810
3236
  * @param {number} [fillHeight] Height of box to fill.
3811
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3812
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3813
3237
  * @param {number} [blur] Optional. Blur image.
3814
3238
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3815
3239
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -3817,11 +3241,9 @@ const ImageApiFp = function (configuration) {
3817
3241
  * @param {*} [options] Override http request option.
3818
3242
  * @throws {RequiredError}
3819
3243
  */
3820
- getStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3821
- return __awaiter(this, void 0, void 0, function* () {
3822
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options);
3823
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3824
- });
3244
+ async getStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3245
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options);
3246
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3825
3247
  },
3826
3248
  /**
3827
3249
  *
@@ -3840,25 +3262,20 @@ const ImageApiFp = function (configuration) {
3840
3262
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3841
3263
  * @param {number} [fillWidth] Width of box to fill.
3842
3264
  * @param {number} [fillHeight] Height of box to fill.
3843
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3844
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3845
3265
  * @param {number} [blur] Optional. Blur image.
3846
3266
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3847
3267
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
3848
3268
  * @param {*} [options] Override http request option.
3849
3269
  * @throws {RequiredError}
3850
3270
  */
3851
- getStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
3852
- return __awaiter(this, void 0, void 0, function* () {
3853
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
3854
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3855
- });
3271
+ async getStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3272
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
3273
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3856
3274
  },
3857
3275
  /**
3858
3276
  *
3859
3277
  * @summary Get user profile image.
3860
- * @param {string} userId User id.
3861
- * @param {ImageType} imageType Image type.
3278
+ * @param {string} [userId] User id.
3862
3279
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
3863
3280
  * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
3864
3281
  * @param {number} [maxWidth] The maximum image width to return.
@@ -3870,8 +3287,6 @@ const ImageApiFp = function (configuration) {
3870
3287
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3871
3288
  * @param {number} [fillWidth] Width of box to fill.
3872
3289
  * @param {number} [fillHeight] Height of box to fill.
3873
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3874
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3875
3290
  * @param {number} [blur] Optional. Blur image.
3876
3291
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3877
3292
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -3879,42 +3294,9 @@ const ImageApiFp = function (configuration) {
3879
3294
  * @param {*} [options] Override http request option.
3880
3295
  * @throws {RequiredError}
3881
3296
  */
3882
- getUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3883
- return __awaiter(this, void 0, void 0, function* () {
3884
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options);
3885
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3886
- });
3887
- },
3888
- /**
3889
- *
3890
- * @summary Get user profile image.
3891
- * @param {string} userId User id.
3892
- * @param {ImageType} imageType Image type.
3893
- * @param {number} imageIndex Image index.
3894
- * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
3895
- * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
3896
- * @param {number} [maxWidth] The maximum image width to return.
3897
- * @param {number} [maxHeight] The maximum image height to return.
3898
- * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
3899
- * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
3900
- * @param {number} [width] The fixed image width to return.
3901
- * @param {number} [height] The fixed image height to return.
3902
- * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3903
- * @param {number} [fillWidth] Width of box to fill.
3904
- * @param {number} [fillHeight] Height of box to fill.
3905
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3906
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3907
- * @param {number} [blur] Optional. Blur image.
3908
- * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3909
- * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
3910
- * @param {*} [options] Override http request option.
3911
- * @throws {RequiredError}
3912
- */
3913
- getUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
3914
- return __awaiter(this, void 0, void 0, function* () {
3915
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
3916
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3917
- });
3297
+ async getUserImage(userId, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3298
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserImage(userId, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options);
3299
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3918
3300
  },
3919
3301
  /**
3920
3302
  *
@@ -3933,19 +3315,15 @@ const ImageApiFp = function (configuration) {
3933
3315
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3934
3316
  * @param {number} [fillWidth] Width of box to fill.
3935
3317
  * @param {number} [fillHeight] Height of box to fill.
3936
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3937
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3938
3318
  * @param {number} [blur] Optional. Blur image.
3939
3319
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3940
3320
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
3941
3321
  * @param {*} [options] Override http request option.
3942
3322
  * @throws {RequiredError}
3943
3323
  */
3944
- headArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
3945
- return __awaiter(this, void 0, void 0, function* () {
3946
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
3947
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3948
- });
3324
+ async headArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
3326
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3949
3327
  },
3950
3328
  /**
3951
3329
  *
@@ -3963,8 +3341,6 @@ const ImageApiFp = function (configuration) {
3963
3341
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3964
3342
  * @param {number} [fillWidth] Width of box to fill.
3965
3343
  * @param {number} [fillHeight] Height of box to fill.
3966
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3967
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
3968
3344
  * @param {number} [blur] Optional. Blur image.
3969
3345
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
3970
3346
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -3972,11 +3348,9 @@ const ImageApiFp = function (configuration) {
3972
3348
  * @param {*} [options] Override http request option.
3973
3349
  * @throws {RequiredError}
3974
3350
  */
3975
- headGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3976
- return __awaiter(this, void 0, void 0, function* () {
3977
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options);
3978
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3979
- });
3351
+ async headGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options);
3353
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3980
3354
  },
3981
3355
  /**
3982
3356
  *
@@ -3995,19 +3369,15 @@ const ImageApiFp = function (configuration) {
3995
3369
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
3996
3370
  * @param {number} [fillWidth] Width of box to fill.
3997
3371
  * @param {number} [fillHeight] Height of box to fill.
3998
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
3999
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4000
3372
  * @param {number} [blur] Optional. Blur image.
4001
3373
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4002
3374
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4003
3375
  * @param {*} [options] Override http request option.
4004
3376
  * @throws {RequiredError}
4005
3377
  */
4006
- headGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4007
- return __awaiter(this, void 0, void 0, function* () {
4008
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
4009
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4010
- });
3378
+ async headGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
3380
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4011
3381
  },
4012
3382
  /**
4013
3383
  *
@@ -4022,9 +3392,7 @@ const ImageApiFp = function (configuration) {
4022
3392
  * @param {number} [fillWidth] Width of box to fill.
4023
3393
  * @param {number} [fillHeight] Height of box to fill.
4024
3394
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
4025
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4026
3395
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
4027
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4028
3396
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
4029
3397
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
4030
3398
  * @param {number} [blur] Optional. Blur image.
@@ -4034,11 +3402,9 @@ const ImageApiFp = function (configuration) {
4034
3402
  * @param {*} [options] Override http request option.
4035
3403
  * @throws {RequiredError}
4036
3404
  */
4037
- headItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4038
- return __awaiter(this, void 0, void 0, function* () {
4039
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options);
4040
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4041
- });
3405
+ async headItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3406
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options);
3407
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4042
3408
  },
4043
3409
  /**
4044
3410
  *
@@ -4057,19 +3423,15 @@ const ImageApiFp = function (configuration) {
4057
3423
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4058
3424
  * @param {number} [fillWidth] Width of box to fill.
4059
3425
  * @param {number} [fillHeight] Height of box to fill.
4060
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4061
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4062
3426
  * @param {number} [blur] Optional. Blur image.
4063
3427
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4064
3428
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4065
3429
  * @param {*} [options] Override http request option.
4066
3430
  * @throws {RequiredError}
4067
3431
  */
4068
- headItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4069
- return __awaiter(this, void 0, void 0, function* () {
4070
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
4071
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4072
- });
3432
+ async headItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3433
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
3434
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4073
3435
  },
4074
3436
  /**
4075
3437
  *
@@ -4085,9 +3447,7 @@ const ImageApiFp = function (configuration) {
4085
3447
  * @param {number} [fillWidth] Width of box to fill.
4086
3448
  * @param {number} [fillHeight] Height of box to fill.
4087
3449
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
4088
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4089
3450
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
4090
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4091
3451
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
4092
3452
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
4093
3453
  * @param {number} [blur] Optional. Blur image.
@@ -4096,11 +3456,9 @@ const ImageApiFp = function (configuration) {
4096
3456
  * @param {*} [options] Override http request option.
4097
3457
  * @throws {RequiredError}
4098
3458
  */
4099
- headItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) {
4100
- return __awaiter(this, void 0, void 0, function* () {
4101
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options);
4102
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4103
- });
3459
+ async headItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) {
3460
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options);
3461
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4104
3462
  },
4105
3463
  /**
4106
3464
  *
@@ -4118,8 +3476,6 @@ const ImageApiFp = function (configuration) {
4118
3476
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4119
3477
  * @param {number} [fillWidth] Width of box to fill.
4120
3478
  * @param {number} [fillHeight] Height of box to fill.
4121
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4122
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4123
3479
  * @param {number} [blur] Optional. Blur image.
4124
3480
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4125
3481
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -4127,11 +3483,9 @@ const ImageApiFp = function (configuration) {
4127
3483
  * @param {*} [options] Override http request option.
4128
3484
  * @throws {RequiredError}
4129
3485
  */
4130
- headMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4131
- return __awaiter(this, void 0, void 0, function* () {
4132
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options);
4133
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4134
- });
3486
+ async headMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3487
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options);
3488
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4135
3489
  },
4136
3490
  /**
4137
3491
  *
@@ -4150,19 +3504,15 @@ const ImageApiFp = function (configuration) {
4150
3504
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4151
3505
  * @param {number} [fillWidth] Width of box to fill.
4152
3506
  * @param {number} [fillHeight] Height of box to fill.
4153
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4154
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4155
3507
  * @param {number} [blur] Optional. Blur image.
4156
3508
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4157
3509
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4158
3510
  * @param {*} [options] Override http request option.
4159
3511
  * @throws {RequiredError}
4160
3512
  */
4161
- headMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4162
- return __awaiter(this, void 0, void 0, function* () {
4163
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
4164
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4165
- });
3513
+ async headMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
3515
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4166
3516
  },
4167
3517
  /**
4168
3518
  *
@@ -4180,8 +3530,6 @@ const ImageApiFp = function (configuration) {
4180
3530
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4181
3531
  * @param {number} [fillWidth] Width of box to fill.
4182
3532
  * @param {number} [fillHeight] Height of box to fill.
4183
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4184
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4185
3533
  * @param {number} [blur] Optional. Blur image.
4186
3534
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4187
3535
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -4189,11 +3537,9 @@ const ImageApiFp = function (configuration) {
4189
3537
  * @param {*} [options] Override http request option.
4190
3538
  * @throws {RequiredError}
4191
3539
  */
4192
- headPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4193
- return __awaiter(this, void 0, void 0, function* () {
4194
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options);
4195
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4196
- });
3540
+ async headPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3541
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options);
3542
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4197
3543
  },
4198
3544
  /**
4199
3545
  *
@@ -4212,19 +3558,15 @@ const ImageApiFp = function (configuration) {
4212
3558
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4213
3559
  * @param {number} [fillWidth] Width of box to fill.
4214
3560
  * @param {number} [fillHeight] Height of box to fill.
4215
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4216
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4217
3561
  * @param {number} [blur] Optional. Blur image.
4218
3562
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4219
3563
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4220
3564
  * @param {*} [options] Override http request option.
4221
3565
  * @throws {RequiredError}
4222
3566
  */
4223
- headPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4224
- return __awaiter(this, void 0, void 0, function* () {
4225
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
4226
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4227
- });
3567
+ async headPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3568
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
3569
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4228
3570
  },
4229
3571
  /**
4230
3572
  *
@@ -4242,8 +3584,6 @@ const ImageApiFp = function (configuration) {
4242
3584
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4243
3585
  * @param {number} [fillWidth] Width of box to fill.
4244
3586
  * @param {number} [fillHeight] Height of box to fill.
4245
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4246
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4247
3587
  * @param {number} [blur] Optional. Blur image.
4248
3588
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4249
3589
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -4251,11 +3591,9 @@ const ImageApiFp = function (configuration) {
4251
3591
  * @param {*} [options] Override http request option.
4252
3592
  * @throws {RequiredError}
4253
3593
  */
4254
- headStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4255
- return __awaiter(this, void 0, void 0, function* () {
4256
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options);
4257
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4258
- });
3594
+ async headStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3595
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options);
3596
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4259
3597
  },
4260
3598
  /**
4261
3599
  *
@@ -4274,25 +3612,20 @@ const ImageApiFp = function (configuration) {
4274
3612
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4275
3613
  * @param {number} [fillWidth] Width of box to fill.
4276
3614
  * @param {number} [fillHeight] Height of box to fill.
4277
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4278
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4279
3615
  * @param {number} [blur] Optional. Blur image.
4280
3616
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4281
3617
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4282
3618
  * @param {*} [options] Override http request option.
4283
3619
  * @throws {RequiredError}
4284
3620
  */
4285
- headStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4286
- return __awaiter(this, void 0, void 0, function* () {
4287
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
4288
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4289
- });
3621
+ async headStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3622
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options);
3623
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4290
3624
  },
4291
3625
  /**
4292
3626
  *
4293
3627
  * @summary Get user profile image.
4294
- * @param {string} userId User id.
4295
- * @param {ImageType} imageType Image type.
3628
+ * @param {string} [userId] User id.
4296
3629
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
4297
3630
  * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
4298
3631
  * @param {number} [maxWidth] The maximum image width to return.
@@ -4304,8 +3637,6 @@ const ImageApiFp = function (configuration) {
4304
3637
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4305
3638
  * @param {number} [fillWidth] Width of box to fill.
4306
3639
  * @param {number} [fillHeight] Height of box to fill.
4307
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4308
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4309
3640
  * @param {number} [blur] Optional. Blur image.
4310
3641
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4311
3642
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -4313,74 +3644,21 @@ const ImageApiFp = function (configuration) {
4313
3644
  * @param {*} [options] Override http request option.
4314
3645
  * @throws {RequiredError}
4315
3646
  */
4316
- headUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4317
- return __awaiter(this, void 0, void 0, function* () {
4318
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options);
4319
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4320
- });
4321
- },
4322
- /**
4323
- *
4324
- * @summary Get user profile image.
4325
- * @param {string} userId User id.
4326
- * @param {ImageType} imageType Image type.
4327
- * @param {number} imageIndex Image index.
4328
- * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
4329
- * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
4330
- * @param {number} [maxWidth] The maximum image width to return.
4331
- * @param {number} [maxHeight] The maximum image height to return.
4332
- * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
4333
- * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
4334
- * @param {number} [width] The fixed image width to return.
4335
- * @param {number} [height] The fixed image height to return.
4336
- * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4337
- * @param {number} [fillWidth] Width of box to fill.
4338
- * @param {number} [fillHeight] Height of box to fill.
4339
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4340
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4341
- * @param {number} [blur] Optional. Blur image.
4342
- * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4343
- * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4344
- * @param {*} [options] Override http request option.
4345
- * @throws {RequiredError}
4346
- */
4347
- headUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4348
- return __awaiter(this, void 0, void 0, function* () {
4349
- const localVarAxiosArgs = yield localVarAxiosParamCreator.headUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options);
4350
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4351
- });
3647
+ async headUserImage(userId, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3648
+ const localVarAxiosArgs = await localVarAxiosParamCreator.headUserImage(userId, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options);
3649
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4352
3650
  },
4353
3651
  /**
4354
3652
  *
4355
3653
  * @summary Sets the user image.
4356
- * @param {string} userId User Id.
4357
- * @param {ImageType} imageType (Unused) Image type.
4358
- * @param {number} [index] (Unused) Image index.
3654
+ * @param {string} [userId] User Id.
4359
3655
  * @param {any} [body]
4360
3656
  * @param {*} [options] Override http request option.
4361
3657
  * @throws {RequiredError}
4362
3658
  */
4363
- postUserImage(userId, imageType, index, body, options) {
4364
- return __awaiter(this, void 0, void 0, function* () {
4365
- const localVarAxiosArgs = yield localVarAxiosParamCreator.postUserImage(userId, imageType, index, body, options);
4366
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4367
- });
4368
- },
4369
- /**
4370
- *
4371
- * @summary Sets the user image.
4372
- * @param {string} userId User Id.
4373
- * @param {ImageType} imageType (Unused) Image type.
4374
- * @param {number} index (Unused) Image index.
4375
- * @param {any} [body]
4376
- * @param {*} [options] Override http request option.
4377
- * @throws {RequiredError}
4378
- */
4379
- postUserImageByIndex(userId, imageType, index, body, options) {
4380
- return __awaiter(this, void 0, void 0, function* () {
4381
- const localVarAxiosArgs = yield localVarAxiosParamCreator.postUserImageByIndex(userId, imageType, index, body, options);
4382
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4383
- });
3659
+ async postUserImage(userId, body, options) {
3660
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postUserImage(userId, body, options);
3661
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4384
3662
  },
4385
3663
  /**
4386
3664
  *
@@ -4391,11 +3669,9 @@ const ImageApiFp = function (configuration) {
4391
3669
  * @param {*} [options] Override http request option.
4392
3670
  * @throws {RequiredError}
4393
3671
  */
4394
- setItemImage(itemId, imageType, body, options) {
4395
- return __awaiter(this, void 0, void 0, function* () {
4396
- const localVarAxiosArgs = yield localVarAxiosParamCreator.setItemImage(itemId, imageType, body, options);
4397
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4398
- });
3672
+ async setItemImage(itemId, imageType, body, options) {
3673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setItemImage(itemId, imageType, body, options);
3674
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4399
3675
  },
4400
3676
  /**
4401
3677
  *
@@ -4407,11 +3683,9 @@ const ImageApiFp = function (configuration) {
4407
3683
  * @param {*} [options] Override http request option.
4408
3684
  * @throws {RequiredError}
4409
3685
  */
4410
- setItemImageByIndex(itemId, imageType, imageIndex, body, options) {
4411
- return __awaiter(this, void 0, void 0, function* () {
4412
- const localVarAxiosArgs = yield localVarAxiosParamCreator.setItemImageByIndex(itemId, imageType, imageIndex, body, options);
4413
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4414
- });
3686
+ async setItemImageByIndex(itemId, imageType, imageIndex, body, options) {
3687
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setItemImageByIndex(itemId, imageType, imageIndex, body, options);
3688
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4415
3689
  },
4416
3690
  /**
4417
3691
  *
@@ -4423,11 +3697,9 @@ const ImageApiFp = function (configuration) {
4423
3697
  * @param {*} [options] Override http request option.
4424
3698
  * @throws {RequiredError}
4425
3699
  */
4426
- updateItemImageIndex(itemId, imageType, imageIndex, newIndex, options) {
4427
- return __awaiter(this, void 0, void 0, function* () {
4428
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateItemImageIndex(itemId, imageType, imageIndex, newIndex, options);
4429
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4430
- });
3700
+ async updateItemImageIndex(itemId, imageType, imageIndex, newIndex, options) {
3701
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateItemImageIndex(itemId, imageType, imageIndex, newIndex, options);
3702
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4431
3703
  },
4432
3704
  /**
4433
3705
  *
@@ -4436,11 +3708,9 @@ const ImageApiFp = function (configuration) {
4436
3708
  * @param {*} [options] Override http request option.
4437
3709
  * @throws {RequiredError}
4438
3710
  */
4439
- uploadCustomSplashscreen(body, options) {
4440
- return __awaiter(this, void 0, void 0, function* () {
4441
- const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadCustomSplashscreen(body, options);
4442
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4443
- });
3711
+ async uploadCustomSplashscreen(body, options) {
3712
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadCustomSplashscreen(body, options);
3713
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4444
3714
  },
4445
3715
  };
4446
3716
  };
@@ -4487,26 +3757,12 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4487
3757
  /**
4488
3758
  *
4489
3759
  * @summary Delete the user\'s image.
4490
- * @param {string} userId User Id.
4491
- * @param {ImageType} imageType (Unused) Image type.
4492
- * @param {number} [index] (Unused) Image index.
3760
+ * @param {string} [userId] User Id.
4493
3761
  * @param {*} [options] Override http request option.
4494
3762
  * @throws {RequiredError}
4495
3763
  */
4496
- deleteUserImage(userId, imageType, index, options) {
4497
- return localVarFp.deleteUserImage(userId, imageType, index, options).then((request) => request(axios, basePath));
4498
- },
4499
- /**
4500
- *
4501
- * @summary Delete the user\'s image.
4502
- * @param {string} userId User Id.
4503
- * @param {ImageType} imageType (Unused) Image type.
4504
- * @param {number} index (Unused) Image index.
4505
- * @param {*} [options] Override http request option.
4506
- * @throws {RequiredError}
4507
- */
4508
- deleteUserImageByIndex(userId, imageType, index, options) {
4509
- return localVarFp.deleteUserImageByIndex(userId, imageType, index, options).then((request) => request(axios, basePath));
3764
+ deleteUserImage(userId, options) {
3765
+ return localVarFp.deleteUserImage(userId, options).then((request) => request(axios, basePath));
4510
3766
  },
4511
3767
  /**
4512
3768
  *
@@ -4525,16 +3781,14 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4525
3781
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4526
3782
  * @param {number} [fillWidth] Width of box to fill.
4527
3783
  * @param {number} [fillHeight] Height of box to fill.
4528
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4529
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4530
3784
  * @param {number} [blur] Optional. Blur image.
4531
3785
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4532
3786
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4533
3787
  * @param {*} [options] Override http request option.
4534
3788
  * @throws {RequiredError}
4535
3789
  */
4536
- getArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4537
- return localVarFp.getArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
3790
+ getArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3791
+ return localVarFp.getArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4538
3792
  },
4539
3793
  /**
4540
3794
  *
@@ -4552,8 +3806,6 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4552
3806
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4553
3807
  * @param {number} [fillWidth] Width of box to fill.
4554
3808
  * @param {number} [fillHeight] Height of box to fill.
4555
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4556
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4557
3809
  * @param {number} [blur] Optional. Blur image.
4558
3810
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4559
3811
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -4561,8 +3813,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4561
3813
  * @param {*} [options] Override http request option.
4562
3814
  * @throws {RequiredError}
4563
3815
  */
4564
- getGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4565
- return localVarFp.getGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
3816
+ getGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3817
+ return localVarFp.getGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4566
3818
  },
4567
3819
  /**
4568
3820
  *
@@ -4581,16 +3833,14 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4581
3833
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4582
3834
  * @param {number} [fillWidth] Width of box to fill.
4583
3835
  * @param {number} [fillHeight] Height of box to fill.
4584
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4585
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4586
3836
  * @param {number} [blur] Optional. Blur image.
4587
3837
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4588
3838
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4589
3839
  * @param {*} [options] Override http request option.
4590
3840
  * @throws {RequiredError}
4591
3841
  */
4592
- getGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4593
- return localVarFp.getGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
3842
+ getGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3843
+ return localVarFp.getGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4594
3844
  },
4595
3845
  /**
4596
3846
  *
@@ -4605,9 +3855,7 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4605
3855
  * @param {number} [fillWidth] Width of box to fill.
4606
3856
  * @param {number} [fillHeight] Height of box to fill.
4607
3857
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
4608
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4609
3858
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
4610
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4611
3859
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
4612
3860
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
4613
3861
  * @param {number} [blur] Optional. Blur image.
@@ -4617,8 +3865,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4617
3865
  * @param {*} [options] Override http request option.
4618
3866
  * @throws {RequiredError}
4619
3867
  */
4620
- getItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4621
- return localVarFp.getItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
3868
+ getItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3869
+ return localVarFp.getItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4622
3870
  },
4623
3871
  /**
4624
3872
  *
@@ -4637,16 +3885,14 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4637
3885
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4638
3886
  * @param {number} [fillWidth] Width of box to fill.
4639
3887
  * @param {number} [fillHeight] Height of box to fill.
4640
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4641
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4642
3888
  * @param {number} [blur] Optional. Blur image.
4643
3889
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4644
3890
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4645
3891
  * @param {*} [options] Override http request option.
4646
3892
  * @throws {RequiredError}
4647
3893
  */
4648
- getItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4649
- return localVarFp.getItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
3894
+ getItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3895
+ return localVarFp.getItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4650
3896
  },
4651
3897
  /**
4652
3898
  *
@@ -4662,9 +3908,7 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4662
3908
  * @param {number} [fillWidth] Width of box to fill.
4663
3909
  * @param {number} [fillHeight] Height of box to fill.
4664
3910
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
4665
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4666
3911
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
4667
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4668
3912
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
4669
3913
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
4670
3914
  * @param {number} [blur] Optional. Blur image.
@@ -4673,8 +3917,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4673
3917
  * @param {*} [options] Override http request option.
4674
3918
  * @throws {RequiredError}
4675
3919
  */
4676
- getItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) {
4677
- return localVarFp.getItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
3920
+ getItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) {
3921
+ return localVarFp.getItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4678
3922
  },
4679
3923
  /**
4680
3924
  *
@@ -4702,8 +3946,6 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4702
3946
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4703
3947
  * @param {number} [fillWidth] Width of box to fill.
4704
3948
  * @param {number} [fillHeight] Height of box to fill.
4705
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4706
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4707
3949
  * @param {number} [blur] Optional. Blur image.
4708
3950
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4709
3951
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -4711,8 +3953,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4711
3953
  * @param {*} [options] Override http request option.
4712
3954
  * @throws {RequiredError}
4713
3955
  */
4714
- getMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4715
- return localVarFp.getMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
3956
+ getMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
3957
+ return localVarFp.getMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4716
3958
  },
4717
3959
  /**
4718
3960
  *
@@ -4731,16 +3973,14 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4731
3973
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4732
3974
  * @param {number} [fillWidth] Width of box to fill.
4733
3975
  * @param {number} [fillHeight] Height of box to fill.
4734
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4735
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4736
3976
  * @param {number} [blur] Optional. Blur image.
4737
3977
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4738
3978
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4739
3979
  * @param {*} [options] Override http request option.
4740
3980
  * @throws {RequiredError}
4741
3981
  */
4742
- getMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4743
- return localVarFp.getMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
3982
+ getMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
3983
+ return localVarFp.getMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4744
3984
  },
4745
3985
  /**
4746
3986
  *
@@ -4758,8 +3998,6 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4758
3998
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4759
3999
  * @param {number} [fillWidth] Width of box to fill.
4760
4000
  * @param {number} [fillHeight] Height of box to fill.
4761
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4762
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4763
4001
  * @param {number} [blur] Optional. Blur image.
4764
4002
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4765
4003
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -4767,8 +4005,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4767
4005
  * @param {*} [options] Override http request option.
4768
4006
  * @throws {RequiredError}
4769
4007
  */
4770
- getPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4771
- return localVarFp.getPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4008
+ getPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4009
+ return localVarFp.getPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4772
4010
  },
4773
4011
  /**
4774
4012
  *
@@ -4787,16 +4025,14 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4787
4025
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4788
4026
  * @param {number} [fillWidth] Width of box to fill.
4789
4027
  * @param {number} [fillHeight] Height of box to fill.
4790
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4791
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4792
4028
  * @param {number} [blur] Optional. Blur image.
4793
4029
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4794
4030
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4795
4031
  * @param {*} [options] Override http request option.
4796
4032
  * @throws {RequiredError}
4797
4033
  */
4798
- getPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4799
- return localVarFp.getPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4034
+ getPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
4035
+ return localVarFp.getPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4800
4036
  },
4801
4037
  /**
4802
4038
  *
@@ -4835,8 +4071,6 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4835
4071
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4836
4072
  * @param {number} [fillWidth] Width of box to fill.
4837
4073
  * @param {number} [fillHeight] Height of box to fill.
4838
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4839
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4840
4074
  * @param {number} [blur] Optional. Blur image.
4841
4075
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4842
4076
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -4844,8 +4078,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4844
4078
  * @param {*} [options] Override http request option.
4845
4079
  * @throws {RequiredError}
4846
4080
  */
4847
- getStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4848
- return localVarFp.getStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4081
+ getStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4082
+ return localVarFp.getStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4849
4083
  },
4850
4084
  /**
4851
4085
  *
@@ -4864,22 +4098,19 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4864
4098
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4865
4099
  * @param {number} [fillWidth] Width of box to fill.
4866
4100
  * @param {number} [fillHeight] Height of box to fill.
4867
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4868
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4869
4101
  * @param {number} [blur] Optional. Blur image.
4870
4102
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4871
4103
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4872
4104
  * @param {*} [options] Override http request option.
4873
4105
  * @throws {RequiredError}
4874
4106
  */
4875
- getStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4876
- return localVarFp.getStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4107
+ getStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
4108
+ return localVarFp.getStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4877
4109
  },
4878
4110
  /**
4879
4111
  *
4880
4112
  * @summary Get user profile image.
4881
- * @param {string} userId User id.
4882
- * @param {ImageType} imageType Image type.
4113
+ * @param {string} [userId] User id.
4883
4114
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
4884
4115
  * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
4885
4116
  * @param {number} [maxWidth] The maximum image width to return.
@@ -4891,8 +4122,6 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4891
4122
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4892
4123
  * @param {number} [fillWidth] Width of box to fill.
4893
4124
  * @param {number} [fillHeight] Height of box to fill.
4894
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4895
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4896
4125
  * @param {number} [blur] Optional. Blur image.
4897
4126
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4898
4127
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -4900,36 +4129,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4900
4129
  * @param {*} [options] Override http request option.
4901
4130
  * @throws {RequiredError}
4902
4131
  */
4903
- getUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4904
- return localVarFp.getUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4905
- },
4906
- /**
4907
- *
4908
- * @summary Get user profile image.
4909
- * @param {string} userId User id.
4910
- * @param {ImageType} imageType Image type.
4911
- * @param {number} imageIndex Image index.
4912
- * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
4913
- * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
4914
- * @param {number} [maxWidth] The maximum image width to return.
4915
- * @param {number} [maxHeight] The maximum image height to return.
4916
- * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
4917
- * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
4918
- * @param {number} [width] The fixed image width to return.
4919
- * @param {number} [height] The fixed image height to return.
4920
- * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4921
- * @param {number} [fillWidth] Width of box to fill.
4922
- * @param {number} [fillHeight] Height of box to fill.
4923
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4924
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4925
- * @param {number} [blur] Optional. Blur image.
4926
- * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4927
- * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4928
- * @param {*} [options] Override http request option.
4929
- * @throws {RequiredError}
4930
- */
4931
- getUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4932
- return localVarFp.getUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4132
+ getUserImage(userId, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4133
+ return localVarFp.getUserImage(userId, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4933
4134
  },
4934
4135
  /**
4935
4136
  *
@@ -4948,16 +4149,14 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4948
4149
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4949
4150
  * @param {number} [fillWidth] Width of box to fill.
4950
4151
  * @param {number} [fillHeight] Height of box to fill.
4951
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4952
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4953
4152
  * @param {number} [blur] Optional. Blur image.
4954
4153
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4955
4154
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
4956
4155
  * @param {*} [options] Override http request option.
4957
4156
  * @throws {RequiredError}
4958
4157
  */
4959
- headArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
4960
- return localVarFp.headArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4158
+ headArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
4159
+ return localVarFp.headArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4961
4160
  },
4962
4161
  /**
4963
4162
  *
@@ -4975,8 +4174,6 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4975
4174
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
4976
4175
  * @param {number} [fillWidth] Width of box to fill.
4977
4176
  * @param {number} [fillHeight] Height of box to fill.
4978
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
4979
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
4980
4177
  * @param {number} [blur] Optional. Blur image.
4981
4178
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
4982
4179
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -4984,8 +4181,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
4984
4181
  * @param {*} [options] Override http request option.
4985
4182
  * @throws {RequiredError}
4986
4183
  */
4987
- headGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4988
- return localVarFp.headGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4184
+ headGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4185
+ return localVarFp.headGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4989
4186
  },
4990
4187
  /**
4991
4188
  *
@@ -5004,16 +4201,14 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5004
4201
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
5005
4202
  * @param {number} [fillWidth] Width of box to fill.
5006
4203
  * @param {number} [fillHeight] Height of box to fill.
5007
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5008
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5009
4204
  * @param {number} [blur] Optional. Blur image.
5010
4205
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
5011
4206
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
5012
4207
  * @param {*} [options] Override http request option.
5013
4208
  * @throws {RequiredError}
5014
4209
  */
5015
- headGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
5016
- return localVarFp.headGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4210
+ headGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
4211
+ return localVarFp.headGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
5017
4212
  },
5018
4213
  /**
5019
4214
  *
@@ -5028,9 +4223,7 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5028
4223
  * @param {number} [fillWidth] Width of box to fill.
5029
4224
  * @param {number} [fillHeight] Height of box to fill.
5030
4225
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
5031
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5032
4226
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
5033
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5034
4227
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
5035
4228
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
5036
4229
  * @param {number} [blur] Optional. Blur image.
@@ -5040,8 +4233,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5040
4233
  * @param {*} [options] Override http request option.
5041
4234
  * @throws {RequiredError}
5042
4235
  */
5043
- headItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) {
5044
- return localVarFp.headItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4236
+ headItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4237
+ return localVarFp.headItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
5045
4238
  },
5046
4239
  /**
5047
4240
  *
@@ -5060,16 +4253,14 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5060
4253
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
5061
4254
  * @param {number} [fillWidth] Width of box to fill.
5062
4255
  * @param {number} [fillHeight] Height of box to fill.
5063
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5064
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5065
4256
  * @param {number} [blur] Optional. Blur image.
5066
4257
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
5067
4258
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
5068
4259
  * @param {*} [options] Override http request option.
5069
4260
  * @throws {RequiredError}
5070
4261
  */
5071
- headItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
5072
- return localVarFp.headItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4262
+ headItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
4263
+ return localVarFp.headItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
5073
4264
  },
5074
4265
  /**
5075
4266
  *
@@ -5085,9 +4276,7 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5085
4276
  * @param {number} [fillWidth] Width of box to fill.
5086
4277
  * @param {number} [fillHeight] Height of box to fill.
5087
4278
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
5088
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5089
4279
  * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.
5090
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5091
4280
  * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
5092
4281
  * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
5093
4282
  * @param {number} [blur] Optional. Blur image.
@@ -5096,8 +4285,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5096
4285
  * @param {*} [options] Override http request option.
5097
4286
  * @throws {RequiredError}
5098
4287
  */
5099
- headItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) {
5100
- return localVarFp.headItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4288
+ headItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) {
4289
+ return localVarFp.headItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, format, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
5101
4290
  },
5102
4291
  /**
5103
4292
  *
@@ -5115,8 +4304,6 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5115
4304
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
5116
4305
  * @param {number} [fillWidth] Width of box to fill.
5117
4306
  * @param {number} [fillHeight] Height of box to fill.
5118
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5119
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5120
4307
  * @param {number} [blur] Optional. Blur image.
5121
4308
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
5122
4309
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -5124,8 +4311,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5124
4311
  * @param {*} [options] Override http request option.
5125
4312
  * @throws {RequiredError}
5126
4313
  */
5127
- headMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
5128
- return localVarFp.headMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4314
+ headMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4315
+ return localVarFp.headMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
5129
4316
  },
5130
4317
  /**
5131
4318
  *
@@ -5144,16 +4331,14 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5144
4331
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
5145
4332
  * @param {number} [fillWidth] Width of box to fill.
5146
4333
  * @param {number} [fillHeight] Height of box to fill.
5147
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5148
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5149
4334
  * @param {number} [blur] Optional. Blur image.
5150
4335
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
5151
4336
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
5152
4337
  * @param {*} [options] Override http request option.
5153
4338
  * @throws {RequiredError}
5154
4339
  */
5155
- headMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
5156
- return localVarFp.headMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4340
+ headMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
4341
+ return localVarFp.headMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
5157
4342
  },
5158
4343
  /**
5159
4344
  *
@@ -5171,8 +4356,6 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5171
4356
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
5172
4357
  * @param {number} [fillWidth] Width of box to fill.
5173
4358
  * @param {number} [fillHeight] Height of box to fill.
5174
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5175
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5176
4359
  * @param {number} [blur] Optional. Blur image.
5177
4360
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
5178
4361
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -5180,8 +4363,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5180
4363
  * @param {*} [options] Override http request option.
5181
4364
  * @throws {RequiredError}
5182
4365
  */
5183
- headPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
5184
- return localVarFp.headPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4366
+ headPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4367
+ return localVarFp.headPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
5185
4368
  },
5186
4369
  /**
5187
4370
  *
@@ -5200,16 +4383,14 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5200
4383
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
5201
4384
  * @param {number} [fillWidth] Width of box to fill.
5202
4385
  * @param {number} [fillHeight] Height of box to fill.
5203
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5204
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5205
4386
  * @param {number} [blur] Optional. Blur image.
5206
4387
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
5207
4388
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
5208
4389
  * @param {*} [options] Override http request option.
5209
4390
  * @throws {RequiredError}
5210
4391
  */
5211
- headPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
5212
- return localVarFp.headPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4392
+ headPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
4393
+ return localVarFp.headPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
5213
4394
  },
5214
4395
  /**
5215
4396
  *
@@ -5227,8 +4408,6 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5227
4408
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
5228
4409
  * @param {number} [fillWidth] Width of box to fill.
5229
4410
  * @param {number} [fillHeight] Height of box to fill.
5230
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5231
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5232
4411
  * @param {number} [blur] Optional. Blur image.
5233
4412
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
5234
4413
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -5236,8 +4415,8 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5236
4415
  * @param {*} [options] Override http request option.
5237
4416
  * @throws {RequiredError}
5238
4417
  */
5239
- headStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
5240
- return localVarFp.headStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
4418
+ headStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4419
+ return localVarFp.headStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
5241
4420
  },
5242
4421
  /**
5243
4422
  *
@@ -5256,22 +4435,19 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5256
4435
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
5257
4436
  * @param {number} [fillWidth] Width of box to fill.
5258
4437
  * @param {number} [fillHeight] Height of box to fill.
5259
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5260
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5261
4438
  * @param {number} [blur] Optional. Blur image.
5262
4439
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
5263
4440
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
5264
4441
  * @param {*} [options] Override http request option.
5265
4442
  * @throws {RequiredError}
5266
4443
  */
5267
- headStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
5268
- return localVarFp.headStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4444
+ headStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options) {
4445
+ return localVarFp.headStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
5269
4446
  },
5270
4447
  /**
5271
4448
  *
5272
4449
  * @summary Get user profile image.
5273
- * @param {string} userId User id.
5274
- * @param {ImageType} imageType Image type.
4450
+ * @param {string} [userId] User id.
5275
4451
  * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
5276
4452
  * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
5277
4453
  * @param {number} [maxWidth] The maximum image width to return.
@@ -5283,8 +4459,6 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5283
4459
  * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
5284
4460
  * @param {number} [fillWidth] Width of box to fill.
5285
4461
  * @param {number} [fillHeight] Height of box to fill.
5286
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5287
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5288
4462
  * @param {number} [blur] Optional. Blur image.
5289
4463
  * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
5290
4464
  * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
@@ -5292,62 +4466,19 @@ const ImageApiFactory = function (configuration, basePath, axios) {
5292
4466
  * @param {*} [options] Override http request option.
5293
4467
  * @throws {RequiredError}
5294
4468
  */
5295
- headUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) {
5296
- return localVarFp.headUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
5297
- },
5298
- /**
5299
- *
5300
- * @summary Get user profile image.
5301
- * @param {string} userId User id.
5302
- * @param {ImageType} imageType Image type.
5303
- * @param {number} imageIndex Image index.
5304
- * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers.
5305
- * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png.
5306
- * @param {number} [maxWidth] The maximum image width to return.
5307
- * @param {number} [maxHeight] The maximum image height to return.
5308
- * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay.
5309
- * @param {number} [unplayedCount] Optional. Unplayed count overlay to render.
5310
- * @param {number} [width] The fixed image width to return.
5311
- * @param {number} [height] The fixed image height to return.
5312
- * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.
5313
- * @param {number} [fillWidth] Width of box to fill.
5314
- * @param {number} [fillHeight] Height of box to fill.
5315
- * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art.
5316
- * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator.
5317
- * @param {number} [blur] Optional. Blur image.
5318
- * @param {string} [backgroundColor] Optional. Apply a background color for transparent images.
5319
- * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image.
5320
- * @param {*} [options] Override http request option.
5321
- * @throws {RequiredError}
5322
- */
5323
- headUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) {
5324
- return localVarFp.headUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then((request) => request(axios, basePath));
4469
+ headUserImage(userId, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options) {
4470
+ return localVarFp.headUserImage(userId, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, blur, backgroundColor, foregroundLayer, imageIndex, options).then((request) => request(axios, basePath));
5325
4471
  },
5326
4472
  /**
5327
4473
  *
5328
4474
  * @summary Sets the user image.
5329
- * @param {string} userId User Id.
5330
- * @param {ImageType} imageType (Unused) Image type.
5331
- * @param {number} [index] (Unused) Image index.
4475
+ * @param {string} [userId] User Id.
5332
4476
  * @param {any} [body]
5333
4477
  * @param {*} [options] Override http request option.
5334
4478
  * @throws {RequiredError}
5335
4479
  */
5336
- postUserImage(userId, imageType, index, body, options) {
5337
- return localVarFp.postUserImage(userId, imageType, index, body, options).then((request) => request(axios, basePath));
5338
- },
5339
- /**
5340
- *
5341
- * @summary Sets the user image.
5342
- * @param {string} userId User Id.
5343
- * @param {ImageType} imageType (Unused) Image type.
5344
- * @param {number} index (Unused) Image index.
5345
- * @param {any} [body]
5346
- * @param {*} [options] Override http request option.
5347
- * @throws {RequiredError}
5348
- */
5349
- postUserImageByIndex(userId, imageType, index, body, options) {
5350
- return localVarFp.postUserImageByIndex(userId, imageType, index, body, options).then((request) => request(axios, basePath));
4480
+ postUserImage(userId, body, options) {
4481
+ return localVarFp.postUserImage(userId, body, options).then((request) => request(axios, basePath));
5351
4482
  },
5352
4483
  /**
5353
4484
  *
@@ -5446,19 +4577,8 @@ class ImageApi extends BaseAPI {
5446
4577
  * @throws {RequiredError}
5447
4578
  * @memberof ImageApi
5448
4579
  */
5449
- deleteUserImage(requestParameters, options) {
5450
- return ImageApiFp(this.configuration).deleteUserImage(requestParameters.userId, requestParameters.imageType, requestParameters.index, options).then((request) => request(this.axios, this.basePath));
5451
- }
5452
- /**
5453
- *
5454
- * @summary Delete the user\'s image.
5455
- * @param {ImageApiDeleteUserImageByIndexRequest} requestParameters Request parameters.
5456
- * @param {*} [options] Override http request option.
5457
- * @throws {RequiredError}
5458
- * @memberof ImageApi
5459
- */
5460
- deleteUserImageByIndex(requestParameters, options) {
5461
- return ImageApiFp(this.configuration).deleteUserImageByIndex(requestParameters.userId, requestParameters.imageType, requestParameters.index, options).then((request) => request(this.axios, this.basePath));
4580
+ deleteUserImage(requestParameters = {}, options) {
4581
+ return ImageApiFp(this.configuration).deleteUserImage(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
5462
4582
  }
5463
4583
  /**
5464
4584
  *
@@ -5469,7 +4589,7 @@ class ImageApi extends BaseAPI {
5469
4589
  * @memberof ImageApi
5470
4590
  */
5471
4591
  getArtistImage(requestParameters, options) {
5472
- return ImageApiFp(this.configuration).getArtistImage(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4592
+ return ImageApiFp(this.configuration).getArtistImage(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5473
4593
  }
5474
4594
  /**
5475
4595
  *
@@ -5480,7 +4600,7 @@ class ImageApi extends BaseAPI {
5480
4600
  * @memberof ImageApi
5481
4601
  */
5482
4602
  getGenreImage(requestParameters, options) {
5483
- return ImageApiFp(this.configuration).getGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
4603
+ return ImageApiFp(this.configuration).getGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5484
4604
  }
5485
4605
  /**
5486
4606
  *
@@ -5491,7 +4611,7 @@ class ImageApi extends BaseAPI {
5491
4611
  * @memberof ImageApi
5492
4612
  */
5493
4613
  getGenreImageByIndex(requestParameters, options) {
5494
- return ImageApiFp(this.configuration).getGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4614
+ return ImageApiFp(this.configuration).getGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5495
4615
  }
5496
4616
  /**
5497
4617
  *
@@ -5502,7 +4622,7 @@ class ImageApi extends BaseAPI {
5502
4622
  * @memberof ImageApi
5503
4623
  */
5504
4624
  getItemImage(requestParameters, options) {
5505
- return ImageApiFp(this.configuration).getItemImage(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.cropWhitespace, requestParameters.format, requestParameters.addPlayedIndicator, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
4625
+ return ImageApiFp(this.configuration).getItemImage(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.format, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5506
4626
  }
5507
4627
  /**
5508
4628
  *
@@ -5513,7 +4633,7 @@ class ImageApi extends BaseAPI {
5513
4633
  * @memberof ImageApi
5514
4634
  */
5515
4635
  getItemImage2(requestParameters, options) {
5516
- return ImageApiFp(this.configuration).getItemImage2(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.tag, requestParameters.format, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.imageIndex, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4636
+ return ImageApiFp(this.configuration).getItemImage2(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.tag, requestParameters.format, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.imageIndex, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5517
4637
  }
5518
4638
  /**
5519
4639
  *
@@ -5524,7 +4644,7 @@ class ImageApi extends BaseAPI {
5524
4644
  * @memberof ImageApi
5525
4645
  */
5526
4646
  getItemImageByIndex(requestParameters, options) {
5527
- return ImageApiFp(this.configuration).getItemImageByIndex(requestParameters.itemId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.cropWhitespace, requestParameters.format, requestParameters.addPlayedIndicator, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4647
+ return ImageApiFp(this.configuration).getItemImageByIndex(requestParameters.itemId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.format, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5528
4648
  }
5529
4649
  /**
5530
4650
  *
@@ -5546,7 +4666,7 @@ class ImageApi extends BaseAPI {
5546
4666
  * @memberof ImageApi
5547
4667
  */
5548
4668
  getMusicGenreImage(requestParameters, options) {
5549
- return ImageApiFp(this.configuration).getMusicGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
4669
+ return ImageApiFp(this.configuration).getMusicGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5550
4670
  }
5551
4671
  /**
5552
4672
  *
@@ -5557,7 +4677,7 @@ class ImageApi extends BaseAPI {
5557
4677
  * @memberof ImageApi
5558
4678
  */
5559
4679
  getMusicGenreImageByIndex(requestParameters, options) {
5560
- return ImageApiFp(this.configuration).getMusicGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4680
+ return ImageApiFp(this.configuration).getMusicGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5561
4681
  }
5562
4682
  /**
5563
4683
  *
@@ -5568,7 +4688,7 @@ class ImageApi extends BaseAPI {
5568
4688
  * @memberof ImageApi
5569
4689
  */
5570
4690
  getPersonImage(requestParameters, options) {
5571
- return ImageApiFp(this.configuration).getPersonImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
4691
+ return ImageApiFp(this.configuration).getPersonImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5572
4692
  }
5573
4693
  /**
5574
4694
  *
@@ -5579,7 +4699,7 @@ class ImageApi extends BaseAPI {
5579
4699
  * @memberof ImageApi
5580
4700
  */
5581
4701
  getPersonImageByIndex(requestParameters, options) {
5582
- return ImageApiFp(this.configuration).getPersonImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4702
+ return ImageApiFp(this.configuration).getPersonImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5583
4703
  }
5584
4704
  /**
5585
4705
  *
@@ -5601,7 +4721,7 @@ class ImageApi extends BaseAPI {
5601
4721
  * @memberof ImageApi
5602
4722
  */
5603
4723
  getStudioImage(requestParameters, options) {
5604
- return ImageApiFp(this.configuration).getStudioImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
4724
+ return ImageApiFp(this.configuration).getStudioImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5605
4725
  }
5606
4726
  /**
5607
4727
  *
@@ -5612,7 +4732,7 @@ class ImageApi extends BaseAPI {
5612
4732
  * @memberof ImageApi
5613
4733
  */
5614
4734
  getStudioImageByIndex(requestParameters, options) {
5615
- return ImageApiFp(this.configuration).getStudioImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4735
+ return ImageApiFp(this.configuration).getStudioImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5616
4736
  }
5617
4737
  /**
5618
4738
  *
@@ -5622,19 +4742,8 @@ class ImageApi extends BaseAPI {
5622
4742
  * @throws {RequiredError}
5623
4743
  * @memberof ImageApi
5624
4744
  */
5625
- getUserImage(requestParameters, options) {
5626
- return ImageApiFp(this.configuration).getUserImage(requestParameters.userId, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5627
- }
5628
- /**
5629
- *
5630
- * @summary Get user profile image.
5631
- * @param {ImageApiGetUserImageByIndexRequest} requestParameters Request parameters.
5632
- * @param {*} [options] Override http request option.
5633
- * @throws {RequiredError}
5634
- * @memberof ImageApi
5635
- */
5636
- getUserImageByIndex(requestParameters, options) {
5637
- return ImageApiFp(this.configuration).getUserImageByIndex(requestParameters.userId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4745
+ getUserImage(requestParameters = {}, options) {
4746
+ return ImageApiFp(this.configuration).getUserImage(requestParameters.userId, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5638
4747
  }
5639
4748
  /**
5640
4749
  *
@@ -5645,7 +4754,7 @@ class ImageApi extends BaseAPI {
5645
4754
  * @memberof ImageApi
5646
4755
  */
5647
4756
  headArtistImage(requestParameters, options) {
5648
- return ImageApiFp(this.configuration).headArtistImage(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4757
+ return ImageApiFp(this.configuration).headArtistImage(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5649
4758
  }
5650
4759
  /**
5651
4760
  *
@@ -5656,7 +4765,7 @@ class ImageApi extends BaseAPI {
5656
4765
  * @memberof ImageApi
5657
4766
  */
5658
4767
  headGenreImage(requestParameters, options) {
5659
- return ImageApiFp(this.configuration).headGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
4768
+ return ImageApiFp(this.configuration).headGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5660
4769
  }
5661
4770
  /**
5662
4771
  *
@@ -5667,7 +4776,7 @@ class ImageApi extends BaseAPI {
5667
4776
  * @memberof ImageApi
5668
4777
  */
5669
4778
  headGenreImageByIndex(requestParameters, options) {
5670
- return ImageApiFp(this.configuration).headGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4779
+ return ImageApiFp(this.configuration).headGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5671
4780
  }
5672
4781
  /**
5673
4782
  *
@@ -5678,7 +4787,7 @@ class ImageApi extends BaseAPI {
5678
4787
  * @memberof ImageApi
5679
4788
  */
5680
4789
  headItemImage(requestParameters, options) {
5681
- return ImageApiFp(this.configuration).headItemImage(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.cropWhitespace, requestParameters.format, requestParameters.addPlayedIndicator, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
4790
+ return ImageApiFp(this.configuration).headItemImage(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.format, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5682
4791
  }
5683
4792
  /**
5684
4793
  *
@@ -5689,7 +4798,7 @@ class ImageApi extends BaseAPI {
5689
4798
  * @memberof ImageApi
5690
4799
  */
5691
4800
  headItemImage2(requestParameters, options) {
5692
- return ImageApiFp(this.configuration).headItemImage2(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.tag, requestParameters.format, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.imageIndex, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4801
+ return ImageApiFp(this.configuration).headItemImage2(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.tag, requestParameters.format, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.imageIndex, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5693
4802
  }
5694
4803
  /**
5695
4804
  *
@@ -5700,7 +4809,7 @@ class ImageApi extends BaseAPI {
5700
4809
  * @memberof ImageApi
5701
4810
  */
5702
4811
  headItemImageByIndex(requestParameters, options) {
5703
- return ImageApiFp(this.configuration).headItemImageByIndex(requestParameters.itemId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.cropWhitespace, requestParameters.format, requestParameters.addPlayedIndicator, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4812
+ return ImageApiFp(this.configuration).headItemImageByIndex(requestParameters.itemId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.format, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5704
4813
  }
5705
4814
  /**
5706
4815
  *
@@ -5711,7 +4820,7 @@ class ImageApi extends BaseAPI {
5711
4820
  * @memberof ImageApi
5712
4821
  */
5713
4822
  headMusicGenreImage(requestParameters, options) {
5714
- return ImageApiFp(this.configuration).headMusicGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
4823
+ return ImageApiFp(this.configuration).headMusicGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5715
4824
  }
5716
4825
  /**
5717
4826
  *
@@ -5722,7 +4831,7 @@ class ImageApi extends BaseAPI {
5722
4831
  * @memberof ImageApi
5723
4832
  */
5724
4833
  headMusicGenreImageByIndex(requestParameters, options) {
5725
- return ImageApiFp(this.configuration).headMusicGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4834
+ return ImageApiFp(this.configuration).headMusicGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5726
4835
  }
5727
4836
  /**
5728
4837
  *
@@ -5733,7 +4842,7 @@ class ImageApi extends BaseAPI {
5733
4842
  * @memberof ImageApi
5734
4843
  */
5735
4844
  headPersonImage(requestParameters, options) {
5736
- return ImageApiFp(this.configuration).headPersonImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
4845
+ return ImageApiFp(this.configuration).headPersonImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5737
4846
  }
5738
4847
  /**
5739
4848
  *
@@ -5744,7 +4853,7 @@ class ImageApi extends BaseAPI {
5744
4853
  * @memberof ImageApi
5745
4854
  */
5746
4855
  headPersonImageByIndex(requestParameters, options) {
5747
- return ImageApiFp(this.configuration).headPersonImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4856
+ return ImageApiFp(this.configuration).headPersonImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5748
4857
  }
5749
4858
  /**
5750
4859
  *
@@ -5755,7 +4864,7 @@ class ImageApi extends BaseAPI {
5755
4864
  * @memberof ImageApi
5756
4865
  */
5757
4866
  headStudioImage(requestParameters, options) {
5758
- return ImageApiFp(this.configuration).headStudioImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
4867
+ return ImageApiFp(this.configuration).headStudioImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5759
4868
  }
5760
4869
  /**
5761
4870
  *
@@ -5766,7 +4875,7 @@ class ImageApi extends BaseAPI {
5766
4875
  * @memberof ImageApi
5767
4876
  */
5768
4877
  headStudioImageByIndex(requestParameters, options) {
5769
- return ImageApiFp(this.configuration).headStudioImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4878
+ return ImageApiFp(this.configuration).headStudioImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
5770
4879
  }
5771
4880
  /**
5772
4881
  *
@@ -5776,19 +4885,8 @@ class ImageApi extends BaseAPI {
5776
4885
  * @throws {RequiredError}
5777
4886
  * @memberof ImageApi
5778
4887
  */
5779
- headUserImage(requestParameters, options) {
5780
- return ImageApiFp(this.configuration).headUserImage(requestParameters.userId, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5781
- }
5782
- /**
5783
- *
5784
- * @summary Get user profile image.
5785
- * @param {ImageApiHeadUserImageByIndexRequest} requestParameters Request parameters.
5786
- * @param {*} [options] Override http request option.
5787
- * @throws {RequiredError}
5788
- * @memberof ImageApi
5789
- */
5790
- headUserImageByIndex(requestParameters, options) {
5791
- return ImageApiFp(this.configuration).headUserImageByIndex(requestParameters.userId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then((request) => request(this.axios, this.basePath));
4888
+ headUserImage(requestParameters = {}, options) {
4889
+ return ImageApiFp(this.configuration).headUserImage(requestParameters.userId, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then((request) => request(this.axios, this.basePath));
5792
4890
  }
5793
4891
  /**
5794
4892
  *
@@ -5798,19 +4896,8 @@ class ImageApi extends BaseAPI {
5798
4896
  * @throws {RequiredError}
5799
4897
  * @memberof ImageApi
5800
4898
  */
5801
- postUserImage(requestParameters, options) {
5802
- return ImageApiFp(this.configuration).postUserImage(requestParameters.userId, requestParameters.imageType, requestParameters.index, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
5803
- }
5804
- /**
5805
- *
5806
- * @summary Sets the user image.
5807
- * @param {ImageApiPostUserImageByIndexRequest} requestParameters Request parameters.
5808
- * @param {*} [options] Override http request option.
5809
- * @throws {RequiredError}
5810
- * @memberof ImageApi
5811
- */
5812
- postUserImageByIndex(requestParameters, options) {
5813
- return ImageApiFp(this.configuration).postUserImageByIndex(requestParameters.userId, requestParameters.imageType, requestParameters.index, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
4899
+ postUserImage(requestParameters = {}, options) {
4900
+ return ImageApiFp(this.configuration).postUserImage(requestParameters.userId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
5814
4901
  }
5815
4902
  /**
5816
4903
  *