@jellyfin/sdk 0.7.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 (870) hide show
  1. package/.gitattributes +5 -0
  2. package/LICENSE +373 -0
  3. package/README.md +141 -0
  4. package/lib/api.d.ts +42 -0
  5. package/lib/api.js +99 -0
  6. package/lib/discovery/discovery-service.d.ts +41 -0
  7. package/lib/discovery/discovery-service.js +112 -0
  8. package/lib/discovery/index.d.ts +7 -0
  9. package/lib/discovery/index.js +23 -0
  10. package/lib/discovery/recommended-server-discovery.d.ts +23 -0
  11. package/lib/discovery/recommended-server-discovery.js +153 -0
  12. package/lib/generated-client/api/activity-log-api.d.ts +113 -0
  13. package/lib/generated-client/api/activity-log-api.js +234 -0
  14. package/lib/generated-client/api/api-key-api.d.ts +161 -0
  15. package/lib/generated-client/api/api-key-api.js +374 -0
  16. package/lib/generated-client/api/artists-api.d.ts +751 -0
  17. package/lib/generated-client/api/artists-api.js +759 -0
  18. package/lib/generated-client/api/audio-api.d.ts +1985 -0
  19. package/lib/generated-client/api/audio-api.js +1582 -0
  20. package/lib/generated-client/api/branding-api.d.ts +127 -0
  21. package/lib/generated-client/api/branding-api.js +334 -0
  22. package/lib/generated-client/api/channels-api.d.ts +419 -0
  23. package/lib/generated-client/api/channels-api.js +648 -0
  24. package/lib/generated-client/api/client-log-api.d.ts +86 -0
  25. package/lib/generated-client/api/client-log-api.js +213 -0
  26. package/lib/generated-client/api/collection-api.d.ts +223 -0
  27. package/lib/generated-client/api/collection-api.js +414 -0
  28. package/lib/generated-client/api/configuration-api.d.ts +293 -0
  29. package/lib/generated-client/api/configuration-api.js +623 -0
  30. package/lib/generated-client/api/dashboard-api.d.ts +132 -0
  31. package/lib/generated-client/api/dashboard-api.js +290 -0
  32. package/lib/generated-client/api/devices-api.d.ts +291 -0
  33. package/lib/generated-client/api/devices-api.js +567 -0
  34. package/lib/generated-client/api/display-preferences-api.d.ts +177 -0
  35. package/lib/generated-client/api/display-preferences-api.js +335 -0
  36. package/lib/generated-client/api/dlna-api.d.ts +292 -0
  37. package/lib/generated-client/api/dlna-api.js +619 -0
  38. package/lib/generated-client/api/dlna-server-api.d.ts +784 -0
  39. package/lib/generated-client/api/dlna-server-api.js +1464 -0
  40. package/lib/generated-client/api/dynamic-hls-api.d.ts +4604 -0
  41. package/lib/generated-client/api/dynamic-hls-api.js +3611 -0
  42. package/lib/generated-client/api/environment-api.d.ts +289 -0
  43. package/lib/generated-client/api/environment-api.js +628 -0
  44. package/lib/generated-client/api/filter-api.d.ts +242 -0
  45. package/lib/generated-client/api/filter-api.js +370 -0
  46. package/lib/generated-client/api/genres-api.d.ts +299 -0
  47. package/lib/generated-client/api/genres-api.js +405 -0
  48. package/lib/generated-client/api/hls-segment-api.d.ts +332 -0
  49. package/lib/generated-client/api/hls-segment-api.js +567 -0
  50. package/lib/generated-client/api/image-api.d.ts +6744 -0
  51. package/lib/generated-client/api/image-api.js +6515 -0
  52. package/lib/generated-client/api/image-by-name-api.d.ts +292 -0
  53. package/lib/generated-client/api/image-by-name-api.js +601 -0
  54. package/lib/generated-client/api/instant-mix-api.d.ts +918 -0
  55. package/lib/generated-client/api/instant-mix-api.js +1138 -0
  56. package/lib/generated-client/api/item-lookup-api.d.ts +574 -0
  57. package/lib/generated-client/api/item-lookup-api.js +1065 -0
  58. package/lib/generated-client/api/item-refresh-api.d.ts +122 -0
  59. package/lib/generated-client/api/item-refresh-api.js +237 -0
  60. package/lib/generated-client/api/item-update-api.d.ts +197 -0
  61. package/lib/generated-client/api/item-update-api.js +392 -0
  62. package/lib/generated-client/api/items-api.d.ts +1824 -0
  63. package/lib/generated-client/api/items-api.js +1488 -0
  64. package/lib/generated-client/api/library-api.d.ts +1482 -0
  65. package/lib/generated-client/api/library-api.js +2414 -0
  66. package/lib/generated-client/api/library-structure-api.d.ts +486 -0
  67. package/lib/generated-client/api/library-structure-api.js +852 -0
  68. package/lib/generated-client/api/live-tv-api.d.ts +2844 -0
  69. package/lib/generated-client/api/live-tv-api.js +4165 -0
  70. package/lib/generated-client/api/localization-api.d.ts +159 -0
  71. package/lib/generated-client/api/localization-api.js +434 -0
  72. package/lib/generated-client/api/media-info-api.d.ts +516 -0
  73. package/lib/generated-client/api/media-info-api.js +711 -0
  74. package/lib/generated-client/api/movies-api.d.ts +123 -0
  75. package/lib/generated-client/api/movies-api.js +238 -0
  76. package/lib/generated-client/api/music-genres-api.d.ts +303 -0
  77. package/lib/generated-client/api/music-genres-api.js +409 -0
  78. package/lib/generated-client/api/notifications-api.d.ts +332 -0
  79. package/lib/generated-client/api/notifications-api.js +698 -0
  80. package/lib/generated-client/api/package-api.d.ts +319 -0
  81. package/lib/generated-client/api/package-api.js +639 -0
  82. package/lib/generated-client/api/persons-api.d.ts +253 -0
  83. package/lib/generated-client/api/persons-api.js +375 -0
  84. package/lib/generated-client/api/playlists-api.d.ts +427 -0
  85. package/lib/generated-client/api/playlists-api.js +649 -0
  86. package/lib/generated-client/api/playstate-api.d.ts +720 -0
  87. package/lib/generated-client/api/playstate-api.js +1055 -0
  88. package/lib/generated-client/api/plugins-api.d.ts +477 -0
  89. package/lib/generated-client/api/plugins-api.js +898 -0
  90. package/lib/generated-client/api/quick-connect-api.d.ts +190 -0
  91. package/lib/generated-client/api/quick-connect-api.js +428 -0
  92. package/lib/generated-client/api/remote-image-api.d.ts +243 -0
  93. package/lib/generated-client/api/remote-image-api.js +423 -0
  94. package/lib/generated-client/api/scheduled-tasks-api.d.ts +289 -0
  95. package/lib/generated-client/api/scheduled-tasks-api.js +559 -0
  96. package/lib/generated-client/api/search-api.d.ts +240 -0
  97. package/lib/generated-client/api/search-api.js +317 -0
  98. package/lib/generated-client/api/session-api.d.ts +985 -0
  99. package/lib/generated-client/api/session-api.js +1622 -0
  100. package/lib/generated-client/api/startup-api.d.ts +296 -0
  101. package/lib/generated-client/api/startup-api.js +685 -0
  102. package/lib/generated-client/api/studios-api.d.ts +289 -0
  103. package/lib/generated-client/api/studios-api.js +399 -0
  104. package/lib/generated-client/api/subtitle-api.d.ts +764 -0
  105. package/lib/generated-client/api/subtitle-api.js +1126 -0
  106. package/lib/generated-client/api/suggestions-api.d.ts +132 -0
  107. package/lib/generated-client/api/suggestions-api.js +243 -0
  108. package/lib/generated-client/api/sync-play-api.d.ts +937 -0
  109. package/lib/generated-client/api/sync-play-api.js +1854 -0
  110. package/lib/generated-client/api/system-api.d.ts +355 -0
  111. package/lib/generated-client/api/system-api.js +879 -0
  112. package/lib/generated-client/api/time-sync-api.d.ts +69 -0
  113. package/lib/generated-client/api/time-sync-api.js +198 -0
  114. package/lib/generated-client/api/tmdb-api.d.ts +69 -0
  115. package/lib/generated-client/api/tmdb-api.js +206 -0
  116. package/lib/generated-client/api/trailers-api.d.ts +841 -0
  117. package/lib/generated-client/api/trailers-api.js +720 -0
  118. package/lib/generated-client/api/tv-shows-api.d.ts +622 -0
  119. package/lib/generated-client/api/tv-shows-api.js +730 -0
  120. package/lib/generated-client/api/universal-audio-api.d.ts +437 -0
  121. package/lib/generated-client/api/universal-audio-api.js +500 -0
  122. package/lib/generated-client/api/user-api.d.ts +826 -0
  123. package/lib/generated-client/api/user-api.js +1457 -0
  124. package/lib/generated-client/api/user-library-api.d.ts +676 -0
  125. package/lib/generated-client/api/user-library-api.js +1074 -0
  126. package/lib/generated-client/api/user-views-api.d.ts +160 -0
  127. package/lib/generated-client/api/user-views-api.js +314 -0
  128. package/lib/generated-client/api/video-attachments-api.d.ts +103 -0
  129. package/lib/generated-client/api/video-attachments-api.js +217 -0
  130. package/lib/generated-client/api/videos-api.d.ts +2205 -0
  131. package/lib/generated-client/api/videos-api.js +1887 -0
  132. package/lib/generated-client/api/years-api.d.ts +272 -0
  133. package/lib/generated-client/api/years-api.js +387 -0
  134. package/lib/generated-client/api.d.ts +71 -0
  135. package/lib/generated-client/api.js +89 -0
  136. package/lib/generated-client/base.d.ts +54 -0
  137. package/lib/generated-client/base.js +84 -0
  138. package/lib/generated-client/common.d.ts +64 -0
  139. package/lib/generated-client/common.js +242 -0
  140. package/lib/generated-client/configuration.d.ts +82 -0
  141. package/lib/generated-client/configuration.js +43 -0
  142. package/lib/generated-client/index.d.ts +13 -0
  143. package/lib/generated-client/index.js +31 -0
  144. package/lib/generated-client/models/access-schedule.d.ts +48 -0
  145. package/lib/generated-client/models/access-schedule.js +14 -0
  146. package/lib/generated-client/models/activity-log-entry-query-result.d.ts +36 -0
  147. package/lib/generated-client/models/activity-log-entry-query-result.js +14 -0
  148. package/lib/generated-client/models/activity-log-entry.d.ts +79 -0
  149. package/lib/generated-client/models/activity-log-entry.js +14 -0
  150. package/lib/generated-client/models/add-virtual-folder-dto.d.ts +24 -0
  151. package/lib/generated-client/models/add-virtual-folder-dto.js +14 -0
  152. package/lib/generated-client/models/admin-notification-dto.d.ts +42 -0
  153. package/lib/generated-client/models/admin-notification-dto.js +14 -0
  154. package/lib/generated-client/models/album-info-remote-search-query.d.ts +42 -0
  155. package/lib/generated-client/models/album-info-remote-search-query.js +14 -0
  156. package/lib/generated-client/models/album-info.d.ts +106 -0
  157. package/lib/generated-client/models/album-info.js +14 -0
  158. package/lib/generated-client/models/all-theme-media-result.d.ts +36 -0
  159. package/lib/generated-client/models/all-theme-media-result.js +14 -0
  160. package/lib/generated-client/models/architecture.d.ts +23 -0
  161. package/lib/generated-client/models/architecture.js +29 -0
  162. package/lib/generated-client/models/artist-info-remote-search-query.d.ts +42 -0
  163. package/lib/generated-client/models/artist-info-remote-search-query.js +14 -0
  164. package/lib/generated-client/models/artist-info.d.ts +92 -0
  165. package/lib/generated-client/models/artist-info.js +14 -0
  166. package/lib/generated-client/models/authenticate-user-by-name.d.ts +36 -0
  167. package/lib/generated-client/models/authenticate-user-by-name.js +14 -0
  168. package/lib/generated-client/models/authentication-info-query-result.d.ts +36 -0
  169. package/lib/generated-client/models/authentication-info-query-result.js +14 -0
  170. package/lib/generated-client/models/authentication-info.d.ts +89 -0
  171. package/lib/generated-client/models/authentication-info.js +14 -0
  172. package/lib/generated-client/models/authentication-result.d.ts +43 -0
  173. package/lib/generated-client/models/authentication-result.js +14 -0
  174. package/lib/generated-client/models/base-item-dto-image-blur-hashes.d.ts +121 -0
  175. package/lib/generated-client/models/base-item-dto-image-blur-hashes.js +14 -0
  176. package/lib/generated-client/models/base-item-dto-query-result.d.ts +36 -0
  177. package/lib/generated-client/models/base-item-dto-query-result.js +14 -0
  178. package/lib/generated-client/models/base-item-dto.d.ts +947 -0
  179. package/lib/generated-client/models/base-item-dto.js +14 -0
  180. package/lib/generated-client/models/base-item-kind.d.ts +54 -0
  181. package/lib/generated-client/models/base-item-kind.js +60 -0
  182. package/lib/generated-client/models/base-item-person-image-blur-hashes.d.ts +121 -0
  183. package/lib/generated-client/models/base-item-person-image-blur-hashes.js +14 -0
  184. package/lib/generated-client/models/base-item-person.d.ts +54 -0
  185. package/lib/generated-client/models/base-item-person.js +14 -0
  186. package/lib/generated-client/models/base-item.d.ts +84 -0
  187. package/lib/generated-client/models/base-item.js +14 -0
  188. package/lib/generated-client/models/book-info-remote-search-query.d.ts +42 -0
  189. package/lib/generated-client/models/book-info-remote-search-query.js +14 -0
  190. package/lib/generated-client/models/book-info.d.ts +91 -0
  191. package/lib/generated-client/models/book-info.js +14 -0
  192. package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +42 -0
  193. package/lib/generated-client/models/box-set-info-remote-search-query.js +14 -0
  194. package/lib/generated-client/models/box-set-info.d.ts +85 -0
  195. package/lib/generated-client/models/box-set-info.js +14 -0
  196. package/lib/generated-client/models/branding-options.d.ts +35 -0
  197. package/lib/generated-client/models/branding-options.js +14 -0
  198. package/lib/generated-client/models/buffer-request-dto.d.ts +41 -0
  199. package/lib/generated-client/models/buffer-request-dto.js +14 -0
  200. package/lib/generated-client/models/channel-features.d.ts +92 -0
  201. package/lib/generated-client/models/channel-features.js +14 -0
  202. package/lib/generated-client/models/channel-item-sort-field.d.ts +24 -0
  203. package/lib/generated-client/models/channel-item-sort-field.js +30 -0
  204. package/lib/generated-client/models/channel-mapping-options-dto.d.ts +44 -0
  205. package/lib/generated-client/models/channel-mapping-options-dto.js +14 -0
  206. package/lib/generated-client/models/channel-media-content-type.d.ts +25 -0
  207. package/lib/generated-client/models/channel-media-content-type.js +31 -0
  208. package/lib/generated-client/models/channel-media-type.d.ts +20 -0
  209. package/lib/generated-client/models/channel-media-type.js +26 -0
  210. package/lib/generated-client/models/channel-type.d.ts +19 -0
  211. package/lib/generated-client/models/channel-type.js +25 -0
  212. package/lib/generated-client/models/chapter-info.d.ts +47 -0
  213. package/lib/generated-client/models/chapter-info.js +14 -0
  214. package/lib/generated-client/models/client-capabilities-dto.d.ts +79 -0
  215. package/lib/generated-client/models/client-capabilities-dto.js +14 -0
  216. package/lib/generated-client/models/client-capabilities.d.ts +79 -0
  217. package/lib/generated-client/models/client-capabilities.js +14 -0
  218. package/lib/generated-client/models/client-log-document-response-dto.d.ts +23 -0
  219. package/lib/generated-client/models/client-log-document-response-dto.js +14 -0
  220. package/lib/generated-client/models/codec-profile.d.ts +49 -0
  221. package/lib/generated-client/models/codec-profile.js +14 -0
  222. package/lib/generated-client/models/codec-type.d.ts +20 -0
  223. package/lib/generated-client/models/codec-type.js +26 -0
  224. package/lib/generated-client/models/collection-creation-result.d.ts +23 -0
  225. package/lib/generated-client/models/collection-creation-result.js +14 -0
  226. package/lib/generated-client/models/collection-type-options.d.ts +25 -0
  227. package/lib/generated-client/models/collection-type-options.js +31 -0
  228. package/lib/generated-client/models/config-image-types.d.ts +59 -0
  229. package/lib/generated-client/models/config-image-types.js +14 -0
  230. package/lib/generated-client/models/configuration-page-info.d.ts +53 -0
  231. package/lib/generated-client/models/configuration-page-info.js +14 -0
  232. package/lib/generated-client/models/container-profile.d.ts +37 -0
  233. package/lib/generated-client/models/container-profile.js +14 -0
  234. package/lib/generated-client/models/control-response.d.ts +37 -0
  235. package/lib/generated-client/models/control-response.js +14 -0
  236. package/lib/generated-client/models/country-info.d.ts +41 -0
  237. package/lib/generated-client/models/country-info.js +14 -0
  238. package/lib/generated-client/models/create-playlist-dto.d.ts +41 -0
  239. package/lib/generated-client/models/create-playlist-dto.js +14 -0
  240. package/lib/generated-client/models/create-user-by-name.d.ts +29 -0
  241. package/lib/generated-client/models/create-user-by-name.js +14 -0
  242. package/lib/generated-client/models/culture-dto.d.ts +47 -0
  243. package/lib/generated-client/models/culture-dto.js +14 -0
  244. package/lib/generated-client/models/day-of-week.d.ts +24 -0
  245. package/lib/generated-client/models/day-of-week.js +30 -0
  246. package/lib/generated-client/models/day-pattern.d.ts +20 -0
  247. package/lib/generated-client/models/day-pattern.js +26 -0
  248. package/lib/generated-client/models/default-directory-browser-info-dto.d.ts +23 -0
  249. package/lib/generated-client/models/default-directory-browser-info-dto.js +14 -0
  250. package/lib/generated-client/models/device-identification.d.ts +72 -0
  251. package/lib/generated-client/models/device-identification.js +14 -0
  252. package/lib/generated-client/models/device-info-query-result.d.ts +36 -0
  253. package/lib/generated-client/models/device-info-query-result.js +14 -0
  254. package/lib/generated-client/models/device-info.d.ts +78 -0
  255. package/lib/generated-client/models/device-info.js +14 -0
  256. package/lib/generated-client/models/device-options-dto.d.ts +35 -0
  257. package/lib/generated-client/models/device-options-dto.js +14 -0
  258. package/lib/generated-client/models/device-options.d.ts +35 -0
  259. package/lib/generated-client/models/device-options.js +14 -0
  260. package/lib/generated-client/models/device-profile-info.d.ts +36 -0
  261. package/lib/generated-client/models/device-profile-info.js +14 -0
  262. package/lib/generated-client/models/device-profile-type.d.ts +19 -0
  263. package/lib/generated-client/models/device-profile-type.js +25 -0
  264. package/lib/generated-client/models/device-profile.d.ts +259 -0
  265. package/lib/generated-client/models/device-profile.js +14 -0
  266. package/lib/generated-client/models/direct-play-profile.d.ts +42 -0
  267. package/lib/generated-client/models/direct-play-profile.js +14 -0
  268. package/lib/generated-client/models/display-preferences-dto.d.ts +105 -0
  269. package/lib/generated-client/models/display-preferences-dto.js +14 -0
  270. package/lib/generated-client/models/dlna-options.d.ts +83 -0
  271. package/lib/generated-client/models/dlna-options.js +14 -0
  272. package/lib/generated-client/models/dlna-profile-type.d.ts +21 -0
  273. package/lib/generated-client/models/dlna-profile-type.js +27 -0
  274. package/lib/generated-client/models/dynamic-day-of-week.d.ts +27 -0
  275. package/lib/generated-client/models/dynamic-day-of-week.js +33 -0
  276. package/lib/generated-client/models/embedded-subtitle-options.d.ts +21 -0
  277. package/lib/generated-client/models/embedded-subtitle-options.js +27 -0
  278. package/lib/generated-client/models/encoding-context.d.ts +19 -0
  279. package/lib/generated-client/models/encoding-context.js +25 -0
  280. package/lib/generated-client/models/encoding-options.d.ts +245 -0
  281. package/lib/generated-client/models/encoding-options.js +14 -0
  282. package/lib/generated-client/models/end-point-info.d.ts +29 -0
  283. package/lib/generated-client/models/end-point-info.js +14 -0
  284. package/lib/generated-client/models/external-id-info.d.ts +42 -0
  285. package/lib/generated-client/models/external-id-info.js +14 -0
  286. package/lib/generated-client/models/external-id-media-type.d.ts +29 -0
  287. package/lib/generated-client/models/external-id-media-type.js +35 -0
  288. package/lib/generated-client/models/external-url.d.ts +29 -0
  289. package/lib/generated-client/models/external-url.js +14 -0
  290. package/lib/generated-client/models/ffmpeg-location.d.ts +21 -0
  291. package/lib/generated-client/models/ffmpeg-location.js +27 -0
  292. package/lib/generated-client/models/file-system-entry-info.d.ts +36 -0
  293. package/lib/generated-client/models/file-system-entry-info.js +14 -0
  294. package/lib/generated-client/models/file-system-entry-type.d.ts +21 -0
  295. package/lib/generated-client/models/file-system-entry-type.js +27 -0
  296. package/lib/generated-client/models/font-file.d.ts +41 -0
  297. package/lib/generated-client/models/font-file.js +14 -0
  298. package/lib/generated-client/models/forgot-password-action.d.ts +20 -0
  299. package/lib/generated-client/models/forgot-password-action.js +26 -0
  300. package/lib/generated-client/models/forgot-password-dto.d.ts +23 -0
  301. package/lib/generated-client/models/forgot-password-dto.js +14 -0
  302. package/lib/generated-client/models/forgot-password-pin-dto.d.ts +23 -0
  303. package/lib/generated-client/models/forgot-password-pin-dto.js +14 -0
  304. package/lib/generated-client/models/forgot-password-result.d.ts +36 -0
  305. package/lib/generated-client/models/forgot-password-result.js +14 -0
  306. package/lib/generated-client/models/general-command-type.d.ts +59 -0
  307. package/lib/generated-client/models/general-command-type.js +65 -0
  308. package/lib/generated-client/models/general-command.d.ts +38 -0
  309. package/lib/generated-client/models/general-command.js +14 -0
  310. package/lib/generated-client/models/get-programs-dto.d.ts +182 -0
  311. package/lib/generated-client/models/get-programs-dto.js +14 -0
  312. package/lib/generated-client/models/group-info-dto.d.ts +48 -0
  313. package/lib/generated-client/models/group-info-dto.js +14 -0
  314. package/lib/generated-client/models/group-queue-mode.d.ts +19 -0
  315. package/lib/generated-client/models/group-queue-mode.js +25 -0
  316. package/lib/generated-client/models/group-repeat-mode.d.ts +20 -0
  317. package/lib/generated-client/models/group-repeat-mode.js +26 -0
  318. package/lib/generated-client/models/group-shuffle-mode.d.ts +19 -0
  319. package/lib/generated-client/models/group-shuffle-mode.js +25 -0
  320. package/lib/generated-client/models/group-state-type.d.ts +21 -0
  321. package/lib/generated-client/models/group-state-type.js +27 -0
  322. package/lib/generated-client/models/group-update-type.d.ts +28 -0
  323. package/lib/generated-client/models/group-update-type.js +34 -0
  324. package/lib/generated-client/models/guide-info.d.ts +29 -0
  325. package/lib/generated-client/models/guide-info.js +14 -0
  326. package/lib/generated-client/models/hardware-encoding-type.d.ts +23 -0
  327. package/lib/generated-client/models/hardware-encoding-type.js +29 -0
  328. package/lib/generated-client/models/header-match-type.d.ts +20 -0
  329. package/lib/generated-client/models/header-match-type.js +26 -0
  330. package/lib/generated-client/models/http-header-info.d.ts +36 -0
  331. package/lib/generated-client/models/http-header-info.js +14 -0
  332. package/lib/generated-client/models/ignore-wait-request-dto.d.ts +23 -0
  333. package/lib/generated-client/models/ignore-wait-request-dto.js +14 -0
  334. package/lib/generated-client/models/image-by-name-info.d.ts +47 -0
  335. package/lib/generated-client/models/image-by-name-info.js +14 -0
  336. package/lib/generated-client/models/image-format.d.ts +22 -0
  337. package/lib/generated-client/models/image-format.js +28 -0
  338. package/lib/generated-client/models/image-info.d.ts +66 -0
  339. package/lib/generated-client/models/image-info.js +14 -0
  340. package/lib/generated-client/models/image-option.d.ts +36 -0
  341. package/lib/generated-client/models/image-option.js +14 -0
  342. package/lib/generated-client/models/image-orientation.d.ts +25 -0
  343. package/lib/generated-client/models/image-orientation.js +31 -0
  344. package/lib/generated-client/models/image-provider-info.d.ts +30 -0
  345. package/lib/generated-client/models/image-provider-info.js +14 -0
  346. package/lib/generated-client/models/image-saving-convention.d.ts +19 -0
  347. package/lib/generated-client/models/image-saving-convention.js +25 -0
  348. package/lib/generated-client/models/image-type.d.ts +30 -0
  349. package/lib/generated-client/models/image-type.js +36 -0
  350. package/lib/generated-client/models/index.d.ts +284 -0
  351. package/lib/generated-client/models/index.js +300 -0
  352. package/lib/generated-client/models/installation-info.d.ts +60 -0
  353. package/lib/generated-client/models/installation-info.js +14 -0
  354. package/lib/generated-client/models/iplugin.d.ts +59 -0
  355. package/lib/generated-client/models/iplugin.js +14 -0
  356. package/lib/generated-client/models/iso-type.d.ts +19 -0
  357. package/lib/generated-client/models/iso-type.js +25 -0
  358. package/lib/generated-client/models/item-counts.d.ts +89 -0
  359. package/lib/generated-client/models/item-counts.js +14 -0
  360. package/lib/generated-client/models/item-fields.d.ts +78 -0
  361. package/lib/generated-client/models/item-fields.js +84 -0
  362. package/lib/generated-client/models/item-filter.d.ts +26 -0
  363. package/lib/generated-client/models/item-filter.js +32 -0
  364. package/lib/generated-client/models/join-group-request-dto.d.ts +23 -0
  365. package/lib/generated-client/models/join-group-request-dto.js +14 -0
  366. package/lib/generated-client/models/keep-until.d.ts +21 -0
  367. package/lib/generated-client/models/keep-until.js +27 -0
  368. package/lib/generated-client/models/library-option-info-dto.d.ts +29 -0
  369. package/lib/generated-client/models/library-option-info-dto.js +14 -0
  370. package/lib/generated-client/models/library-options-result-dto.d.ts +43 -0
  371. package/lib/generated-client/models/library-options-result-dto.js +14 -0
  372. package/lib/generated-client/models/library-options.d.ts +183 -0
  373. package/lib/generated-client/models/library-options.js +14 -0
  374. package/lib/generated-client/models/library-type-options-dto.d.ts +50 -0
  375. package/lib/generated-client/models/library-type-options-dto.js +14 -0
  376. package/lib/generated-client/models/library-update-info.d.ts +59 -0
  377. package/lib/generated-client/models/library-update-info.js +14 -0
  378. package/lib/generated-client/models/listings-provider-info.d.ts +126 -0
  379. package/lib/generated-client/models/listings-provider-info.js +14 -0
  380. package/lib/generated-client/models/live-stream-response.d.ts +24 -0
  381. package/lib/generated-client/models/live-stream-response.js +14 -0
  382. package/lib/generated-client/models/live-tv-info.d.ts +36 -0
  383. package/lib/generated-client/models/live-tv-info.js +14 -0
  384. package/lib/generated-client/models/live-tv-options.d.ts +97 -0
  385. package/lib/generated-client/models/live-tv-options.js +14 -0
  386. package/lib/generated-client/models/live-tv-service-info.d.ts +66 -0
  387. package/lib/generated-client/models/live-tv-service-info.js +14 -0
  388. package/lib/generated-client/models/live-tv-service-status.d.ts +19 -0
  389. package/lib/generated-client/models/live-tv-service-status.js +25 -0
  390. package/lib/generated-client/models/localization-option.d.ts +29 -0
  391. package/lib/generated-client/models/localization-option.js +14 -0
  392. package/lib/generated-client/models/location-type.d.ts +21 -0
  393. package/lib/generated-client/models/location-type.js +27 -0
  394. package/lib/generated-client/models/log-file.d.ts +41 -0
  395. package/lib/generated-client/models/log-file.js +14 -0
  396. package/lib/generated-client/models/log-level.d.ts +24 -0
  397. package/lib/generated-client/models/log-level.js +30 -0
  398. package/lib/generated-client/models/media-attachment.d.ts +59 -0
  399. package/lib/generated-client/models/media-attachment.js +14 -0
  400. package/lib/generated-client/models/media-encoder-path-dto.d.ts +29 -0
  401. package/lib/generated-client/models/media-encoder-path-dto.js +14 -0
  402. package/lib/generated-client/models/media-path-dto.d.ts +36 -0
  403. package/lib/generated-client/models/media-path-dto.js +14 -0
  404. package/lib/generated-client/models/media-path-info.d.ts +29 -0
  405. package/lib/generated-client/models/media-path-info.js +14 -0
  406. package/lib/generated-client/models/media-protocol.d.ts +24 -0
  407. package/lib/generated-client/models/media-protocol.js +30 -0
  408. package/lib/generated-client/models/media-source-info.d.ts +279 -0
  409. package/lib/generated-client/models/media-source-info.js +14 -0
  410. package/lib/generated-client/models/media-source-type.d.ts +20 -0
  411. package/lib/generated-client/models/media-source-type.js +26 -0
  412. package/lib/generated-client/models/media-stream-type.d.ts +21 -0
  413. package/lib/generated-client/models/media-stream-type.js +27 -0
  414. package/lib/generated-client/models/media-stream.d.ts +367 -0
  415. package/lib/generated-client/models/media-stream.js +14 -0
  416. package/lib/generated-client/models/media-update-info-dto.d.ts +24 -0
  417. package/lib/generated-client/models/media-update-info-dto.js +14 -0
  418. package/lib/generated-client/models/media-update-info-path-dto.d.ts +29 -0
  419. package/lib/generated-client/models/media-update-info-path-dto.js +14 -0
  420. package/lib/generated-client/models/media-url.d.ts +29 -0
  421. package/lib/generated-client/models/media-url.js +14 -0
  422. package/lib/generated-client/models/message-command.d.ts +35 -0
  423. package/lib/generated-client/models/message-command.js +14 -0
  424. package/lib/generated-client/models/metadata-configuration.d.ts +23 -0
  425. package/lib/generated-client/models/metadata-configuration.js +14 -0
  426. package/lib/generated-client/models/metadata-editor-info.d.ts +58 -0
  427. package/lib/generated-client/models/metadata-editor-info.js +14 -0
  428. package/lib/generated-client/models/metadata-field.d.ts +26 -0
  429. package/lib/generated-client/models/metadata-field.js +32 -0
  430. package/lib/generated-client/models/metadata-options.d.ts +59 -0
  431. package/lib/generated-client/models/metadata-options.js +14 -0
  432. package/lib/generated-client/models/metadata-refresh-mode.d.ts +21 -0
  433. package/lib/generated-client/models/metadata-refresh-mode.js +27 -0
  434. package/lib/generated-client/models/move-playlist-item-request-dto.d.ts +29 -0
  435. package/lib/generated-client/models/move-playlist-item-request-dto.js +14 -0
  436. package/lib/generated-client/models/movie-info-remote-search-query.d.ts +42 -0
  437. package/lib/generated-client/models/movie-info-remote-search-query.js +14 -0
  438. package/lib/generated-client/models/movie-info.d.ts +85 -0
  439. package/lib/generated-client/models/movie-info.js +14 -0
  440. package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +42 -0
  441. package/lib/generated-client/models/music-video-info-remote-search-query.js +14 -0
  442. package/lib/generated-client/models/music-video-info.d.ts +91 -0
  443. package/lib/generated-client/models/music-video-info.js +14 -0
  444. package/lib/generated-client/models/name-guid-pair.d.ts +29 -0
  445. package/lib/generated-client/models/name-guid-pair.js +14 -0
  446. package/lib/generated-client/models/name-id-pair.d.ts +29 -0
  447. package/lib/generated-client/models/name-id-pair.js +14 -0
  448. package/lib/generated-client/models/name-value-pair.d.ts +29 -0
  449. package/lib/generated-client/models/name-value-pair.js +14 -0
  450. package/lib/generated-client/models/network-configuration.d.ts +221 -0
  451. package/lib/generated-client/models/network-configuration.js +14 -0
  452. package/lib/generated-client/models/new-group-request-dto.d.ts +23 -0
  453. package/lib/generated-client/models/new-group-request-dto.js +14 -0
  454. package/lib/generated-client/models/next-item-request-dto.d.ts +23 -0
  455. package/lib/generated-client/models/next-item-request-dto.js +14 -0
  456. package/lib/generated-client/models/notification-dto.d.ts +66 -0
  457. package/lib/generated-client/models/notification-dto.js +14 -0
  458. package/lib/generated-client/models/notification-level.d.ts +20 -0
  459. package/lib/generated-client/models/notification-level.js +26 -0
  460. package/lib/generated-client/models/notification-option.d.ts +54 -0
  461. package/lib/generated-client/models/notification-option.js +14 -0
  462. package/lib/generated-client/models/notification-options.d.ts +24 -0
  463. package/lib/generated-client/models/notification-options.js +14 -0
  464. package/lib/generated-client/models/notification-result-dto.d.ts +30 -0
  465. package/lib/generated-client/models/notification-result-dto.js +14 -0
  466. package/lib/generated-client/models/notification-type-info.d.ts +47 -0
  467. package/lib/generated-client/models/notification-type-info.js +14 -0
  468. package/lib/generated-client/models/notifications-summary-dto.d.ts +30 -0
  469. package/lib/generated-client/models/notifications-summary-dto.js +14 -0
  470. package/lib/generated-client/models/object-group-update.d.ts +36 -0
  471. package/lib/generated-client/models/object-group-update.js +14 -0
  472. package/lib/generated-client/models/open-live-stream-dto.d.ts +97 -0
  473. package/lib/generated-client/models/open-live-stream-dto.js +14 -0
  474. package/lib/generated-client/models/package-info.d.ts +66 -0
  475. package/lib/generated-client/models/package-info.js +14 -0
  476. package/lib/generated-client/models/parental-rating.d.ts +29 -0
  477. package/lib/generated-client/models/parental-rating.js +14 -0
  478. package/lib/generated-client/models/path-substitution.d.ts +29 -0
  479. package/lib/generated-client/models/path-substitution.js +14 -0
  480. package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +42 -0
  481. package/lib/generated-client/models/person-lookup-info-remote-search-query.js +14 -0
  482. package/lib/generated-client/models/person-lookup-info.d.ts +85 -0
  483. package/lib/generated-client/models/person-lookup-info.js +14 -0
  484. package/lib/generated-client/models/pin-redeem-result.d.ts +29 -0
  485. package/lib/generated-client/models/pin-redeem-result.js +14 -0
  486. package/lib/generated-client/models/ping-request-dto.d.ts +23 -0
  487. package/lib/generated-client/models/ping-request-dto.js +14 -0
  488. package/lib/generated-client/models/play-access.d.ts +19 -0
  489. package/lib/generated-client/models/play-access.js +25 -0
  490. package/lib/generated-client/models/play-command.d.ts +22 -0
  491. package/lib/generated-client/models/play-command.js +28 -0
  492. package/lib/generated-client/models/play-method.d.ts +20 -0
  493. package/lib/generated-client/models/play-method.js +26 -0
  494. package/lib/generated-client/models/play-request-dto.d.ts +35 -0
  495. package/lib/generated-client/models/play-request-dto.js +14 -0
  496. package/lib/generated-client/models/play-request.d.ts +66 -0
  497. package/lib/generated-client/models/play-request.js +14 -0
  498. package/lib/generated-client/models/playback-error-code.d.ts +20 -0
  499. package/lib/generated-client/models/playback-error-code.js +26 -0
  500. package/lib/generated-client/models/playback-info-dto.d.ts +108 -0
  501. package/lib/generated-client/models/playback-info-dto.js +14 -0
  502. package/lib/generated-client/models/playback-info-response.d.ts +37 -0
  503. package/lib/generated-client/models/playback-info-response.js +14 -0
  504. package/lib/generated-client/models/playback-progress-info.d.ts +141 -0
  505. package/lib/generated-client/models/playback-progress-info.js +14 -0
  506. package/lib/generated-client/models/playback-start-info.d.ts +141 -0
  507. package/lib/generated-client/models/playback-start-info.js +14 -0
  508. package/lib/generated-client/models/playback-stop-info.d.ts +85 -0
  509. package/lib/generated-client/models/playback-stop-info.js +14 -0
  510. package/lib/generated-client/models/player-state-info.d.ts +85 -0
  511. package/lib/generated-client/models/player-state-info.js +14 -0
  512. package/lib/generated-client/models/playlist-creation-result.d.ts +23 -0
  513. package/lib/generated-client/models/playlist-creation-result.js +14 -0
  514. package/lib/generated-client/models/playstate-command.d.ts +26 -0
  515. package/lib/generated-client/models/playstate-command.js +32 -0
  516. package/lib/generated-client/models/playstate-request.d.ts +36 -0
  517. package/lib/generated-client/models/playstate-request.js +14 -0
  518. package/lib/generated-client/models/plugin-info.d.ts +66 -0
  519. package/lib/generated-client/models/plugin-info.js +14 -0
  520. package/lib/generated-client/models/plugin-status.d.ts +24 -0
  521. package/lib/generated-client/models/plugin-status.js +30 -0
  522. package/lib/generated-client/models/previous-item-request-dto.d.ts +23 -0
  523. package/lib/generated-client/models/previous-item-request-dto.js +14 -0
  524. package/lib/generated-client/models/problem-details.d.ts +48 -0
  525. package/lib/generated-client/models/problem-details.js +14 -0
  526. package/lib/generated-client/models/profile-condition-type.d.ts +22 -0
  527. package/lib/generated-client/models/profile-condition-type.js +28 -0
  528. package/lib/generated-client/models/profile-condition-value.d.ts +41 -0
  529. package/lib/generated-client/models/profile-condition-value.js +47 -0
  530. package/lib/generated-client/models/profile-condition.d.ts +43 -0
  531. package/lib/generated-client/models/profile-condition.js +14 -0
  532. package/lib/generated-client/models/program-audio.d.ts +23 -0
  533. package/lib/generated-client/models/program-audio.js +29 -0
  534. package/lib/generated-client/models/public-system-info.d.ts +59 -0
  535. package/lib/generated-client/models/public-system-info.js +14 -0
  536. package/lib/generated-client/models/query-filters-legacy.d.ts +41 -0
  537. package/lib/generated-client/models/query-filters-legacy.js +14 -0
  538. package/lib/generated-client/models/query-filters.d.ts +30 -0
  539. package/lib/generated-client/models/query-filters.js +14 -0
  540. package/lib/generated-client/models/queue-item.d.ts +29 -0
  541. package/lib/generated-client/models/queue-item.js +14 -0
  542. package/lib/generated-client/models/queue-request-dto.d.ts +30 -0
  543. package/lib/generated-client/models/queue-request-dto.js +14 -0
  544. package/lib/generated-client/models/quick-connect-dto.d.ts +23 -0
  545. package/lib/generated-client/models/quick-connect-dto.js +14 -0
  546. package/lib/generated-client/models/quick-connect-result.d.ts +65 -0
  547. package/lib/generated-client/models/quick-connect-result.js +14 -0
  548. package/lib/generated-client/models/rating-type.d.ts +19 -0
  549. package/lib/generated-client/models/rating-type.js +25 -0
  550. package/lib/generated-client/models/ready-request-dto.d.ts +41 -0
  551. package/lib/generated-client/models/ready-request-dto.js +14 -0
  552. package/lib/generated-client/models/recommendation-dto.d.ts +43 -0
  553. package/lib/generated-client/models/recommendation-dto.js +14 -0
  554. package/lib/generated-client/models/recommendation-type.d.ts +23 -0
  555. package/lib/generated-client/models/recommendation-type.js +29 -0
  556. package/lib/generated-client/models/recording-status.d.ts +24 -0
  557. package/lib/generated-client/models/recording-status.js +30 -0
  558. package/lib/generated-client/models/remote-image-info.d.ts +79 -0
  559. package/lib/generated-client/models/remote-image-info.js +14 -0
  560. package/lib/generated-client/models/remote-image-result.d.ts +36 -0
  561. package/lib/generated-client/models/remote-image-result.js +14 -0
  562. package/lib/generated-client/models/remote-search-result.d.ts +91 -0
  563. package/lib/generated-client/models/remote-search-result.js +14 -0
  564. package/lib/generated-client/models/remote-subtitle-info.d.ts +83 -0
  565. package/lib/generated-client/models/remote-subtitle-info.js +14 -0
  566. package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +35 -0
  567. package/lib/generated-client/models/remove-from-playlist-request-dto.js +14 -0
  568. package/lib/generated-client/models/repeat-mode.d.ts +20 -0
  569. package/lib/generated-client/models/repeat-mode.js +26 -0
  570. package/lib/generated-client/models/repository-info.d.ts +35 -0
  571. package/lib/generated-client/models/repository-info.js +14 -0
  572. package/lib/generated-client/models/response-profile.d.ts +61 -0
  573. package/lib/generated-client/models/response-profile.js +14 -0
  574. package/lib/generated-client/models/scroll-direction.d.ts +19 -0
  575. package/lib/generated-client/models/scroll-direction.js +25 -0
  576. package/lib/generated-client/models/search-hint-result.d.ts +30 -0
  577. package/lib/generated-client/models/search-hint-result.js +14 -0
  578. package/lib/generated-client/models/search-hint.d.ts +191 -0
  579. package/lib/generated-client/models/search-hint.js +14 -0
  580. package/lib/generated-client/models/seek-request-dto.d.ts +23 -0
  581. package/lib/generated-client/models/seek-request-dto.js +14 -0
  582. package/lib/generated-client/models/send-command-type.d.ts +21 -0
  583. package/lib/generated-client/models/send-command-type.js +27 -0
  584. package/lib/generated-client/models/send-command.d.ts +54 -0
  585. package/lib/generated-client/models/send-command.js +14 -0
  586. package/lib/generated-client/models/send-to-user-type.d.ts +20 -0
  587. package/lib/generated-client/models/send-to-user-type.js +26 -0
  588. package/lib/generated-client/models/series-info-remote-search-query.d.ts +42 -0
  589. package/lib/generated-client/models/series-info-remote-search-query.js +14 -0
  590. package/lib/generated-client/models/series-info.d.ts +85 -0
  591. package/lib/generated-client/models/series-info.js +14 -0
  592. package/lib/generated-client/models/series-status.d.ts +19 -0
  593. package/lib/generated-client/models/series-status.js +25 -0
  594. package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +36 -0
  595. package/lib/generated-client/models/series-timer-info-dto-query-result.js +14 -0
  596. package/lib/generated-client/models/series-timer-info-dto.d.ts +232 -0
  597. package/lib/generated-client/models/series-timer-info-dto.js +14 -0
  598. package/lib/generated-client/models/server-configuration.d.ts +310 -0
  599. package/lib/generated-client/models/server-configuration.js +14 -0
  600. package/lib/generated-client/models/server-discovery-info.d.ts +41 -0
  601. package/lib/generated-client/models/server-discovery-info.js +14 -0
  602. package/lib/generated-client/models/session-info.d.ts +199 -0
  603. package/lib/generated-client/models/session-info.js +14 -0
  604. package/lib/generated-client/models/session-message-type.d.ts +51 -0
  605. package/lib/generated-client/models/session-message-type.js +57 -0
  606. package/lib/generated-client/models/session-user-info.d.ts +29 -0
  607. package/lib/generated-client/models/session-user-info.js +14 -0
  608. package/lib/generated-client/models/set-channel-mapping-dto.d.ts +35 -0
  609. package/lib/generated-client/models/set-channel-mapping-dto.js +14 -0
  610. package/lib/generated-client/models/set-playlist-item-request-dto.d.ts +23 -0
  611. package/lib/generated-client/models/set-playlist-item-request-dto.js +14 -0
  612. package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +24 -0
  613. package/lib/generated-client/models/set-repeat-mode-request-dto.js +14 -0
  614. package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +24 -0
  615. package/lib/generated-client/models/set-shuffle-mode-request-dto.js +14 -0
  616. package/lib/generated-client/models/song-info.d.ts +103 -0
  617. package/lib/generated-client/models/song-info.js +14 -0
  618. package/lib/generated-client/models/sort-order.d.ts +19 -0
  619. package/lib/generated-client/models/sort-order.js +25 -0
  620. package/lib/generated-client/models/special-view-option-dto.d.ts +29 -0
  621. package/lib/generated-client/models/special-view-option-dto.js +14 -0
  622. package/lib/generated-client/models/startup-configuration-dto.d.ts +35 -0
  623. package/lib/generated-client/models/startup-configuration-dto.js +14 -0
  624. package/lib/generated-client/models/startup-remote-access-dto.d.ts +29 -0
  625. package/lib/generated-client/models/startup-remote-access-dto.js +14 -0
  626. package/lib/generated-client/models/startup-user-dto.d.ts +29 -0
  627. package/lib/generated-client/models/startup-user-dto.js +14 -0
  628. package/lib/generated-client/models/subtitle-delivery-method.d.ts +22 -0
  629. package/lib/generated-client/models/subtitle-delivery-method.js +28 -0
  630. package/lib/generated-client/models/subtitle-options.d.ts +71 -0
  631. package/lib/generated-client/models/subtitle-options.js +14 -0
  632. package/lib/generated-client/models/subtitle-playback-mode.d.ts +22 -0
  633. package/lib/generated-client/models/subtitle-playback-mode.js +28 -0
  634. package/lib/generated-client/models/subtitle-profile.d.ts +48 -0
  635. package/lib/generated-client/models/subtitle-profile.js +14 -0
  636. package/lib/generated-client/models/sync-play-user-access-type.d.ts +20 -0
  637. package/lib/generated-client/models/sync-play-user-access-type.js +26 -0
  638. package/lib/generated-client/models/system-info.d.ts +177 -0
  639. package/lib/generated-client/models/system-info.js +14 -0
  640. package/lib/generated-client/models/task-completion-status.d.ts +21 -0
  641. package/lib/generated-client/models/task-completion-status.js +27 -0
  642. package/lib/generated-client/models/task-info.d.ts +80 -0
  643. package/lib/generated-client/models/task-info.js +14 -0
  644. package/lib/generated-client/models/task-result.d.ts +66 -0
  645. package/lib/generated-client/models/task-result.js +14 -0
  646. package/lib/generated-client/models/task-state.d.ts +20 -0
  647. package/lib/generated-client/models/task-state.js +26 -0
  648. package/lib/generated-client/models/task-trigger-info.d.ts +48 -0
  649. package/lib/generated-client/models/task-trigger-info.js +14 -0
  650. package/lib/generated-client/models/theme-media-result.d.ts +42 -0
  651. package/lib/generated-client/models/theme-media-result.js +14 -0
  652. package/lib/generated-client/models/timer-event-info.d.ts +29 -0
  653. package/lib/generated-client/models/timer-event-info.js +14 -0
  654. package/lib/generated-client/models/timer-info-dto-query-result.d.ts +36 -0
  655. package/lib/generated-client/models/timer-info-dto-query-result.js +14 -0
  656. package/lib/generated-client/models/timer-info-dto.d.ts +188 -0
  657. package/lib/generated-client/models/timer-info-dto.js +14 -0
  658. package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +42 -0
  659. package/lib/generated-client/models/trailer-info-remote-search-query.js +14 -0
  660. package/lib/generated-client/models/trailer-info.d.ts +85 -0
  661. package/lib/generated-client/models/trailer-info.js +14 -0
  662. package/lib/generated-client/models/transcode-seek-info.d.ts +19 -0
  663. package/lib/generated-client/models/transcode-seek-info.js +25 -0
  664. package/lib/generated-client/models/transcoding-info.d.ts +127 -0
  665. package/lib/generated-client/models/transcoding-info.js +47 -0
  666. package/lib/generated-client/models/transcoding-profile.d.ts +117 -0
  667. package/lib/generated-client/models/transcoding-profile.js +14 -0
  668. package/lib/generated-client/models/transport-stream-timestamp.d.ts +20 -0
  669. package/lib/generated-client/models/transport-stream-timestamp.js +26 -0
  670. package/lib/generated-client/models/tuner-channel-mapping.d.ts +41 -0
  671. package/lib/generated-client/models/tuner-channel-mapping.js +14 -0
  672. package/lib/generated-client/models/tuner-host-info.d.ts +83 -0
  673. package/lib/generated-client/models/tuner-host-info.js +14 -0
  674. package/lib/generated-client/models/type-options.d.ts +54 -0
  675. package/lib/generated-client/models/type-options.js +14 -0
  676. package/lib/generated-client/models/unrated-item.d.ts +26 -0
  677. package/lib/generated-client/models/unrated-item.js +32 -0
  678. package/lib/generated-client/models/update-library-options-dto.d.ts +30 -0
  679. package/lib/generated-client/models/update-library-options-dto.js +14 -0
  680. package/lib/generated-client/models/update-media-path-request-dto.d.ts +30 -0
  681. package/lib/generated-client/models/update-media-path-request-dto.js +14 -0
  682. package/lib/generated-client/models/update-user-easy-password.d.ts +35 -0
  683. package/lib/generated-client/models/update-user-easy-password.js +14 -0
  684. package/lib/generated-client/models/update-user-password.d.ts +41 -0
  685. package/lib/generated-client/models/update-user-password.js +14 -0
  686. package/lib/generated-client/models/upload-subtitle-dto.d.ts +41 -0
  687. package/lib/generated-client/models/upload-subtitle-dto.js +14 -0
  688. package/lib/generated-client/models/user-configuration.d.ts +108 -0
  689. package/lib/generated-client/models/user-configuration.js +14 -0
  690. package/lib/generated-client/models/user-dto.d.ts +103 -0
  691. package/lib/generated-client/models/user-dto.js +14 -0
  692. package/lib/generated-client/models/user-item-data-dto.d.ts +83 -0
  693. package/lib/generated-client/models/user-item-data-dto.js +14 -0
  694. package/lib/generated-client/models/user-policy.d.ts +254 -0
  695. package/lib/generated-client/models/user-policy.js +14 -0
  696. package/lib/generated-client/models/utc-time-response.d.ts +29 -0
  697. package/lib/generated-client/models/utc-time-response.js +14 -0
  698. package/lib/generated-client/models/validate-path-dto.d.ts +35 -0
  699. package/lib/generated-client/models/validate-path-dto.js +14 -0
  700. package/lib/generated-client/models/version-info.d.ts +71 -0
  701. package/lib/generated-client/models/version-info.js +14 -0
  702. package/lib/generated-client/models/video-type.d.ts +21 -0
  703. package/lib/generated-client/models/video-type.js +27 -0
  704. package/lib/generated-client/models/video3-dformat.d.ts +22 -0
  705. package/lib/generated-client/models/video3-dformat.js +28 -0
  706. package/lib/generated-client/models/virtual-folder-info.d.ts +67 -0
  707. package/lib/generated-client/models/virtual-folder-info.js +14 -0
  708. package/lib/generated-client/models/wake-on-lan-info.d.ts +29 -0
  709. package/lib/generated-client/models/wake-on-lan-info.js +14 -0
  710. package/lib/generated-client/models/xbmc-metadata-options.d.ts +47 -0
  711. package/lib/generated-client/models/xbmc-metadata-options.js +14 -0
  712. package/lib/generated-client/models/xml-attribute.d.ts +29 -0
  713. package/lib/generated-client/models/xml-attribute.js +14 -0
  714. package/lib/index.d.ts +10 -0
  715. package/lib/index.js +39 -0
  716. package/lib/jellyfin.d.ts +33 -0
  717. package/lib/jellyfin.js +34 -0
  718. package/lib/models/api/image-request-parameters.d.ts +29 -0
  719. package/lib/models/api/image-request-parameters.js +7 -0
  720. package/lib/models/api/index.d.ts +7 -0
  721. package/lib/models/api/index.js +23 -0
  722. package/lib/models/api/item-sort-by.d.ts +40 -0
  723. package/lib/models/api/item-sort-by.js +44 -0
  724. package/lib/models/client-info.d.ts +12 -0
  725. package/lib/models/client-info.js +7 -0
  726. package/lib/models/device-info.d.ts +12 -0
  727. package/lib/models/device-info.js +7 -0
  728. package/lib/models/index.d.ts +9 -0
  729. package/lib/models/index.js +25 -0
  730. package/lib/models/recommended-server-info.d.ts +22 -0
  731. package/lib/models/recommended-server-info.js +16 -0
  732. package/lib/models/recommended-server-issue.d.ts +48 -0
  733. package/lib/models/recommended-server-issue.js +103 -0
  734. package/lib/utils/address-candidates.d.ts +16 -0
  735. package/lib/utils/address-candidates.js +85 -0
  736. package/lib/utils/api/activity-log-api.d.ts +8 -0
  737. package/lib/utils/api/activity-log-api.js +13 -0
  738. package/lib/utils/api/api-key-api.d.ts +8 -0
  739. package/lib/utils/api/api-key-api.js +13 -0
  740. package/lib/utils/api/artists-api.d.ts +8 -0
  741. package/lib/utils/api/artists-api.js +13 -0
  742. package/lib/utils/api/audio-api.d.ts +8 -0
  743. package/lib/utils/api/audio-api.js +13 -0
  744. package/lib/utils/api/branding-api.d.ts +8 -0
  745. package/lib/utils/api/branding-api.js +13 -0
  746. package/lib/utils/api/channels-api.d.ts +8 -0
  747. package/lib/utils/api/channels-api.js +13 -0
  748. package/lib/utils/api/client-log-api.d.ts +8 -0
  749. package/lib/utils/api/client-log-api.js +13 -0
  750. package/lib/utils/api/collection-api.d.ts +8 -0
  751. package/lib/utils/api/collection-api.js +13 -0
  752. package/lib/utils/api/configuration-api.d.ts +8 -0
  753. package/lib/utils/api/configuration-api.js +13 -0
  754. package/lib/utils/api/dashboard-api.d.ts +8 -0
  755. package/lib/utils/api/dashboard-api.js +13 -0
  756. package/lib/utils/api/devices-api.d.ts +8 -0
  757. package/lib/utils/api/devices-api.js +13 -0
  758. package/lib/utils/api/display-preferences-api.d.ts +8 -0
  759. package/lib/utils/api/display-preferences-api.js +13 -0
  760. package/lib/utils/api/dlna-api.d.ts +8 -0
  761. package/lib/utils/api/dlna-api.js +13 -0
  762. package/lib/utils/api/dlna-server-api.d.ts +8 -0
  763. package/lib/utils/api/dlna-server-api.js +13 -0
  764. package/lib/utils/api/dynamic-hls-api.d.ts +8 -0
  765. package/lib/utils/api/dynamic-hls-api.js +13 -0
  766. package/lib/utils/api/environment-api.d.ts +8 -0
  767. package/lib/utils/api/environment-api.js +13 -0
  768. package/lib/utils/api/filter-api.d.ts +8 -0
  769. package/lib/utils/api/filter-api.js +13 -0
  770. package/lib/utils/api/genres-api.d.ts +8 -0
  771. package/lib/utils/api/genres-api.js +13 -0
  772. package/lib/utils/api/hls-segment-api.d.ts +8 -0
  773. package/lib/utils/api/hls-segment-api.js +13 -0
  774. package/lib/utils/api/image-api.d.ts +8 -0
  775. package/lib/utils/api/image-api.js +13 -0
  776. package/lib/utils/api/image-by-name-api.d.ts +8 -0
  777. package/lib/utils/api/image-by-name-api.js +13 -0
  778. package/lib/utils/api/instant-mix-api.d.ts +8 -0
  779. package/lib/utils/api/instant-mix-api.js +13 -0
  780. package/lib/utils/api/item-lookup-api.d.ts +8 -0
  781. package/lib/utils/api/item-lookup-api.js +13 -0
  782. package/lib/utils/api/item-refresh-api.d.ts +8 -0
  783. package/lib/utils/api/item-refresh-api.js +13 -0
  784. package/lib/utils/api/item-update-api.d.ts +8 -0
  785. package/lib/utils/api/item-update-api.js +13 -0
  786. package/lib/utils/api/items-api.d.ts +8 -0
  787. package/lib/utils/api/items-api.js +13 -0
  788. package/lib/utils/api/library-api.d.ts +8 -0
  789. package/lib/utils/api/library-api.js +13 -0
  790. package/lib/utils/api/library-structure-api.d.ts +8 -0
  791. package/lib/utils/api/library-structure-api.js +13 -0
  792. package/lib/utils/api/live-tv-api.d.ts +8 -0
  793. package/lib/utils/api/live-tv-api.js +13 -0
  794. package/lib/utils/api/localization-api.d.ts +8 -0
  795. package/lib/utils/api/localization-api.js +13 -0
  796. package/lib/utils/api/media-info-api.d.ts +8 -0
  797. package/lib/utils/api/media-info-api.js +13 -0
  798. package/lib/utils/api/movies-api.d.ts +8 -0
  799. package/lib/utils/api/movies-api.js +13 -0
  800. package/lib/utils/api/music-genres-api.d.ts +8 -0
  801. package/lib/utils/api/music-genres-api.js +13 -0
  802. package/lib/utils/api/notifications-api.d.ts +8 -0
  803. package/lib/utils/api/notifications-api.js +13 -0
  804. package/lib/utils/api/package-api.d.ts +8 -0
  805. package/lib/utils/api/package-api.js +13 -0
  806. package/lib/utils/api/persons-api.d.ts +8 -0
  807. package/lib/utils/api/persons-api.js +13 -0
  808. package/lib/utils/api/playlists-api.d.ts +8 -0
  809. package/lib/utils/api/playlists-api.js +13 -0
  810. package/lib/utils/api/playstate-api.d.ts +8 -0
  811. package/lib/utils/api/playstate-api.js +13 -0
  812. package/lib/utils/api/plugins-api.d.ts +8 -0
  813. package/lib/utils/api/plugins-api.js +13 -0
  814. package/lib/utils/api/quick-connect-api.d.ts +8 -0
  815. package/lib/utils/api/quick-connect-api.js +13 -0
  816. package/lib/utils/api/remote-image-api.d.ts +8 -0
  817. package/lib/utils/api/remote-image-api.js +13 -0
  818. package/lib/utils/api/scheduled-tasks-api.d.ts +8 -0
  819. package/lib/utils/api/scheduled-tasks-api.js +13 -0
  820. package/lib/utils/api/search-api.d.ts +8 -0
  821. package/lib/utils/api/search-api.js +13 -0
  822. package/lib/utils/api/session-api.d.ts +8 -0
  823. package/lib/utils/api/session-api.js +13 -0
  824. package/lib/utils/api/startup-api.d.ts +8 -0
  825. package/lib/utils/api/startup-api.js +13 -0
  826. package/lib/utils/api/studios-api.d.ts +8 -0
  827. package/lib/utils/api/studios-api.js +13 -0
  828. package/lib/utils/api/subtitle-api.d.ts +8 -0
  829. package/lib/utils/api/subtitle-api.js +13 -0
  830. package/lib/utils/api/suggestions-api.d.ts +8 -0
  831. package/lib/utils/api/suggestions-api.js +13 -0
  832. package/lib/utils/api/sync-play-api.d.ts +8 -0
  833. package/lib/utils/api/sync-play-api.js +13 -0
  834. package/lib/utils/api/system-api.d.ts +8 -0
  835. package/lib/utils/api/system-api.js +13 -0
  836. package/lib/utils/api/time-sync-api.d.ts +8 -0
  837. package/lib/utils/api/time-sync-api.js +13 -0
  838. package/lib/utils/api/tmdb-api.d.ts +8 -0
  839. package/lib/utils/api/tmdb-api.js +13 -0
  840. package/lib/utils/api/trailers-api.d.ts +8 -0
  841. package/lib/utils/api/trailers-api.js +13 -0
  842. package/lib/utils/api/tv-shows-api.d.ts +8 -0
  843. package/lib/utils/api/tv-shows-api.js +13 -0
  844. package/lib/utils/api/universal-audio-api.d.ts +8 -0
  845. package/lib/utils/api/universal-audio-api.js +13 -0
  846. package/lib/utils/api/user-api.d.ts +8 -0
  847. package/lib/utils/api/user-api.js +13 -0
  848. package/lib/utils/api/user-library-api.d.ts +8 -0
  849. package/lib/utils/api/user-library-api.js +13 -0
  850. package/lib/utils/api/user-views-api.d.ts +8 -0
  851. package/lib/utils/api/user-views-api.js +13 -0
  852. package/lib/utils/api/video-attachments-api.d.ts +8 -0
  853. package/lib/utils/api/video-attachments-api.js +13 -0
  854. package/lib/utils/api/videos-api.d.ts +8 -0
  855. package/lib/utils/api/videos-api.js +13 -0
  856. package/lib/utils/api/years-api.d.ts +8 -0
  857. package/lib/utils/api/years-api.js +13 -0
  858. package/lib/utils/authentication.d.ts +10 -0
  859. package/lib/utils/authentication.js +18 -0
  860. package/lib/utils/browser-profiles.d.ts +25 -0
  861. package/lib/utils/browser-profiles.js +44 -0
  862. package/lib/utils/index.d.ts +9 -0
  863. package/lib/utils/index.js +25 -0
  864. package/lib/utils/normalize-url.d.ts +20 -0
  865. package/lib/utils/normalize-url.js +96 -0
  866. package/lib/utils/url.d.ts +31 -0
  867. package/lib/utils/url.js +54 -0
  868. package/openapi-templates/licenseInfo.mustache +10 -0
  869. package/package.json +46 -0
  870. package/tsconfig.json +25 -0
@@ -0,0 +1,1622 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6
+ * Do not edit the class manually.
7
+ *
8
+ * Jellyfin API
9
+ *
10
+ * This Source Code Form is subject to the terms of the Mozilla Public
11
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
12
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
13
+ */
14
+ var __extends = (this && this.__extends) || (function () {
15
+ var extendStatics = function (d, b) {
16
+ extendStatics = Object.setPrototypeOf ||
17
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19
+ return extendStatics(d, b);
20
+ };
21
+ return function (d, b) {
22
+ if (typeof b !== "function" && b !== null)
23
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
24
+ extendStatics(d, b);
25
+ function __() { this.constructor = d; }
26
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27
+ };
28
+ })();
29
+ var __assign = (this && this.__assign) || function () {
30
+ __assign = Object.assign || function(t) {
31
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
32
+ s = arguments[i];
33
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
34
+ t[p] = s[p];
35
+ }
36
+ return t;
37
+ };
38
+ return __assign.apply(this, arguments);
39
+ };
40
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
41
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
42
+ return new (P || (P = Promise))(function (resolve, reject) {
43
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
44
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
45
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
46
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
47
+ });
48
+ };
49
+ var __generator = (this && this.__generator) || function (thisArg, body) {
50
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
51
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
52
+ function verb(n) { return function (v) { return step([n, v]); }; }
53
+ function step(op) {
54
+ if (f) throw new TypeError("Generator is already executing.");
55
+ while (_) try {
56
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
57
+ if (y = 0, t) op = [op[0] & 2, t.value];
58
+ switch (op[0]) {
59
+ case 0: case 1: t = op; break;
60
+ case 4: _.label++; return { value: op[1], done: false };
61
+ case 5: _.label++; y = op[1]; op = [0]; continue;
62
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
63
+ default:
64
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
65
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
66
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
67
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
68
+ if (t[2]) _.ops.pop();
69
+ _.trys.pop(); continue;
70
+ }
71
+ op = body.call(thisArg, _);
72
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
73
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
74
+ }
75
+ };
76
+ var __importDefault = (this && this.__importDefault) || function (mod) {
77
+ return (mod && mod.__esModule) ? mod : { "default": mod };
78
+ };
79
+ Object.defineProperty(exports, "__esModule", { value: true });
80
+ exports.SessionApi = exports.SessionApiFactory = exports.SessionApiFp = exports.SessionApiAxiosParamCreator = void 0;
81
+ var axios_1 = __importDefault(require("axios"));
82
+ // Some imports not used depending on template conditions
83
+ // @ts-ignore
84
+ var common_1 = require("../common");
85
+ // @ts-ignore
86
+ var base_1 = require("../base");
87
+ /**
88
+ * SessionApi - axios parameter creator
89
+ * @export
90
+ */
91
+ var SessionApiAxiosParamCreator = function (configuration) {
92
+ var _this = this;
93
+ return {
94
+ /**
95
+ *
96
+ * @summary Adds an additional user to a session.
97
+ * @param {string} sessionId The session id.
98
+ * @param {string} userId The user id.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ addUserToSession: function (sessionId, userId, options) {
103
+ if (options === void 0) { options = {}; }
104
+ return __awaiter(_this, void 0, void 0, function () {
105
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
+ return __generator(this, function (_a) {
107
+ switch (_a.label) {
108
+ case 0:
109
+ // verify required parameter 'sessionId' is not null or undefined
110
+ (0, common_1.assertParamExists)('addUserToSession', 'sessionId', sessionId);
111
+ // verify required parameter 'userId' is not null or undefined
112
+ (0, common_1.assertParamExists)('addUserToSession', 'userId', userId);
113
+ localVarPath = "/Sessions/{sessionId}/User/{userId}"
114
+ .replace("{".concat("sessionId", "}"), encodeURIComponent(String(sessionId)))
115
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
116
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ }
120
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
121
+ localVarHeaderParameter = {};
122
+ localVarQueryParameter = {};
123
+ // authentication CustomAuthentication required
124
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
125
+ case 1:
126
+ // authentication CustomAuthentication required
127
+ _a.sent();
128
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
129
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
131
+ return [2 /*return*/, {
132
+ url: (0, common_1.toPathString)(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ }];
135
+ }
136
+ });
137
+ });
138
+ },
139
+ /**
140
+ *
141
+ * @summary Instructs a session to browse to an item or view.
142
+ * @param {string} sessionId The session Id.
143
+ * @param {BaseItemKind} itemType The type of item to browse to.
144
+ * @param {string} itemId The Id of the item.
145
+ * @param {string} itemName The name of the item.
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ displayContent: function (sessionId, itemType, itemId, itemName, options) {
150
+ if (options === void 0) { options = {}; }
151
+ return __awaiter(_this, void 0, void 0, function () {
152
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
153
+ return __generator(this, function (_a) {
154
+ switch (_a.label) {
155
+ case 0:
156
+ // verify required parameter 'sessionId' is not null or undefined
157
+ (0, common_1.assertParamExists)('displayContent', 'sessionId', sessionId);
158
+ // verify required parameter 'itemType' is not null or undefined
159
+ (0, common_1.assertParamExists)('displayContent', 'itemType', itemType);
160
+ // verify required parameter 'itemId' is not null or undefined
161
+ (0, common_1.assertParamExists)('displayContent', 'itemId', itemId);
162
+ // verify required parameter 'itemName' is not null or undefined
163
+ (0, common_1.assertParamExists)('displayContent', 'itemName', itemName);
164
+ localVarPath = "/Sessions/{sessionId}/Viewing"
165
+ .replace("{".concat("sessionId", "}"), encodeURIComponent(String(sessionId)));
166
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ }
170
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
171
+ localVarHeaderParameter = {};
172
+ localVarQueryParameter = {};
173
+ // authentication CustomAuthentication required
174
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
175
+ case 1:
176
+ // authentication CustomAuthentication required
177
+ _a.sent();
178
+ if (itemType !== undefined) {
179
+ localVarQueryParameter['itemType'] = itemType;
180
+ }
181
+ if (itemId !== undefined) {
182
+ localVarQueryParameter['itemId'] = itemId;
183
+ }
184
+ if (itemName !== undefined) {
185
+ localVarQueryParameter['itemName'] = itemName;
186
+ }
187
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
188
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
189
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
190
+ return [2 /*return*/, {
191
+ url: (0, common_1.toPathString)(localVarUrlObj),
192
+ options: localVarRequestOptions,
193
+ }];
194
+ }
195
+ });
196
+ });
197
+ },
198
+ /**
199
+ *
200
+ * @summary Get all auth providers.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ getAuthProviders: function (options) {
205
+ if (options === void 0) { options = {}; }
206
+ return __awaiter(_this, void 0, void 0, function () {
207
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
210
+ case 0:
211
+ localVarPath = "/Auth/Providers";
212
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ }
216
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
217
+ localVarHeaderParameter = {};
218
+ localVarQueryParameter = {};
219
+ // authentication CustomAuthentication required
220
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
221
+ case 1:
222
+ // authentication CustomAuthentication required
223
+ _a.sent();
224
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
225
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
227
+ return [2 /*return*/, {
228
+ url: (0, common_1.toPathString)(localVarUrlObj),
229
+ options: localVarRequestOptions,
230
+ }];
231
+ }
232
+ });
233
+ });
234
+ },
235
+ /**
236
+ *
237
+ * @summary Get all password reset providers.
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ getPasswordResetProviders: function (options) {
242
+ if (options === void 0) { options = {}; }
243
+ return __awaiter(_this, void 0, void 0, function () {
244
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
245
+ return __generator(this, function (_a) {
246
+ switch (_a.label) {
247
+ case 0:
248
+ localVarPath = "/Auth/PasswordResetProviders";
249
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
250
+ if (configuration) {
251
+ baseOptions = configuration.baseOptions;
252
+ }
253
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
254
+ localVarHeaderParameter = {};
255
+ localVarQueryParameter = {};
256
+ // authentication CustomAuthentication required
257
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
258
+ case 1:
259
+ // authentication CustomAuthentication required
260
+ _a.sent();
261
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
262
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
263
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
264
+ return [2 /*return*/, {
265
+ url: (0, common_1.toPathString)(localVarUrlObj),
266
+ options: localVarRequestOptions,
267
+ }];
268
+ }
269
+ });
270
+ });
271
+ },
272
+ /**
273
+ *
274
+ * @summary Gets a list of sessions.
275
+ * @param {string} [controllableByUserId] Filter by sessions that a given user is allowed to remote control.
276
+ * @param {string} [deviceId] Filter by device Id.
277
+ * @param {number} [activeWithinSeconds] Optional. Filter by sessions that were active in the last n seconds.
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ getSessions: function (controllableByUserId, deviceId, activeWithinSeconds, options) {
282
+ if (options === void 0) { options = {}; }
283
+ return __awaiter(_this, void 0, void 0, function () {
284
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
285
+ return __generator(this, function (_a) {
286
+ switch (_a.label) {
287
+ case 0:
288
+ localVarPath = "/Sessions";
289
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
290
+ if (configuration) {
291
+ baseOptions = configuration.baseOptions;
292
+ }
293
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
294
+ localVarHeaderParameter = {};
295
+ localVarQueryParameter = {};
296
+ // authentication CustomAuthentication required
297
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
298
+ case 1:
299
+ // authentication CustomAuthentication required
300
+ _a.sent();
301
+ if (controllableByUserId !== undefined) {
302
+ localVarQueryParameter['controllableByUserId'] = controllableByUserId;
303
+ }
304
+ if (deviceId !== undefined) {
305
+ localVarQueryParameter['deviceId'] = deviceId;
306
+ }
307
+ if (activeWithinSeconds !== undefined) {
308
+ localVarQueryParameter['activeWithinSeconds'] = activeWithinSeconds;
309
+ }
310
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
311
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
312
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
313
+ return [2 /*return*/, {
314
+ url: (0, common_1.toPathString)(localVarUrlObj),
315
+ options: localVarRequestOptions,
316
+ }];
317
+ }
318
+ });
319
+ });
320
+ },
321
+ /**
322
+ *
323
+ * @summary Instructs a session to play an item.
324
+ * @param {string} sessionId The session id.
325
+ * @param {PlayCommand} playCommand The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now.
326
+ * @param {Array<string>} itemIds The ids of the items to play, comma delimited.
327
+ * @param {number} [startPositionTicks] The starting position of the first item.
328
+ * @param {string} [mediaSourceId] Optional. The media source id.
329
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to play.
330
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to play.
331
+ * @param {number} [startIndex] Optional. The start index.
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ play: function (sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options) {
336
+ if (options === void 0) { options = {}; }
337
+ return __awaiter(_this, void 0, void 0, function () {
338
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
339
+ return __generator(this, function (_a) {
340
+ switch (_a.label) {
341
+ case 0:
342
+ // verify required parameter 'sessionId' is not null or undefined
343
+ (0, common_1.assertParamExists)('play', 'sessionId', sessionId);
344
+ // verify required parameter 'playCommand' is not null or undefined
345
+ (0, common_1.assertParamExists)('play', 'playCommand', playCommand);
346
+ // verify required parameter 'itemIds' is not null or undefined
347
+ (0, common_1.assertParamExists)('play', 'itemIds', itemIds);
348
+ localVarPath = "/Sessions/{sessionId}/Playing"
349
+ .replace("{".concat("sessionId", "}"), encodeURIComponent(String(sessionId)));
350
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
351
+ if (configuration) {
352
+ baseOptions = configuration.baseOptions;
353
+ }
354
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
355
+ localVarHeaderParameter = {};
356
+ localVarQueryParameter = {};
357
+ // authentication CustomAuthentication required
358
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
359
+ case 1:
360
+ // authentication CustomAuthentication required
361
+ _a.sent();
362
+ if (playCommand !== undefined) {
363
+ localVarQueryParameter['playCommand'] = playCommand;
364
+ }
365
+ if (itemIds) {
366
+ localVarQueryParameter['itemIds'] = itemIds;
367
+ }
368
+ if (startPositionTicks !== undefined) {
369
+ localVarQueryParameter['startPositionTicks'] = startPositionTicks;
370
+ }
371
+ if (mediaSourceId !== undefined) {
372
+ localVarQueryParameter['mediaSourceId'] = mediaSourceId;
373
+ }
374
+ if (audioStreamIndex !== undefined) {
375
+ localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
376
+ }
377
+ if (subtitleStreamIndex !== undefined) {
378
+ localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
379
+ }
380
+ if (startIndex !== undefined) {
381
+ localVarQueryParameter['startIndex'] = startIndex;
382
+ }
383
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
384
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
385
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
386
+ return [2 /*return*/, {
387
+ url: (0, common_1.toPathString)(localVarUrlObj),
388
+ options: localVarRequestOptions,
389
+ }];
390
+ }
391
+ });
392
+ });
393
+ },
394
+ /**
395
+ *
396
+ * @summary Updates capabilities for a device.
397
+ * @param {string} [id] The session id.
398
+ * @param {Array<string>} [playableMediaTypes] A list of playable media types, comma delimited. Audio, Video, Book, Photo.
399
+ * @param {Array<GeneralCommandType>} [supportedCommands] A list of supported remote control commands, comma delimited.
400
+ * @param {boolean} [supportsMediaControl] Determines whether media can be played remotely..
401
+ * @param {boolean} [supportsSync] Determines whether sync is supported.
402
+ * @param {boolean} [supportsPersistentIdentifier] Determines whether the device supports a unique identifier.
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ */
406
+ postCapabilities: function (id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options) {
407
+ if (options === void 0) { options = {}; }
408
+ return __awaiter(_this, void 0, void 0, function () {
409
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
410
+ return __generator(this, function (_a) {
411
+ switch (_a.label) {
412
+ case 0:
413
+ localVarPath = "/Sessions/Capabilities";
414
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
415
+ if (configuration) {
416
+ baseOptions = configuration.baseOptions;
417
+ }
418
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
419
+ localVarHeaderParameter = {};
420
+ localVarQueryParameter = {};
421
+ // authentication CustomAuthentication required
422
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
423
+ case 1:
424
+ // authentication CustomAuthentication required
425
+ _a.sent();
426
+ if (id !== undefined) {
427
+ localVarQueryParameter['id'] = id;
428
+ }
429
+ if (playableMediaTypes) {
430
+ localVarQueryParameter['playableMediaTypes'] = playableMediaTypes;
431
+ }
432
+ if (supportedCommands) {
433
+ localVarQueryParameter['supportedCommands'] = supportedCommands;
434
+ }
435
+ if (supportsMediaControl !== undefined) {
436
+ localVarQueryParameter['supportsMediaControl'] = supportsMediaControl;
437
+ }
438
+ if (supportsSync !== undefined) {
439
+ localVarQueryParameter['supportsSync'] = supportsSync;
440
+ }
441
+ if (supportsPersistentIdentifier !== undefined) {
442
+ localVarQueryParameter['supportsPersistentIdentifier'] = supportsPersistentIdentifier;
443
+ }
444
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
445
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
446
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
447
+ return [2 /*return*/, {
448
+ url: (0, common_1.toPathString)(localVarUrlObj),
449
+ options: localVarRequestOptions,
450
+ }];
451
+ }
452
+ });
453
+ });
454
+ },
455
+ /**
456
+ *
457
+ * @summary Updates capabilities for a device.
458
+ * @param {ClientCapabilitiesDto} clientCapabilitiesDto The MediaBrowser.Model.Session.ClientCapabilities.
459
+ * @param {string} [id] The session id.
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ postFullCapabilities: function (clientCapabilitiesDto, id, options) {
464
+ if (options === void 0) { options = {}; }
465
+ return __awaiter(_this, void 0, void 0, function () {
466
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
467
+ return __generator(this, function (_a) {
468
+ switch (_a.label) {
469
+ case 0:
470
+ // verify required parameter 'clientCapabilitiesDto' is not null or undefined
471
+ (0, common_1.assertParamExists)('postFullCapabilities', 'clientCapabilitiesDto', clientCapabilitiesDto);
472
+ localVarPath = "/Sessions/Capabilities/Full";
473
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
474
+ if (configuration) {
475
+ baseOptions = configuration.baseOptions;
476
+ }
477
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
478
+ localVarHeaderParameter = {};
479
+ localVarQueryParameter = {};
480
+ // authentication CustomAuthentication required
481
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
482
+ case 1:
483
+ // authentication CustomAuthentication required
484
+ _a.sent();
485
+ if (id !== undefined) {
486
+ localVarQueryParameter['id'] = id;
487
+ }
488
+ localVarHeaderParameter['Content-Type'] = 'application/json';
489
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
490
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
491
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
492
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientCapabilitiesDto, localVarRequestOptions, configuration);
493
+ return [2 /*return*/, {
494
+ url: (0, common_1.toPathString)(localVarUrlObj),
495
+ options: localVarRequestOptions,
496
+ }];
497
+ }
498
+ });
499
+ });
500
+ },
501
+ /**
502
+ *
503
+ * @summary Removes an additional user from a session.
504
+ * @param {string} sessionId The session id.
505
+ * @param {string} userId The user id.
506
+ * @param {*} [options] Override http request option.
507
+ * @throws {RequiredError}
508
+ */
509
+ removeUserFromSession: function (sessionId, userId, options) {
510
+ if (options === void 0) { options = {}; }
511
+ return __awaiter(_this, void 0, void 0, function () {
512
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
513
+ return __generator(this, function (_a) {
514
+ switch (_a.label) {
515
+ case 0:
516
+ // verify required parameter 'sessionId' is not null or undefined
517
+ (0, common_1.assertParamExists)('removeUserFromSession', 'sessionId', sessionId);
518
+ // verify required parameter 'userId' is not null or undefined
519
+ (0, common_1.assertParamExists)('removeUserFromSession', 'userId', userId);
520
+ localVarPath = "/Sessions/{sessionId}/User/{userId}"
521
+ .replace("{".concat("sessionId", "}"), encodeURIComponent(String(sessionId)))
522
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
523
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
524
+ if (configuration) {
525
+ baseOptions = configuration.baseOptions;
526
+ }
527
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
528
+ localVarHeaderParameter = {};
529
+ localVarQueryParameter = {};
530
+ // authentication CustomAuthentication required
531
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
532
+ case 1:
533
+ // authentication CustomAuthentication required
534
+ _a.sent();
535
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
536
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
537
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
538
+ return [2 /*return*/, {
539
+ url: (0, common_1.toPathString)(localVarUrlObj),
540
+ options: localVarRequestOptions,
541
+ }];
542
+ }
543
+ });
544
+ });
545
+ },
546
+ /**
547
+ *
548
+ * @summary Reports that a session has ended.
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ */
552
+ reportSessionEnded: function (options) {
553
+ if (options === void 0) { options = {}; }
554
+ return __awaiter(_this, void 0, void 0, function () {
555
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
556
+ return __generator(this, function (_a) {
557
+ switch (_a.label) {
558
+ case 0:
559
+ localVarPath = "/Sessions/Logout";
560
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
561
+ if (configuration) {
562
+ baseOptions = configuration.baseOptions;
563
+ }
564
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
565
+ localVarHeaderParameter = {};
566
+ localVarQueryParameter = {};
567
+ // authentication CustomAuthentication required
568
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
569
+ case 1:
570
+ // authentication CustomAuthentication required
571
+ _a.sent();
572
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
573
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
574
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
575
+ return [2 /*return*/, {
576
+ url: (0, common_1.toPathString)(localVarUrlObj),
577
+ options: localVarRequestOptions,
578
+ }];
579
+ }
580
+ });
581
+ });
582
+ },
583
+ /**
584
+ *
585
+ * @summary Reports that a session is viewing an item.
586
+ * @param {string} itemId The item id.
587
+ * @param {string} [sessionId] The session id.
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ reportViewing: function (itemId, sessionId, options) {
592
+ if (options === void 0) { options = {}; }
593
+ return __awaiter(_this, void 0, void 0, function () {
594
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
595
+ return __generator(this, function (_a) {
596
+ switch (_a.label) {
597
+ case 0:
598
+ // verify required parameter 'itemId' is not null or undefined
599
+ (0, common_1.assertParamExists)('reportViewing', 'itemId', itemId);
600
+ localVarPath = "/Sessions/Viewing";
601
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
602
+ if (configuration) {
603
+ baseOptions = configuration.baseOptions;
604
+ }
605
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
606
+ localVarHeaderParameter = {};
607
+ localVarQueryParameter = {};
608
+ // authentication CustomAuthentication required
609
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
610
+ case 1:
611
+ // authentication CustomAuthentication required
612
+ _a.sent();
613
+ if (sessionId !== undefined) {
614
+ localVarQueryParameter['sessionId'] = sessionId;
615
+ }
616
+ if (itemId !== undefined) {
617
+ localVarQueryParameter['itemId'] = itemId;
618
+ }
619
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
620
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
621
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
622
+ return [2 /*return*/, {
623
+ url: (0, common_1.toPathString)(localVarUrlObj),
624
+ options: localVarRequestOptions,
625
+ }];
626
+ }
627
+ });
628
+ });
629
+ },
630
+ /**
631
+ *
632
+ * @summary Issues a full general command to a client.
633
+ * @param {string} sessionId The session id.
634
+ * @param {GeneralCommand} generalCommand The MediaBrowser.Model.Session.GeneralCommand.
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ */
638
+ sendFullGeneralCommand: function (sessionId, generalCommand, options) {
639
+ if (options === void 0) { options = {}; }
640
+ return __awaiter(_this, void 0, void 0, function () {
641
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
642
+ return __generator(this, function (_a) {
643
+ switch (_a.label) {
644
+ case 0:
645
+ // verify required parameter 'sessionId' is not null or undefined
646
+ (0, common_1.assertParamExists)('sendFullGeneralCommand', 'sessionId', sessionId);
647
+ // verify required parameter 'generalCommand' is not null or undefined
648
+ (0, common_1.assertParamExists)('sendFullGeneralCommand', 'generalCommand', generalCommand);
649
+ localVarPath = "/Sessions/{sessionId}/Command"
650
+ .replace("{".concat("sessionId", "}"), encodeURIComponent(String(sessionId)));
651
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
652
+ if (configuration) {
653
+ baseOptions = configuration.baseOptions;
654
+ }
655
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
656
+ localVarHeaderParameter = {};
657
+ localVarQueryParameter = {};
658
+ // authentication CustomAuthentication required
659
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
660
+ case 1:
661
+ // authentication CustomAuthentication required
662
+ _a.sent();
663
+ localVarHeaderParameter['Content-Type'] = 'application/json';
664
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
665
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
666
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
667
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(generalCommand, localVarRequestOptions, configuration);
668
+ return [2 /*return*/, {
669
+ url: (0, common_1.toPathString)(localVarUrlObj),
670
+ options: localVarRequestOptions,
671
+ }];
672
+ }
673
+ });
674
+ });
675
+ },
676
+ /**
677
+ *
678
+ * @summary Issues a general command to a client.
679
+ * @param {string} sessionId The session id.
680
+ * @param {GeneralCommandType} command The command to send.
681
+ * @param {*} [options] Override http request option.
682
+ * @throws {RequiredError}
683
+ */
684
+ sendGeneralCommand: function (sessionId, command, options) {
685
+ if (options === void 0) { options = {}; }
686
+ return __awaiter(_this, void 0, void 0, function () {
687
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
688
+ return __generator(this, function (_a) {
689
+ switch (_a.label) {
690
+ case 0:
691
+ // verify required parameter 'sessionId' is not null or undefined
692
+ (0, common_1.assertParamExists)('sendGeneralCommand', 'sessionId', sessionId);
693
+ // verify required parameter 'command' is not null or undefined
694
+ (0, common_1.assertParamExists)('sendGeneralCommand', 'command', command);
695
+ localVarPath = "/Sessions/{sessionId}/Command/{command}"
696
+ .replace("{".concat("sessionId", "}"), encodeURIComponent(String(sessionId)))
697
+ .replace("{".concat("command", "}"), encodeURIComponent(String(command)));
698
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
699
+ if (configuration) {
700
+ baseOptions = configuration.baseOptions;
701
+ }
702
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
703
+ localVarHeaderParameter = {};
704
+ localVarQueryParameter = {};
705
+ // authentication CustomAuthentication required
706
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
707
+ case 1:
708
+ // authentication CustomAuthentication required
709
+ _a.sent();
710
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
711
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
712
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
713
+ return [2 /*return*/, {
714
+ url: (0, common_1.toPathString)(localVarUrlObj),
715
+ options: localVarRequestOptions,
716
+ }];
717
+ }
718
+ });
719
+ });
720
+ },
721
+ /**
722
+ *
723
+ * @summary Issues a command to a client to display a message to the user.
724
+ * @param {string} sessionId The session id.
725
+ * @param {MessageCommand} messageCommand The MediaBrowser.Model.Session.MessageCommand object containing Header, Message Text, and TimeoutMs.
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ */
729
+ sendMessageCommand: function (sessionId, messageCommand, options) {
730
+ if (options === void 0) { options = {}; }
731
+ return __awaiter(_this, void 0, void 0, function () {
732
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
733
+ return __generator(this, function (_a) {
734
+ switch (_a.label) {
735
+ case 0:
736
+ // verify required parameter 'sessionId' is not null or undefined
737
+ (0, common_1.assertParamExists)('sendMessageCommand', 'sessionId', sessionId);
738
+ // verify required parameter 'messageCommand' is not null or undefined
739
+ (0, common_1.assertParamExists)('sendMessageCommand', 'messageCommand', messageCommand);
740
+ localVarPath = "/Sessions/{sessionId}/Message"
741
+ .replace("{".concat("sessionId", "}"), encodeURIComponent(String(sessionId)));
742
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
743
+ if (configuration) {
744
+ baseOptions = configuration.baseOptions;
745
+ }
746
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
747
+ localVarHeaderParameter = {};
748
+ localVarQueryParameter = {};
749
+ // authentication CustomAuthentication required
750
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
751
+ case 1:
752
+ // authentication CustomAuthentication required
753
+ _a.sent();
754
+ localVarHeaderParameter['Content-Type'] = 'application/json';
755
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
756
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
757
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
758
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(messageCommand, localVarRequestOptions, configuration);
759
+ return [2 /*return*/, {
760
+ url: (0, common_1.toPathString)(localVarUrlObj),
761
+ options: localVarRequestOptions,
762
+ }];
763
+ }
764
+ });
765
+ });
766
+ },
767
+ /**
768
+ *
769
+ * @summary Issues a playstate command to a client.
770
+ * @param {string} sessionId The session id.
771
+ * @param {PlaystateCommand} command The MediaBrowser.Model.Session.PlaystateCommand.
772
+ * @param {number} [seekPositionTicks] The optional position ticks.
773
+ * @param {string} [controllingUserId] The optional controlling user id.
774
+ * @param {*} [options] Override http request option.
775
+ * @throws {RequiredError}
776
+ */
777
+ sendPlaystateCommand: function (sessionId, command, seekPositionTicks, controllingUserId, options) {
778
+ if (options === void 0) { options = {}; }
779
+ return __awaiter(_this, void 0, void 0, function () {
780
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
781
+ return __generator(this, function (_a) {
782
+ switch (_a.label) {
783
+ case 0:
784
+ // verify required parameter 'sessionId' is not null or undefined
785
+ (0, common_1.assertParamExists)('sendPlaystateCommand', 'sessionId', sessionId);
786
+ // verify required parameter 'command' is not null or undefined
787
+ (0, common_1.assertParamExists)('sendPlaystateCommand', 'command', command);
788
+ localVarPath = "/Sessions/{sessionId}/Playing/{command}"
789
+ .replace("{".concat("sessionId", "}"), encodeURIComponent(String(sessionId)))
790
+ .replace("{".concat("command", "}"), encodeURIComponent(String(command)));
791
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
792
+ if (configuration) {
793
+ baseOptions = configuration.baseOptions;
794
+ }
795
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
796
+ localVarHeaderParameter = {};
797
+ localVarQueryParameter = {};
798
+ // authentication CustomAuthentication required
799
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
800
+ case 1:
801
+ // authentication CustomAuthentication required
802
+ _a.sent();
803
+ if (seekPositionTicks !== undefined) {
804
+ localVarQueryParameter['seekPositionTicks'] = seekPositionTicks;
805
+ }
806
+ if (controllingUserId !== undefined) {
807
+ localVarQueryParameter['controllingUserId'] = controllingUserId;
808
+ }
809
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
810
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
811
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
812
+ return [2 /*return*/, {
813
+ url: (0, common_1.toPathString)(localVarUrlObj),
814
+ options: localVarRequestOptions,
815
+ }];
816
+ }
817
+ });
818
+ });
819
+ },
820
+ /**
821
+ *
822
+ * @summary Issues a system command to a client.
823
+ * @param {string} sessionId The session id.
824
+ * @param {GeneralCommandType} command The command to send.
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ */
828
+ sendSystemCommand: function (sessionId, command, options) {
829
+ if (options === void 0) { options = {}; }
830
+ return __awaiter(_this, void 0, void 0, function () {
831
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
832
+ return __generator(this, function (_a) {
833
+ switch (_a.label) {
834
+ case 0:
835
+ // verify required parameter 'sessionId' is not null or undefined
836
+ (0, common_1.assertParamExists)('sendSystemCommand', 'sessionId', sessionId);
837
+ // verify required parameter 'command' is not null or undefined
838
+ (0, common_1.assertParamExists)('sendSystemCommand', 'command', command);
839
+ localVarPath = "/Sessions/{sessionId}/System/{command}"
840
+ .replace("{".concat("sessionId", "}"), encodeURIComponent(String(sessionId)))
841
+ .replace("{".concat("command", "}"), encodeURIComponent(String(command)));
842
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
843
+ if (configuration) {
844
+ baseOptions = configuration.baseOptions;
845
+ }
846
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
847
+ localVarHeaderParameter = {};
848
+ localVarQueryParameter = {};
849
+ // authentication CustomAuthentication required
850
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
851
+ case 1:
852
+ // authentication CustomAuthentication required
853
+ _a.sent();
854
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
855
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
856
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
857
+ return [2 /*return*/, {
858
+ url: (0, common_1.toPathString)(localVarUrlObj),
859
+ options: localVarRequestOptions,
860
+ }];
861
+ }
862
+ });
863
+ });
864
+ },
865
+ };
866
+ };
867
+ exports.SessionApiAxiosParamCreator = SessionApiAxiosParamCreator;
868
+ /**
869
+ * SessionApi - functional programming interface
870
+ * @export
871
+ */
872
+ var SessionApiFp = function (configuration) {
873
+ var localVarAxiosParamCreator = (0, exports.SessionApiAxiosParamCreator)(configuration);
874
+ return {
875
+ /**
876
+ *
877
+ * @summary Adds an additional user to a session.
878
+ * @param {string} sessionId The session id.
879
+ * @param {string} userId The user id.
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ */
883
+ addUserToSession: function (sessionId, userId, options) {
884
+ return __awaiter(this, void 0, void 0, function () {
885
+ var localVarAxiosArgs;
886
+ return __generator(this, function (_a) {
887
+ switch (_a.label) {
888
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addUserToSession(sessionId, userId, options)];
889
+ case 1:
890
+ localVarAxiosArgs = _a.sent();
891
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
892
+ }
893
+ });
894
+ });
895
+ },
896
+ /**
897
+ *
898
+ * @summary Instructs a session to browse to an item or view.
899
+ * @param {string} sessionId The session Id.
900
+ * @param {BaseItemKind} itemType The type of item to browse to.
901
+ * @param {string} itemId The Id of the item.
902
+ * @param {string} itemName The name of the item.
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ */
906
+ displayContent: function (sessionId, itemType, itemId, itemName, options) {
907
+ return __awaiter(this, void 0, void 0, function () {
908
+ var localVarAxiosArgs;
909
+ return __generator(this, function (_a) {
910
+ switch (_a.label) {
911
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.displayContent(sessionId, itemType, itemId, itemName, options)];
912
+ case 1:
913
+ localVarAxiosArgs = _a.sent();
914
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
915
+ }
916
+ });
917
+ });
918
+ },
919
+ /**
920
+ *
921
+ * @summary Get all auth providers.
922
+ * @param {*} [options] Override http request option.
923
+ * @throws {RequiredError}
924
+ */
925
+ getAuthProviders: function (options) {
926
+ return __awaiter(this, void 0, void 0, function () {
927
+ var localVarAxiosArgs;
928
+ return __generator(this, function (_a) {
929
+ switch (_a.label) {
930
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAuthProviders(options)];
931
+ case 1:
932
+ localVarAxiosArgs = _a.sent();
933
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
934
+ }
935
+ });
936
+ });
937
+ },
938
+ /**
939
+ *
940
+ * @summary Get all password reset providers.
941
+ * @param {*} [options] Override http request option.
942
+ * @throws {RequiredError}
943
+ */
944
+ getPasswordResetProviders: function (options) {
945
+ return __awaiter(this, void 0, void 0, function () {
946
+ var localVarAxiosArgs;
947
+ return __generator(this, function (_a) {
948
+ switch (_a.label) {
949
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPasswordResetProviders(options)];
950
+ case 1:
951
+ localVarAxiosArgs = _a.sent();
952
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
953
+ }
954
+ });
955
+ });
956
+ },
957
+ /**
958
+ *
959
+ * @summary Gets a list of sessions.
960
+ * @param {string} [controllableByUserId] Filter by sessions that a given user is allowed to remote control.
961
+ * @param {string} [deviceId] Filter by device Id.
962
+ * @param {number} [activeWithinSeconds] Optional. Filter by sessions that were active in the last n seconds.
963
+ * @param {*} [options] Override http request option.
964
+ * @throws {RequiredError}
965
+ */
966
+ getSessions: function (controllableByUserId, deviceId, activeWithinSeconds, options) {
967
+ return __awaiter(this, void 0, void 0, function () {
968
+ var localVarAxiosArgs;
969
+ return __generator(this, function (_a) {
970
+ switch (_a.label) {
971
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options)];
972
+ case 1:
973
+ localVarAxiosArgs = _a.sent();
974
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
975
+ }
976
+ });
977
+ });
978
+ },
979
+ /**
980
+ *
981
+ * @summary Instructs a session to play an item.
982
+ * @param {string} sessionId The session id.
983
+ * @param {PlayCommand} playCommand The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now.
984
+ * @param {Array<string>} itemIds The ids of the items to play, comma delimited.
985
+ * @param {number} [startPositionTicks] The starting position of the first item.
986
+ * @param {string} [mediaSourceId] Optional. The media source id.
987
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to play.
988
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to play.
989
+ * @param {number} [startIndex] Optional. The start index.
990
+ * @param {*} [options] Override http request option.
991
+ * @throws {RequiredError}
992
+ */
993
+ play: function (sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options) {
994
+ return __awaiter(this, void 0, void 0, function () {
995
+ var localVarAxiosArgs;
996
+ return __generator(this, function (_a) {
997
+ switch (_a.label) {
998
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options)];
999
+ case 1:
1000
+ localVarAxiosArgs = _a.sent();
1001
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1002
+ }
1003
+ });
1004
+ });
1005
+ },
1006
+ /**
1007
+ *
1008
+ * @summary Updates capabilities for a device.
1009
+ * @param {string} [id] The session id.
1010
+ * @param {Array<string>} [playableMediaTypes] A list of playable media types, comma delimited. Audio, Video, Book, Photo.
1011
+ * @param {Array<GeneralCommandType>} [supportedCommands] A list of supported remote control commands, comma delimited.
1012
+ * @param {boolean} [supportsMediaControl] Determines whether media can be played remotely..
1013
+ * @param {boolean} [supportsSync] Determines whether sync is supported.
1014
+ * @param {boolean} [supportsPersistentIdentifier] Determines whether the device supports a unique identifier.
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ */
1018
+ postCapabilities: function (id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options) {
1019
+ return __awaiter(this, void 0, void 0, function () {
1020
+ var localVarAxiosArgs;
1021
+ return __generator(this, function (_a) {
1022
+ switch (_a.label) {
1023
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options)];
1024
+ case 1:
1025
+ localVarAxiosArgs = _a.sent();
1026
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1027
+ }
1028
+ });
1029
+ });
1030
+ },
1031
+ /**
1032
+ *
1033
+ * @summary Updates capabilities for a device.
1034
+ * @param {ClientCapabilitiesDto} clientCapabilitiesDto The MediaBrowser.Model.Session.ClientCapabilities.
1035
+ * @param {string} [id] The session id.
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ */
1039
+ postFullCapabilities: function (clientCapabilitiesDto, id, options) {
1040
+ return __awaiter(this, void 0, void 0, function () {
1041
+ var localVarAxiosArgs;
1042
+ return __generator(this, function (_a) {
1043
+ switch (_a.label) {
1044
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postFullCapabilities(clientCapabilitiesDto, id, options)];
1045
+ case 1:
1046
+ localVarAxiosArgs = _a.sent();
1047
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1048
+ }
1049
+ });
1050
+ });
1051
+ },
1052
+ /**
1053
+ *
1054
+ * @summary Removes an additional user from a session.
1055
+ * @param {string} sessionId The session id.
1056
+ * @param {string} userId The user id.
1057
+ * @param {*} [options] Override http request option.
1058
+ * @throws {RequiredError}
1059
+ */
1060
+ removeUserFromSession: function (sessionId, userId, options) {
1061
+ return __awaiter(this, void 0, void 0, function () {
1062
+ var localVarAxiosArgs;
1063
+ return __generator(this, function (_a) {
1064
+ switch (_a.label) {
1065
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeUserFromSession(sessionId, userId, options)];
1066
+ case 1:
1067
+ localVarAxiosArgs = _a.sent();
1068
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1069
+ }
1070
+ });
1071
+ });
1072
+ },
1073
+ /**
1074
+ *
1075
+ * @summary Reports that a session has ended.
1076
+ * @param {*} [options] Override http request option.
1077
+ * @throws {RequiredError}
1078
+ */
1079
+ reportSessionEnded: function (options) {
1080
+ return __awaiter(this, void 0, void 0, function () {
1081
+ var localVarAxiosArgs;
1082
+ return __generator(this, function (_a) {
1083
+ switch (_a.label) {
1084
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.reportSessionEnded(options)];
1085
+ case 1:
1086
+ localVarAxiosArgs = _a.sent();
1087
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1088
+ }
1089
+ });
1090
+ });
1091
+ },
1092
+ /**
1093
+ *
1094
+ * @summary Reports that a session is viewing an item.
1095
+ * @param {string} itemId The item id.
1096
+ * @param {string} [sessionId] The session id.
1097
+ * @param {*} [options] Override http request option.
1098
+ * @throws {RequiredError}
1099
+ */
1100
+ reportViewing: function (itemId, sessionId, options) {
1101
+ return __awaiter(this, void 0, void 0, function () {
1102
+ var localVarAxiosArgs;
1103
+ return __generator(this, function (_a) {
1104
+ switch (_a.label) {
1105
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.reportViewing(itemId, sessionId, options)];
1106
+ case 1:
1107
+ localVarAxiosArgs = _a.sent();
1108
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1109
+ }
1110
+ });
1111
+ });
1112
+ },
1113
+ /**
1114
+ *
1115
+ * @summary Issues a full general command to a client.
1116
+ * @param {string} sessionId The session id.
1117
+ * @param {GeneralCommand} generalCommand The MediaBrowser.Model.Session.GeneralCommand.
1118
+ * @param {*} [options] Override http request option.
1119
+ * @throws {RequiredError}
1120
+ */
1121
+ sendFullGeneralCommand: function (sessionId, generalCommand, options) {
1122
+ return __awaiter(this, void 0, void 0, function () {
1123
+ var localVarAxiosArgs;
1124
+ return __generator(this, function (_a) {
1125
+ switch (_a.label) {
1126
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendFullGeneralCommand(sessionId, generalCommand, options)];
1127
+ case 1:
1128
+ localVarAxiosArgs = _a.sent();
1129
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1130
+ }
1131
+ });
1132
+ });
1133
+ },
1134
+ /**
1135
+ *
1136
+ * @summary Issues a general command to a client.
1137
+ * @param {string} sessionId The session id.
1138
+ * @param {GeneralCommandType} command The command to send.
1139
+ * @param {*} [options] Override http request option.
1140
+ * @throws {RequiredError}
1141
+ */
1142
+ sendGeneralCommand: function (sessionId, command, options) {
1143
+ return __awaiter(this, void 0, void 0, function () {
1144
+ var localVarAxiosArgs;
1145
+ return __generator(this, function (_a) {
1146
+ switch (_a.label) {
1147
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendGeneralCommand(sessionId, command, options)];
1148
+ case 1:
1149
+ localVarAxiosArgs = _a.sent();
1150
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1151
+ }
1152
+ });
1153
+ });
1154
+ },
1155
+ /**
1156
+ *
1157
+ * @summary Issues a command to a client to display a message to the user.
1158
+ * @param {string} sessionId The session id.
1159
+ * @param {MessageCommand} messageCommand The MediaBrowser.Model.Session.MessageCommand object containing Header, Message Text, and TimeoutMs.
1160
+ * @param {*} [options] Override http request option.
1161
+ * @throws {RequiredError}
1162
+ */
1163
+ sendMessageCommand: function (sessionId, messageCommand, options) {
1164
+ return __awaiter(this, void 0, void 0, function () {
1165
+ var localVarAxiosArgs;
1166
+ return __generator(this, function (_a) {
1167
+ switch (_a.label) {
1168
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendMessageCommand(sessionId, messageCommand, options)];
1169
+ case 1:
1170
+ localVarAxiosArgs = _a.sent();
1171
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1172
+ }
1173
+ });
1174
+ });
1175
+ },
1176
+ /**
1177
+ *
1178
+ * @summary Issues a playstate command to a client.
1179
+ * @param {string} sessionId The session id.
1180
+ * @param {PlaystateCommand} command The MediaBrowser.Model.Session.PlaystateCommand.
1181
+ * @param {number} [seekPositionTicks] The optional position ticks.
1182
+ * @param {string} [controllingUserId] The optional controlling user id.
1183
+ * @param {*} [options] Override http request option.
1184
+ * @throws {RequiredError}
1185
+ */
1186
+ sendPlaystateCommand: function (sessionId, command, seekPositionTicks, controllingUserId, options) {
1187
+ return __awaiter(this, void 0, void 0, function () {
1188
+ var localVarAxiosArgs;
1189
+ return __generator(this, function (_a) {
1190
+ switch (_a.label) {
1191
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options)];
1192
+ case 1:
1193
+ localVarAxiosArgs = _a.sent();
1194
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1195
+ }
1196
+ });
1197
+ });
1198
+ },
1199
+ /**
1200
+ *
1201
+ * @summary Issues a system command to a client.
1202
+ * @param {string} sessionId The session id.
1203
+ * @param {GeneralCommandType} command The command to send.
1204
+ * @param {*} [options] Override http request option.
1205
+ * @throws {RequiredError}
1206
+ */
1207
+ sendSystemCommand: function (sessionId, command, options) {
1208
+ return __awaiter(this, void 0, void 0, function () {
1209
+ var localVarAxiosArgs;
1210
+ return __generator(this, function (_a) {
1211
+ switch (_a.label) {
1212
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendSystemCommand(sessionId, command, options)];
1213
+ case 1:
1214
+ localVarAxiosArgs = _a.sent();
1215
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1216
+ }
1217
+ });
1218
+ });
1219
+ },
1220
+ };
1221
+ };
1222
+ exports.SessionApiFp = SessionApiFp;
1223
+ /**
1224
+ * SessionApi - factory interface
1225
+ * @export
1226
+ */
1227
+ var SessionApiFactory = function (configuration, basePath, axios) {
1228
+ var localVarFp = (0, exports.SessionApiFp)(configuration);
1229
+ return {
1230
+ /**
1231
+ *
1232
+ * @summary Adds an additional user to a session.
1233
+ * @param {string} sessionId The session id.
1234
+ * @param {string} userId The user id.
1235
+ * @param {*} [options] Override http request option.
1236
+ * @throws {RequiredError}
1237
+ */
1238
+ addUserToSession: function (sessionId, userId, options) {
1239
+ return localVarFp.addUserToSession(sessionId, userId, options).then(function (request) { return request(axios, basePath); });
1240
+ },
1241
+ /**
1242
+ *
1243
+ * @summary Instructs a session to browse to an item or view.
1244
+ * @param {string} sessionId The session Id.
1245
+ * @param {BaseItemKind} itemType The type of item to browse to.
1246
+ * @param {string} itemId The Id of the item.
1247
+ * @param {string} itemName The name of the item.
1248
+ * @param {*} [options] Override http request option.
1249
+ * @throws {RequiredError}
1250
+ */
1251
+ displayContent: function (sessionId, itemType, itemId, itemName, options) {
1252
+ return localVarFp.displayContent(sessionId, itemType, itemId, itemName, options).then(function (request) { return request(axios, basePath); });
1253
+ },
1254
+ /**
1255
+ *
1256
+ * @summary Get all auth providers.
1257
+ * @param {*} [options] Override http request option.
1258
+ * @throws {RequiredError}
1259
+ */
1260
+ getAuthProviders: function (options) {
1261
+ return localVarFp.getAuthProviders(options).then(function (request) { return request(axios, basePath); });
1262
+ },
1263
+ /**
1264
+ *
1265
+ * @summary Get all password reset providers.
1266
+ * @param {*} [options] Override http request option.
1267
+ * @throws {RequiredError}
1268
+ */
1269
+ getPasswordResetProviders: function (options) {
1270
+ return localVarFp.getPasswordResetProviders(options).then(function (request) { return request(axios, basePath); });
1271
+ },
1272
+ /**
1273
+ *
1274
+ * @summary Gets a list of sessions.
1275
+ * @param {string} [controllableByUserId] Filter by sessions that a given user is allowed to remote control.
1276
+ * @param {string} [deviceId] Filter by device Id.
1277
+ * @param {number} [activeWithinSeconds] Optional. Filter by sessions that were active in the last n seconds.
1278
+ * @param {*} [options] Override http request option.
1279
+ * @throws {RequiredError}
1280
+ */
1281
+ getSessions: function (controllableByUserId, deviceId, activeWithinSeconds, options) {
1282
+ return localVarFp.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options).then(function (request) { return request(axios, basePath); });
1283
+ },
1284
+ /**
1285
+ *
1286
+ * @summary Instructs a session to play an item.
1287
+ * @param {string} sessionId The session id.
1288
+ * @param {PlayCommand} playCommand The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now.
1289
+ * @param {Array<string>} itemIds The ids of the items to play, comma delimited.
1290
+ * @param {number} [startPositionTicks] The starting position of the first item.
1291
+ * @param {string} [mediaSourceId] Optional. The media source id.
1292
+ * @param {number} [audioStreamIndex] Optional. The index of the audio stream to play.
1293
+ * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to play.
1294
+ * @param {number} [startIndex] Optional. The start index.
1295
+ * @param {*} [options] Override http request option.
1296
+ * @throws {RequiredError}
1297
+ */
1298
+ play: function (sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options) {
1299
+ return localVarFp.play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options).then(function (request) { return request(axios, basePath); });
1300
+ },
1301
+ /**
1302
+ *
1303
+ * @summary Updates capabilities for a device.
1304
+ * @param {string} [id] The session id.
1305
+ * @param {Array<string>} [playableMediaTypes] A list of playable media types, comma delimited. Audio, Video, Book, Photo.
1306
+ * @param {Array<GeneralCommandType>} [supportedCommands] A list of supported remote control commands, comma delimited.
1307
+ * @param {boolean} [supportsMediaControl] Determines whether media can be played remotely..
1308
+ * @param {boolean} [supportsSync] Determines whether sync is supported.
1309
+ * @param {boolean} [supportsPersistentIdentifier] Determines whether the device supports a unique identifier.
1310
+ * @param {*} [options] Override http request option.
1311
+ * @throws {RequiredError}
1312
+ */
1313
+ postCapabilities: function (id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options) {
1314
+ return localVarFp.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options).then(function (request) { return request(axios, basePath); });
1315
+ },
1316
+ /**
1317
+ *
1318
+ * @summary Updates capabilities for a device.
1319
+ * @param {ClientCapabilitiesDto} clientCapabilitiesDto The MediaBrowser.Model.Session.ClientCapabilities.
1320
+ * @param {string} [id] The session id.
1321
+ * @param {*} [options] Override http request option.
1322
+ * @throws {RequiredError}
1323
+ */
1324
+ postFullCapabilities: function (clientCapabilitiesDto, id, options) {
1325
+ return localVarFp.postFullCapabilities(clientCapabilitiesDto, id, options).then(function (request) { return request(axios, basePath); });
1326
+ },
1327
+ /**
1328
+ *
1329
+ * @summary Removes an additional user from a session.
1330
+ * @param {string} sessionId The session id.
1331
+ * @param {string} userId The user id.
1332
+ * @param {*} [options] Override http request option.
1333
+ * @throws {RequiredError}
1334
+ */
1335
+ removeUserFromSession: function (sessionId, userId, options) {
1336
+ return localVarFp.removeUserFromSession(sessionId, userId, options).then(function (request) { return request(axios, basePath); });
1337
+ },
1338
+ /**
1339
+ *
1340
+ * @summary Reports that a session has ended.
1341
+ * @param {*} [options] Override http request option.
1342
+ * @throws {RequiredError}
1343
+ */
1344
+ reportSessionEnded: function (options) {
1345
+ return localVarFp.reportSessionEnded(options).then(function (request) { return request(axios, basePath); });
1346
+ },
1347
+ /**
1348
+ *
1349
+ * @summary Reports that a session is viewing an item.
1350
+ * @param {string} itemId The item id.
1351
+ * @param {string} [sessionId] The session id.
1352
+ * @param {*} [options] Override http request option.
1353
+ * @throws {RequiredError}
1354
+ */
1355
+ reportViewing: function (itemId, sessionId, options) {
1356
+ return localVarFp.reportViewing(itemId, sessionId, options).then(function (request) { return request(axios, basePath); });
1357
+ },
1358
+ /**
1359
+ *
1360
+ * @summary Issues a full general command to a client.
1361
+ * @param {string} sessionId The session id.
1362
+ * @param {GeneralCommand} generalCommand The MediaBrowser.Model.Session.GeneralCommand.
1363
+ * @param {*} [options] Override http request option.
1364
+ * @throws {RequiredError}
1365
+ */
1366
+ sendFullGeneralCommand: function (sessionId, generalCommand, options) {
1367
+ return localVarFp.sendFullGeneralCommand(sessionId, generalCommand, options).then(function (request) { return request(axios, basePath); });
1368
+ },
1369
+ /**
1370
+ *
1371
+ * @summary Issues a general command to a client.
1372
+ * @param {string} sessionId The session id.
1373
+ * @param {GeneralCommandType} command The command to send.
1374
+ * @param {*} [options] Override http request option.
1375
+ * @throws {RequiredError}
1376
+ */
1377
+ sendGeneralCommand: function (sessionId, command, options) {
1378
+ return localVarFp.sendGeneralCommand(sessionId, command, options).then(function (request) { return request(axios, basePath); });
1379
+ },
1380
+ /**
1381
+ *
1382
+ * @summary Issues a command to a client to display a message to the user.
1383
+ * @param {string} sessionId The session id.
1384
+ * @param {MessageCommand} messageCommand The MediaBrowser.Model.Session.MessageCommand object containing Header, Message Text, and TimeoutMs.
1385
+ * @param {*} [options] Override http request option.
1386
+ * @throws {RequiredError}
1387
+ */
1388
+ sendMessageCommand: function (sessionId, messageCommand, options) {
1389
+ return localVarFp.sendMessageCommand(sessionId, messageCommand, options).then(function (request) { return request(axios, basePath); });
1390
+ },
1391
+ /**
1392
+ *
1393
+ * @summary Issues a playstate command to a client.
1394
+ * @param {string} sessionId The session id.
1395
+ * @param {PlaystateCommand} command The MediaBrowser.Model.Session.PlaystateCommand.
1396
+ * @param {number} [seekPositionTicks] The optional position ticks.
1397
+ * @param {string} [controllingUserId] The optional controlling user id.
1398
+ * @param {*} [options] Override http request option.
1399
+ * @throws {RequiredError}
1400
+ */
1401
+ sendPlaystateCommand: function (sessionId, command, seekPositionTicks, controllingUserId, options) {
1402
+ return localVarFp.sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options).then(function (request) { return request(axios, basePath); });
1403
+ },
1404
+ /**
1405
+ *
1406
+ * @summary Issues a system command to a client.
1407
+ * @param {string} sessionId The session id.
1408
+ * @param {GeneralCommandType} command The command to send.
1409
+ * @param {*} [options] Override http request option.
1410
+ * @throws {RequiredError}
1411
+ */
1412
+ sendSystemCommand: function (sessionId, command, options) {
1413
+ return localVarFp.sendSystemCommand(sessionId, command, options).then(function (request) { return request(axios, basePath); });
1414
+ },
1415
+ };
1416
+ };
1417
+ exports.SessionApiFactory = SessionApiFactory;
1418
+ /**
1419
+ * SessionApi - object-oriented interface
1420
+ * @export
1421
+ * @class SessionApi
1422
+ * @extends {BaseAPI}
1423
+ */
1424
+ var SessionApi = /** @class */ (function (_super) {
1425
+ __extends(SessionApi, _super);
1426
+ function SessionApi() {
1427
+ return _super !== null && _super.apply(this, arguments) || this;
1428
+ }
1429
+ /**
1430
+ *
1431
+ * @summary Adds an additional user to a session.
1432
+ * @param {SessionApiAddUserToSessionRequest} requestParameters Request parameters.
1433
+ * @param {*} [options] Override http request option.
1434
+ * @throws {RequiredError}
1435
+ * @memberof SessionApi
1436
+ */
1437
+ SessionApi.prototype.addUserToSession = function (requestParameters, options) {
1438
+ var _this = this;
1439
+ return (0, exports.SessionApiFp)(this.configuration).addUserToSession(requestParameters.sessionId, requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1440
+ };
1441
+ /**
1442
+ *
1443
+ * @summary Instructs a session to browse to an item or view.
1444
+ * @param {SessionApiDisplayContentRequest} requestParameters Request parameters.
1445
+ * @param {*} [options] Override http request option.
1446
+ * @throws {RequiredError}
1447
+ * @memberof SessionApi
1448
+ */
1449
+ SessionApi.prototype.displayContent = function (requestParameters, options) {
1450
+ var _this = this;
1451
+ return (0, exports.SessionApiFp)(this.configuration).displayContent(requestParameters.sessionId, requestParameters.itemType, requestParameters.itemId, requestParameters.itemName, options).then(function (request) { return request(_this.axios, _this.basePath); });
1452
+ };
1453
+ /**
1454
+ *
1455
+ * @summary Get all auth providers.
1456
+ * @param {*} [options] Override http request option.
1457
+ * @throws {RequiredError}
1458
+ * @memberof SessionApi
1459
+ */
1460
+ SessionApi.prototype.getAuthProviders = function (options) {
1461
+ var _this = this;
1462
+ return (0, exports.SessionApiFp)(this.configuration).getAuthProviders(options).then(function (request) { return request(_this.axios, _this.basePath); });
1463
+ };
1464
+ /**
1465
+ *
1466
+ * @summary Get all password reset providers.
1467
+ * @param {*} [options] Override http request option.
1468
+ * @throws {RequiredError}
1469
+ * @memberof SessionApi
1470
+ */
1471
+ SessionApi.prototype.getPasswordResetProviders = function (options) {
1472
+ var _this = this;
1473
+ return (0, exports.SessionApiFp)(this.configuration).getPasswordResetProviders(options).then(function (request) { return request(_this.axios, _this.basePath); });
1474
+ };
1475
+ /**
1476
+ *
1477
+ * @summary Gets a list of sessions.
1478
+ * @param {SessionApiGetSessionsRequest} requestParameters Request parameters.
1479
+ * @param {*} [options] Override http request option.
1480
+ * @throws {RequiredError}
1481
+ * @memberof SessionApi
1482
+ */
1483
+ SessionApi.prototype.getSessions = function (requestParameters, options) {
1484
+ var _this = this;
1485
+ if (requestParameters === void 0) { requestParameters = {}; }
1486
+ return (0, exports.SessionApiFp)(this.configuration).getSessions(requestParameters.controllableByUserId, requestParameters.deviceId, requestParameters.activeWithinSeconds, options).then(function (request) { return request(_this.axios, _this.basePath); });
1487
+ };
1488
+ /**
1489
+ *
1490
+ * @summary Instructs a session to play an item.
1491
+ * @param {SessionApiPlayRequest} requestParameters Request parameters.
1492
+ * @param {*} [options] Override http request option.
1493
+ * @throws {RequiredError}
1494
+ * @memberof SessionApi
1495
+ */
1496
+ SessionApi.prototype.play = function (requestParameters, options) {
1497
+ var _this = this;
1498
+ return (0, exports.SessionApiFp)(this.configuration).play(requestParameters.sessionId, requestParameters.playCommand, requestParameters.itemIds, requestParameters.startPositionTicks, requestParameters.mediaSourceId, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.startIndex, options).then(function (request) { return request(_this.axios, _this.basePath); });
1499
+ };
1500
+ /**
1501
+ *
1502
+ * @summary Updates capabilities for a device.
1503
+ * @param {SessionApiPostCapabilitiesRequest} requestParameters Request parameters.
1504
+ * @param {*} [options] Override http request option.
1505
+ * @throws {RequiredError}
1506
+ * @memberof SessionApi
1507
+ */
1508
+ SessionApi.prototype.postCapabilities = function (requestParameters, options) {
1509
+ var _this = this;
1510
+ if (requestParameters === void 0) { requestParameters = {}; }
1511
+ return (0, exports.SessionApiFp)(this.configuration).postCapabilities(requestParameters.id, requestParameters.playableMediaTypes, requestParameters.supportedCommands, requestParameters.supportsMediaControl, requestParameters.supportsSync, requestParameters.supportsPersistentIdentifier, options).then(function (request) { return request(_this.axios, _this.basePath); });
1512
+ };
1513
+ /**
1514
+ *
1515
+ * @summary Updates capabilities for a device.
1516
+ * @param {SessionApiPostFullCapabilitiesRequest} requestParameters Request parameters.
1517
+ * @param {*} [options] Override http request option.
1518
+ * @throws {RequiredError}
1519
+ * @memberof SessionApi
1520
+ */
1521
+ SessionApi.prototype.postFullCapabilities = function (requestParameters, options) {
1522
+ var _this = this;
1523
+ return (0, exports.SessionApiFp)(this.configuration).postFullCapabilities(requestParameters.clientCapabilitiesDto, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
1524
+ };
1525
+ /**
1526
+ *
1527
+ * @summary Removes an additional user from a session.
1528
+ * @param {SessionApiRemoveUserFromSessionRequest} requestParameters Request parameters.
1529
+ * @param {*} [options] Override http request option.
1530
+ * @throws {RequiredError}
1531
+ * @memberof SessionApi
1532
+ */
1533
+ SessionApi.prototype.removeUserFromSession = function (requestParameters, options) {
1534
+ var _this = this;
1535
+ return (0, exports.SessionApiFp)(this.configuration).removeUserFromSession(requestParameters.sessionId, requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1536
+ };
1537
+ /**
1538
+ *
1539
+ * @summary Reports that a session has ended.
1540
+ * @param {*} [options] Override http request option.
1541
+ * @throws {RequiredError}
1542
+ * @memberof SessionApi
1543
+ */
1544
+ SessionApi.prototype.reportSessionEnded = function (options) {
1545
+ var _this = this;
1546
+ return (0, exports.SessionApiFp)(this.configuration).reportSessionEnded(options).then(function (request) { return request(_this.axios, _this.basePath); });
1547
+ };
1548
+ /**
1549
+ *
1550
+ * @summary Reports that a session is viewing an item.
1551
+ * @param {SessionApiReportViewingRequest} requestParameters Request parameters.
1552
+ * @param {*} [options] Override http request option.
1553
+ * @throws {RequiredError}
1554
+ * @memberof SessionApi
1555
+ */
1556
+ SessionApi.prototype.reportViewing = function (requestParameters, options) {
1557
+ var _this = this;
1558
+ return (0, exports.SessionApiFp)(this.configuration).reportViewing(requestParameters.itemId, requestParameters.sessionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1559
+ };
1560
+ /**
1561
+ *
1562
+ * @summary Issues a full general command to a client.
1563
+ * @param {SessionApiSendFullGeneralCommandRequest} requestParameters Request parameters.
1564
+ * @param {*} [options] Override http request option.
1565
+ * @throws {RequiredError}
1566
+ * @memberof SessionApi
1567
+ */
1568
+ SessionApi.prototype.sendFullGeneralCommand = function (requestParameters, options) {
1569
+ var _this = this;
1570
+ return (0, exports.SessionApiFp)(this.configuration).sendFullGeneralCommand(requestParameters.sessionId, requestParameters.generalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1571
+ };
1572
+ /**
1573
+ *
1574
+ * @summary Issues a general command to a client.
1575
+ * @param {SessionApiSendGeneralCommandRequest} requestParameters Request parameters.
1576
+ * @param {*} [options] Override http request option.
1577
+ * @throws {RequiredError}
1578
+ * @memberof SessionApi
1579
+ */
1580
+ SessionApi.prototype.sendGeneralCommand = function (requestParameters, options) {
1581
+ var _this = this;
1582
+ return (0, exports.SessionApiFp)(this.configuration).sendGeneralCommand(requestParameters.sessionId, requestParameters.command, options).then(function (request) { return request(_this.axios, _this.basePath); });
1583
+ };
1584
+ /**
1585
+ *
1586
+ * @summary Issues a command to a client to display a message to the user.
1587
+ * @param {SessionApiSendMessageCommandRequest} requestParameters Request parameters.
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ * @memberof SessionApi
1591
+ */
1592
+ SessionApi.prototype.sendMessageCommand = function (requestParameters, options) {
1593
+ var _this = this;
1594
+ return (0, exports.SessionApiFp)(this.configuration).sendMessageCommand(requestParameters.sessionId, requestParameters.messageCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1595
+ };
1596
+ /**
1597
+ *
1598
+ * @summary Issues a playstate command to a client.
1599
+ * @param {SessionApiSendPlaystateCommandRequest} requestParameters Request parameters.
1600
+ * @param {*} [options] Override http request option.
1601
+ * @throws {RequiredError}
1602
+ * @memberof SessionApi
1603
+ */
1604
+ SessionApi.prototype.sendPlaystateCommand = function (requestParameters, options) {
1605
+ var _this = this;
1606
+ return (0, exports.SessionApiFp)(this.configuration).sendPlaystateCommand(requestParameters.sessionId, requestParameters.command, requestParameters.seekPositionTicks, requestParameters.controllingUserId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1607
+ };
1608
+ /**
1609
+ *
1610
+ * @summary Issues a system command to a client.
1611
+ * @param {SessionApiSendSystemCommandRequest} requestParameters Request parameters.
1612
+ * @param {*} [options] Override http request option.
1613
+ * @throws {RequiredError}
1614
+ * @memberof SessionApi
1615
+ */
1616
+ SessionApi.prototype.sendSystemCommand = function (requestParameters, options) {
1617
+ var _this = this;
1618
+ return (0, exports.SessionApiFp)(this.configuration).sendSystemCommand(requestParameters.sessionId, requestParameters.command, options).then(function (request) { return request(_this.axios, _this.basePath); });
1619
+ };
1620
+ return SessionApi;
1621
+ }(base_1.BaseAPI));
1622
+ exports.SessionApi = SessionApi;