@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,4165 @@
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.LiveTvApi = exports.LiveTvApiFactory = exports.LiveTvApiFp = exports.LiveTvApiAxiosParamCreator = 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
+ * LiveTvApi - axios parameter creator
89
+ * @export
90
+ */
91
+ var LiveTvApiAxiosParamCreator = function (configuration) {
92
+ var _this = this;
93
+ return {
94
+ /**
95
+ *
96
+ * @summary Adds a listings provider.
97
+ * @param {string} [pw] Password.
98
+ * @param {boolean} [validateListings] Validate listings.
99
+ * @param {boolean} [validateLogin] Validate login.
100
+ * @param {ListingsProviderInfo} [listingsProviderInfo] New listings info.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ addListingProvider: function (pw, validateListings, validateLogin, listingsProviderInfo, options) {
105
+ if (options === void 0) { options = {}; }
106
+ return __awaiter(_this, void 0, void 0, function () {
107
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0:
111
+ localVarPath = "/LiveTv/ListingProviders";
112
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
113
+ if (configuration) {
114
+ baseOptions = configuration.baseOptions;
115
+ }
116
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
117
+ localVarHeaderParameter = {};
118
+ localVarQueryParameter = {};
119
+ // authentication CustomAuthentication required
120
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
121
+ case 1:
122
+ // authentication CustomAuthentication required
123
+ _a.sent();
124
+ if (pw !== undefined) {
125
+ localVarQueryParameter['pw'] = pw;
126
+ }
127
+ if (validateListings !== undefined) {
128
+ localVarQueryParameter['validateListings'] = validateListings;
129
+ }
130
+ if (validateLogin !== undefined) {
131
+ localVarQueryParameter['validateLogin'] = validateLogin;
132
+ }
133
+ localVarHeaderParameter['Content-Type'] = 'application/json';
134
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
135
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
137
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(listingsProviderInfo, localVarRequestOptions, configuration);
138
+ return [2 /*return*/, {
139
+ url: (0, common_1.toPathString)(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ }];
142
+ }
143
+ });
144
+ });
145
+ },
146
+ /**
147
+ *
148
+ * @summary Adds a tuner host.
149
+ * @param {TunerHostInfo} [tunerHostInfo] New tuner host.
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ addTunerHost: function (tunerHostInfo, options) {
154
+ if (options === void 0) { options = {}; }
155
+ return __awaiter(_this, void 0, void 0, function () {
156
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
157
+ return __generator(this, function (_a) {
158
+ switch (_a.label) {
159
+ case 0:
160
+ localVarPath = "/LiveTv/TunerHosts";
161
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
162
+ if (configuration) {
163
+ baseOptions = configuration.baseOptions;
164
+ }
165
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
166
+ localVarHeaderParameter = {};
167
+ localVarQueryParameter = {};
168
+ // authentication CustomAuthentication required
169
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
170
+ case 1:
171
+ // authentication CustomAuthentication required
172
+ _a.sent();
173
+ localVarHeaderParameter['Content-Type'] = 'application/json';
174
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
175
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
176
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
177
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tunerHostInfo, localVarRequestOptions, configuration);
178
+ return [2 /*return*/, {
179
+ url: (0, common_1.toPathString)(localVarUrlObj),
180
+ options: localVarRequestOptions,
181
+ }];
182
+ }
183
+ });
184
+ });
185
+ },
186
+ /**
187
+ *
188
+ * @summary Cancels a live tv series timer.
189
+ * @param {string} timerId Timer id.
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ */
193
+ cancelSeriesTimer: function (timerId, options) {
194
+ if (options === void 0) { options = {}; }
195
+ return __awaiter(_this, void 0, void 0, function () {
196
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
197
+ return __generator(this, function (_a) {
198
+ switch (_a.label) {
199
+ case 0:
200
+ // verify required parameter 'timerId' is not null or undefined
201
+ (0, common_1.assertParamExists)('cancelSeriesTimer', 'timerId', timerId);
202
+ localVarPath = "/LiveTv/SeriesTimers/{timerId}"
203
+ .replace("{".concat("timerId", "}"), encodeURIComponent(String(timerId)));
204
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
205
+ if (configuration) {
206
+ baseOptions = configuration.baseOptions;
207
+ }
208
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
209
+ localVarHeaderParameter = {};
210
+ localVarQueryParameter = {};
211
+ // authentication CustomAuthentication required
212
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
213
+ case 1:
214
+ // authentication CustomAuthentication required
215
+ _a.sent();
216
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
217
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
218
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
219
+ return [2 /*return*/, {
220
+ url: (0, common_1.toPathString)(localVarUrlObj),
221
+ options: localVarRequestOptions,
222
+ }];
223
+ }
224
+ });
225
+ });
226
+ },
227
+ /**
228
+ *
229
+ * @summary Cancels a live tv timer.
230
+ * @param {string} timerId Timer id.
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ cancelTimer: function (timerId, options) {
235
+ if (options === void 0) { options = {}; }
236
+ return __awaiter(_this, void 0, void 0, function () {
237
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
238
+ return __generator(this, function (_a) {
239
+ switch (_a.label) {
240
+ case 0:
241
+ // verify required parameter 'timerId' is not null or undefined
242
+ (0, common_1.assertParamExists)('cancelTimer', 'timerId', timerId);
243
+ localVarPath = "/LiveTv/Timers/{timerId}"
244
+ .replace("{".concat("timerId", "}"), encodeURIComponent(String(timerId)));
245
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
246
+ if (configuration) {
247
+ baseOptions = configuration.baseOptions;
248
+ }
249
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
250
+ localVarHeaderParameter = {};
251
+ localVarQueryParameter = {};
252
+ // authentication CustomAuthentication required
253
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
254
+ case 1:
255
+ // authentication CustomAuthentication required
256
+ _a.sent();
257
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
258
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
260
+ return [2 /*return*/, {
261
+ url: (0, common_1.toPathString)(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ }];
264
+ }
265
+ });
266
+ });
267
+ },
268
+ /**
269
+ *
270
+ * @summary Creates a live tv series timer.
271
+ * @param {SeriesTimerInfoDto} [seriesTimerInfoDto] New series timer info.
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ createSeriesTimer: function (seriesTimerInfoDto, options) {
276
+ if (options === void 0) { options = {}; }
277
+ return __awaiter(_this, void 0, void 0, function () {
278
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
279
+ return __generator(this, function (_a) {
280
+ switch (_a.label) {
281
+ case 0:
282
+ localVarPath = "/LiveTv/SeriesTimers";
283
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
284
+ if (configuration) {
285
+ baseOptions = configuration.baseOptions;
286
+ }
287
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
288
+ localVarHeaderParameter = {};
289
+ localVarQueryParameter = {};
290
+ // authentication CustomAuthentication required
291
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
292
+ case 1:
293
+ // authentication CustomAuthentication required
294
+ _a.sent();
295
+ localVarHeaderParameter['Content-Type'] = 'application/json';
296
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
297
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
299
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(seriesTimerInfoDto, localVarRequestOptions, configuration);
300
+ return [2 /*return*/, {
301
+ url: (0, common_1.toPathString)(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ }];
304
+ }
305
+ });
306
+ });
307
+ },
308
+ /**
309
+ *
310
+ * @summary Creates a live tv timer.
311
+ * @param {TimerInfoDto} [timerInfoDto] New timer info.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ createTimer: function (timerInfoDto, options) {
316
+ if (options === void 0) { options = {}; }
317
+ return __awaiter(_this, void 0, void 0, function () {
318
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
319
+ return __generator(this, function (_a) {
320
+ switch (_a.label) {
321
+ case 0:
322
+ localVarPath = "/LiveTv/Timers";
323
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
324
+ if (configuration) {
325
+ baseOptions = configuration.baseOptions;
326
+ }
327
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
328
+ localVarHeaderParameter = {};
329
+ localVarQueryParameter = {};
330
+ // authentication CustomAuthentication required
331
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
332
+ case 1:
333
+ // authentication CustomAuthentication required
334
+ _a.sent();
335
+ localVarHeaderParameter['Content-Type'] = 'application/json';
336
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
337
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
338
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
339
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(timerInfoDto, localVarRequestOptions, configuration);
340
+ return [2 /*return*/, {
341
+ url: (0, common_1.toPathString)(localVarUrlObj),
342
+ options: localVarRequestOptions,
343
+ }];
344
+ }
345
+ });
346
+ });
347
+ },
348
+ /**
349
+ *
350
+ * @summary Delete listing provider.
351
+ * @param {string} [id] Listing provider id.
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ deleteListingProvider: function (id, options) {
356
+ if (options === void 0) { options = {}; }
357
+ return __awaiter(_this, void 0, void 0, function () {
358
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
359
+ return __generator(this, function (_a) {
360
+ switch (_a.label) {
361
+ case 0:
362
+ localVarPath = "/LiveTv/ListingProviders";
363
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
364
+ if (configuration) {
365
+ baseOptions = configuration.baseOptions;
366
+ }
367
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
368
+ localVarHeaderParameter = {};
369
+ localVarQueryParameter = {};
370
+ // authentication CustomAuthentication required
371
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
372
+ case 1:
373
+ // authentication CustomAuthentication required
374
+ _a.sent();
375
+ if (id !== undefined) {
376
+ localVarQueryParameter['id'] = id;
377
+ }
378
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
379
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
380
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
381
+ return [2 /*return*/, {
382
+ url: (0, common_1.toPathString)(localVarUrlObj),
383
+ options: localVarRequestOptions,
384
+ }];
385
+ }
386
+ });
387
+ });
388
+ },
389
+ /**
390
+ *
391
+ * @summary Deletes a live tv recording.
392
+ * @param {string} recordingId Recording id.
393
+ * @param {*} [options] Override http request option.
394
+ * @throws {RequiredError}
395
+ */
396
+ deleteRecording: function (recordingId, options) {
397
+ if (options === void 0) { options = {}; }
398
+ return __awaiter(_this, void 0, void 0, function () {
399
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
400
+ return __generator(this, function (_a) {
401
+ switch (_a.label) {
402
+ case 0:
403
+ // verify required parameter 'recordingId' is not null or undefined
404
+ (0, common_1.assertParamExists)('deleteRecording', 'recordingId', recordingId);
405
+ localVarPath = "/LiveTv/Recordings/{recordingId}"
406
+ .replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
407
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
408
+ if (configuration) {
409
+ baseOptions = configuration.baseOptions;
410
+ }
411
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
412
+ localVarHeaderParameter = {};
413
+ localVarQueryParameter = {};
414
+ // authentication CustomAuthentication required
415
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
416
+ case 1:
417
+ // authentication CustomAuthentication required
418
+ _a.sent();
419
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
420
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
421
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
422
+ return [2 /*return*/, {
423
+ url: (0, common_1.toPathString)(localVarUrlObj),
424
+ options: localVarRequestOptions,
425
+ }];
426
+ }
427
+ });
428
+ });
429
+ },
430
+ /**
431
+ *
432
+ * @summary Deletes a tuner host.
433
+ * @param {string} [id] Tuner host id.
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ deleteTunerHost: function (id, options) {
438
+ if (options === void 0) { options = {}; }
439
+ return __awaiter(_this, void 0, void 0, function () {
440
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
441
+ return __generator(this, function (_a) {
442
+ switch (_a.label) {
443
+ case 0:
444
+ localVarPath = "/LiveTv/TunerHosts";
445
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
446
+ if (configuration) {
447
+ baseOptions = configuration.baseOptions;
448
+ }
449
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
450
+ localVarHeaderParameter = {};
451
+ localVarQueryParameter = {};
452
+ // authentication CustomAuthentication required
453
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
454
+ case 1:
455
+ // authentication CustomAuthentication required
456
+ _a.sent();
457
+ if (id !== undefined) {
458
+ localVarQueryParameter['id'] = id;
459
+ }
460
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
461
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
462
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
463
+ return [2 /*return*/, {
464
+ url: (0, common_1.toPathString)(localVarUrlObj),
465
+ options: localVarRequestOptions,
466
+ }];
467
+ }
468
+ });
469
+ });
470
+ },
471
+ /**
472
+ *
473
+ * @summary Discover tuners.
474
+ * @param {boolean} [newDevicesOnly] Only discover new tuners.
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ */
478
+ discoverTuners: function (newDevicesOnly, options) {
479
+ if (options === void 0) { options = {}; }
480
+ return __awaiter(_this, void 0, void 0, function () {
481
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
482
+ return __generator(this, function (_a) {
483
+ switch (_a.label) {
484
+ case 0:
485
+ localVarPath = "/LiveTv/Tuners/Discover";
486
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
487
+ if (configuration) {
488
+ baseOptions = configuration.baseOptions;
489
+ }
490
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
491
+ localVarHeaderParameter = {};
492
+ localVarQueryParameter = {};
493
+ // authentication CustomAuthentication required
494
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
495
+ case 1:
496
+ // authentication CustomAuthentication required
497
+ _a.sent();
498
+ if (newDevicesOnly !== undefined) {
499
+ localVarQueryParameter['newDevicesOnly'] = newDevicesOnly;
500
+ }
501
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
502
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
503
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
504
+ return [2 /*return*/, {
505
+ url: (0, common_1.toPathString)(localVarUrlObj),
506
+ options: localVarRequestOptions,
507
+ }];
508
+ }
509
+ });
510
+ });
511
+ },
512
+ /**
513
+ *
514
+ * @summary Discover tuners.
515
+ * @param {boolean} [newDevicesOnly] Only discover new tuners.
516
+ * @param {*} [options] Override http request option.
517
+ * @throws {RequiredError}
518
+ */
519
+ discvoverTuners: function (newDevicesOnly, options) {
520
+ if (options === void 0) { options = {}; }
521
+ return __awaiter(_this, void 0, void 0, function () {
522
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
523
+ return __generator(this, function (_a) {
524
+ switch (_a.label) {
525
+ case 0:
526
+ localVarPath = "/LiveTv/Tuners/Discvover";
527
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
528
+ if (configuration) {
529
+ baseOptions = configuration.baseOptions;
530
+ }
531
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
532
+ localVarHeaderParameter = {};
533
+ localVarQueryParameter = {};
534
+ // authentication CustomAuthentication required
535
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
536
+ case 1:
537
+ // authentication CustomAuthentication required
538
+ _a.sent();
539
+ if (newDevicesOnly !== undefined) {
540
+ localVarQueryParameter['newDevicesOnly'] = newDevicesOnly;
541
+ }
542
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
543
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
544
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
545
+ return [2 /*return*/, {
546
+ url: (0, common_1.toPathString)(localVarUrlObj),
547
+ options: localVarRequestOptions,
548
+ }];
549
+ }
550
+ });
551
+ });
552
+ },
553
+ /**
554
+ *
555
+ * @summary Gets a live tv channel.
556
+ * @param {string} channelId Channel id.
557
+ * @param {string} [userId] Optional. Attach user data.
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ getChannel: function (channelId, userId, options) {
562
+ if (options === void 0) { options = {}; }
563
+ return __awaiter(_this, void 0, void 0, function () {
564
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
565
+ return __generator(this, function (_a) {
566
+ switch (_a.label) {
567
+ case 0:
568
+ // verify required parameter 'channelId' is not null or undefined
569
+ (0, common_1.assertParamExists)('getChannel', 'channelId', channelId);
570
+ localVarPath = "/LiveTv/Channels/{channelId}"
571
+ .replace("{".concat("channelId", "}"), encodeURIComponent(String(channelId)));
572
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
573
+ if (configuration) {
574
+ baseOptions = configuration.baseOptions;
575
+ }
576
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
577
+ localVarHeaderParameter = {};
578
+ localVarQueryParameter = {};
579
+ // authentication CustomAuthentication required
580
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
581
+ case 1:
582
+ // authentication CustomAuthentication required
583
+ _a.sent();
584
+ if (userId !== undefined) {
585
+ localVarQueryParameter['userId'] = userId;
586
+ }
587
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
588
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
589
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
590
+ return [2 /*return*/, {
591
+ url: (0, common_1.toPathString)(localVarUrlObj),
592
+ options: localVarRequestOptions,
593
+ }];
594
+ }
595
+ });
596
+ });
597
+ },
598
+ /**
599
+ *
600
+ * @summary Get channel mapping options.
601
+ * @param {string} [providerId] Provider id.
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ */
605
+ getChannelMappingOptions: function (providerId, options) {
606
+ if (options === void 0) { options = {}; }
607
+ return __awaiter(_this, void 0, void 0, function () {
608
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
609
+ return __generator(this, function (_a) {
610
+ switch (_a.label) {
611
+ case 0:
612
+ localVarPath = "/LiveTv/ChannelMappingOptions";
613
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
614
+ if (configuration) {
615
+ baseOptions = configuration.baseOptions;
616
+ }
617
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
618
+ localVarHeaderParameter = {};
619
+ localVarQueryParameter = {};
620
+ // authentication CustomAuthentication required
621
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
622
+ case 1:
623
+ // authentication CustomAuthentication required
624
+ _a.sent();
625
+ if (providerId !== undefined) {
626
+ localVarQueryParameter['providerId'] = providerId;
627
+ }
628
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
629
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
630
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
631
+ return [2 /*return*/, {
632
+ url: (0, common_1.toPathString)(localVarUrlObj),
633
+ options: localVarRequestOptions,
634
+ }];
635
+ }
636
+ });
637
+ });
638
+ },
639
+ /**
640
+ *
641
+ * @summary Gets default listings provider info.
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ getDefaultListingProvider: function (options) {
646
+ if (options === void 0) { options = {}; }
647
+ return __awaiter(_this, void 0, void 0, function () {
648
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
649
+ return __generator(this, function (_a) {
650
+ switch (_a.label) {
651
+ case 0:
652
+ localVarPath = "/LiveTv/ListingProviders/Default";
653
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
654
+ if (configuration) {
655
+ baseOptions = configuration.baseOptions;
656
+ }
657
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
658
+ localVarHeaderParameter = {};
659
+ localVarQueryParameter = {};
660
+ // authentication CustomAuthentication required
661
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
662
+ case 1:
663
+ // authentication CustomAuthentication required
664
+ _a.sent();
665
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
666
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
667
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
668
+ return [2 /*return*/, {
669
+ url: (0, common_1.toPathString)(localVarUrlObj),
670
+ options: localVarRequestOptions,
671
+ }];
672
+ }
673
+ });
674
+ });
675
+ },
676
+ /**
677
+ *
678
+ * @summary Gets the default values for a new timer.
679
+ * @param {string} [programId] Optional. To attach default values based on a program.
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ */
683
+ getDefaultTimer: function (programId, options) {
684
+ if (options === void 0) { options = {}; }
685
+ return __awaiter(_this, void 0, void 0, function () {
686
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
687
+ return __generator(this, function (_a) {
688
+ switch (_a.label) {
689
+ case 0:
690
+ localVarPath = "/LiveTv/Timers/Defaults";
691
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
692
+ if (configuration) {
693
+ baseOptions = configuration.baseOptions;
694
+ }
695
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
696
+ localVarHeaderParameter = {};
697
+ localVarQueryParameter = {};
698
+ // authentication CustomAuthentication required
699
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
700
+ case 1:
701
+ // authentication CustomAuthentication required
702
+ _a.sent();
703
+ if (programId !== undefined) {
704
+ localVarQueryParameter['programId'] = programId;
705
+ }
706
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
707
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
708
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
709
+ return [2 /*return*/, {
710
+ url: (0, common_1.toPathString)(localVarUrlObj),
711
+ options: localVarRequestOptions,
712
+ }];
713
+ }
714
+ });
715
+ });
716
+ },
717
+ /**
718
+ *
719
+ * @summary Get guid info.
720
+ * @param {*} [options] Override http request option.
721
+ * @throws {RequiredError}
722
+ */
723
+ getGuideInfo: function (options) {
724
+ if (options === void 0) { options = {}; }
725
+ return __awaiter(_this, void 0, void 0, function () {
726
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
727
+ return __generator(this, function (_a) {
728
+ switch (_a.label) {
729
+ case 0:
730
+ localVarPath = "/LiveTv/GuideInfo";
731
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
732
+ if (configuration) {
733
+ baseOptions = configuration.baseOptions;
734
+ }
735
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
736
+ localVarHeaderParameter = {};
737
+ localVarQueryParameter = {};
738
+ // authentication CustomAuthentication required
739
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
740
+ case 1:
741
+ // authentication CustomAuthentication required
742
+ _a.sent();
743
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
744
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
745
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
746
+ return [2 /*return*/, {
747
+ url: (0, common_1.toPathString)(localVarUrlObj),
748
+ options: localVarRequestOptions,
749
+ }];
750
+ }
751
+ });
752
+ });
753
+ },
754
+ /**
755
+ *
756
+ * @summary Gets available lineups.
757
+ * @param {string} [id] Provider id.
758
+ * @param {string} [type] Provider type.
759
+ * @param {string} [location] Location.
760
+ * @param {string} [country] Country.
761
+ * @param {*} [options] Override http request option.
762
+ * @throws {RequiredError}
763
+ */
764
+ getLineups: function (id, type, location, country, options) {
765
+ if (options === void 0) { options = {}; }
766
+ return __awaiter(_this, void 0, void 0, function () {
767
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
768
+ return __generator(this, function (_a) {
769
+ switch (_a.label) {
770
+ case 0:
771
+ localVarPath = "/LiveTv/ListingProviders/Lineups";
772
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
773
+ if (configuration) {
774
+ baseOptions = configuration.baseOptions;
775
+ }
776
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
777
+ localVarHeaderParameter = {};
778
+ localVarQueryParameter = {};
779
+ // authentication CustomAuthentication required
780
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
781
+ case 1:
782
+ // authentication CustomAuthentication required
783
+ _a.sent();
784
+ if (id !== undefined) {
785
+ localVarQueryParameter['id'] = id;
786
+ }
787
+ if (type !== undefined) {
788
+ localVarQueryParameter['type'] = type;
789
+ }
790
+ if (location !== undefined) {
791
+ localVarQueryParameter['location'] = location;
792
+ }
793
+ if (country !== undefined) {
794
+ localVarQueryParameter['country'] = country;
795
+ }
796
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
797
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
798
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
799
+ return [2 /*return*/, {
800
+ url: (0, common_1.toPathString)(localVarUrlObj),
801
+ options: localVarRequestOptions,
802
+ }];
803
+ }
804
+ });
805
+ });
806
+ },
807
+ /**
808
+ *
809
+ * @summary Gets a live tv recording stream.
810
+ * @param {string} recordingId Recording id.
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ */
814
+ getLiveRecordingFile: function (recordingId, options) {
815
+ if (options === void 0) { options = {}; }
816
+ return __awaiter(_this, void 0, void 0, function () {
817
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
818
+ return __generator(this, function (_a) {
819
+ // verify required parameter 'recordingId' is not null or undefined
820
+ (0, common_1.assertParamExists)('getLiveRecordingFile', 'recordingId', recordingId);
821
+ localVarPath = "/LiveTv/LiveRecordings/{recordingId}/stream"
822
+ .replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
823
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
824
+ if (configuration) {
825
+ baseOptions = configuration.baseOptions;
826
+ }
827
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
828
+ localVarHeaderParameter = {};
829
+ localVarQueryParameter = {};
830
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
831
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
832
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
833
+ return [2 /*return*/, {
834
+ url: (0, common_1.toPathString)(localVarUrlObj),
835
+ options: localVarRequestOptions,
836
+ }];
837
+ });
838
+ });
839
+ },
840
+ /**
841
+ *
842
+ * @summary Gets a live tv channel stream.
843
+ * @param {string} streamId Stream id.
844
+ * @param {string} container Container type.
845
+ * @param {*} [options] Override http request option.
846
+ * @throws {RequiredError}
847
+ */
848
+ getLiveStreamFile: function (streamId, container, options) {
849
+ if (options === void 0) { options = {}; }
850
+ return __awaiter(_this, void 0, void 0, function () {
851
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
852
+ return __generator(this, function (_a) {
853
+ // verify required parameter 'streamId' is not null or undefined
854
+ (0, common_1.assertParamExists)('getLiveStreamFile', 'streamId', streamId);
855
+ // verify required parameter 'container' is not null or undefined
856
+ (0, common_1.assertParamExists)('getLiveStreamFile', 'container', container);
857
+ localVarPath = "/LiveTv/LiveStreamFiles/{streamId}/stream.{container}"
858
+ .replace("{".concat("streamId", "}"), encodeURIComponent(String(streamId)))
859
+ .replace("{".concat("container", "}"), encodeURIComponent(String(container)));
860
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
861
+ if (configuration) {
862
+ baseOptions = configuration.baseOptions;
863
+ }
864
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
865
+ localVarHeaderParameter = {};
866
+ localVarQueryParameter = {};
867
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
868
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
869
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
870
+ return [2 /*return*/, {
871
+ url: (0, common_1.toPathString)(localVarUrlObj),
872
+ options: localVarRequestOptions,
873
+ }];
874
+ });
875
+ });
876
+ },
877
+ /**
878
+ *
879
+ * @summary Gets available live tv channels.
880
+ * @param {ChannelType} [type] Optional. Filter by channel type.
881
+ * @param {string} [userId] Optional. Filter by user and attach user data.
882
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
883
+ * @param {boolean} [isMovie] Optional. Filter for movies.
884
+ * @param {boolean} [isSeries] Optional. Filter for series.
885
+ * @param {boolean} [isNews] Optional. Filter for news.
886
+ * @param {boolean} [isKids] Optional. Filter for kids.
887
+ * @param {boolean} [isSports] Optional. Filter for sports.
888
+ * @param {number} [limit] Optional. The maximum number of records to return.
889
+ * @param {boolean} [isFavorite] Optional. Filter by channels that are favorites, or not.
890
+ * @param {boolean} [isLiked] Optional. Filter by channels that are liked, or not.
891
+ * @param {boolean} [isDisliked] Optional. Filter by channels that are disliked, or not.
892
+ * @param {boolean} [enableImages] Optional. Include image information in output.
893
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
894
+ * @param {Array<ImageType>} [enableImageTypes] \&quot;Optional. The image types to include in the output.
895
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
896
+ * @param {boolean} [enableUserData] Optional. Include user data.
897
+ * @param {Array<string>} [sortBy] Optional. Key to sort by.
898
+ * @param {SortOrder} [sortOrder] Optional. Sort order.
899
+ * @param {boolean} [enableFavoriteSorting] Optional. Incorporate favorite and like status into channel sorting.
900
+ * @param {boolean} [addCurrentProgram] Optional. Adds current program info to each channel.
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ */
904
+ getLiveTvChannels: function (type, userId, startIndex, isMovie, isSeries, isNews, isKids, isSports, limit, isFavorite, isLiked, isDisliked, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, sortBy, sortOrder, enableFavoriteSorting, addCurrentProgram, options) {
905
+ if (options === void 0) { options = {}; }
906
+ return __awaiter(_this, void 0, void 0, function () {
907
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
908
+ return __generator(this, function (_a) {
909
+ switch (_a.label) {
910
+ case 0:
911
+ localVarPath = "/LiveTv/Channels";
912
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
913
+ if (configuration) {
914
+ baseOptions = configuration.baseOptions;
915
+ }
916
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
917
+ localVarHeaderParameter = {};
918
+ localVarQueryParameter = {};
919
+ // authentication CustomAuthentication required
920
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
921
+ case 1:
922
+ // authentication CustomAuthentication required
923
+ _a.sent();
924
+ if (type !== undefined) {
925
+ localVarQueryParameter['type'] = type;
926
+ }
927
+ if (userId !== undefined) {
928
+ localVarQueryParameter['userId'] = userId;
929
+ }
930
+ if (startIndex !== undefined) {
931
+ localVarQueryParameter['startIndex'] = startIndex;
932
+ }
933
+ if (isMovie !== undefined) {
934
+ localVarQueryParameter['isMovie'] = isMovie;
935
+ }
936
+ if (isSeries !== undefined) {
937
+ localVarQueryParameter['isSeries'] = isSeries;
938
+ }
939
+ if (isNews !== undefined) {
940
+ localVarQueryParameter['isNews'] = isNews;
941
+ }
942
+ if (isKids !== undefined) {
943
+ localVarQueryParameter['isKids'] = isKids;
944
+ }
945
+ if (isSports !== undefined) {
946
+ localVarQueryParameter['isSports'] = isSports;
947
+ }
948
+ if (limit !== undefined) {
949
+ localVarQueryParameter['limit'] = limit;
950
+ }
951
+ if (isFavorite !== undefined) {
952
+ localVarQueryParameter['isFavorite'] = isFavorite;
953
+ }
954
+ if (isLiked !== undefined) {
955
+ localVarQueryParameter['isLiked'] = isLiked;
956
+ }
957
+ if (isDisliked !== undefined) {
958
+ localVarQueryParameter['isDisliked'] = isDisliked;
959
+ }
960
+ if (enableImages !== undefined) {
961
+ localVarQueryParameter['enableImages'] = enableImages;
962
+ }
963
+ if (imageTypeLimit !== undefined) {
964
+ localVarQueryParameter['imageTypeLimit'] = imageTypeLimit;
965
+ }
966
+ if (enableImageTypes) {
967
+ localVarQueryParameter['enableImageTypes'] = enableImageTypes;
968
+ }
969
+ if (fields) {
970
+ localVarQueryParameter['fields'] = fields;
971
+ }
972
+ if (enableUserData !== undefined) {
973
+ localVarQueryParameter['enableUserData'] = enableUserData;
974
+ }
975
+ if (sortBy) {
976
+ localVarQueryParameter['sortBy'] = sortBy;
977
+ }
978
+ if (sortOrder !== undefined) {
979
+ localVarQueryParameter['sortOrder'] = sortOrder;
980
+ }
981
+ if (enableFavoriteSorting !== undefined) {
982
+ localVarQueryParameter['enableFavoriteSorting'] = enableFavoriteSorting;
983
+ }
984
+ if (addCurrentProgram !== undefined) {
985
+ localVarQueryParameter['addCurrentProgram'] = addCurrentProgram;
986
+ }
987
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
988
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
989
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
990
+ return [2 /*return*/, {
991
+ url: (0, common_1.toPathString)(localVarUrlObj),
992
+ options: localVarRequestOptions,
993
+ }];
994
+ }
995
+ });
996
+ });
997
+ },
998
+ /**
999
+ *
1000
+ * @summary Gets available live tv services.
1001
+ * @param {*} [options] Override http request option.
1002
+ * @throws {RequiredError}
1003
+ */
1004
+ getLiveTvInfo: function (options) {
1005
+ if (options === void 0) { options = {}; }
1006
+ return __awaiter(_this, void 0, void 0, function () {
1007
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1008
+ return __generator(this, function (_a) {
1009
+ switch (_a.label) {
1010
+ case 0:
1011
+ localVarPath = "/LiveTv/Info";
1012
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1013
+ if (configuration) {
1014
+ baseOptions = configuration.baseOptions;
1015
+ }
1016
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1017
+ localVarHeaderParameter = {};
1018
+ localVarQueryParameter = {};
1019
+ // authentication CustomAuthentication required
1020
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1021
+ case 1:
1022
+ // authentication CustomAuthentication required
1023
+ _a.sent();
1024
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1025
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1026
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1027
+ return [2 /*return*/, {
1028
+ url: (0, common_1.toPathString)(localVarUrlObj),
1029
+ options: localVarRequestOptions,
1030
+ }];
1031
+ }
1032
+ });
1033
+ });
1034
+ },
1035
+ /**
1036
+ *
1037
+ * @summary Gets available live tv epgs.
1038
+ * @param {Array<string>} [channelIds] The channels to return guide information for.
1039
+ * @param {string} [userId] Optional. Filter by user id.
1040
+ * @param {string} [minStartDate] Optional. The minimum premiere start date.
1041
+ * @param {boolean} [hasAired] Optional. Filter by programs that have completed airing, or not.
1042
+ * @param {boolean} [isAiring] Optional. Filter by programs that are currently airing, or not.
1043
+ * @param {string} [maxStartDate] Optional. The maximum premiere start date.
1044
+ * @param {string} [minEndDate] Optional. The minimum premiere end date.
1045
+ * @param {string} [maxEndDate] Optional. The maximum premiere end date.
1046
+ * @param {boolean} [isMovie] Optional. Filter for movies.
1047
+ * @param {boolean} [isSeries] Optional. Filter for series.
1048
+ * @param {boolean} [isNews] Optional. Filter for news.
1049
+ * @param {boolean} [isKids] Optional. Filter for kids.
1050
+ * @param {boolean} [isSports] Optional. Filter for sports.
1051
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
1052
+ * @param {number} [limit] Optional. The maximum number of records to return.
1053
+ * @param {Array<string>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Name, StartDate.
1054
+ * @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
1055
+ * @param {Array<string>} [genres] The genres to return guide information for.
1056
+ * @param {Array<string>} [genreIds] The genre ids to return guide information for.
1057
+ * @param {boolean} [enableImages] Optional. Include image information in output.
1058
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
1059
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
1060
+ * @param {boolean} [enableUserData] Optional. Include user data.
1061
+ * @param {string} [seriesTimerId] Optional. Filter by series timer id.
1062
+ * @param {string} [librarySeriesId] Optional. Filter by library series id.
1063
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
1064
+ * @param {boolean} [enableTotalRecordCount] Retrieve total record count.
1065
+ * @param {*} [options] Override http request option.
1066
+ * @throws {RequiredError}
1067
+ */
1068
+ getLiveTvPrograms: function (channelIds, userId, minStartDate, hasAired, isAiring, maxStartDate, minEndDate, maxEndDate, isMovie, isSeries, isNews, isKids, isSports, startIndex, limit, sortBy, sortOrder, genres, genreIds, enableImages, imageTypeLimit, enableImageTypes, enableUserData, seriesTimerId, librarySeriesId, fields, enableTotalRecordCount, options) {
1069
+ if (options === void 0) { options = {}; }
1070
+ return __awaiter(_this, void 0, void 0, function () {
1071
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1072
+ return __generator(this, function (_a) {
1073
+ switch (_a.label) {
1074
+ case 0:
1075
+ localVarPath = "/LiveTv/Programs";
1076
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1077
+ if (configuration) {
1078
+ baseOptions = configuration.baseOptions;
1079
+ }
1080
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1081
+ localVarHeaderParameter = {};
1082
+ localVarQueryParameter = {};
1083
+ // authentication CustomAuthentication required
1084
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1085
+ case 1:
1086
+ // authentication CustomAuthentication required
1087
+ _a.sent();
1088
+ if (channelIds) {
1089
+ localVarQueryParameter['channelIds'] = channelIds;
1090
+ }
1091
+ if (userId !== undefined) {
1092
+ localVarQueryParameter['userId'] = userId;
1093
+ }
1094
+ if (minStartDate !== undefined) {
1095
+ localVarQueryParameter['minStartDate'] = (minStartDate instanceof Date) ?
1096
+ minStartDate.toISOString() :
1097
+ minStartDate;
1098
+ }
1099
+ if (hasAired !== undefined) {
1100
+ localVarQueryParameter['hasAired'] = hasAired;
1101
+ }
1102
+ if (isAiring !== undefined) {
1103
+ localVarQueryParameter['isAiring'] = isAiring;
1104
+ }
1105
+ if (maxStartDate !== undefined) {
1106
+ localVarQueryParameter['maxStartDate'] = (maxStartDate instanceof Date) ?
1107
+ maxStartDate.toISOString() :
1108
+ maxStartDate;
1109
+ }
1110
+ if (minEndDate !== undefined) {
1111
+ localVarQueryParameter['minEndDate'] = (minEndDate instanceof Date) ?
1112
+ minEndDate.toISOString() :
1113
+ minEndDate;
1114
+ }
1115
+ if (maxEndDate !== undefined) {
1116
+ localVarQueryParameter['maxEndDate'] = (maxEndDate instanceof Date) ?
1117
+ maxEndDate.toISOString() :
1118
+ maxEndDate;
1119
+ }
1120
+ if (isMovie !== undefined) {
1121
+ localVarQueryParameter['isMovie'] = isMovie;
1122
+ }
1123
+ if (isSeries !== undefined) {
1124
+ localVarQueryParameter['isSeries'] = isSeries;
1125
+ }
1126
+ if (isNews !== undefined) {
1127
+ localVarQueryParameter['isNews'] = isNews;
1128
+ }
1129
+ if (isKids !== undefined) {
1130
+ localVarQueryParameter['isKids'] = isKids;
1131
+ }
1132
+ if (isSports !== undefined) {
1133
+ localVarQueryParameter['isSports'] = isSports;
1134
+ }
1135
+ if (startIndex !== undefined) {
1136
+ localVarQueryParameter['startIndex'] = startIndex;
1137
+ }
1138
+ if (limit !== undefined) {
1139
+ localVarQueryParameter['limit'] = limit;
1140
+ }
1141
+ if (sortBy) {
1142
+ localVarQueryParameter['sortBy'] = sortBy;
1143
+ }
1144
+ if (sortOrder) {
1145
+ localVarQueryParameter['sortOrder'] = sortOrder;
1146
+ }
1147
+ if (genres) {
1148
+ localVarQueryParameter['genres'] = genres;
1149
+ }
1150
+ if (genreIds) {
1151
+ localVarQueryParameter['genreIds'] = genreIds;
1152
+ }
1153
+ if (enableImages !== undefined) {
1154
+ localVarQueryParameter['enableImages'] = enableImages;
1155
+ }
1156
+ if (imageTypeLimit !== undefined) {
1157
+ localVarQueryParameter['imageTypeLimit'] = imageTypeLimit;
1158
+ }
1159
+ if (enableImageTypes) {
1160
+ localVarQueryParameter['enableImageTypes'] = enableImageTypes;
1161
+ }
1162
+ if (enableUserData !== undefined) {
1163
+ localVarQueryParameter['enableUserData'] = enableUserData;
1164
+ }
1165
+ if (seriesTimerId !== undefined) {
1166
+ localVarQueryParameter['seriesTimerId'] = seriesTimerId;
1167
+ }
1168
+ if (librarySeriesId !== undefined) {
1169
+ localVarQueryParameter['librarySeriesId'] = librarySeriesId;
1170
+ }
1171
+ if (fields) {
1172
+ localVarQueryParameter['fields'] = fields;
1173
+ }
1174
+ if (enableTotalRecordCount !== undefined) {
1175
+ localVarQueryParameter['enableTotalRecordCount'] = enableTotalRecordCount;
1176
+ }
1177
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1178
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1179
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1180
+ return [2 /*return*/, {
1181
+ url: (0, common_1.toPathString)(localVarUrlObj),
1182
+ options: localVarRequestOptions,
1183
+ }];
1184
+ }
1185
+ });
1186
+ });
1187
+ },
1188
+ /**
1189
+ *
1190
+ * @summary Gets a live tv program.
1191
+ * @param {string} programId Program id.
1192
+ * @param {string} [userId] Optional. Attach user data.
1193
+ * @param {*} [options] Override http request option.
1194
+ * @throws {RequiredError}
1195
+ */
1196
+ getProgram: function (programId, userId, options) {
1197
+ if (options === void 0) { options = {}; }
1198
+ return __awaiter(_this, void 0, void 0, function () {
1199
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1200
+ return __generator(this, function (_a) {
1201
+ switch (_a.label) {
1202
+ case 0:
1203
+ // verify required parameter 'programId' is not null or undefined
1204
+ (0, common_1.assertParamExists)('getProgram', 'programId', programId);
1205
+ localVarPath = "/LiveTv/Programs/{programId}"
1206
+ .replace("{".concat("programId", "}"), encodeURIComponent(String(programId)));
1207
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1208
+ if (configuration) {
1209
+ baseOptions = configuration.baseOptions;
1210
+ }
1211
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1212
+ localVarHeaderParameter = {};
1213
+ localVarQueryParameter = {};
1214
+ // authentication CustomAuthentication required
1215
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1216
+ case 1:
1217
+ // authentication CustomAuthentication required
1218
+ _a.sent();
1219
+ if (userId !== undefined) {
1220
+ localVarQueryParameter['userId'] = userId;
1221
+ }
1222
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1223
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1224
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1225
+ return [2 /*return*/, {
1226
+ url: (0, common_1.toPathString)(localVarUrlObj),
1227
+ options: localVarRequestOptions,
1228
+ }];
1229
+ }
1230
+ });
1231
+ });
1232
+ },
1233
+ /**
1234
+ *
1235
+ * @summary Gets available live tv epgs.
1236
+ * @param {GetProgramsDto} [getProgramsDto] Request body.
1237
+ * @param {*} [options] Override http request option.
1238
+ * @throws {RequiredError}
1239
+ */
1240
+ getPrograms: function (getProgramsDto, options) {
1241
+ if (options === void 0) { options = {}; }
1242
+ return __awaiter(_this, void 0, void 0, function () {
1243
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1244
+ return __generator(this, function (_a) {
1245
+ switch (_a.label) {
1246
+ case 0:
1247
+ localVarPath = "/LiveTv/Programs";
1248
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1249
+ if (configuration) {
1250
+ baseOptions = configuration.baseOptions;
1251
+ }
1252
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1253
+ localVarHeaderParameter = {};
1254
+ localVarQueryParameter = {};
1255
+ // authentication CustomAuthentication required
1256
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1257
+ case 1:
1258
+ // authentication CustomAuthentication required
1259
+ _a.sent();
1260
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1261
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1262
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1263
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1264
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getProgramsDto, localVarRequestOptions, configuration);
1265
+ return [2 /*return*/, {
1266
+ url: (0, common_1.toPathString)(localVarUrlObj),
1267
+ options: localVarRequestOptions,
1268
+ }];
1269
+ }
1270
+ });
1271
+ });
1272
+ },
1273
+ /**
1274
+ *
1275
+ * @summary Gets recommended live tv epgs.
1276
+ * @param {string} [userId] Optional. filter by user id.
1277
+ * @param {number} [limit] Optional. The maximum number of records to return.
1278
+ * @param {boolean} [isAiring] Optional. Filter by programs that are currently airing, or not.
1279
+ * @param {boolean} [hasAired] Optional. Filter by programs that have completed airing, or not.
1280
+ * @param {boolean} [isSeries] Optional. Filter for series.
1281
+ * @param {boolean} [isMovie] Optional. Filter for movies.
1282
+ * @param {boolean} [isNews] Optional. Filter for news.
1283
+ * @param {boolean} [isKids] Optional. Filter for kids.
1284
+ * @param {boolean} [isSports] Optional. Filter for sports.
1285
+ * @param {boolean} [enableImages] Optional. Include image information in output.
1286
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
1287
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
1288
+ * @param {Array<string>} [genreIds] The genres to return guide information for.
1289
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
1290
+ * @param {boolean} [enableUserData] Optional. include user data.
1291
+ * @param {boolean} [enableTotalRecordCount] Retrieve total record count.
1292
+ * @param {*} [options] Override http request option.
1293
+ * @throws {RequiredError}
1294
+ */
1295
+ getRecommendedPrograms: function (userId, limit, isAiring, hasAired, isSeries, isMovie, isNews, isKids, isSports, enableImages, imageTypeLimit, enableImageTypes, genreIds, fields, enableUserData, enableTotalRecordCount, options) {
1296
+ if (options === void 0) { options = {}; }
1297
+ return __awaiter(_this, void 0, void 0, function () {
1298
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1299
+ return __generator(this, function (_a) {
1300
+ switch (_a.label) {
1301
+ case 0:
1302
+ localVarPath = "/LiveTv/Programs/Recommended";
1303
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1304
+ if (configuration) {
1305
+ baseOptions = configuration.baseOptions;
1306
+ }
1307
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1308
+ localVarHeaderParameter = {};
1309
+ localVarQueryParameter = {};
1310
+ // authentication CustomAuthentication required
1311
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1312
+ case 1:
1313
+ // authentication CustomAuthentication required
1314
+ _a.sent();
1315
+ if (userId !== undefined) {
1316
+ localVarQueryParameter['userId'] = userId;
1317
+ }
1318
+ if (limit !== undefined) {
1319
+ localVarQueryParameter['limit'] = limit;
1320
+ }
1321
+ if (isAiring !== undefined) {
1322
+ localVarQueryParameter['isAiring'] = isAiring;
1323
+ }
1324
+ if (hasAired !== undefined) {
1325
+ localVarQueryParameter['hasAired'] = hasAired;
1326
+ }
1327
+ if (isSeries !== undefined) {
1328
+ localVarQueryParameter['isSeries'] = isSeries;
1329
+ }
1330
+ if (isMovie !== undefined) {
1331
+ localVarQueryParameter['isMovie'] = isMovie;
1332
+ }
1333
+ if (isNews !== undefined) {
1334
+ localVarQueryParameter['isNews'] = isNews;
1335
+ }
1336
+ if (isKids !== undefined) {
1337
+ localVarQueryParameter['isKids'] = isKids;
1338
+ }
1339
+ if (isSports !== undefined) {
1340
+ localVarQueryParameter['isSports'] = isSports;
1341
+ }
1342
+ if (enableImages !== undefined) {
1343
+ localVarQueryParameter['enableImages'] = enableImages;
1344
+ }
1345
+ if (imageTypeLimit !== undefined) {
1346
+ localVarQueryParameter['imageTypeLimit'] = imageTypeLimit;
1347
+ }
1348
+ if (enableImageTypes) {
1349
+ localVarQueryParameter['enableImageTypes'] = enableImageTypes;
1350
+ }
1351
+ if (genreIds) {
1352
+ localVarQueryParameter['genreIds'] = genreIds;
1353
+ }
1354
+ if (fields) {
1355
+ localVarQueryParameter['fields'] = fields;
1356
+ }
1357
+ if (enableUserData !== undefined) {
1358
+ localVarQueryParameter['enableUserData'] = enableUserData;
1359
+ }
1360
+ if (enableTotalRecordCount !== undefined) {
1361
+ localVarQueryParameter['enableTotalRecordCount'] = enableTotalRecordCount;
1362
+ }
1363
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1364
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1365
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1366
+ return [2 /*return*/, {
1367
+ url: (0, common_1.toPathString)(localVarUrlObj),
1368
+ options: localVarRequestOptions,
1369
+ }];
1370
+ }
1371
+ });
1372
+ });
1373
+ },
1374
+ /**
1375
+ *
1376
+ * @summary Gets a live tv recording.
1377
+ * @param {string} recordingId Recording id.
1378
+ * @param {string} [userId] Optional. Attach user data.
1379
+ * @param {*} [options] Override http request option.
1380
+ * @throws {RequiredError}
1381
+ */
1382
+ getRecording: function (recordingId, userId, options) {
1383
+ if (options === void 0) { options = {}; }
1384
+ return __awaiter(_this, void 0, void 0, function () {
1385
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1386
+ return __generator(this, function (_a) {
1387
+ switch (_a.label) {
1388
+ case 0:
1389
+ // verify required parameter 'recordingId' is not null or undefined
1390
+ (0, common_1.assertParamExists)('getRecording', 'recordingId', recordingId);
1391
+ localVarPath = "/LiveTv/Recordings/{recordingId}"
1392
+ .replace("{".concat("recordingId", "}"), encodeURIComponent(String(recordingId)));
1393
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1394
+ if (configuration) {
1395
+ baseOptions = configuration.baseOptions;
1396
+ }
1397
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1398
+ localVarHeaderParameter = {};
1399
+ localVarQueryParameter = {};
1400
+ // authentication CustomAuthentication required
1401
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1402
+ case 1:
1403
+ // authentication CustomAuthentication required
1404
+ _a.sent();
1405
+ if (userId !== undefined) {
1406
+ localVarQueryParameter['userId'] = userId;
1407
+ }
1408
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1409
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1410
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1411
+ return [2 /*return*/, {
1412
+ url: (0, common_1.toPathString)(localVarUrlObj),
1413
+ options: localVarRequestOptions,
1414
+ }];
1415
+ }
1416
+ });
1417
+ });
1418
+ },
1419
+ /**
1420
+ *
1421
+ * @summary Gets recording folders.
1422
+ * @param {string} [userId] Optional. Filter by user and attach user data.
1423
+ * @param {*} [options] Override http request option.
1424
+ * @throws {RequiredError}
1425
+ */
1426
+ getRecordingFolders: function (userId, options) {
1427
+ if (options === void 0) { options = {}; }
1428
+ return __awaiter(_this, void 0, void 0, function () {
1429
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1430
+ return __generator(this, function (_a) {
1431
+ switch (_a.label) {
1432
+ case 0:
1433
+ localVarPath = "/LiveTv/Recordings/Folders";
1434
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1435
+ if (configuration) {
1436
+ baseOptions = configuration.baseOptions;
1437
+ }
1438
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1439
+ localVarHeaderParameter = {};
1440
+ localVarQueryParameter = {};
1441
+ // authentication CustomAuthentication required
1442
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1443
+ case 1:
1444
+ // authentication CustomAuthentication required
1445
+ _a.sent();
1446
+ if (userId !== undefined) {
1447
+ localVarQueryParameter['userId'] = userId;
1448
+ }
1449
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1450
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1451
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1452
+ return [2 /*return*/, {
1453
+ url: (0, common_1.toPathString)(localVarUrlObj),
1454
+ options: localVarRequestOptions,
1455
+ }];
1456
+ }
1457
+ });
1458
+ });
1459
+ },
1460
+ /**
1461
+ *
1462
+ * @summary Get recording group.
1463
+ * @param {string} groupId Group id.
1464
+ * @param {*} [options] Override http request option.
1465
+ * @deprecated
1466
+ * @throws {RequiredError}
1467
+ */
1468
+ getRecordingGroup: function (groupId, options) {
1469
+ if (options === void 0) { options = {}; }
1470
+ return __awaiter(_this, void 0, void 0, function () {
1471
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1472
+ return __generator(this, function (_a) {
1473
+ switch (_a.label) {
1474
+ case 0:
1475
+ // verify required parameter 'groupId' is not null or undefined
1476
+ (0, common_1.assertParamExists)('getRecordingGroup', 'groupId', groupId);
1477
+ localVarPath = "/LiveTv/Recordings/Groups/{groupId}"
1478
+ .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
1479
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1480
+ if (configuration) {
1481
+ baseOptions = configuration.baseOptions;
1482
+ }
1483
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1484
+ localVarHeaderParameter = {};
1485
+ localVarQueryParameter = {};
1486
+ // authentication CustomAuthentication required
1487
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1488
+ case 1:
1489
+ // authentication CustomAuthentication required
1490
+ _a.sent();
1491
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1492
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1493
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1494
+ return [2 /*return*/, {
1495
+ url: (0, common_1.toPathString)(localVarUrlObj),
1496
+ options: localVarRequestOptions,
1497
+ }];
1498
+ }
1499
+ });
1500
+ });
1501
+ },
1502
+ /**
1503
+ *
1504
+ * @summary Gets live tv recording groups.
1505
+ * @param {string} [userId] Optional. Filter by user and attach user data.
1506
+ * @param {*} [options] Override http request option.
1507
+ * @deprecated
1508
+ * @throws {RequiredError}
1509
+ */
1510
+ getRecordingGroups: function (userId, options) {
1511
+ if (options === void 0) { options = {}; }
1512
+ return __awaiter(_this, void 0, void 0, function () {
1513
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1514
+ return __generator(this, function (_a) {
1515
+ switch (_a.label) {
1516
+ case 0:
1517
+ localVarPath = "/LiveTv/Recordings/Groups";
1518
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1519
+ if (configuration) {
1520
+ baseOptions = configuration.baseOptions;
1521
+ }
1522
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1523
+ localVarHeaderParameter = {};
1524
+ localVarQueryParameter = {};
1525
+ // authentication CustomAuthentication required
1526
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1527
+ case 1:
1528
+ // authentication CustomAuthentication required
1529
+ _a.sent();
1530
+ if (userId !== undefined) {
1531
+ localVarQueryParameter['userId'] = userId;
1532
+ }
1533
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1534
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1535
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1536
+ return [2 /*return*/, {
1537
+ url: (0, common_1.toPathString)(localVarUrlObj),
1538
+ options: localVarRequestOptions,
1539
+ }];
1540
+ }
1541
+ });
1542
+ });
1543
+ },
1544
+ /**
1545
+ *
1546
+ * @summary Gets live tv recordings.
1547
+ * @param {string} [channelId] Optional. Filter by channel id.
1548
+ * @param {string} [userId] Optional. Filter by user and attach user data.
1549
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
1550
+ * @param {number} [limit] Optional. The maximum number of records to return.
1551
+ * @param {RecordingStatus} [status] Optional. Filter by recording status.
1552
+ * @param {boolean} [isInProgress] Optional. Filter by recordings that are in progress, or not.
1553
+ * @param {string} [seriesTimerId] Optional. Filter by recordings belonging to a series timer.
1554
+ * @param {boolean} [enableImages] Optional. Include image information in output.
1555
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
1556
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
1557
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
1558
+ * @param {boolean} [enableUserData] Optional. Include user data.
1559
+ * @param {boolean} [isMovie] Optional. Filter for movies.
1560
+ * @param {boolean} [isSeries] Optional. Filter for series.
1561
+ * @param {boolean} [isKids] Optional. Filter for kids.
1562
+ * @param {boolean} [isSports] Optional. Filter for sports.
1563
+ * @param {boolean} [isNews] Optional. Filter for news.
1564
+ * @param {boolean} [isLibraryItem] Optional. Filter for is library item.
1565
+ * @param {boolean} [enableTotalRecordCount] Optional. Return total record count.
1566
+ * @param {*} [options] Override http request option.
1567
+ * @throws {RequiredError}
1568
+ */
1569
+ getRecordings: function (channelId, userId, startIndex, limit, status, isInProgress, seriesTimerId, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, isMovie, isSeries, isKids, isSports, isNews, isLibraryItem, enableTotalRecordCount, options) {
1570
+ if (options === void 0) { options = {}; }
1571
+ return __awaiter(_this, void 0, void 0, function () {
1572
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1573
+ return __generator(this, function (_a) {
1574
+ switch (_a.label) {
1575
+ case 0:
1576
+ localVarPath = "/LiveTv/Recordings";
1577
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1578
+ if (configuration) {
1579
+ baseOptions = configuration.baseOptions;
1580
+ }
1581
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1582
+ localVarHeaderParameter = {};
1583
+ localVarQueryParameter = {};
1584
+ // authentication CustomAuthentication required
1585
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1586
+ case 1:
1587
+ // authentication CustomAuthentication required
1588
+ _a.sent();
1589
+ if (channelId !== undefined) {
1590
+ localVarQueryParameter['channelId'] = channelId;
1591
+ }
1592
+ if (userId !== undefined) {
1593
+ localVarQueryParameter['userId'] = userId;
1594
+ }
1595
+ if (startIndex !== undefined) {
1596
+ localVarQueryParameter['startIndex'] = startIndex;
1597
+ }
1598
+ if (limit !== undefined) {
1599
+ localVarQueryParameter['limit'] = limit;
1600
+ }
1601
+ if (status !== undefined) {
1602
+ localVarQueryParameter['status'] = status;
1603
+ }
1604
+ if (isInProgress !== undefined) {
1605
+ localVarQueryParameter['isInProgress'] = isInProgress;
1606
+ }
1607
+ if (seriesTimerId !== undefined) {
1608
+ localVarQueryParameter['seriesTimerId'] = seriesTimerId;
1609
+ }
1610
+ if (enableImages !== undefined) {
1611
+ localVarQueryParameter['enableImages'] = enableImages;
1612
+ }
1613
+ if (imageTypeLimit !== undefined) {
1614
+ localVarQueryParameter['imageTypeLimit'] = imageTypeLimit;
1615
+ }
1616
+ if (enableImageTypes) {
1617
+ localVarQueryParameter['enableImageTypes'] = enableImageTypes;
1618
+ }
1619
+ if (fields) {
1620
+ localVarQueryParameter['fields'] = fields;
1621
+ }
1622
+ if (enableUserData !== undefined) {
1623
+ localVarQueryParameter['enableUserData'] = enableUserData;
1624
+ }
1625
+ if (isMovie !== undefined) {
1626
+ localVarQueryParameter['isMovie'] = isMovie;
1627
+ }
1628
+ if (isSeries !== undefined) {
1629
+ localVarQueryParameter['isSeries'] = isSeries;
1630
+ }
1631
+ if (isKids !== undefined) {
1632
+ localVarQueryParameter['isKids'] = isKids;
1633
+ }
1634
+ if (isSports !== undefined) {
1635
+ localVarQueryParameter['isSports'] = isSports;
1636
+ }
1637
+ if (isNews !== undefined) {
1638
+ localVarQueryParameter['isNews'] = isNews;
1639
+ }
1640
+ if (isLibraryItem !== undefined) {
1641
+ localVarQueryParameter['isLibraryItem'] = isLibraryItem;
1642
+ }
1643
+ if (enableTotalRecordCount !== undefined) {
1644
+ localVarQueryParameter['enableTotalRecordCount'] = enableTotalRecordCount;
1645
+ }
1646
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1647
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1648
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1649
+ return [2 /*return*/, {
1650
+ url: (0, common_1.toPathString)(localVarUrlObj),
1651
+ options: localVarRequestOptions,
1652
+ }];
1653
+ }
1654
+ });
1655
+ });
1656
+ },
1657
+ /**
1658
+ *
1659
+ * @summary Gets live tv recording series.
1660
+ * @param {string} [channelId] Optional. Filter by channel id.
1661
+ * @param {string} [userId] Optional. Filter by user and attach user data.
1662
+ * @param {string} [groupId] Optional. Filter by recording group.
1663
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
1664
+ * @param {number} [limit] Optional. The maximum number of records to return.
1665
+ * @param {RecordingStatus} [status] Optional. Filter by recording status.
1666
+ * @param {boolean} [isInProgress] Optional. Filter by recordings that are in progress, or not.
1667
+ * @param {string} [seriesTimerId] Optional. Filter by recordings belonging to a series timer.
1668
+ * @param {boolean} [enableImages] Optional. Include image information in output.
1669
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
1670
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
1671
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
1672
+ * @param {boolean} [enableUserData] Optional. Include user data.
1673
+ * @param {boolean} [enableTotalRecordCount] Optional. Return total record count.
1674
+ * @param {*} [options] Override http request option.
1675
+ * @deprecated
1676
+ * @throws {RequiredError}
1677
+ */
1678
+ getRecordingsSeries: function (channelId, userId, groupId, startIndex, limit, status, isInProgress, seriesTimerId, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, enableTotalRecordCount, options) {
1679
+ if (options === void 0) { options = {}; }
1680
+ return __awaiter(_this, void 0, void 0, function () {
1681
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1682
+ return __generator(this, function (_a) {
1683
+ switch (_a.label) {
1684
+ case 0:
1685
+ localVarPath = "/LiveTv/Recordings/Series";
1686
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1687
+ if (configuration) {
1688
+ baseOptions = configuration.baseOptions;
1689
+ }
1690
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1691
+ localVarHeaderParameter = {};
1692
+ localVarQueryParameter = {};
1693
+ // authentication CustomAuthentication required
1694
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1695
+ case 1:
1696
+ // authentication CustomAuthentication required
1697
+ _a.sent();
1698
+ if (channelId !== undefined) {
1699
+ localVarQueryParameter['channelId'] = channelId;
1700
+ }
1701
+ if (userId !== undefined) {
1702
+ localVarQueryParameter['userId'] = userId;
1703
+ }
1704
+ if (groupId !== undefined) {
1705
+ localVarQueryParameter['groupId'] = groupId;
1706
+ }
1707
+ if (startIndex !== undefined) {
1708
+ localVarQueryParameter['startIndex'] = startIndex;
1709
+ }
1710
+ if (limit !== undefined) {
1711
+ localVarQueryParameter['limit'] = limit;
1712
+ }
1713
+ if (status !== undefined) {
1714
+ localVarQueryParameter['status'] = status;
1715
+ }
1716
+ if (isInProgress !== undefined) {
1717
+ localVarQueryParameter['isInProgress'] = isInProgress;
1718
+ }
1719
+ if (seriesTimerId !== undefined) {
1720
+ localVarQueryParameter['seriesTimerId'] = seriesTimerId;
1721
+ }
1722
+ if (enableImages !== undefined) {
1723
+ localVarQueryParameter['enableImages'] = enableImages;
1724
+ }
1725
+ if (imageTypeLimit !== undefined) {
1726
+ localVarQueryParameter['imageTypeLimit'] = imageTypeLimit;
1727
+ }
1728
+ if (enableImageTypes) {
1729
+ localVarQueryParameter['enableImageTypes'] = enableImageTypes;
1730
+ }
1731
+ if (fields) {
1732
+ localVarQueryParameter['fields'] = fields;
1733
+ }
1734
+ if (enableUserData !== undefined) {
1735
+ localVarQueryParameter['enableUserData'] = enableUserData;
1736
+ }
1737
+ if (enableTotalRecordCount !== undefined) {
1738
+ localVarQueryParameter['enableTotalRecordCount'] = enableTotalRecordCount;
1739
+ }
1740
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1741
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1742
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1743
+ return [2 /*return*/, {
1744
+ url: (0, common_1.toPathString)(localVarUrlObj),
1745
+ options: localVarRequestOptions,
1746
+ }];
1747
+ }
1748
+ });
1749
+ });
1750
+ },
1751
+ /**
1752
+ *
1753
+ * @summary Gets available countries.
1754
+ * @param {*} [options] Override http request option.
1755
+ * @throws {RequiredError}
1756
+ */
1757
+ getSchedulesDirectCountries: function (options) {
1758
+ if (options === void 0) { options = {}; }
1759
+ return __awaiter(_this, void 0, void 0, function () {
1760
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1761
+ return __generator(this, function (_a) {
1762
+ switch (_a.label) {
1763
+ case 0:
1764
+ localVarPath = "/LiveTv/ListingProviders/SchedulesDirect/Countries";
1765
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1766
+ if (configuration) {
1767
+ baseOptions = configuration.baseOptions;
1768
+ }
1769
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1770
+ localVarHeaderParameter = {};
1771
+ localVarQueryParameter = {};
1772
+ // authentication CustomAuthentication required
1773
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1774
+ case 1:
1775
+ // authentication CustomAuthentication required
1776
+ _a.sent();
1777
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1778
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1779
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1780
+ return [2 /*return*/, {
1781
+ url: (0, common_1.toPathString)(localVarUrlObj),
1782
+ options: localVarRequestOptions,
1783
+ }];
1784
+ }
1785
+ });
1786
+ });
1787
+ },
1788
+ /**
1789
+ *
1790
+ * @summary Gets a live tv series timer.
1791
+ * @param {string} timerId Timer id.
1792
+ * @param {*} [options] Override http request option.
1793
+ * @throws {RequiredError}
1794
+ */
1795
+ getSeriesTimer: function (timerId, options) {
1796
+ if (options === void 0) { options = {}; }
1797
+ return __awaiter(_this, void 0, void 0, function () {
1798
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1799
+ return __generator(this, function (_a) {
1800
+ switch (_a.label) {
1801
+ case 0:
1802
+ // verify required parameter 'timerId' is not null or undefined
1803
+ (0, common_1.assertParamExists)('getSeriesTimer', 'timerId', timerId);
1804
+ localVarPath = "/LiveTv/SeriesTimers/{timerId}"
1805
+ .replace("{".concat("timerId", "}"), encodeURIComponent(String(timerId)));
1806
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1807
+ if (configuration) {
1808
+ baseOptions = configuration.baseOptions;
1809
+ }
1810
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1811
+ localVarHeaderParameter = {};
1812
+ localVarQueryParameter = {};
1813
+ // authentication CustomAuthentication required
1814
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1815
+ case 1:
1816
+ // authentication CustomAuthentication required
1817
+ _a.sent();
1818
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1819
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1820
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1821
+ return [2 /*return*/, {
1822
+ url: (0, common_1.toPathString)(localVarUrlObj),
1823
+ options: localVarRequestOptions,
1824
+ }];
1825
+ }
1826
+ });
1827
+ });
1828
+ },
1829
+ /**
1830
+ *
1831
+ * @summary Gets live tv series timers.
1832
+ * @param {string} [sortBy] Optional. Sort by SortName or Priority.
1833
+ * @param {SortOrder} [sortOrder] Optional. Sort in Ascending or Descending order.
1834
+ * @param {*} [options] Override http request option.
1835
+ * @throws {RequiredError}
1836
+ */
1837
+ getSeriesTimers: function (sortBy, sortOrder, options) {
1838
+ if (options === void 0) { options = {}; }
1839
+ return __awaiter(_this, void 0, void 0, function () {
1840
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1841
+ return __generator(this, function (_a) {
1842
+ switch (_a.label) {
1843
+ case 0:
1844
+ localVarPath = "/LiveTv/SeriesTimers";
1845
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1846
+ if (configuration) {
1847
+ baseOptions = configuration.baseOptions;
1848
+ }
1849
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1850
+ localVarHeaderParameter = {};
1851
+ localVarQueryParameter = {};
1852
+ // authentication CustomAuthentication required
1853
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1854
+ case 1:
1855
+ // authentication CustomAuthentication required
1856
+ _a.sent();
1857
+ if (sortBy !== undefined) {
1858
+ localVarQueryParameter['sortBy'] = sortBy;
1859
+ }
1860
+ if (sortOrder !== undefined) {
1861
+ localVarQueryParameter['sortOrder'] = sortOrder;
1862
+ }
1863
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1864
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1865
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1866
+ return [2 /*return*/, {
1867
+ url: (0, common_1.toPathString)(localVarUrlObj),
1868
+ options: localVarRequestOptions,
1869
+ }];
1870
+ }
1871
+ });
1872
+ });
1873
+ },
1874
+ /**
1875
+ *
1876
+ * @summary Gets a timer.
1877
+ * @param {string} timerId Timer id.
1878
+ * @param {*} [options] Override http request option.
1879
+ * @throws {RequiredError}
1880
+ */
1881
+ getTimer: function (timerId, options) {
1882
+ if (options === void 0) { options = {}; }
1883
+ return __awaiter(_this, void 0, void 0, function () {
1884
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1885
+ return __generator(this, function (_a) {
1886
+ switch (_a.label) {
1887
+ case 0:
1888
+ // verify required parameter 'timerId' is not null or undefined
1889
+ (0, common_1.assertParamExists)('getTimer', 'timerId', timerId);
1890
+ localVarPath = "/LiveTv/Timers/{timerId}"
1891
+ .replace("{".concat("timerId", "}"), encodeURIComponent(String(timerId)));
1892
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1893
+ if (configuration) {
1894
+ baseOptions = configuration.baseOptions;
1895
+ }
1896
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1897
+ localVarHeaderParameter = {};
1898
+ localVarQueryParameter = {};
1899
+ // authentication CustomAuthentication required
1900
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1901
+ case 1:
1902
+ // authentication CustomAuthentication required
1903
+ _a.sent();
1904
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1905
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1906
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1907
+ return [2 /*return*/, {
1908
+ url: (0, common_1.toPathString)(localVarUrlObj),
1909
+ options: localVarRequestOptions,
1910
+ }];
1911
+ }
1912
+ });
1913
+ });
1914
+ },
1915
+ /**
1916
+ *
1917
+ * @summary Gets the live tv timers.
1918
+ * @param {string} [channelId] Optional. Filter by channel id.
1919
+ * @param {string} [seriesTimerId] Optional. Filter by timers belonging to a series timer.
1920
+ * @param {boolean} [isActive] Optional. Filter by timers that are active.
1921
+ * @param {boolean} [isScheduled] Optional. Filter by timers that are scheduled.
1922
+ * @param {*} [options] Override http request option.
1923
+ * @throws {RequiredError}
1924
+ */
1925
+ getTimers: function (channelId, seriesTimerId, isActive, isScheduled, options) {
1926
+ if (options === void 0) { options = {}; }
1927
+ return __awaiter(_this, void 0, void 0, function () {
1928
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1929
+ return __generator(this, function (_a) {
1930
+ switch (_a.label) {
1931
+ case 0:
1932
+ localVarPath = "/LiveTv/Timers";
1933
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1934
+ if (configuration) {
1935
+ baseOptions = configuration.baseOptions;
1936
+ }
1937
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1938
+ localVarHeaderParameter = {};
1939
+ localVarQueryParameter = {};
1940
+ // authentication CustomAuthentication required
1941
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1942
+ case 1:
1943
+ // authentication CustomAuthentication required
1944
+ _a.sent();
1945
+ if (channelId !== undefined) {
1946
+ localVarQueryParameter['channelId'] = channelId;
1947
+ }
1948
+ if (seriesTimerId !== undefined) {
1949
+ localVarQueryParameter['seriesTimerId'] = seriesTimerId;
1950
+ }
1951
+ if (isActive !== undefined) {
1952
+ localVarQueryParameter['isActive'] = isActive;
1953
+ }
1954
+ if (isScheduled !== undefined) {
1955
+ localVarQueryParameter['isScheduled'] = isScheduled;
1956
+ }
1957
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1958
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1959
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1960
+ return [2 /*return*/, {
1961
+ url: (0, common_1.toPathString)(localVarUrlObj),
1962
+ options: localVarRequestOptions,
1963
+ }];
1964
+ }
1965
+ });
1966
+ });
1967
+ },
1968
+ /**
1969
+ *
1970
+ * @summary Get tuner host types.
1971
+ * @param {*} [options] Override http request option.
1972
+ * @throws {RequiredError}
1973
+ */
1974
+ getTunerHostTypes: function (options) {
1975
+ if (options === void 0) { options = {}; }
1976
+ return __awaiter(_this, void 0, void 0, function () {
1977
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1978
+ return __generator(this, function (_a) {
1979
+ switch (_a.label) {
1980
+ case 0:
1981
+ localVarPath = "/LiveTv/TunerHosts/Types";
1982
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1983
+ if (configuration) {
1984
+ baseOptions = configuration.baseOptions;
1985
+ }
1986
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1987
+ localVarHeaderParameter = {};
1988
+ localVarQueryParameter = {};
1989
+ // authentication CustomAuthentication required
1990
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
1991
+ case 1:
1992
+ // authentication CustomAuthentication required
1993
+ _a.sent();
1994
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
1995
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1996
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1997
+ return [2 /*return*/, {
1998
+ url: (0, common_1.toPathString)(localVarUrlObj),
1999
+ options: localVarRequestOptions,
2000
+ }];
2001
+ }
2002
+ });
2003
+ });
2004
+ },
2005
+ /**
2006
+ *
2007
+ * @summary Resets a tv tuner.
2008
+ * @param {string} tunerId Tuner id.
2009
+ * @param {*} [options] Override http request option.
2010
+ * @throws {RequiredError}
2011
+ */
2012
+ resetTuner: function (tunerId, options) {
2013
+ if (options === void 0) { options = {}; }
2014
+ return __awaiter(_this, void 0, void 0, function () {
2015
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2016
+ return __generator(this, function (_a) {
2017
+ switch (_a.label) {
2018
+ case 0:
2019
+ // verify required parameter 'tunerId' is not null or undefined
2020
+ (0, common_1.assertParamExists)('resetTuner', 'tunerId', tunerId);
2021
+ localVarPath = "/LiveTv/Tuners/{tunerId}/Reset"
2022
+ .replace("{".concat("tunerId", "}"), encodeURIComponent(String(tunerId)));
2023
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2024
+ if (configuration) {
2025
+ baseOptions = configuration.baseOptions;
2026
+ }
2027
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2028
+ localVarHeaderParameter = {};
2029
+ localVarQueryParameter = {};
2030
+ // authentication CustomAuthentication required
2031
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2032
+ case 1:
2033
+ // authentication CustomAuthentication required
2034
+ _a.sent();
2035
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
2036
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2037
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2038
+ return [2 /*return*/, {
2039
+ url: (0, common_1.toPathString)(localVarUrlObj),
2040
+ options: localVarRequestOptions,
2041
+ }];
2042
+ }
2043
+ });
2044
+ });
2045
+ },
2046
+ /**
2047
+ *
2048
+ * @summary Set channel mappings.
2049
+ * @param {SetChannelMappingDto} setChannelMappingDto The set channel mapping dto.
2050
+ * @param {*} [options] Override http request option.
2051
+ * @throws {RequiredError}
2052
+ */
2053
+ setChannelMapping: function (setChannelMappingDto, options) {
2054
+ if (options === void 0) { options = {}; }
2055
+ return __awaiter(_this, void 0, void 0, function () {
2056
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2057
+ return __generator(this, function (_a) {
2058
+ switch (_a.label) {
2059
+ case 0:
2060
+ // verify required parameter 'setChannelMappingDto' is not null or undefined
2061
+ (0, common_1.assertParamExists)('setChannelMapping', 'setChannelMappingDto', setChannelMappingDto);
2062
+ localVarPath = "/LiveTv/ChannelMappings";
2063
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2064
+ if (configuration) {
2065
+ baseOptions = configuration.baseOptions;
2066
+ }
2067
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2068
+ localVarHeaderParameter = {};
2069
+ localVarQueryParameter = {};
2070
+ // authentication CustomAuthentication required
2071
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2072
+ case 1:
2073
+ // authentication CustomAuthentication required
2074
+ _a.sent();
2075
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2076
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
2077
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2078
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2079
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setChannelMappingDto, localVarRequestOptions, configuration);
2080
+ return [2 /*return*/, {
2081
+ url: (0, common_1.toPathString)(localVarUrlObj),
2082
+ options: localVarRequestOptions,
2083
+ }];
2084
+ }
2085
+ });
2086
+ });
2087
+ },
2088
+ /**
2089
+ *
2090
+ * @summary Updates a live tv series timer.
2091
+ * @param {string} timerId Timer id.
2092
+ * @param {SeriesTimerInfoDto} [seriesTimerInfoDto] New series timer info.
2093
+ * @param {*} [options] Override http request option.
2094
+ * @throws {RequiredError}
2095
+ */
2096
+ updateSeriesTimer: function (timerId, seriesTimerInfoDto, options) {
2097
+ if (options === void 0) { options = {}; }
2098
+ return __awaiter(_this, void 0, void 0, function () {
2099
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2100
+ return __generator(this, function (_a) {
2101
+ switch (_a.label) {
2102
+ case 0:
2103
+ // verify required parameter 'timerId' is not null or undefined
2104
+ (0, common_1.assertParamExists)('updateSeriesTimer', 'timerId', timerId);
2105
+ localVarPath = "/LiveTv/SeriesTimers/{timerId}"
2106
+ .replace("{".concat("timerId", "}"), encodeURIComponent(String(timerId)));
2107
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2108
+ if (configuration) {
2109
+ baseOptions = configuration.baseOptions;
2110
+ }
2111
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2112
+ localVarHeaderParameter = {};
2113
+ localVarQueryParameter = {};
2114
+ // authentication CustomAuthentication required
2115
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2116
+ case 1:
2117
+ // authentication CustomAuthentication required
2118
+ _a.sent();
2119
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2120
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
2121
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2122
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2123
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(seriesTimerInfoDto, localVarRequestOptions, configuration);
2124
+ return [2 /*return*/, {
2125
+ url: (0, common_1.toPathString)(localVarUrlObj),
2126
+ options: localVarRequestOptions,
2127
+ }];
2128
+ }
2129
+ });
2130
+ });
2131
+ },
2132
+ /**
2133
+ *
2134
+ * @summary Updates a live tv timer.
2135
+ * @param {string} timerId Timer id.
2136
+ * @param {TimerInfoDto} [timerInfoDto] New timer info.
2137
+ * @param {*} [options] Override http request option.
2138
+ * @throws {RequiredError}
2139
+ */
2140
+ updateTimer: function (timerId, timerInfoDto, options) {
2141
+ if (options === void 0) { options = {}; }
2142
+ return __awaiter(_this, void 0, void 0, function () {
2143
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2144
+ return __generator(this, function (_a) {
2145
+ switch (_a.label) {
2146
+ case 0:
2147
+ // verify required parameter 'timerId' is not null or undefined
2148
+ (0, common_1.assertParamExists)('updateTimer', 'timerId', timerId);
2149
+ localVarPath = "/LiveTv/Timers/{timerId}"
2150
+ .replace("{".concat("timerId", "}"), encodeURIComponent(String(timerId)));
2151
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2152
+ if (configuration) {
2153
+ baseOptions = configuration.baseOptions;
2154
+ }
2155
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2156
+ localVarHeaderParameter = {};
2157
+ localVarQueryParameter = {};
2158
+ // authentication CustomAuthentication required
2159
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
2160
+ case 1:
2161
+ // authentication CustomAuthentication required
2162
+ _a.sent();
2163
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2164
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
2165
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2166
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2167
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(timerInfoDto, localVarRequestOptions, configuration);
2168
+ return [2 /*return*/, {
2169
+ url: (0, common_1.toPathString)(localVarUrlObj),
2170
+ options: localVarRequestOptions,
2171
+ }];
2172
+ }
2173
+ });
2174
+ });
2175
+ },
2176
+ };
2177
+ };
2178
+ exports.LiveTvApiAxiosParamCreator = LiveTvApiAxiosParamCreator;
2179
+ /**
2180
+ * LiveTvApi - functional programming interface
2181
+ * @export
2182
+ */
2183
+ var LiveTvApiFp = function (configuration) {
2184
+ var localVarAxiosParamCreator = (0, exports.LiveTvApiAxiosParamCreator)(configuration);
2185
+ return {
2186
+ /**
2187
+ *
2188
+ * @summary Adds a listings provider.
2189
+ * @param {string} [pw] Password.
2190
+ * @param {boolean} [validateListings] Validate listings.
2191
+ * @param {boolean} [validateLogin] Validate login.
2192
+ * @param {ListingsProviderInfo} [listingsProviderInfo] New listings info.
2193
+ * @param {*} [options] Override http request option.
2194
+ * @throws {RequiredError}
2195
+ */
2196
+ addListingProvider: function (pw, validateListings, validateLogin, listingsProviderInfo, options) {
2197
+ return __awaiter(this, void 0, void 0, function () {
2198
+ var localVarAxiosArgs;
2199
+ return __generator(this, function (_a) {
2200
+ switch (_a.label) {
2201
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addListingProvider(pw, validateListings, validateLogin, listingsProviderInfo, options)];
2202
+ case 1:
2203
+ localVarAxiosArgs = _a.sent();
2204
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2205
+ }
2206
+ });
2207
+ });
2208
+ },
2209
+ /**
2210
+ *
2211
+ * @summary Adds a tuner host.
2212
+ * @param {TunerHostInfo} [tunerHostInfo] New tuner host.
2213
+ * @param {*} [options] Override http request option.
2214
+ * @throws {RequiredError}
2215
+ */
2216
+ addTunerHost: function (tunerHostInfo, options) {
2217
+ return __awaiter(this, void 0, void 0, function () {
2218
+ var localVarAxiosArgs;
2219
+ return __generator(this, function (_a) {
2220
+ switch (_a.label) {
2221
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addTunerHost(tunerHostInfo, options)];
2222
+ case 1:
2223
+ localVarAxiosArgs = _a.sent();
2224
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2225
+ }
2226
+ });
2227
+ });
2228
+ },
2229
+ /**
2230
+ *
2231
+ * @summary Cancels a live tv series timer.
2232
+ * @param {string} timerId Timer id.
2233
+ * @param {*} [options] Override http request option.
2234
+ * @throws {RequiredError}
2235
+ */
2236
+ cancelSeriesTimer: function (timerId, options) {
2237
+ return __awaiter(this, void 0, void 0, function () {
2238
+ var localVarAxiosArgs;
2239
+ return __generator(this, function (_a) {
2240
+ switch (_a.label) {
2241
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.cancelSeriesTimer(timerId, options)];
2242
+ case 1:
2243
+ localVarAxiosArgs = _a.sent();
2244
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2245
+ }
2246
+ });
2247
+ });
2248
+ },
2249
+ /**
2250
+ *
2251
+ * @summary Cancels a live tv timer.
2252
+ * @param {string} timerId Timer id.
2253
+ * @param {*} [options] Override http request option.
2254
+ * @throws {RequiredError}
2255
+ */
2256
+ cancelTimer: function (timerId, options) {
2257
+ return __awaiter(this, void 0, void 0, function () {
2258
+ var localVarAxiosArgs;
2259
+ return __generator(this, function (_a) {
2260
+ switch (_a.label) {
2261
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.cancelTimer(timerId, options)];
2262
+ case 1:
2263
+ localVarAxiosArgs = _a.sent();
2264
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2265
+ }
2266
+ });
2267
+ });
2268
+ },
2269
+ /**
2270
+ *
2271
+ * @summary Creates a live tv series timer.
2272
+ * @param {SeriesTimerInfoDto} [seriesTimerInfoDto] New series timer info.
2273
+ * @param {*} [options] Override http request option.
2274
+ * @throws {RequiredError}
2275
+ */
2276
+ createSeriesTimer: function (seriesTimerInfoDto, options) {
2277
+ return __awaiter(this, void 0, void 0, function () {
2278
+ var localVarAxiosArgs;
2279
+ return __generator(this, function (_a) {
2280
+ switch (_a.label) {
2281
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createSeriesTimer(seriesTimerInfoDto, options)];
2282
+ case 1:
2283
+ localVarAxiosArgs = _a.sent();
2284
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2285
+ }
2286
+ });
2287
+ });
2288
+ },
2289
+ /**
2290
+ *
2291
+ * @summary Creates a live tv timer.
2292
+ * @param {TimerInfoDto} [timerInfoDto] New timer info.
2293
+ * @param {*} [options] Override http request option.
2294
+ * @throws {RequiredError}
2295
+ */
2296
+ createTimer: function (timerInfoDto, options) {
2297
+ return __awaiter(this, void 0, void 0, function () {
2298
+ var localVarAxiosArgs;
2299
+ return __generator(this, function (_a) {
2300
+ switch (_a.label) {
2301
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createTimer(timerInfoDto, options)];
2302
+ case 1:
2303
+ localVarAxiosArgs = _a.sent();
2304
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2305
+ }
2306
+ });
2307
+ });
2308
+ },
2309
+ /**
2310
+ *
2311
+ * @summary Delete listing provider.
2312
+ * @param {string} [id] Listing provider id.
2313
+ * @param {*} [options] Override http request option.
2314
+ * @throws {RequiredError}
2315
+ */
2316
+ deleteListingProvider: function (id, options) {
2317
+ return __awaiter(this, void 0, void 0, function () {
2318
+ var localVarAxiosArgs;
2319
+ return __generator(this, function (_a) {
2320
+ switch (_a.label) {
2321
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteListingProvider(id, options)];
2322
+ case 1:
2323
+ localVarAxiosArgs = _a.sent();
2324
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2325
+ }
2326
+ });
2327
+ });
2328
+ },
2329
+ /**
2330
+ *
2331
+ * @summary Deletes a live tv recording.
2332
+ * @param {string} recordingId Recording id.
2333
+ * @param {*} [options] Override http request option.
2334
+ * @throws {RequiredError}
2335
+ */
2336
+ deleteRecording: function (recordingId, options) {
2337
+ return __awaiter(this, void 0, void 0, function () {
2338
+ var localVarAxiosArgs;
2339
+ return __generator(this, function (_a) {
2340
+ switch (_a.label) {
2341
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteRecording(recordingId, options)];
2342
+ case 1:
2343
+ localVarAxiosArgs = _a.sent();
2344
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2345
+ }
2346
+ });
2347
+ });
2348
+ },
2349
+ /**
2350
+ *
2351
+ * @summary Deletes a tuner host.
2352
+ * @param {string} [id] Tuner host id.
2353
+ * @param {*} [options] Override http request option.
2354
+ * @throws {RequiredError}
2355
+ */
2356
+ deleteTunerHost: function (id, options) {
2357
+ return __awaiter(this, void 0, void 0, function () {
2358
+ var localVarAxiosArgs;
2359
+ return __generator(this, function (_a) {
2360
+ switch (_a.label) {
2361
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteTunerHost(id, options)];
2362
+ case 1:
2363
+ localVarAxiosArgs = _a.sent();
2364
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2365
+ }
2366
+ });
2367
+ });
2368
+ },
2369
+ /**
2370
+ *
2371
+ * @summary Discover tuners.
2372
+ * @param {boolean} [newDevicesOnly] Only discover new tuners.
2373
+ * @param {*} [options] Override http request option.
2374
+ * @throws {RequiredError}
2375
+ */
2376
+ discoverTuners: function (newDevicesOnly, options) {
2377
+ return __awaiter(this, void 0, void 0, function () {
2378
+ var localVarAxiosArgs;
2379
+ return __generator(this, function (_a) {
2380
+ switch (_a.label) {
2381
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.discoverTuners(newDevicesOnly, options)];
2382
+ case 1:
2383
+ localVarAxiosArgs = _a.sent();
2384
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2385
+ }
2386
+ });
2387
+ });
2388
+ },
2389
+ /**
2390
+ *
2391
+ * @summary Discover tuners.
2392
+ * @param {boolean} [newDevicesOnly] Only discover new tuners.
2393
+ * @param {*} [options] Override http request option.
2394
+ * @throws {RequiredError}
2395
+ */
2396
+ discvoverTuners: function (newDevicesOnly, options) {
2397
+ return __awaiter(this, void 0, void 0, function () {
2398
+ var localVarAxiosArgs;
2399
+ return __generator(this, function (_a) {
2400
+ switch (_a.label) {
2401
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.discvoverTuners(newDevicesOnly, options)];
2402
+ case 1:
2403
+ localVarAxiosArgs = _a.sent();
2404
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2405
+ }
2406
+ });
2407
+ });
2408
+ },
2409
+ /**
2410
+ *
2411
+ * @summary Gets a live tv channel.
2412
+ * @param {string} channelId Channel id.
2413
+ * @param {string} [userId] Optional. Attach user data.
2414
+ * @param {*} [options] Override http request option.
2415
+ * @throws {RequiredError}
2416
+ */
2417
+ getChannel: function (channelId, userId, options) {
2418
+ return __awaiter(this, void 0, void 0, function () {
2419
+ var localVarAxiosArgs;
2420
+ return __generator(this, function (_a) {
2421
+ switch (_a.label) {
2422
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getChannel(channelId, userId, options)];
2423
+ case 1:
2424
+ localVarAxiosArgs = _a.sent();
2425
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2426
+ }
2427
+ });
2428
+ });
2429
+ },
2430
+ /**
2431
+ *
2432
+ * @summary Get channel mapping options.
2433
+ * @param {string} [providerId] Provider id.
2434
+ * @param {*} [options] Override http request option.
2435
+ * @throws {RequiredError}
2436
+ */
2437
+ getChannelMappingOptions: function (providerId, options) {
2438
+ return __awaiter(this, void 0, void 0, function () {
2439
+ var localVarAxiosArgs;
2440
+ return __generator(this, function (_a) {
2441
+ switch (_a.label) {
2442
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getChannelMappingOptions(providerId, options)];
2443
+ case 1:
2444
+ localVarAxiosArgs = _a.sent();
2445
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2446
+ }
2447
+ });
2448
+ });
2449
+ },
2450
+ /**
2451
+ *
2452
+ * @summary Gets default listings provider info.
2453
+ * @param {*} [options] Override http request option.
2454
+ * @throws {RequiredError}
2455
+ */
2456
+ getDefaultListingProvider: function (options) {
2457
+ return __awaiter(this, void 0, void 0, function () {
2458
+ var localVarAxiosArgs;
2459
+ return __generator(this, function (_a) {
2460
+ switch (_a.label) {
2461
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDefaultListingProvider(options)];
2462
+ case 1:
2463
+ localVarAxiosArgs = _a.sent();
2464
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2465
+ }
2466
+ });
2467
+ });
2468
+ },
2469
+ /**
2470
+ *
2471
+ * @summary Gets the default values for a new timer.
2472
+ * @param {string} [programId] Optional. To attach default values based on a program.
2473
+ * @param {*} [options] Override http request option.
2474
+ * @throws {RequiredError}
2475
+ */
2476
+ getDefaultTimer: function (programId, options) {
2477
+ return __awaiter(this, void 0, void 0, function () {
2478
+ var localVarAxiosArgs;
2479
+ return __generator(this, function (_a) {
2480
+ switch (_a.label) {
2481
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDefaultTimer(programId, options)];
2482
+ case 1:
2483
+ localVarAxiosArgs = _a.sent();
2484
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2485
+ }
2486
+ });
2487
+ });
2488
+ },
2489
+ /**
2490
+ *
2491
+ * @summary Get guid info.
2492
+ * @param {*} [options] Override http request option.
2493
+ * @throws {RequiredError}
2494
+ */
2495
+ getGuideInfo: function (options) {
2496
+ return __awaiter(this, void 0, void 0, function () {
2497
+ var localVarAxiosArgs;
2498
+ return __generator(this, function (_a) {
2499
+ switch (_a.label) {
2500
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGuideInfo(options)];
2501
+ case 1:
2502
+ localVarAxiosArgs = _a.sent();
2503
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2504
+ }
2505
+ });
2506
+ });
2507
+ },
2508
+ /**
2509
+ *
2510
+ * @summary Gets available lineups.
2511
+ * @param {string} [id] Provider id.
2512
+ * @param {string} [type] Provider type.
2513
+ * @param {string} [location] Location.
2514
+ * @param {string} [country] Country.
2515
+ * @param {*} [options] Override http request option.
2516
+ * @throws {RequiredError}
2517
+ */
2518
+ getLineups: function (id, type, location, country, options) {
2519
+ return __awaiter(this, void 0, void 0, function () {
2520
+ var localVarAxiosArgs;
2521
+ return __generator(this, function (_a) {
2522
+ switch (_a.label) {
2523
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLineups(id, type, location, country, options)];
2524
+ case 1:
2525
+ localVarAxiosArgs = _a.sent();
2526
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2527
+ }
2528
+ });
2529
+ });
2530
+ },
2531
+ /**
2532
+ *
2533
+ * @summary Gets a live tv recording stream.
2534
+ * @param {string} recordingId Recording id.
2535
+ * @param {*} [options] Override http request option.
2536
+ * @throws {RequiredError}
2537
+ */
2538
+ getLiveRecordingFile: function (recordingId, options) {
2539
+ return __awaiter(this, void 0, void 0, function () {
2540
+ var localVarAxiosArgs;
2541
+ return __generator(this, function (_a) {
2542
+ switch (_a.label) {
2543
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLiveRecordingFile(recordingId, options)];
2544
+ case 1:
2545
+ localVarAxiosArgs = _a.sent();
2546
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2547
+ }
2548
+ });
2549
+ });
2550
+ },
2551
+ /**
2552
+ *
2553
+ * @summary Gets a live tv channel stream.
2554
+ * @param {string} streamId Stream id.
2555
+ * @param {string} container Container type.
2556
+ * @param {*} [options] Override http request option.
2557
+ * @throws {RequiredError}
2558
+ */
2559
+ getLiveStreamFile: function (streamId, container, options) {
2560
+ return __awaiter(this, void 0, void 0, function () {
2561
+ var localVarAxiosArgs;
2562
+ return __generator(this, function (_a) {
2563
+ switch (_a.label) {
2564
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLiveStreamFile(streamId, container, options)];
2565
+ case 1:
2566
+ localVarAxiosArgs = _a.sent();
2567
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2568
+ }
2569
+ });
2570
+ });
2571
+ },
2572
+ /**
2573
+ *
2574
+ * @summary Gets available live tv channels.
2575
+ * @param {ChannelType} [type] Optional. Filter by channel type.
2576
+ * @param {string} [userId] Optional. Filter by user and attach user data.
2577
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
2578
+ * @param {boolean} [isMovie] Optional. Filter for movies.
2579
+ * @param {boolean} [isSeries] Optional. Filter for series.
2580
+ * @param {boolean} [isNews] Optional. Filter for news.
2581
+ * @param {boolean} [isKids] Optional. Filter for kids.
2582
+ * @param {boolean} [isSports] Optional. Filter for sports.
2583
+ * @param {number} [limit] Optional. The maximum number of records to return.
2584
+ * @param {boolean} [isFavorite] Optional. Filter by channels that are favorites, or not.
2585
+ * @param {boolean} [isLiked] Optional. Filter by channels that are liked, or not.
2586
+ * @param {boolean} [isDisliked] Optional. Filter by channels that are disliked, or not.
2587
+ * @param {boolean} [enableImages] Optional. Include image information in output.
2588
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
2589
+ * @param {Array<ImageType>} [enableImageTypes] \&quot;Optional. The image types to include in the output.
2590
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
2591
+ * @param {boolean} [enableUserData] Optional. Include user data.
2592
+ * @param {Array<string>} [sortBy] Optional. Key to sort by.
2593
+ * @param {SortOrder} [sortOrder] Optional. Sort order.
2594
+ * @param {boolean} [enableFavoriteSorting] Optional. Incorporate favorite and like status into channel sorting.
2595
+ * @param {boolean} [addCurrentProgram] Optional. Adds current program info to each channel.
2596
+ * @param {*} [options] Override http request option.
2597
+ * @throws {RequiredError}
2598
+ */
2599
+ getLiveTvChannels: function (type, userId, startIndex, isMovie, isSeries, isNews, isKids, isSports, limit, isFavorite, isLiked, isDisliked, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, sortBy, sortOrder, enableFavoriteSorting, addCurrentProgram, options) {
2600
+ return __awaiter(this, void 0, void 0, function () {
2601
+ var localVarAxiosArgs;
2602
+ return __generator(this, function (_a) {
2603
+ switch (_a.label) {
2604
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLiveTvChannels(type, userId, startIndex, isMovie, isSeries, isNews, isKids, isSports, limit, isFavorite, isLiked, isDisliked, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, sortBy, sortOrder, enableFavoriteSorting, addCurrentProgram, options)];
2605
+ case 1:
2606
+ localVarAxiosArgs = _a.sent();
2607
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2608
+ }
2609
+ });
2610
+ });
2611
+ },
2612
+ /**
2613
+ *
2614
+ * @summary Gets available live tv services.
2615
+ * @param {*} [options] Override http request option.
2616
+ * @throws {RequiredError}
2617
+ */
2618
+ getLiveTvInfo: function (options) {
2619
+ return __awaiter(this, void 0, void 0, function () {
2620
+ var localVarAxiosArgs;
2621
+ return __generator(this, function (_a) {
2622
+ switch (_a.label) {
2623
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLiveTvInfo(options)];
2624
+ case 1:
2625
+ localVarAxiosArgs = _a.sent();
2626
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2627
+ }
2628
+ });
2629
+ });
2630
+ },
2631
+ /**
2632
+ *
2633
+ * @summary Gets available live tv epgs.
2634
+ * @param {Array<string>} [channelIds] The channels to return guide information for.
2635
+ * @param {string} [userId] Optional. Filter by user id.
2636
+ * @param {string} [minStartDate] Optional. The minimum premiere start date.
2637
+ * @param {boolean} [hasAired] Optional. Filter by programs that have completed airing, or not.
2638
+ * @param {boolean} [isAiring] Optional. Filter by programs that are currently airing, or not.
2639
+ * @param {string} [maxStartDate] Optional. The maximum premiere start date.
2640
+ * @param {string} [minEndDate] Optional. The minimum premiere end date.
2641
+ * @param {string} [maxEndDate] Optional. The maximum premiere end date.
2642
+ * @param {boolean} [isMovie] Optional. Filter for movies.
2643
+ * @param {boolean} [isSeries] Optional. Filter for series.
2644
+ * @param {boolean} [isNews] Optional. Filter for news.
2645
+ * @param {boolean} [isKids] Optional. Filter for kids.
2646
+ * @param {boolean} [isSports] Optional. Filter for sports.
2647
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
2648
+ * @param {number} [limit] Optional. The maximum number of records to return.
2649
+ * @param {Array<string>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Name, StartDate.
2650
+ * @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
2651
+ * @param {Array<string>} [genres] The genres to return guide information for.
2652
+ * @param {Array<string>} [genreIds] The genre ids to return guide information for.
2653
+ * @param {boolean} [enableImages] Optional. Include image information in output.
2654
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
2655
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
2656
+ * @param {boolean} [enableUserData] Optional. Include user data.
2657
+ * @param {string} [seriesTimerId] Optional. Filter by series timer id.
2658
+ * @param {string} [librarySeriesId] Optional. Filter by library series id.
2659
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
2660
+ * @param {boolean} [enableTotalRecordCount] Retrieve total record count.
2661
+ * @param {*} [options] Override http request option.
2662
+ * @throws {RequiredError}
2663
+ */
2664
+ getLiveTvPrograms: function (channelIds, userId, minStartDate, hasAired, isAiring, maxStartDate, minEndDate, maxEndDate, isMovie, isSeries, isNews, isKids, isSports, startIndex, limit, sortBy, sortOrder, genres, genreIds, enableImages, imageTypeLimit, enableImageTypes, enableUserData, seriesTimerId, librarySeriesId, fields, enableTotalRecordCount, options) {
2665
+ return __awaiter(this, void 0, void 0, function () {
2666
+ var localVarAxiosArgs;
2667
+ return __generator(this, function (_a) {
2668
+ switch (_a.label) {
2669
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLiveTvPrograms(channelIds, userId, minStartDate, hasAired, isAiring, maxStartDate, minEndDate, maxEndDate, isMovie, isSeries, isNews, isKids, isSports, startIndex, limit, sortBy, sortOrder, genres, genreIds, enableImages, imageTypeLimit, enableImageTypes, enableUserData, seriesTimerId, librarySeriesId, fields, enableTotalRecordCount, options)];
2670
+ case 1:
2671
+ localVarAxiosArgs = _a.sent();
2672
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2673
+ }
2674
+ });
2675
+ });
2676
+ },
2677
+ /**
2678
+ *
2679
+ * @summary Gets a live tv program.
2680
+ * @param {string} programId Program id.
2681
+ * @param {string} [userId] Optional. Attach user data.
2682
+ * @param {*} [options] Override http request option.
2683
+ * @throws {RequiredError}
2684
+ */
2685
+ getProgram: function (programId, userId, options) {
2686
+ return __awaiter(this, void 0, void 0, function () {
2687
+ var localVarAxiosArgs;
2688
+ return __generator(this, function (_a) {
2689
+ switch (_a.label) {
2690
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProgram(programId, userId, options)];
2691
+ case 1:
2692
+ localVarAxiosArgs = _a.sent();
2693
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2694
+ }
2695
+ });
2696
+ });
2697
+ },
2698
+ /**
2699
+ *
2700
+ * @summary Gets available live tv epgs.
2701
+ * @param {GetProgramsDto} [getProgramsDto] Request body.
2702
+ * @param {*} [options] Override http request option.
2703
+ * @throws {RequiredError}
2704
+ */
2705
+ getPrograms: function (getProgramsDto, options) {
2706
+ return __awaiter(this, void 0, void 0, function () {
2707
+ var localVarAxiosArgs;
2708
+ return __generator(this, function (_a) {
2709
+ switch (_a.label) {
2710
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPrograms(getProgramsDto, options)];
2711
+ case 1:
2712
+ localVarAxiosArgs = _a.sent();
2713
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2714
+ }
2715
+ });
2716
+ });
2717
+ },
2718
+ /**
2719
+ *
2720
+ * @summary Gets recommended live tv epgs.
2721
+ * @param {string} [userId] Optional. filter by user id.
2722
+ * @param {number} [limit] Optional. The maximum number of records to return.
2723
+ * @param {boolean} [isAiring] Optional. Filter by programs that are currently airing, or not.
2724
+ * @param {boolean} [hasAired] Optional. Filter by programs that have completed airing, or not.
2725
+ * @param {boolean} [isSeries] Optional. Filter for series.
2726
+ * @param {boolean} [isMovie] Optional. Filter for movies.
2727
+ * @param {boolean} [isNews] Optional. Filter for news.
2728
+ * @param {boolean} [isKids] Optional. Filter for kids.
2729
+ * @param {boolean} [isSports] Optional. Filter for sports.
2730
+ * @param {boolean} [enableImages] Optional. Include image information in output.
2731
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
2732
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
2733
+ * @param {Array<string>} [genreIds] The genres to return guide information for.
2734
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
2735
+ * @param {boolean} [enableUserData] Optional. include user data.
2736
+ * @param {boolean} [enableTotalRecordCount] Retrieve total record count.
2737
+ * @param {*} [options] Override http request option.
2738
+ * @throws {RequiredError}
2739
+ */
2740
+ getRecommendedPrograms: function (userId, limit, isAiring, hasAired, isSeries, isMovie, isNews, isKids, isSports, enableImages, imageTypeLimit, enableImageTypes, genreIds, fields, enableUserData, enableTotalRecordCount, options) {
2741
+ return __awaiter(this, void 0, void 0, function () {
2742
+ var localVarAxiosArgs;
2743
+ return __generator(this, function (_a) {
2744
+ switch (_a.label) {
2745
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRecommendedPrograms(userId, limit, isAiring, hasAired, isSeries, isMovie, isNews, isKids, isSports, enableImages, imageTypeLimit, enableImageTypes, genreIds, fields, enableUserData, enableTotalRecordCount, options)];
2746
+ case 1:
2747
+ localVarAxiosArgs = _a.sent();
2748
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2749
+ }
2750
+ });
2751
+ });
2752
+ },
2753
+ /**
2754
+ *
2755
+ * @summary Gets a live tv recording.
2756
+ * @param {string} recordingId Recording id.
2757
+ * @param {string} [userId] Optional. Attach user data.
2758
+ * @param {*} [options] Override http request option.
2759
+ * @throws {RequiredError}
2760
+ */
2761
+ getRecording: function (recordingId, userId, options) {
2762
+ return __awaiter(this, void 0, void 0, function () {
2763
+ var localVarAxiosArgs;
2764
+ return __generator(this, function (_a) {
2765
+ switch (_a.label) {
2766
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRecording(recordingId, userId, options)];
2767
+ case 1:
2768
+ localVarAxiosArgs = _a.sent();
2769
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2770
+ }
2771
+ });
2772
+ });
2773
+ },
2774
+ /**
2775
+ *
2776
+ * @summary Gets recording folders.
2777
+ * @param {string} [userId] Optional. Filter by user and attach user data.
2778
+ * @param {*} [options] Override http request option.
2779
+ * @throws {RequiredError}
2780
+ */
2781
+ getRecordingFolders: function (userId, options) {
2782
+ return __awaiter(this, void 0, void 0, function () {
2783
+ var localVarAxiosArgs;
2784
+ return __generator(this, function (_a) {
2785
+ switch (_a.label) {
2786
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRecordingFolders(userId, options)];
2787
+ case 1:
2788
+ localVarAxiosArgs = _a.sent();
2789
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2790
+ }
2791
+ });
2792
+ });
2793
+ },
2794
+ /**
2795
+ *
2796
+ * @summary Get recording group.
2797
+ * @param {string} groupId Group id.
2798
+ * @param {*} [options] Override http request option.
2799
+ * @deprecated
2800
+ * @throws {RequiredError}
2801
+ */
2802
+ getRecordingGroup: function (groupId, options) {
2803
+ return __awaiter(this, void 0, void 0, function () {
2804
+ var localVarAxiosArgs;
2805
+ return __generator(this, function (_a) {
2806
+ switch (_a.label) {
2807
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRecordingGroup(groupId, options)];
2808
+ case 1:
2809
+ localVarAxiosArgs = _a.sent();
2810
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2811
+ }
2812
+ });
2813
+ });
2814
+ },
2815
+ /**
2816
+ *
2817
+ * @summary Gets live tv recording groups.
2818
+ * @param {string} [userId] Optional. Filter by user and attach user data.
2819
+ * @param {*} [options] Override http request option.
2820
+ * @deprecated
2821
+ * @throws {RequiredError}
2822
+ */
2823
+ getRecordingGroups: function (userId, options) {
2824
+ return __awaiter(this, void 0, void 0, function () {
2825
+ var localVarAxiosArgs;
2826
+ return __generator(this, function (_a) {
2827
+ switch (_a.label) {
2828
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRecordingGroups(userId, options)];
2829
+ case 1:
2830
+ localVarAxiosArgs = _a.sent();
2831
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2832
+ }
2833
+ });
2834
+ });
2835
+ },
2836
+ /**
2837
+ *
2838
+ * @summary Gets live tv recordings.
2839
+ * @param {string} [channelId] Optional. Filter by channel id.
2840
+ * @param {string} [userId] Optional. Filter by user and attach user data.
2841
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
2842
+ * @param {number} [limit] Optional. The maximum number of records to return.
2843
+ * @param {RecordingStatus} [status] Optional. Filter by recording status.
2844
+ * @param {boolean} [isInProgress] Optional. Filter by recordings that are in progress, or not.
2845
+ * @param {string} [seriesTimerId] Optional. Filter by recordings belonging to a series timer.
2846
+ * @param {boolean} [enableImages] Optional. Include image information in output.
2847
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
2848
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
2849
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
2850
+ * @param {boolean} [enableUserData] Optional. Include user data.
2851
+ * @param {boolean} [isMovie] Optional. Filter for movies.
2852
+ * @param {boolean} [isSeries] Optional. Filter for series.
2853
+ * @param {boolean} [isKids] Optional. Filter for kids.
2854
+ * @param {boolean} [isSports] Optional. Filter for sports.
2855
+ * @param {boolean} [isNews] Optional. Filter for news.
2856
+ * @param {boolean} [isLibraryItem] Optional. Filter for is library item.
2857
+ * @param {boolean} [enableTotalRecordCount] Optional. Return total record count.
2858
+ * @param {*} [options] Override http request option.
2859
+ * @throws {RequiredError}
2860
+ */
2861
+ getRecordings: function (channelId, userId, startIndex, limit, status, isInProgress, seriesTimerId, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, isMovie, isSeries, isKids, isSports, isNews, isLibraryItem, enableTotalRecordCount, options) {
2862
+ return __awaiter(this, void 0, void 0, function () {
2863
+ var localVarAxiosArgs;
2864
+ return __generator(this, function (_a) {
2865
+ switch (_a.label) {
2866
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRecordings(channelId, userId, startIndex, limit, status, isInProgress, seriesTimerId, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, isMovie, isSeries, isKids, isSports, isNews, isLibraryItem, enableTotalRecordCount, options)];
2867
+ case 1:
2868
+ localVarAxiosArgs = _a.sent();
2869
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2870
+ }
2871
+ });
2872
+ });
2873
+ },
2874
+ /**
2875
+ *
2876
+ * @summary Gets live tv recording series.
2877
+ * @param {string} [channelId] Optional. Filter by channel id.
2878
+ * @param {string} [userId] Optional. Filter by user and attach user data.
2879
+ * @param {string} [groupId] Optional. Filter by recording group.
2880
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
2881
+ * @param {number} [limit] Optional. The maximum number of records to return.
2882
+ * @param {RecordingStatus} [status] Optional. Filter by recording status.
2883
+ * @param {boolean} [isInProgress] Optional. Filter by recordings that are in progress, or not.
2884
+ * @param {string} [seriesTimerId] Optional. Filter by recordings belonging to a series timer.
2885
+ * @param {boolean} [enableImages] Optional. Include image information in output.
2886
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
2887
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
2888
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
2889
+ * @param {boolean} [enableUserData] Optional. Include user data.
2890
+ * @param {boolean} [enableTotalRecordCount] Optional. Return total record count.
2891
+ * @param {*} [options] Override http request option.
2892
+ * @deprecated
2893
+ * @throws {RequiredError}
2894
+ */
2895
+ getRecordingsSeries: function (channelId, userId, groupId, startIndex, limit, status, isInProgress, seriesTimerId, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, enableTotalRecordCount, options) {
2896
+ return __awaiter(this, void 0, void 0, function () {
2897
+ var localVarAxiosArgs;
2898
+ return __generator(this, function (_a) {
2899
+ switch (_a.label) {
2900
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRecordingsSeries(channelId, userId, groupId, startIndex, limit, status, isInProgress, seriesTimerId, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, enableTotalRecordCount, options)];
2901
+ case 1:
2902
+ localVarAxiosArgs = _a.sent();
2903
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2904
+ }
2905
+ });
2906
+ });
2907
+ },
2908
+ /**
2909
+ *
2910
+ * @summary Gets available countries.
2911
+ * @param {*} [options] Override http request option.
2912
+ * @throws {RequiredError}
2913
+ */
2914
+ getSchedulesDirectCountries: function (options) {
2915
+ return __awaiter(this, void 0, void 0, function () {
2916
+ var localVarAxiosArgs;
2917
+ return __generator(this, function (_a) {
2918
+ switch (_a.label) {
2919
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSchedulesDirectCountries(options)];
2920
+ case 1:
2921
+ localVarAxiosArgs = _a.sent();
2922
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2923
+ }
2924
+ });
2925
+ });
2926
+ },
2927
+ /**
2928
+ *
2929
+ * @summary Gets a live tv series timer.
2930
+ * @param {string} timerId Timer id.
2931
+ * @param {*} [options] Override http request option.
2932
+ * @throws {RequiredError}
2933
+ */
2934
+ getSeriesTimer: function (timerId, options) {
2935
+ return __awaiter(this, void 0, void 0, function () {
2936
+ var localVarAxiosArgs;
2937
+ return __generator(this, function (_a) {
2938
+ switch (_a.label) {
2939
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSeriesTimer(timerId, options)];
2940
+ case 1:
2941
+ localVarAxiosArgs = _a.sent();
2942
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2943
+ }
2944
+ });
2945
+ });
2946
+ },
2947
+ /**
2948
+ *
2949
+ * @summary Gets live tv series timers.
2950
+ * @param {string} [sortBy] Optional. Sort by SortName or Priority.
2951
+ * @param {SortOrder} [sortOrder] Optional. Sort in Ascending or Descending order.
2952
+ * @param {*} [options] Override http request option.
2953
+ * @throws {RequiredError}
2954
+ */
2955
+ getSeriesTimers: function (sortBy, sortOrder, options) {
2956
+ return __awaiter(this, void 0, void 0, function () {
2957
+ var localVarAxiosArgs;
2958
+ return __generator(this, function (_a) {
2959
+ switch (_a.label) {
2960
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSeriesTimers(sortBy, sortOrder, options)];
2961
+ case 1:
2962
+ localVarAxiosArgs = _a.sent();
2963
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2964
+ }
2965
+ });
2966
+ });
2967
+ },
2968
+ /**
2969
+ *
2970
+ * @summary Gets a timer.
2971
+ * @param {string} timerId Timer id.
2972
+ * @param {*} [options] Override http request option.
2973
+ * @throws {RequiredError}
2974
+ */
2975
+ getTimer: function (timerId, options) {
2976
+ return __awaiter(this, void 0, void 0, function () {
2977
+ var localVarAxiosArgs;
2978
+ return __generator(this, function (_a) {
2979
+ switch (_a.label) {
2980
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTimer(timerId, options)];
2981
+ case 1:
2982
+ localVarAxiosArgs = _a.sent();
2983
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2984
+ }
2985
+ });
2986
+ });
2987
+ },
2988
+ /**
2989
+ *
2990
+ * @summary Gets the live tv timers.
2991
+ * @param {string} [channelId] Optional. Filter by channel id.
2992
+ * @param {string} [seriesTimerId] Optional. Filter by timers belonging to a series timer.
2993
+ * @param {boolean} [isActive] Optional. Filter by timers that are active.
2994
+ * @param {boolean} [isScheduled] Optional. Filter by timers that are scheduled.
2995
+ * @param {*} [options] Override http request option.
2996
+ * @throws {RequiredError}
2997
+ */
2998
+ getTimers: function (channelId, seriesTimerId, isActive, isScheduled, options) {
2999
+ return __awaiter(this, void 0, void 0, function () {
3000
+ var localVarAxiosArgs;
3001
+ return __generator(this, function (_a) {
3002
+ switch (_a.label) {
3003
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTimers(channelId, seriesTimerId, isActive, isScheduled, options)];
3004
+ case 1:
3005
+ localVarAxiosArgs = _a.sent();
3006
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3007
+ }
3008
+ });
3009
+ });
3010
+ },
3011
+ /**
3012
+ *
3013
+ * @summary Get tuner host types.
3014
+ * @param {*} [options] Override http request option.
3015
+ * @throws {RequiredError}
3016
+ */
3017
+ getTunerHostTypes: function (options) {
3018
+ return __awaiter(this, void 0, void 0, function () {
3019
+ var localVarAxiosArgs;
3020
+ return __generator(this, function (_a) {
3021
+ switch (_a.label) {
3022
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTunerHostTypes(options)];
3023
+ case 1:
3024
+ localVarAxiosArgs = _a.sent();
3025
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3026
+ }
3027
+ });
3028
+ });
3029
+ },
3030
+ /**
3031
+ *
3032
+ * @summary Resets a tv tuner.
3033
+ * @param {string} tunerId Tuner id.
3034
+ * @param {*} [options] Override http request option.
3035
+ * @throws {RequiredError}
3036
+ */
3037
+ resetTuner: function (tunerId, options) {
3038
+ return __awaiter(this, void 0, void 0, function () {
3039
+ var localVarAxiosArgs;
3040
+ return __generator(this, function (_a) {
3041
+ switch (_a.label) {
3042
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.resetTuner(tunerId, options)];
3043
+ case 1:
3044
+ localVarAxiosArgs = _a.sent();
3045
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3046
+ }
3047
+ });
3048
+ });
3049
+ },
3050
+ /**
3051
+ *
3052
+ * @summary Set channel mappings.
3053
+ * @param {SetChannelMappingDto} setChannelMappingDto The set channel mapping dto.
3054
+ * @param {*} [options] Override http request option.
3055
+ * @throws {RequiredError}
3056
+ */
3057
+ setChannelMapping: function (setChannelMappingDto, options) {
3058
+ return __awaiter(this, void 0, void 0, function () {
3059
+ var localVarAxiosArgs;
3060
+ return __generator(this, function (_a) {
3061
+ switch (_a.label) {
3062
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setChannelMapping(setChannelMappingDto, options)];
3063
+ case 1:
3064
+ localVarAxiosArgs = _a.sent();
3065
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3066
+ }
3067
+ });
3068
+ });
3069
+ },
3070
+ /**
3071
+ *
3072
+ * @summary Updates a live tv series timer.
3073
+ * @param {string} timerId Timer id.
3074
+ * @param {SeriesTimerInfoDto} [seriesTimerInfoDto] New series timer info.
3075
+ * @param {*} [options] Override http request option.
3076
+ * @throws {RequiredError}
3077
+ */
3078
+ updateSeriesTimer: function (timerId, seriesTimerInfoDto, options) {
3079
+ return __awaiter(this, void 0, void 0, function () {
3080
+ var localVarAxiosArgs;
3081
+ return __generator(this, function (_a) {
3082
+ switch (_a.label) {
3083
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSeriesTimer(timerId, seriesTimerInfoDto, options)];
3084
+ case 1:
3085
+ localVarAxiosArgs = _a.sent();
3086
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3087
+ }
3088
+ });
3089
+ });
3090
+ },
3091
+ /**
3092
+ *
3093
+ * @summary Updates a live tv timer.
3094
+ * @param {string} timerId Timer id.
3095
+ * @param {TimerInfoDto} [timerInfoDto] New timer info.
3096
+ * @param {*} [options] Override http request option.
3097
+ * @throws {RequiredError}
3098
+ */
3099
+ updateTimer: function (timerId, timerInfoDto, options) {
3100
+ return __awaiter(this, void 0, void 0, function () {
3101
+ var localVarAxiosArgs;
3102
+ return __generator(this, function (_a) {
3103
+ switch (_a.label) {
3104
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTimer(timerId, timerInfoDto, options)];
3105
+ case 1:
3106
+ localVarAxiosArgs = _a.sent();
3107
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3108
+ }
3109
+ });
3110
+ });
3111
+ },
3112
+ };
3113
+ };
3114
+ exports.LiveTvApiFp = LiveTvApiFp;
3115
+ /**
3116
+ * LiveTvApi - factory interface
3117
+ * @export
3118
+ */
3119
+ var LiveTvApiFactory = function (configuration, basePath, axios) {
3120
+ var localVarFp = (0, exports.LiveTvApiFp)(configuration);
3121
+ return {
3122
+ /**
3123
+ *
3124
+ * @summary Adds a listings provider.
3125
+ * @param {string} [pw] Password.
3126
+ * @param {boolean} [validateListings] Validate listings.
3127
+ * @param {boolean} [validateLogin] Validate login.
3128
+ * @param {ListingsProviderInfo} [listingsProviderInfo] New listings info.
3129
+ * @param {*} [options] Override http request option.
3130
+ * @throws {RequiredError}
3131
+ */
3132
+ addListingProvider: function (pw, validateListings, validateLogin, listingsProviderInfo, options) {
3133
+ return localVarFp.addListingProvider(pw, validateListings, validateLogin, listingsProviderInfo, options).then(function (request) { return request(axios, basePath); });
3134
+ },
3135
+ /**
3136
+ *
3137
+ * @summary Adds a tuner host.
3138
+ * @param {TunerHostInfo} [tunerHostInfo] New tuner host.
3139
+ * @param {*} [options] Override http request option.
3140
+ * @throws {RequiredError}
3141
+ */
3142
+ addTunerHost: function (tunerHostInfo, options) {
3143
+ return localVarFp.addTunerHost(tunerHostInfo, options).then(function (request) { return request(axios, basePath); });
3144
+ },
3145
+ /**
3146
+ *
3147
+ * @summary Cancels a live tv series timer.
3148
+ * @param {string} timerId Timer id.
3149
+ * @param {*} [options] Override http request option.
3150
+ * @throws {RequiredError}
3151
+ */
3152
+ cancelSeriesTimer: function (timerId, options) {
3153
+ return localVarFp.cancelSeriesTimer(timerId, options).then(function (request) { return request(axios, basePath); });
3154
+ },
3155
+ /**
3156
+ *
3157
+ * @summary Cancels a live tv timer.
3158
+ * @param {string} timerId Timer id.
3159
+ * @param {*} [options] Override http request option.
3160
+ * @throws {RequiredError}
3161
+ */
3162
+ cancelTimer: function (timerId, options) {
3163
+ return localVarFp.cancelTimer(timerId, options).then(function (request) { return request(axios, basePath); });
3164
+ },
3165
+ /**
3166
+ *
3167
+ * @summary Creates a live tv series timer.
3168
+ * @param {SeriesTimerInfoDto} [seriesTimerInfoDto] New series timer info.
3169
+ * @param {*} [options] Override http request option.
3170
+ * @throws {RequiredError}
3171
+ */
3172
+ createSeriesTimer: function (seriesTimerInfoDto, options) {
3173
+ return localVarFp.createSeriesTimer(seriesTimerInfoDto, options).then(function (request) { return request(axios, basePath); });
3174
+ },
3175
+ /**
3176
+ *
3177
+ * @summary Creates a live tv timer.
3178
+ * @param {TimerInfoDto} [timerInfoDto] New timer info.
3179
+ * @param {*} [options] Override http request option.
3180
+ * @throws {RequiredError}
3181
+ */
3182
+ createTimer: function (timerInfoDto, options) {
3183
+ return localVarFp.createTimer(timerInfoDto, options).then(function (request) { return request(axios, basePath); });
3184
+ },
3185
+ /**
3186
+ *
3187
+ * @summary Delete listing provider.
3188
+ * @param {string} [id] Listing provider id.
3189
+ * @param {*} [options] Override http request option.
3190
+ * @throws {RequiredError}
3191
+ */
3192
+ deleteListingProvider: function (id, options) {
3193
+ return localVarFp.deleteListingProvider(id, options).then(function (request) { return request(axios, basePath); });
3194
+ },
3195
+ /**
3196
+ *
3197
+ * @summary Deletes a live tv recording.
3198
+ * @param {string} recordingId Recording id.
3199
+ * @param {*} [options] Override http request option.
3200
+ * @throws {RequiredError}
3201
+ */
3202
+ deleteRecording: function (recordingId, options) {
3203
+ return localVarFp.deleteRecording(recordingId, options).then(function (request) { return request(axios, basePath); });
3204
+ },
3205
+ /**
3206
+ *
3207
+ * @summary Deletes a tuner host.
3208
+ * @param {string} [id] Tuner host id.
3209
+ * @param {*} [options] Override http request option.
3210
+ * @throws {RequiredError}
3211
+ */
3212
+ deleteTunerHost: function (id, options) {
3213
+ return localVarFp.deleteTunerHost(id, options).then(function (request) { return request(axios, basePath); });
3214
+ },
3215
+ /**
3216
+ *
3217
+ * @summary Discover tuners.
3218
+ * @param {boolean} [newDevicesOnly] Only discover new tuners.
3219
+ * @param {*} [options] Override http request option.
3220
+ * @throws {RequiredError}
3221
+ */
3222
+ discoverTuners: function (newDevicesOnly, options) {
3223
+ return localVarFp.discoverTuners(newDevicesOnly, options).then(function (request) { return request(axios, basePath); });
3224
+ },
3225
+ /**
3226
+ *
3227
+ * @summary Discover tuners.
3228
+ * @param {boolean} [newDevicesOnly] Only discover new tuners.
3229
+ * @param {*} [options] Override http request option.
3230
+ * @throws {RequiredError}
3231
+ */
3232
+ discvoverTuners: function (newDevicesOnly, options) {
3233
+ return localVarFp.discvoverTuners(newDevicesOnly, options).then(function (request) { return request(axios, basePath); });
3234
+ },
3235
+ /**
3236
+ *
3237
+ * @summary Gets a live tv channel.
3238
+ * @param {string} channelId Channel id.
3239
+ * @param {string} [userId] Optional. Attach user data.
3240
+ * @param {*} [options] Override http request option.
3241
+ * @throws {RequiredError}
3242
+ */
3243
+ getChannel: function (channelId, userId, options) {
3244
+ return localVarFp.getChannel(channelId, userId, options).then(function (request) { return request(axios, basePath); });
3245
+ },
3246
+ /**
3247
+ *
3248
+ * @summary Get channel mapping options.
3249
+ * @param {string} [providerId] Provider id.
3250
+ * @param {*} [options] Override http request option.
3251
+ * @throws {RequiredError}
3252
+ */
3253
+ getChannelMappingOptions: function (providerId, options) {
3254
+ return localVarFp.getChannelMappingOptions(providerId, options).then(function (request) { return request(axios, basePath); });
3255
+ },
3256
+ /**
3257
+ *
3258
+ * @summary Gets default listings provider info.
3259
+ * @param {*} [options] Override http request option.
3260
+ * @throws {RequiredError}
3261
+ */
3262
+ getDefaultListingProvider: function (options) {
3263
+ return localVarFp.getDefaultListingProvider(options).then(function (request) { return request(axios, basePath); });
3264
+ },
3265
+ /**
3266
+ *
3267
+ * @summary Gets the default values for a new timer.
3268
+ * @param {string} [programId] Optional. To attach default values based on a program.
3269
+ * @param {*} [options] Override http request option.
3270
+ * @throws {RequiredError}
3271
+ */
3272
+ getDefaultTimer: function (programId, options) {
3273
+ return localVarFp.getDefaultTimer(programId, options).then(function (request) { return request(axios, basePath); });
3274
+ },
3275
+ /**
3276
+ *
3277
+ * @summary Get guid info.
3278
+ * @param {*} [options] Override http request option.
3279
+ * @throws {RequiredError}
3280
+ */
3281
+ getGuideInfo: function (options) {
3282
+ return localVarFp.getGuideInfo(options).then(function (request) { return request(axios, basePath); });
3283
+ },
3284
+ /**
3285
+ *
3286
+ * @summary Gets available lineups.
3287
+ * @param {string} [id] Provider id.
3288
+ * @param {string} [type] Provider type.
3289
+ * @param {string} [location] Location.
3290
+ * @param {string} [country] Country.
3291
+ * @param {*} [options] Override http request option.
3292
+ * @throws {RequiredError}
3293
+ */
3294
+ getLineups: function (id, type, location, country, options) {
3295
+ return localVarFp.getLineups(id, type, location, country, options).then(function (request) { return request(axios, basePath); });
3296
+ },
3297
+ /**
3298
+ *
3299
+ * @summary Gets a live tv recording stream.
3300
+ * @param {string} recordingId Recording id.
3301
+ * @param {*} [options] Override http request option.
3302
+ * @throws {RequiredError}
3303
+ */
3304
+ getLiveRecordingFile: function (recordingId, options) {
3305
+ return localVarFp.getLiveRecordingFile(recordingId, options).then(function (request) { return request(axios, basePath); });
3306
+ },
3307
+ /**
3308
+ *
3309
+ * @summary Gets a live tv channel stream.
3310
+ * @param {string} streamId Stream id.
3311
+ * @param {string} container Container type.
3312
+ * @param {*} [options] Override http request option.
3313
+ * @throws {RequiredError}
3314
+ */
3315
+ getLiveStreamFile: function (streamId, container, options) {
3316
+ return localVarFp.getLiveStreamFile(streamId, container, options).then(function (request) { return request(axios, basePath); });
3317
+ },
3318
+ /**
3319
+ *
3320
+ * @summary Gets available live tv channels.
3321
+ * @param {ChannelType} [type] Optional. Filter by channel type.
3322
+ * @param {string} [userId] Optional. Filter by user and attach user data.
3323
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
3324
+ * @param {boolean} [isMovie] Optional. Filter for movies.
3325
+ * @param {boolean} [isSeries] Optional. Filter for series.
3326
+ * @param {boolean} [isNews] Optional. Filter for news.
3327
+ * @param {boolean} [isKids] Optional. Filter for kids.
3328
+ * @param {boolean} [isSports] Optional. Filter for sports.
3329
+ * @param {number} [limit] Optional. The maximum number of records to return.
3330
+ * @param {boolean} [isFavorite] Optional. Filter by channels that are favorites, or not.
3331
+ * @param {boolean} [isLiked] Optional. Filter by channels that are liked, or not.
3332
+ * @param {boolean} [isDisliked] Optional. Filter by channels that are disliked, or not.
3333
+ * @param {boolean} [enableImages] Optional. Include image information in output.
3334
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
3335
+ * @param {Array<ImageType>} [enableImageTypes] \&quot;Optional. The image types to include in the output.
3336
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
3337
+ * @param {boolean} [enableUserData] Optional. Include user data.
3338
+ * @param {Array<string>} [sortBy] Optional. Key to sort by.
3339
+ * @param {SortOrder} [sortOrder] Optional. Sort order.
3340
+ * @param {boolean} [enableFavoriteSorting] Optional. Incorporate favorite and like status into channel sorting.
3341
+ * @param {boolean} [addCurrentProgram] Optional. Adds current program info to each channel.
3342
+ * @param {*} [options] Override http request option.
3343
+ * @throws {RequiredError}
3344
+ */
3345
+ getLiveTvChannels: function (type, userId, startIndex, isMovie, isSeries, isNews, isKids, isSports, limit, isFavorite, isLiked, isDisliked, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, sortBy, sortOrder, enableFavoriteSorting, addCurrentProgram, options) {
3346
+ return localVarFp.getLiveTvChannels(type, userId, startIndex, isMovie, isSeries, isNews, isKids, isSports, limit, isFavorite, isLiked, isDisliked, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, sortBy, sortOrder, enableFavoriteSorting, addCurrentProgram, options).then(function (request) { return request(axios, basePath); });
3347
+ },
3348
+ /**
3349
+ *
3350
+ * @summary Gets available live tv services.
3351
+ * @param {*} [options] Override http request option.
3352
+ * @throws {RequiredError}
3353
+ */
3354
+ getLiveTvInfo: function (options) {
3355
+ return localVarFp.getLiveTvInfo(options).then(function (request) { return request(axios, basePath); });
3356
+ },
3357
+ /**
3358
+ *
3359
+ * @summary Gets available live tv epgs.
3360
+ * @param {Array<string>} [channelIds] The channels to return guide information for.
3361
+ * @param {string} [userId] Optional. Filter by user id.
3362
+ * @param {string} [minStartDate] Optional. The minimum premiere start date.
3363
+ * @param {boolean} [hasAired] Optional. Filter by programs that have completed airing, or not.
3364
+ * @param {boolean} [isAiring] Optional. Filter by programs that are currently airing, or not.
3365
+ * @param {string} [maxStartDate] Optional. The maximum premiere start date.
3366
+ * @param {string} [minEndDate] Optional. The minimum premiere end date.
3367
+ * @param {string} [maxEndDate] Optional. The maximum premiere end date.
3368
+ * @param {boolean} [isMovie] Optional. Filter for movies.
3369
+ * @param {boolean} [isSeries] Optional. Filter for series.
3370
+ * @param {boolean} [isNews] Optional. Filter for news.
3371
+ * @param {boolean} [isKids] Optional. Filter for kids.
3372
+ * @param {boolean} [isSports] Optional. Filter for sports.
3373
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
3374
+ * @param {number} [limit] Optional. The maximum number of records to return.
3375
+ * @param {Array<string>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Name, StartDate.
3376
+ * @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
3377
+ * @param {Array<string>} [genres] The genres to return guide information for.
3378
+ * @param {Array<string>} [genreIds] The genre ids to return guide information for.
3379
+ * @param {boolean} [enableImages] Optional. Include image information in output.
3380
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
3381
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
3382
+ * @param {boolean} [enableUserData] Optional. Include user data.
3383
+ * @param {string} [seriesTimerId] Optional. Filter by series timer id.
3384
+ * @param {string} [librarySeriesId] Optional. Filter by library series id.
3385
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
3386
+ * @param {boolean} [enableTotalRecordCount] Retrieve total record count.
3387
+ * @param {*} [options] Override http request option.
3388
+ * @throws {RequiredError}
3389
+ */
3390
+ getLiveTvPrograms: function (channelIds, userId, minStartDate, hasAired, isAiring, maxStartDate, minEndDate, maxEndDate, isMovie, isSeries, isNews, isKids, isSports, startIndex, limit, sortBy, sortOrder, genres, genreIds, enableImages, imageTypeLimit, enableImageTypes, enableUserData, seriesTimerId, librarySeriesId, fields, enableTotalRecordCount, options) {
3391
+ return localVarFp.getLiveTvPrograms(channelIds, userId, minStartDate, hasAired, isAiring, maxStartDate, minEndDate, maxEndDate, isMovie, isSeries, isNews, isKids, isSports, startIndex, limit, sortBy, sortOrder, genres, genreIds, enableImages, imageTypeLimit, enableImageTypes, enableUserData, seriesTimerId, librarySeriesId, fields, enableTotalRecordCount, options).then(function (request) { return request(axios, basePath); });
3392
+ },
3393
+ /**
3394
+ *
3395
+ * @summary Gets a live tv program.
3396
+ * @param {string} programId Program id.
3397
+ * @param {string} [userId] Optional. Attach user data.
3398
+ * @param {*} [options] Override http request option.
3399
+ * @throws {RequiredError}
3400
+ */
3401
+ getProgram: function (programId, userId, options) {
3402
+ return localVarFp.getProgram(programId, userId, options).then(function (request) { return request(axios, basePath); });
3403
+ },
3404
+ /**
3405
+ *
3406
+ * @summary Gets available live tv epgs.
3407
+ * @param {GetProgramsDto} [getProgramsDto] Request body.
3408
+ * @param {*} [options] Override http request option.
3409
+ * @throws {RequiredError}
3410
+ */
3411
+ getPrograms: function (getProgramsDto, options) {
3412
+ return localVarFp.getPrograms(getProgramsDto, options).then(function (request) { return request(axios, basePath); });
3413
+ },
3414
+ /**
3415
+ *
3416
+ * @summary Gets recommended live tv epgs.
3417
+ * @param {string} [userId] Optional. filter by user id.
3418
+ * @param {number} [limit] Optional. The maximum number of records to return.
3419
+ * @param {boolean} [isAiring] Optional. Filter by programs that are currently airing, or not.
3420
+ * @param {boolean} [hasAired] Optional. Filter by programs that have completed airing, or not.
3421
+ * @param {boolean} [isSeries] Optional. Filter for series.
3422
+ * @param {boolean} [isMovie] Optional. Filter for movies.
3423
+ * @param {boolean} [isNews] Optional. Filter for news.
3424
+ * @param {boolean} [isKids] Optional. Filter for kids.
3425
+ * @param {boolean} [isSports] Optional. Filter for sports.
3426
+ * @param {boolean} [enableImages] Optional. Include image information in output.
3427
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
3428
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
3429
+ * @param {Array<string>} [genreIds] The genres to return guide information for.
3430
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
3431
+ * @param {boolean} [enableUserData] Optional. include user data.
3432
+ * @param {boolean} [enableTotalRecordCount] Retrieve total record count.
3433
+ * @param {*} [options] Override http request option.
3434
+ * @throws {RequiredError}
3435
+ */
3436
+ getRecommendedPrograms: function (userId, limit, isAiring, hasAired, isSeries, isMovie, isNews, isKids, isSports, enableImages, imageTypeLimit, enableImageTypes, genreIds, fields, enableUserData, enableTotalRecordCount, options) {
3437
+ return localVarFp.getRecommendedPrograms(userId, limit, isAiring, hasAired, isSeries, isMovie, isNews, isKids, isSports, enableImages, imageTypeLimit, enableImageTypes, genreIds, fields, enableUserData, enableTotalRecordCount, options).then(function (request) { return request(axios, basePath); });
3438
+ },
3439
+ /**
3440
+ *
3441
+ * @summary Gets a live tv recording.
3442
+ * @param {string} recordingId Recording id.
3443
+ * @param {string} [userId] Optional. Attach user data.
3444
+ * @param {*} [options] Override http request option.
3445
+ * @throws {RequiredError}
3446
+ */
3447
+ getRecording: function (recordingId, userId, options) {
3448
+ return localVarFp.getRecording(recordingId, userId, options).then(function (request) { return request(axios, basePath); });
3449
+ },
3450
+ /**
3451
+ *
3452
+ * @summary Gets recording folders.
3453
+ * @param {string} [userId] Optional. Filter by user and attach user data.
3454
+ * @param {*} [options] Override http request option.
3455
+ * @throws {RequiredError}
3456
+ */
3457
+ getRecordingFolders: function (userId, options) {
3458
+ return localVarFp.getRecordingFolders(userId, options).then(function (request) { return request(axios, basePath); });
3459
+ },
3460
+ /**
3461
+ *
3462
+ * @summary Get recording group.
3463
+ * @param {string} groupId Group id.
3464
+ * @param {*} [options] Override http request option.
3465
+ * @deprecated
3466
+ * @throws {RequiredError}
3467
+ */
3468
+ getRecordingGroup: function (groupId, options) {
3469
+ return localVarFp.getRecordingGroup(groupId, options).then(function (request) { return request(axios, basePath); });
3470
+ },
3471
+ /**
3472
+ *
3473
+ * @summary Gets live tv recording groups.
3474
+ * @param {string} [userId] Optional. Filter by user and attach user data.
3475
+ * @param {*} [options] Override http request option.
3476
+ * @deprecated
3477
+ * @throws {RequiredError}
3478
+ */
3479
+ getRecordingGroups: function (userId, options) {
3480
+ return localVarFp.getRecordingGroups(userId, options).then(function (request) { return request(axios, basePath); });
3481
+ },
3482
+ /**
3483
+ *
3484
+ * @summary Gets live tv recordings.
3485
+ * @param {string} [channelId] Optional. Filter by channel id.
3486
+ * @param {string} [userId] Optional. Filter by user and attach user data.
3487
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
3488
+ * @param {number} [limit] Optional. The maximum number of records to return.
3489
+ * @param {RecordingStatus} [status] Optional. Filter by recording status.
3490
+ * @param {boolean} [isInProgress] Optional. Filter by recordings that are in progress, or not.
3491
+ * @param {string} [seriesTimerId] Optional. Filter by recordings belonging to a series timer.
3492
+ * @param {boolean} [enableImages] Optional. Include image information in output.
3493
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
3494
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
3495
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
3496
+ * @param {boolean} [enableUserData] Optional. Include user data.
3497
+ * @param {boolean} [isMovie] Optional. Filter for movies.
3498
+ * @param {boolean} [isSeries] Optional. Filter for series.
3499
+ * @param {boolean} [isKids] Optional. Filter for kids.
3500
+ * @param {boolean} [isSports] Optional. Filter for sports.
3501
+ * @param {boolean} [isNews] Optional. Filter for news.
3502
+ * @param {boolean} [isLibraryItem] Optional. Filter for is library item.
3503
+ * @param {boolean} [enableTotalRecordCount] Optional. Return total record count.
3504
+ * @param {*} [options] Override http request option.
3505
+ * @throws {RequiredError}
3506
+ */
3507
+ getRecordings: function (channelId, userId, startIndex, limit, status, isInProgress, seriesTimerId, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, isMovie, isSeries, isKids, isSports, isNews, isLibraryItem, enableTotalRecordCount, options) {
3508
+ return localVarFp.getRecordings(channelId, userId, startIndex, limit, status, isInProgress, seriesTimerId, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, isMovie, isSeries, isKids, isSports, isNews, isLibraryItem, enableTotalRecordCount, options).then(function (request) { return request(axios, basePath); });
3509
+ },
3510
+ /**
3511
+ *
3512
+ * @summary Gets live tv recording series.
3513
+ * @param {string} [channelId] Optional. Filter by channel id.
3514
+ * @param {string} [userId] Optional. Filter by user and attach user data.
3515
+ * @param {string} [groupId] Optional. Filter by recording group.
3516
+ * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
3517
+ * @param {number} [limit] Optional. The maximum number of records to return.
3518
+ * @param {RecordingStatus} [status] Optional. Filter by recording status.
3519
+ * @param {boolean} [isInProgress] Optional. Filter by recordings that are in progress, or not.
3520
+ * @param {string} [seriesTimerId] Optional. Filter by recordings belonging to a series timer.
3521
+ * @param {boolean} [enableImages] Optional. Include image information in output.
3522
+ * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
3523
+ * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
3524
+ * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
3525
+ * @param {boolean} [enableUserData] Optional. Include user data.
3526
+ * @param {boolean} [enableTotalRecordCount] Optional. Return total record count.
3527
+ * @param {*} [options] Override http request option.
3528
+ * @deprecated
3529
+ * @throws {RequiredError}
3530
+ */
3531
+ getRecordingsSeries: function (channelId, userId, groupId, startIndex, limit, status, isInProgress, seriesTimerId, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, enableTotalRecordCount, options) {
3532
+ return localVarFp.getRecordingsSeries(channelId, userId, groupId, startIndex, limit, status, isInProgress, seriesTimerId, enableImages, imageTypeLimit, enableImageTypes, fields, enableUserData, enableTotalRecordCount, options).then(function (request) { return request(axios, basePath); });
3533
+ },
3534
+ /**
3535
+ *
3536
+ * @summary Gets available countries.
3537
+ * @param {*} [options] Override http request option.
3538
+ * @throws {RequiredError}
3539
+ */
3540
+ getSchedulesDirectCountries: function (options) {
3541
+ return localVarFp.getSchedulesDirectCountries(options).then(function (request) { return request(axios, basePath); });
3542
+ },
3543
+ /**
3544
+ *
3545
+ * @summary Gets a live tv series timer.
3546
+ * @param {string} timerId Timer id.
3547
+ * @param {*} [options] Override http request option.
3548
+ * @throws {RequiredError}
3549
+ */
3550
+ getSeriesTimer: function (timerId, options) {
3551
+ return localVarFp.getSeriesTimer(timerId, options).then(function (request) { return request(axios, basePath); });
3552
+ },
3553
+ /**
3554
+ *
3555
+ * @summary Gets live tv series timers.
3556
+ * @param {string} [sortBy] Optional. Sort by SortName or Priority.
3557
+ * @param {SortOrder} [sortOrder] Optional. Sort in Ascending or Descending order.
3558
+ * @param {*} [options] Override http request option.
3559
+ * @throws {RequiredError}
3560
+ */
3561
+ getSeriesTimers: function (sortBy, sortOrder, options) {
3562
+ return localVarFp.getSeriesTimers(sortBy, sortOrder, options).then(function (request) { return request(axios, basePath); });
3563
+ },
3564
+ /**
3565
+ *
3566
+ * @summary Gets a timer.
3567
+ * @param {string} timerId Timer id.
3568
+ * @param {*} [options] Override http request option.
3569
+ * @throws {RequiredError}
3570
+ */
3571
+ getTimer: function (timerId, options) {
3572
+ return localVarFp.getTimer(timerId, options).then(function (request) { return request(axios, basePath); });
3573
+ },
3574
+ /**
3575
+ *
3576
+ * @summary Gets the live tv timers.
3577
+ * @param {string} [channelId] Optional. Filter by channel id.
3578
+ * @param {string} [seriesTimerId] Optional. Filter by timers belonging to a series timer.
3579
+ * @param {boolean} [isActive] Optional. Filter by timers that are active.
3580
+ * @param {boolean} [isScheduled] Optional. Filter by timers that are scheduled.
3581
+ * @param {*} [options] Override http request option.
3582
+ * @throws {RequiredError}
3583
+ */
3584
+ getTimers: function (channelId, seriesTimerId, isActive, isScheduled, options) {
3585
+ return localVarFp.getTimers(channelId, seriesTimerId, isActive, isScheduled, options).then(function (request) { return request(axios, basePath); });
3586
+ },
3587
+ /**
3588
+ *
3589
+ * @summary Get tuner host types.
3590
+ * @param {*} [options] Override http request option.
3591
+ * @throws {RequiredError}
3592
+ */
3593
+ getTunerHostTypes: function (options) {
3594
+ return localVarFp.getTunerHostTypes(options).then(function (request) { return request(axios, basePath); });
3595
+ },
3596
+ /**
3597
+ *
3598
+ * @summary Resets a tv tuner.
3599
+ * @param {string} tunerId Tuner id.
3600
+ * @param {*} [options] Override http request option.
3601
+ * @throws {RequiredError}
3602
+ */
3603
+ resetTuner: function (tunerId, options) {
3604
+ return localVarFp.resetTuner(tunerId, options).then(function (request) { return request(axios, basePath); });
3605
+ },
3606
+ /**
3607
+ *
3608
+ * @summary Set channel mappings.
3609
+ * @param {SetChannelMappingDto} setChannelMappingDto The set channel mapping dto.
3610
+ * @param {*} [options] Override http request option.
3611
+ * @throws {RequiredError}
3612
+ */
3613
+ setChannelMapping: function (setChannelMappingDto, options) {
3614
+ return localVarFp.setChannelMapping(setChannelMappingDto, options).then(function (request) { return request(axios, basePath); });
3615
+ },
3616
+ /**
3617
+ *
3618
+ * @summary Updates a live tv series timer.
3619
+ * @param {string} timerId Timer id.
3620
+ * @param {SeriesTimerInfoDto} [seriesTimerInfoDto] New series timer info.
3621
+ * @param {*} [options] Override http request option.
3622
+ * @throws {RequiredError}
3623
+ */
3624
+ updateSeriesTimer: function (timerId, seriesTimerInfoDto, options) {
3625
+ return localVarFp.updateSeriesTimer(timerId, seriesTimerInfoDto, options).then(function (request) { return request(axios, basePath); });
3626
+ },
3627
+ /**
3628
+ *
3629
+ * @summary Updates a live tv timer.
3630
+ * @param {string} timerId Timer id.
3631
+ * @param {TimerInfoDto} [timerInfoDto] New timer info.
3632
+ * @param {*} [options] Override http request option.
3633
+ * @throws {RequiredError}
3634
+ */
3635
+ updateTimer: function (timerId, timerInfoDto, options) {
3636
+ return localVarFp.updateTimer(timerId, timerInfoDto, options).then(function (request) { return request(axios, basePath); });
3637
+ },
3638
+ };
3639
+ };
3640
+ exports.LiveTvApiFactory = LiveTvApiFactory;
3641
+ /**
3642
+ * LiveTvApi - object-oriented interface
3643
+ * @export
3644
+ * @class LiveTvApi
3645
+ * @extends {BaseAPI}
3646
+ */
3647
+ var LiveTvApi = /** @class */ (function (_super) {
3648
+ __extends(LiveTvApi, _super);
3649
+ function LiveTvApi() {
3650
+ return _super !== null && _super.apply(this, arguments) || this;
3651
+ }
3652
+ /**
3653
+ *
3654
+ * @summary Adds a listings provider.
3655
+ * @param {LiveTvApiAddListingProviderRequest} requestParameters Request parameters.
3656
+ * @param {*} [options] Override http request option.
3657
+ * @throws {RequiredError}
3658
+ * @memberof LiveTvApi
3659
+ */
3660
+ LiveTvApi.prototype.addListingProvider = function (requestParameters, options) {
3661
+ var _this = this;
3662
+ if (requestParameters === void 0) { requestParameters = {}; }
3663
+ return (0, exports.LiveTvApiFp)(this.configuration).addListingProvider(requestParameters.pw, requestParameters.validateListings, requestParameters.validateLogin, requestParameters.listingsProviderInfo, options).then(function (request) { return request(_this.axios, _this.basePath); });
3664
+ };
3665
+ /**
3666
+ *
3667
+ * @summary Adds a tuner host.
3668
+ * @param {LiveTvApiAddTunerHostRequest} requestParameters Request parameters.
3669
+ * @param {*} [options] Override http request option.
3670
+ * @throws {RequiredError}
3671
+ * @memberof LiveTvApi
3672
+ */
3673
+ LiveTvApi.prototype.addTunerHost = function (requestParameters, options) {
3674
+ var _this = this;
3675
+ if (requestParameters === void 0) { requestParameters = {}; }
3676
+ return (0, exports.LiveTvApiFp)(this.configuration).addTunerHost(requestParameters.tunerHostInfo, options).then(function (request) { return request(_this.axios, _this.basePath); });
3677
+ };
3678
+ /**
3679
+ *
3680
+ * @summary Cancels a live tv series timer.
3681
+ * @param {LiveTvApiCancelSeriesTimerRequest} requestParameters Request parameters.
3682
+ * @param {*} [options] Override http request option.
3683
+ * @throws {RequiredError}
3684
+ * @memberof LiveTvApi
3685
+ */
3686
+ LiveTvApi.prototype.cancelSeriesTimer = function (requestParameters, options) {
3687
+ var _this = this;
3688
+ return (0, exports.LiveTvApiFp)(this.configuration).cancelSeriesTimer(requestParameters.timerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3689
+ };
3690
+ /**
3691
+ *
3692
+ * @summary Cancels a live tv timer.
3693
+ * @param {LiveTvApiCancelTimerRequest} requestParameters Request parameters.
3694
+ * @param {*} [options] Override http request option.
3695
+ * @throws {RequiredError}
3696
+ * @memberof LiveTvApi
3697
+ */
3698
+ LiveTvApi.prototype.cancelTimer = function (requestParameters, options) {
3699
+ var _this = this;
3700
+ return (0, exports.LiveTvApiFp)(this.configuration).cancelTimer(requestParameters.timerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3701
+ };
3702
+ /**
3703
+ *
3704
+ * @summary Creates a live tv series timer.
3705
+ * @param {LiveTvApiCreateSeriesTimerRequest} requestParameters Request parameters.
3706
+ * @param {*} [options] Override http request option.
3707
+ * @throws {RequiredError}
3708
+ * @memberof LiveTvApi
3709
+ */
3710
+ LiveTvApi.prototype.createSeriesTimer = function (requestParameters, options) {
3711
+ var _this = this;
3712
+ if (requestParameters === void 0) { requestParameters = {}; }
3713
+ return (0, exports.LiveTvApiFp)(this.configuration).createSeriesTimer(requestParameters.seriesTimerInfoDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
3714
+ };
3715
+ /**
3716
+ *
3717
+ * @summary Creates a live tv timer.
3718
+ * @param {LiveTvApiCreateTimerRequest} requestParameters Request parameters.
3719
+ * @param {*} [options] Override http request option.
3720
+ * @throws {RequiredError}
3721
+ * @memberof LiveTvApi
3722
+ */
3723
+ LiveTvApi.prototype.createTimer = function (requestParameters, options) {
3724
+ var _this = this;
3725
+ if (requestParameters === void 0) { requestParameters = {}; }
3726
+ return (0, exports.LiveTvApiFp)(this.configuration).createTimer(requestParameters.timerInfoDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
3727
+ };
3728
+ /**
3729
+ *
3730
+ * @summary Delete listing provider.
3731
+ * @param {LiveTvApiDeleteListingProviderRequest} requestParameters Request parameters.
3732
+ * @param {*} [options] Override http request option.
3733
+ * @throws {RequiredError}
3734
+ * @memberof LiveTvApi
3735
+ */
3736
+ LiveTvApi.prototype.deleteListingProvider = function (requestParameters, options) {
3737
+ var _this = this;
3738
+ if (requestParameters === void 0) { requestParameters = {}; }
3739
+ return (0, exports.LiveTvApiFp)(this.configuration).deleteListingProvider(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3740
+ };
3741
+ /**
3742
+ *
3743
+ * @summary Deletes a live tv recording.
3744
+ * @param {LiveTvApiDeleteRecordingRequest} requestParameters Request parameters.
3745
+ * @param {*} [options] Override http request option.
3746
+ * @throws {RequiredError}
3747
+ * @memberof LiveTvApi
3748
+ */
3749
+ LiveTvApi.prototype.deleteRecording = function (requestParameters, options) {
3750
+ var _this = this;
3751
+ return (0, exports.LiveTvApiFp)(this.configuration).deleteRecording(requestParameters.recordingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3752
+ };
3753
+ /**
3754
+ *
3755
+ * @summary Deletes a tuner host.
3756
+ * @param {LiveTvApiDeleteTunerHostRequest} requestParameters Request parameters.
3757
+ * @param {*} [options] Override http request option.
3758
+ * @throws {RequiredError}
3759
+ * @memberof LiveTvApi
3760
+ */
3761
+ LiveTvApi.prototype.deleteTunerHost = function (requestParameters, options) {
3762
+ var _this = this;
3763
+ if (requestParameters === void 0) { requestParameters = {}; }
3764
+ return (0, exports.LiveTvApiFp)(this.configuration).deleteTunerHost(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3765
+ };
3766
+ /**
3767
+ *
3768
+ * @summary Discover tuners.
3769
+ * @param {LiveTvApiDiscoverTunersRequest} requestParameters Request parameters.
3770
+ * @param {*} [options] Override http request option.
3771
+ * @throws {RequiredError}
3772
+ * @memberof LiveTvApi
3773
+ */
3774
+ LiveTvApi.prototype.discoverTuners = function (requestParameters, options) {
3775
+ var _this = this;
3776
+ if (requestParameters === void 0) { requestParameters = {}; }
3777
+ return (0, exports.LiveTvApiFp)(this.configuration).discoverTuners(requestParameters.newDevicesOnly, options).then(function (request) { return request(_this.axios, _this.basePath); });
3778
+ };
3779
+ /**
3780
+ *
3781
+ * @summary Discover tuners.
3782
+ * @param {LiveTvApiDiscvoverTunersRequest} requestParameters Request parameters.
3783
+ * @param {*} [options] Override http request option.
3784
+ * @throws {RequiredError}
3785
+ * @memberof LiveTvApi
3786
+ */
3787
+ LiveTvApi.prototype.discvoverTuners = function (requestParameters, options) {
3788
+ var _this = this;
3789
+ if (requestParameters === void 0) { requestParameters = {}; }
3790
+ return (0, exports.LiveTvApiFp)(this.configuration).discvoverTuners(requestParameters.newDevicesOnly, options).then(function (request) { return request(_this.axios, _this.basePath); });
3791
+ };
3792
+ /**
3793
+ *
3794
+ * @summary Gets a live tv channel.
3795
+ * @param {LiveTvApiGetChannelRequest} requestParameters Request parameters.
3796
+ * @param {*} [options] Override http request option.
3797
+ * @throws {RequiredError}
3798
+ * @memberof LiveTvApi
3799
+ */
3800
+ LiveTvApi.prototype.getChannel = function (requestParameters, options) {
3801
+ var _this = this;
3802
+ return (0, exports.LiveTvApiFp)(this.configuration).getChannel(requestParameters.channelId, requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3803
+ };
3804
+ /**
3805
+ *
3806
+ * @summary Get channel mapping options.
3807
+ * @param {LiveTvApiGetChannelMappingOptionsRequest} requestParameters Request parameters.
3808
+ * @param {*} [options] Override http request option.
3809
+ * @throws {RequiredError}
3810
+ * @memberof LiveTvApi
3811
+ */
3812
+ LiveTvApi.prototype.getChannelMappingOptions = function (requestParameters, options) {
3813
+ var _this = this;
3814
+ if (requestParameters === void 0) { requestParameters = {}; }
3815
+ return (0, exports.LiveTvApiFp)(this.configuration).getChannelMappingOptions(requestParameters.providerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3816
+ };
3817
+ /**
3818
+ *
3819
+ * @summary Gets default listings provider info.
3820
+ * @param {*} [options] Override http request option.
3821
+ * @throws {RequiredError}
3822
+ * @memberof LiveTvApi
3823
+ */
3824
+ LiveTvApi.prototype.getDefaultListingProvider = function (options) {
3825
+ var _this = this;
3826
+ return (0, exports.LiveTvApiFp)(this.configuration).getDefaultListingProvider(options).then(function (request) { return request(_this.axios, _this.basePath); });
3827
+ };
3828
+ /**
3829
+ *
3830
+ * @summary Gets the default values for a new timer.
3831
+ * @param {LiveTvApiGetDefaultTimerRequest} requestParameters Request parameters.
3832
+ * @param {*} [options] Override http request option.
3833
+ * @throws {RequiredError}
3834
+ * @memberof LiveTvApi
3835
+ */
3836
+ LiveTvApi.prototype.getDefaultTimer = function (requestParameters, options) {
3837
+ var _this = this;
3838
+ if (requestParameters === void 0) { requestParameters = {}; }
3839
+ return (0, exports.LiveTvApiFp)(this.configuration).getDefaultTimer(requestParameters.programId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3840
+ };
3841
+ /**
3842
+ *
3843
+ * @summary Get guid info.
3844
+ * @param {*} [options] Override http request option.
3845
+ * @throws {RequiredError}
3846
+ * @memberof LiveTvApi
3847
+ */
3848
+ LiveTvApi.prototype.getGuideInfo = function (options) {
3849
+ var _this = this;
3850
+ return (0, exports.LiveTvApiFp)(this.configuration).getGuideInfo(options).then(function (request) { return request(_this.axios, _this.basePath); });
3851
+ };
3852
+ /**
3853
+ *
3854
+ * @summary Gets available lineups.
3855
+ * @param {LiveTvApiGetLineupsRequest} requestParameters Request parameters.
3856
+ * @param {*} [options] Override http request option.
3857
+ * @throws {RequiredError}
3858
+ * @memberof LiveTvApi
3859
+ */
3860
+ LiveTvApi.prototype.getLineups = function (requestParameters, options) {
3861
+ var _this = this;
3862
+ if (requestParameters === void 0) { requestParameters = {}; }
3863
+ return (0, exports.LiveTvApiFp)(this.configuration).getLineups(requestParameters.id, requestParameters.type, requestParameters.location, requestParameters.country, options).then(function (request) { return request(_this.axios, _this.basePath); });
3864
+ };
3865
+ /**
3866
+ *
3867
+ * @summary Gets a live tv recording stream.
3868
+ * @param {LiveTvApiGetLiveRecordingFileRequest} requestParameters Request parameters.
3869
+ * @param {*} [options] Override http request option.
3870
+ * @throws {RequiredError}
3871
+ * @memberof LiveTvApi
3872
+ */
3873
+ LiveTvApi.prototype.getLiveRecordingFile = function (requestParameters, options) {
3874
+ var _this = this;
3875
+ return (0, exports.LiveTvApiFp)(this.configuration).getLiveRecordingFile(requestParameters.recordingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3876
+ };
3877
+ /**
3878
+ *
3879
+ * @summary Gets a live tv channel stream.
3880
+ * @param {LiveTvApiGetLiveStreamFileRequest} requestParameters Request parameters.
3881
+ * @param {*} [options] Override http request option.
3882
+ * @throws {RequiredError}
3883
+ * @memberof LiveTvApi
3884
+ */
3885
+ LiveTvApi.prototype.getLiveStreamFile = function (requestParameters, options) {
3886
+ var _this = this;
3887
+ return (0, exports.LiveTvApiFp)(this.configuration).getLiveStreamFile(requestParameters.streamId, requestParameters.container, options).then(function (request) { return request(_this.axios, _this.basePath); });
3888
+ };
3889
+ /**
3890
+ *
3891
+ * @summary Gets available live tv channels.
3892
+ * @param {LiveTvApiGetLiveTvChannelsRequest} requestParameters Request parameters.
3893
+ * @param {*} [options] Override http request option.
3894
+ * @throws {RequiredError}
3895
+ * @memberof LiveTvApi
3896
+ */
3897
+ LiveTvApi.prototype.getLiveTvChannels = function (requestParameters, options) {
3898
+ var _this = this;
3899
+ if (requestParameters === void 0) { requestParameters = {}; }
3900
+ return (0, exports.LiveTvApiFp)(this.configuration).getLiveTvChannels(requestParameters.type, requestParameters.userId, requestParameters.startIndex, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.limit, requestParameters.isFavorite, requestParameters.isLiked, requestParameters.isDisliked, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.fields, requestParameters.enableUserData, requestParameters.sortBy, requestParameters.sortOrder, requestParameters.enableFavoriteSorting, requestParameters.addCurrentProgram, options).then(function (request) { return request(_this.axios, _this.basePath); });
3901
+ };
3902
+ /**
3903
+ *
3904
+ * @summary Gets available live tv services.
3905
+ * @param {*} [options] Override http request option.
3906
+ * @throws {RequiredError}
3907
+ * @memberof LiveTvApi
3908
+ */
3909
+ LiveTvApi.prototype.getLiveTvInfo = function (options) {
3910
+ var _this = this;
3911
+ return (0, exports.LiveTvApiFp)(this.configuration).getLiveTvInfo(options).then(function (request) { return request(_this.axios, _this.basePath); });
3912
+ };
3913
+ /**
3914
+ *
3915
+ * @summary Gets available live tv epgs.
3916
+ * @param {LiveTvApiGetLiveTvProgramsRequest} requestParameters Request parameters.
3917
+ * @param {*} [options] Override http request option.
3918
+ * @throws {RequiredError}
3919
+ * @memberof LiveTvApi
3920
+ */
3921
+ LiveTvApi.prototype.getLiveTvPrograms = function (requestParameters, options) {
3922
+ var _this = this;
3923
+ if (requestParameters === void 0) { requestParameters = {}; }
3924
+ return (0, exports.LiveTvApiFp)(this.configuration).getLiveTvPrograms(requestParameters.channelIds, requestParameters.userId, requestParameters.minStartDate, requestParameters.hasAired, requestParameters.isAiring, requestParameters.maxStartDate, requestParameters.minEndDate, requestParameters.maxEndDate, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.startIndex, requestParameters.limit, requestParameters.sortBy, requestParameters.sortOrder, requestParameters.genres, requestParameters.genreIds, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.enableUserData, requestParameters.seriesTimerId, requestParameters.librarySeriesId, requestParameters.fields, requestParameters.enableTotalRecordCount, options).then(function (request) { return request(_this.axios, _this.basePath); });
3925
+ };
3926
+ /**
3927
+ *
3928
+ * @summary Gets a live tv program.
3929
+ * @param {LiveTvApiGetProgramRequest} requestParameters Request parameters.
3930
+ * @param {*} [options] Override http request option.
3931
+ * @throws {RequiredError}
3932
+ * @memberof LiveTvApi
3933
+ */
3934
+ LiveTvApi.prototype.getProgram = function (requestParameters, options) {
3935
+ var _this = this;
3936
+ return (0, exports.LiveTvApiFp)(this.configuration).getProgram(requestParameters.programId, requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3937
+ };
3938
+ /**
3939
+ *
3940
+ * @summary Gets available live tv epgs.
3941
+ * @param {LiveTvApiGetProgramsRequest} requestParameters Request parameters.
3942
+ * @param {*} [options] Override http request option.
3943
+ * @throws {RequiredError}
3944
+ * @memberof LiveTvApi
3945
+ */
3946
+ LiveTvApi.prototype.getPrograms = function (requestParameters, options) {
3947
+ var _this = this;
3948
+ if (requestParameters === void 0) { requestParameters = {}; }
3949
+ return (0, exports.LiveTvApiFp)(this.configuration).getPrograms(requestParameters.getProgramsDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
3950
+ };
3951
+ /**
3952
+ *
3953
+ * @summary Gets recommended live tv epgs.
3954
+ * @param {LiveTvApiGetRecommendedProgramsRequest} requestParameters Request parameters.
3955
+ * @param {*} [options] Override http request option.
3956
+ * @throws {RequiredError}
3957
+ * @memberof LiveTvApi
3958
+ */
3959
+ LiveTvApi.prototype.getRecommendedPrograms = function (requestParameters, options) {
3960
+ var _this = this;
3961
+ if (requestParameters === void 0) { requestParameters = {}; }
3962
+ return (0, exports.LiveTvApiFp)(this.configuration).getRecommendedPrograms(requestParameters.userId, requestParameters.limit, requestParameters.isAiring, requestParameters.hasAired, requestParameters.isSeries, requestParameters.isMovie, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.genreIds, requestParameters.fields, requestParameters.enableUserData, requestParameters.enableTotalRecordCount, options).then(function (request) { return request(_this.axios, _this.basePath); });
3963
+ };
3964
+ /**
3965
+ *
3966
+ * @summary Gets a live tv recording.
3967
+ * @param {LiveTvApiGetRecordingRequest} requestParameters Request parameters.
3968
+ * @param {*} [options] Override http request option.
3969
+ * @throws {RequiredError}
3970
+ * @memberof LiveTvApi
3971
+ */
3972
+ LiveTvApi.prototype.getRecording = function (requestParameters, options) {
3973
+ var _this = this;
3974
+ return (0, exports.LiveTvApiFp)(this.configuration).getRecording(requestParameters.recordingId, requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3975
+ };
3976
+ /**
3977
+ *
3978
+ * @summary Gets recording folders.
3979
+ * @param {LiveTvApiGetRecordingFoldersRequest} requestParameters Request parameters.
3980
+ * @param {*} [options] Override http request option.
3981
+ * @throws {RequiredError}
3982
+ * @memberof LiveTvApi
3983
+ */
3984
+ LiveTvApi.prototype.getRecordingFolders = function (requestParameters, options) {
3985
+ var _this = this;
3986
+ if (requestParameters === void 0) { requestParameters = {}; }
3987
+ return (0, exports.LiveTvApiFp)(this.configuration).getRecordingFolders(requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3988
+ };
3989
+ /**
3990
+ *
3991
+ * @summary Get recording group.
3992
+ * @param {LiveTvApiGetRecordingGroupRequest} requestParameters Request parameters.
3993
+ * @param {*} [options] Override http request option.
3994
+ * @deprecated
3995
+ * @throws {RequiredError}
3996
+ * @memberof LiveTvApi
3997
+ */
3998
+ LiveTvApi.prototype.getRecordingGroup = function (requestParameters, options) {
3999
+ var _this = this;
4000
+ return (0, exports.LiveTvApiFp)(this.configuration).getRecordingGroup(requestParameters.groupId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4001
+ };
4002
+ /**
4003
+ *
4004
+ * @summary Gets live tv recording groups.
4005
+ * @param {LiveTvApiGetRecordingGroupsRequest} requestParameters Request parameters.
4006
+ * @param {*} [options] Override http request option.
4007
+ * @deprecated
4008
+ * @throws {RequiredError}
4009
+ * @memberof LiveTvApi
4010
+ */
4011
+ LiveTvApi.prototype.getRecordingGroups = function (requestParameters, options) {
4012
+ var _this = this;
4013
+ if (requestParameters === void 0) { requestParameters = {}; }
4014
+ return (0, exports.LiveTvApiFp)(this.configuration).getRecordingGroups(requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4015
+ };
4016
+ /**
4017
+ *
4018
+ * @summary Gets live tv recordings.
4019
+ * @param {LiveTvApiGetRecordingsRequest} requestParameters Request parameters.
4020
+ * @param {*} [options] Override http request option.
4021
+ * @throws {RequiredError}
4022
+ * @memberof LiveTvApi
4023
+ */
4024
+ LiveTvApi.prototype.getRecordings = function (requestParameters, options) {
4025
+ var _this = this;
4026
+ if (requestParameters === void 0) { requestParameters = {}; }
4027
+ return (0, exports.LiveTvApiFp)(this.configuration).getRecordings(requestParameters.channelId, requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.status, requestParameters.isInProgress, requestParameters.seriesTimerId, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.fields, requestParameters.enableUserData, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isKids, requestParameters.isSports, requestParameters.isNews, requestParameters.isLibraryItem, requestParameters.enableTotalRecordCount, options).then(function (request) { return request(_this.axios, _this.basePath); });
4028
+ };
4029
+ /**
4030
+ *
4031
+ * @summary Gets live tv recording series.
4032
+ * @param {LiveTvApiGetRecordingsSeriesRequest} requestParameters Request parameters.
4033
+ * @param {*} [options] Override http request option.
4034
+ * @deprecated
4035
+ * @throws {RequiredError}
4036
+ * @memberof LiveTvApi
4037
+ */
4038
+ LiveTvApi.prototype.getRecordingsSeries = function (requestParameters, options) {
4039
+ var _this = this;
4040
+ if (requestParameters === void 0) { requestParameters = {}; }
4041
+ return (0, exports.LiveTvApiFp)(this.configuration).getRecordingsSeries(requestParameters.channelId, requestParameters.userId, requestParameters.groupId, requestParameters.startIndex, requestParameters.limit, requestParameters.status, requestParameters.isInProgress, requestParameters.seriesTimerId, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.fields, requestParameters.enableUserData, requestParameters.enableTotalRecordCount, options).then(function (request) { return request(_this.axios, _this.basePath); });
4042
+ };
4043
+ /**
4044
+ *
4045
+ * @summary Gets available countries.
4046
+ * @param {*} [options] Override http request option.
4047
+ * @throws {RequiredError}
4048
+ * @memberof LiveTvApi
4049
+ */
4050
+ LiveTvApi.prototype.getSchedulesDirectCountries = function (options) {
4051
+ var _this = this;
4052
+ return (0, exports.LiveTvApiFp)(this.configuration).getSchedulesDirectCountries(options).then(function (request) { return request(_this.axios, _this.basePath); });
4053
+ };
4054
+ /**
4055
+ *
4056
+ * @summary Gets a live tv series timer.
4057
+ * @param {LiveTvApiGetSeriesTimerRequest} requestParameters Request parameters.
4058
+ * @param {*} [options] Override http request option.
4059
+ * @throws {RequiredError}
4060
+ * @memberof LiveTvApi
4061
+ */
4062
+ LiveTvApi.prototype.getSeriesTimer = function (requestParameters, options) {
4063
+ var _this = this;
4064
+ return (0, exports.LiveTvApiFp)(this.configuration).getSeriesTimer(requestParameters.timerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4065
+ };
4066
+ /**
4067
+ *
4068
+ * @summary Gets live tv series timers.
4069
+ * @param {LiveTvApiGetSeriesTimersRequest} requestParameters Request parameters.
4070
+ * @param {*} [options] Override http request option.
4071
+ * @throws {RequiredError}
4072
+ * @memberof LiveTvApi
4073
+ */
4074
+ LiveTvApi.prototype.getSeriesTimers = function (requestParameters, options) {
4075
+ var _this = this;
4076
+ if (requestParameters === void 0) { requestParameters = {}; }
4077
+ return (0, exports.LiveTvApiFp)(this.configuration).getSeriesTimers(requestParameters.sortBy, requestParameters.sortOrder, options).then(function (request) { return request(_this.axios, _this.basePath); });
4078
+ };
4079
+ /**
4080
+ *
4081
+ * @summary Gets a timer.
4082
+ * @param {LiveTvApiGetTimerRequest} requestParameters Request parameters.
4083
+ * @param {*} [options] Override http request option.
4084
+ * @throws {RequiredError}
4085
+ * @memberof LiveTvApi
4086
+ */
4087
+ LiveTvApi.prototype.getTimer = function (requestParameters, options) {
4088
+ var _this = this;
4089
+ return (0, exports.LiveTvApiFp)(this.configuration).getTimer(requestParameters.timerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4090
+ };
4091
+ /**
4092
+ *
4093
+ * @summary Gets the live tv timers.
4094
+ * @param {LiveTvApiGetTimersRequest} requestParameters Request parameters.
4095
+ * @param {*} [options] Override http request option.
4096
+ * @throws {RequiredError}
4097
+ * @memberof LiveTvApi
4098
+ */
4099
+ LiveTvApi.prototype.getTimers = function (requestParameters, options) {
4100
+ var _this = this;
4101
+ if (requestParameters === void 0) { requestParameters = {}; }
4102
+ return (0, exports.LiveTvApiFp)(this.configuration).getTimers(requestParameters.channelId, requestParameters.seriesTimerId, requestParameters.isActive, requestParameters.isScheduled, options).then(function (request) { return request(_this.axios, _this.basePath); });
4103
+ };
4104
+ /**
4105
+ *
4106
+ * @summary Get tuner host types.
4107
+ * @param {*} [options] Override http request option.
4108
+ * @throws {RequiredError}
4109
+ * @memberof LiveTvApi
4110
+ */
4111
+ LiveTvApi.prototype.getTunerHostTypes = function (options) {
4112
+ var _this = this;
4113
+ return (0, exports.LiveTvApiFp)(this.configuration).getTunerHostTypes(options).then(function (request) { return request(_this.axios, _this.basePath); });
4114
+ };
4115
+ /**
4116
+ *
4117
+ * @summary Resets a tv tuner.
4118
+ * @param {LiveTvApiResetTunerRequest} requestParameters Request parameters.
4119
+ * @param {*} [options] Override http request option.
4120
+ * @throws {RequiredError}
4121
+ * @memberof LiveTvApi
4122
+ */
4123
+ LiveTvApi.prototype.resetTuner = function (requestParameters, options) {
4124
+ var _this = this;
4125
+ return (0, exports.LiveTvApiFp)(this.configuration).resetTuner(requestParameters.tunerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
4126
+ };
4127
+ /**
4128
+ *
4129
+ * @summary Set channel mappings.
4130
+ * @param {LiveTvApiSetChannelMappingRequest} requestParameters Request parameters.
4131
+ * @param {*} [options] Override http request option.
4132
+ * @throws {RequiredError}
4133
+ * @memberof LiveTvApi
4134
+ */
4135
+ LiveTvApi.prototype.setChannelMapping = function (requestParameters, options) {
4136
+ var _this = this;
4137
+ return (0, exports.LiveTvApiFp)(this.configuration).setChannelMapping(requestParameters.setChannelMappingDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
4138
+ };
4139
+ /**
4140
+ *
4141
+ * @summary Updates a live tv series timer.
4142
+ * @param {LiveTvApiUpdateSeriesTimerRequest} requestParameters Request parameters.
4143
+ * @param {*} [options] Override http request option.
4144
+ * @throws {RequiredError}
4145
+ * @memberof LiveTvApi
4146
+ */
4147
+ LiveTvApi.prototype.updateSeriesTimer = function (requestParameters, options) {
4148
+ var _this = this;
4149
+ return (0, exports.LiveTvApiFp)(this.configuration).updateSeriesTimer(requestParameters.timerId, requestParameters.seriesTimerInfoDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
4150
+ };
4151
+ /**
4152
+ *
4153
+ * @summary Updates a live tv timer.
4154
+ * @param {LiveTvApiUpdateTimerRequest} requestParameters Request parameters.
4155
+ * @param {*} [options] Override http request option.
4156
+ * @throws {RequiredError}
4157
+ * @memberof LiveTvApi
4158
+ */
4159
+ LiveTvApi.prototype.updateTimer = function (requestParameters, options) {
4160
+ var _this = this;
4161
+ return (0, exports.LiveTvApiFp)(this.configuration).updateTimer(requestParameters.timerId, requestParameters.timerInfoDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
4162
+ };
4163
+ return LiveTvApi;
4164
+ }(base_1.BaseAPI));
4165
+ exports.LiveTvApi = LiveTvApi;