diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 3d27a73..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "env": { - "browser": true, - "commonjs": true, - "es2021": true, - "node": true - }, - "extends": [ - "prettier", - "google" - ], - "plugins": [ - "prettier" - ], - "parserOptions": { - "ecmaVersion": "latest" - }, - "rules": { - "prettier/prettier": "error" - } -} diff --git a/.gitignore b/.gitignore index 8e3a106..213e655 100644 --- a/.gitignore +++ b/.gitignore @@ -1,89 +1,3 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock -.DS_Store - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# next.js build output -.next - -# nuxt.js build output -.nuxt - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# Webpack -.webpack/ - -# Electron-Forge -out/ +dist +build +__pycache__ \ No newline at end of file diff --git a/.vscode b/.vscode deleted file mode 100644 index 801d528..0000000 --- a/.vscode +++ /dev/null @@ -1,3 +0,0 @@ -{ - "editor.formatOnSave": true, -} \ No newline at end of file diff --git a/assets/icon.ico b/assets/icon.ico new file mode 100644 index 0000000..f2facf9 Binary files /dev/null and b/assets/icon.ico differ diff --git a/assets/icon.png b/assets/icon.png new file mode 100644 index 0000000..7a21970 Binary files /dev/null and b/assets/icon.png differ diff --git a/assets/icon.svg b/assets/icon.svg new file mode 100644 index 0000000..792559b --- /dev/null +++ b/assets/icon.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..9391dc9 Binary files /dev/null and b/assets/logo.png differ diff --git a/assets/logo.svg b/assets/logo.svg new file mode 100644 index 0000000..4c26c0d --- /dev/null +++ b/assets/logo.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/logo_small.png b/assets/logo_small.png new file mode 100644 index 0000000..9546a83 Binary files /dev/null and b/assets/logo_small.png differ diff --git a/assets/logo_small.svg b/assets/logo_small.svg new file mode 100644 index 0000000..f94c7fd --- /dev/null +++ b/assets/logo_small.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/main.py b/main.py new file mode 100644 index 0000000..edb4c6f --- /dev/null +++ b/main.py @@ -0,0 +1,86 @@ +import sys,os,requests +from localStoragePy import localStoragePy +from PySide6.QtWidgets import QApplication, QMainWindow +from PySide6.QtCore import QUrl, Slot, QObject +from PySide6.QtGui import QIcon, QPixmap +from PySide6.QtWebEngineWidgets import QWebEngineView +from PySide6.QtWebEngineCore import QWebEngineSettings +from PySide6.QtWebChannel import QWebChannel +import main_imp +app = QApplication(["--enable-smooth-scrolling"]) +os.environ['QTWEBENGINE_REMOTE_DEBUGGING'] = "9000" + +try: + from ctypes import windll # Only exists on Windows. + myappid = 'prayag17.jellyplayer.0.1.0' + windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid) +except ImportError: + pass + +storage = localStoragePy('prayag.jellyplayer.app', 'sqlite') +print(f"Server Url:{storage.getItem('server')}") +class Backend(QObject): + @Slot(str, result=bool) + def saveServer(self, data): + ping = requests.get(f"{data}/System/Ping") + if ping.content == b'"Jellyfin Server"': + storage.setItem('server', data) + storage.setItem("serverGo", True) + return True + else: + storage.setItem("serverGo", False) + return False + + @Slot(str, result=bool) + def getValuesFromDatabaseBool(self, object): + print(f"Object: {object}") + item = storage.getItem(object) + if item == "True": + return True + elif item == "False": + return False + + @Slot(str, result=str) + def getValuesFromDatabaseStr(self, object): + print(f"Object: {object}") + item = storage.getItem(object) + print(item) + return item + +class LoginWin(QMainWindow): + def __init__(self): + super().__init__() + + self.dir = os.path.dirname(os.path.abspath(__file__)) + self.view= QWebEngineView(self) + self.setCentralWidget(self.view) + # self.setWindowIcon() + + self.view.settings().setAttribute(QWebEngineSettings.JavascriptEnabled, True) + self.view.settings().setAttribute(QWebEngineSettings.PluginsEnabled, True) + self.view.settings().setAttribute(QWebEngineSettings.LocalContentCanAccessRemoteUrls, True) + self.view.settings().setAttribute(QWebEngineSettings.ScrollAnimatorEnabled, True) + + self.setWindowTitle('JellyPlayer') + self.setWindowIcon(QIcon(QPixmap(":/assets/icon.png"))) + self.view.load(QUrl("qrc:/renderer/html/main.html")) + self.view.loadFinished.connect(self.handleLoaded) + + self.inspector = QWebEngineView() + self.inspector.setWindowTitle("Inspector") + self.inspector.load(QUrl("http://127.0.0.1:9000")) + + self.backend = Backend() + self.channel = QWebChannel() + self.channel.registerObject('backend', self.backend) + self.view.page().setWebChannel(self.channel) + + def handleLoaded(self, ok): + if ok: + self.view.page().setDevToolsPage(self.inspector.page()) + self.inspector.show() + +window = LoginWin() +window.showMaximized() + +sys.exit(app.exec()) \ No newline at end of file diff --git a/main.qrc b/main.qrc new file mode 100644 index 0000000..ebc048c --- /dev/null +++ b/main.qrc @@ -0,0 +1,14 @@ + + + renderer/html/main.html + renderer/css/login.css + renderer/css/global.css + renderer/js/login.js + renderer/svg/avatar.svg + renderer/svg/loader.svg + assets/logo.svg + assets/logo.png + assets/icon.svg + assets/icon.png + + \ No newline at end of file diff --git a/main.spec b/main.spec new file mode 100644 index 0000000..c408280 --- /dev/null +++ b/main.spec @@ -0,0 +1,45 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis(['main.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) + +exe = EXE(pyz, + a.scripts, + [], + exclude_binaries=False, + name='JellyPlayer', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False, + disable_windowed_traceback=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon='assets/icon.ico' ) +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='JellyPlayer') diff --git a/main_imp.py b/main_imp.py new file mode 100644 index 0000000..3376b84 --- /dev/null +++ b/main_imp.py @@ -0,0 +1,12407 @@ +# Resource object code (Python 3) +# Created by: object code +# Created by: The Resource Compiler for Qt version 6.2.4 +# WARNING! All changes made in this file will be lost! + +from PySide6 import QtCore + +qt_resource_data = b"\ +\x00\x00\x04O\ +/\ +** @format */\x0d\x0a\x0d\ +\x0a:root {\x0d\x0a\x09--mai\ +n-bg: #0a1827;\x0d\x0a\ +\x09--warning-yello\ +w: #f18e06;\x0d\x0a\x09--\ +warning-bg: rgba\ +(220, 128, 1, 0.\ +16);\x0d\x0a\x09--error-r\ +ed: #a94442;\x0d\x0a\x09-\ +-error-red-darke\ +r-1: #8b2e2e;\x0d\x0a\x09\ +--error-red-bg: \ +#240e0ea0;\x0d\x0a\x09--y\ +es-green: #18be1\ +2;\x0d\x0a\x09--yes-green\ +-darker-1: #15a0\ +10;\x0d\x0a\x09--rounding\ +: 10px;\x0d\x0a\x09--roun\ +ding-1: 5px;\x0d\x0a\x09-\ +-transition-time\ +-fast-2: 100ms;\x0d\ +\x0a\x09--transition-t\ +ime-fast-1: 150m\ +s;\x0d\x0a\x09--transitio\ +n-time-default: \ +250ms;\x0d\x0a\x09--trans\ +ition-time-slow-\ +1: 350ms;\x0d\x0a}\x0d\x0a\x0d\x0a\ +body,\x0d\x0ahtml {\x0d\x0a\x09\ +margin: 0 !impor\ +tant;\x0d\x0a\x09padding:\ + 0 !important;\x0d\x0a\ +\x09font-family: \x22M\ +ontserrat\x22, sans\ +-serif;\x0d\x0a\x09color:\ + white;\x0d\x0a\x09backgr\ +ound: var(--main\ +-bg);\x0d\x0a}\x0d\x0a\x0d\x0ainpu\ +t,\x0d\x0abutton {\x0d\x0a\x09w\ +idth: 100%;\x0d\x0a\x09he\ +ight: 2.65em;\x0d\x0a\x09\ +outline: none;\x0d\x0a\ +}\x0d\x0a\x0d\x0a.input {\x0d\x0a\x09\ +position: relati\ +ve;\x0d\x0a\x09font-size:\ + calc(60vw / 20)\ +;\x0d\x0a\x09width: 100%;\ +\x0d\x0a}\x0d\x0a\x0d\x0a.ripple__\ +cont {\x0d\x0a\x09width: \ +100%;\x0d\x0a\x09height: \ +100%;\x0d\x0a\x09overflow\ +: hidden;\x0d\x0a}\x0d\x0a\x0d\x0a\ +@-webkit-keyfram\ +es btn_click {\x0d\x0a\ +\x090% {\x0d\x0a\x09\x09transfo\ +rm: scale(1);\x0d\x0a\x09\ +\x09opacity: 0;\x0d\x0a\x09}\ +\x0d\x0a\x09100% {\x0d\x0a\x09\x09tra\ +nsform: scale(5)\ +;\x0d\x0a\x09\x09opacity: 1;\ +\x0d\x0a\x09}\x0d\x0a}\x0d\x0a\x0d\x0a@keyf\ +rames btn_click \ +{\x0d\x0a\x090% {\x0d\x0a\x09\x09tran\ +sform: scale(1);\ +\x0d\x0a\x09\x09opacity: 0;\x0d\ +\x0a\x09}\x0d\x0a\x09100% {\x0d\x0a\x09\x09\ +transform: scale\ +(1.5);\x0d\x0a\x09\x09opacit\ +y: 1;\x0d\x0a\x09}\x0d\x0a}\x0d\x0a\ +\x00\x00\x09S\ +\x00\ +\x00(\xb3x\x9c\xcdZmo\xe36\x12\xfe\x9c\x05\xf6\ +?\xe8R,`\xe7,GvV\xc9\xae\x83+\xb6\xed\ +\xa7\x02-\xee\x80\xfb\xd2\xc3a\x11P\x12e\xb3\x91D\ +\x81\xa2\xedx\x0f\xf7\xdf;|\x93HQ\xb2\xbdY\xf7\ +pI\x8c\xd8\x149|\xe6\x953C\xdf\xde\xdc\x04\x9f\ +r\xcaJ\xc4\x83\x9b\xdb\xb7o\xde\xbe\xb9\x99\xc1k\xb5\ +J0\x8cb\xf5\x1e\xe5\x1c\xb3\xe0?o\xdf\x5c%\xf4\ +%l\xc8\x17R\xadWABY\x86Y\x08C\x8fo\ +\xdf\xfcW,]\xad\xc2=N\x9e\x09\x0f\x9b\x94\xd1\xa2\ +H\x90Z\xb5\xc1d\xbd\xe1\xab`\x11\xd5\xc7\xe6\x86|\ +\xb3-\x13\xb5\x0fJ\x9f\xd7\x8cn\xabl\x15\xb0u2\ +Y\xc6q`^\xb7A4\x8f\xa7\x8f\x12\x8dD\xc0P\ +F\xb6\xcd\x99\xe4W\x1b\xba3\xcc\x8cor\xbb\x98\x1a\ +J%\x22\x95\x9c^\xd3\x86pB\xabU\x90\x93\x17\x9c\ +\x09\x00\xa4j0\xf0\x15\x89\xf7)\xad8L]\x05\x0d\ +g$\xe5bhO2\xbe\x11\xb8\xa2\xdd\xfe\xd1\x91C\ +\xb4\xdb\x88\x81/!\xa92\xfc\x02#\xe2SF\x9a\xba\ +@\x07\xa0_`\xc1\xc8\x15*\xc8\xba\x0a\x09\xc7%p\ +\x97\xe2\x0a\xb4 \x86\x05\x03yA\xf7\xab`C\xb2\x0c\ +W\x06\xe9\xbcFk\xdc\x83\xdap\xc4Iz\x16\x18o\ +\xfb\xdf\xb7\x0d'\xf9!\x14\x9c\xc1\xe66\x84\x11db\ +e\x08\x22\xddk\x8e\xe4\xe7f\xc3H\xf5\xac\xa5$G\ +\x12\xd4\x90\xc6\x822\xc0\x90\x9a\xa8\x06SZlK9\ +\xb8F\xb5\xabf\xc5\xf2\xf7A\xb2\xe5\x9c*5i>\ +\xef5\xed\x12\xbd\x84z\xe8n\x89Kg\xe1\xbcD\xd5\ +\x16\x15OO\x05]{Jf\xb8\x00\xd1\xedp\xbb\xa2\ +\xc1\x0cp>=\x09q\x80_\xcc\xb7\x8d\xfd\xc9\x90\x22\ +U\xbd\xe5\xa7\x94`l3\x87\x97\x96\xae\xfd\xb4\xa4_\ +F\x1e\xf5Fm\xe6\x22\x8b9\xe0\x87\x064\xf9\x1d\xa7\ +\xdc\x96\x09\x08\xfc]O\xf5\xef\xda5>\x03=Iz\ +\xf61\xa8\x22\xc72\xc0\x150O7\xc7\x8d\xc9\x97\xae\ +\xdc\xfd\xbc\xed\xd6\x8cd\xa14\x8b\xbb\x8e\x7fe\x0d\xf3\ +\xb4 \xe9\xf3a\x5c\xad\x96\xdd\xedHC\x92\x02\x0f\x12\ +\xb0\xe3_\x8b\xfe\xfa\xfa\xd1\x84\xc3\x0d\xca\x04\x89\x08~\ +\x17q\xfd\x12\xbc\x07\xfb\x0cv\x88M\xc20-\x98\x0c\ +T\xdd\xf6(i\x00;\xc7\x8f'\xb5r\xc5i\xad\x9d\ +\xa6\xc0\xb9\x892^\xc8S\xcepEk\x94\x12~\xd0\ +\xb38CU\xbbcQh4\xddh\xc8I\x89\xc3\x06\ +X\x0f\xbb@\xe72\x8dR!%/\xf6[\xcc\x8a\xdf\ +\xfd\x86(^\xba\xfd\xe7q\x1fA\xd4\x98-\xa4m\xfd\ +\x9b\x1fj\xfc\xb7k\x8e_\xf8\xf5\xe7\x99;\xb8e\x85\ +7V\xa3\xa6\xd9\x03\xdb\xd7\x9f\xbd\xa8-w\xa9\x11\xd3\ +\xee\xa0\x84\xb3\x0a*ZaKX\x09\x05\xc6J\xb0\x10\ +\xd0\x0bH\x9fd\x1dl0$\x0a\x0b\xccgK\x0er\ +/\xa9A0\xb7-\x13[\xfc$&\x8f\xc5+\x1b\xd6\ +w\xb9\xfcy\x9f\xd8\xa0\x96'w\x1fUn\xcfPl\ +\xd9v\xdb\x8e(9\xc39\xda\x16\xbc\xa7\xe5\x91SP\ +\x03\xbfOZ\xb7\x94\x8a\x80\x00\x89\x12\x5c\xf4<\xc96\ +ei\xab\xb1\x82gY\xab\x04#\xb2\x0b\xad*p=\ +\xfc\xafI\x08\x13\xa5[\xe4\xe0M\x22\x9d\xc0\xab\xa0$\ +\xd5d\x81\xcb\x19\x1c\xbe\xf5\xcb\xb4\xcfe;\xf1\x04\x93\ +`9W\xdd\xa6gJD\xb2\xb8\xcai\xbam\x82\xbf\ +\x06\x0e\xc7\xb3\x9e\x04\xd4\x87_\xc4\xdb\x1f\xa4\x7fH\x91\ +\x0cs\x99\xa2\x22\x9d\x84BgA\x08^\xf1!\xc6\xe5\ +t\x88\xebh\xfe\x10\x0b\xc6\x17\x9aq%wA\xee\x1b\ +\x82\xe1\xc2:\x0c\xc0F\xb1KD\xf8G\xf0\x17R\xd6\ +\x94q\xa4\x5cG\x06@RH\x17VF\xedN0\xd6\ +\x90SIJ\xf2\x90\xa3\x92\x140\xff\xfa\xe7\x1f\x7f\x0d\ +\xfe\x01\x80\x82_iE\xafgA\x09\xff\xc0-\xd3~\ +d\xb8\x8f/\x94gX\x8cj\x17\xb1\x84*\x05/\x0e\ +-\xc8\x14\x97\xd1\xd4\x05Ot\x18\x97\x8e\xa7\xecc\x8f\ +X\x05\x09mx\xc0\x05\xc8s\xd00\xe7RCw\x91\ +6M\x13\xa9G\x8e\xf1\xf6\xf1\xc09n\x9e\xb9\xc3\x16\ +\xc0\x8c\xec:\x09\xdbVr\xefX\xc9\x95\x08\x9f\xa1\x14\ +\xcf*\x10\x1ew\xf9\xecB\x81B\x05f\xfd|\xc6\xf6\ +|\xbb\x22\xd0kuI`\xa8\xc6~&\xb6T\xc9\x8a\ +o\x0a*v,\xb5R\xed\xd0\xa4t\xd5\x8dL\xcf\x08\ +\xa0j\x8d\x9c\x0e\xf8:\xcd\xee\xb5\x12\xee\xa3\xe8u\xf6\ +\xd7?\x0a\x85e\xc8\x12B\x9d\x8a]\x852tR\x18\ +\xf5\xa0\x8a@\xd5%\x05\x9a\xd2\x12\xff\x5c\x9d\x88W\x10\ +\x05\x19\xd8j\xd6H`\xdf\xb0\xd8V\xec\x9c\xa4\xfa\xac\ +\xb3\x0cn)\xec}X\x01R\xe2\x8e\x13\x98Si$\ +\xd7\xb7\xaa\x81\x1ae\x99\xb4\x13a\xc4}\x1ce\xb3V\ +Vf&E\xee4\xed\xa5\xfaX\xf6\x81\x19/N\x94\ +\x9e5\xd2q\x1f\xb76\x9fc\xc6(\x1b\xa5,\x0a\xc0\ +\x11\xb2ra\xc8p\xd6Q\xcc\x08\x82\xec{\xac`<\ +N\xdd-\x07/\x1eeL\xb9\x0a\xc7\xaf4\xd3\xd8J\ +'z\xc7\x97<\xa3gA{R\x1f\xf1\xf2Va\xc6\ +k\xb5\x84\x92\x02x=\xcf)]w\x12!=\xb8\x8b\ +\x95G\xa1I<\x0b\xd4\x1f\x1c\x94\xd3\xe18\xe2H\xbe\ +\xb3hGU\x9d\xe1j<*\xd4\xc4&+{tm\ +/\xea\xec\xcf\xf6\x0cUd\x00\x04\x06\x05\xa3&\x11.\ +\xed\x82T\xa1pL\xea<\x93\xe9Y\xf8Y\xe6kX\ +\xe6\x84\x17\xd8\xf3b\x85u(\xe2i\xe2~g\xe5\xa3\ +\xd2\xb7K\xdd\xb8\xa6E{1_\xc6\x03\xe4\xdf\x9f \ +\x7f\x1f\xbf\x9bv\xf2\x93\xc5\x02.e\xb0P;\xaa\xe4\ +\xb4\x19Ny\xfc\xe2_\x01\x844\xa9\xa0M\xbf\xf1\xd1\ +\xba\xdc\xc9\xbeG\xaf\x0d\xe4X\x5c\xec\xfae\x87T\xaa\ +q\xae\x8a\xa4Y\xa7\xc3n@\xab\xcc\x9b\xa2\xd1\xeaq\ +\xa5l\xff@\xc8Q6\x1e\xd3s\xd4pU\xb7]\xbd\ +bI+\xd7\xa4\xa0\xcaA\xed\xdc\xafW\x08\x1b\xbe\x04\ +\xf1\xbfo\xb9\xcf\x86~p\x8c\x0f\xf1\xf8(\xaa\xb1\x83\ +\xed\xab\x17\xdb1}M\x8f\xc0R\x0f_w\xdc~\xed\ +Z\xe7\x94+(\xca\x8e&S\xaaR\x8dlC\x8d\xfd\ +d\xa8Mx\x86*C\x15\xca\x1bH\x83\xf1o\x93h\ +:\x92rH$w\xcd\x18\x97\xfd\xc7AA*\x8c\x98\ +\xb3IH\x19\x91n\xac\xf3O\xd3{\x02\xb5\xb11o\ +\x1cj\xb9\xfc/Z\x9366\xd3\xdc\x1e\xea\xe8\x9c8\ +\xb3e|\x88 2\xa8?\x1d\x1f\x06;5\xe77\x7f\ +\xbd\x96\xcd\xa9vM\xabO\x01-c\xb4\x86\xf3\xbf\xe0\ +X\x1e\xba[61%\xc2\xd1\xa7\x8e\xb2\x9a\x9d\x8a\xf0\ +N\x02\x22g48\x15\x08\xacf\xe7pp\xf6\x14\x22\ +\xeb\xbf0\xc1|\x8fU\xda\xdbi\x1em9\xed\xb7\xae\ +5}05\xbb\xf5x\xa9>\xe9h\x83\xd9\xc9W\xbb\ +\xfc\xd4\xca*,`sM\xf1HE\xee\xd0{e\xff\ +\xbcW\xd5{06\x0b\x09`\xec\x0cU3A\xa3]\ +\x8f\x9a\x94k\xb7\x0d\xac\x8e\xee\x90\x86\xaaG,\x84(\ +v\xdc\xe9\xfb\x85\xa1\xc1\xce|uip:\xab\x1b\x0a\ +X%y\x09\xc1\xeb\xab\x0c\x94\x97\x89\xda\x16\xc2%\xa9\ +\x8b\x83\x9f\x06F2\xa1\x0c\xbe\x8b\xe4O\xfc\xe03\xe8\ +\xd6\x0b}\xa5\xbd\xaao\xa2s\xa6W\x86\x17-m\xd3\ +$\xe9\x05\xe7\xf3\xb0\x5c\xa0\x19\xa2\xc0\xc8\x9c\xf0\xe9\xa9\ +B\xa5\x9be\x98` #\x83\x12\xb7,[?\xd8\xc2\ +V\xb5\xf2\xd93\xedfD\x07\xec\xc2N\xecd\x9aq\ +\xe4\xbal\xe4\xa4\x95\xbd\xac]4PdWH\x06c\ +\xc8C\x17\xf1t&-\xb9\xd7\x9d\xb7/\x07t\x8e\xdf\ +\x1e\xc9\xa6&VZhp\x91{\xfa\xb7D~\xe4\xd2\ +@s\xf7\xe0v\xfd\x97\xea\x94?\x9e\x17\x84z\x96\xae\ +]\xc6\xeb\xb7\xdf\xba&\xeb\x90\x1bz\xe6:\x00\xdd\xbe\ +\xd4R\xf7cc\xfc\xa1\xa2X\x05[Q[\x9e\x22m\ +\x05\xae\xd0\xceu\xfcEm\xe0\x9a\x0d>0\xde\xefw\ +\xcc\xbb\x0b-\xd9\xab\x9d\xa7\x1b\x9c>Cd9\x19\x0e\ +\x18\xdd\x0f\xfa\x9f\x8a\xeb\x1c1>\xe8lG\x03B\xbb\ +y\xd7?\xf7\xfbz\xa2\xad\xe7X\xe72\x9eN-\x9b\ +J\x9f]\xecm\xde\xae\x0dI\x928\x19\x92u\xe6`\ +n#\x16\xdem\x84\xb5]\x8d\xf8F\xee\xd9pF\x9f\ +\xb1\x15\xbe\xd5@\x98!\x08\x07\x8c\x094&\xbaYO\ +h\x9e\xcb>C8ta\xe1\xcd;\x96\xde/\xdd&\ +\xbd\xbe\x102R\xbd\xfe\xbc\x92oq&\xfa\xf6\x12\xf9\ +\xf7}\xec\x0e \xcb8\x18.q\x99\x08Sj\xcf\x8a\ +a\xd7\xeb\xb7\xb9zA\xdd\xfe\x06\xc0x0roX\ +\xe5\xdd\xc4W\x9cN\xf2`\xd2\xd6\x06V\x1a:\x032\ +~\xaa\xc9\xee\x83\x811]d#mQG\xaerF\ +\x92\xd9K\x85r\xb7\xd1\xd5\xc9m~'R\x99\xb9\xdd\ +Z0\xfd\x86\x81\x8e\xa4\xec/\x884A\xfc\x8d~+\ +Dv\xba\xc0\xda\xbd,\xfb\xe4\xd5YW4w\x82;\ +\xf6\xf5\x11\x1b\xcaC\xbb\xec\xf6\xe6\x07SV5\xe2\x1b\ +6\x9f\x8c\x10\x9f\xf1!g\x10\x14\x1b]\xba\xff\xa8B\ +Z\xf4N\xfe\xeb\xdd\xe8\x02\xa9+y\x97\xd4{6\xbf\ +\xd7O\xe5^\x9f\xfe\x0c\x9acx\xbf\x8a2'\x07\xad\ +\xedQ\xac\xdfJo\x18\xa7\xe9\x02\x98\xc5~\x18\xed\xf6\ +2\xf4\xae>~\x0d\x0a\ +\x0d\x0a\x0d\x0a\x0d\ +\x0a\x0d\x0a\x0d\x0a\x0d\x0a\ +\x0d\x0a\x0d\x0a\x0d\x0a\ +\x0d\x0a\x0d\x0a\x0d\x0a\ +svg>\x0d\x0a\ +\x00\x00\x02\x99\ +<\ +svg width=\x2252\x22 h\ +eight=\x2212\x22 viewB\ +ox=\x220 0 52 12\x22 f\ +ill=\x22none\x22 xmlns\ +=\x22http://www.w3.\ +org/2000/svg\x22 xm\ +l:space=\x22preserv\ +e\x22>\x0a \x0a \x0a \x0a \x0a \x0a\ + \x0a \ + \x0a \ + \ + \x0a \ +\x0a\x0a\ +\x00\x00,\xd7\ +<\ +!DOCTYPE html>\x0d\x0a\ +\ +\x0d\x0a\x0d\x0a \x0d\x0a \x0d\ +\x0a \x0d\x0a \ + \ +\x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \x0d\x0a \ + Jellyfin\ +\x0d\x0a \x0d\x0a \ +\x22use strict\x22;var\ + ReflectOwnKeys,\ +R=\x22object\x22==type\ +of Reflect?Refle\ +ct:null,ReflectA\ +pply=R&&\x22functio\ +n\x22==typeof R.app\ +ly?R.apply:funct\ +ion(e,t,n){retur\ +n Function.proto\ +type.apply.call(\ +e,t,n)};function\ + ProcessEmitWarn\ +ing(e){console&&\ +console.warn&&co\ +nsole.warn(e)}Re\ +flectOwnKeys=R&&\ +\x22function\x22==type\ +of R.ownKeys?R.o\ +wnKeys:Object.ge\ +tOwnPropertySymb\ +ols?function(e){\ +return Object.ge\ +tOwnPropertyName\ +s(e).concat(Obje\ +ct.getOwnPropert\ +ySymbols(e))}:fu\ +nction(e){return\ + Object.getOwnPr\ +opertyNames(e)};\ +var NumberIsNaN=\ +Number.isNaN||fu\ +nction(e){return\ + e!=e};function \ +EventEmitter(){E\ +ventEmitter.init\ +.call(this)}Even\ +tEmitter.EventEm\ +itter=EventEmitt\ +er,EventEmitter.\ +prototype._event\ +s=void 0,EventEm\ +itter.prototype.\ +_eventsCount=0,E\ +ventEmitter.prot\ +otype._maxListen\ +ers=void 0;var d\ +efaultMaxListene\ +rs=10;function c\ +heckListener(e){\ +if(\x22function\x22!=t\ +ypeof e)throw ne\ +w TypeError('The\ + \x22listener\x22 argu\ +ment must be of \ +type Function. R\ +eceived type '+t\ +ypeof e)}functio\ +n _getMaxListene\ +rs(e){return voi\ +d 0===e._maxList\ +eners?EventEmitt\ +er.defaultMaxLis\ +teners:e._maxLis\ +teners}function \ +_addListener(e,t\ +,n,r){var i,o,s;\ +if(checkListener\ +(n),void 0===(o=\ +e._events)?(o=e.\ +_events=Object.c\ +reate(null),e._e\ +ventsCount=0):(v\ +oid 0!==o.newLis\ +tener&&(e.emit(\x22\ +newListener\x22,t,n\ +.listener?n.list\ +ener:n),o=e._eve\ +nts),s=o[t]),voi\ +d 0===s)s=o[t]=n\ +,++e._eventsCoun\ +t;else if(\x22funct\ +ion\x22==typeof s?s\ +=o[t]=r?[n,s]:[s\ +,n]:r?s.unshift(\ +n):s.push(n),(i=\ +_getMaxListeners\ +(e))>0&&s.length\ +>i&&!s.warned){s\ +.warned=!0;var u\ +=new Error(\x22Poss\ +ible EventEmitte\ +r memory leak de\ +tected. \x22+s.leng\ +th+\x22 \x22+String(t)\ ++\x22 listeners add\ +ed. Use emitter.\ +setMaxListeners(\ +) to increase li\ +mit\x22);u.name=\x22Ma\ +xListenersExceed\ +edWarning\x22,u.emi\ +tter=e,u.type=t,\ +u.count=s.length\ +,ProcessEmitWarn\ +ing(u)}return e}\ +function onceWra\ +pper(){if(!this.\ +fired)return thi\ +s.target.removeL\ +istener(this.typ\ +e,this.wrapFn),t\ +his.fired=!0,0==\ +=arguments.lengt\ +h?this.listener.\ +call(this.target\ +):this.listener.\ +apply(this.targe\ +t,arguments)}fun\ +ction _onceWrap(\ +e,t,n){var r={fi\ +red:!1,wrapFn:vo\ +id 0,target:e,ty\ +pe:t,listener:n}\ +,i=onceWrapper.b\ +ind(r);return i.\ +listener=n,r.wra\ +pFn=i,i}function\ + _listeners(e,t,\ +n){var r=e._even\ +ts;if(void 0===r\ +)return[];var i=\ +r[t];return void\ + 0===i?[]:\x22funct\ +ion\x22==typeof i?n\ +?[i.listener||i]\ +:[i]:n?unwrapLis\ +teners(i):arrayC\ +lone(i,i.length)\ +}function listen\ +erCount(e){var t\ +=this._events;if\ +(void 0!==t){var\ + n=t[e];if(\x22func\ +tion\x22==typeof n)\ +return 1;if(void\ + 0!==n)return n.\ +length}return 0}\ +function arrayCl\ +one(e,t){for(var\ + n=new Array(t),\ +r=0;r0&&(o\ +=t[0]),o instanc\ +eof Error)throw \ +o;var s=new Erro\ +r(\x22Unhandled err\ +or.\x22+(o?\x22 (\x22+o.m\ +essage+\x22)\x22:\x22\x22));\ +throw s.context=\ +o,s}var u=i[e];i\ +f(void 0===u)ret\ +urn!1;if(\x22functi\ +on\x22==typeof u)Re\ +flectApply(u,thi\ +s,t);else{var f=\ +u.length,v=array\ +Clone(u,f);for(n\ +=0;n\ +=0;o--)if(n[o]==\ +=t||n[o].listene\ +r===t){s=n[o].li\ +stener,i=o;break\ +}if(i<0)return t\ +his;0===i?n.shif\ +t():spliceOne(n,\ +i),1===n.length&\ +&(r[e]=n[0]),voi\ +d 0!==r.removeLi\ +stener&&this.emi\ +t(\x22removeListene\ +r\x22,e,s||t)}retur\ +n this},EventEmi\ +tter.prototype.o\ +ff=EventEmitter.\ +prototype.remove\ +Listener,EventEm\ +itter.prototype.\ +removeAllListene\ +rs=function(e){v\ +ar t,n,r;if(void\ + 0===(n=this._ev\ +ents))return thi\ +s;if(void 0===n.\ +removeListener)r\ +eturn 0===argume\ +nts.length?(this\ +._events=Object.\ +create(null),thi\ +s._eventsCount=0\ +):void 0!==n[e]&\ +&(0==--this._eve\ +ntsCount?this._e\ +vents=Object.cre\ +ate(null):delete\ + n[e]),this;if(0\ +===arguments.len\ +gth){var i,o=Obj\ +ect.keys(n);for(\ +r=0;r=0;r--)this.r\ +emoveListener(e,\ +t[r]);return thi\ +s},EventEmitter.\ +prototype.listen\ +ers=function(e){\ +return _listener\ +s(this,e,!0)},Ev\ +entEmitter.proto\ +type.rawListener\ +s=function(e){re\ +turn _listeners(\ +this,e,!1)},Even\ +tEmitter.listene\ +rCount=function(\ +e,t){return\x22func\ +tion\x22==typeof e.\ +listenerCount?e.\ +listenerCount(t)\ +:listenerCount.c\ +all(e,t)},EventE\ +mitter.prototype\ +.listenerCount=l\ +istenerCount,Eve\ +ntEmitter.protot\ +ype.eventNames=f\ +unction(){return\ + this._eventsCou\ +nt>0?ReflectOwnK\ +eys(this._events\ +):[]};\x0d\x0a \x0d\x0a \ +script>\x0d\x0a \x0d\x0a imp\ +ort { UserApi } \ +from 'https://cd\ +n.jsdelivr.net/n\ +pm/@jellyfin/cli\ +ent-axios/+esm';\ +\x0d\x0a window\ +.UserApi = UserA\ +pi\x0d\x0a cons\ +ole.log(UserApi)\ +;\x0d\x0a \ +\x0d\x0a\x0d\x0a\x0d\x0a <\ +/canvas>\x0d\x0a \x0d\x0a \x0d\x0a \ + \x0d\x0a \ + \x0d\x0a \ + \ + \x0d\x0a \ + \x0d\x0a \ + \x0d\x0a \ + \x0d\ +\x0a \ + \x0d\x0a \ + <\ +label for=\x22serve\ +rUrl\x22 class=\x22inp\ +ut__label\x22>Serve\ +r Address\x0d\x0a \ + \x0d\x0a \ + \ + \x0d\x0a \ + Save\ +\x0d\x0a \ + \x0d\ +\x0a \ + \x0d\x0a \ + \ + \ +i>\x0d\x0a \ + \x0d\x0a \ + E\ +nter your Jellyf\ +in server addres\ +s above\x0d\x0a \ + \ + Example\ +: https://jellyf\ +in.mydomain.com \ +or http://192.16\ +8.25.35:8096\x0d\x0a \ + \ + \x0d\x0a \ + \ + \x0d\x0a \ + \ +\x0d\x0a \ +section>\x0d\x0a \ + \x0d\x0a \ + \x0d\x0a \ + Use\ +rs\x0d\x0a \ + \x0d\x0a \ + \ +{document.queryS\ +elector('.server\ +').classList.add\ +('hide');}, 1000\ +);\x22>\x0d\x0a \ + Manu\ +al Login\x0d\ +\x0a \x0d\x0a \ + \x0d\x0a \ + Chang\ +e Server\x0d\ +\x0a \x0d\x0a \ +\x0d\x0a \ + \x0d\x0a \ + \x0d\x0a \ + \x0d\x0a \ + \x0d\x0a <\ +section class=\x22m\ +anual__input\x22>\ +section>\x0d\x0a \ + \x0d\x0a \ + \x0d\ +\x0a \x0d\x0a \ + \x0d\x0a \ + \ + \ + \x0d\x0a\ + \ +\x0d\x0a \ + \x0d\x0a \ + \x0d\x0a\ + \ +\x0d\x0a \ + \x0d\x0a \ + \x0d\x0a \ + \x0d\x0a \ + \x0d\x0a \ + \x0d\x0a <\ +/div>\x0d\x0a \x0d\x0a + + + + + + + + + + + + + + + Server Address + + + Save + + + + + Enter your Jellyfin server address above + Example: https://jellyfin.mydomain.com or http://192.168.25.35:8096 + + + + + + + Users + + + Manual Login + + + Change Server + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/renderer/js/apiclient.js b/renderer/js/apiclient.js new file mode 100644 index 0000000..295acce --- /dev/null +++ b/renderer/js/apiclient.js @@ -0,0 +1,62331 @@ +(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + +},{}],2:[function(require,module,exports){ +const {Jellyfin} = require("@thornbill/jellyfin-sdk"); +},{"@thornbill/jellyfin-sdk":346}],3:[function(require,module,exports){ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Api = exports.AUTHORIZATION_HEADER = void 0; +/** + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +var axios_1 = __importDefault(require("axios")); +var generated_client_1 = require("./generated-client"); +var utils_1 = require("./utils"); +// eslint-disable-next-line @typescript-eslint/no-var-requires +var buildFullPath = require('axios/lib/core/buildFullPath'); +/** The authorization header field name. */ +exports.AUTHORIZATION_HEADER = 'X-Emby-Authorization'; +/** Class representing the Jellyfin API. */ +var Api = /** @class */ (function () { + function Api(basePath, clientInfo, deviceInfo, accessToken, axiosInstance) { + if (accessToken === void 0) { accessToken = ''; } + if (axiosInstance === void 0) { axiosInstance = axios_1.default; } + this.basePath = basePath; + this.clientInfo = clientInfo; + this.deviceInfo = deviceInfo; + this.accessToken = accessToken; + this.axiosInstance = axiosInstance; + } + Object.defineProperty(Api.prototype, "configuration", { + get: function () { + return new generated_client_1.Configuration({ + basePath: this.basePath, + apiKey: this.authorizationHeader + }); + }, + enumerable: false, + configurable: true + }); + /** + * Convenience method for authenticating a user by name and updating the internal state. + * @param username The username. + * @param password The user password if required. + */ + Api.prototype.authenticateUserByName = function (username, password) { + var _a; + var _this = this; + return this.userApi.authenticateUserByName( + // The axios client does some strange wrapping of the param object + { authenticateUserByName: { Username: username, Pw: password } }, + // The authorization header is required for the request to succeed + { headers: (_a = {}, _a[exports.AUTHORIZATION_HEADER] = this.authorizationHeader, _a) }).then(function (response) { + // Update the current token and configuration object + _this.accessToken = response.data.AccessToken || ''; + return response; + }); + }; + /** + * Convenience method for logging out and updating the internal state. + */ + Api.prototype.logout = function () { + var _this = this; + return this.sessionApi.reportSessionEnded().then(function (response) { + _this.accessToken = ''; + return response; + }); + }; + /** + * Get an item image URL. + * @param itemId The Item ID. + * @param imageType An optional Image Type (Primary by default). + * @param params Additional request parameters. + * @returns The image URL. + */ + Api.prototype.getItemImageUrl = function (itemId, imageType, params) { + if (imageType === void 0) { imageType = generated_client_1.ImageType.Primary; } + if (params === void 0) { params = {}; } + // TODO: We could probably use ImageApiAxiosParamCreator to make this more robust + var uri = this.axiosInstance.getUri({ + url: "/Items/".concat(itemId, "/Images/").concat(imageType), + params: params + }); + // NOTE: This behavior will probably be the default in axios in the future + // https://github.com/axios/axios/issues/2468 + return buildFullPath(this.basePath, uri); + }; + Object.defineProperty(Api.prototype, "authorizationHeader", { + get: function () { + return (0, utils_1.getAuthorizationHeader)(this.clientInfo, this.deviceInfo, this.accessToken); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "activityLogApi", { + get: function () { + return new generated_client_1.ActivityLogApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "apiKeyApi", { + get: function () { + return new generated_client_1.ApiKeyApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "artistsApi", { + get: function () { + return new generated_client_1.ArtistsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "audioApi", { + get: function () { + return new generated_client_1.AudioApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "brandingApi", { + get: function () { + return new generated_client_1.BrandingApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "channelsApi", { + get: function () { + return new generated_client_1.ChannelsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "collectionApi", { + get: function () { + return new generated_client_1.CollectionApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "configurationApi", { + get: function () { + return new generated_client_1.ConfigurationApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "dashboardApi", { + get: function () { + return new generated_client_1.DashboardApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "devicesApi", { + get: function () { + return new generated_client_1.DevicesApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "displayPreferencesApi", { + get: function () { + return new generated_client_1.DisplayPreferencesApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "dlnaApi", { + get: function () { + return new generated_client_1.DlnaApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "dlnaServerApi", { + get: function () { + return new generated_client_1.DlnaServerApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "dynamicHlsApi", { + get: function () { + return new generated_client_1.DynamicHlsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "environmentApi", { + get: function () { + return new generated_client_1.EnvironmentApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "filterApi", { + get: function () { + return new generated_client_1.FilterApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "genresApi", { + get: function () { + return new generated_client_1.GenresApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "hlsSegmentApi", { + get: function () { + return new generated_client_1.HlsSegmentApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "imageApi", { + get: function () { + return new generated_client_1.ImageApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "imageByNameApi", { + get: function () { + return new generated_client_1.ImageByNameApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "instantMixApi", { + get: function () { + return new generated_client_1.InstantMixApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "itemLookupApi", { + get: function () { + return new generated_client_1.ItemLookupApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "itemRefreshApi", { + get: function () { + return new generated_client_1.ItemRefreshApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "itemUpdateApi", { + get: function () { + return new generated_client_1.ItemUpdateApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "itemsApi", { + get: function () { + return new generated_client_1.ItemsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "libraryApi", { + get: function () { + return new generated_client_1.LibraryApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "libraryStructureApi", { + get: function () { + return new generated_client_1.LibraryStructureApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "liveTvApi", { + get: function () { + return new generated_client_1.LiveTvApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "localizationApi", { + get: function () { + return new generated_client_1.LocalizationApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "mediaInfoApi", { + get: function () { + return new generated_client_1.MediaInfoApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "moviesApi", { + get: function () { + return new generated_client_1.MoviesApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "musicGenresApi", { + get: function () { + return new generated_client_1.MusicGenresApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "notificationsApi", { + get: function () { + return new generated_client_1.NotificationsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "packageApi", { + get: function () { + return new generated_client_1.PackageApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "personsApi", { + get: function () { + return new generated_client_1.PersonsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "playlistsApi", { + get: function () { + return new generated_client_1.PlaylistsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "playstateApi", { + get: function () { + return new generated_client_1.PlaystateApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "pluginsApi", { + get: function () { + return new generated_client_1.PluginsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "quickConnectApi", { + get: function () { + return new generated_client_1.QuickConnectApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "remoteImageApi", { + get: function () { + return new generated_client_1.RemoteImageApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "scheduledTasksApi", { + get: function () { + return new generated_client_1.ScheduledTasksApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "searchApi", { + get: function () { + return new generated_client_1.SearchApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "sessionApi", { + get: function () { + return new generated_client_1.SessionApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "startupApi", { + get: function () { + return new generated_client_1.StartupApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "studiosApi", { + get: function () { + return new generated_client_1.StudiosApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "subtitleApi", { + get: function () { + return new generated_client_1.SubtitleApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "suggestionsApi", { + get: function () { + return new generated_client_1.SuggestionsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "syncPlayApi", { + get: function () { + return new generated_client_1.SyncPlayApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "systemApi", { + get: function () { + return new generated_client_1.SystemApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "timeSyncApi", { + get: function () { + return new generated_client_1.TimeSyncApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "trailersApi", { + get: function () { + return new generated_client_1.TrailersApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "tvShowsApi", { + get: function () { + return new generated_client_1.TvShowsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "universalAudioApi", { + get: function () { + return new generated_client_1.UniversalAudioApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "userApi", { + get: function () { + return new generated_client_1.UserApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "userLibraryApi", { + get: function () { + return new generated_client_1.UserLibraryApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "userViewsApi", { + get: function () { + return new generated_client_1.UserViewsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "videoAttachmentsApi", { + get: function () { + return new generated_client_1.VideoAttachmentsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "videoHlsApi", { + get: function () { + return new generated_client_1.VideoHlsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "videosApi", { + get: function () { + return new generated_client_1.VideosApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + Object.defineProperty(Api.prototype, "yearsApi", { + get: function () { + return new generated_client_1.YearsApi(this.configuration, undefined, this.axiosInstance); + }, + enumerable: false, + configurable: true + }); + return Api; +}()); +exports.Api = Api; + +},{"./generated-client":71,"./utils":360,"axios":362,"axios/lib/core/buildFullPath":370}],4:[function(require,module,exports){ +"use strict"; +/** + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DiscoveryService = void 0; +var __1 = require(".."); +var utils_1 = require("../utils"); +var recommended_server_discovery_1 = require("./recommended-server-discovery"); +/** Class used for discovering recommended servers. */ +var DiscoveryService = /** @class */ (function () { + function DiscoveryService(jellyfin) { + this.jellyfin = jellyfin; + this.recommendedServerDiscovery = new recommended_server_discovery_1.RecommendedServerDiscovery(this.jellyfin); + } + /** + * Finds the best server from a list of recommended servers by score. + * @param servers A list of recommended servers. + * @returns The best scoring recommended server. + */ + DiscoveryService.prototype.findBestServer = function (servers) { + // First look for GREAT scores + var best = servers.find(function (server) { return server.score === __1.RecommendedServerInfoScore.GREAT; }); + // If no GREAT scores, look for GOOD scores + if (!best) { + best = servers.find(function (server) { return server.score === __1.RecommendedServerInfoScore.GOOD; }); + } + // If no GREAT or GOOD scores, look for OK scores + if (!best) { + best = servers.find(function (server) { return server.score === __1.RecommendedServerInfoScore.OK; }); + } + // Do NOT return any BAD scores + return best; + }; + /** + * Gets a list of address candidates url strings + * from a provided url address string. + * @param input A server url address string. + * @returns A list of potential server addresses. + */ + DiscoveryService.prototype.getAddressCandidates = function (input) { + return (0, utils_1.getAddressCandidates)(input); + }; + /** + * Gets a list of recommended server information from a provided + * list of possible server addresses. + * @param servers A list of possible server addresses. + * @param minimumScore The minimum server score to include in the results. + * @returns A list of RecommendedServerInfo from the possible server addresses. + */ + DiscoveryService.prototype.getRecommendedServers = function (servers, minimumScore) { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + return [2 /*return*/, this.recommendedServerDiscovery.discover(servers, minimumScore)]; + }); + }); + }; + /** + * Gets a list of recommended server information from the address + * candidates of a potential server address. + * @param input A potential server address. + * @param minimumScore The minimum server score to include in the results. + * @returns A list of RecommendedServerInfo from the address candidates. + */ + DiscoveryService.prototype.getRecommendedServerCandidates = function (input, minimumScore) { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (_a) { + return [2 /*return*/, this.getRecommendedServers(this.getAddressCandidates(input), minimumScore)]; + }); + }); + }; + return DiscoveryService; +}()); +exports.DiscoveryService = DiscoveryService; + +},{"..":346,"../utils":360,"./recommended-server-discovery":6}],5:[function(require,module,exports){ +"use strict"; +/** + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./discovery-service"), exports); +__exportStar(require("./recommended-server-discovery"), exports); + +},{"./discovery-service":4,"./recommended-server-discovery":6}],6:[function(require,module,exports){ +"use strict"; +/** + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RecommendedServerDiscovery = void 0; +var compare_versions_1 = require("compare-versions"); +var __1 = require(".."); +/** The expected product name in system info. */ +var PRODUCT_NAME = 'Jellyfin Server'; +/** Requests taking longer than 3s are considered slow. */ +var SLOW_RESPONSE_TIME = 3000; +/** System info request timeout. */ +var HTTP_TIMEOUT = 5000; +/** Get the minimum RecommendedServerInfoScore from an array. */ +function getMinScore(scores, defaultScore) { + if (defaultScore === void 0) { defaultScore = __1.RecommendedServerInfoScore.GREAT; } + return scores.length > 0 ? Math.min.apply(Math, scores) : defaultScore; +} +/** Builds a RecommendedServerInfo from a SystemInfoResult. */ +function toRecommendedServerInfo(result) { + var _a, _b, _c; + var issues = []; + var scores = []; + if (!((_a = result.response) === null || _a === void 0 ? void 0 : _a.data) || result.error) { + // The response did not return valid data or returned an error + issues.push(new __1.SystemInfoIssue(result.error)); + scores.push(__1.RecommendedServerInfoScore.BAD); + } + else if (result.response.data.ProductName !== PRODUCT_NAME) { + // The product name returned was invalid + issues.push(new __1.ProductNameIssue(result.response.data.ProductName)); + scores.push(__1.RecommendedServerInfoScore.BAD); + } + var version = (_b = result.response) === null || _b === void 0 ? void 0 : _b.data.Version; + if (!version) { + // No version was returned + issues.push(new __1.VersionMissingIssue()); + scores.push(__1.RecommendedServerInfoScore.BAD); + } + else if ((0, compare_versions_1.compare)(version, __1.MINIMUM_VERSION, '<')) { + // Version is less than the minimum supported + issues.push(new __1.VersionUnsupportedIssue(version)); + scores.push(__1.RecommendedServerInfoScore.OK); + } + else if ((0, compare_versions_1.compare)(version, __1.API_VERSION, '<')) { + // Version is less than the generated client, but above the minimum + issues.push(new __1.VersionOutdatedIssue(version)); + scores.push(__1.RecommendedServerInfoScore.GOOD); + } + if (result.responseTime > SLOW_RESPONSE_TIME) { + // Response was slow + issues.push(new __1.SlowResponseIssue(result.responseTime)); + scores.push(__1.RecommendedServerInfoScore.GOOD); + } + return { + address: result.address, + responseTime: result.responseTime, + score: getMinScore(scores), + issues: issues, + systemInfo: (_c = result.response) === null || _c === void 0 ? void 0 : _c.data + }; +} +/** Class to discover and evaluate potential servers. */ +var RecommendedServerDiscovery = /** @class */ (function () { + function RecommendedServerDiscovery(jellyfin) { + this.jellyfin = jellyfin; + } + /** + * Fetches the RecommendedServerInfo for a single server address. + * @param address The server address. + * @returns The resulting RecommendedServerInfo. + */ + RecommendedServerDiscovery.prototype.fetchRecommendedServerInfo = function (address) { + return __awaiter(this, void 0, void 0, function () { + var api, startTime; + return __generator(this, function (_a) { + api = this.jellyfin.createApi(address); + startTime = Date.now(); + return [2 /*return*/, api.systemApi.getPublicSystemInfo({ timeout: HTTP_TIMEOUT }) + .then(function (response) { return ({ + address: address, + response: response, + responseTime: Date.now() - startTime + }); }) + .catch(function (error) { return ({ + address: address, + error: error, + responseTime: Date.now() - startTime + }); }) + .then(function (result) { return toRecommendedServerInfo(result); })]; + }); + }); + }; + /** + * Fetches the RecommendedServerInfo for multiple server addresses. + * @param servers An array of server addresses. + * @returns The RecommendedServerInfo for each address. + */ + RecommendedServerDiscovery.prototype.discover = function (servers, minimumScore) { + if (minimumScore === void 0) { minimumScore = __1.RecommendedServerInfoScore.BAD; } + return __awaiter(this, void 0, void 0, function () { + var _this = this; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, Promise.all(servers.map(function (server) { return _this.fetchRecommendedServerInfo(server); }))]; + case 1: return [2 /*return*/, (_a.sent()).filter(function (serverInfo) { return serverInfo.score >= minimumScore; })]; + } + }); + }); + }; + return RecommendedServerDiscovery; +}()); +exports.RecommendedServerDiscovery = RecommendedServerDiscovery; + +},{"..":346,"compare-versions":392}],7:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./api/activity-log-api"), exports); +__exportStar(require("./api/api-key-api"), exports); +__exportStar(require("./api/artists-api"), exports); +__exportStar(require("./api/audio-api"), exports); +__exportStar(require("./api/branding-api"), exports); +__exportStar(require("./api/channels-api"), exports); +__exportStar(require("./api/collection-api"), exports); +__exportStar(require("./api/configuration-api"), exports); +__exportStar(require("./api/dashboard-api"), exports); +__exportStar(require("./api/devices-api"), exports); +__exportStar(require("./api/display-preferences-api"), exports); +__exportStar(require("./api/dlna-api"), exports); +__exportStar(require("./api/dlna-server-api"), exports); +__exportStar(require("./api/dynamic-hls-api"), exports); +__exportStar(require("./api/environment-api"), exports); +__exportStar(require("./api/filter-api"), exports); +__exportStar(require("./api/genres-api"), exports); +__exportStar(require("./api/hls-segment-api"), exports); +__exportStar(require("./api/image-api"), exports); +__exportStar(require("./api/image-by-name-api"), exports); +__exportStar(require("./api/instant-mix-api"), exports); +__exportStar(require("./api/item-lookup-api"), exports); +__exportStar(require("./api/item-refresh-api"), exports); +__exportStar(require("./api/item-update-api"), exports); +__exportStar(require("./api/items-api"), exports); +__exportStar(require("./api/library-api"), exports); +__exportStar(require("./api/library-structure-api"), exports); +__exportStar(require("./api/live-tv-api"), exports); +__exportStar(require("./api/localization-api"), exports); +__exportStar(require("./api/media-info-api"), exports); +__exportStar(require("./api/movies-api"), exports); +__exportStar(require("./api/music-genres-api"), exports); +__exportStar(require("./api/notifications-api"), exports); +__exportStar(require("./api/package-api"), exports); +__exportStar(require("./api/persons-api"), exports); +__exportStar(require("./api/playlists-api"), exports); +__exportStar(require("./api/playstate-api"), exports); +__exportStar(require("./api/plugins-api"), exports); +__exportStar(require("./api/quick-connect-api"), exports); +__exportStar(require("./api/remote-image-api"), exports); +__exportStar(require("./api/scheduled-tasks-api"), exports); +__exportStar(require("./api/search-api"), exports); +__exportStar(require("./api/session-api"), exports); +__exportStar(require("./api/startup-api"), exports); +__exportStar(require("./api/studios-api"), exports); +__exportStar(require("./api/subtitle-api"), exports); +__exportStar(require("./api/suggestions-api"), exports); +__exportStar(require("./api/sync-play-api"), exports); +__exportStar(require("./api/system-api"), exports); +__exportStar(require("./api/time-sync-api"), exports); +__exportStar(require("./api/trailers-api"), exports); +__exportStar(require("./api/tv-shows-api"), exports); +__exportStar(require("./api/universal-audio-api"), exports); +__exportStar(require("./api/user-api"), exports); +__exportStar(require("./api/user-library-api"), exports); +__exportStar(require("./api/user-views-api"), exports); +__exportStar(require("./api/video-attachments-api"), exports); +__exportStar(require("./api/video-hls-api"), exports); +__exportStar(require("./api/videos-api"), exports); +__exportStar(require("./api/years-api"), exports); + +},{"./api/activity-log-api":8,"./api/api-key-api":9,"./api/artists-api":10,"./api/audio-api":11,"./api/branding-api":12,"./api/channels-api":13,"./api/collection-api":14,"./api/configuration-api":15,"./api/dashboard-api":16,"./api/devices-api":17,"./api/display-preferences-api":18,"./api/dlna-api":19,"./api/dlna-server-api":20,"./api/dynamic-hls-api":21,"./api/environment-api":22,"./api/filter-api":23,"./api/genres-api":24,"./api/hls-segment-api":25,"./api/image-api":26,"./api/image-by-name-api":27,"./api/instant-mix-api":28,"./api/item-lookup-api":29,"./api/item-refresh-api":30,"./api/item-update-api":31,"./api/items-api":32,"./api/library-api":33,"./api/library-structure-api":34,"./api/live-tv-api":35,"./api/localization-api":36,"./api/media-info-api":37,"./api/movies-api":38,"./api/music-genres-api":39,"./api/notifications-api":40,"./api/package-api":41,"./api/persons-api":42,"./api/playlists-api":43,"./api/playstate-api":44,"./api/plugins-api":45,"./api/quick-connect-api":46,"./api/remote-image-api":47,"./api/scheduled-tasks-api":48,"./api/search-api":49,"./api/session-api":50,"./api/startup-api":51,"./api/studios-api":52,"./api/subtitle-api":53,"./api/suggestions-api":54,"./api/sync-play-api":55,"./api/system-api":56,"./api/time-sync-api":57,"./api/trailers-api":58,"./api/tv-shows-api":59,"./api/universal-audio-api":60,"./api/user-api":61,"./api/user-library-api":62,"./api/user-views-api":63,"./api/video-attachments-api":64,"./api/video-hls-api":65,"./api/videos-api":66,"./api/years-api":67}],8:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActivityLogApi = exports.ActivityLogApiFactory = exports.ActivityLogApiFp = exports.ActivityLogApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * ActivityLogApi - axios parameter creator + * @export + */ +var ActivityLogApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets activity log entries. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [minDate] Optional. The minimum date. Format = ISO. + * @param {boolean} [hasUserId] Optional. Filter log entries if it has user id, or not. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogEntries: function (startIndex, limit, minDate, hasUserId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/System/ActivityLog/Entries"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (startIndex !== undefined) { + localVarQueryParameter['startIndex'] = startIndex; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (minDate !== undefined) { + localVarQueryParameter['minDate'] = (minDate instanceof Date) ? + minDate.toISOString() : + minDate; + } + if (hasUserId !== undefined) { + localVarQueryParameter['hasUserId'] = hasUserId; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.ActivityLogApiAxiosParamCreator = ActivityLogApiAxiosParamCreator; +/** + * ActivityLogApi - functional programming interface + * @export + */ +var ActivityLogApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.ActivityLogApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets activity log entries. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [minDate] Optional. The minimum date. Format = ISO. + * @param {boolean} [hasUserId] Optional. Filter log entries if it has user id, or not. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogEntries: function (startIndex, limit, minDate, hasUserId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLogEntries(startIndex, limit, minDate, hasUserId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.ActivityLogApiFp = ActivityLogApiFp; +/** + * ActivityLogApi - factory interface + * @export + */ +var ActivityLogApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.ActivityLogApiFp)(configuration); + return { + /** + * + * @summary Gets activity log entries. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [minDate] Optional. The minimum date. Format = ISO. + * @param {boolean} [hasUserId] Optional. Filter log entries if it has user id, or not. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLogEntries: function (startIndex, limit, minDate, hasUserId, options) { + return localVarFp.getLogEntries(startIndex, limit, minDate, hasUserId, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.ActivityLogApiFactory = ActivityLogApiFactory; +/** + * ActivityLogApi - object-oriented interface + * @export + * @class ActivityLogApi + * @extends {BaseAPI} + */ +var ActivityLogApi = /** @class */ (function (_super) { + __extends(ActivityLogApi, _super); + function ActivityLogApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets activity log entries. + * @param {ActivityLogApiGetLogEntriesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ActivityLogApi + */ + ActivityLogApi.prototype.getLogEntries = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.ActivityLogApiFp)(this.configuration).getLogEntries(requestParameters.startIndex, requestParameters.limit, requestParameters.minDate, requestParameters.hasUserId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return ActivityLogApi; +}(base_1.BaseAPI)); +exports.ActivityLogApi = ActivityLogApi; + +},{"../base":68,"../common":69,"axios":362}],9:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ApiKeyApi = exports.ApiKeyApiFactory = exports.ApiKeyApiFp = exports.ApiKeyApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * ApiKeyApi - axios parameter creator + * @export + */ +var ApiKeyApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Create a new api key. + * @param {string} app Name of the app using the authentication key. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createKey: function (app, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'app' is not null or undefined + (0, common_1.assertParamExists)('createKey', 'app', app); + localVarPath = "/Auth/Keys"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (app !== undefined) { + localVarQueryParameter['app'] = app; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get all keys. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getKeys: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Auth/Keys"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Remove an api key. + * @param {string} key The access token to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + revokeKey: function (key, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'key' is not null or undefined + (0, common_1.assertParamExists)('revokeKey', 'key', key); + localVarPath = "/Auth/Keys/{key}" + .replace("{".concat("key", "}"), encodeURIComponent(String(key))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.ApiKeyApiAxiosParamCreator = ApiKeyApiAxiosParamCreator; +/** + * ApiKeyApi - functional programming interface + * @export + */ +var ApiKeyApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.ApiKeyApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Create a new api key. + * @param {string} app Name of the app using the authentication key. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createKey: function (app, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.createKey(app, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get all keys. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getKeys: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getKeys(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Remove an api key. + * @param {string} key The access token to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + revokeKey: function (key, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.revokeKey(key, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.ApiKeyApiFp = ApiKeyApiFp; +/** + * ApiKeyApi - factory interface + * @export + */ +var ApiKeyApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.ApiKeyApiFp)(configuration); + return { + /** + * + * @summary Create a new api key. + * @param {string} app Name of the app using the authentication key. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createKey: function (app, options) { + return localVarFp.createKey(app, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get all keys. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getKeys: function (options) { + return localVarFp.getKeys(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Remove an api key. + * @param {string} key The access token to delete. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + revokeKey: function (key, options) { + return localVarFp.revokeKey(key, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.ApiKeyApiFactory = ApiKeyApiFactory; +/** + * ApiKeyApi - object-oriented interface + * @export + * @class ApiKeyApi + * @extends {BaseAPI} + */ +var ApiKeyApi = /** @class */ (function (_super) { + __extends(ApiKeyApi, _super); + function ApiKeyApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Create a new api key. + * @param {ApiKeyApiCreateKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiKeyApi + */ + ApiKeyApi.prototype.createKey = function (requestParameters, options) { + var _this = this; + return (0, exports.ApiKeyApiFp)(this.configuration).createKey(requestParameters.app, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get all keys. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiKeyApi + */ + ApiKeyApi.prototype.getKeys = function (options) { + var _this = this; + return (0, exports.ApiKeyApiFp)(this.configuration).getKeys(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Remove an api key. + * @param {ApiKeyApiRevokeKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiKeyApi + */ + ApiKeyApi.prototype.revokeKey = function (requestParameters, options) { + var _this = this; + return (0, exports.ApiKeyApiFp)(this.configuration).revokeKey(requestParameters.key, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return ApiKeyApi; +}(base_1.BaseAPI)); +exports.ApiKeyApi = ApiKeyApi; + +},{"../base":68,"../common":69,"axios":362}],10:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ArtistsApi = exports.ArtistsApiFactory = exports.ArtistsApiFp = exports.ArtistsApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * ArtistsApi - axios parameter creator + * @export + */ +var ArtistsApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets all album artists from a given item, folder, or the entire library. + * @param {number} [minCommunityRating] Optional filter by minimum community rating. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [searchTerm] Optional. Search term. + * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. + * @param {Array} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited. + * @param {Array} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. + * @param {Array} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. + * @param {Array} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. + * @param {Array} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. + * @param {Array} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. + * @param {boolean} [enableUserData] Optional, include user data. + * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person. + * @param {Array} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person ids. + * @param {Array} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. + * @param {Array} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. + * @param {Array} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. + * @param {string} [userId] User id. + * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string. + * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string. + * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string. + * @param {boolean} [enableImages] Optional, include image information in output. + * @param {boolean} [enableTotalRecordCount] Total record count. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAlbumArtists: function (minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Artists/AlbumArtists"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (minCommunityRating !== undefined) { + localVarQueryParameter['minCommunityRating'] = minCommunityRating; + } + if (startIndex !== undefined) { + localVarQueryParameter['startIndex'] = startIndex; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (searchTerm !== undefined) { + localVarQueryParameter['searchTerm'] = searchTerm; + } + if (parentId !== undefined) { + localVarQueryParameter['parentId'] = parentId; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (excludeItemTypes) { + localVarQueryParameter['excludeItemTypes'] = excludeItemTypes; + } + if (includeItemTypes) { + localVarQueryParameter['includeItemTypes'] = includeItemTypes; + } + if (filters) { + localVarQueryParameter['filters'] = filters; + } + if (isFavorite !== undefined) { + localVarQueryParameter['isFavorite'] = isFavorite; + } + if (mediaTypes) { + localVarQueryParameter['mediaTypes'] = mediaTypes; + } + if (genres) { + localVarQueryParameter['genres'] = genres; + } + if (genreIds) { + localVarQueryParameter['genreIds'] = genreIds; + } + if (officialRatings) { + localVarQueryParameter['officialRatings'] = officialRatings; + } + if (tags) { + localVarQueryParameter['tags'] = tags; + } + if (years) { + localVarQueryParameter['years'] = years; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + if (person !== undefined) { + localVarQueryParameter['person'] = person; + } + if (personIds) { + localVarQueryParameter['personIds'] = personIds; + } + if (personTypes) { + localVarQueryParameter['personTypes'] = personTypes; + } + if (studios) { + localVarQueryParameter['studios'] = studios; + } + if (studioIds) { + localVarQueryParameter['studioIds'] = studioIds; + } + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (nameStartsWithOrGreater !== undefined) { + localVarQueryParameter['nameStartsWithOrGreater'] = nameStartsWithOrGreater; + } + if (nameStartsWith !== undefined) { + localVarQueryParameter['nameStartsWith'] = nameStartsWith; + } + if (nameLessThan !== undefined) { + localVarQueryParameter['nameLessThan'] = nameLessThan; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableTotalRecordCount !== undefined) { + localVarQueryParameter['enableTotalRecordCount'] = enableTotalRecordCount; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets an artist by name. + * @param {string} name Studio name. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getArtistByName: function (name, userId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getArtistByName', 'name', name); + localVarPath = "/Artists/{name}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets all artists from a given item, folder, or the entire library. + * @param {number} [minCommunityRating] Optional filter by minimum community rating. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [searchTerm] Optional. Search term. + * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. + * @param {Array} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited. + * @param {Array} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. + * @param {Array} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. + * @param {Array} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. + * @param {Array} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. + * @param {Array} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. + * @param {boolean} [enableUserData] Optional, include user data. + * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person. + * @param {Array} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person ids. + * @param {Array} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. + * @param {Array} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. + * @param {Array} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. + * @param {string} [userId] User id. + * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string. + * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string. + * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string. + * @param {boolean} [enableImages] Optional, include image information in output. + * @param {boolean} [enableTotalRecordCount] Total record count. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getArtists: function (minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Artists"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (minCommunityRating !== undefined) { + localVarQueryParameter['minCommunityRating'] = minCommunityRating; + } + if (startIndex !== undefined) { + localVarQueryParameter['startIndex'] = startIndex; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (searchTerm !== undefined) { + localVarQueryParameter['searchTerm'] = searchTerm; + } + if (parentId !== undefined) { + localVarQueryParameter['parentId'] = parentId; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (excludeItemTypes) { + localVarQueryParameter['excludeItemTypes'] = excludeItemTypes; + } + if (includeItemTypes) { + localVarQueryParameter['includeItemTypes'] = includeItemTypes; + } + if (filters) { + localVarQueryParameter['filters'] = filters; + } + if (isFavorite !== undefined) { + localVarQueryParameter['isFavorite'] = isFavorite; + } + if (mediaTypes) { + localVarQueryParameter['mediaTypes'] = mediaTypes; + } + if (genres) { + localVarQueryParameter['genres'] = genres; + } + if (genreIds) { + localVarQueryParameter['genreIds'] = genreIds; + } + if (officialRatings) { + localVarQueryParameter['officialRatings'] = officialRatings; + } + if (tags) { + localVarQueryParameter['tags'] = tags; + } + if (years) { + localVarQueryParameter['years'] = years; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + if (person !== undefined) { + localVarQueryParameter['person'] = person; + } + if (personIds) { + localVarQueryParameter['personIds'] = personIds; + } + if (personTypes) { + localVarQueryParameter['personTypes'] = personTypes; + } + if (studios) { + localVarQueryParameter['studios'] = studios; + } + if (studioIds) { + localVarQueryParameter['studioIds'] = studioIds; + } + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (nameStartsWithOrGreater !== undefined) { + localVarQueryParameter['nameStartsWithOrGreater'] = nameStartsWithOrGreater; + } + if (nameStartsWith !== undefined) { + localVarQueryParameter['nameStartsWith'] = nameStartsWith; + } + if (nameLessThan !== undefined) { + localVarQueryParameter['nameLessThan'] = nameLessThan; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableTotalRecordCount !== undefined) { + localVarQueryParameter['enableTotalRecordCount'] = enableTotalRecordCount; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.ArtistsApiAxiosParamCreator = ArtistsApiAxiosParamCreator; +/** + * ArtistsApi - functional programming interface + * @export + */ +var ArtistsApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.ArtistsApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets all album artists from a given item, folder, or the entire library. + * @param {number} [minCommunityRating] Optional filter by minimum community rating. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [searchTerm] Optional. Search term. + * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. + * @param {Array} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited. + * @param {Array} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. + * @param {Array} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. + * @param {Array} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. + * @param {Array} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. + * @param {Array} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. + * @param {boolean} [enableUserData] Optional, include user data. + * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person. + * @param {Array} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person ids. + * @param {Array} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. + * @param {Array} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. + * @param {Array} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. + * @param {string} [userId] User id. + * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string. + * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string. + * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string. + * @param {boolean} [enableImages] Optional, include image information in output. + * @param {boolean} [enableTotalRecordCount] Total record count. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAlbumArtists: function (minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAlbumArtists(minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets an artist by name. + * @param {string} name Studio name. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getArtistByName: function (name, userId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getArtistByName(name, userId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets all artists from a given item, folder, or the entire library. + * @param {number} [minCommunityRating] Optional filter by minimum community rating. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [searchTerm] Optional. Search term. + * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. + * @param {Array} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited. + * @param {Array} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. + * @param {Array} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. + * @param {Array} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. + * @param {Array} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. + * @param {Array} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. + * @param {boolean} [enableUserData] Optional, include user data. + * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person. + * @param {Array} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person ids. + * @param {Array} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. + * @param {Array} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. + * @param {Array} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. + * @param {string} [userId] User id. + * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string. + * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string. + * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string. + * @param {boolean} [enableImages] Optional, include image information in output. + * @param {boolean} [enableTotalRecordCount] Total record count. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getArtists: function (minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getArtists(minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.ArtistsApiFp = ArtistsApiFp; +/** + * ArtistsApi - factory interface + * @export + */ +var ArtistsApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.ArtistsApiFp)(configuration); + return { + /** + * + * @summary Gets all album artists from a given item, folder, or the entire library. + * @param {number} [minCommunityRating] Optional filter by minimum community rating. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [searchTerm] Optional. Search term. + * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. + * @param {Array} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited. + * @param {Array} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. + * @param {Array} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. + * @param {Array} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. + * @param {Array} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. + * @param {Array} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. + * @param {boolean} [enableUserData] Optional, include user data. + * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person. + * @param {Array} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person ids. + * @param {Array} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. + * @param {Array} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. + * @param {Array} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. + * @param {string} [userId] User id. + * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string. + * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string. + * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string. + * @param {boolean} [enableImages] Optional, include image information in output. + * @param {boolean} [enableTotalRecordCount] Total record count. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAlbumArtists: function (minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) { + return localVarFp.getAlbumArtists(minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets an artist by name. + * @param {string} name Studio name. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getArtistByName: function (name, userId, options) { + return localVarFp.getArtistByName(name, userId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets all artists from a given item, folder, or the entire library. + * @param {number} [minCommunityRating] Optional filter by minimum community rating. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [searchTerm] Optional. Search term. + * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. + * @param {Array} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited. + * @param {Array} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. + * @param {Array} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. + * @param {Array} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. + * @param {Array} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. + * @param {Array} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. + * @param {boolean} [enableUserData] Optional, include user data. + * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person. + * @param {Array} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person ids. + * @param {Array} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. + * @param {Array} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. + * @param {Array} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. + * @param {string} [userId] User id. + * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string. + * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string. + * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string. + * @param {boolean} [enableImages] Optional, include image information in output. + * @param {boolean} [enableTotalRecordCount] Total record count. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getArtists: function (minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) { + return localVarFp.getArtists(minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.ArtistsApiFactory = ArtistsApiFactory; +/** + * ArtistsApi - object-oriented interface + * @export + * @class ArtistsApi + * @extends {BaseAPI} + */ +var ArtistsApi = /** @class */ (function (_super) { + __extends(ArtistsApi, _super); + function ArtistsApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets all album artists from a given item, folder, or the entire library. + * @param {ArtistsApiGetAlbumArtistsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ArtistsApi + */ + ArtistsApi.prototype.getAlbumArtists = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.ArtistsApiFp)(this.configuration).getAlbumArtists(requestParameters.minCommunityRating, requestParameters.startIndex, requestParameters.limit, requestParameters.searchTerm, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.filters, requestParameters.isFavorite, requestParameters.mediaTypes, requestParameters.genres, requestParameters.genreIds, requestParameters.officialRatings, requestParameters.tags, requestParameters.years, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.person, requestParameters.personIds, requestParameters.personTypes, requestParameters.studios, requestParameters.studioIds, requestParameters.userId, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.enableImages, requestParameters.enableTotalRecordCount, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets an artist by name. + * @param {ArtistsApiGetArtistByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ArtistsApi + */ + ArtistsApi.prototype.getArtistByName = function (requestParameters, options) { + var _this = this; + return (0, exports.ArtistsApiFp)(this.configuration).getArtistByName(requestParameters.name, requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets all artists from a given item, folder, or the entire library. + * @param {ArtistsApiGetArtistsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ArtistsApi + */ + ArtistsApi.prototype.getArtists = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.ArtistsApiFp)(this.configuration).getArtists(requestParameters.minCommunityRating, requestParameters.startIndex, requestParameters.limit, requestParameters.searchTerm, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.filters, requestParameters.isFavorite, requestParameters.mediaTypes, requestParameters.genres, requestParameters.genreIds, requestParameters.officialRatings, requestParameters.tags, requestParameters.years, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.person, requestParameters.personIds, requestParameters.personTypes, requestParameters.studios, requestParameters.studioIds, requestParameters.userId, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.enableImages, requestParameters.enableTotalRecordCount, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return ArtistsApi; +}(base_1.BaseAPI)); +exports.ArtistsApi = ArtistsApi; + +},{"../base":68,"../common":69,"axios":362}],11:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AudioApi = exports.AudioApiFactory = exports.AudioApiFp = exports.AudioApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * AudioApi - axios parameter creator + * @export + */ +var AudioApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} [container] The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAudioStream: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getAudioStream', 'itemId', itemId); + localVarPath = "/Audio/{itemId}/stream" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (container !== undefined) { + localVarQueryParameter['container'] = container; + } + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} container The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment lenght. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAudioStreamByContainer: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getAudioStreamByContainer', 'itemId', itemId); + // verify required parameter 'container' is not null or undefined + (0, common_1.assertParamExists)('getAudioStreamByContainer', 'container', container); + localVarPath = "/Audio/{itemId}/stream.{container}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("container", "}"), encodeURIComponent(String(container))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} [container] The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headAudioStream: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('headAudioStream', 'itemId', itemId); + localVarPath = "/Audio/{itemId}/stream" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (container !== undefined) { + localVarQueryParameter['container'] = container; + } + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} container The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment lenght. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headAudioStreamByContainer: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('headAudioStreamByContainer', 'itemId', itemId); + // verify required parameter 'container' is not null or undefined + (0, common_1.assertParamExists)('headAudioStreamByContainer', 'container', container); + localVarPath = "/Audio/{itemId}/stream.{container}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("container", "}"), encodeURIComponent(String(container))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + }; +}; +exports.AudioApiAxiosParamCreator = AudioApiAxiosParamCreator; +/** + * AudioApi - functional programming interface + * @export + */ +var AudioApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.AudioApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} [container] The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAudioStream: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} container The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment lenght. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAudioStreamByContainer: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} [container] The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headAudioStream: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} container The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment lenght. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headAudioStreamByContainer: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.AudioApiFp = AudioApiFp; +/** + * AudioApi - factory interface + * @export + */ +var AudioApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.AudioApiFp)(configuration); + return { + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} [container] The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAudioStream: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return localVarFp.getAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} container The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment lenght. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAudioStreamByContainer: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return localVarFp.getAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} [container] The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headAudioStream: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return localVarFp.headAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets an audio stream. + * @param {string} itemId The item id. + * @param {string} container The audio container. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment lenght. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamporphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headAudioStreamByContainer: function (itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return localVarFp.headAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.AudioApiFactory = AudioApiFactory; +/** + * AudioApi - object-oriented interface + * @export + * @class AudioApi + * @extends {BaseAPI} + */ +var AudioApi = /** @class */ (function (_super) { + __extends(AudioApi, _super); + function AudioApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets an audio stream. + * @param {AudioApiGetAudioStreamRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AudioApi + */ + AudioApi.prototype.getAudioStream = function (requestParameters, options) { + var _this = this; + return (0, exports.AudioApiFp)(this.configuration).getAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets an audio stream. + * @param {AudioApiGetAudioStreamByContainerRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AudioApi + */ + AudioApi.prototype.getAudioStreamByContainer = function (requestParameters, options) { + var _this = this; + return (0, exports.AudioApiFp)(this.configuration).getAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets an audio stream. + * @param {AudioApiHeadAudioStreamRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AudioApi + */ + AudioApi.prototype.headAudioStream = function (requestParameters, options) { + var _this = this; + return (0, exports.AudioApiFp)(this.configuration).headAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets an audio stream. + * @param {AudioApiHeadAudioStreamByContainerRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AudioApi + */ + AudioApi.prototype.headAudioStreamByContainer = function (requestParameters, options) { + var _this = this; + return (0, exports.AudioApiFp)(this.configuration).headAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return AudioApi; +}(base_1.BaseAPI)); +exports.AudioApi = AudioApi; + +},{"../base":68,"../common":69,"axios":362}],12:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BrandingApi = exports.BrandingApiFactory = exports.BrandingApiFp = exports.BrandingApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * BrandingApi - axios parameter creator + * @export + */ +var BrandingApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets branding css. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBrandingCss: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + localVarPath = "/Branding/Css"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets branding css. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBrandingCss2: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + localVarPath = "/Branding/Css.css"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets branding configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBrandingOptions: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + localVarPath = "/Branding/Configuration"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + }; +}; +exports.BrandingApiAxiosParamCreator = BrandingApiAxiosParamCreator; +/** + * BrandingApi - functional programming interface + * @export + */ +var BrandingApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.BrandingApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets branding css. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBrandingCss: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBrandingCss(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets branding css. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBrandingCss2: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBrandingCss2(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets branding configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBrandingOptions: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBrandingOptions(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.BrandingApiFp = BrandingApiFp; +/** + * BrandingApi - factory interface + * @export + */ +var BrandingApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.BrandingApiFp)(configuration); + return { + /** + * + * @summary Gets branding css. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBrandingCss: function (options) { + return localVarFp.getBrandingCss(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets branding css. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBrandingCss2: function (options) { + return localVarFp.getBrandingCss2(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets branding configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBrandingOptions: function (options) { + return localVarFp.getBrandingOptions(options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.BrandingApiFactory = BrandingApiFactory; +/** + * BrandingApi - object-oriented interface + * @export + * @class BrandingApi + * @extends {BaseAPI} + */ +var BrandingApi = /** @class */ (function (_super) { + __extends(BrandingApi, _super); + function BrandingApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets branding css. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BrandingApi + */ + BrandingApi.prototype.getBrandingCss = function (options) { + var _this = this; + return (0, exports.BrandingApiFp)(this.configuration).getBrandingCss(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets branding css. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BrandingApi + */ + BrandingApi.prototype.getBrandingCss2 = function (options) { + var _this = this; + return (0, exports.BrandingApiFp)(this.configuration).getBrandingCss2(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets branding configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BrandingApi + */ + BrandingApi.prototype.getBrandingOptions = function (options) { + var _this = this; + return (0, exports.BrandingApiFp)(this.configuration).getBrandingOptions(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return BrandingApi; +}(base_1.BaseAPI)); +exports.BrandingApi = BrandingApi; + +},{"../base":68,"../common":69,"axios":362}],13:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChannelsApi = exports.ChannelsApiFactory = exports.ChannelsApiFp = exports.ChannelsApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * ChannelsApi - axios parameter creator + * @export + */ +var ChannelsApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Get all channel features. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllChannelFeatures: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Channels/Features"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get channel features. + * @param {string} channelId Channel id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChannelFeatures: function (channelId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'channelId' is not null or undefined + (0, common_1.assertParamExists)('getChannelFeatures', 'channelId', channelId); + localVarPath = "/Channels/{channelId}/Features" + .replace("{".concat("channelId", "}"), encodeURIComponent(String(channelId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get channel items. + * @param {string} channelId Channel Id. + * @param {string} [folderId] Optional. Folder Id. + * @param {string} [userId] Optional. User Id. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [sortOrder] Optional. Sort Order - Ascending,Descending. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {Array} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChannelItems: function (channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'channelId' is not null or undefined + (0, common_1.assertParamExists)('getChannelItems', 'channelId', channelId); + localVarPath = "/Channels/{channelId}/Items" + .replace("{".concat("channelId", "}"), encodeURIComponent(String(channelId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (folderId !== undefined) { + localVarQueryParameter['folderId'] = folderId; + } + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (startIndex !== undefined) { + localVarQueryParameter['startIndex'] = startIndex; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (sortOrder) { + localVarQueryParameter['sortOrder'] = sortOrder; + } + if (filters) { + localVarQueryParameter['filters'] = filters; + } + if (sortBy) { + localVarQueryParameter['sortBy'] = sortBy; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets available channels. + * @param {string} [userId] User Id to filter by. Use System.Guid.Empty to not filter by user. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {boolean} [supportsLatestItems] Optional. Filter by channels that support getting latest items. + * @param {boolean} [supportsMediaDeletion] Optional. Filter by channels that support media deletion. + * @param {boolean} [isFavorite] Optional. Filter by channels that are favorite. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChannels: function (userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Channels"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (startIndex !== undefined) { + localVarQueryParameter['startIndex'] = startIndex; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (supportsLatestItems !== undefined) { + localVarQueryParameter['supportsLatestItems'] = supportsLatestItems; + } + if (supportsMediaDeletion !== undefined) { + localVarQueryParameter['supportsMediaDeletion'] = supportsMediaDeletion; + } + if (isFavorite !== undefined) { + localVarQueryParameter['isFavorite'] = isFavorite; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets latest channel items. + * @param {string} [userId] Optional. User Id. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [channelIds] Optional. Specify one or more channel id\'s, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLatestChannelItems: function (userId, startIndex, limit, filters, fields, channelIds, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Channels/Items/Latest"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (startIndex !== undefined) { + localVarQueryParameter['startIndex'] = startIndex; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (filters) { + localVarQueryParameter['filters'] = filters; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (channelIds) { + localVarQueryParameter['channelIds'] = channelIds; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.ChannelsApiAxiosParamCreator = ChannelsApiAxiosParamCreator; +/** + * ChannelsApi - functional programming interface + * @export + */ +var ChannelsApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.ChannelsApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Get all channel features. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllChannelFeatures: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAllChannelFeatures(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get channel features. + * @param {string} channelId Channel id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChannelFeatures: function (channelId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getChannelFeatures(channelId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get channel items. + * @param {string} channelId Channel Id. + * @param {string} [folderId] Optional. Folder Id. + * @param {string} [userId] Optional. User Id. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [sortOrder] Optional. Sort Order - Ascending,Descending. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {Array} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChannelItems: function (channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getChannelItems(channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets available channels. + * @param {string} [userId] User Id to filter by. Use System.Guid.Empty to not filter by user. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {boolean} [supportsLatestItems] Optional. Filter by channels that support getting latest items. + * @param {boolean} [supportsMediaDeletion] Optional. Filter by channels that support media deletion. + * @param {boolean} [isFavorite] Optional. Filter by channels that are favorite. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChannels: function (userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getChannels(userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets latest channel items. + * @param {string} [userId] Optional. User Id. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [channelIds] Optional. Specify one or more channel id\'s, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLatestChannelItems: function (userId, startIndex, limit, filters, fields, channelIds, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLatestChannelItems(userId, startIndex, limit, filters, fields, channelIds, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.ChannelsApiFp = ChannelsApiFp; +/** + * ChannelsApi - factory interface + * @export + */ +var ChannelsApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.ChannelsApiFp)(configuration); + return { + /** + * + * @summary Get all channel features. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getAllChannelFeatures: function (options) { + return localVarFp.getAllChannelFeatures(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get channel features. + * @param {string} channelId Channel id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChannelFeatures: function (channelId, options) { + return localVarFp.getChannelFeatures(channelId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get channel items. + * @param {string} channelId Channel Id. + * @param {string} [folderId] Optional. Folder Id. + * @param {string} [userId] Optional. User Id. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [sortOrder] Optional. Sort Order - Ascending,Descending. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {Array} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChannelItems: function (channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options) { + return localVarFp.getChannelItems(channelId, folderId, userId, startIndex, limit, sortOrder, filters, sortBy, fields, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets available channels. + * @param {string} [userId] User Id to filter by. Use System.Guid.Empty to not filter by user. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {boolean} [supportsLatestItems] Optional. Filter by channels that support getting latest items. + * @param {boolean} [supportsMediaDeletion] Optional. Filter by channels that support media deletion. + * @param {boolean} [isFavorite] Optional. Filter by channels that are favorite. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getChannels: function (userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options) { + return localVarFp.getChannels(userId, startIndex, limit, supportsLatestItems, supportsMediaDeletion, isFavorite, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets latest channel items. + * @param {string} [userId] Optional. User Id. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [filters] Optional. Specify additional filters to apply. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [channelIds] Optional. Specify one or more channel id\'s, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLatestChannelItems: function (userId, startIndex, limit, filters, fields, channelIds, options) { + return localVarFp.getLatestChannelItems(userId, startIndex, limit, filters, fields, channelIds, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.ChannelsApiFactory = ChannelsApiFactory; +/** + * ChannelsApi - object-oriented interface + * @export + * @class ChannelsApi + * @extends {BaseAPI} + */ +var ChannelsApi = /** @class */ (function (_super) { + __extends(ChannelsApi, _super); + function ChannelsApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Get all channel features. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ChannelsApi + */ + ChannelsApi.prototype.getAllChannelFeatures = function (options) { + var _this = this; + return (0, exports.ChannelsApiFp)(this.configuration).getAllChannelFeatures(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get channel features. + * @param {ChannelsApiGetChannelFeaturesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ChannelsApi + */ + ChannelsApi.prototype.getChannelFeatures = function (requestParameters, options) { + var _this = this; + return (0, exports.ChannelsApiFp)(this.configuration).getChannelFeatures(requestParameters.channelId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get channel items. + * @param {ChannelsApiGetChannelItemsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ChannelsApi + */ + ChannelsApi.prototype.getChannelItems = function (requestParameters, options) { + var _this = this; + return (0, exports.ChannelsApiFp)(this.configuration).getChannelItems(requestParameters.channelId, requestParameters.folderId, requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.sortOrder, requestParameters.filters, requestParameters.sortBy, requestParameters.fields, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets available channels. + * @param {ChannelsApiGetChannelsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ChannelsApi + */ + ChannelsApi.prototype.getChannels = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.ChannelsApiFp)(this.configuration).getChannels(requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.supportsLatestItems, requestParameters.supportsMediaDeletion, requestParameters.isFavorite, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets latest channel items. + * @param {ChannelsApiGetLatestChannelItemsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ChannelsApi + */ + ChannelsApi.prototype.getLatestChannelItems = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.ChannelsApiFp)(this.configuration).getLatestChannelItems(requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.filters, requestParameters.fields, requestParameters.channelIds, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return ChannelsApi; +}(base_1.BaseAPI)); +exports.ChannelsApi = ChannelsApi; + +},{"../base":68,"../common":69,"axios":362}],14:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * CollectionApi - axios parameter creator + * @export + */ +var CollectionApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Adds items to a collection. + * @param {string} collectionId The collection id. + * @param {Array} ids Item ids, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addToCollection: function (collectionId, ids, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'collectionId' is not null or undefined + (0, common_1.assertParamExists)('addToCollection', 'collectionId', collectionId); + // verify required parameter 'ids' is not null or undefined + (0, common_1.assertParamExists)('addToCollection', 'ids', ids); + localVarPath = "/Collections/{collectionId}/Items" + .replace("{".concat("collectionId", "}"), encodeURIComponent(String(collectionId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (ids) { + localVarQueryParameter['ids'] = ids; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Creates a new collection. + * @param {string} [name] The name of the collection. + * @param {Array} [ids] Item Ids to add to the collection. + * @param {string} [parentId] Optional. Create the collection within a specific folder. + * @param {boolean} [isLocked] Whether or not to lock the new collection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createCollection: function (name, ids, parentId, isLocked, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Collections"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (name !== undefined) { + localVarQueryParameter['name'] = name; + } + if (ids) { + localVarQueryParameter['ids'] = ids; + } + if (parentId !== undefined) { + localVarQueryParameter['parentId'] = parentId; + } + if (isLocked !== undefined) { + localVarQueryParameter['isLocked'] = isLocked; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Removes items from a collection. + * @param {string} collectionId The collection id. + * @param {Array} ids Item ids, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + removeFromCollection: function (collectionId, ids, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'collectionId' is not null or undefined + (0, common_1.assertParamExists)('removeFromCollection', 'collectionId', collectionId); + // verify required parameter 'ids' is not null or undefined + (0, common_1.assertParamExists)('removeFromCollection', 'ids', ids); + localVarPath = "/Collections/{collectionId}/Items" + .replace("{".concat("collectionId", "}"), encodeURIComponent(String(collectionId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (ids) { + localVarQueryParameter['ids'] = ids; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.CollectionApiAxiosParamCreator = CollectionApiAxiosParamCreator; +/** + * CollectionApi - functional programming interface + * @export + */ +var CollectionApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.CollectionApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Adds items to a collection. + * @param {string} collectionId The collection id. + * @param {Array} ids Item ids, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addToCollection: function (collectionId, ids, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.addToCollection(collectionId, ids, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Creates a new collection. + * @param {string} [name] The name of the collection. + * @param {Array} [ids] Item Ids to add to the collection. + * @param {string} [parentId] Optional. Create the collection within a specific folder. + * @param {boolean} [isLocked] Whether or not to lock the new collection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createCollection: function (name, ids, parentId, isLocked, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCollection(name, ids, parentId, isLocked, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Removes items from a collection. + * @param {string} collectionId The collection id. + * @param {Array} ids Item ids, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + removeFromCollection: function (collectionId, ids, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeFromCollection(collectionId, ids, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.CollectionApiFp = CollectionApiFp; +/** + * CollectionApi - factory interface + * @export + */ +var CollectionApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.CollectionApiFp)(configuration); + return { + /** + * + * @summary Adds items to a collection. + * @param {string} collectionId The collection id. + * @param {Array} ids Item ids, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addToCollection: function (collectionId, ids, options) { + return localVarFp.addToCollection(collectionId, ids, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Creates a new collection. + * @param {string} [name] The name of the collection. + * @param {Array} [ids] Item Ids to add to the collection. + * @param {string} [parentId] Optional. Create the collection within a specific folder. + * @param {boolean} [isLocked] Whether or not to lock the new collection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createCollection: function (name, ids, parentId, isLocked, options) { + return localVarFp.createCollection(name, ids, parentId, isLocked, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Removes items from a collection. + * @param {string} collectionId The collection id. + * @param {Array} ids Item ids, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + removeFromCollection: function (collectionId, ids, options) { + return localVarFp.removeFromCollection(collectionId, ids, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.CollectionApiFactory = CollectionApiFactory; +/** + * CollectionApi - object-oriented interface + * @export + * @class CollectionApi + * @extends {BaseAPI} + */ +var CollectionApi = /** @class */ (function (_super) { + __extends(CollectionApi, _super); + function CollectionApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Adds items to a collection. + * @param {CollectionApiAddToCollectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectionApi + */ + CollectionApi.prototype.addToCollection = function (requestParameters, options) { + var _this = this; + return (0, exports.CollectionApiFp)(this.configuration).addToCollection(requestParameters.collectionId, requestParameters.ids, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Creates a new collection. + * @param {CollectionApiCreateCollectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectionApi + */ + CollectionApi.prototype.createCollection = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.CollectionApiFp)(this.configuration).createCollection(requestParameters.name, requestParameters.ids, requestParameters.parentId, requestParameters.isLocked, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Removes items from a collection. + * @param {CollectionApiRemoveFromCollectionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectionApi + */ + CollectionApi.prototype.removeFromCollection = function (requestParameters, options) { + var _this = this; + return (0, exports.CollectionApiFp)(this.configuration).removeFromCollection(requestParameters.collectionId, requestParameters.ids, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return CollectionApi; +}(base_1.BaseAPI)); +exports.CollectionApi = CollectionApi; + +},{"../base":68,"../common":69,"axios":362}],15:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * ConfigurationApi - axios parameter creator + * @export + */ +var ConfigurationApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets application configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConfiguration: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/System/Configuration"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets a default MetadataOptions object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDefaultMetadataOptions: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/System/Configuration/MetadataOptions/Default"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets a named configuration. + * @param {string} key Configuration key. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getNamedConfiguration: function (key, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'key' is not null or undefined + (0, common_1.assertParamExists)('getNamedConfiguration', 'key', key); + localVarPath = "/System/Configuration/{key}" + .replace("{".concat("key", "}"), encodeURIComponent(String(key))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Updates application configuration. + * @param {ServerConfiguration} serverConfiguration Configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateConfiguration: function (serverConfiguration, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'serverConfiguration' is not null or undefined + (0, common_1.assertParamExists)('updateConfiguration', 'serverConfiguration', serverConfiguration); + localVarPath = "/System/Configuration"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(serverConfiguration, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Updates the path to the media encoder. + * @param {MediaEncoderPathDto} mediaEncoderPathDto Media encoder path form body. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateMediaEncoderPath: function (mediaEncoderPathDto, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'mediaEncoderPathDto' is not null or undefined + (0, common_1.assertParamExists)('updateMediaEncoderPath', 'mediaEncoderPathDto', mediaEncoderPathDto); + localVarPath = "/System/MediaEncoder/Path"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mediaEncoderPathDto, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Updates named configuration. + * @param {string} key Configuration key. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateNamedConfiguration: function (key, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'key' is not null or undefined + (0, common_1.assertParamExists)('updateNamedConfiguration', 'key', key); + localVarPath = "/System/Configuration/{key}" + .replace("{".concat("key", "}"), encodeURIComponent(String(key))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.ConfigurationApiAxiosParamCreator = ConfigurationApiAxiosParamCreator; +/** + * ConfigurationApi - functional programming interface + * @export + */ +var ConfigurationApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.ConfigurationApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets application configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConfiguration: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getConfiguration(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a default MetadataOptions object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDefaultMetadataOptions: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDefaultMetadataOptions(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a named configuration. + * @param {string} key Configuration key. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getNamedConfiguration: function (key, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getNamedConfiguration(key, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Updates application configuration. + * @param {ServerConfiguration} serverConfiguration Configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateConfiguration: function (serverConfiguration, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateConfiguration(serverConfiguration, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Updates the path to the media encoder. + * @param {MediaEncoderPathDto} mediaEncoderPathDto Media encoder path form body. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateMediaEncoderPath: function (mediaEncoderPathDto, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateMediaEncoderPath(mediaEncoderPathDto, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Updates named configuration. + * @param {string} key Configuration key. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateNamedConfiguration: function (key, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateNamedConfiguration(key, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.ConfigurationApiFp = ConfigurationApiFp; +/** + * ConfigurationApi - factory interface + * @export + */ +var ConfigurationApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.ConfigurationApiFp)(configuration); + return { + /** + * + * @summary Gets application configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConfiguration: function (options) { + return localVarFp.getConfiguration(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a default MetadataOptions object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDefaultMetadataOptions: function (options) { + return localVarFp.getDefaultMetadataOptions(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a named configuration. + * @param {string} key Configuration key. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getNamedConfiguration: function (key, options) { + return localVarFp.getNamedConfiguration(key, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Updates application configuration. + * @param {ServerConfiguration} serverConfiguration Configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateConfiguration: function (serverConfiguration, options) { + return localVarFp.updateConfiguration(serverConfiguration, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Updates the path to the media encoder. + * @param {MediaEncoderPathDto} mediaEncoderPathDto Media encoder path form body. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateMediaEncoderPath: function (mediaEncoderPathDto, options) { + return localVarFp.updateMediaEncoderPath(mediaEncoderPathDto, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Updates named configuration. + * @param {string} key Configuration key. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateNamedConfiguration: function (key, options) { + return localVarFp.updateNamedConfiguration(key, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.ConfigurationApiFactory = ConfigurationApiFactory; +/** + * ConfigurationApi - object-oriented interface + * @export + * @class ConfigurationApi + * @extends {BaseAPI} + */ +var ConfigurationApi = /** @class */ (function (_super) { + __extends(ConfigurationApi, _super); + function ConfigurationApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets application configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ConfigurationApi + */ + ConfigurationApi.prototype.getConfiguration = function (options) { + var _this = this; + return (0, exports.ConfigurationApiFp)(this.configuration).getConfiguration(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a default MetadataOptions object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ConfigurationApi + */ + ConfigurationApi.prototype.getDefaultMetadataOptions = function (options) { + var _this = this; + return (0, exports.ConfigurationApiFp)(this.configuration).getDefaultMetadataOptions(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a named configuration. + * @param {ConfigurationApiGetNamedConfigurationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ConfigurationApi + */ + ConfigurationApi.prototype.getNamedConfiguration = function (requestParameters, options) { + var _this = this; + return (0, exports.ConfigurationApiFp)(this.configuration).getNamedConfiguration(requestParameters.key, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Updates application configuration. + * @param {ConfigurationApiUpdateConfigurationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ConfigurationApi + */ + ConfigurationApi.prototype.updateConfiguration = function (requestParameters, options) { + var _this = this; + return (0, exports.ConfigurationApiFp)(this.configuration).updateConfiguration(requestParameters.serverConfiguration, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Updates the path to the media encoder. + * @param {ConfigurationApiUpdateMediaEncoderPathRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ConfigurationApi + */ + ConfigurationApi.prototype.updateMediaEncoderPath = function (requestParameters, options) { + var _this = this; + return (0, exports.ConfigurationApiFp)(this.configuration).updateMediaEncoderPath(requestParameters.mediaEncoderPathDto, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Updates named configuration. + * @param {ConfigurationApiUpdateNamedConfigurationRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ConfigurationApi + */ + ConfigurationApi.prototype.updateNamedConfiguration = function (requestParameters, options) { + var _this = this; + return (0, exports.ConfigurationApiFp)(this.configuration).updateNamedConfiguration(requestParameters.key, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return ConfigurationApi; +}(base_1.BaseAPI)); +exports.ConfigurationApi = ConfigurationApi; + +},{"../base":68,"../common":69,"axios":362}],16:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * DashboardApi - axios parameter creator + * @export + */ +var DashboardApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets the configuration pages. + * @param {boolean} [enableInMainMenu] Whether to enable in the main menu. + * @param {ConfigurationPageType} [pageType] The Jellyfin.Api.Models.ConfigurationPageInfo. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConfigurationPages: function (enableInMainMenu, pageType, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + localVarPath = "/web/ConfigurationPages"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (enableInMainMenu !== undefined) { + localVarQueryParameter['enableInMainMenu'] = enableInMainMenu; + } + if (pageType !== undefined) { + localVarQueryParameter['pageType'] = pageType; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets a dashboard configuration page. + * @param {string} [name] The name of the page. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDashboardConfigurationPage: function (name, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + localVarPath = "/web/ConfigurationPage"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (name !== undefined) { + localVarQueryParameter['name'] = name; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + }; +}; +exports.DashboardApiAxiosParamCreator = DashboardApiAxiosParamCreator; +/** + * DashboardApi - functional programming interface + * @export + */ +var DashboardApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.DashboardApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets the configuration pages. + * @param {boolean} [enableInMainMenu] Whether to enable in the main menu. + * @param {ConfigurationPageType} [pageType] The Jellyfin.Api.Models.ConfigurationPageInfo. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConfigurationPages: function (enableInMainMenu, pageType, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getConfigurationPages(enableInMainMenu, pageType, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a dashboard configuration page. + * @param {string} [name] The name of the page. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDashboardConfigurationPage: function (name, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDashboardConfigurationPage(name, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.DashboardApiFp = DashboardApiFp; +/** + * DashboardApi - factory interface + * @export + */ +var DashboardApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.DashboardApiFp)(configuration); + return { + /** + * + * @summary Gets the configuration pages. + * @param {boolean} [enableInMainMenu] Whether to enable in the main menu. + * @param {ConfigurationPageType} [pageType] The Jellyfin.Api.Models.ConfigurationPageInfo. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConfigurationPages: function (enableInMainMenu, pageType, options) { + return localVarFp.getConfigurationPages(enableInMainMenu, pageType, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a dashboard configuration page. + * @param {string} [name] The name of the page. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDashboardConfigurationPage: function (name, options) { + return localVarFp.getDashboardConfigurationPage(name, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.DashboardApiFactory = DashboardApiFactory; +/** + * DashboardApi - object-oriented interface + * @export + * @class DashboardApi + * @extends {BaseAPI} + */ +var DashboardApi = /** @class */ (function (_super) { + __extends(DashboardApi, _super); + function DashboardApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets the configuration pages. + * @param {DashboardApiGetConfigurationPagesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DashboardApi + */ + DashboardApi.prototype.getConfigurationPages = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.DashboardApiFp)(this.configuration).getConfigurationPages(requestParameters.enableInMainMenu, requestParameters.pageType, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a dashboard configuration page. + * @param {DashboardApiGetDashboardConfigurationPageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DashboardApi + */ + DashboardApi.prototype.getDashboardConfigurationPage = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.DashboardApiFp)(this.configuration).getDashboardConfigurationPage(requestParameters.name, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return DashboardApi; +}(base_1.BaseAPI)); +exports.DashboardApi = DashboardApi; + +},{"../base":68,"../common":69,"axios":362}],17:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DevicesApi = exports.DevicesApiFactory = exports.DevicesApiFp = exports.DevicesApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * DevicesApi - axios parameter creator + * @export + */ +var DevicesApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Deletes a device. + * @param {string} id Device Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteDevice: function (id, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('deleteDevice', 'id', id); + localVarPath = "/Devices"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get info for a device. + * @param {string} id Device Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDeviceInfo: function (id, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getDeviceInfo', 'id', id); + localVarPath = "/Devices/Info"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get options for a device. + * @param {string} id Device Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDeviceOptions: function (id, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getDeviceOptions', 'id', id); + localVarPath = "/Devices/Options"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get Devices. + * @param {boolean} [supportsSync] Gets or sets a value indicating whether [supports synchronize]. + * @param {string} [userId] Gets or sets the user identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDevices: function (supportsSync, userId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Devices"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (supportsSync !== undefined) { + localVarQueryParameter['supportsSync'] = supportsSync; + } + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Update device options. + * @param {string} id Device Id. + * @param {DeviceOptions} deviceOptions Device Options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDeviceOptions: function (id, deviceOptions, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('updateDeviceOptions', 'id', id); + // verify required parameter 'deviceOptions' is not null or undefined + (0, common_1.assertParamExists)('updateDeviceOptions', 'deviceOptions', deviceOptions); + localVarPath = "/Devices/Options"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deviceOptions, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.DevicesApiAxiosParamCreator = DevicesApiAxiosParamCreator; +/** + * DevicesApi - functional programming interface + * @export + */ +var DevicesApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.DevicesApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Deletes a device. + * @param {string} id Device Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteDevice: function (id, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDevice(id, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get info for a device. + * @param {string} id Device Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDeviceInfo: function (id, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDeviceInfo(id, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get options for a device. + * @param {string} id Device Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDeviceOptions: function (id, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDeviceOptions(id, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get Devices. + * @param {boolean} [supportsSync] Gets or sets a value indicating whether [supports synchronize]. + * @param {string} [userId] Gets or sets the user identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDevices: function (supportsSync, userId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDevices(supportsSync, userId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Update device options. + * @param {string} id Device Id. + * @param {DeviceOptions} deviceOptions Device Options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDeviceOptions: function (id, deviceOptions, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateDeviceOptions(id, deviceOptions, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.DevicesApiFp = DevicesApiFp; +/** + * DevicesApi - factory interface + * @export + */ +var DevicesApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.DevicesApiFp)(configuration); + return { + /** + * + * @summary Deletes a device. + * @param {string} id Device Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteDevice: function (id, options) { + return localVarFp.deleteDevice(id, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get info for a device. + * @param {string} id Device Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDeviceInfo: function (id, options) { + return localVarFp.getDeviceInfo(id, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get options for a device. + * @param {string} id Device Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDeviceOptions: function (id, options) { + return localVarFp.getDeviceOptions(id, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get Devices. + * @param {boolean} [supportsSync] Gets or sets a value indicating whether [supports synchronize]. + * @param {string} [userId] Gets or sets the user identifier. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDevices: function (supportsSync, userId, options) { + return localVarFp.getDevices(supportsSync, userId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Update device options. + * @param {string} id Device Id. + * @param {DeviceOptions} deviceOptions Device Options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDeviceOptions: function (id, deviceOptions, options) { + return localVarFp.updateDeviceOptions(id, deviceOptions, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.DevicesApiFactory = DevicesApiFactory; +/** + * DevicesApi - object-oriented interface + * @export + * @class DevicesApi + * @extends {BaseAPI} + */ +var DevicesApi = /** @class */ (function (_super) { + __extends(DevicesApi, _super); + function DevicesApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Deletes a device. + * @param {DevicesApiDeleteDeviceRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DevicesApi + */ + DevicesApi.prototype.deleteDevice = function (requestParameters, options) { + var _this = this; + return (0, exports.DevicesApiFp)(this.configuration).deleteDevice(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get info for a device. + * @param {DevicesApiGetDeviceInfoRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DevicesApi + */ + DevicesApi.prototype.getDeviceInfo = function (requestParameters, options) { + var _this = this; + return (0, exports.DevicesApiFp)(this.configuration).getDeviceInfo(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get options for a device. + * @param {DevicesApiGetDeviceOptionsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DevicesApi + */ + DevicesApi.prototype.getDeviceOptions = function (requestParameters, options) { + var _this = this; + return (0, exports.DevicesApiFp)(this.configuration).getDeviceOptions(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get Devices. + * @param {DevicesApiGetDevicesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DevicesApi + */ + DevicesApi.prototype.getDevices = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.DevicesApiFp)(this.configuration).getDevices(requestParameters.supportsSync, requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Update device options. + * @param {DevicesApiUpdateDeviceOptionsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DevicesApi + */ + DevicesApi.prototype.updateDeviceOptions = function (requestParameters, options) { + var _this = this; + return (0, exports.DevicesApiFp)(this.configuration).updateDeviceOptions(requestParameters.id, requestParameters.deviceOptions, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return DevicesApi; +}(base_1.BaseAPI)); +exports.DevicesApi = DevicesApi; + +},{"../base":68,"../common":69,"axios":362}],18:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DisplayPreferencesApi = exports.DisplayPreferencesApiFactory = exports.DisplayPreferencesApiFp = exports.DisplayPreferencesApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * DisplayPreferencesApi - axios parameter creator + * @export + */ +var DisplayPreferencesApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Get Display Preferences. + * @param {string} displayPreferencesId Display preferences id. + * @param {string} userId User id. + * @param {string} client Client. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDisplayPreferences: function (displayPreferencesId, userId, client, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'displayPreferencesId' is not null or undefined + (0, common_1.assertParamExists)('getDisplayPreferences', 'displayPreferencesId', displayPreferencesId); + // verify required parameter 'userId' is not null or undefined + (0, common_1.assertParamExists)('getDisplayPreferences', 'userId', userId); + // verify required parameter 'client' is not null or undefined + (0, common_1.assertParamExists)('getDisplayPreferences', 'client', client); + localVarPath = "/DisplayPreferences/{displayPreferencesId}" + .replace("{".concat("displayPreferencesId", "}"), encodeURIComponent(String(displayPreferencesId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (client !== undefined) { + localVarQueryParameter['client'] = client; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Update Display Preferences. + * @param {string} displayPreferencesId Display preferences id. + * @param {string} userId User Id. + * @param {string} client Client. + * @param {DisplayPreferencesDto} displayPreferencesDto New Display Preferences object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDisplayPreferences: function (displayPreferencesId, userId, client, displayPreferencesDto, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'displayPreferencesId' is not null or undefined + (0, common_1.assertParamExists)('updateDisplayPreferences', 'displayPreferencesId', displayPreferencesId); + // verify required parameter 'userId' is not null or undefined + (0, common_1.assertParamExists)('updateDisplayPreferences', 'userId', userId); + // verify required parameter 'client' is not null or undefined + (0, common_1.assertParamExists)('updateDisplayPreferences', 'client', client); + // verify required parameter 'displayPreferencesDto' is not null or undefined + (0, common_1.assertParamExists)('updateDisplayPreferences', 'displayPreferencesDto', displayPreferencesDto); + localVarPath = "/DisplayPreferences/{displayPreferencesId}" + .replace("{".concat("displayPreferencesId", "}"), encodeURIComponent(String(displayPreferencesId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (client !== undefined) { + localVarQueryParameter['client'] = client; + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(displayPreferencesDto, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.DisplayPreferencesApiAxiosParamCreator = DisplayPreferencesApiAxiosParamCreator; +/** + * DisplayPreferencesApi - functional programming interface + * @export + */ +var DisplayPreferencesApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.DisplayPreferencesApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Get Display Preferences. + * @param {string} displayPreferencesId Display preferences id. + * @param {string} userId User id. + * @param {string} client Client. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDisplayPreferences: function (displayPreferencesId, userId, client, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDisplayPreferences(displayPreferencesId, userId, client, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Update Display Preferences. + * @param {string} displayPreferencesId Display preferences id. + * @param {string} userId User Id. + * @param {string} client Client. + * @param {DisplayPreferencesDto} displayPreferencesDto New Display Preferences object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDisplayPreferences: function (displayPreferencesId, userId, client, displayPreferencesDto, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateDisplayPreferences(displayPreferencesId, userId, client, displayPreferencesDto, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.DisplayPreferencesApiFp = DisplayPreferencesApiFp; +/** + * DisplayPreferencesApi - factory interface + * @export + */ +var DisplayPreferencesApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.DisplayPreferencesApiFp)(configuration); + return { + /** + * + * @summary Get Display Preferences. + * @param {string} displayPreferencesId Display preferences id. + * @param {string} userId User id. + * @param {string} client Client. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDisplayPreferences: function (displayPreferencesId, userId, client, options) { + return localVarFp.getDisplayPreferences(displayPreferencesId, userId, client, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Update Display Preferences. + * @param {string} displayPreferencesId Display preferences id. + * @param {string} userId User Id. + * @param {string} client Client. + * @param {DisplayPreferencesDto} displayPreferencesDto New Display Preferences object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDisplayPreferences: function (displayPreferencesId, userId, client, displayPreferencesDto, options) { + return localVarFp.updateDisplayPreferences(displayPreferencesId, userId, client, displayPreferencesDto, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.DisplayPreferencesApiFactory = DisplayPreferencesApiFactory; +/** + * DisplayPreferencesApi - object-oriented interface + * @export + * @class DisplayPreferencesApi + * @extends {BaseAPI} + */ +var DisplayPreferencesApi = /** @class */ (function (_super) { + __extends(DisplayPreferencesApi, _super); + function DisplayPreferencesApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Get Display Preferences. + * @param {DisplayPreferencesApiGetDisplayPreferencesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DisplayPreferencesApi + */ + DisplayPreferencesApi.prototype.getDisplayPreferences = function (requestParameters, options) { + var _this = this; + return (0, exports.DisplayPreferencesApiFp)(this.configuration).getDisplayPreferences(requestParameters.displayPreferencesId, requestParameters.userId, requestParameters.client, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Update Display Preferences. + * @param {DisplayPreferencesApiUpdateDisplayPreferencesRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DisplayPreferencesApi + */ + DisplayPreferencesApi.prototype.updateDisplayPreferences = function (requestParameters, options) { + var _this = this; + return (0, exports.DisplayPreferencesApiFp)(this.configuration).updateDisplayPreferences(requestParameters.displayPreferencesId, requestParameters.userId, requestParameters.client, requestParameters.displayPreferencesDto, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return DisplayPreferencesApi; +}(base_1.BaseAPI)); +exports.DisplayPreferencesApi = DisplayPreferencesApi; + +},{"../base":68,"../common":69,"axios":362}],19:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DlnaApi = exports.DlnaApiFactory = exports.DlnaApiFp = exports.DlnaApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * DlnaApi - axios parameter creator + * @export + */ +var DlnaApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Creates a profile. + * @param {DeviceProfile} [deviceProfile] Device profile. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createProfile: function (deviceProfile, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Dlna/Profiles"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deviceProfile, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Deletes a profile. + * @param {string} profileId Profile id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteProfile: function (profileId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'profileId' is not null or undefined + (0, common_1.assertParamExists)('deleteProfile', 'profileId', profileId); + localVarPath = "/Dlna/Profiles/{profileId}" + .replace("{".concat("profileId", "}"), encodeURIComponent(String(profileId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets the default profile. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDefaultProfile: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Dlna/Profiles/Default"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets a single profile. + * @param {string} profileId Profile Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProfile: function (profileId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'profileId' is not null or undefined + (0, common_1.assertParamExists)('getProfile', 'profileId', profileId); + localVarPath = "/Dlna/Profiles/{profileId}" + .replace("{".concat("profileId", "}"), encodeURIComponent(String(profileId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get profile infos. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProfileInfos: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Dlna/ProfileInfos"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Updates a profile. + * @param {string} profileId Profile id. + * @param {DeviceProfile} [deviceProfile] Device profile. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateProfile: function (profileId, deviceProfile, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'profileId' is not null or undefined + (0, common_1.assertParamExists)('updateProfile', 'profileId', profileId); + localVarPath = "/Dlna/Profiles/{profileId}" + .replace("{".concat("profileId", "}"), encodeURIComponent(String(profileId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deviceProfile, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.DlnaApiAxiosParamCreator = DlnaApiAxiosParamCreator; +/** + * DlnaApi - functional programming interface + * @export + */ +var DlnaApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.DlnaApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Creates a profile. + * @param {DeviceProfile} [deviceProfile] Device profile. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createProfile: function (deviceProfile, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProfile(deviceProfile, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Deletes a profile. + * @param {string} profileId Profile id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteProfile: function (profileId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProfile(profileId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets the default profile. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDefaultProfile: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDefaultProfile(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a single profile. + * @param {string} profileId Profile Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProfile: function (profileId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProfile(profileId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get profile infos. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProfileInfos: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProfileInfos(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Updates a profile. + * @param {string} profileId Profile id. + * @param {DeviceProfile} [deviceProfile] Device profile. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateProfile: function (profileId, deviceProfile, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProfile(profileId, deviceProfile, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.DlnaApiFp = DlnaApiFp; +/** + * DlnaApi - factory interface + * @export + */ +var DlnaApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.DlnaApiFp)(configuration); + return { + /** + * + * @summary Creates a profile. + * @param {DeviceProfile} [deviceProfile] Device profile. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createProfile: function (deviceProfile, options) { + return localVarFp.createProfile(deviceProfile, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Deletes a profile. + * @param {string} profileId Profile id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteProfile: function (profileId, options) { + return localVarFp.deleteProfile(profileId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets the default profile. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDefaultProfile: function (options) { + return localVarFp.getDefaultProfile(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a single profile. + * @param {string} profileId Profile Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProfile: function (profileId, options) { + return localVarFp.getProfile(profileId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get profile infos. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProfileInfos: function (options) { + return localVarFp.getProfileInfos(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Updates a profile. + * @param {string} profileId Profile id. + * @param {DeviceProfile} [deviceProfile] Device profile. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateProfile: function (profileId, deviceProfile, options) { + return localVarFp.updateProfile(profileId, deviceProfile, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.DlnaApiFactory = DlnaApiFactory; +/** + * DlnaApi - object-oriented interface + * @export + * @class DlnaApi + * @extends {BaseAPI} + */ +var DlnaApi = /** @class */ (function (_super) { + __extends(DlnaApi, _super); + function DlnaApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Creates a profile. + * @param {DlnaApiCreateProfileRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaApi + */ + DlnaApi.prototype.createProfile = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.DlnaApiFp)(this.configuration).createProfile(requestParameters.deviceProfile, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Deletes a profile. + * @param {DlnaApiDeleteProfileRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaApi + */ + DlnaApi.prototype.deleteProfile = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaApiFp)(this.configuration).deleteProfile(requestParameters.profileId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets the default profile. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaApi + */ + DlnaApi.prototype.getDefaultProfile = function (options) { + var _this = this; + return (0, exports.DlnaApiFp)(this.configuration).getDefaultProfile(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a single profile. + * @param {DlnaApiGetProfileRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaApi + */ + DlnaApi.prototype.getProfile = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaApiFp)(this.configuration).getProfile(requestParameters.profileId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get profile infos. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaApi + */ + DlnaApi.prototype.getProfileInfos = function (options) { + var _this = this; + return (0, exports.DlnaApiFp)(this.configuration).getProfileInfos(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Updates a profile. + * @param {DlnaApiUpdateProfileRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaApi + */ + DlnaApi.prototype.updateProfile = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaApiFp)(this.configuration).updateProfile(requestParameters.profileId, requestParameters.deviceProfile, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return DlnaApi; +}(base_1.BaseAPI)); +exports.DlnaApi = DlnaApi; + +},{"../base":68,"../common":69,"axios":362}],20:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DlnaServerApi = exports.DlnaServerApiFactory = exports.DlnaServerApiFp = exports.DlnaServerApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * DlnaServerApi - axios parameter creator + * @export + */ +var DlnaServerApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConnectionManager: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getConnectionManager', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/ConnectionManager" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConnectionManager2: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getConnectionManager2', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/ConnectionManager/ConnectionManager" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConnectionManager3: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getConnectionManager3', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/ConnectionManager/ConnectionManager.xml" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets Dlna content directory xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getContentDirectory: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getContentDirectory', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/ContentDirectory" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets Dlna content directory xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getContentDirectory2: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getContentDirectory2', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/ContentDirectory/ContentDirectory" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets Dlna content directory xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getContentDirectory3: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getContentDirectory3', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/ContentDirectory/ContentDirectory.xml" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get Description Xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDescriptionXml: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getDescriptionXml', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/description" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get Description Xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDescriptionXml2: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getDescriptionXml2', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/description.xml" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets a server icon. + * @param {string} fileName The icon filename. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIcon: function (fileName, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'fileName' is not null or undefined + (0, common_1.assertParamExists)('getIcon', 'fileName', fileName); + localVarPath = "/Dlna/icons/{fileName}" + .replace("{".concat("fileName", "}"), encodeURIComponent(String(fileName))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets a server icon. + * @param {string} serverId Server UUID. + * @param {string} fileName The icon filename. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIconId: function (serverId, fileName, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getIconId', 'serverId', serverId); + // verify required parameter 'fileName' is not null or undefined + (0, common_1.assertParamExists)('getIconId', 'fileName', fileName); + localVarPath = "/Dlna/{serverId}/icons/{fileName}" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))) + .replace("{".concat("fileName", "}"), encodeURIComponent(String(fileName))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaReceiverRegistrar: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getMediaReceiverRegistrar', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/MediaReceiverRegistrar" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaReceiverRegistrar2: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getMediaReceiverRegistrar2', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/MediaReceiverRegistrar/MediaReceiverRegistrar" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaReceiverRegistrar3: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('getMediaReceiverRegistrar3', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/MediaReceiverRegistrar/MediaReceiverRegistrar.xml" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Process a connection manager control request. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processConnectionManagerControlRequest: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('processConnectionManagerControlRequest', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/ConnectionManager/Control" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Process a content directory control request. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processContentDirectoryControlRequest: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('processContentDirectoryControlRequest', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/ContentDirectory/Control" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Process a media receiver registrar control request. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processMediaReceiverRegistrarControlRequest: function (serverId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'serverId' is not null or undefined + (0, common_1.assertParamExists)('processMediaReceiverRegistrarControlRequest', 'serverId', serverId); + localVarPath = "/Dlna/{serverId}/MediaReceiverRegistrar/Control" + .replace("{".concat("serverId", "}"), encodeURIComponent(String(serverId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + }; +}; +exports.DlnaServerApiAxiosParamCreator = DlnaServerApiAxiosParamCreator; +/** + * DlnaServerApi - functional programming interface + * @export + */ +var DlnaServerApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.DlnaServerApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConnectionManager: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getConnectionManager(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConnectionManager2: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getConnectionManager2(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConnectionManager3: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getConnectionManager3(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets Dlna content directory xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getContentDirectory: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getContentDirectory(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets Dlna content directory xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getContentDirectory2: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getContentDirectory2(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets Dlna content directory xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getContentDirectory3: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getContentDirectory3(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get Description Xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDescriptionXml: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDescriptionXml(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get Description Xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDescriptionXml2: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDescriptionXml2(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a server icon. + * @param {string} fileName The icon filename. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIcon: function (fileName, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getIcon(fileName, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a server icon. + * @param {string} serverId Server UUID. + * @param {string} fileName The icon filename. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIconId: function (serverId, fileName, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getIconId(serverId, fileName, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaReceiverRegistrar: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMediaReceiverRegistrar(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaReceiverRegistrar2: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMediaReceiverRegistrar2(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaReceiverRegistrar3: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMediaReceiverRegistrar3(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Process a connection manager control request. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processConnectionManagerControlRequest: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.processConnectionManagerControlRequest(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Process a content directory control request. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processContentDirectoryControlRequest: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.processContentDirectoryControlRequest(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Process a media receiver registrar control request. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processMediaReceiverRegistrarControlRequest: function (serverId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.processMediaReceiverRegistrarControlRequest(serverId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.DlnaServerApiFp = DlnaServerApiFp; +/** + * DlnaServerApi - factory interface + * @export + */ +var DlnaServerApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.DlnaServerApiFp)(configuration); + return { + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConnectionManager: function (serverId, options) { + return localVarFp.getConnectionManager(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConnectionManager2: function (serverId, options) { + return localVarFp.getConnectionManager2(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getConnectionManager3: function (serverId, options) { + return localVarFp.getConnectionManager3(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets Dlna content directory xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getContentDirectory: function (serverId, options) { + return localVarFp.getContentDirectory(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets Dlna content directory xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getContentDirectory2: function (serverId, options) { + return localVarFp.getContentDirectory2(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets Dlna content directory xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getContentDirectory3: function (serverId, options) { + return localVarFp.getContentDirectory3(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get Description Xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDescriptionXml: function (serverId, options) { + return localVarFp.getDescriptionXml(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get Description Xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDescriptionXml2: function (serverId, options) { + return localVarFp.getDescriptionXml2(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a server icon. + * @param {string} fileName The icon filename. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIcon: function (fileName, options) { + return localVarFp.getIcon(fileName, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a server icon. + * @param {string} serverId Server UUID. + * @param {string} fileName The icon filename. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIconId: function (serverId, fileName, options) { + return localVarFp.getIconId(serverId, fileName, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaReceiverRegistrar: function (serverId, options) { + return localVarFp.getMediaReceiverRegistrar(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaReceiverRegistrar2: function (serverId, options) { + return localVarFp.getMediaReceiverRegistrar2(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaReceiverRegistrar3: function (serverId, options) { + return localVarFp.getMediaReceiverRegistrar3(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Process a connection manager control request. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processConnectionManagerControlRequest: function (serverId, options) { + return localVarFp.processConnectionManagerControlRequest(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Process a content directory control request. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processContentDirectoryControlRequest: function (serverId, options) { + return localVarFp.processContentDirectoryControlRequest(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Process a media receiver registrar control request. + * @param {string} serverId Server UUID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + processMediaReceiverRegistrarControlRequest: function (serverId, options) { + return localVarFp.processMediaReceiverRegistrarControlRequest(serverId, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.DlnaServerApiFactory = DlnaServerApiFactory; +/** + * DlnaServerApi - object-oriented interface + * @export + * @class DlnaServerApi + * @extends {BaseAPI} + */ +var DlnaServerApi = /** @class */ (function (_super) { + __extends(DlnaServerApi, _super); + function DlnaServerApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {DlnaServerApiGetConnectionManagerRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getConnectionManager = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getConnectionManager(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {DlnaServerApiGetConnectionManager2Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getConnectionManager2 = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getConnectionManager2(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {DlnaServerApiGetConnectionManager3Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getConnectionManager3 = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getConnectionManager3(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets Dlna content directory xml. + * @param {DlnaServerApiGetContentDirectoryRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getContentDirectory = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getContentDirectory(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets Dlna content directory xml. + * @param {DlnaServerApiGetContentDirectory2Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getContentDirectory2 = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getContentDirectory2(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets Dlna content directory xml. + * @param {DlnaServerApiGetContentDirectory3Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getContentDirectory3 = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getContentDirectory3(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get Description Xml. + * @param {DlnaServerApiGetDescriptionXmlRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getDescriptionXml = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getDescriptionXml(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get Description Xml. + * @param {DlnaServerApiGetDescriptionXml2Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getDescriptionXml2 = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getDescriptionXml2(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a server icon. + * @param {DlnaServerApiGetIconRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getIcon = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getIcon(requestParameters.fileName, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a server icon. + * @param {DlnaServerApiGetIconIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getIconId = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getIconId(requestParameters.serverId, requestParameters.fileName, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {DlnaServerApiGetMediaReceiverRegistrarRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getMediaReceiverRegistrar = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getMediaReceiverRegistrar(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {DlnaServerApiGetMediaReceiverRegistrar2Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getMediaReceiverRegistrar2 = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getMediaReceiverRegistrar2(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets Dlna media receiver registrar xml. + * @param {DlnaServerApiGetMediaReceiverRegistrar3Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.getMediaReceiverRegistrar3 = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).getMediaReceiverRegistrar3(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Process a connection manager control request. + * @param {DlnaServerApiProcessConnectionManagerControlRequestRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.processConnectionManagerControlRequest = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).processConnectionManagerControlRequest(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Process a content directory control request. + * @param {DlnaServerApiProcessContentDirectoryControlRequestRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.processContentDirectoryControlRequest = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).processContentDirectoryControlRequest(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Process a media receiver registrar control request. + * @param {DlnaServerApiProcessMediaReceiverRegistrarControlRequestRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DlnaServerApi + */ + DlnaServerApi.prototype.processMediaReceiverRegistrarControlRequest = function (requestParameters, options) { + var _this = this; + return (0, exports.DlnaServerApiFp)(this.configuration).processMediaReceiverRegistrarControlRequest(requestParameters.serverId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return DlnaServerApi; +}(base_1.BaseAPI)); +exports.DlnaServerApi = DlnaServerApi; + +},{"../base":68,"../common":69,"axios":362}],21:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DynamicHlsApi = exports.DynamicHlsApiFactory = exports.DynamicHlsApiFp = exports.DynamicHlsApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * DynamicHlsApi - axios parameter creator + * @export + */ +var DynamicHlsApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {string} playlistId The playlist id. + * @param {number} segmentId The segment id. + * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsAudioSegment: function (itemId, playlistId, segmentId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getHlsAudioSegment', 'itemId', itemId); + // verify required parameter 'playlistId' is not null or undefined + (0, common_1.assertParamExists)('getHlsAudioSegment', 'playlistId', playlistId); + // verify required parameter 'segmentId' is not null or undefined + (0, common_1.assertParamExists)('getHlsAudioSegment', 'segmentId', segmentId); + // verify required parameter 'container' is not null or undefined + (0, common_1.assertParamExists)('getHlsAudioSegment', 'container', container); + localVarPath = "/Audio/{itemId}/hls1/{playlistId}/{segmentId}.{container}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("playlistId", "}"), encodeURIComponent(String(playlistId))) + .replace("{".concat("segmentId", "}"), encodeURIComponent(String(segmentId))) + .replace("{".concat("container", "}"), encodeURIComponent(String(container))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (maxStreamingBitrate !== undefined) { + localVarQueryParameter['maxStreamingBitrate'] = maxStreamingBitrate; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {string} playlistId The playlist id. + * @param {number} segmentId The segment id. + * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment lenght. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsVideoSegment: function (itemId, playlistId, segmentId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getHlsVideoSegment', 'itemId', itemId); + // verify required parameter 'playlistId' is not null or undefined + (0, common_1.assertParamExists)('getHlsVideoSegment', 'playlistId', playlistId); + // verify required parameter 'segmentId' is not null or undefined + (0, common_1.assertParamExists)('getHlsVideoSegment', 'segmentId', segmentId); + // verify required parameter 'container' is not null or undefined + (0, common_1.assertParamExists)('getHlsVideoSegment', 'container', container); + localVarPath = "/Videos/{itemId}/hls1/{playlistId}/{segmentId}.{container}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("playlistId", "}"), encodeURIComponent(String(playlistId))) + .replace("{".concat("segmentId", "}"), encodeURIComponent(String(segmentId))) + .replace("{".concat("container", "}"), encodeURIComponent(String(container))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets an audio hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMasterHlsAudioPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getMasterHlsAudioPlaylist', 'itemId', itemId); + // verify required parameter 'mediaSourceId' is not null or undefined + (0, common_1.assertParamExists)('getMasterHlsAudioPlaylist', 'mediaSourceId', mediaSourceId); + localVarPath = "/Audio/{itemId}/master.m3u8" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (maxStreamingBitrate !== undefined) { + localVarQueryParameter['maxStreamingBitrate'] = maxStreamingBitrate; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + if (enableAdaptiveBitrateStreaming !== undefined) { + localVarQueryParameter['enableAdaptiveBitrateStreaming'] = enableAdaptiveBitrateStreaming; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets a video hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMasterHlsVideoPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getMasterHlsVideoPlaylist', 'itemId', itemId); + // verify required parameter 'mediaSourceId' is not null or undefined + (0, common_1.assertParamExists)('getMasterHlsVideoPlaylist', 'mediaSourceId', mediaSourceId); + localVarPath = "/Videos/{itemId}/master.m3u8" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + if (enableAdaptiveBitrateStreaming !== undefined) { + localVarQueryParameter['enableAdaptiveBitrateStreaming'] = enableAdaptiveBitrateStreaming; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets an audio stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVariantHlsAudioPlaylist: function (itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getVariantHlsAudioPlaylist', 'itemId', itemId); + localVarPath = "/Audio/{itemId}/main.m3u8" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (maxStreamingBitrate !== undefined) { + localVarQueryParameter['maxStreamingBitrate'] = maxStreamingBitrate; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVariantHlsVideoPlaylist: function (itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getVariantHlsVideoPlaylist', 'itemId', itemId); + localVarPath = "/Videos/{itemId}/main.m3u8" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets an audio hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMasterHlsAudioPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('headMasterHlsAudioPlaylist', 'itemId', itemId); + // verify required parameter 'mediaSourceId' is not null or undefined + (0, common_1.assertParamExists)('headMasterHlsAudioPlaylist', 'mediaSourceId', mediaSourceId); + localVarPath = "/Audio/{itemId}/master.m3u8" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (maxStreamingBitrate !== undefined) { + localVarQueryParameter['maxStreamingBitrate'] = maxStreamingBitrate; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + if (enableAdaptiveBitrateStreaming !== undefined) { + localVarQueryParameter['enableAdaptiveBitrateStreaming'] = enableAdaptiveBitrateStreaming; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets a video hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMasterHlsVideoPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('headMasterHlsVideoPlaylist', 'itemId', itemId); + // verify required parameter 'mediaSourceId' is not null or undefined + (0, common_1.assertParamExists)('headMasterHlsVideoPlaylist', 'mediaSourceId', mediaSourceId); + localVarPath = "/Videos/{itemId}/master.m3u8" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (_static !== undefined) { + localVarQueryParameter['static'] = _static; + } + if (params !== undefined) { + localVarQueryParameter['params'] = params; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (deviceProfileId !== undefined) { + localVarQueryParameter['deviceProfileId'] = deviceProfileId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + if (segmentContainer !== undefined) { + localVarQueryParameter['segmentContainer'] = segmentContainer; + } + if (segmentLength !== undefined) { + localVarQueryParameter['segmentLength'] = segmentLength; + } + if (minSegments !== undefined) { + localVarQueryParameter['minSegments'] = minSegments; + } + if (mediaSourceId !== undefined) { + localVarQueryParameter['mediaSourceId'] = mediaSourceId; + } + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (audioCodec !== undefined) { + localVarQueryParameter['audioCodec'] = audioCodec; + } + if (enableAutoStreamCopy !== undefined) { + localVarQueryParameter['enableAutoStreamCopy'] = enableAutoStreamCopy; + } + if (allowVideoStreamCopy !== undefined) { + localVarQueryParameter['allowVideoStreamCopy'] = allowVideoStreamCopy; + } + if (allowAudioStreamCopy !== undefined) { + localVarQueryParameter['allowAudioStreamCopy'] = allowAudioStreamCopy; + } + if (breakOnNonKeyFrames !== undefined) { + localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; + } + if (audioSampleRate !== undefined) { + localVarQueryParameter['audioSampleRate'] = audioSampleRate; + } + if (maxAudioBitDepth !== undefined) { + localVarQueryParameter['maxAudioBitDepth'] = maxAudioBitDepth; + } + if (audioBitRate !== undefined) { + localVarQueryParameter['audioBitRate'] = audioBitRate; + } + if (audioChannels !== undefined) { + localVarQueryParameter['audioChannels'] = audioChannels; + } + if (maxAudioChannels !== undefined) { + localVarQueryParameter['maxAudioChannels'] = maxAudioChannels; + } + if (profile !== undefined) { + localVarQueryParameter['profile'] = profile; + } + if (level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (framerate !== undefined) { + localVarQueryParameter['framerate'] = framerate; + } + if (maxFramerate !== undefined) { + localVarQueryParameter['maxFramerate'] = maxFramerate; + } + if (copyTimestamps !== undefined) { + localVarQueryParameter['copyTimestamps'] = copyTimestamps; + } + if (startTimeTicks !== undefined) { + localVarQueryParameter['startTimeTicks'] = startTimeTicks; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (videoBitRate !== undefined) { + localVarQueryParameter['videoBitRate'] = videoBitRate; + } + if (subtitleStreamIndex !== undefined) { + localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex; + } + if (subtitleMethod !== undefined) { + localVarQueryParameter['subtitleMethod'] = subtitleMethod; + } + if (maxRefFrames !== undefined) { + localVarQueryParameter['maxRefFrames'] = maxRefFrames; + } + if (maxVideoBitDepth !== undefined) { + localVarQueryParameter['maxVideoBitDepth'] = maxVideoBitDepth; + } + if (requireAvc !== undefined) { + localVarQueryParameter['requireAvc'] = requireAvc; + } + if (deInterlace !== undefined) { + localVarQueryParameter['deInterlace'] = deInterlace; + } + if (requireNonAnamorphic !== undefined) { + localVarQueryParameter['requireNonAnamorphic'] = requireNonAnamorphic; + } + if (transcodingMaxAudioChannels !== undefined) { + localVarQueryParameter['transcodingMaxAudioChannels'] = transcodingMaxAudioChannels; + } + if (cpuCoreLimit !== undefined) { + localVarQueryParameter['cpuCoreLimit'] = cpuCoreLimit; + } + if (liveStreamId !== undefined) { + localVarQueryParameter['liveStreamId'] = liveStreamId; + } + if (enableMpegtsM2TsMode !== undefined) { + localVarQueryParameter['enableMpegtsM2TsMode'] = enableMpegtsM2TsMode; + } + if (videoCodec !== undefined) { + localVarQueryParameter['videoCodec'] = videoCodec; + } + if (subtitleCodec !== undefined) { + localVarQueryParameter['subtitleCodec'] = subtitleCodec; + } + if (transcodeReasons !== undefined) { + localVarQueryParameter['transcodeReasons'] = transcodeReasons; + } + if (audioStreamIndex !== undefined) { + localVarQueryParameter['audioStreamIndex'] = audioStreamIndex; + } + if (videoStreamIndex !== undefined) { + localVarQueryParameter['videoStreamIndex'] = videoStreamIndex; + } + if (context !== undefined) { + localVarQueryParameter['context'] = context; + } + if (streamOptions !== undefined) { + localVarQueryParameter['streamOptions'] = streamOptions; + } + if (enableAdaptiveBitrateStreaming !== undefined) { + localVarQueryParameter['enableAdaptiveBitrateStreaming'] = enableAdaptiveBitrateStreaming; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.DynamicHlsApiAxiosParamCreator = DynamicHlsApiAxiosParamCreator; +/** + * DynamicHlsApi - functional programming interface + * @export + */ +var DynamicHlsApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.DynamicHlsApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {string} playlistId The playlist id. + * @param {number} segmentId The segment id. + * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsAudioSegment: function (itemId, playlistId, segmentId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getHlsAudioSegment(itemId, playlistId, segmentId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {string} playlistId The playlist id. + * @param {number} segmentId The segment id. + * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment lenght. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsVideoSegment: function (itemId, playlistId, segmentId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getHlsVideoSegment(itemId, playlistId, segmentId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets an audio hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMasterHlsAudioPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a video hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMasterHlsVideoPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets an audio stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVariantHlsAudioPlaylist: function (itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getVariantHlsAudioPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVariantHlsVideoPlaylist: function (itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getVariantHlsVideoPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets an audio hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMasterHlsAudioPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a video hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMasterHlsVideoPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.DynamicHlsApiFp = DynamicHlsApiFp; +/** + * DynamicHlsApi - factory interface + * @export + */ +var DynamicHlsApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.DynamicHlsApiFp)(configuration); + return { + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {string} playlistId The playlist id. + * @param {number} segmentId The segment id. + * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsAudioSegment: function (itemId, playlistId, segmentId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return localVarFp.getHlsAudioSegment(itemId, playlistId, segmentId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {string} playlistId The playlist id. + * @param {number} segmentId The segment id. + * @param {string} container The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment lenght. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsVideoSegment: function (itemId, playlistId, segmentId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return localVarFp.getHlsVideoSegment(itemId, playlistId, segmentId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets an audio hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMasterHlsAudioPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + return localVarFp.getMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a video hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMasterHlsVideoPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + return localVarFp.getMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets an audio stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVariantHlsAudioPlaylist: function (itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return localVarFp.getVariantHlsAudioPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {string} itemId The item id. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [mediaSourceId] The media version id, if playing an alternate version. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVariantHlsVideoPlaylist: function (itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options) { + return localVarFp.getVariantHlsVideoPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets an audio hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [maxStreamingBitrate] Optional. The maximum streaming bitrate. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMasterHlsAudioPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + return localVarFp.headMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a video hls playlist stream. + * @param {string} itemId The item id. + * @param {string} mediaSourceId The media version id, if playing an alternate version. + * @param {boolean} [_static] Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false. + * @param {string} [params] The streaming parameters. + * @param {string} [tag] The tag. + * @param {string} [deviceProfileId] Optional. The dlna device profile id to utilize. + * @param {string} [playSessionId] The play session id. + * @param {string} [segmentContainer] The segment container. + * @param {number} [segmentLength] The segment length. + * @param {number} [minSegments] The minimum number of segments. + * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. + * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. + * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. + * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. + * @param {number} [audioSampleRate] Optional. Specify a specific audio sample rate, e.g. 44100. + * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. + * @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults. + * @param {number} [audioChannels] Optional. Specify a specific number of audio channels to encode to, e.g. 2. + * @param {number} [maxAudioChannels] Optional. Specify a maximum number of audio channels to encode to, e.g. 2. + * @param {string} [profile] Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high. + * @param {string} [level] Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1. + * @param {number} [framerate] Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {number} [maxFramerate] Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements. + * @param {boolean} [copyTimestamps] Whether or not to copy timestamps when transcoding with an offset. Defaults to false. + * @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms. + * @param {number} [width] Optional. The fixed horizontal resolution of the encoded video. + * @param {number} [height] Optional. The fixed vertical resolution of the encoded video. + * @param {number} [videoBitRate] Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults. + * @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to use. If omitted no subtitles will be used. + * @param {SubtitleDeliveryMethod} [subtitleMethod] Optional. Specify the subtitle delivery method. + * @param {number} [maxRefFrames] Optional. + * @param {number} [maxVideoBitDepth] Optional. The maximum video bit depth. + * @param {boolean} [requireAvc] Optional. Whether to require avc. + * @param {boolean} [deInterlace] Optional. Whether to deinterlace the video. + * @param {boolean} [requireNonAnamorphic] Optional. Whether to require a non anamorphic stream. + * @param {number} [transcodingMaxAudioChannels] Optional. The maximum number of audio channels to transcode. + * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. + * @param {string} [liveStreamId] The live stream id. + * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. Options: h265, h264, mpeg4, theora, vpx, wmv. + * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. + * @param {string} [transcodeReasons] Optional. The transcoding reason. + * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. + * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. + * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. + * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMasterHlsVideoPlaylist: function (itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options) { + return localVarFp.headMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.DynamicHlsApiFactory = DynamicHlsApiFactory; +/** + * DynamicHlsApi - object-oriented interface + * @export + * @class DynamicHlsApi + * @extends {BaseAPI} + */ +var DynamicHlsApi = /** @class */ (function (_super) { + __extends(DynamicHlsApi, _super); + function DynamicHlsApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {DynamicHlsApiGetHlsAudioSegmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DynamicHlsApi + */ + DynamicHlsApi.prototype.getHlsAudioSegment = function (requestParameters, options) { + var _this = this; + return (0, exports.DynamicHlsApiFp)(this.configuration).getHlsAudioSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {DynamicHlsApiGetHlsVideoSegmentRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DynamicHlsApi + */ + DynamicHlsApi.prototype.getHlsVideoSegment = function (requestParameters, options) { + var _this = this; + return (0, exports.DynamicHlsApiFp)(this.configuration).getHlsVideoSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets an audio hls playlist stream. + * @param {DynamicHlsApiGetMasterHlsAudioPlaylistRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DynamicHlsApi + */ + DynamicHlsApi.prototype.getMasterHlsAudioPlaylist = function (requestParameters, options) { + var _this = this; + return (0, exports.DynamicHlsApiFp)(this.configuration).getMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a video hls playlist stream. + * @param {DynamicHlsApiGetMasterHlsVideoPlaylistRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DynamicHlsApi + */ + DynamicHlsApi.prototype.getMasterHlsVideoPlaylist = function (requestParameters, options) { + var _this = this; + return (0, exports.DynamicHlsApiFp)(this.configuration).getMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets an audio stream using HTTP live streaming. + * @param {DynamicHlsApiGetVariantHlsAudioPlaylistRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DynamicHlsApi + */ + DynamicHlsApi.prototype.getVariantHlsAudioPlaylist = function (requestParameters, options) { + var _this = this; + return (0, exports.DynamicHlsApiFp)(this.configuration).getVariantHlsAudioPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a video stream using HTTP live streaming. + * @param {DynamicHlsApiGetVariantHlsVideoPlaylistRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DynamicHlsApi + */ + DynamicHlsApi.prototype.getVariantHlsVideoPlaylist = function (requestParameters, options) { + var _this = this; + return (0, exports.DynamicHlsApiFp)(this.configuration).getVariantHlsVideoPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets an audio hls playlist stream. + * @param {DynamicHlsApiHeadMasterHlsAudioPlaylistRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DynamicHlsApi + */ + DynamicHlsApi.prototype.headMasterHlsAudioPlaylist = function (requestParameters, options) { + var _this = this; + return (0, exports.DynamicHlsApiFp)(this.configuration).headMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a video hls playlist stream. + * @param {DynamicHlsApiHeadMasterHlsVideoPlaylistRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DynamicHlsApi + */ + DynamicHlsApi.prototype.headMasterHlsVideoPlaylist = function (requestParameters, options) { + var _this = this; + return (0, exports.DynamicHlsApiFp)(this.configuration).headMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return DynamicHlsApi; +}(base_1.BaseAPI)); +exports.DynamicHlsApi = DynamicHlsApi; + +},{"../base":68,"../common":69,"axios":362}],22:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * EnvironmentApi - axios parameter creator + * @export + */ +var EnvironmentApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Get Default directory browser. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDefaultDirectoryBrowser: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Environment/DefaultDirectoryBrowser"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets the contents of a given directory in the file system. + * @param {string} path The path. + * @param {boolean} [includeFiles] An optional filter to include or exclude files from the results. true/false. + * @param {boolean} [includeDirectories] An optional filter to include or exclude folders from the results. true/false. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDirectoryContents: function (path, includeFiles, includeDirectories, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'path' is not null or undefined + (0, common_1.assertParamExists)('getDirectoryContents', 'path', path); + localVarPath = "/Environment/DirectoryContents"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (path !== undefined) { + localVarQueryParameter['path'] = path; + } + if (includeFiles !== undefined) { + localVarQueryParameter['includeFiles'] = includeFiles; + } + if (includeDirectories !== undefined) { + localVarQueryParameter['includeDirectories'] = includeDirectories; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets available drives from the server\'s file system. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDrives: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Environment/Drives"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets network paths. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + getNetworkShares: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Environment/NetworkShares"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets the parent path of a given path. + * @param {string} path The path. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getParentPath: function (path, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'path' is not null or undefined + (0, common_1.assertParamExists)('getParentPath', 'path', path); + localVarPath = "/Environment/ParentPath"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (path !== undefined) { + localVarQueryParameter['path'] = path; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Validates path. + * @param {ValidatePathDto} validatePathDto Validate request object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validatePath: function (validatePathDto, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'validatePathDto' is not null or undefined + (0, common_1.assertParamExists)('validatePath', 'validatePathDto', validatePathDto); + localVarPath = "/Environment/ValidatePath"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(validatePathDto, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.EnvironmentApiAxiosParamCreator = EnvironmentApiAxiosParamCreator; +/** + * EnvironmentApi - functional programming interface + * @export + */ +var EnvironmentApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.EnvironmentApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Get Default directory browser. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDefaultDirectoryBrowser: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDefaultDirectoryBrowser(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets the contents of a given directory in the file system. + * @param {string} path The path. + * @param {boolean} [includeFiles] An optional filter to include or exclude files from the results. true/false. + * @param {boolean} [includeDirectories] An optional filter to include or exclude folders from the results. true/false. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDirectoryContents: function (path, includeFiles, includeDirectories, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDirectoryContents(path, includeFiles, includeDirectories, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets available drives from the server\'s file system. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDrives: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDrives(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets network paths. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + getNetworkShares: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getNetworkShares(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets the parent path of a given path. + * @param {string} path The path. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getParentPath: function (path, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getParentPath(path, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Validates path. + * @param {ValidatePathDto} validatePathDto Validate request object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validatePath: function (validatePathDto, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.validatePath(validatePathDto, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.EnvironmentApiFp = EnvironmentApiFp; +/** + * EnvironmentApi - factory interface + * @export + */ +var EnvironmentApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.EnvironmentApiFp)(configuration); + return { + /** + * + * @summary Get Default directory browser. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDefaultDirectoryBrowser: function (options) { + return localVarFp.getDefaultDirectoryBrowser(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets the contents of a given directory in the file system. + * @param {string} path The path. + * @param {boolean} [includeFiles] An optional filter to include or exclude files from the results. true/false. + * @param {boolean} [includeDirectories] An optional filter to include or exclude folders from the results. true/false. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDirectoryContents: function (path, includeFiles, includeDirectories, options) { + return localVarFp.getDirectoryContents(path, includeFiles, includeDirectories, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets available drives from the server\'s file system. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDrives: function (options) { + return localVarFp.getDrives(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets network paths. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + getNetworkShares: function (options) { + return localVarFp.getNetworkShares(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets the parent path of a given path. + * @param {string} path The path. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getParentPath: function (path, options) { + return localVarFp.getParentPath(path, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Validates path. + * @param {ValidatePathDto} validatePathDto Validate request object. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + validatePath: function (validatePathDto, options) { + return localVarFp.validatePath(validatePathDto, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.EnvironmentApiFactory = EnvironmentApiFactory; +/** + * EnvironmentApi - object-oriented interface + * @export + * @class EnvironmentApi + * @extends {BaseAPI} + */ +var EnvironmentApi = /** @class */ (function (_super) { + __extends(EnvironmentApi, _super); + function EnvironmentApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Get Default directory browser. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EnvironmentApi + */ + EnvironmentApi.prototype.getDefaultDirectoryBrowser = function (options) { + var _this = this; + return (0, exports.EnvironmentApiFp)(this.configuration).getDefaultDirectoryBrowser(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets the contents of a given directory in the file system. + * @param {EnvironmentApiGetDirectoryContentsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EnvironmentApi + */ + EnvironmentApi.prototype.getDirectoryContents = function (requestParameters, options) { + var _this = this; + return (0, exports.EnvironmentApiFp)(this.configuration).getDirectoryContents(requestParameters.path, requestParameters.includeFiles, requestParameters.includeDirectories, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets available drives from the server\'s file system. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EnvironmentApi + */ + EnvironmentApi.prototype.getDrives = function (options) { + var _this = this; + return (0, exports.EnvironmentApiFp)(this.configuration).getDrives(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets network paths. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof EnvironmentApi + */ + EnvironmentApi.prototype.getNetworkShares = function (options) { + var _this = this; + return (0, exports.EnvironmentApiFp)(this.configuration).getNetworkShares(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets the parent path of a given path. + * @param {EnvironmentApiGetParentPathRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EnvironmentApi + */ + EnvironmentApi.prototype.getParentPath = function (requestParameters, options) { + var _this = this; + return (0, exports.EnvironmentApiFp)(this.configuration).getParentPath(requestParameters.path, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Validates path. + * @param {EnvironmentApiValidatePathRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EnvironmentApi + */ + EnvironmentApi.prototype.validatePath = function (requestParameters, options) { + var _this = this; + return (0, exports.EnvironmentApiFp)(this.configuration).validatePath(requestParameters.validatePathDto, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return EnvironmentApi; +}(base_1.BaseAPI)); +exports.EnvironmentApi = EnvironmentApi; + +},{"../base":68,"../common":69,"axios":362}],23:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FilterApi = exports.FilterApiFactory = exports.FilterApiFp = exports.FilterApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * FilterApi - axios parameter creator + * @export + */ +var FilterApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets query filters. + * @param {string} [userId] Optional. User id. + * @param {string} [parentId] Optional. Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {boolean} [isAiring] Optional. Is item airing. + * @param {boolean} [isMovie] Optional. Is item movie. + * @param {boolean} [isSports] Optional. Is item sports. + * @param {boolean} [isKids] Optional. Is item kids. + * @param {boolean} [isNews] Optional. Is item news. + * @param {boolean} [isSeries] Optional. Is item series. + * @param {boolean} [recursive] Optional. Search recursive. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getQueryFilters: function (userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Items/Filters2"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (parentId !== undefined) { + localVarQueryParameter['parentId'] = parentId; + } + if (includeItemTypes) { + localVarQueryParameter['includeItemTypes'] = includeItemTypes; + } + if (isAiring !== undefined) { + localVarQueryParameter['isAiring'] = isAiring; + } + if (isMovie !== undefined) { + localVarQueryParameter['isMovie'] = isMovie; + } + if (isSports !== undefined) { + localVarQueryParameter['isSports'] = isSports; + } + if (isKids !== undefined) { + localVarQueryParameter['isKids'] = isKids; + } + if (isNews !== undefined) { + localVarQueryParameter['isNews'] = isNews; + } + if (isSeries !== undefined) { + localVarQueryParameter['isSeries'] = isSeries; + } + if (recursive !== undefined) { + localVarQueryParameter['recursive'] = recursive; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets legacy query filters. + * @param {string} [userId] Optional. User id. + * @param {string} [parentId] Optional. Parent id. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {Array} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getQueryFiltersLegacy: function (userId, parentId, includeItemTypes, mediaTypes, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Items/Filters"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (parentId !== undefined) { + localVarQueryParameter['parentId'] = parentId; + } + if (includeItemTypes) { + localVarQueryParameter['includeItemTypes'] = includeItemTypes; + } + if (mediaTypes) { + localVarQueryParameter['mediaTypes'] = mediaTypes; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.FilterApiAxiosParamCreator = FilterApiAxiosParamCreator; +/** + * FilterApi - functional programming interface + * @export + */ +var FilterApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.FilterApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets query filters. + * @param {string} [userId] Optional. User id. + * @param {string} [parentId] Optional. Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {boolean} [isAiring] Optional. Is item airing. + * @param {boolean} [isMovie] Optional. Is item movie. + * @param {boolean} [isSports] Optional. Is item sports. + * @param {boolean} [isKids] Optional. Is item kids. + * @param {boolean} [isNews] Optional. Is item news. + * @param {boolean} [isSeries] Optional. Is item series. + * @param {boolean} [recursive] Optional. Search recursive. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getQueryFilters: function (userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getQueryFilters(userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets legacy query filters. + * @param {string} [userId] Optional. User id. + * @param {string} [parentId] Optional. Parent id. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {Array} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getQueryFiltersLegacy: function (userId, parentId, includeItemTypes, mediaTypes, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getQueryFiltersLegacy(userId, parentId, includeItemTypes, mediaTypes, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.FilterApiFp = FilterApiFp; +/** + * FilterApi - factory interface + * @export + */ +var FilterApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.FilterApiFp)(configuration); + return { + /** + * + * @summary Gets query filters. + * @param {string} [userId] Optional. User id. + * @param {string} [parentId] Optional. Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {boolean} [isAiring] Optional. Is item airing. + * @param {boolean} [isMovie] Optional. Is item movie. + * @param {boolean} [isSports] Optional. Is item sports. + * @param {boolean} [isKids] Optional. Is item kids. + * @param {boolean} [isNews] Optional. Is item news. + * @param {boolean} [isSeries] Optional. Is item series. + * @param {boolean} [recursive] Optional. Search recursive. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getQueryFilters: function (userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options) { + return localVarFp.getQueryFilters(userId, parentId, includeItemTypes, isAiring, isMovie, isSports, isKids, isNews, isSeries, recursive, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets legacy query filters. + * @param {string} [userId] Optional. User id. + * @param {string} [parentId] Optional. Parent id. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {Array} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getQueryFiltersLegacy: function (userId, parentId, includeItemTypes, mediaTypes, options) { + return localVarFp.getQueryFiltersLegacy(userId, parentId, includeItemTypes, mediaTypes, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.FilterApiFactory = FilterApiFactory; +/** + * FilterApi - object-oriented interface + * @export + * @class FilterApi + * @extends {BaseAPI} + */ +var FilterApi = /** @class */ (function (_super) { + __extends(FilterApi, _super); + function FilterApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets query filters. + * @param {FilterApiGetQueryFiltersRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FilterApi + */ + FilterApi.prototype.getQueryFilters = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.FilterApiFp)(this.configuration).getQueryFilters(requestParameters.userId, requestParameters.parentId, requestParameters.includeItemTypes, requestParameters.isAiring, requestParameters.isMovie, requestParameters.isSports, requestParameters.isKids, requestParameters.isNews, requestParameters.isSeries, requestParameters.recursive, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets legacy query filters. + * @param {FilterApiGetQueryFiltersLegacyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FilterApi + */ + FilterApi.prototype.getQueryFiltersLegacy = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.FilterApiFp)(this.configuration).getQueryFiltersLegacy(requestParameters.userId, requestParameters.parentId, requestParameters.includeItemTypes, requestParameters.mediaTypes, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return FilterApi; +}(base_1.BaseAPI)); +exports.FilterApi = FilterApi; + +},{"../base":68,"../common":69,"axios":362}],24:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GenresApi = exports.GenresApiFactory = exports.GenresApiFp = exports.GenresApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * GenresApi - axios parameter creator + * @export + */ +var GenresApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets a genre, by name. + * @param {string} genreName The genre name. + * @param {string} [userId] The user id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenre: function (genreName, userId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'genreName' is not null or undefined + (0, common_1.assertParamExists)('getGenre', 'genreName', genreName); + localVarPath = "/Genres/{genreName}" + .replace("{".concat("genreName", "}"), encodeURIComponent(String(genreName))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets all genres from a given item, folder, or the entire library. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [searchTerm] The search term. + * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered in based on item type. This allows multiple, comma delimited. + * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. + * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {string} [userId] User id. + * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string. + * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string. + * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string. + * @param {boolean} [enableImages] Optional, include image information in output. + * @param {boolean} [enableTotalRecordCount] Optional. Include total record count. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenres: function (startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Genres"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (startIndex !== undefined) { + localVarQueryParameter['startIndex'] = startIndex; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (searchTerm !== undefined) { + localVarQueryParameter['searchTerm'] = searchTerm; + } + if (parentId !== undefined) { + localVarQueryParameter['parentId'] = parentId; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (excludeItemTypes) { + localVarQueryParameter['excludeItemTypes'] = excludeItemTypes; + } + if (includeItemTypes) { + localVarQueryParameter['includeItemTypes'] = includeItemTypes; + } + if (isFavorite !== undefined) { + localVarQueryParameter['isFavorite'] = isFavorite; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (nameStartsWithOrGreater !== undefined) { + localVarQueryParameter['nameStartsWithOrGreater'] = nameStartsWithOrGreater; + } + if (nameStartsWith !== undefined) { + localVarQueryParameter['nameStartsWith'] = nameStartsWith; + } + if (nameLessThan !== undefined) { + localVarQueryParameter['nameLessThan'] = nameLessThan; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableTotalRecordCount !== undefined) { + localVarQueryParameter['enableTotalRecordCount'] = enableTotalRecordCount; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.GenresApiAxiosParamCreator = GenresApiAxiosParamCreator; +/** + * GenresApi - functional programming interface + * @export + */ +var GenresApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.GenresApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets a genre, by name. + * @param {string} genreName The genre name. + * @param {string} [userId] The user id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenre: function (genreName, userId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGenre(genreName, userId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets all genres from a given item, folder, or the entire library. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [searchTerm] The search term. + * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered in based on item type. This allows multiple, comma delimited. + * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. + * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {string} [userId] User id. + * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string. + * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string. + * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string. + * @param {boolean} [enableImages] Optional, include image information in output. + * @param {boolean} [enableTotalRecordCount] Optional. Include total record count. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenres: function (startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGenres(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.GenresApiFp = GenresApiFp; +/** + * GenresApi - factory interface + * @export + */ +var GenresApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.GenresApiFp)(configuration); + return { + /** + * + * @summary Gets a genre, by name. + * @param {string} genreName The genre name. + * @param {string} [userId] The user id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenre: function (genreName, userId, options) { + return localVarFp.getGenre(genreName, userId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets all genres from a given item, folder, or the entire library. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {string} [searchTerm] The search term. + * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {Array} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered in based on item type. This allows multiple, comma delimited. + * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. + * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {string} [userId] User id. + * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string. + * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string. + * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string. + * @param {boolean} [enableImages] Optional, include image information in output. + * @param {boolean} [enableTotalRecordCount] Optional. Include total record count. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenres: function (startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) { + return localVarFp.getGenres(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.GenresApiFactory = GenresApiFactory; +/** + * GenresApi - object-oriented interface + * @export + * @class GenresApi + * @extends {BaseAPI} + */ +var GenresApi = /** @class */ (function (_super) { + __extends(GenresApi, _super); + function GenresApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets a genre, by name. + * @param {GenresApiGetGenreRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GenresApi + */ + GenresApi.prototype.getGenre = function (requestParameters, options) { + var _this = this; + return (0, exports.GenresApiFp)(this.configuration).getGenre(requestParameters.genreName, requestParameters.userId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets all genres from a given item, folder, or the entire library. + * @param {GenresApiGetGenresRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GenresApi + */ + GenresApi.prototype.getGenres = function (requestParameters, options) { + var _this = this; + if (requestParameters === void 0) { requestParameters = {}; } + return (0, exports.GenresApiFp)(this.configuration).getGenres(requestParameters.startIndex, requestParameters.limit, requestParameters.searchTerm, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.isFavorite, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.userId, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.enableImages, requestParameters.enableTotalRecordCount, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return GenresApi; +}(base_1.BaseAPI)); +exports.GenresApi = GenresApi; + +},{"../base":68,"../common":69,"axios":362}],25:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HlsSegmentApi = exports.HlsSegmentApiFactory = exports.HlsSegmentApiFp = exports.HlsSegmentApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * HlsSegmentApi - axios parameter creator + * @export + */ +var HlsSegmentApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets the specified audio segment for an audio item. + * @param {string} itemId The item id. + * @param {string} segmentId The segment id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsAudioSegmentLegacyAac: function (itemId, segmentId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getHlsAudioSegmentLegacyAac', 'itemId', itemId); + // verify required parameter 'segmentId' is not null or undefined + (0, common_1.assertParamExists)('getHlsAudioSegmentLegacyAac', 'segmentId', segmentId); + localVarPath = "/Audio/{itemId}/hls/{segmentId}/stream.aac" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("segmentId", "}"), encodeURIComponent(String(segmentId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets the specified audio segment for an audio item. + * @param {string} itemId The item id. + * @param {string} segmentId The segment id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsAudioSegmentLegacyMp3: function (itemId, segmentId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getHlsAudioSegmentLegacyMp3', 'itemId', itemId); + // verify required parameter 'segmentId' is not null or undefined + (0, common_1.assertParamExists)('getHlsAudioSegmentLegacyMp3', 'segmentId', segmentId); + localVarPath = "/Audio/{itemId}/hls/{segmentId}/stream.mp3" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("segmentId", "}"), encodeURIComponent(String(segmentId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets a hls video playlist. + * @param {string} itemId The video id. + * @param {string} playlistId The playlist id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsPlaylistLegacy: function (itemId, playlistId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getHlsPlaylistLegacy', 'itemId', itemId); + // verify required parameter 'playlistId' is not null or undefined + (0, common_1.assertParamExists)('getHlsPlaylistLegacy', 'playlistId', playlistId); + localVarPath = "/Videos/{itemId}/hls/{playlistId}/stream.m3u8" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("playlistId", "}"), encodeURIComponent(String(playlistId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets a hls video segment. + * @param {string} itemId The item id. + * @param {string} playlistId The playlist id. + * @param {string} segmentId The segment id. + * @param {string} segmentContainer The segment container. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsVideoSegmentLegacy: function (itemId, playlistId, segmentId, segmentContainer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getHlsVideoSegmentLegacy', 'itemId', itemId); + // verify required parameter 'playlistId' is not null or undefined + (0, common_1.assertParamExists)('getHlsVideoSegmentLegacy', 'playlistId', playlistId); + // verify required parameter 'segmentId' is not null or undefined + (0, common_1.assertParamExists)('getHlsVideoSegmentLegacy', 'segmentId', segmentId); + // verify required parameter 'segmentContainer' is not null or undefined + (0, common_1.assertParamExists)('getHlsVideoSegmentLegacy', 'segmentContainer', segmentContainer); + localVarPath = "/Videos/{itemId}/hls/{playlistId}/{segmentId}.{segmentContainer}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("playlistId", "}"), encodeURIComponent(String(playlistId))) + .replace("{".concat("segmentId", "}"), encodeURIComponent(String(segmentId))) + .replace("{".concat("segmentContainer", "}"), encodeURIComponent(String(segmentContainer))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Stops an active encoding. + * @param {string} deviceId The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} playSessionId The play session id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stopEncodingProcess: function (deviceId, playSessionId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'deviceId' is not null or undefined + (0, common_1.assertParamExists)('stopEncodingProcess', 'deviceId', deviceId); + // verify required parameter 'playSessionId' is not null or undefined + (0, common_1.assertParamExists)('stopEncodingProcess', 'playSessionId', playSessionId); + localVarPath = "/Videos/ActiveEncodings"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (deviceId !== undefined) { + localVarQueryParameter['deviceId'] = deviceId; + } + if (playSessionId !== undefined) { + localVarQueryParameter['playSessionId'] = playSessionId; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.HlsSegmentApiAxiosParamCreator = HlsSegmentApiAxiosParamCreator; +/** + * HlsSegmentApi - functional programming interface + * @export + */ +var HlsSegmentApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.HlsSegmentApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets the specified audio segment for an audio item. + * @param {string} itemId The item id. + * @param {string} segmentId The segment id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsAudioSegmentLegacyAac: function (itemId, segmentId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getHlsAudioSegmentLegacyAac(itemId, segmentId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets the specified audio segment for an audio item. + * @param {string} itemId The item id. + * @param {string} segmentId The segment id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsAudioSegmentLegacyMp3: function (itemId, segmentId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getHlsAudioSegmentLegacyMp3(itemId, segmentId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a hls video playlist. + * @param {string} itemId The video id. + * @param {string} playlistId The playlist id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsPlaylistLegacy: function (itemId, playlistId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getHlsPlaylistLegacy(itemId, playlistId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets a hls video segment. + * @param {string} itemId The item id. + * @param {string} playlistId The playlist id. + * @param {string} segmentId The segment id. + * @param {string} segmentContainer The segment container. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsVideoSegmentLegacy: function (itemId, playlistId, segmentId, segmentContainer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getHlsVideoSegmentLegacy(itemId, playlistId, segmentId, segmentContainer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Stops an active encoding. + * @param {string} deviceId The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} playSessionId The play session id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stopEncodingProcess: function (deviceId, playSessionId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.stopEncodingProcess(deviceId, playSessionId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.HlsSegmentApiFp = HlsSegmentApiFp; +/** + * HlsSegmentApi - factory interface + * @export + */ +var HlsSegmentApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.HlsSegmentApiFp)(configuration); + return { + /** + * + * @summary Gets the specified audio segment for an audio item. + * @param {string} itemId The item id. + * @param {string} segmentId The segment id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsAudioSegmentLegacyAac: function (itemId, segmentId, options) { + return localVarFp.getHlsAudioSegmentLegacyAac(itemId, segmentId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets the specified audio segment for an audio item. + * @param {string} itemId The item id. + * @param {string} segmentId The segment id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsAudioSegmentLegacyMp3: function (itemId, segmentId, options) { + return localVarFp.getHlsAudioSegmentLegacyMp3(itemId, segmentId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a hls video playlist. + * @param {string} itemId The video id. + * @param {string} playlistId The playlist id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsPlaylistLegacy: function (itemId, playlistId, options) { + return localVarFp.getHlsPlaylistLegacy(itemId, playlistId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets a hls video segment. + * @param {string} itemId The item id. + * @param {string} playlistId The playlist id. + * @param {string} segmentId The segment id. + * @param {string} segmentContainer The segment container. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getHlsVideoSegmentLegacy: function (itemId, playlistId, segmentId, segmentContainer, options) { + return localVarFp.getHlsVideoSegmentLegacy(itemId, playlistId, segmentId, segmentContainer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Stops an active encoding. + * @param {string} deviceId The device id of the client requesting. Used to stop encoding processes when needed. + * @param {string} playSessionId The play session id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + stopEncodingProcess: function (deviceId, playSessionId, options) { + return localVarFp.stopEncodingProcess(deviceId, playSessionId, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.HlsSegmentApiFactory = HlsSegmentApiFactory; +/** + * HlsSegmentApi - object-oriented interface + * @export + * @class HlsSegmentApi + * @extends {BaseAPI} + */ +var HlsSegmentApi = /** @class */ (function (_super) { + __extends(HlsSegmentApi, _super); + function HlsSegmentApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets the specified audio segment for an audio item. + * @param {HlsSegmentApiGetHlsAudioSegmentLegacyAacRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HlsSegmentApi + */ + HlsSegmentApi.prototype.getHlsAudioSegmentLegacyAac = function (requestParameters, options) { + var _this = this; + return (0, exports.HlsSegmentApiFp)(this.configuration).getHlsAudioSegmentLegacyAac(requestParameters.itemId, requestParameters.segmentId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets the specified audio segment for an audio item. + * @param {HlsSegmentApiGetHlsAudioSegmentLegacyMp3Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HlsSegmentApi + */ + HlsSegmentApi.prototype.getHlsAudioSegmentLegacyMp3 = function (requestParameters, options) { + var _this = this; + return (0, exports.HlsSegmentApiFp)(this.configuration).getHlsAudioSegmentLegacyMp3(requestParameters.itemId, requestParameters.segmentId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a hls video playlist. + * @param {HlsSegmentApiGetHlsPlaylistLegacyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HlsSegmentApi + */ + HlsSegmentApi.prototype.getHlsPlaylistLegacy = function (requestParameters, options) { + var _this = this; + return (0, exports.HlsSegmentApiFp)(this.configuration).getHlsPlaylistLegacy(requestParameters.itemId, requestParameters.playlistId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets a hls video segment. + * @param {HlsSegmentApiGetHlsVideoSegmentLegacyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HlsSegmentApi + */ + HlsSegmentApi.prototype.getHlsVideoSegmentLegacy = function (requestParameters, options) { + var _this = this; + return (0, exports.HlsSegmentApiFp)(this.configuration).getHlsVideoSegmentLegacy(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.segmentContainer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Stops an active encoding. + * @param {HlsSegmentApiStopEncodingProcessRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HlsSegmentApi + */ + HlsSegmentApi.prototype.stopEncodingProcess = function (requestParameters, options) { + var _this = this; + return (0, exports.HlsSegmentApiFp)(this.configuration).stopEncodingProcess(requestParameters.deviceId, requestParameters.playSessionId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return HlsSegmentApi; +}(base_1.BaseAPI)); +exports.HlsSegmentApi = HlsSegmentApi; + +},{"../base":68,"../common":69,"axios":362}],26:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImageApi = exports.ImageApiFactory = exports.ImageApiFp = exports.ImageApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * ImageApi - axios parameter creator + * @export + */ +var ImageApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Delete an item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} [imageIndex] The image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteItemImage: function (itemId, imageType, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('deleteItemImage', 'itemId', itemId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('deleteItemImage', 'imageType', imageType); + localVarPath = "/Items/{itemId}/Images/{imageType}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Delete an item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex The image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteItemImageByIndex: function (itemId, imageType, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('deleteItemImageByIndex', 'itemId', itemId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('deleteItemImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('deleteItemImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Items/{itemId}/Images/{imageType}/{imageIndex}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Delete the user\'s image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} [index] (Unused) Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserImage: function (userId, imageType, index, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'userId' is not null or undefined + (0, common_1.assertParamExists)('deleteUserImage', 'userId', userId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('deleteUserImage', 'imageType', imageType); + localVarPath = "/Users/{userId}/Images/{imageType}" + .replace("{".concat("userId", "}"), encodeURIComponent(String(userId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (index !== undefined) { + localVarQueryParameter['index'] = index; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Delete the user\'s image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} index (Unused) Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserImageByIndex: function (userId, imageType, index, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'userId' is not null or undefined + (0, common_1.assertParamExists)('deleteUserImageByIndex', 'userId', userId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('deleteUserImageByIndex', 'imageType', imageType); + // verify required parameter 'index' is not null or undefined + (0, common_1.assertParamExists)('deleteUserImageByIndex', 'index', index); + localVarPath = "/Users/{userId}/Images/{imageType}/{index}" + .replace("{".concat("userId", "}"), encodeURIComponent(String(userId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("index", "}"), encodeURIComponent(String(index))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get artist image by name. + * @param {string} name Artist name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getArtistImage: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getArtistImage', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getArtistImage', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('getArtistImage', 'imageIndex', imageIndex); + localVarPath = "/Artists/{name}/Images/{imageType}/{imageIndex}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getGenreImage', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getGenreImage', 'imageType', imageType); + localVarPath = "/Genres/{name}/Images/{imageType}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getGenreImageByIndex', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getGenreImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('getGenreImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Genres/{name}/Images/{imageType}/{imageIndex}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImage: function (itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getItemImage', 'itemId', itemId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getItemImage', 'imageType', imageType); + localVarPath = "/Items/{itemId}/Images/{imageType}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} maxWidth The maximum image width to return. + * @param {number} maxHeight The maximum image height to return. + * @param {string} tag Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} format Determines the output format of the image - original,gif,jpg,png. + * @param {number} percentPlayed Optional. Percent to render for the percent played overlay. + * @param {number} unplayedCount Optional. Unplayed count overlay to render. + * @param {number} imageIndex Image index. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImage2: function (itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getItemImage2', 'itemId', itemId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getItemImage2', 'imageType', imageType); + // verify required parameter 'maxWidth' is not null or undefined + (0, common_1.assertParamExists)('getItemImage2', 'maxWidth', maxWidth); + // verify required parameter 'maxHeight' is not null or undefined + (0, common_1.assertParamExists)('getItemImage2', 'maxHeight', maxHeight); + // verify required parameter 'tag' is not null or undefined + (0, common_1.assertParamExists)('getItemImage2', 'tag', tag); + // verify required parameter 'format' is not null or undefined + (0, common_1.assertParamExists)('getItemImage2', 'format', format); + // verify required parameter 'percentPlayed' is not null or undefined + (0, common_1.assertParamExists)('getItemImage2', 'percentPlayed', percentPlayed); + // verify required parameter 'unplayedCount' is not null or undefined + (0, common_1.assertParamExists)('getItemImage2', 'unplayedCount', unplayedCount); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('getItemImage2', 'imageIndex', imageIndex); + localVarPath = "/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("maxWidth", "}"), encodeURIComponent(String(maxWidth))) + .replace("{".concat("maxHeight", "}"), encodeURIComponent(String(maxHeight))) + .replace("{".concat("tag", "}"), encodeURIComponent(String(tag))) + .replace("{".concat("format", "}"), encodeURIComponent(String(format))) + .replace("{".concat("percentPlayed", "}"), encodeURIComponent(String(percentPlayed))) + .replace("{".concat("unplayedCount", "}"), encodeURIComponent(String(unplayedCount))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImageByIndex: function (itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getItemImageByIndex', 'itemId', itemId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getItemImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('getItemImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Items/{itemId}/Images/{imageType}/{imageIndex}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get item image infos. + * @param {string} itemId Item id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImageInfos: function (itemId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getItemImageInfos', 'itemId', itemId); + localVarPath = "/Items/{itemId}/Images" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getMusicGenreImage', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getMusicGenreImage', 'imageType', imageType); + localVarPath = "/MusicGenres/{name}/Images/{imageType}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getMusicGenreImageByIndex', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getMusicGenreImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('getMusicGenreImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/MusicGenres/{name}/Images/{imageType}/{imageIndex}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPersonImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getPersonImage', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getPersonImage', 'imageType', imageType); + localVarPath = "/Persons/{name}/Images/{imageType}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPersonImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getPersonImageByIndex', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getPersonImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('getPersonImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Persons/{name}/Images/{imageType}/{imageIndex}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStudioImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getStudioImage', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getStudioImage', 'imageType', imageType); + localVarPath = "/Studios/{name}/Images/{imageType}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStudioImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getStudioImageByIndex', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getStudioImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('getStudioImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Studios/{name}/Images/{imageType}/{imageIndex}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserImage: function (userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'userId' is not null or undefined + (0, common_1.assertParamExists)('getUserImage', 'userId', userId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getUserImage', 'imageType', imageType); + localVarPath = "/Users/{userId}/Images/{imageType}" + .replace("{".concat("userId", "}"), encodeURIComponent(String(userId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserImageByIndex: function (userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'userId' is not null or undefined + (0, common_1.assertParamExists)('getUserImageByIndex', 'userId', userId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('getUserImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('getUserImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Users/{userId}/Images/{imageType}/{imageIndex}" + .replace("{".concat("userId", "}"), encodeURIComponent(String(userId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get artist image by name. + * @param {string} name Artist name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headArtistImage: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('headArtistImage', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headArtistImage', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('headArtistImage', 'imageIndex', imageIndex); + localVarPath = "/Artists/{name}/Images/{imageType}/{imageIndex}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('headGenreImage', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headGenreImage', 'imageType', imageType); + localVarPath = "/Genres/{name}/Images/{imageType}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('headGenreImageByIndex', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headGenreImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('headGenreImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Genres/{name}/Images/{imageType}/{imageIndex}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headItemImage: function (itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('headItemImage', 'itemId', itemId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headItemImage', 'imageType', imageType); + localVarPath = "/Items/{itemId}/Images/{imageType}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} maxWidth The maximum image width to return. + * @param {number} maxHeight The maximum image height to return. + * @param {string} tag Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} format Determines the output format of the image - original,gif,jpg,png. + * @param {number} percentPlayed Optional. Percent to render for the percent played overlay. + * @param {number} unplayedCount Optional. Unplayed count overlay to render. + * @param {number} imageIndex Image index. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headItemImage2: function (itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('headItemImage2', 'itemId', itemId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headItemImage2', 'imageType', imageType); + // verify required parameter 'maxWidth' is not null or undefined + (0, common_1.assertParamExists)('headItemImage2', 'maxWidth', maxWidth); + // verify required parameter 'maxHeight' is not null or undefined + (0, common_1.assertParamExists)('headItemImage2', 'maxHeight', maxHeight); + // verify required parameter 'tag' is not null or undefined + (0, common_1.assertParamExists)('headItemImage2', 'tag', tag); + // verify required parameter 'format' is not null or undefined + (0, common_1.assertParamExists)('headItemImage2', 'format', format); + // verify required parameter 'percentPlayed' is not null or undefined + (0, common_1.assertParamExists)('headItemImage2', 'percentPlayed', percentPlayed); + // verify required parameter 'unplayedCount' is not null or undefined + (0, common_1.assertParamExists)('headItemImage2', 'unplayedCount', unplayedCount); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('headItemImage2', 'imageIndex', imageIndex); + localVarPath = "/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("maxWidth", "}"), encodeURIComponent(String(maxWidth))) + .replace("{".concat("maxHeight", "}"), encodeURIComponent(String(maxHeight))) + .replace("{".concat("tag", "}"), encodeURIComponent(String(tag))) + .replace("{".concat("format", "}"), encodeURIComponent(String(format))) + .replace("{".concat("percentPlayed", "}"), encodeURIComponent(String(percentPlayed))) + .replace("{".concat("unplayedCount", "}"), encodeURIComponent(String(unplayedCount))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headItemImageByIndex: function (itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('headItemImageByIndex', 'itemId', itemId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headItemImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('headItemImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Items/{itemId}/Images/{imageType}/{imageIndex}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMusicGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('headMusicGenreImage', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headMusicGenreImage', 'imageType', imageType); + localVarPath = "/MusicGenres/{name}/Images/{imageType}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMusicGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('headMusicGenreImageByIndex', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headMusicGenreImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('headMusicGenreImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/MusicGenres/{name}/Images/{imageType}/{imageIndex}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headPersonImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('headPersonImage', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headPersonImage', 'imageType', imageType); + localVarPath = "/Persons/{name}/Images/{imageType}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headPersonImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('headPersonImageByIndex', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headPersonImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('headPersonImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Persons/{name}/Images/{imageType}/{imageIndex}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headStudioImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('headStudioImage', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headStudioImage', 'imageType', imageType); + localVarPath = "/Studios/{name}/Images/{imageType}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headStudioImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('headStudioImageByIndex', 'name', name); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headStudioImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('headStudioImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Studios/{name}/Images/{imageType}/{imageIndex}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headUserImage: function (userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'userId' is not null or undefined + (0, common_1.assertParamExists)('headUserImage', 'userId', userId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headUserImage', 'imageType', imageType); + localVarPath = "/Users/{userId}/Images/{imageType}" + .replace("{".concat("userId", "}"), encodeURIComponent(String(userId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + if (imageIndex !== undefined) { + localVarQueryParameter['imageIndex'] = imageIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headUserImageByIndex: function (userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'userId' is not null or undefined + (0, common_1.assertParamExists)('headUserImageByIndex', 'userId', userId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('headUserImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('headUserImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Users/{userId}/Images/{imageType}/{imageIndex}" + .replace("{".concat("userId", "}"), encodeURIComponent(String(userId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'HEAD' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + if (tag !== undefined) { + localVarQueryParameter['tag'] = tag; + } + if (format !== undefined) { + localVarQueryParameter['format'] = format; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (percentPlayed !== undefined) { + localVarQueryParameter['percentPlayed'] = percentPlayed; + } + if (unplayedCount !== undefined) { + localVarQueryParameter['unplayedCount'] = unplayedCount; + } + if (width !== undefined) { + localVarQueryParameter['width'] = width; + } + if (height !== undefined) { + localVarQueryParameter['height'] = height; + } + if (quality !== undefined) { + localVarQueryParameter['quality'] = quality; + } + if (fillWidth !== undefined) { + localVarQueryParameter['fillWidth'] = fillWidth; + } + if (fillHeight !== undefined) { + localVarQueryParameter['fillHeight'] = fillHeight; + } + if (cropWhitespace !== undefined) { + localVarQueryParameter['cropWhitespace'] = cropWhitespace; + } + if (addPlayedIndicator !== undefined) { + localVarQueryParameter['addPlayedIndicator'] = addPlayedIndicator; + } + if (blur !== undefined) { + localVarQueryParameter['blur'] = blur; + } + if (backgroundColor !== undefined) { + localVarQueryParameter['backgroundColor'] = backgroundColor; + } + if (foregroundLayer !== undefined) { + localVarQueryParameter['foregroundLayer'] = foregroundLayer; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Sets the user image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} [index] (Unused) Image index. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + postUserImage: function (userId, imageType, index, body, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'userId' is not null or undefined + (0, common_1.assertParamExists)('postUserImage', 'userId', userId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('postUserImage', 'imageType', imageType); + localVarPath = "/Users/{userId}/Images/{imageType}" + .replace("{".concat("userId", "}"), encodeURIComponent(String(userId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (index !== undefined) { + localVarQueryParameter['index'] = index; + } + localVarHeaderParameter['Content-Type'] = 'image/_*'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Sets the user image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} index (Unused) Image index. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + postUserImageByIndex: function (userId, imageType, index, body, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'userId' is not null or undefined + (0, common_1.assertParamExists)('postUserImageByIndex', 'userId', userId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('postUserImageByIndex', 'imageType', imageType); + // verify required parameter 'index' is not null or undefined + (0, common_1.assertParamExists)('postUserImageByIndex', 'index', index); + localVarPath = "/Users/{userId}/Images/{imageType}/{index}" + .replace("{".concat("userId", "}"), encodeURIComponent(String(userId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("index", "}"), encodeURIComponent(String(index))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'image/_*'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Set item image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setItemImage: function (itemId, imageType, body, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('setItemImage', 'itemId', itemId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('setItemImage', 'imageType', imageType); + localVarPath = "/Items/{itemId}/Images/{imageType}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'image/_*'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Set item image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex (Unused) Image index. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setItemImageByIndex: function (itemId, imageType, imageIndex, body, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('setItemImageByIndex', 'itemId', itemId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('setItemImageByIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('setItemImageByIndex', 'imageIndex', imageIndex); + localVarPath = "/Items/{itemId}/Images/{imageType}/{imageIndex}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'image/_*'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Updates the index for an item image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Old image index. + * @param {number} newIndex New image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateItemImageIndex: function (itemId, imageType, imageIndex, newIndex, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('updateItemImageIndex', 'itemId', itemId); + // verify required parameter 'imageType' is not null or undefined + (0, common_1.assertParamExists)('updateItemImageIndex', 'imageType', imageType); + // verify required parameter 'imageIndex' is not null or undefined + (0, common_1.assertParamExists)('updateItemImageIndex', 'imageIndex', imageIndex); + // verify required parameter 'newIndex' is not null or undefined + (0, common_1.assertParamExists)('updateItemImageIndex', 'newIndex', newIndex); + localVarPath = "/Items/{itemId}/Images/{imageType}/{imageIndex}/Index" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))) + .replace("{".concat("imageType", "}"), encodeURIComponent(String(imageType))) + .replace("{".concat("imageIndex", "}"), encodeURIComponent(String(imageIndex))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (newIndex !== undefined) { + localVarQueryParameter['newIndex'] = newIndex; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.ImageApiAxiosParamCreator = ImageApiAxiosParamCreator; +/** + * ImageApi - functional programming interface + * @export + */ +var ImageApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.ImageApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Delete an item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} [imageIndex] The image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteItemImage: function (itemId, imageType, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteItemImage(itemId, imageType, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Delete an item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex The image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteItemImageByIndex: function (itemId, imageType, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteItemImageByIndex(itemId, imageType, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Delete the user\'s image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} [index] (Unused) Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserImage: function (userId, imageType, index, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUserImage(userId, imageType, index, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Delete the user\'s image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} index (Unused) Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserImageByIndex: function (userId, imageType, index, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUserImageByIndex(userId, imageType, index, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get artist image by name. + * @param {string} name Artist name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getArtistImage: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImage: function (itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} maxWidth The maximum image width to return. + * @param {number} maxHeight The maximum image height to return. + * @param {string} tag Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} format Determines the output format of the image - original,gif,jpg,png. + * @param {number} percentPlayed Optional. Percent to render for the percent played overlay. + * @param {number} unplayedCount Optional. Unplayed count overlay to render. + * @param {number} imageIndex Image index. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImage2: function (itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImageByIndex: function (itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get item image infos. + * @param {string} itemId Item id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImageInfos: function (itemId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getItemImageInfos(itemId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPersonImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPersonImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStudioImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStudioImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserImage: function (userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserImageByIndex: function (userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get artist image by name. + * @param {string} name Artist name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headArtistImage: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headItemImage: function (itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} maxWidth The maximum image width to return. + * @param {number} maxHeight The maximum image height to return. + * @param {string} tag Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} format Determines the output format of the image - original,gif,jpg,png. + * @param {number} percentPlayed Optional. Percent to render for the percent played overlay. + * @param {number} unplayedCount Optional. Unplayed count overlay to render. + * @param {number} imageIndex Image index. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headItemImage2: function (itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headItemImageByIndex: function (itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMusicGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMusicGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headPersonImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headPersonImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headStudioImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headStudioImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headUserImage: function (userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headUserImageByIndex: function (userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.headUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Sets the user image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} [index] (Unused) Image index. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + postUserImage: function (userId, imageType, index, body, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUserImage(userId, imageType, index, body, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Sets the user image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} index (Unused) Image index. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + postUserImageByIndex: function (userId, imageType, index, body, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUserImageByIndex(userId, imageType, index, body, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Set item image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setItemImage: function (itemId, imageType, body, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.setItemImage(itemId, imageType, body, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Set item image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex (Unused) Image index. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setItemImageByIndex: function (itemId, imageType, imageIndex, body, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.setItemImageByIndex(itemId, imageType, imageIndex, body, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Updates the index for an item image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Old image index. + * @param {number} newIndex New image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateItemImageIndex: function (itemId, imageType, imageIndex, newIndex, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateItemImageIndex(itemId, imageType, imageIndex, newIndex, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.ImageApiFp = ImageApiFp; +/** + * ImageApi - factory interface + * @export + */ +var ImageApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.ImageApiFp)(configuration); + return { + /** + * + * @summary Delete an item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} [imageIndex] The image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteItemImage: function (itemId, imageType, imageIndex, options) { + return localVarFp.deleteItemImage(itemId, imageType, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Delete an item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex The image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteItemImageByIndex: function (itemId, imageType, imageIndex, options) { + return localVarFp.deleteItemImageByIndex(itemId, imageType, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Delete the user\'s image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} [index] (Unused) Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserImage: function (userId, imageType, index, options) { + return localVarFp.deleteUserImage(userId, imageType, index, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Delete the user\'s image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} index (Unused) Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteUserImageByIndex: function (userId, imageType, index, options) { + return localVarFp.deleteUserImageByIndex(userId, imageType, index, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get artist image by name. + * @param {string} name Artist name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getArtistImage: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.getArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.getGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.getGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImage: function (itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.getItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} maxWidth The maximum image width to return. + * @param {number} maxHeight The maximum image height to return. + * @param {string} tag Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} format Determines the output format of the image - original,gif,jpg,png. + * @param {number} percentPlayed Optional. Percent to render for the percent played overlay. + * @param {number} unplayedCount Optional. Unplayed count overlay to render. + * @param {number} imageIndex Image index. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImage2: function (itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.getItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImageByIndex: function (itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.getItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get item image infos. + * @param {string} itemId Item id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemImageInfos: function (itemId, options) { + return localVarFp.getItemImageInfos(itemId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.getMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.getMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPersonImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.getPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPersonImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.getPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStudioImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.getStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getStudioImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.getStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserImage: function (userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.getUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getUserImageByIndex: function (userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.getUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get artist image by name. + * @param {string} name Artist name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headArtistImage: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.headArtistImage(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.headGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get genre image by name. + * @param {string} name Genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.headGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headItemImage: function (itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.headItemImage(itemId, imageType, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} maxWidth The maximum image width to return. + * @param {number} maxHeight The maximum image height to return. + * @param {string} tag Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} format Determines the output format of the image - original,gif,jpg,png. + * @param {number} percentPlayed Optional. Percent to render for the percent played overlay. + * @param {number} unplayedCount Optional. Unplayed count overlay to render. + * @param {number} imageIndex Image index. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headItemImage2: function (itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.headItemImage2(itemId, imageType, maxWidth, maxHeight, tag, format, percentPlayed, unplayedCount, imageIndex, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Gets the item\'s image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {ImageFormat} [format] Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headItemImageByIndex: function (itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.headItemImageByIndex(itemId, imageType, imageIndex, maxWidth, maxHeight, width, height, quality, fillWidth, fillHeight, tag, cropWhitespace, format, addPlayedIndicator, percentPlayed, unplayedCount, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMusicGenreImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.headMusicGenreImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get music genre image by name. + * @param {string} name Music genre name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headMusicGenreImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.headMusicGenreImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headPersonImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.headPersonImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get person image by name. + * @param {string} name Person name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headPersonImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.headPersonImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headStudioImage: function (name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.headStudioImage(name, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get studio image by name. + * @param {string} name Studio name. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headStudioImageByIndex: function (name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.headStudioImageByIndex(name, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {number} [imageIndex] Image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headUserImage: function (userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options) { + return localVarFp.headUserImage(userId, imageType, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, imageIndex, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get user profile image. + * @param {string} userId User id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Image index. + * @param {string} [tag] Optional. Supply the cache tag from the item object to receive strong caching headers. + * @param {ImageFormat} [format] Determines the output format of the image - original,gif,jpg,png. + * @param {number} [maxWidth] The maximum image width to return. + * @param {number} [maxHeight] The maximum image height to return. + * @param {number} [percentPlayed] Optional. Percent to render for the percent played overlay. + * @param {number} [unplayedCount] Optional. Unplayed count overlay to render. + * @param {number} [width] The fixed image width to return. + * @param {number} [height] The fixed image height to return. + * @param {number} [quality] Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. + * @param {number} [fillWidth] Width of box to fill. + * @param {number} [fillHeight] Height of box to fill. + * @param {boolean} [cropWhitespace] Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. + * @param {boolean} [addPlayedIndicator] Optional. Add a played indicator. + * @param {number} [blur] Optional. Blur image. + * @param {string} [backgroundColor] Optional. Apply a background color for transparent images. + * @param {string} [foregroundLayer] Optional. Apply a foreground layer on top of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + headUserImageByIndex: function (userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options) { + return localVarFp.headUserImageByIndex(userId, imageType, imageIndex, tag, format, maxWidth, maxHeight, percentPlayed, unplayedCount, width, height, quality, fillWidth, fillHeight, cropWhitespace, addPlayedIndicator, blur, backgroundColor, foregroundLayer, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Sets the user image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} [index] (Unused) Image index. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + postUserImage: function (userId, imageType, index, body, options) { + return localVarFp.postUserImage(userId, imageType, index, body, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Sets the user image. + * @param {string} userId User Id. + * @param {ImageType} imageType (Unused) Image type. + * @param {number} index (Unused) Image index. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + postUserImageByIndex: function (userId, imageType, index, body, options) { + return localVarFp.postUserImageByIndex(userId, imageType, index, body, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Set item image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setItemImage: function (itemId, imageType, body, options) { + return localVarFp.setItemImage(itemId, imageType, body, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Set item image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex (Unused) Image index. + * @param {any} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + setItemImageByIndex: function (itemId, imageType, imageIndex, body, options) { + return localVarFp.setItemImageByIndex(itemId, imageType, imageIndex, body, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Updates the index for an item image. + * @param {string} itemId Item id. + * @param {ImageType} imageType Image type. + * @param {number} imageIndex Old image index. + * @param {number} newIndex New image index. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateItemImageIndex: function (itemId, imageType, imageIndex, newIndex, options) { + return localVarFp.updateItemImageIndex(itemId, imageType, imageIndex, newIndex, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.ImageApiFactory = ImageApiFactory; +/** + * ImageApi - object-oriented interface + * @export + * @class ImageApi + * @extends {BaseAPI} + */ +var ImageApi = /** @class */ (function (_super) { + __extends(ImageApi, _super); + function ImageApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Delete an item\'s image. + * @param {ImageApiDeleteItemImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.deleteItemImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).deleteItemImage(requestParameters.itemId, requestParameters.imageType, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Delete an item\'s image. + * @param {ImageApiDeleteItemImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.deleteItemImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).deleteItemImageByIndex(requestParameters.itemId, requestParameters.imageType, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Delete the user\'s image. + * @param {ImageApiDeleteUserImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.deleteUserImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).deleteUserImage(requestParameters.userId, requestParameters.imageType, requestParameters.index, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Delete the user\'s image. + * @param {ImageApiDeleteUserImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.deleteUserImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).deleteUserImageByIndex(requestParameters.userId, requestParameters.imageType, requestParameters.index, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get artist image by name. + * @param {ImageApiGetArtistImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getArtistImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getArtistImage(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get genre image by name. + * @param {ImageApiGetGenreImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getGenreImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get genre image by name. + * @param {ImageApiGetGenreImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getGenreImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets the item\'s image. + * @param {ImageApiGetItemImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getItemImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getItemImage(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.cropWhitespace, requestParameters.format, requestParameters.addPlayedIndicator, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets the item\'s image. + * @param {ImageApiGetItemImage2Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getItemImage2 = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getItemImage2(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.tag, requestParameters.format, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.imageIndex, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets the item\'s image. + * @param {ImageApiGetItemImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getItemImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getItemImageByIndex(requestParameters.itemId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.cropWhitespace, requestParameters.format, requestParameters.addPlayedIndicator, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get item image infos. + * @param {ImageApiGetItemImageInfosRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getItemImageInfos = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getItemImageInfos(requestParameters.itemId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get music genre image by name. + * @param {ImageApiGetMusicGenreImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getMusicGenreImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getMusicGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get music genre image by name. + * @param {ImageApiGetMusicGenreImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getMusicGenreImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getMusicGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get person image by name. + * @param {ImageApiGetPersonImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getPersonImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getPersonImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get person image by name. + * @param {ImageApiGetPersonImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getPersonImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getPersonImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get studio image by name. + * @param {ImageApiGetStudioImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getStudioImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getStudioImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get studio image by name. + * @param {ImageApiGetStudioImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getStudioImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getStudioImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get user profile image. + * @param {ImageApiGetUserImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getUserImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getUserImage(requestParameters.userId, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get user profile image. + * @param {ImageApiGetUserImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.getUserImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).getUserImageByIndex(requestParameters.userId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get artist image by name. + * @param {ImageApiHeadArtistImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headArtistImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headArtistImage(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get genre image by name. + * @param {ImageApiHeadGenreImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headGenreImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get genre image by name. + * @param {ImageApiHeadGenreImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headGenreImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets the item\'s image. + * @param {ImageApiHeadItemImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headItemImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headItemImage(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.cropWhitespace, requestParameters.format, requestParameters.addPlayedIndicator, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets the item\'s image. + * @param {ImageApiHeadItemImage2Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headItemImage2 = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headItemImage2(requestParameters.itemId, requestParameters.imageType, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.tag, requestParameters.format, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.imageIndex, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Gets the item\'s image. + * @param {ImageApiHeadItemImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headItemImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headItemImageByIndex(requestParameters.itemId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.tag, requestParameters.cropWhitespace, requestParameters.format, requestParameters.addPlayedIndicator, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get music genre image by name. + * @param {ImageApiHeadMusicGenreImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headMusicGenreImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headMusicGenreImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get music genre image by name. + * @param {ImageApiHeadMusicGenreImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headMusicGenreImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headMusicGenreImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get person image by name. + * @param {ImageApiHeadPersonImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headPersonImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headPersonImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get person image by name. + * @param {ImageApiHeadPersonImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headPersonImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headPersonImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get studio image by name. + * @param {ImageApiHeadStudioImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headStudioImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headStudioImage(requestParameters.name, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get studio image by name. + * @param {ImageApiHeadStudioImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headStudioImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headStudioImageByIndex(requestParameters.name, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get user profile image. + * @param {ImageApiHeadUserImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headUserImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headUserImage(requestParameters.userId, requestParameters.imageType, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, requestParameters.imageIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get user profile image. + * @param {ImageApiHeadUserImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.headUserImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).headUserImageByIndex(requestParameters.userId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.tag, requestParameters.format, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.percentPlayed, requestParameters.unplayedCount, requestParameters.width, requestParameters.height, requestParameters.quality, requestParameters.fillWidth, requestParameters.fillHeight, requestParameters.cropWhitespace, requestParameters.addPlayedIndicator, requestParameters.blur, requestParameters.backgroundColor, requestParameters.foregroundLayer, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Sets the user image. + * @param {ImageApiPostUserImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.postUserImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).postUserImage(requestParameters.userId, requestParameters.imageType, requestParameters.index, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Sets the user image. + * @param {ImageApiPostUserImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.postUserImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).postUserImageByIndex(requestParameters.userId, requestParameters.imageType, requestParameters.index, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Set item image. + * @param {ImageApiSetItemImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.setItemImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).setItemImage(requestParameters.itemId, requestParameters.imageType, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Set item image. + * @param {ImageApiSetItemImageByIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.setItemImageByIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).setItemImageByIndex(requestParameters.itemId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Updates the index for an item image. + * @param {ImageApiUpdateItemImageIndexRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageApi + */ + ImageApi.prototype.updateItemImageIndex = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageApiFp)(this.configuration).updateItemImageIndex(requestParameters.itemId, requestParameters.imageType, requestParameters.imageIndex, requestParameters.newIndex, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return ImageApi; +}(base_1.BaseAPI)); +exports.ImageApi = ImageApi; + +},{"../base":68,"../common":69,"axios":362}],27:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImageByNameApi = exports.ImageByNameApiFactory = exports.ImageByNameApiFp = exports.ImageByNameApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * ImageByNameApi - axios parameter creator + * @export + */ +var ImageByNameApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Get General Image. + * @param {string} name The name of the image. + * @param {string} type Image Type (primary, backdrop, logo, etc). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGeneralImage: function (name, type, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getGeneralImage', 'name', name); + // verify required parameter 'type' is not null or undefined + (0, common_1.assertParamExists)('getGeneralImage', 'type', type); + localVarPath = "/Images/General/{name}/{type}" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))) + .replace("{".concat("type", "}"), encodeURIComponent(String(type))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get all general images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGeneralImages: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Images/General"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get media info image. + * @param {string} theme The theme to get the image from. + * @param {string} name The name of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaInfoImage: function (theme, name, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'theme' is not null or undefined + (0, common_1.assertParamExists)('getMediaInfoImage', 'theme', theme); + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getMediaInfoImage', 'name', name); + localVarPath = "/Images/MediaInfo/{theme}/{name}" + .replace("{".concat("theme", "}"), encodeURIComponent(String(theme))) + .replace("{".concat("name", "}"), encodeURIComponent(String(name))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get all media info images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaInfoImages: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Images/MediaInfo"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get rating image. + * @param {string} theme The theme to get the image from. + * @param {string} name The name of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRatingImage: function (theme, name, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + // verify required parameter 'theme' is not null or undefined + (0, common_1.assertParamExists)('getRatingImage', 'theme', theme); + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getRatingImage', 'name', name); + localVarPath = "/Images/Ratings/{theme}/{name}" + .replace("{".concat("theme", "}"), encodeURIComponent(String(theme))) + .replace("{".concat("name", "}"), encodeURIComponent(String(name))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + }); + }); + }, + /** + * + * @summary Get all general images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRatingImages: function (options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Images/Ratings"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.ImageByNameApiAxiosParamCreator = ImageByNameApiAxiosParamCreator; +/** + * ImageByNameApi - functional programming interface + * @export + */ +var ImageByNameApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.ImageByNameApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Get General Image. + * @param {string} name The name of the image. + * @param {string} type Image Type (primary, backdrop, logo, etc). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGeneralImage: function (name, type, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGeneralImage(name, type, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get all general images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGeneralImages: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGeneralImages(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get media info image. + * @param {string} theme The theme to get the image from. + * @param {string} name The name of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaInfoImage: function (theme, name, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMediaInfoImage(theme, name, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get all media info images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaInfoImages: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMediaInfoImages(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get rating image. + * @param {string} theme The theme to get the image from. + * @param {string} name The name of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRatingImage: function (theme, name, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRatingImage(theme, name, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get all general images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRatingImages: function (options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRatingImages(options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.ImageByNameApiFp = ImageByNameApiFp; +/** + * ImageByNameApi - factory interface + * @export + */ +var ImageByNameApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.ImageByNameApiFp)(configuration); + return { + /** + * + * @summary Get General Image. + * @param {string} name The name of the image. + * @param {string} type Image Type (primary, backdrop, logo, etc). + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGeneralImage: function (name, type, options) { + return localVarFp.getGeneralImage(name, type, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get all general images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGeneralImages: function (options) { + return localVarFp.getGeneralImages(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get media info image. + * @param {string} theme The theme to get the image from. + * @param {string} name The name of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaInfoImage: function (theme, name, options) { + return localVarFp.getMediaInfoImage(theme, name, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get all media info images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMediaInfoImages: function (options) { + return localVarFp.getMediaInfoImages(options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get rating image. + * @param {string} theme The theme to get the image from. + * @param {string} name The name of the image. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRatingImage: function (theme, name, options) { + return localVarFp.getRatingImage(theme, name, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get all general images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getRatingImages: function (options) { + return localVarFp.getRatingImages(options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.ImageByNameApiFactory = ImageByNameApiFactory; +/** + * ImageByNameApi - object-oriented interface + * @export + * @class ImageByNameApi + * @extends {BaseAPI} + */ +var ImageByNameApi = /** @class */ (function (_super) { + __extends(ImageByNameApi, _super); + function ImageByNameApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Get General Image. + * @param {ImageByNameApiGetGeneralImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageByNameApi + */ + ImageByNameApi.prototype.getGeneralImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageByNameApiFp)(this.configuration).getGeneralImage(requestParameters.name, requestParameters.type, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get all general images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageByNameApi + */ + ImageByNameApi.prototype.getGeneralImages = function (options) { + var _this = this; + return (0, exports.ImageByNameApiFp)(this.configuration).getGeneralImages(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get media info image. + * @param {ImageByNameApiGetMediaInfoImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageByNameApi + */ + ImageByNameApi.prototype.getMediaInfoImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageByNameApiFp)(this.configuration).getMediaInfoImage(requestParameters.theme, requestParameters.name, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get all media info images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageByNameApi + */ + ImageByNameApi.prototype.getMediaInfoImages = function (options) { + var _this = this; + return (0, exports.ImageByNameApiFp)(this.configuration).getMediaInfoImages(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get rating image. + * @param {ImageByNameApiGetRatingImageRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageByNameApi + */ + ImageByNameApi.prototype.getRatingImage = function (requestParameters, options) { + var _this = this; + return (0, exports.ImageByNameApiFp)(this.configuration).getRatingImage(requestParameters.theme, requestParameters.name, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get all general images. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ImageByNameApi + */ + ImageByNameApi.prototype.getRatingImages = function (options) { + var _this = this; + return (0, exports.ImageByNameApiFp)(this.configuration).getRatingImages(options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return ImageByNameApi; +}(base_1.BaseAPI)); +exports.ImageByNameApi = ImageByNameApi; + +},{"../base":68,"../common":69,"axios":362}],28:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InstantMixApi = exports.InstantMixApiFactory = exports.InstantMixApiFp = exports.InstantMixApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * InstantMixApi - axios parameter creator + * @export + */ +var InstantMixApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Creates an instant playlist based on a given album. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromAlbum: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getInstantMixFromAlbum', 'id', id); + localVarPath = "/Albums/{id}/InstantMix" + .replace("{".concat("id", "}"), encodeURIComponent(String(id))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given artist. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromArtists: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getInstantMixFromArtists', 'id', id); + localVarPath = "/Artists/{id}/InstantMix" + .replace("{".concat("id", "}"), encodeURIComponent(String(id))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given artist. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + getInstantMixFromArtists2: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getInstantMixFromArtists2', 'id', id); + localVarPath = "/Artists/InstantMix"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given item. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromItem: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getInstantMixFromItem', 'id', id); + localVarPath = "/Items/{id}/InstantMix" + .replace("{".concat("id", "}"), encodeURIComponent(String(id))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromMusicGenreById: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getInstantMixFromMusicGenreById', 'id', id); + localVarPath = "/MusicGenres/{id}/InstantMix" + .replace("{".concat("id", "}"), encodeURIComponent(String(id))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + getInstantMixFromMusicGenreById2: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getInstantMixFromMusicGenreById2', 'id', id); + localVarPath = "/MusicGenres/InstantMix"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {string} name The genre name. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromMusicGenreByName: function (name, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'name' is not null or undefined + (0, common_1.assertParamExists)('getInstantMixFromMusicGenreByName', 'name', name); + localVarPath = "/MusicGenres/{name}/InstantMix" + .replace("{".concat("name", "}"), encodeURIComponent(String(name))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given playlist. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromPlaylist: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getInstantMixFromPlaylist', 'id', id); + localVarPath = "/Playlists/{id}/InstantMix" + .replace("{".concat("id", "}"), encodeURIComponent(String(id))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given song. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromSong: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'id' is not null or undefined + (0, common_1.assertParamExists)('getInstantMixFromSong', 'id', id); + localVarPath = "/Songs/{id}/InstantMix" + .replace("{".concat("id", "}"), encodeURIComponent(String(id))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.InstantMixApiAxiosParamCreator = InstantMixApiAxiosParamCreator; +/** + * InstantMixApi - functional programming interface + * @export + */ +var InstantMixApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.InstantMixApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Creates an instant playlist based on a given album. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromAlbum: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInstantMixFromAlbum(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given artist. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromArtists: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInstantMixFromArtists(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given artist. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + getInstantMixFromArtists2: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInstantMixFromArtists2(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given item. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromItem: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInstantMixFromItem(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromMusicGenreById: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInstantMixFromMusicGenreById(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + getInstantMixFromMusicGenreById2: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInstantMixFromMusicGenreById2(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {string} name The genre name. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromMusicGenreByName: function (name, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInstantMixFromMusicGenreByName(name, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given playlist. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromPlaylist: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInstantMixFromPlaylist(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Creates an instant playlist based on a given song. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromSong: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInstantMixFromSong(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.InstantMixApiFp = InstantMixApiFp; +/** + * InstantMixApi - factory interface + * @export + */ +var InstantMixApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.InstantMixApiFp)(configuration); + return { + /** + * + * @summary Creates an instant playlist based on a given album. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromAlbum: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return localVarFp.getInstantMixFromAlbum(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Creates an instant playlist based on a given artist. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromArtists: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return localVarFp.getInstantMixFromArtists(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Creates an instant playlist based on a given artist. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + getInstantMixFromArtists2: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return localVarFp.getInstantMixFromArtists2(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Creates an instant playlist based on a given item. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromItem: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return localVarFp.getInstantMixFromItem(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromMusicGenreById: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return localVarFp.getInstantMixFromMusicGenreById(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + getInstantMixFromMusicGenreById2: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return localVarFp.getInstantMixFromMusicGenreById2(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {string} name The genre name. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromMusicGenreByName: function (name, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return localVarFp.getInstantMixFromMusicGenreByName(name, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Creates an instant playlist based on a given playlist. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromPlaylist: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return localVarFp.getInstantMixFromPlaylist(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Creates an instant playlist based on a given song. + * @param {string} id The item id. + * @param {string} [userId] Optional. Filter by user id, and attach user data. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. + * @param {boolean} [enableImages] Optional. Include image information in output. + * @param {boolean} [enableUserData] Optional. Include user data. + * @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstantMixFromSong: function (id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options) { + return localVarFp.getInstantMixFromSong(id, userId, limit, fields, enableImages, enableUserData, imageTypeLimit, enableImageTypes, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.InstantMixApiFactory = InstantMixApiFactory; +/** + * InstantMixApi - object-oriented interface + * @export + * @class InstantMixApi + * @extends {BaseAPI} + */ +var InstantMixApi = /** @class */ (function (_super) { + __extends(InstantMixApi, _super); + function InstantMixApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Creates an instant playlist based on a given album. + * @param {InstantMixApiGetInstantMixFromAlbumRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InstantMixApi + */ + InstantMixApi.prototype.getInstantMixFromAlbum = function (requestParameters, options) { + var _this = this; + return (0, exports.InstantMixApiFp)(this.configuration).getInstantMixFromAlbum(requestParameters.id, requestParameters.userId, requestParameters.limit, requestParameters.fields, requestParameters.enableImages, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Creates an instant playlist based on a given artist. + * @param {InstantMixApiGetInstantMixFromArtistsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InstantMixApi + */ + InstantMixApi.prototype.getInstantMixFromArtists = function (requestParameters, options) { + var _this = this; + return (0, exports.InstantMixApiFp)(this.configuration).getInstantMixFromArtists(requestParameters.id, requestParameters.userId, requestParameters.limit, requestParameters.fields, requestParameters.enableImages, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Creates an instant playlist based on a given artist. + * @param {InstantMixApiGetInstantMixFromArtists2Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof InstantMixApi + */ + InstantMixApi.prototype.getInstantMixFromArtists2 = function (requestParameters, options) { + var _this = this; + return (0, exports.InstantMixApiFp)(this.configuration).getInstantMixFromArtists2(requestParameters.id, requestParameters.userId, requestParameters.limit, requestParameters.fields, requestParameters.enableImages, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Creates an instant playlist based on a given item. + * @param {InstantMixApiGetInstantMixFromItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InstantMixApi + */ + InstantMixApi.prototype.getInstantMixFromItem = function (requestParameters, options) { + var _this = this; + return (0, exports.InstantMixApiFp)(this.configuration).getInstantMixFromItem(requestParameters.id, requestParameters.userId, requestParameters.limit, requestParameters.fields, requestParameters.enableImages, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {InstantMixApiGetInstantMixFromMusicGenreByIdRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InstantMixApi + */ + InstantMixApi.prototype.getInstantMixFromMusicGenreById = function (requestParameters, options) { + var _this = this; + return (0, exports.InstantMixApiFp)(this.configuration).getInstantMixFromMusicGenreById(requestParameters.id, requestParameters.userId, requestParameters.limit, requestParameters.fields, requestParameters.enableImages, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {InstantMixApiGetInstantMixFromMusicGenreById2Request} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof InstantMixApi + */ + InstantMixApi.prototype.getInstantMixFromMusicGenreById2 = function (requestParameters, options) { + var _this = this; + return (0, exports.InstantMixApiFp)(this.configuration).getInstantMixFromMusicGenreById2(requestParameters.id, requestParameters.userId, requestParameters.limit, requestParameters.fields, requestParameters.enableImages, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Creates an instant playlist based on a given genre. + * @param {InstantMixApiGetInstantMixFromMusicGenreByNameRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InstantMixApi + */ + InstantMixApi.prototype.getInstantMixFromMusicGenreByName = function (requestParameters, options) { + var _this = this; + return (0, exports.InstantMixApiFp)(this.configuration).getInstantMixFromMusicGenreByName(requestParameters.name, requestParameters.userId, requestParameters.limit, requestParameters.fields, requestParameters.enableImages, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Creates an instant playlist based on a given playlist. + * @param {InstantMixApiGetInstantMixFromPlaylistRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InstantMixApi + */ + InstantMixApi.prototype.getInstantMixFromPlaylist = function (requestParameters, options) { + var _this = this; + return (0, exports.InstantMixApiFp)(this.configuration).getInstantMixFromPlaylist(requestParameters.id, requestParameters.userId, requestParameters.limit, requestParameters.fields, requestParameters.enableImages, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Creates an instant playlist based on a given song. + * @param {InstantMixApiGetInstantMixFromSongRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof InstantMixApi + */ + InstantMixApi.prototype.getInstantMixFromSong = function (requestParameters, options) { + var _this = this; + return (0, exports.InstantMixApiFp)(this.configuration).getInstantMixFromSong(requestParameters.id, requestParameters.userId, requestParameters.limit, requestParameters.fields, requestParameters.enableImages, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return InstantMixApi; +}(base_1.BaseAPI)); +exports.InstantMixApi = InstantMixApi; + +},{"../base":68,"../common":69,"axios":362}],29:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ItemLookupApi = exports.ItemLookupApiFactory = exports.ItemLookupApiFp = exports.ItemLookupApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * ItemLookupApi - axios parameter creator + * @export + */ +var ItemLookupApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Applies search criteria to an item and refreshes metadata. + * @param {string} itemId Item id. + * @param {RemoteSearchResult} remoteSearchResult The remote search result. + * @param {boolean} [replaceAllImages] Optional. Whether or not to replace all images. Default: True. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + applySearchCriteria: function (itemId, remoteSearchResult, replaceAllImages, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('applySearchCriteria', 'itemId', itemId); + // verify required parameter 'remoteSearchResult' is not null or undefined + (0, common_1.assertParamExists)('applySearchCriteria', 'remoteSearchResult', remoteSearchResult); + localVarPath = "/Items/RemoteSearch/Apply/{itemId}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (replaceAllImages !== undefined) { + localVarQueryParameter['replaceAllImages'] = replaceAllImages; + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(remoteSearchResult, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get book remote search. + * @param {BookInfoRemoteSearchQuery} bookInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBookRemoteSearchResults: function (bookInfoRemoteSearchQuery, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'bookInfoRemoteSearchQuery' is not null or undefined + (0, common_1.assertParamExists)('getBookRemoteSearchResults', 'bookInfoRemoteSearchQuery', bookInfoRemoteSearchQuery); + localVarPath = "/Items/RemoteSearch/Book"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bookInfoRemoteSearchQuery, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get box set remote search. + * @param {BoxSetInfoRemoteSearchQuery} boxSetInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBoxSetRemoteSearchResults: function (boxSetInfoRemoteSearchQuery, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'boxSetInfoRemoteSearchQuery' is not null or undefined + (0, common_1.assertParamExists)('getBoxSetRemoteSearchResults', 'boxSetInfoRemoteSearchQuery', boxSetInfoRemoteSearchQuery); + localVarPath = "/Items/RemoteSearch/BoxSet"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(boxSetInfoRemoteSearchQuery, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get the item\'s external id info. + * @param {string} itemId Item id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getExternalIdInfos: function (itemId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getExternalIdInfos', 'itemId', itemId); + localVarPath = "/Items/{itemId}/ExternalIdInfos" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get movie remote search. + * @param {MovieInfoRemoteSearchQuery} movieInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMovieRemoteSearchResults: function (movieInfoRemoteSearchQuery, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'movieInfoRemoteSearchQuery' is not null or undefined + (0, common_1.assertParamExists)('getMovieRemoteSearchResults', 'movieInfoRemoteSearchQuery', movieInfoRemoteSearchQuery); + localVarPath = "/Items/RemoteSearch/Movie"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(movieInfoRemoteSearchQuery, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get music album remote search. + * @param {AlbumInfoRemoteSearchQuery} albumInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicAlbumRemoteSearchResults: function (albumInfoRemoteSearchQuery, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'albumInfoRemoteSearchQuery' is not null or undefined + (0, common_1.assertParamExists)('getMusicAlbumRemoteSearchResults', 'albumInfoRemoteSearchQuery', albumInfoRemoteSearchQuery); + localVarPath = "/Items/RemoteSearch/MusicAlbum"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(albumInfoRemoteSearchQuery, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get music artist remote search. + * @param {ArtistInfoRemoteSearchQuery} artistInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicArtistRemoteSearchResults: function (artistInfoRemoteSearchQuery, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'artistInfoRemoteSearchQuery' is not null or undefined + (0, common_1.assertParamExists)('getMusicArtistRemoteSearchResults', 'artistInfoRemoteSearchQuery', artistInfoRemoteSearchQuery); + localVarPath = "/Items/RemoteSearch/MusicArtist"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(artistInfoRemoteSearchQuery, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get music video remote search. + * @param {MusicVideoInfoRemoteSearchQuery} musicVideoInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicVideoRemoteSearchResults: function (musicVideoInfoRemoteSearchQuery, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'musicVideoInfoRemoteSearchQuery' is not null or undefined + (0, common_1.assertParamExists)('getMusicVideoRemoteSearchResults', 'musicVideoInfoRemoteSearchQuery', musicVideoInfoRemoteSearchQuery); + localVarPath = "/Items/RemoteSearch/MusicVideo"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(musicVideoInfoRemoteSearchQuery, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get person remote search. + * @param {PersonLookupInfoRemoteSearchQuery} personLookupInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPersonRemoteSearchResults: function (personLookupInfoRemoteSearchQuery, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'personLookupInfoRemoteSearchQuery' is not null or undefined + (0, common_1.assertParamExists)('getPersonRemoteSearchResults', 'personLookupInfoRemoteSearchQuery', personLookupInfoRemoteSearchQuery); + localVarPath = "/Items/RemoteSearch/Person"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(personLookupInfoRemoteSearchQuery, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get series remote search. + * @param {SeriesInfoRemoteSearchQuery} seriesInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSeriesRemoteSearchResults: function (seriesInfoRemoteSearchQuery, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'seriesInfoRemoteSearchQuery' is not null or undefined + (0, common_1.assertParamExists)('getSeriesRemoteSearchResults', 'seriesInfoRemoteSearchQuery', seriesInfoRemoteSearchQuery); + localVarPath = "/Items/RemoteSearch/Series"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(seriesInfoRemoteSearchQuery, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Get trailer remote search. + * @param {TrailerInfoRemoteSearchQuery} trailerInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTrailerRemoteSearchResults: function (trailerInfoRemoteSearchQuery, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'trailerInfoRemoteSearchQuery' is not null or undefined + (0, common_1.assertParamExists)('getTrailerRemoteSearchResults', 'trailerInfoRemoteSearchQuery', trailerInfoRemoteSearchQuery); + localVarPath = "/Items/RemoteSearch/Trailer"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(trailerInfoRemoteSearchQuery, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.ItemLookupApiAxiosParamCreator = ItemLookupApiAxiosParamCreator; +/** + * ItemLookupApi - functional programming interface + * @export + */ +var ItemLookupApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.ItemLookupApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Applies search criteria to an item and refreshes metadata. + * @param {string} itemId Item id. + * @param {RemoteSearchResult} remoteSearchResult The remote search result. + * @param {boolean} [replaceAllImages] Optional. Whether or not to replace all images. Default: True. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + applySearchCriteria: function (itemId, remoteSearchResult, replaceAllImages, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.applySearchCriteria(itemId, remoteSearchResult, replaceAllImages, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get book remote search. + * @param {BookInfoRemoteSearchQuery} bookInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBookRemoteSearchResults: function (bookInfoRemoteSearchQuery, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookRemoteSearchResults(bookInfoRemoteSearchQuery, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get box set remote search. + * @param {BoxSetInfoRemoteSearchQuery} boxSetInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBoxSetRemoteSearchResults: function (boxSetInfoRemoteSearchQuery, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBoxSetRemoteSearchResults(boxSetInfoRemoteSearchQuery, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get the item\'s external id info. + * @param {string} itemId Item id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getExternalIdInfos: function (itemId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getExternalIdInfos(itemId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get movie remote search. + * @param {MovieInfoRemoteSearchQuery} movieInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMovieRemoteSearchResults: function (movieInfoRemoteSearchQuery, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMovieRemoteSearchResults(movieInfoRemoteSearchQuery, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get music album remote search. + * @param {AlbumInfoRemoteSearchQuery} albumInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicAlbumRemoteSearchResults: function (albumInfoRemoteSearchQuery, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMusicAlbumRemoteSearchResults(albumInfoRemoteSearchQuery, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get music artist remote search. + * @param {ArtistInfoRemoteSearchQuery} artistInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicArtistRemoteSearchResults: function (artistInfoRemoteSearchQuery, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMusicArtistRemoteSearchResults(artistInfoRemoteSearchQuery, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get music video remote search. + * @param {MusicVideoInfoRemoteSearchQuery} musicVideoInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicVideoRemoteSearchResults: function (musicVideoInfoRemoteSearchQuery, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMusicVideoRemoteSearchResults(musicVideoInfoRemoteSearchQuery, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get person remote search. + * @param {PersonLookupInfoRemoteSearchQuery} personLookupInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPersonRemoteSearchResults: function (personLookupInfoRemoteSearchQuery, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPersonRemoteSearchResults(personLookupInfoRemoteSearchQuery, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get series remote search. + * @param {SeriesInfoRemoteSearchQuery} seriesInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSeriesRemoteSearchResults: function (seriesInfoRemoteSearchQuery, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSeriesRemoteSearchResults(seriesInfoRemoteSearchQuery, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Get trailer remote search. + * @param {TrailerInfoRemoteSearchQuery} trailerInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTrailerRemoteSearchResults: function (trailerInfoRemoteSearchQuery, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTrailerRemoteSearchResults(trailerInfoRemoteSearchQuery, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.ItemLookupApiFp = ItemLookupApiFp; +/** + * ItemLookupApi - factory interface + * @export + */ +var ItemLookupApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.ItemLookupApiFp)(configuration); + return { + /** + * + * @summary Applies search criteria to an item and refreshes metadata. + * @param {string} itemId Item id. + * @param {RemoteSearchResult} remoteSearchResult The remote search result. + * @param {boolean} [replaceAllImages] Optional. Whether or not to replace all images. Default: True. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + applySearchCriteria: function (itemId, remoteSearchResult, replaceAllImages, options) { + return localVarFp.applySearchCriteria(itemId, remoteSearchResult, replaceAllImages, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get book remote search. + * @param {BookInfoRemoteSearchQuery} bookInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBookRemoteSearchResults: function (bookInfoRemoteSearchQuery, options) { + return localVarFp.getBookRemoteSearchResults(bookInfoRemoteSearchQuery, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get box set remote search. + * @param {BoxSetInfoRemoteSearchQuery} boxSetInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBoxSetRemoteSearchResults: function (boxSetInfoRemoteSearchQuery, options) { + return localVarFp.getBoxSetRemoteSearchResults(boxSetInfoRemoteSearchQuery, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get the item\'s external id info. + * @param {string} itemId Item id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getExternalIdInfos: function (itemId, options) { + return localVarFp.getExternalIdInfos(itemId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get movie remote search. + * @param {MovieInfoRemoteSearchQuery} movieInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMovieRemoteSearchResults: function (movieInfoRemoteSearchQuery, options) { + return localVarFp.getMovieRemoteSearchResults(movieInfoRemoteSearchQuery, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get music album remote search. + * @param {AlbumInfoRemoteSearchQuery} albumInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicAlbumRemoteSearchResults: function (albumInfoRemoteSearchQuery, options) { + return localVarFp.getMusicAlbumRemoteSearchResults(albumInfoRemoteSearchQuery, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get music artist remote search. + * @param {ArtistInfoRemoteSearchQuery} artistInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicArtistRemoteSearchResults: function (artistInfoRemoteSearchQuery, options) { + return localVarFp.getMusicArtistRemoteSearchResults(artistInfoRemoteSearchQuery, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get music video remote search. + * @param {MusicVideoInfoRemoteSearchQuery} musicVideoInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMusicVideoRemoteSearchResults: function (musicVideoInfoRemoteSearchQuery, options) { + return localVarFp.getMusicVideoRemoteSearchResults(musicVideoInfoRemoteSearchQuery, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get person remote search. + * @param {PersonLookupInfoRemoteSearchQuery} personLookupInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPersonRemoteSearchResults: function (personLookupInfoRemoteSearchQuery, options) { + return localVarFp.getPersonRemoteSearchResults(personLookupInfoRemoteSearchQuery, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get series remote search. + * @param {SeriesInfoRemoteSearchQuery} seriesInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getSeriesRemoteSearchResults: function (seriesInfoRemoteSearchQuery, options) { + return localVarFp.getSeriesRemoteSearchResults(seriesInfoRemoteSearchQuery, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Get trailer remote search. + * @param {TrailerInfoRemoteSearchQuery} trailerInfoRemoteSearchQuery Remote search query. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getTrailerRemoteSearchResults: function (trailerInfoRemoteSearchQuery, options) { + return localVarFp.getTrailerRemoteSearchResults(trailerInfoRemoteSearchQuery, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.ItemLookupApiFactory = ItemLookupApiFactory; +/** + * ItemLookupApi - object-oriented interface + * @export + * @class ItemLookupApi + * @extends {BaseAPI} + */ +var ItemLookupApi = /** @class */ (function (_super) { + __extends(ItemLookupApi, _super); + function ItemLookupApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Applies search criteria to an item and refreshes metadata. + * @param {ItemLookupApiApplySearchCriteriaRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemLookupApi + */ + ItemLookupApi.prototype.applySearchCriteria = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemLookupApiFp)(this.configuration).applySearchCriteria(requestParameters.itemId, requestParameters.remoteSearchResult, requestParameters.replaceAllImages, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get book remote search. + * @param {ItemLookupApiGetBookRemoteSearchResultsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemLookupApi + */ + ItemLookupApi.prototype.getBookRemoteSearchResults = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemLookupApiFp)(this.configuration).getBookRemoteSearchResults(requestParameters.bookInfoRemoteSearchQuery, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get box set remote search. + * @param {ItemLookupApiGetBoxSetRemoteSearchResultsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemLookupApi + */ + ItemLookupApi.prototype.getBoxSetRemoteSearchResults = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemLookupApiFp)(this.configuration).getBoxSetRemoteSearchResults(requestParameters.boxSetInfoRemoteSearchQuery, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get the item\'s external id info. + * @param {ItemLookupApiGetExternalIdInfosRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemLookupApi + */ + ItemLookupApi.prototype.getExternalIdInfos = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemLookupApiFp)(this.configuration).getExternalIdInfos(requestParameters.itemId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get movie remote search. + * @param {ItemLookupApiGetMovieRemoteSearchResultsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemLookupApi + */ + ItemLookupApi.prototype.getMovieRemoteSearchResults = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemLookupApiFp)(this.configuration).getMovieRemoteSearchResults(requestParameters.movieInfoRemoteSearchQuery, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get music album remote search. + * @param {ItemLookupApiGetMusicAlbumRemoteSearchResultsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemLookupApi + */ + ItemLookupApi.prototype.getMusicAlbumRemoteSearchResults = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemLookupApiFp)(this.configuration).getMusicAlbumRemoteSearchResults(requestParameters.albumInfoRemoteSearchQuery, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get music artist remote search. + * @param {ItemLookupApiGetMusicArtistRemoteSearchResultsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemLookupApi + */ + ItemLookupApi.prototype.getMusicArtistRemoteSearchResults = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemLookupApiFp)(this.configuration).getMusicArtistRemoteSearchResults(requestParameters.artistInfoRemoteSearchQuery, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get music video remote search. + * @param {ItemLookupApiGetMusicVideoRemoteSearchResultsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemLookupApi + */ + ItemLookupApi.prototype.getMusicVideoRemoteSearchResults = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemLookupApiFp)(this.configuration).getMusicVideoRemoteSearchResults(requestParameters.musicVideoInfoRemoteSearchQuery, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get person remote search. + * @param {ItemLookupApiGetPersonRemoteSearchResultsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemLookupApi + */ + ItemLookupApi.prototype.getPersonRemoteSearchResults = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemLookupApiFp)(this.configuration).getPersonRemoteSearchResults(requestParameters.personLookupInfoRemoteSearchQuery, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get series remote search. + * @param {ItemLookupApiGetSeriesRemoteSearchResultsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemLookupApi + */ + ItemLookupApi.prototype.getSeriesRemoteSearchResults = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemLookupApiFp)(this.configuration).getSeriesRemoteSearchResults(requestParameters.seriesInfoRemoteSearchQuery, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Get trailer remote search. + * @param {ItemLookupApiGetTrailerRemoteSearchResultsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemLookupApi + */ + ItemLookupApi.prototype.getTrailerRemoteSearchResults = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemLookupApiFp)(this.configuration).getTrailerRemoteSearchResults(requestParameters.trailerInfoRemoteSearchQuery, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return ItemLookupApi; +}(base_1.BaseAPI)); +exports.ItemLookupApi = ItemLookupApi; + +},{"../base":68,"../common":69,"axios":362}],30:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ItemRefreshApi = exports.ItemRefreshApiFactory = exports.ItemRefreshApiFp = exports.ItemRefreshApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * ItemRefreshApi - axios parameter creator + * @export + */ +var ItemRefreshApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Refreshes metadata for an item. + * @param {string} itemId Item id. + * @param {MetadataRefreshMode} [metadataRefreshMode] (Optional) Specifies the metadata refresh mode. + * @param {MetadataRefreshMode} [imageRefreshMode] (Optional) Specifies the image refresh mode. + * @param {boolean} [replaceAllMetadata] (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh. + * @param {boolean} [replaceAllImages] (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + post: function (itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('post', 'itemId', itemId); + localVarPath = "/Items/{itemId}/Refresh" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (metadataRefreshMode !== undefined) { + localVarQueryParameter['metadataRefreshMode'] = metadataRefreshMode; + } + if (imageRefreshMode !== undefined) { + localVarQueryParameter['imageRefreshMode'] = imageRefreshMode; + } + if (replaceAllMetadata !== undefined) { + localVarQueryParameter['replaceAllMetadata'] = replaceAllMetadata; + } + if (replaceAllImages !== undefined) { + localVarQueryParameter['replaceAllImages'] = replaceAllImages; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.ItemRefreshApiAxiosParamCreator = ItemRefreshApiAxiosParamCreator; +/** + * ItemRefreshApi - functional programming interface + * @export + */ +var ItemRefreshApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.ItemRefreshApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Refreshes metadata for an item. + * @param {string} itemId Item id. + * @param {MetadataRefreshMode} [metadataRefreshMode] (Optional) Specifies the metadata refresh mode. + * @param {MetadataRefreshMode} [imageRefreshMode] (Optional) Specifies the image refresh mode. + * @param {boolean} [replaceAllMetadata] (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh. + * @param {boolean} [replaceAllImages] (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + post: function (itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.post(itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.ItemRefreshApiFp = ItemRefreshApiFp; +/** + * ItemRefreshApi - factory interface + * @export + */ +var ItemRefreshApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.ItemRefreshApiFp)(configuration); + return { + /** + * + * @summary Refreshes metadata for an item. + * @param {string} itemId Item id. + * @param {MetadataRefreshMode} [metadataRefreshMode] (Optional) Specifies the metadata refresh mode. + * @param {MetadataRefreshMode} [imageRefreshMode] (Optional) Specifies the image refresh mode. + * @param {boolean} [replaceAllMetadata] (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh. + * @param {boolean} [replaceAllImages] (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + post: function (itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, options) { + return localVarFp.post(itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.ItemRefreshApiFactory = ItemRefreshApiFactory; +/** + * ItemRefreshApi - object-oriented interface + * @export + * @class ItemRefreshApi + * @extends {BaseAPI} + */ +var ItemRefreshApi = /** @class */ (function (_super) { + __extends(ItemRefreshApi, _super); + function ItemRefreshApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Refreshes metadata for an item. + * @param {ItemRefreshApiPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemRefreshApi + */ + ItemRefreshApi.prototype.post = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemRefreshApiFp)(this.configuration).post(requestParameters.itemId, requestParameters.metadataRefreshMode, requestParameters.imageRefreshMode, requestParameters.replaceAllMetadata, requestParameters.replaceAllImages, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return ItemRefreshApi; +}(base_1.BaseAPI)); +exports.ItemRefreshApi = ItemRefreshApi; + +},{"../base":68,"../common":69,"axios":362}],31:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ItemUpdateApi = exports.ItemUpdateApiFactory = exports.ItemUpdateApiFp = exports.ItemUpdateApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * ItemUpdateApi - axios parameter creator + * @export + */ +var ItemUpdateApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets metadata editor info for an item. + * @param {string} itemId The item id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMetadataEditorInfo: function (itemId, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('getMetadataEditorInfo', 'itemId', itemId); + localVarPath = "/Items/{itemId}/MetadataEditor" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Updates an item. + * @param {string} itemId The item id. + * @param {BaseItemDto} baseItemDto The new item properties. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateItem: function (itemId, baseItemDto, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('updateItem', 'itemId', itemId); + // verify required parameter 'baseItemDto' is not null or undefined + (0, common_1.assertParamExists)('updateItem', 'baseItemDto', baseItemDto); + localVarPath = "/Items/{itemId}" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + localVarHeaderParameter['Content-Type'] = 'application/json'; + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(baseItemDto, localVarRequestOptions, configuration); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Updates an item\'s content type. + * @param {string} itemId The item id. + * @param {string} [contentType] The content type of the item. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateItemContentType: function (itemId, contentType, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + // verify required parameter 'itemId' is not null or undefined + (0, common_1.assertParamExists)('updateItemContentType', 'itemId', itemId); + localVarPath = "/Items/{itemId}/ContentType" + .replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId))); + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (contentType !== undefined) { + localVarQueryParameter['contentType'] = contentType; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + }; +}; +exports.ItemUpdateApiAxiosParamCreator = ItemUpdateApiAxiosParamCreator; +/** + * ItemUpdateApi - functional programming interface + * @export + */ +var ItemUpdateApiFp = function (configuration) { + var localVarAxiosParamCreator = (0, exports.ItemUpdateApiAxiosParamCreator)(configuration); + return { + /** + * + * @summary Gets metadata editor info for an item. + * @param {string} itemId The item id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMetadataEditorInfo: function (itemId, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.getMetadataEditorInfo(itemId, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Updates an item. + * @param {string} itemId The item id. + * @param {BaseItemDto} baseItemDto The new item properties. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateItem: function (itemId, baseItemDto, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateItem(itemId, baseItemDto, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + /** + * + * @summary Updates an item\'s content type. + * @param {string} itemId The item id. + * @param {string} [contentType] The content type of the item. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateItemContentType: function (itemId, contentType, options) { + return __awaiter(this, void 0, void 0, function () { + var localVarAxiosArgs; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateItemContentType(itemId, contentType, options)]; + case 1: + localVarAxiosArgs = _a.sent(); + return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)]; + } + }); + }); + }, + }; +}; +exports.ItemUpdateApiFp = ItemUpdateApiFp; +/** + * ItemUpdateApi - factory interface + * @export + */ +var ItemUpdateApiFactory = function (configuration, basePath, axios) { + var localVarFp = (0, exports.ItemUpdateApiFp)(configuration); + return { + /** + * + * @summary Gets metadata editor info for an item. + * @param {string} itemId The item id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getMetadataEditorInfo: function (itemId, options) { + return localVarFp.getMetadataEditorInfo(itemId, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Updates an item. + * @param {string} itemId The item id. + * @param {BaseItemDto} baseItemDto The new item properties. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateItem: function (itemId, baseItemDto, options) { + return localVarFp.updateItem(itemId, baseItemDto, options).then(function (request) { return request(axios, basePath); }); + }, + /** + * + * @summary Updates an item\'s content type. + * @param {string} itemId The item id. + * @param {string} [contentType] The content type of the item. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateItemContentType: function (itemId, contentType, options) { + return localVarFp.updateItemContentType(itemId, contentType, options).then(function (request) { return request(axios, basePath); }); + }, + }; +}; +exports.ItemUpdateApiFactory = ItemUpdateApiFactory; +/** + * ItemUpdateApi - object-oriented interface + * @export + * @class ItemUpdateApi + * @extends {BaseAPI} + */ +var ItemUpdateApi = /** @class */ (function (_super) { + __extends(ItemUpdateApi, _super); + function ItemUpdateApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Gets metadata editor info for an item. + * @param {ItemUpdateApiGetMetadataEditorInfoRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemUpdateApi + */ + ItemUpdateApi.prototype.getMetadataEditorInfo = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemUpdateApiFp)(this.configuration).getMetadataEditorInfo(requestParameters.itemId, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Updates an item. + * @param {ItemUpdateApiUpdateItemRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemUpdateApi + */ + ItemUpdateApi.prototype.updateItem = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemUpdateApiFp)(this.configuration).updateItem(requestParameters.itemId, requestParameters.baseItemDto, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + /** + * + * @summary Updates an item\'s content type. + * @param {ItemUpdateApiUpdateItemContentTypeRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemUpdateApi + */ + ItemUpdateApi.prototype.updateItemContentType = function (requestParameters, options) { + var _this = this; + return (0, exports.ItemUpdateApiFp)(this.configuration).updateItemContentType(requestParameters.itemId, requestParameters.contentType, options).then(function (request) { return request(_this.axios, _this.basePath); }); + }; + return ItemUpdateApi; +}(base_1.BaseAPI)); +exports.ItemUpdateApi = ItemUpdateApi; + +},{"../base":68,"../common":69,"axios":362}],32:[function(require,module,exports){ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Jellyfin API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 10.7.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ItemsApi = exports.ItemsApiFactory = exports.ItemsApiFp = exports.ItemsApiAxiosParamCreator = void 0; +var axios_1 = __importDefault(require("axios")); +// Some imports not used depending on template conditions +// @ts-ignore +var common_1 = require("../common"); +// @ts-ignore +var base_1 = require("../base"); +/** + * ItemsApi - axios parameter creator + * @export + */ +var ItemsApiAxiosParamCreator = function (configuration) { + var _this = this; + return { + /** + * + * @summary Gets items based on a query. + * @param {string} [userId] The user id supplied as query parameter. + * @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc). + * @param {boolean} [hasThemeSong] Optional filter by items with theme songs. + * @param {boolean} [hasThemeVideo] Optional filter by items with theme videos. + * @param {boolean} [hasSubtitles] Optional filter by items with subtitles. + * @param {boolean} [hasSpecialFeature] Optional filter by items with special features. + * @param {boolean} [hasTrailer] Optional filter by items with trailers. + * @param {string} [adjacentTo] Optional. Return items that are siblings of a supplied item. + * @param {number} [parentIndexNumber] Optional filter by parent index number. + * @param {boolean} [hasParentalRating] Optional filter by items that have or do not have a parental rating. + * @param {boolean} [isHd] Optional filter by items that are HD or not. + * @param {boolean} [is4K] Optional filter by items that are 4K or not. + * @param {Array} [locationTypes] Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited. + * @param {Array} [excludeLocationTypes] Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited. + * @param {boolean} [isMissing] Optional filter by items that are missing episodes or not. + * @param {boolean} [isUnaired] Optional filter by items that are unaired episodes or not. + * @param {number} [minCommunityRating] Optional filter by minimum community rating. + * @param {number} [minCriticRating] Optional filter by minimum critic rating. + * @param {string} [minPremiereDate] Optional. The minimum premiere date. Format = ISO. + * @param {string} [minDateLastSaved] Optional. The minimum last saved date. Format = ISO. + * @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO. + * @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO. + * @param {boolean} [hasOverview] Optional filter by items that have an overview or not. + * @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not. + * @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not. + * @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not. + * @param {Array} [excludeItemIds] Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false. + * @param {string} [searchTerm] Optional. Filter based on a search term. + * @param {Array} [sortOrder] Sort Order - Ascending,Descending. + * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. + * @param {Array} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited. + * @param {Array} [includeItemTypes] Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited. + * @param {Array} [filters] Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes. + * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. + * @param {Array} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited. + * @param {Array} [imageTypes] Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited. + * @param {Array} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @param {boolean} [isPlayed] Optional filter by items that are played, or not. + * @param {Array} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited. + * @param {Array} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited. + * @param {Array} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited. + * @param {Array} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited. + * @param {boolean} [enableUserData] Optional, include user data. + * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. + * @param {Array} [enableImageTypes] Optional. The image types to include in the output. + * @param {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person. + * @param {Array} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person id. + * @param {Array} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited. + * @param {Array} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited. + * @param {Array} [artists] Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited. + * @param {Array} [excludeArtistIds] Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited. + * @param {Array} [artistIds] Optional. If specified, results will be filtered to include only those containing the specified artist id. + * @param {Array} [albumArtistIds] Optional. If specified, results will be filtered to include only those containing the specified album artist id. + * @param {Array} [contributingArtistIds] Optional. If specified, results will be filtered to include only those containing the specified contributing artist id. + * @param {Array} [albums] Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited. + * @param {Array} [albumIds] Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited. + * @param {Array} [ids] Optional. If specific items are needed, specify a list of item id\'s to retrieve. This allows multiple, comma delimited. + * @param {Array} [videoTypes] Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited. + * @param {string} [minOfficialRating] Optional filter by minimum official rating (PG, PG-13, TV-MA, etc). + * @param {boolean} [isLocked] Optional filter by items that are locked. + * @param {boolean} [isPlaceHolder] Optional filter by items that are placeholders. + * @param {boolean} [hasOfficialRating] Optional filter by items that have official ratings. + * @param {boolean} [collapseBoxSetItems] Whether or not to hide items behind their boxsets. + * @param {number} [minWidth] Optional. Filter by the minimum width of the item. + * @param {number} [minHeight] Optional. Filter by the minimum height of the item. + * @param {number} [maxWidth] Optional. Filter by the maximum width of the item. + * @param {number} [maxHeight] Optional. Filter by the maximum height of the item. + * @param {boolean} [is3D] Optional filter by items that are 3D, or not. + * @param {Array} [seriesStatus] Optional filter by Series Status. Allows multiple, comma delimited. + * @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string. + * @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string. + * @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string. + * @param {Array} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited. + * @param {Array} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited. + * @param {boolean} [enableTotalRecordCount] Optional. Enable the total record count. + * @param {boolean} [enableImages] Optional, include image information in output. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItems: function (userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options) { + if (options === void 0) { options = {}; } + return __awaiter(_this, void 0, void 0, function () { + var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + localVarPath = "/Items"; + localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); + if (configuration) { + baseOptions = configuration.baseOptions; + } + localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); + localVarHeaderParameter = {}; + localVarQueryParameter = {}; + // authentication CustomAuthentication required + return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Emby-Authorization", configuration)]; + case 1: + // authentication CustomAuthentication required + _a.sent(); + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + if (maxOfficialRating !== undefined) { + localVarQueryParameter['maxOfficialRating'] = maxOfficialRating; + } + if (hasThemeSong !== undefined) { + localVarQueryParameter['hasThemeSong'] = hasThemeSong; + } + if (hasThemeVideo !== undefined) { + localVarQueryParameter['hasThemeVideo'] = hasThemeVideo; + } + if (hasSubtitles !== undefined) { + localVarQueryParameter['hasSubtitles'] = hasSubtitles; + } + if (hasSpecialFeature !== undefined) { + localVarQueryParameter['hasSpecialFeature'] = hasSpecialFeature; + } + if (hasTrailer !== undefined) { + localVarQueryParameter['hasTrailer'] = hasTrailer; + } + if (adjacentTo !== undefined) { + localVarQueryParameter['adjacentTo'] = adjacentTo; + } + if (parentIndexNumber !== undefined) { + localVarQueryParameter['parentIndexNumber'] = parentIndexNumber; + } + if (hasParentalRating !== undefined) { + localVarQueryParameter['hasParentalRating'] = hasParentalRating; + } + if (isHd !== undefined) { + localVarQueryParameter['isHd'] = isHd; + } + if (is4K !== undefined) { + localVarQueryParameter['is4K'] = is4K; + } + if (locationTypes) { + localVarQueryParameter['locationTypes'] = locationTypes; + } + if (excludeLocationTypes) { + localVarQueryParameter['excludeLocationTypes'] = excludeLocationTypes; + } + if (isMissing !== undefined) { + localVarQueryParameter['isMissing'] = isMissing; + } + if (isUnaired !== undefined) { + localVarQueryParameter['isUnaired'] = isUnaired; + } + if (minCommunityRating !== undefined) { + localVarQueryParameter['minCommunityRating'] = minCommunityRating; + } + if (minCriticRating !== undefined) { + localVarQueryParameter['minCriticRating'] = minCriticRating; + } + if (minPremiereDate !== undefined) { + localVarQueryParameter['minPremiereDate'] = (minPremiereDate instanceof Date) ? + minPremiereDate.toISOString() : + minPremiereDate; + } + if (minDateLastSaved !== undefined) { + localVarQueryParameter['minDateLastSaved'] = (minDateLastSaved instanceof Date) ? + minDateLastSaved.toISOString() : + minDateLastSaved; + } + if (minDateLastSavedForUser !== undefined) { + localVarQueryParameter['minDateLastSavedForUser'] = (minDateLastSavedForUser instanceof Date) ? + minDateLastSavedForUser.toISOString() : + minDateLastSavedForUser; + } + if (maxPremiereDate !== undefined) { + localVarQueryParameter['maxPremiereDate'] = (maxPremiereDate instanceof Date) ? + maxPremiereDate.toISOString() : + maxPremiereDate; + } + if (hasOverview !== undefined) { + localVarQueryParameter['hasOverview'] = hasOverview; + } + if (hasImdbId !== undefined) { + localVarQueryParameter['hasImdbId'] = hasImdbId; + } + if (hasTmdbId !== undefined) { + localVarQueryParameter['hasTmdbId'] = hasTmdbId; + } + if (hasTvdbId !== undefined) { + localVarQueryParameter['hasTvdbId'] = hasTvdbId; + } + if (excludeItemIds) { + localVarQueryParameter['excludeItemIds'] = excludeItemIds; + } + if (startIndex !== undefined) { + localVarQueryParameter['startIndex'] = startIndex; + } + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (recursive !== undefined) { + localVarQueryParameter['recursive'] = recursive; + } + if (searchTerm !== undefined) { + localVarQueryParameter['searchTerm'] = searchTerm; + } + if (sortOrder) { + localVarQueryParameter['sortOrder'] = sortOrder; + } + if (parentId !== undefined) { + localVarQueryParameter['parentId'] = parentId; + } + if (fields) { + localVarQueryParameter['fields'] = fields; + } + if (excludeItemTypes) { + localVarQueryParameter['excludeItemTypes'] = excludeItemTypes; + } + if (includeItemTypes) { + localVarQueryParameter['includeItemTypes'] = includeItemTypes; + } + if (filters) { + localVarQueryParameter['filters'] = filters; + } + if (isFavorite !== undefined) { + localVarQueryParameter['isFavorite'] = isFavorite; + } + if (mediaTypes) { + localVarQueryParameter['mediaTypes'] = mediaTypes; + } + if (imageTypes) { + localVarQueryParameter['imageTypes'] = imageTypes; + } + if (sortBy) { + localVarQueryParameter['sortBy'] = sortBy; + } + if (isPlayed !== undefined) { + localVarQueryParameter['isPlayed'] = isPlayed; + } + if (genres) { + localVarQueryParameter['genres'] = genres; + } + if (officialRatings) { + localVarQueryParameter['officialRatings'] = officialRatings; + } + if (tags) { + localVarQueryParameter['tags'] = tags; + } + if (years) { + localVarQueryParameter['years'] = years; + } + if (enableUserData !== undefined) { + localVarQueryParameter['enableUserData'] = enableUserData; + } + if (imageTypeLimit !== undefined) { + localVarQueryParameter['imageTypeLimit'] = imageTypeLimit; + } + if (enableImageTypes) { + localVarQueryParameter['enableImageTypes'] = enableImageTypes; + } + if (person !== undefined) { + localVarQueryParameter['person'] = person; + } + if (personIds) { + localVarQueryParameter['personIds'] = personIds; + } + if (personTypes) { + localVarQueryParameter['personTypes'] = personTypes; + } + if (studios) { + localVarQueryParameter['studios'] = studios; + } + if (artists) { + localVarQueryParameter['artists'] = artists; + } + if (excludeArtistIds) { + localVarQueryParameter['excludeArtistIds'] = excludeArtistIds; + } + if (artistIds) { + localVarQueryParameter['artistIds'] = artistIds; + } + if (albumArtistIds) { + localVarQueryParameter['albumArtistIds'] = albumArtistIds; + } + if (contributingArtistIds) { + localVarQueryParameter['contributingArtistIds'] = contributingArtistIds; + } + if (albums) { + localVarQueryParameter['albums'] = albums; + } + if (albumIds) { + localVarQueryParameter['albumIds'] = albumIds; + } + if (ids) { + localVarQueryParameter['ids'] = ids; + } + if (videoTypes) { + localVarQueryParameter['videoTypes'] = videoTypes; + } + if (minOfficialRating !== undefined) { + localVarQueryParameter['minOfficialRating'] = minOfficialRating; + } + if (isLocked !== undefined) { + localVarQueryParameter['isLocked'] = isLocked; + } + if (isPlaceHolder !== undefined) { + localVarQueryParameter['isPlaceHolder'] = isPlaceHolder; + } + if (hasOfficialRating !== undefined) { + localVarQueryParameter['hasOfficialRating'] = hasOfficialRating; + } + if (collapseBoxSetItems !== undefined) { + localVarQueryParameter['collapseBoxSetItems'] = collapseBoxSetItems; + } + if (minWidth !== undefined) { + localVarQueryParameter['minWidth'] = minWidth; + } + if (minHeight !== undefined) { + localVarQueryParameter['minHeight'] = minHeight; + } + if (maxWidth !== undefined) { + localVarQueryParameter['maxWidth'] = maxWidth; + } + if (maxHeight !== undefined) { + localVarQueryParameter['maxHeight'] = maxHeight; + } + if (is3D !== undefined) { + localVarQueryParameter['is3D'] = is3D; + } + if (seriesStatus) { + localVarQueryParameter['seriesStatus'] = seriesStatus; + } + if (nameStartsWithOrGreater !== undefined) { + localVarQueryParameter['nameStartsWithOrGreater'] = nameStartsWithOrGreater; + } + if (nameStartsWith !== undefined) { + localVarQueryParameter['nameStartsWith'] = nameStartsWith; + } + if (nameLessThan !== undefined) { + localVarQueryParameter['nameLessThan'] = nameLessThan; + } + if (studioIds) { + localVarQueryParameter['studioIds'] = studioIds; + } + if (genreIds) { + localVarQueryParameter['genreIds'] = genreIds; + } + if (enableTotalRecordCount !== undefined) { + localVarQueryParameter['enableTotalRecordCount'] = enableTotalRecordCount; + } + if (enableImages !== undefined) { + localVarQueryParameter['enableImages'] = enableImages; + } + (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); + headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); + return [2 /*return*/, { + url: (0, common_1.toPathString)(localVarUrlObj), + options: localVarRequestOptions, + }]; + } + }); + }); + }, + /** + * + * @summary Gets items based on a query. + * @param {string} userId The user id supplied as query parameter. + * @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc). + * @param {boolean} [hasThemeSong] Optional filter by items with theme songs. + * @param {boolean} [hasThemeVideo] Optional filter by items with theme videos. + * @param {boolean} [hasSubtitles] Optional filter by items with subtitles. + * @param {boolean} [hasSpecialFeature] Optional filter by items with special features. + * @param {boolean} [hasTrailer] Optional filter by items with trailers. + * @param {string} [adjacentTo] Optional. Return items that are siblings of a supplied item. + * @param {number} [parentIndexNumber] Optional filter by parent index number. + * @param {boolean} [hasParentalRating] Optional filter by items that have or do not have a parental rating. + * @param {boolean} [isHd] Optional filter by items that are HD or not. + * @param {boolean} [is4K] Optional filter by items that are 4K or not. + * @param {Array} [locationTypes] Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimeted. + * @param {Array} [excludeLocationTypes] Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimeted. + * @param {boolean} [isMissing] Optional filter by items that are missing episodes or not. + * @param {boolean} [isUnaired] Optional filter by items that are unaired episodes or not. + * @param {number} [minCommunityRating] Optional filter by minimum community rating. + * @param {number} [minCriticRating] Optional filter by minimum critic rating. + * @param {string} [minPremiereDate] Optional. The minimum premiere date. Format = ISO. + * @param {string} [minDateLastSaved] Optional. The minimum last saved date. Format = ISO. + * @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO. + * @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO. + * @param {boolean} [hasOverview] Optional filter by items that have an overview or not. + * @param {boolean} [hasImdbId] Optional filter by items that have an imdb id or not. + * @param {boolean} [hasTmdbId] Optional filter by items that have a tmdb id or not. + * @param {boolean} [hasTvdbId] Optional filter by items that have a tvdb id or not. + * @param {Array} [excludeItemIds] Optional. If specified, results will be filtered by exxcluding item ids. This allows multiple, comma delimeted. + * @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results. + * @param {number} [limit] Optional. The maximum number of records to return. + * @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false. + * @param {string} [searchTerm] Optional. Filter based on a search term. + * @param {Array} [sortOrder] Sort Order - Ascending,Descending. + * @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root. + * @param {Array} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimeted. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. + * @param {Array