@jellyfin/sdk 0.0.0-unstable.202212091849
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +5 -0
- package/LICENSE +373 -0
- package/README.md +153 -0
- package/lib/api.d.ts +42 -0
- package/lib/api.js +70 -0
- package/lib/discovery/discovery-service.d.ts +41 -0
- package/lib/discovery/discovery-service.js +76 -0
- package/lib/discovery/index.d.ts +7 -0
- package/lib/discovery/index.js +7 -0
- package/lib/discovery/recommended-server-discovery.d.ts +23 -0
- package/lib/discovery/recommended-server-discovery.js +110 -0
- package/lib/generated-client/api/activity-log-api.d.ts +113 -0
- package/lib/generated-client/api/activity-log-api.js +146 -0
- package/lib/generated-client/api/api-key-api.d.ts +161 -0
- package/lib/generated-client/api/api-key-api.js +251 -0
- package/lib/generated-client/api/artists-api.d.ts +751 -0
- package/lib/generated-client/api/artists-api.js +634 -0
- package/lib/generated-client/api/audio-api.d.ts +1985 -0
- package/lib/generated-client/api/audio-api.js +1465 -0
- package/lib/generated-client/api/branding-api.d.ts +127 -0
- package/lib/generated-client/api/branding-api.js +229 -0
- package/lib/generated-client/api/channels-api.d.ts +419 -0
- package/lib/generated-client/api/channels-api.js +487 -0
- package/lib/generated-client/api/client-log-api.d.ts +86 -0
- package/lib/generated-client/api/client-log-api.js +125 -0
- package/lib/generated-client/api/collection-api.d.ts +223 -0
- package/lib/generated-client/api/collection-api.js +290 -0
- package/lib/generated-client/api/configuration-api.d.ts +293 -0
- package/lib/generated-client/api/configuration-api.js +446 -0
- package/lib/generated-client/api/dashboard-api.d.ts +132 -0
- package/lib/generated-client/api/dashboard-api.js +189 -0
- package/lib/generated-client/api/devices-api.d.ts +291 -0
- package/lib/generated-client/api/devices-api.js +407 -0
- package/lib/generated-client/api/display-preferences-api.d.ts +177 -0
- package/lib/generated-client/api/display-preferences-api.js +230 -0
- package/lib/generated-client/api/dlna-api.d.ts +292 -0
- package/lib/generated-client/api/dlna-api.js +441 -0
- package/lib/generated-client/api/dlna-server-api.d.ts +784 -0
- package/lib/generated-client/api/dlna-server-api.js +1107 -0
- package/lib/generated-client/api/dynamic-hls-api.d.ts +4604 -0
- package/lib/generated-client/api/dynamic-hls-api.js +3380 -0
- package/lib/generated-client/api/environment-api.d.ts +289 -0
- package/lib/generated-client/api/environment-api.js +451 -0
- package/lib/generated-client/api/filter-api.d.ts +242 -0
- package/lib/generated-client/api/filter-api.js +263 -0
- package/lib/generated-client/api/genres-api.d.ts +299 -0
- package/lib/generated-client/api/genres-api.js +299 -0
- package/lib/generated-client/api/hls-segment-api.d.ts +332 -0
- package/lib/generated-client/api/hls-segment-api.js +426 -0
- package/lib/generated-client/api/image-api.d.ts +6744 -0
- package/lib/generated-client/api/image-api.js +5880 -0
- package/lib/generated-client/api/image-by-name-api.d.ts +292 -0
- package/lib/generated-client/api/image-by-name-api.js +442 -0
- package/lib/generated-client/api/instant-mix-api.d.ts +918 -0
- package/lib/generated-client/api/instant-mix-api.js +925 -0
- package/lib/generated-client/api/item-lookup-api.d.ts +574 -0
- package/lib/generated-client/api/item-lookup-api.js +798 -0
- package/lib/generated-client/api/item-refresh-api.d.ts +122 -0
- package/lib/generated-client/api/item-refresh-api.js +150 -0
- package/lib/generated-client/api/item-update-api.d.ts +197 -0
- package/lib/generated-client/api/item-update-api.js +269 -0
- package/lib/generated-client/api/items-api.d.ts +1824 -0
- package/lib/generated-client/api/items-api.js +1364 -0
- package/lib/generated-client/api/library-api.d.ts +1482 -0
- package/lib/generated-client/api/library-api.js +1887 -0
- package/lib/generated-client/api/library-structure-api.d.ts +486 -0
- package/lib/generated-client/api/library-structure-api.js +634 -0
- package/lib/generated-client/api/live-tv-api.d.ts +2844 -0
- package/lib/generated-client/api/live-tv-api.js +3349 -0
- package/lib/generated-client/api/localization-api.d.ts +159 -0
- package/lib/generated-client/api/localization-api.js +293 -0
- package/lib/generated-client/api/media-info-api.d.ts +516 -0
- package/lib/generated-client/api/media-info-api.js +550 -0
- package/lib/generated-client/api/movies-api.d.ts +123 -0
- package/lib/generated-client/api/movies-api.js +150 -0
- package/lib/generated-client/api/music-genres-api.d.ts +303 -0
- package/lib/generated-client/api/music-genres-api.js +303 -0
- package/lib/generated-client/api/notifications-api.d.ts +332 -0
- package/lib/generated-client/api/notifications-api.js +503 -0
- package/lib/generated-client/api/package-api.d.ts +319 -0
- package/lib/generated-client/api/package-api.js +462 -0
- package/lib/generated-client/api/persons-api.d.ts +253 -0
- package/lib/generated-client/api/persons-api.js +269 -0
- package/lib/generated-client/api/playlists-api.d.ts +427 -0
- package/lib/generated-client/api/playlists-api.js +489 -0
- package/lib/generated-client/api/playstate-api.d.ts +720 -0
- package/lib/generated-client/api/playstate-api.js +821 -0
- package/lib/generated-client/api/plugins-api.d.ts +477 -0
- package/lib/generated-client/api/plugins-api.js +667 -0
- package/lib/generated-client/api/quick-connect-api.d.ts +199 -0
- package/lib/generated-client/api/quick-connect-api.js +311 -0
- package/lib/generated-client/api/remote-image-api.d.ts +243 -0
- package/lib/generated-client/api/remote-image-api.js +300 -0
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +289 -0
- package/lib/generated-client/api/scheduled-tasks-api.js +399 -0
- package/lib/generated-client/api/search-api.d.ts +240 -0
- package/lib/generated-client/api/search-api.js +230 -0
- package/lib/generated-client/api/session-api.d.ts +985 -0
- package/lib/generated-client/api/session-api.js +1263 -0
- package/lib/generated-client/api/startup-api.d.ts +296 -0
- package/lib/generated-client/api/startup-api.js +489 -0
- package/lib/generated-client/api/studios-api.d.ts +289 -0
- package/lib/generated-client/api/studios-api.js +293 -0
- package/lib/generated-client/api/subtitle-api.d.ts +764 -0
- package/lib/generated-client/api/subtitle-api.js +889 -0
- package/lib/generated-client/api/suggestions-api.d.ts +132 -0
- package/lib/generated-client/api/suggestions-api.js +156 -0
- package/lib/generated-client/api/sync-play-api.d.ts +937 -0
- package/lib/generated-client/api/sync-play-api.js +1407 -0
- package/lib/generated-client/api/system-api.d.ts +355 -0
- package/lib/generated-client/api/system-api.js +648 -0
- package/lib/generated-client/api/time-sync-api.d.ts +69 -0
- package/lib/generated-client/api/time-sync-api.js +117 -0
- package/lib/generated-client/api/tmdb-api.d.ts +69 -0
- package/lib/generated-client/api/tmdb-api.js +119 -0
- package/lib/generated-client/api/trailers-api.d.ts +841 -0
- package/lib/generated-client/api/trailers-api.js +632 -0
- package/lib/generated-client/api/tv-shows-api.d.ts +622 -0
- package/lib/generated-client/api/tv-shows-api.js +587 -0
- package/lib/generated-client/api/universal-audio-api.d.ts +437 -0
- package/lib/generated-client/api/universal-audio-api.js +395 -0
- package/lib/generated-client/api/user-api.d.ts +826 -0
- package/lib/generated-client/api/user-api.js +1135 -0
- package/lib/generated-client/api/user-library-api.d.ts +732 -0
- package/lib/generated-client/api/user-library-api.js +896 -0
- package/lib/generated-client/api/user-views-api.d.ts +160 -0
- package/lib/generated-client/api/user-views-api.js +209 -0
- package/lib/generated-client/api/video-attachments-api.d.ts +103 -0
- package/lib/generated-client/api/video-attachments-api.js +136 -0
- package/lib/generated-client/api/videos-api.d.ts +2205 -0
- package/lib/generated-client/api/videos-api.js +1716 -0
- package/lib/generated-client/api/years-api.d.ts +272 -0
- package/lib/generated-client/api/years-api.js +281 -0
- package/lib/generated-client/api.d.ts +71 -0
- package/lib/generated-client/api.js +73 -0
- package/lib/generated-client/base.d.ts +54 -0
- package/lib/generated-client/base.js +55 -0
- package/lib/generated-client/common.d.ts +64 -0
- package/lib/generated-client/common.js +139 -0
- package/lib/generated-client/configuration.d.ts +82 -0
- package/lib/generated-client/configuration.js +37 -0
- package/lib/generated-client/index.d.ts +13 -0
- package/lib/generated-client/index.js +15 -0
- package/lib/generated-client/models/access-schedule.d.ts +48 -0
- package/lib/generated-client/models/access-schedule.js +13 -0
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +36 -0
- package/lib/generated-client/models/activity-log-entry-query-result.js +13 -0
- package/lib/generated-client/models/activity-log-entry.d.ts +79 -0
- package/lib/generated-client/models/activity-log-entry.js +13 -0
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +24 -0
- package/lib/generated-client/models/add-virtual-folder-dto.js +13 -0
- package/lib/generated-client/models/admin-notification-dto.d.ts +42 -0
- package/lib/generated-client/models/admin-notification-dto.js +13 -0
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/album-info-remote-search-query.js +13 -0
- package/lib/generated-client/models/album-info.d.ts +106 -0
- package/lib/generated-client/models/album-info.js +13 -0
- package/lib/generated-client/models/all-theme-media-result.d.ts +36 -0
- package/lib/generated-client/models/all-theme-media-result.js +13 -0
- package/lib/generated-client/models/architecture.d.ts +27 -0
- package/lib/generated-client/models/architecture.js +28 -0
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/artist-info-remote-search-query.js +13 -0
- package/lib/generated-client/models/artist-info.d.ts +92 -0
- package/lib/generated-client/models/artist-info.js +13 -0
- package/lib/generated-client/models/authenticate-user-by-name.d.ts +36 -0
- package/lib/generated-client/models/authenticate-user-by-name.js +13 -0
- package/lib/generated-client/models/authentication-info-query-result.d.ts +36 -0
- package/lib/generated-client/models/authentication-info-query-result.js +13 -0
- package/lib/generated-client/models/authentication-info.d.ts +89 -0
- package/lib/generated-client/models/authentication-info.js +13 -0
- package/lib/generated-client/models/authentication-result.d.ts +43 -0
- package/lib/generated-client/models/authentication-result.js +13 -0
- package/lib/generated-client/models/base-item-dto-image-blur-hashes.d.ts +121 -0
- package/lib/generated-client/models/base-item-dto-image-blur-hashes.js +13 -0
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/base-item-dto-query-result.js +13 -0
- package/lib/generated-client/models/base-item-dto.d.ts +953 -0
- package/lib/generated-client/models/base-item-dto.js +13 -0
- package/lib/generated-client/models/base-item-kind.d.ts +55 -0
- package/lib/generated-client/models/base-item-kind.js +56 -0
- package/lib/generated-client/models/base-item-person-image-blur-hashes.d.ts +121 -0
- package/lib/generated-client/models/base-item-person-image-blur-hashes.js +13 -0
- package/lib/generated-client/models/base-item-person.d.ts +54 -0
- package/lib/generated-client/models/base-item-person.js +13 -0
- package/lib/generated-client/models/base-item.d.ts +84 -0
- package/lib/generated-client/models/base-item.js +13 -0
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/book-info-remote-search-query.js +13 -0
- package/lib/generated-client/models/book-info.d.ts +91 -0
- package/lib/generated-client/models/book-info.js +13 -0
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/box-set-info-remote-search-query.js +13 -0
- package/lib/generated-client/models/box-set-info.d.ts +85 -0
- package/lib/generated-client/models/box-set-info.js +13 -0
- package/lib/generated-client/models/branding-options.d.ts +35 -0
- package/lib/generated-client/models/branding-options.js +13 -0
- package/lib/generated-client/models/buffer-request-dto.d.ts +41 -0
- package/lib/generated-client/models/buffer-request-dto.js +13 -0
- package/lib/generated-client/models/channel-features.d.ts +92 -0
- package/lib/generated-client/models/channel-features.js +13 -0
- package/lib/generated-client/models/channel-item-sort-field.d.ts +25 -0
- package/lib/generated-client/models/channel-item-sort-field.js +26 -0
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +44 -0
- package/lib/generated-client/models/channel-mapping-options-dto.js +13 -0
- package/lib/generated-client/models/channel-media-content-type.d.ts +26 -0
- package/lib/generated-client/models/channel-media-content-type.js +27 -0
- package/lib/generated-client/models/channel-media-type.d.ts +21 -0
- package/lib/generated-client/models/channel-media-type.js +22 -0
- package/lib/generated-client/models/channel-type.d.ts +20 -0
- package/lib/generated-client/models/channel-type.js +21 -0
- package/lib/generated-client/models/chapter-info.d.ts +47 -0
- package/lib/generated-client/models/chapter-info.js +13 -0
- package/lib/generated-client/models/client-capabilities-dto.d.ts +79 -0
- package/lib/generated-client/models/client-capabilities-dto.js +13 -0
- package/lib/generated-client/models/client-capabilities.d.ts +79 -0
- package/lib/generated-client/models/client-capabilities.js +13 -0
- package/lib/generated-client/models/client-log-document-response-dto.d.ts +23 -0
- package/lib/generated-client/models/client-log-document-response-dto.js +13 -0
- package/lib/generated-client/models/codec-profile.d.ts +49 -0
- package/lib/generated-client/models/codec-profile.js +13 -0
- package/lib/generated-client/models/codec-type.d.ts +21 -0
- package/lib/generated-client/models/codec-type.js +22 -0
- package/lib/generated-client/models/collection-creation-result.d.ts +23 -0
- package/lib/generated-client/models/collection-creation-result.js +13 -0
- package/lib/generated-client/models/collection-type-options.d.ts +26 -0
- package/lib/generated-client/models/collection-type-options.js +27 -0
- package/lib/generated-client/models/config-image-types.d.ts +59 -0
- package/lib/generated-client/models/config-image-types.js +13 -0
- package/lib/generated-client/models/configuration-page-info.d.ts +53 -0
- package/lib/generated-client/models/configuration-page-info.js +13 -0
- package/lib/generated-client/models/container-profile.d.ts +37 -0
- package/lib/generated-client/models/container-profile.js +13 -0
- package/lib/generated-client/models/control-response.d.ts +37 -0
- package/lib/generated-client/models/control-response.js +13 -0
- package/lib/generated-client/models/country-info.d.ts +41 -0
- package/lib/generated-client/models/country-info.js +13 -0
- package/lib/generated-client/models/create-playlist-dto.d.ts +41 -0
- package/lib/generated-client/models/create-playlist-dto.js +13 -0
- package/lib/generated-client/models/create-user-by-name.d.ts +29 -0
- package/lib/generated-client/models/create-user-by-name.js +13 -0
- package/lib/generated-client/models/culture-dto.d.ts +47 -0
- package/lib/generated-client/models/culture-dto.js +13 -0
- package/lib/generated-client/models/day-of-week.d.ts +25 -0
- package/lib/generated-client/models/day-of-week.js +26 -0
- package/lib/generated-client/models/day-pattern.d.ts +21 -0
- package/lib/generated-client/models/day-pattern.js +22 -0
- package/lib/generated-client/models/default-directory-browser-info-dto.d.ts +23 -0
- package/lib/generated-client/models/default-directory-browser-info-dto.js +13 -0
- package/lib/generated-client/models/device-identification.d.ts +72 -0
- package/lib/generated-client/models/device-identification.js +13 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-query-result.js +13 -0
- package/lib/generated-client/models/device-info.d.ts +78 -0
- package/lib/generated-client/models/device-info.js +13 -0
- package/lib/generated-client/models/device-options-dto.d.ts +35 -0
- package/lib/generated-client/models/device-options-dto.js +13 -0
- package/lib/generated-client/models/device-options.d.ts +35 -0
- package/lib/generated-client/models/device-options.js +13 -0
- package/lib/generated-client/models/device-profile-info.d.ts +36 -0
- package/lib/generated-client/models/device-profile-info.js +13 -0
- package/lib/generated-client/models/device-profile-type.d.ts +20 -0
- package/lib/generated-client/models/device-profile-type.js +21 -0
- package/lib/generated-client/models/device-profile.d.ts +259 -0
- package/lib/generated-client/models/device-profile.js +13 -0
- package/lib/generated-client/models/direct-play-profile.d.ts +42 -0
- package/lib/generated-client/models/direct-play-profile.js +13 -0
- package/lib/generated-client/models/display-preferences-dto.d.ts +105 -0
- package/lib/generated-client/models/display-preferences-dto.js +13 -0
- package/lib/generated-client/models/dlna-options.d.ts +83 -0
- package/lib/generated-client/models/dlna-options.js +13 -0
- package/lib/generated-client/models/dlna-profile-type.d.ts +22 -0
- package/lib/generated-client/models/dlna-profile-type.js +23 -0
- package/lib/generated-client/models/dynamic-day-of-week.d.ts +28 -0
- package/lib/generated-client/models/dynamic-day-of-week.js +29 -0
- package/lib/generated-client/models/embedded-subtitle-options.d.ts +22 -0
- package/lib/generated-client/models/embedded-subtitle-options.js +23 -0
- package/lib/generated-client/models/encoding-context.d.ts +20 -0
- package/lib/generated-client/models/encoding-context.js +21 -0
- package/lib/generated-client/models/encoding-options.d.ts +245 -0
- package/lib/generated-client/models/encoding-options.js +13 -0
- package/lib/generated-client/models/end-point-info.d.ts +29 -0
- package/lib/generated-client/models/end-point-info.js +13 -0
- package/lib/generated-client/models/external-id-info.d.ts +42 -0
- package/lib/generated-client/models/external-id-info.js +13 -0
- package/lib/generated-client/models/external-id-media-type.d.ts +30 -0
- package/lib/generated-client/models/external-id-media-type.js +31 -0
- package/lib/generated-client/models/external-url.d.ts +29 -0
- package/lib/generated-client/models/external-url.js +13 -0
- package/lib/generated-client/models/ffmpeg-location.d.ts +22 -0
- package/lib/generated-client/models/ffmpeg-location.js +23 -0
- package/lib/generated-client/models/file-system-entry-info.d.ts +36 -0
- package/lib/generated-client/models/file-system-entry-info.js +13 -0
- package/lib/generated-client/models/file-system-entry-type.d.ts +22 -0
- package/lib/generated-client/models/file-system-entry-type.js +23 -0
- package/lib/generated-client/models/font-file.d.ts +41 -0
- package/lib/generated-client/models/font-file.js +13 -0
- package/lib/generated-client/models/forgot-password-action.d.ts +21 -0
- package/lib/generated-client/models/forgot-password-action.js +22 -0
- package/lib/generated-client/models/forgot-password-dto.d.ts +23 -0
- package/lib/generated-client/models/forgot-password-dto.js +13 -0
- package/lib/generated-client/models/forgot-password-pin-dto.d.ts +23 -0
- package/lib/generated-client/models/forgot-password-pin-dto.js +13 -0
- package/lib/generated-client/models/forgot-password-result.d.ts +36 -0
- package/lib/generated-client/models/forgot-password-result.js +13 -0
- package/lib/generated-client/models/general-command-type.d.ts +60 -0
- package/lib/generated-client/models/general-command-type.js +61 -0
- package/lib/generated-client/models/general-command.d.ts +38 -0
- package/lib/generated-client/models/general-command.js +13 -0
- package/lib/generated-client/models/get-programs-dto.d.ts +182 -0
- package/lib/generated-client/models/get-programs-dto.js +13 -0
- package/lib/generated-client/models/group-info-dto.d.ts +48 -0
- package/lib/generated-client/models/group-info-dto.js +13 -0
- package/lib/generated-client/models/group-queue-mode.d.ts +20 -0
- package/lib/generated-client/models/group-queue-mode.js +21 -0
- package/lib/generated-client/models/group-repeat-mode.d.ts +21 -0
- package/lib/generated-client/models/group-repeat-mode.js +22 -0
- package/lib/generated-client/models/group-shuffle-mode.d.ts +20 -0
- package/lib/generated-client/models/group-shuffle-mode.js +21 -0
- package/lib/generated-client/models/group-state-type.d.ts +22 -0
- package/lib/generated-client/models/group-state-type.js +23 -0
- package/lib/generated-client/models/group-update-type.d.ts +29 -0
- package/lib/generated-client/models/group-update-type.js +30 -0
- package/lib/generated-client/models/guide-info.d.ts +29 -0
- package/lib/generated-client/models/guide-info.js +13 -0
- package/lib/generated-client/models/hardware-encoding-type.d.ts +24 -0
- package/lib/generated-client/models/hardware-encoding-type.js +25 -0
- package/lib/generated-client/models/header-match-type.d.ts +21 -0
- package/lib/generated-client/models/header-match-type.js +22 -0
- package/lib/generated-client/models/http-header-info.d.ts +36 -0
- package/lib/generated-client/models/http-header-info.js +13 -0
- package/lib/generated-client/models/ignore-wait-request-dto.d.ts +23 -0
- package/lib/generated-client/models/ignore-wait-request-dto.js +13 -0
- package/lib/generated-client/models/image-by-name-info.d.ts +47 -0
- package/lib/generated-client/models/image-by-name-info.js +13 -0
- package/lib/generated-client/models/image-format.d.ts +23 -0
- package/lib/generated-client/models/image-format.js +24 -0
- package/lib/generated-client/models/image-info.d.ts +66 -0
- package/lib/generated-client/models/image-info.js +13 -0
- package/lib/generated-client/models/image-option.d.ts +36 -0
- package/lib/generated-client/models/image-option.js +13 -0
- package/lib/generated-client/models/image-orientation.d.ts +26 -0
- package/lib/generated-client/models/image-orientation.js +27 -0
- package/lib/generated-client/models/image-provider-info.d.ts +30 -0
- package/lib/generated-client/models/image-provider-info.js +13 -0
- package/lib/generated-client/models/image-resolution.d.ts +27 -0
- package/lib/generated-client/models/image-resolution.js +28 -0
- package/lib/generated-client/models/image-saving-convention.d.ts +20 -0
- package/lib/generated-client/models/image-saving-convention.js +21 -0
- package/lib/generated-client/models/image-type.d.ts +31 -0
- package/lib/generated-client/models/image-type.js +32 -0
- package/lib/generated-client/models/index.d.ts +289 -0
- package/lib/generated-client/models/index.js +289 -0
- package/lib/generated-client/models/installation-info.d.ts +60 -0
- package/lib/generated-client/models/installation-info.js +13 -0
- package/lib/generated-client/models/iplugin.d.ts +59 -0
- package/lib/generated-client/models/iplugin.js +13 -0
- package/lib/generated-client/models/iso-type.d.ts +20 -0
- package/lib/generated-client/models/iso-type.js +21 -0
- package/lib/generated-client/models/item-counts.d.ts +89 -0
- package/lib/generated-client/models/item-counts.js +13 -0
- package/lib/generated-client/models/item-fields.d.ts +79 -0
- package/lib/generated-client/models/item-fields.js +80 -0
- package/lib/generated-client/models/item-filter.d.ts +27 -0
- package/lib/generated-client/models/item-filter.js +28 -0
- package/lib/generated-client/models/join-group-request-dto.d.ts +23 -0
- package/lib/generated-client/models/join-group-request-dto.js +13 -0
- package/lib/generated-client/models/keep-until.d.ts +22 -0
- package/lib/generated-client/models/keep-until.js +23 -0
- package/lib/generated-client/models/library-option-info-dto.d.ts +29 -0
- package/lib/generated-client/models/library-option-info-dto.js +13 -0
- package/lib/generated-client/models/library-options-result-dto.d.ts +43 -0
- package/lib/generated-client/models/library-options-result-dto.js +13 -0
- package/lib/generated-client/models/library-options.d.ts +183 -0
- package/lib/generated-client/models/library-options.js +13 -0
- package/lib/generated-client/models/library-type-options-dto.d.ts +50 -0
- package/lib/generated-client/models/library-type-options-dto.js +13 -0
- package/lib/generated-client/models/library-update-info.d.ts +59 -0
- package/lib/generated-client/models/library-update-info.js +13 -0
- package/lib/generated-client/models/listings-provider-info.d.ts +126 -0
- package/lib/generated-client/models/listings-provider-info.js +13 -0
- package/lib/generated-client/models/live-stream-response.d.ts +24 -0
- package/lib/generated-client/models/live-stream-response.js +13 -0
- package/lib/generated-client/models/live-tv-info.d.ts +36 -0
- package/lib/generated-client/models/live-tv-info.js +13 -0
- package/lib/generated-client/models/live-tv-options.d.ts +97 -0
- package/lib/generated-client/models/live-tv-options.js +13 -0
- package/lib/generated-client/models/live-tv-service-info.d.ts +66 -0
- package/lib/generated-client/models/live-tv-service-info.js +13 -0
- package/lib/generated-client/models/live-tv-service-status.d.ts +20 -0
- package/lib/generated-client/models/live-tv-service-status.js +21 -0
- package/lib/generated-client/models/localization-option.d.ts +29 -0
- package/lib/generated-client/models/localization-option.js +13 -0
- package/lib/generated-client/models/location-type.d.ts +22 -0
- package/lib/generated-client/models/location-type.js +23 -0
- package/lib/generated-client/models/log-file.d.ts +41 -0
- package/lib/generated-client/models/log-file.js +13 -0
- package/lib/generated-client/models/log-level.d.ts +25 -0
- package/lib/generated-client/models/log-level.js +26 -0
- package/lib/generated-client/models/lyric-line.d.ts +29 -0
- package/lib/generated-client/models/lyric-line.js +13 -0
- package/lib/generated-client/models/lyric-metadata.d.ts +71 -0
- package/lib/generated-client/models/lyric-metadata.js +13 -0
- package/lib/generated-client/models/lyric-response.d.ts +31 -0
- package/lib/generated-client/models/lyric-response.js +13 -0
- package/lib/generated-client/models/media-attachment.d.ts +59 -0
- package/lib/generated-client/models/media-attachment.js +13 -0
- package/lib/generated-client/models/media-encoder-path-dto.d.ts +29 -0
- package/lib/generated-client/models/media-encoder-path-dto.js +13 -0
- package/lib/generated-client/models/media-path-dto.d.ts +36 -0
- package/lib/generated-client/models/media-path-dto.js +13 -0
- package/lib/generated-client/models/media-path-info.d.ts +29 -0
- package/lib/generated-client/models/media-path-info.js +13 -0
- package/lib/generated-client/models/media-protocol.d.ts +25 -0
- package/lib/generated-client/models/media-protocol.js +26 -0
- package/lib/generated-client/models/media-source-info.d.ts +279 -0
- package/lib/generated-client/models/media-source-info.js +13 -0
- package/lib/generated-client/models/media-source-type.d.ts +21 -0
- package/lib/generated-client/models/media-source-type.js +22 -0
- package/lib/generated-client/models/media-stream-type.d.ts +23 -0
- package/lib/generated-client/models/media-stream-type.js +24 -0
- package/lib/generated-client/models/media-stream.d.ts +379 -0
- package/lib/generated-client/models/media-stream.js +13 -0
- package/lib/generated-client/models/media-update-info-dto.d.ts +24 -0
- package/lib/generated-client/models/media-update-info-dto.js +13 -0
- package/lib/generated-client/models/media-update-info-path-dto.d.ts +29 -0
- package/lib/generated-client/models/media-update-info-path-dto.js +13 -0
- package/lib/generated-client/models/media-url.d.ts +29 -0
- package/lib/generated-client/models/media-url.js +13 -0
- package/lib/generated-client/models/message-command.d.ts +35 -0
- package/lib/generated-client/models/message-command.js +13 -0
- package/lib/generated-client/models/metadata-configuration.d.ts +23 -0
- package/lib/generated-client/models/metadata-configuration.js +13 -0
- package/lib/generated-client/models/metadata-editor-info.d.ts +58 -0
- package/lib/generated-client/models/metadata-editor-info.js +13 -0
- package/lib/generated-client/models/metadata-field.d.ts +27 -0
- package/lib/generated-client/models/metadata-field.js +28 -0
- package/lib/generated-client/models/metadata-options.d.ts +59 -0
- package/lib/generated-client/models/metadata-options.js +13 -0
- package/lib/generated-client/models/metadata-refresh-mode.d.ts +22 -0
- package/lib/generated-client/models/metadata-refresh-mode.js +23 -0
- package/lib/generated-client/models/move-playlist-item-request-dto.d.ts +29 -0
- package/lib/generated-client/models/move-playlist-item-request-dto.js +13 -0
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/movie-info-remote-search-query.js +13 -0
- package/lib/generated-client/models/movie-info.d.ts +85 -0
- package/lib/generated-client/models/movie-info.js +13 -0
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/music-video-info-remote-search-query.js +13 -0
- package/lib/generated-client/models/music-video-info.d.ts +91 -0
- package/lib/generated-client/models/music-video-info.js +13 -0
- package/lib/generated-client/models/name-guid-pair.d.ts +29 -0
- package/lib/generated-client/models/name-guid-pair.js +13 -0
- package/lib/generated-client/models/name-id-pair.d.ts +29 -0
- package/lib/generated-client/models/name-id-pair.js +13 -0
- package/lib/generated-client/models/name-value-pair.d.ts +29 -0
- package/lib/generated-client/models/name-value-pair.js +13 -0
- package/lib/generated-client/models/network-configuration.d.ts +221 -0
- package/lib/generated-client/models/network-configuration.js +13 -0
- package/lib/generated-client/models/new-group-request-dto.d.ts +23 -0
- package/lib/generated-client/models/new-group-request-dto.js +13 -0
- package/lib/generated-client/models/next-item-request-dto.d.ts +23 -0
- package/lib/generated-client/models/next-item-request-dto.js +13 -0
- package/lib/generated-client/models/notification-dto.d.ts +66 -0
- package/lib/generated-client/models/notification-dto.js +13 -0
- package/lib/generated-client/models/notification-level.d.ts +21 -0
- package/lib/generated-client/models/notification-level.js +22 -0
- package/lib/generated-client/models/notification-option.d.ts +54 -0
- package/lib/generated-client/models/notification-option.js +13 -0
- package/lib/generated-client/models/notification-options.d.ts +24 -0
- package/lib/generated-client/models/notification-options.js +13 -0
- package/lib/generated-client/models/notification-result-dto.d.ts +30 -0
- package/lib/generated-client/models/notification-result-dto.js +13 -0
- package/lib/generated-client/models/notification-type-info.d.ts +47 -0
- package/lib/generated-client/models/notification-type-info.js +13 -0
- package/lib/generated-client/models/notifications-summary-dto.d.ts +30 -0
- package/lib/generated-client/models/notifications-summary-dto.js +13 -0
- package/lib/generated-client/models/object-group-update.d.ts +36 -0
- package/lib/generated-client/models/object-group-update.js +13 -0
- package/lib/generated-client/models/open-live-stream-dto.d.ts +97 -0
- package/lib/generated-client/models/open-live-stream-dto.js +13 -0
- package/lib/generated-client/models/package-info.d.ts +66 -0
- package/lib/generated-client/models/package-info.js +13 -0
- package/lib/generated-client/models/parental-rating.d.ts +29 -0
- package/lib/generated-client/models/parental-rating.js +13 -0
- package/lib/generated-client/models/path-substitution.d.ts +29 -0
- package/lib/generated-client/models/path-substitution.js +13 -0
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/person-lookup-info-remote-search-query.js +13 -0
- package/lib/generated-client/models/person-lookup-info.d.ts +85 -0
- package/lib/generated-client/models/person-lookup-info.js +13 -0
- package/lib/generated-client/models/pin-redeem-result.d.ts +29 -0
- package/lib/generated-client/models/pin-redeem-result.js +13 -0
- package/lib/generated-client/models/ping-request-dto.d.ts +23 -0
- package/lib/generated-client/models/ping-request-dto.js +13 -0
- package/lib/generated-client/models/play-access.d.ts +20 -0
- package/lib/generated-client/models/play-access.js +21 -0
- package/lib/generated-client/models/play-command.d.ts +23 -0
- package/lib/generated-client/models/play-command.js +24 -0
- package/lib/generated-client/models/play-method.d.ts +21 -0
- package/lib/generated-client/models/play-method.js +22 -0
- package/lib/generated-client/models/play-request-dto.d.ts +35 -0
- package/lib/generated-client/models/play-request-dto.js +13 -0
- package/lib/generated-client/models/play-request.d.ts +66 -0
- package/lib/generated-client/models/play-request.js +13 -0
- package/lib/generated-client/models/playback-error-code.d.ts +21 -0
- package/lib/generated-client/models/playback-error-code.js +22 -0
- package/lib/generated-client/models/playback-info-dto.d.ts +108 -0
- package/lib/generated-client/models/playback-info-dto.js +13 -0
- package/lib/generated-client/models/playback-info-response.d.ts +37 -0
- package/lib/generated-client/models/playback-info-response.js +13 -0
- package/lib/generated-client/models/playback-progress-info.d.ts +141 -0
- package/lib/generated-client/models/playback-progress-info.js +13 -0
- package/lib/generated-client/models/playback-start-info.d.ts +141 -0
- package/lib/generated-client/models/playback-start-info.js +13 -0
- package/lib/generated-client/models/playback-stop-info.d.ts +85 -0
- package/lib/generated-client/models/playback-stop-info.js +13 -0
- package/lib/generated-client/models/player-state-info.d.ts +85 -0
- package/lib/generated-client/models/player-state-info.js +13 -0
- package/lib/generated-client/models/playlist-creation-result.d.ts +23 -0
- package/lib/generated-client/models/playlist-creation-result.js +13 -0
- package/lib/generated-client/models/playstate-command.d.ts +27 -0
- package/lib/generated-client/models/playstate-command.js +28 -0
- package/lib/generated-client/models/playstate-request.d.ts +36 -0
- package/lib/generated-client/models/playstate-request.js +13 -0
- package/lib/generated-client/models/plugin-info.d.ts +66 -0
- package/lib/generated-client/models/plugin-info.js +13 -0
- package/lib/generated-client/models/plugin-status.d.ts +25 -0
- package/lib/generated-client/models/plugin-status.js +26 -0
- package/lib/generated-client/models/previous-item-request-dto.d.ts +23 -0
- package/lib/generated-client/models/previous-item-request-dto.js +13 -0
- package/lib/generated-client/models/problem-details.d.ts +48 -0
- package/lib/generated-client/models/problem-details.js +13 -0
- package/lib/generated-client/models/profile-condition-type.d.ts +23 -0
- package/lib/generated-client/models/profile-condition-type.js +24 -0
- package/lib/generated-client/models/profile-condition-value.d.ts +42 -0
- package/lib/generated-client/models/profile-condition-value.js +43 -0
- package/lib/generated-client/models/profile-condition.d.ts +43 -0
- package/lib/generated-client/models/profile-condition.js +13 -0
- package/lib/generated-client/models/program-audio.d.ts +24 -0
- package/lib/generated-client/models/program-audio.js +25 -0
- package/lib/generated-client/models/public-system-info.d.ts +59 -0
- package/lib/generated-client/models/public-system-info.js +13 -0
- package/lib/generated-client/models/query-filters-legacy.d.ts +41 -0
- package/lib/generated-client/models/query-filters-legacy.js +13 -0
- package/lib/generated-client/models/query-filters.d.ts +30 -0
- package/lib/generated-client/models/query-filters.js +13 -0
- package/lib/generated-client/models/queue-item.d.ts +29 -0
- package/lib/generated-client/models/queue-item.js +13 -0
- package/lib/generated-client/models/queue-request-dto.d.ts +30 -0
- package/lib/generated-client/models/queue-request-dto.js +13 -0
- package/lib/generated-client/models/quick-connect-dto.d.ts +23 -0
- package/lib/generated-client/models/quick-connect-dto.js +13 -0
- package/lib/generated-client/models/quick-connect-result.d.ts +65 -0
- package/lib/generated-client/models/quick-connect-result.js +13 -0
- package/lib/generated-client/models/rating-type.d.ts +20 -0
- package/lib/generated-client/models/rating-type.js +21 -0
- package/lib/generated-client/models/ready-request-dto.d.ts +41 -0
- package/lib/generated-client/models/ready-request-dto.js +13 -0
- package/lib/generated-client/models/recommendation-dto.d.ts +43 -0
- package/lib/generated-client/models/recommendation-dto.js +13 -0
- package/lib/generated-client/models/recommendation-type.d.ts +24 -0
- package/lib/generated-client/models/recommendation-type.js +25 -0
- package/lib/generated-client/models/recording-status.d.ts +25 -0
- package/lib/generated-client/models/recording-status.js +26 -0
- package/lib/generated-client/models/remote-image-info.d.ts +79 -0
- package/lib/generated-client/models/remote-image-info.js +13 -0
- package/lib/generated-client/models/remote-image-result.d.ts +36 -0
- package/lib/generated-client/models/remote-image-result.js +13 -0
- package/lib/generated-client/models/remote-search-result.d.ts +91 -0
- package/lib/generated-client/models/remote-search-result.js +13 -0
- package/lib/generated-client/models/remote-subtitle-info.d.ts +83 -0
- package/lib/generated-client/models/remote-subtitle-info.js +13 -0
- package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +35 -0
- package/lib/generated-client/models/remove-from-playlist-request-dto.js +13 -0
- package/lib/generated-client/models/repeat-mode.d.ts +21 -0
- package/lib/generated-client/models/repeat-mode.js +22 -0
- package/lib/generated-client/models/repository-info.d.ts +35 -0
- package/lib/generated-client/models/repository-info.js +13 -0
- package/lib/generated-client/models/response-profile.d.ts +61 -0
- package/lib/generated-client/models/response-profile.js +13 -0
- package/lib/generated-client/models/scroll-direction.d.ts +20 -0
- package/lib/generated-client/models/scroll-direction.js +21 -0
- package/lib/generated-client/models/search-hint-result.d.ts +30 -0
- package/lib/generated-client/models/search-hint-result.js +13 -0
- package/lib/generated-client/models/search-hint.d.ts +193 -0
- package/lib/generated-client/models/search-hint.js +13 -0
- package/lib/generated-client/models/seek-request-dto.d.ts +23 -0
- package/lib/generated-client/models/seek-request-dto.js +13 -0
- package/lib/generated-client/models/send-command-type.d.ts +22 -0
- package/lib/generated-client/models/send-command-type.js +23 -0
- package/lib/generated-client/models/send-command.d.ts +54 -0
- package/lib/generated-client/models/send-command.js +13 -0
- package/lib/generated-client/models/send-to-user-type.d.ts +21 -0
- package/lib/generated-client/models/send-to-user-type.js +22 -0
- package/lib/generated-client/models/series-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/series-info-remote-search-query.js +13 -0
- package/lib/generated-client/models/series-info.d.ts +85 -0
- package/lib/generated-client/models/series-info.js +13 -0
- package/lib/generated-client/models/series-status.d.ts +21 -0
- package/lib/generated-client/models/series-status.js +22 -0
- package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/series-timer-info-dto-query-result.js +13 -0
- package/lib/generated-client/models/series-timer-info-dto.d.ts +232 -0
- package/lib/generated-client/models/series-timer-info-dto.js +13 -0
- package/lib/generated-client/models/server-configuration.d.ts +329 -0
- package/lib/generated-client/models/server-configuration.js +13 -0
- package/lib/generated-client/models/server-discovery-info.d.ts +41 -0
- package/lib/generated-client/models/server-discovery-info.js +13 -0
- package/lib/generated-client/models/session-info.d.ts +199 -0
- package/lib/generated-client/models/session-info.js +13 -0
- package/lib/generated-client/models/session-message-type.d.ts +52 -0
- package/lib/generated-client/models/session-message-type.js +53 -0
- package/lib/generated-client/models/session-user-info.d.ts +29 -0
- package/lib/generated-client/models/session-user-info.js +13 -0
- package/lib/generated-client/models/set-channel-mapping-dto.d.ts +35 -0
- package/lib/generated-client/models/set-channel-mapping-dto.js +13 -0
- package/lib/generated-client/models/set-playlist-item-request-dto.d.ts +23 -0
- package/lib/generated-client/models/set-playlist-item-request-dto.js +13 -0
- package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +24 -0
- package/lib/generated-client/models/set-repeat-mode-request-dto.js +13 -0
- package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +24 -0
- package/lib/generated-client/models/set-shuffle-mode-request-dto.js +13 -0
- package/lib/generated-client/models/song-info.d.ts +103 -0
- package/lib/generated-client/models/song-info.js +13 -0
- package/lib/generated-client/models/sort-order.d.ts +20 -0
- package/lib/generated-client/models/sort-order.js +21 -0
- package/lib/generated-client/models/special-view-option-dto.d.ts +29 -0
- package/lib/generated-client/models/special-view-option-dto.js +13 -0
- package/lib/generated-client/models/startup-configuration-dto.d.ts +35 -0
- package/lib/generated-client/models/startup-configuration-dto.js +13 -0
- package/lib/generated-client/models/startup-remote-access-dto.d.ts +29 -0
- package/lib/generated-client/models/startup-remote-access-dto.js +13 -0
- package/lib/generated-client/models/startup-user-dto.d.ts +29 -0
- package/lib/generated-client/models/startup-user-dto.js +13 -0
- package/lib/generated-client/models/subtitle-delivery-method.d.ts +23 -0
- package/lib/generated-client/models/subtitle-delivery-method.js +24 -0
- package/lib/generated-client/models/subtitle-options.d.ts +71 -0
- package/lib/generated-client/models/subtitle-options.js +13 -0
- package/lib/generated-client/models/subtitle-playback-mode.d.ts +23 -0
- package/lib/generated-client/models/subtitle-playback-mode.js +24 -0
- package/lib/generated-client/models/subtitle-profile.d.ts +48 -0
- package/lib/generated-client/models/subtitle-profile.js +13 -0
- package/lib/generated-client/models/sync-play-user-access-type.d.ts +21 -0
- package/lib/generated-client/models/sync-play-user-access-type.js +22 -0
- package/lib/generated-client/models/system-info.d.ts +177 -0
- package/lib/generated-client/models/system-info.js +13 -0
- package/lib/generated-client/models/task-completion-status.d.ts +22 -0
- package/lib/generated-client/models/task-completion-status.js +23 -0
- package/lib/generated-client/models/task-info.d.ts +80 -0
- package/lib/generated-client/models/task-info.js +13 -0
- package/lib/generated-client/models/task-result.d.ts +66 -0
- package/lib/generated-client/models/task-result.js +13 -0
- package/lib/generated-client/models/task-state.d.ts +21 -0
- package/lib/generated-client/models/task-state.js +22 -0
- package/lib/generated-client/models/task-trigger-info.d.ts +48 -0
- package/lib/generated-client/models/task-trigger-info.js +13 -0
- package/lib/generated-client/models/theme-media-result.d.ts +42 -0
- package/lib/generated-client/models/theme-media-result.js +13 -0
- package/lib/generated-client/models/timer-event-info.d.ts +29 -0
- package/lib/generated-client/models/timer-event-info.js +13 -0
- package/lib/generated-client/models/timer-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/timer-info-dto-query-result.js +13 -0
- package/lib/generated-client/models/timer-info-dto.d.ts +188 -0
- package/lib/generated-client/models/timer-info-dto.js +13 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +42 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.js +13 -0
- package/lib/generated-client/models/trailer-info.d.ts +85 -0
- package/lib/generated-client/models/trailer-info.js +13 -0
- package/lib/generated-client/models/transcode-reason.d.ts +43 -0
- package/lib/generated-client/models/transcode-reason.js +44 -0
- package/lib/generated-client/models/transcode-seek-info.d.ts +20 -0
- package/lib/generated-client/models/transcode-seek-info.js +21 -0
- package/lib/generated-client/models/transcoding-info.d.ts +97 -0
- package/lib/generated-client/models/transcoding-info.js +13 -0
- package/lib/generated-client/models/transcoding-profile.d.ts +117 -0
- package/lib/generated-client/models/transcoding-profile.js +13 -0
- package/lib/generated-client/models/transport-stream-timestamp.d.ts +21 -0
- package/lib/generated-client/models/transport-stream-timestamp.js +22 -0
- package/lib/generated-client/models/tuner-channel-mapping.d.ts +41 -0
- package/lib/generated-client/models/tuner-channel-mapping.js +13 -0
- package/lib/generated-client/models/tuner-host-info.d.ts +89 -0
- package/lib/generated-client/models/tuner-host-info.js +13 -0
- package/lib/generated-client/models/type-options.d.ts +54 -0
- package/lib/generated-client/models/type-options.js +13 -0
- package/lib/generated-client/models/unrated-item.d.ts +27 -0
- package/lib/generated-client/models/unrated-item.js +28 -0
- package/lib/generated-client/models/update-library-options-dto.d.ts +30 -0
- package/lib/generated-client/models/update-library-options-dto.js +13 -0
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +30 -0
- package/lib/generated-client/models/update-media-path-request-dto.js +13 -0
- package/lib/generated-client/models/update-user-easy-password.d.ts +35 -0
- package/lib/generated-client/models/update-user-easy-password.js +13 -0
- package/lib/generated-client/models/update-user-password.d.ts +41 -0
- package/lib/generated-client/models/update-user-password.js +13 -0
- package/lib/generated-client/models/upload-subtitle-dto.d.ts +41 -0
- package/lib/generated-client/models/upload-subtitle-dto.js +13 -0
- package/lib/generated-client/models/user-configuration.d.ts +108 -0
- package/lib/generated-client/models/user-configuration.js +13 -0
- package/lib/generated-client/models/user-dto.d.ts +103 -0
- package/lib/generated-client/models/user-dto.js +13 -0
- package/lib/generated-client/models/user-item-data-dto.d.ts +83 -0
- package/lib/generated-client/models/user-item-data-dto.js +13 -0
- package/lib/generated-client/models/user-policy.d.ts +254 -0
- package/lib/generated-client/models/user-policy.js +13 -0
- package/lib/generated-client/models/utc-time-response.d.ts +29 -0
- package/lib/generated-client/models/utc-time-response.js +13 -0
- package/lib/generated-client/models/validate-path-dto.d.ts +35 -0
- package/lib/generated-client/models/validate-path-dto.js +13 -0
- package/lib/generated-client/models/version-info.d.ts +71 -0
- package/lib/generated-client/models/version-info.js +13 -0
- package/lib/generated-client/models/video-type.d.ts +22 -0
- package/lib/generated-client/models/video-type.js +23 -0
- package/lib/generated-client/models/video3-dformat.d.ts +23 -0
- package/lib/generated-client/models/video3-dformat.js +24 -0
- package/lib/generated-client/models/virtual-folder-info.d.ts +67 -0
- package/lib/generated-client/models/virtual-folder-info.js +13 -0
- package/lib/generated-client/models/wake-on-lan-info.d.ts +29 -0
- package/lib/generated-client/models/wake-on-lan-info.js +13 -0
- package/lib/generated-client/models/xbmc-metadata-options.d.ts +47 -0
- package/lib/generated-client/models/xbmc-metadata-options.js +13 -0
- package/lib/generated-client/models/xml-attribute.d.ts +29 -0
- package/lib/generated-client/models/xml-attribute.js +13 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +12 -0
- package/lib/jellyfin.d.ts +33 -0
- package/lib/jellyfin.js +29 -0
- package/lib/models/api/image-request-parameters.d.ts +29 -0
- package/lib/models/api/image-request-parameters.js +6 -0
- package/lib/models/api/index.d.ts +7 -0
- package/lib/models/api/index.js +7 -0
- package/lib/models/api/item-sort-by.d.ts +40 -0
- package/lib/models/api/item-sort-by.js +41 -0
- package/lib/models/client-info.d.ts +12 -0
- package/lib/models/client-info.js +6 -0
- package/lib/models/device-info.d.ts +12 -0
- package/lib/models/device-info.js +6 -0
- package/lib/models/index.d.ts +9 -0
- package/lib/models/index.js +9 -0
- package/lib/models/recommended-server-info.d.ts +22 -0
- package/lib/models/recommended-server-info.js +13 -0
- package/lib/models/recommended-server-issue.d.ts +48 -0
- package/lib/models/recommended-server-issue.js +55 -0
- package/lib/utils/address-candidates.d.ts +16 -0
- package/lib/utils/address-candidates.js +81 -0
- package/lib/utils/api/activity-log-api.d.ts +8 -0
- package/lib/utils/api/activity-log-api.js +9 -0
- package/lib/utils/api/api-key-api.d.ts +8 -0
- package/lib/utils/api/api-key-api.js +9 -0
- package/lib/utils/api/artists-api.d.ts +8 -0
- package/lib/utils/api/artists-api.js +9 -0
- package/lib/utils/api/audio-api.d.ts +8 -0
- package/lib/utils/api/audio-api.js +9 -0
- package/lib/utils/api/branding-api.d.ts +8 -0
- package/lib/utils/api/branding-api.js +9 -0
- package/lib/utils/api/channels-api.d.ts +8 -0
- package/lib/utils/api/channels-api.js +9 -0
- package/lib/utils/api/client-log-api.d.ts +8 -0
- package/lib/utils/api/client-log-api.js +9 -0
- package/lib/utils/api/collection-api.d.ts +8 -0
- package/lib/utils/api/collection-api.js +9 -0
- package/lib/utils/api/configuration-api.d.ts +8 -0
- package/lib/utils/api/configuration-api.js +9 -0
- package/lib/utils/api/dashboard-api.d.ts +8 -0
- package/lib/utils/api/dashboard-api.js +9 -0
- package/lib/utils/api/devices-api.d.ts +8 -0
- package/lib/utils/api/devices-api.js +9 -0
- package/lib/utils/api/display-preferences-api.d.ts +8 -0
- package/lib/utils/api/display-preferences-api.js +9 -0
- package/lib/utils/api/dlna-api.d.ts +8 -0
- package/lib/utils/api/dlna-api.js +9 -0
- package/lib/utils/api/dlna-server-api.d.ts +8 -0
- package/lib/utils/api/dlna-server-api.js +9 -0
- package/lib/utils/api/dynamic-hls-api.d.ts +8 -0
- package/lib/utils/api/dynamic-hls-api.js +9 -0
- package/lib/utils/api/environment-api.d.ts +8 -0
- package/lib/utils/api/environment-api.js +9 -0
- package/lib/utils/api/filter-api.d.ts +8 -0
- package/lib/utils/api/filter-api.js +9 -0
- package/lib/utils/api/genres-api.d.ts +8 -0
- package/lib/utils/api/genres-api.js +9 -0
- package/lib/utils/api/hls-segment-api.d.ts +8 -0
- package/lib/utils/api/hls-segment-api.js +9 -0
- package/lib/utils/api/image-api.d.ts +8 -0
- package/lib/utils/api/image-api.js +9 -0
- package/lib/utils/api/image-by-name-api.d.ts +8 -0
- package/lib/utils/api/image-by-name-api.js +9 -0
- package/lib/utils/api/instant-mix-api.d.ts +8 -0
- package/lib/utils/api/instant-mix-api.js +9 -0
- package/lib/utils/api/item-lookup-api.d.ts +8 -0
- package/lib/utils/api/item-lookup-api.js +9 -0
- package/lib/utils/api/item-refresh-api.d.ts +8 -0
- package/lib/utils/api/item-refresh-api.js +9 -0
- package/lib/utils/api/item-update-api.d.ts +8 -0
- package/lib/utils/api/item-update-api.js +9 -0
- package/lib/utils/api/items-api.d.ts +8 -0
- package/lib/utils/api/items-api.js +9 -0
- package/lib/utils/api/library-api.d.ts +8 -0
- package/lib/utils/api/library-api.js +9 -0
- package/lib/utils/api/library-structure-api.d.ts +8 -0
- package/lib/utils/api/library-structure-api.js +9 -0
- package/lib/utils/api/live-tv-api.d.ts +8 -0
- package/lib/utils/api/live-tv-api.js +9 -0
- package/lib/utils/api/localization-api.d.ts +8 -0
- package/lib/utils/api/localization-api.js +9 -0
- package/lib/utils/api/media-info-api.d.ts +8 -0
- package/lib/utils/api/media-info-api.js +9 -0
- package/lib/utils/api/movies-api.d.ts +8 -0
- package/lib/utils/api/movies-api.js +9 -0
- package/lib/utils/api/music-genres-api.d.ts +8 -0
- package/lib/utils/api/music-genres-api.js +9 -0
- package/lib/utils/api/notifications-api.d.ts +8 -0
- package/lib/utils/api/notifications-api.js +9 -0
- package/lib/utils/api/package-api.d.ts +8 -0
- package/lib/utils/api/package-api.js +9 -0
- package/lib/utils/api/persons-api.d.ts +8 -0
- package/lib/utils/api/persons-api.js +9 -0
- package/lib/utils/api/playlists-api.d.ts +8 -0
- package/lib/utils/api/playlists-api.js +9 -0
- package/lib/utils/api/playstate-api.d.ts +8 -0
- package/lib/utils/api/playstate-api.js +9 -0
- package/lib/utils/api/plugins-api.d.ts +8 -0
- package/lib/utils/api/plugins-api.js +9 -0
- package/lib/utils/api/quick-connect-api.d.ts +8 -0
- package/lib/utils/api/quick-connect-api.js +9 -0
- package/lib/utils/api/remote-image-api.d.ts +8 -0
- package/lib/utils/api/remote-image-api.js +9 -0
- package/lib/utils/api/scheduled-tasks-api.d.ts +8 -0
- package/lib/utils/api/scheduled-tasks-api.js +9 -0
- package/lib/utils/api/search-api.d.ts +8 -0
- package/lib/utils/api/search-api.js +9 -0
- package/lib/utils/api/session-api.d.ts +8 -0
- package/lib/utils/api/session-api.js +9 -0
- package/lib/utils/api/startup-api.d.ts +8 -0
- package/lib/utils/api/startup-api.js +9 -0
- package/lib/utils/api/studios-api.d.ts +8 -0
- package/lib/utils/api/studios-api.js +9 -0
- package/lib/utils/api/subtitle-api.d.ts +8 -0
- package/lib/utils/api/subtitle-api.js +9 -0
- package/lib/utils/api/suggestions-api.d.ts +8 -0
- package/lib/utils/api/suggestions-api.js +9 -0
- package/lib/utils/api/sync-play-api.d.ts +8 -0
- package/lib/utils/api/sync-play-api.js +9 -0
- package/lib/utils/api/system-api.d.ts +8 -0
- package/lib/utils/api/system-api.js +9 -0
- package/lib/utils/api/time-sync-api.d.ts +8 -0
- package/lib/utils/api/time-sync-api.js +9 -0
- package/lib/utils/api/tmdb-api.d.ts +8 -0
- package/lib/utils/api/tmdb-api.js +9 -0
- package/lib/utils/api/trailers-api.d.ts +8 -0
- package/lib/utils/api/trailers-api.js +9 -0
- package/lib/utils/api/tv-shows-api.d.ts +8 -0
- package/lib/utils/api/tv-shows-api.js +9 -0
- package/lib/utils/api/universal-audio-api.d.ts +8 -0
- package/lib/utils/api/universal-audio-api.js +9 -0
- package/lib/utils/api/user-api.d.ts +8 -0
- package/lib/utils/api/user-api.js +9 -0
- package/lib/utils/api/user-library-api.d.ts +8 -0
- package/lib/utils/api/user-library-api.js +9 -0
- package/lib/utils/api/user-views-api.d.ts +8 -0
- package/lib/utils/api/user-views-api.js +9 -0
- package/lib/utils/api/video-attachments-api.d.ts +8 -0
- package/lib/utils/api/video-attachments-api.js +9 -0
- package/lib/utils/api/videos-api.d.ts +8 -0
- package/lib/utils/api/videos-api.js +9 -0
- package/lib/utils/api/years-api.d.ts +8 -0
- package/lib/utils/api/years-api.js +9 -0
- package/lib/utils/authentication.d.ts +10 -0
- package/lib/utils/authentication.js +13 -0
- package/lib/utils/browser-profiles.d.ts +25 -0
- package/lib/utils/browser-profiles.js +40 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.js +9 -0
- package/lib/utils/normalize-url.d.ts +20 -0
- package/lib/utils/normalize-url.js +93 -0
- package/lib/utils/url.d.ts +31 -0
- package/lib/utils/url.js +45 -0
- package/openapi-templates/licenseInfo.mustache +10 -0
- package/package.json +45 -0
- package/tsconfig.json +27 -0
|
@@ -0,0 +1,1887 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5
|
+
* Do not edit the class manually.
|
|
6
|
+
*
|
|
7
|
+
* Jellyfin API
|
|
8
|
+
*
|
|
9
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
10
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
11
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
12
|
+
*/
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
import globalAxios from 'axios';
|
|
23
|
+
// Some imports not used depending on template conditions
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { BASE_PATH, BaseAPI } from '../base';
|
|
28
|
+
/**
|
|
29
|
+
* LibraryApi - axios parameter creator
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const LibraryApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary Deletes an item from the library and filesystem.
|
|
37
|
+
* @param {string} itemId The item id.
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
deleteItem: (itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
43
|
+
assertParamExists('deleteItem', 'itemId', itemId);
|
|
44
|
+
const localVarPath = `/Items/{itemId}`
|
|
45
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
53
|
+
const localVarHeaderParameter = {};
|
|
54
|
+
const localVarQueryParameter = {};
|
|
55
|
+
// authentication CustomAuthentication required
|
|
56
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
57
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
60
|
+
return {
|
|
61
|
+
url: toPathString(localVarUrlObj),
|
|
62
|
+
options: localVarRequestOptions,
|
|
63
|
+
};
|
|
64
|
+
}),
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Deletes items from the library and filesystem.
|
|
68
|
+
* @param {Array<string>} [ids] The item ids.
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
deleteItems: (ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const localVarPath = `/Items`;
|
|
74
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
75
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
76
|
+
let baseOptions;
|
|
77
|
+
if (configuration) {
|
|
78
|
+
baseOptions = configuration.baseOptions;
|
|
79
|
+
}
|
|
80
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
81
|
+
const localVarHeaderParameter = {};
|
|
82
|
+
const localVarQueryParameter = {};
|
|
83
|
+
// authentication CustomAuthentication required
|
|
84
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
85
|
+
if (ids) {
|
|
86
|
+
localVarQueryParameter['ids'] = ids;
|
|
87
|
+
}
|
|
88
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
91
|
+
return {
|
|
92
|
+
url: toPathString(localVarUrlObj),
|
|
93
|
+
options: localVarRequestOptions,
|
|
94
|
+
};
|
|
95
|
+
}),
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary Gets all parents of an item.
|
|
99
|
+
* @param {string} itemId The item id.
|
|
100
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
getAncestors: (itemId, userId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
106
|
+
assertParamExists('getAncestors', 'itemId', itemId);
|
|
107
|
+
const localVarPath = `/Items/{itemId}/Ancestors`
|
|
108
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
}
|
|
115
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
116
|
+
const localVarHeaderParameter = {};
|
|
117
|
+
const localVarQueryParameter = {};
|
|
118
|
+
// authentication CustomAuthentication required
|
|
119
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
120
|
+
if (userId !== undefined) {
|
|
121
|
+
localVarQueryParameter['userId'] = userId;
|
|
122
|
+
}
|
|
123
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
124
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
126
|
+
return {
|
|
127
|
+
url: toPathString(localVarUrlObj),
|
|
128
|
+
options: localVarRequestOptions,
|
|
129
|
+
};
|
|
130
|
+
}),
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @summary Gets critic review for an item.
|
|
134
|
+
* @param {string} itemId
|
|
135
|
+
* @param {*} [options] Override http request option.
|
|
136
|
+
* @deprecated
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
*/
|
|
139
|
+
getCriticReviews: (itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
141
|
+
assertParamExists('getCriticReviews', 'itemId', itemId);
|
|
142
|
+
const localVarPath = `/Items/{itemId}/CriticReviews`
|
|
143
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146
|
+
let baseOptions;
|
|
147
|
+
if (configuration) {
|
|
148
|
+
baseOptions = configuration.baseOptions;
|
|
149
|
+
}
|
|
150
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
151
|
+
const localVarHeaderParameter = {};
|
|
152
|
+
const localVarQueryParameter = {};
|
|
153
|
+
// authentication CustomAuthentication required
|
|
154
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
155
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
156
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
157
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
158
|
+
return {
|
|
159
|
+
url: toPathString(localVarUrlObj),
|
|
160
|
+
options: localVarRequestOptions,
|
|
161
|
+
};
|
|
162
|
+
}),
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @summary Downloads item media.
|
|
166
|
+
* @param {string} itemId The item id.
|
|
167
|
+
* @param {*} [options] Override http request option.
|
|
168
|
+
* @throws {RequiredError}
|
|
169
|
+
*/
|
|
170
|
+
getDownload: (itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
172
|
+
assertParamExists('getDownload', 'itemId', itemId);
|
|
173
|
+
const localVarPath = `/Items/{itemId}/Download`
|
|
174
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
175
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
176
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
177
|
+
let baseOptions;
|
|
178
|
+
if (configuration) {
|
|
179
|
+
baseOptions = configuration.baseOptions;
|
|
180
|
+
}
|
|
181
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
182
|
+
const localVarHeaderParameter = {};
|
|
183
|
+
const localVarQueryParameter = {};
|
|
184
|
+
// authentication CustomAuthentication required
|
|
185
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
186
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
187
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
189
|
+
return {
|
|
190
|
+
url: toPathString(localVarUrlObj),
|
|
191
|
+
options: localVarRequestOptions,
|
|
192
|
+
};
|
|
193
|
+
}),
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @summary Get the original file of an item.
|
|
197
|
+
* @param {string} itemId The item id.
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
getFile: (itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
202
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
203
|
+
assertParamExists('getFile', 'itemId', itemId);
|
|
204
|
+
const localVarPath = `/Items/{itemId}/File`
|
|
205
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
206
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
207
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
208
|
+
let baseOptions;
|
|
209
|
+
if (configuration) {
|
|
210
|
+
baseOptions = configuration.baseOptions;
|
|
211
|
+
}
|
|
212
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
213
|
+
const localVarHeaderParameter = {};
|
|
214
|
+
const localVarQueryParameter = {};
|
|
215
|
+
// authentication CustomAuthentication required
|
|
216
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
217
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
219
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
220
|
+
return {
|
|
221
|
+
url: toPathString(localVarUrlObj),
|
|
222
|
+
options: localVarRequestOptions,
|
|
223
|
+
};
|
|
224
|
+
}),
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @summary Get item counts.
|
|
228
|
+
* @param {string} [userId] Optional. Get counts from a specific user\'s library.
|
|
229
|
+
* @param {boolean} [isFavorite] Optional. Get counts of favorite items.
|
|
230
|
+
* @param {*} [options] Override http request option.
|
|
231
|
+
* @throws {RequiredError}
|
|
232
|
+
*/
|
|
233
|
+
getItemCounts: (userId, isFavorite, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
const localVarPath = `/Items/Counts`;
|
|
235
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
236
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
237
|
+
let baseOptions;
|
|
238
|
+
if (configuration) {
|
|
239
|
+
baseOptions = configuration.baseOptions;
|
|
240
|
+
}
|
|
241
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
242
|
+
const localVarHeaderParameter = {};
|
|
243
|
+
const localVarQueryParameter = {};
|
|
244
|
+
// authentication CustomAuthentication required
|
|
245
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
246
|
+
if (userId !== undefined) {
|
|
247
|
+
localVarQueryParameter['userId'] = userId;
|
|
248
|
+
}
|
|
249
|
+
if (isFavorite !== undefined) {
|
|
250
|
+
localVarQueryParameter['isFavorite'] = isFavorite;
|
|
251
|
+
}
|
|
252
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
253
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
255
|
+
return {
|
|
256
|
+
url: toPathString(localVarUrlObj),
|
|
257
|
+
options: localVarRequestOptions,
|
|
258
|
+
};
|
|
259
|
+
}),
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* @summary Gets the library options info.
|
|
263
|
+
* @param {string} [libraryContentType] Library content type.
|
|
264
|
+
* @param {boolean} [isNewLibrary] Whether this is a new library.
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
*/
|
|
268
|
+
getLibraryOptionsInfo: (libraryContentType, isNewLibrary, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
269
|
+
const localVarPath = `/Libraries/AvailableOptions`;
|
|
270
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
271
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
272
|
+
let baseOptions;
|
|
273
|
+
if (configuration) {
|
|
274
|
+
baseOptions = configuration.baseOptions;
|
|
275
|
+
}
|
|
276
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
277
|
+
const localVarHeaderParameter = {};
|
|
278
|
+
const localVarQueryParameter = {};
|
|
279
|
+
// authentication CustomAuthentication required
|
|
280
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
281
|
+
if (libraryContentType !== undefined) {
|
|
282
|
+
localVarQueryParameter['libraryContentType'] = libraryContentType;
|
|
283
|
+
}
|
|
284
|
+
if (isNewLibrary !== undefined) {
|
|
285
|
+
localVarQueryParameter['isNewLibrary'] = isNewLibrary;
|
|
286
|
+
}
|
|
287
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
288
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
289
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
290
|
+
return {
|
|
291
|
+
url: toPathString(localVarUrlObj),
|
|
292
|
+
options: localVarRequestOptions,
|
|
293
|
+
};
|
|
294
|
+
}),
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @summary Gets all user media folders.
|
|
298
|
+
* @param {boolean} [isHidden] Optional. Filter by folders that are marked hidden, or not.
|
|
299
|
+
* @param {*} [options] Override http request option.
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
*/
|
|
302
|
+
getMediaFolders: (isHidden, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
303
|
+
const localVarPath = `/Library/MediaFolders`;
|
|
304
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
305
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
306
|
+
let baseOptions;
|
|
307
|
+
if (configuration) {
|
|
308
|
+
baseOptions = configuration.baseOptions;
|
|
309
|
+
}
|
|
310
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
311
|
+
const localVarHeaderParameter = {};
|
|
312
|
+
const localVarQueryParameter = {};
|
|
313
|
+
// authentication CustomAuthentication required
|
|
314
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
315
|
+
if (isHidden !== undefined) {
|
|
316
|
+
localVarQueryParameter['isHidden'] = isHidden;
|
|
317
|
+
}
|
|
318
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
320
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
321
|
+
return {
|
|
322
|
+
url: toPathString(localVarUrlObj),
|
|
323
|
+
options: localVarRequestOptions,
|
|
324
|
+
};
|
|
325
|
+
}),
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @summary Gets a list of physical paths from virtual folders.
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
getPhysicalPaths: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
333
|
+
const localVarPath = `/Library/PhysicalPaths`;
|
|
334
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
335
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
336
|
+
let baseOptions;
|
|
337
|
+
if (configuration) {
|
|
338
|
+
baseOptions = configuration.baseOptions;
|
|
339
|
+
}
|
|
340
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
341
|
+
const localVarHeaderParameter = {};
|
|
342
|
+
const localVarQueryParameter = {};
|
|
343
|
+
// authentication CustomAuthentication required
|
|
344
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
345
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
346
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
347
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
348
|
+
return {
|
|
349
|
+
url: toPathString(localVarUrlObj),
|
|
350
|
+
options: localVarRequestOptions,
|
|
351
|
+
};
|
|
352
|
+
}),
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @summary Gets similar items.
|
|
356
|
+
* @param {string} itemId The item id.
|
|
357
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
358
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
359
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
360
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
getSimilarAlbums: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
366
|
+
assertParamExists('getSimilarAlbums', 'itemId', itemId);
|
|
367
|
+
const localVarPath = `/Albums/{itemId}/Similar`
|
|
368
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
369
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
370
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
371
|
+
let baseOptions;
|
|
372
|
+
if (configuration) {
|
|
373
|
+
baseOptions = configuration.baseOptions;
|
|
374
|
+
}
|
|
375
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
376
|
+
const localVarHeaderParameter = {};
|
|
377
|
+
const localVarQueryParameter = {};
|
|
378
|
+
// authentication CustomAuthentication required
|
|
379
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
380
|
+
if (excludeArtistIds) {
|
|
381
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
382
|
+
}
|
|
383
|
+
if (userId !== undefined) {
|
|
384
|
+
localVarQueryParameter['userId'] = userId;
|
|
385
|
+
}
|
|
386
|
+
if (limit !== undefined) {
|
|
387
|
+
localVarQueryParameter['limit'] = limit;
|
|
388
|
+
}
|
|
389
|
+
if (fields) {
|
|
390
|
+
localVarQueryParameter['fields'] = fields;
|
|
391
|
+
}
|
|
392
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
393
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
394
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
395
|
+
return {
|
|
396
|
+
url: toPathString(localVarUrlObj),
|
|
397
|
+
options: localVarRequestOptions,
|
|
398
|
+
};
|
|
399
|
+
}),
|
|
400
|
+
/**
|
|
401
|
+
*
|
|
402
|
+
* @summary Gets similar items.
|
|
403
|
+
* @param {string} itemId The item id.
|
|
404
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
405
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
406
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
407
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
408
|
+
* @param {*} [options] Override http request option.
|
|
409
|
+
* @throws {RequiredError}
|
|
410
|
+
*/
|
|
411
|
+
getSimilarArtists: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
412
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
413
|
+
assertParamExists('getSimilarArtists', 'itemId', itemId);
|
|
414
|
+
const localVarPath = `/Artists/{itemId}/Similar`
|
|
415
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
416
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
417
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
418
|
+
let baseOptions;
|
|
419
|
+
if (configuration) {
|
|
420
|
+
baseOptions = configuration.baseOptions;
|
|
421
|
+
}
|
|
422
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
423
|
+
const localVarHeaderParameter = {};
|
|
424
|
+
const localVarQueryParameter = {};
|
|
425
|
+
// authentication CustomAuthentication required
|
|
426
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
427
|
+
if (excludeArtistIds) {
|
|
428
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
429
|
+
}
|
|
430
|
+
if (userId !== undefined) {
|
|
431
|
+
localVarQueryParameter['userId'] = userId;
|
|
432
|
+
}
|
|
433
|
+
if (limit !== undefined) {
|
|
434
|
+
localVarQueryParameter['limit'] = limit;
|
|
435
|
+
}
|
|
436
|
+
if (fields) {
|
|
437
|
+
localVarQueryParameter['fields'] = fields;
|
|
438
|
+
}
|
|
439
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
440
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
441
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
442
|
+
return {
|
|
443
|
+
url: toPathString(localVarUrlObj),
|
|
444
|
+
options: localVarRequestOptions,
|
|
445
|
+
};
|
|
446
|
+
}),
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @summary Gets similar items.
|
|
450
|
+
* @param {string} itemId The item id.
|
|
451
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
452
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
453
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
454
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
455
|
+
* @param {*} [options] Override http request option.
|
|
456
|
+
* @throws {RequiredError}
|
|
457
|
+
*/
|
|
458
|
+
getSimilarItems: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
459
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
460
|
+
assertParamExists('getSimilarItems', 'itemId', itemId);
|
|
461
|
+
const localVarPath = `/Items/{itemId}/Similar`
|
|
462
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
463
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
464
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
465
|
+
let baseOptions;
|
|
466
|
+
if (configuration) {
|
|
467
|
+
baseOptions = configuration.baseOptions;
|
|
468
|
+
}
|
|
469
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
470
|
+
const localVarHeaderParameter = {};
|
|
471
|
+
const localVarQueryParameter = {};
|
|
472
|
+
// authentication CustomAuthentication required
|
|
473
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
474
|
+
if (excludeArtistIds) {
|
|
475
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
476
|
+
}
|
|
477
|
+
if (userId !== undefined) {
|
|
478
|
+
localVarQueryParameter['userId'] = userId;
|
|
479
|
+
}
|
|
480
|
+
if (limit !== undefined) {
|
|
481
|
+
localVarQueryParameter['limit'] = limit;
|
|
482
|
+
}
|
|
483
|
+
if (fields) {
|
|
484
|
+
localVarQueryParameter['fields'] = fields;
|
|
485
|
+
}
|
|
486
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
487
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
488
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
489
|
+
return {
|
|
490
|
+
url: toPathString(localVarUrlObj),
|
|
491
|
+
options: localVarRequestOptions,
|
|
492
|
+
};
|
|
493
|
+
}),
|
|
494
|
+
/**
|
|
495
|
+
*
|
|
496
|
+
* @summary Gets similar items.
|
|
497
|
+
* @param {string} itemId The item id.
|
|
498
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
499
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
500
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
501
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
502
|
+
* @param {*} [options] Override http request option.
|
|
503
|
+
* @throws {RequiredError}
|
|
504
|
+
*/
|
|
505
|
+
getSimilarMovies: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
506
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
507
|
+
assertParamExists('getSimilarMovies', 'itemId', itemId);
|
|
508
|
+
const localVarPath = `/Movies/{itemId}/Similar`
|
|
509
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
510
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
511
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
512
|
+
let baseOptions;
|
|
513
|
+
if (configuration) {
|
|
514
|
+
baseOptions = configuration.baseOptions;
|
|
515
|
+
}
|
|
516
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
517
|
+
const localVarHeaderParameter = {};
|
|
518
|
+
const localVarQueryParameter = {};
|
|
519
|
+
// authentication CustomAuthentication required
|
|
520
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
521
|
+
if (excludeArtistIds) {
|
|
522
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
523
|
+
}
|
|
524
|
+
if (userId !== undefined) {
|
|
525
|
+
localVarQueryParameter['userId'] = userId;
|
|
526
|
+
}
|
|
527
|
+
if (limit !== undefined) {
|
|
528
|
+
localVarQueryParameter['limit'] = limit;
|
|
529
|
+
}
|
|
530
|
+
if (fields) {
|
|
531
|
+
localVarQueryParameter['fields'] = fields;
|
|
532
|
+
}
|
|
533
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
534
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
535
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
536
|
+
return {
|
|
537
|
+
url: toPathString(localVarUrlObj),
|
|
538
|
+
options: localVarRequestOptions,
|
|
539
|
+
};
|
|
540
|
+
}),
|
|
541
|
+
/**
|
|
542
|
+
*
|
|
543
|
+
* @summary Gets similar items.
|
|
544
|
+
* @param {string} itemId The item id.
|
|
545
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
546
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
547
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
548
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
549
|
+
* @param {*} [options] Override http request option.
|
|
550
|
+
* @throws {RequiredError}
|
|
551
|
+
*/
|
|
552
|
+
getSimilarShows: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
553
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
554
|
+
assertParamExists('getSimilarShows', 'itemId', itemId);
|
|
555
|
+
const localVarPath = `/Shows/{itemId}/Similar`
|
|
556
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
557
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
558
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
559
|
+
let baseOptions;
|
|
560
|
+
if (configuration) {
|
|
561
|
+
baseOptions = configuration.baseOptions;
|
|
562
|
+
}
|
|
563
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
564
|
+
const localVarHeaderParameter = {};
|
|
565
|
+
const localVarQueryParameter = {};
|
|
566
|
+
// authentication CustomAuthentication required
|
|
567
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
568
|
+
if (excludeArtistIds) {
|
|
569
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
570
|
+
}
|
|
571
|
+
if (userId !== undefined) {
|
|
572
|
+
localVarQueryParameter['userId'] = userId;
|
|
573
|
+
}
|
|
574
|
+
if (limit !== undefined) {
|
|
575
|
+
localVarQueryParameter['limit'] = limit;
|
|
576
|
+
}
|
|
577
|
+
if (fields) {
|
|
578
|
+
localVarQueryParameter['fields'] = fields;
|
|
579
|
+
}
|
|
580
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
581
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
582
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
583
|
+
return {
|
|
584
|
+
url: toPathString(localVarUrlObj),
|
|
585
|
+
options: localVarRequestOptions,
|
|
586
|
+
};
|
|
587
|
+
}),
|
|
588
|
+
/**
|
|
589
|
+
*
|
|
590
|
+
* @summary Gets similar items.
|
|
591
|
+
* @param {string} itemId The item id.
|
|
592
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
593
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
594
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
595
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
getSimilarTrailers: (itemId, excludeArtistIds, userId, limit, fields, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
600
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
601
|
+
assertParamExists('getSimilarTrailers', 'itemId', itemId);
|
|
602
|
+
const localVarPath = `/Trailers/{itemId}/Similar`
|
|
603
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
604
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
605
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
606
|
+
let baseOptions;
|
|
607
|
+
if (configuration) {
|
|
608
|
+
baseOptions = configuration.baseOptions;
|
|
609
|
+
}
|
|
610
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
611
|
+
const localVarHeaderParameter = {};
|
|
612
|
+
const localVarQueryParameter = {};
|
|
613
|
+
// authentication CustomAuthentication required
|
|
614
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
615
|
+
if (excludeArtistIds) {
|
|
616
|
+
localVarQueryParameter['excludeArtistIds'] = excludeArtistIds;
|
|
617
|
+
}
|
|
618
|
+
if (userId !== undefined) {
|
|
619
|
+
localVarQueryParameter['userId'] = userId;
|
|
620
|
+
}
|
|
621
|
+
if (limit !== undefined) {
|
|
622
|
+
localVarQueryParameter['limit'] = limit;
|
|
623
|
+
}
|
|
624
|
+
if (fields) {
|
|
625
|
+
localVarQueryParameter['fields'] = fields;
|
|
626
|
+
}
|
|
627
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
628
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
629
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
630
|
+
return {
|
|
631
|
+
url: toPathString(localVarUrlObj),
|
|
632
|
+
options: localVarRequestOptions,
|
|
633
|
+
};
|
|
634
|
+
}),
|
|
635
|
+
/**
|
|
636
|
+
*
|
|
637
|
+
* @summary Get theme songs and videos for an item.
|
|
638
|
+
* @param {string} itemId The item id.
|
|
639
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
640
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
641
|
+
* @param {*} [options] Override http request option.
|
|
642
|
+
* @throws {RequiredError}
|
|
643
|
+
*/
|
|
644
|
+
getThemeMedia: (itemId, userId, inheritFromParent, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
645
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
646
|
+
assertParamExists('getThemeMedia', 'itemId', itemId);
|
|
647
|
+
const localVarPath = `/Items/{itemId}/ThemeMedia`
|
|
648
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
649
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
650
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
651
|
+
let baseOptions;
|
|
652
|
+
if (configuration) {
|
|
653
|
+
baseOptions = configuration.baseOptions;
|
|
654
|
+
}
|
|
655
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
656
|
+
const localVarHeaderParameter = {};
|
|
657
|
+
const localVarQueryParameter = {};
|
|
658
|
+
// authentication CustomAuthentication required
|
|
659
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
660
|
+
if (userId !== undefined) {
|
|
661
|
+
localVarQueryParameter['userId'] = userId;
|
|
662
|
+
}
|
|
663
|
+
if (inheritFromParent !== undefined) {
|
|
664
|
+
localVarQueryParameter['inheritFromParent'] = inheritFromParent;
|
|
665
|
+
}
|
|
666
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
667
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
668
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
669
|
+
return {
|
|
670
|
+
url: toPathString(localVarUrlObj),
|
|
671
|
+
options: localVarRequestOptions,
|
|
672
|
+
};
|
|
673
|
+
}),
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @summary Get theme songs for an item.
|
|
677
|
+
* @param {string} itemId The item id.
|
|
678
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
679
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
*/
|
|
683
|
+
getThemeSongs: (itemId, userId, inheritFromParent, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
684
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
685
|
+
assertParamExists('getThemeSongs', 'itemId', itemId);
|
|
686
|
+
const localVarPath = `/Items/{itemId}/ThemeSongs`
|
|
687
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
688
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
689
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
690
|
+
let baseOptions;
|
|
691
|
+
if (configuration) {
|
|
692
|
+
baseOptions = configuration.baseOptions;
|
|
693
|
+
}
|
|
694
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
695
|
+
const localVarHeaderParameter = {};
|
|
696
|
+
const localVarQueryParameter = {};
|
|
697
|
+
// authentication CustomAuthentication required
|
|
698
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
699
|
+
if (userId !== undefined) {
|
|
700
|
+
localVarQueryParameter['userId'] = userId;
|
|
701
|
+
}
|
|
702
|
+
if (inheritFromParent !== undefined) {
|
|
703
|
+
localVarQueryParameter['inheritFromParent'] = inheritFromParent;
|
|
704
|
+
}
|
|
705
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
706
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
707
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
708
|
+
return {
|
|
709
|
+
url: toPathString(localVarUrlObj),
|
|
710
|
+
options: localVarRequestOptions,
|
|
711
|
+
};
|
|
712
|
+
}),
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @summary Get theme videos for an item.
|
|
716
|
+
* @param {string} itemId The item id.
|
|
717
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
718
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
719
|
+
* @param {*} [options] Override http request option.
|
|
720
|
+
* @throws {RequiredError}
|
|
721
|
+
*/
|
|
722
|
+
getThemeVideos: (itemId, userId, inheritFromParent, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
723
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
724
|
+
assertParamExists('getThemeVideos', 'itemId', itemId);
|
|
725
|
+
const localVarPath = `/Items/{itemId}/ThemeVideos`
|
|
726
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
727
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
728
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
729
|
+
let baseOptions;
|
|
730
|
+
if (configuration) {
|
|
731
|
+
baseOptions = configuration.baseOptions;
|
|
732
|
+
}
|
|
733
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
734
|
+
const localVarHeaderParameter = {};
|
|
735
|
+
const localVarQueryParameter = {};
|
|
736
|
+
// authentication CustomAuthentication required
|
|
737
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
738
|
+
if (userId !== undefined) {
|
|
739
|
+
localVarQueryParameter['userId'] = userId;
|
|
740
|
+
}
|
|
741
|
+
if (inheritFromParent !== undefined) {
|
|
742
|
+
localVarQueryParameter['inheritFromParent'] = inheritFromParent;
|
|
743
|
+
}
|
|
744
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
745
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
746
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
747
|
+
return {
|
|
748
|
+
url: toPathString(localVarUrlObj),
|
|
749
|
+
options: localVarRequestOptions,
|
|
750
|
+
};
|
|
751
|
+
}),
|
|
752
|
+
/**
|
|
753
|
+
*
|
|
754
|
+
* @summary Reports that new movies have been added by an external source.
|
|
755
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
756
|
+
* @param {string} [imdbId] The imdbId.
|
|
757
|
+
* @param {*} [options] Override http request option.
|
|
758
|
+
* @throws {RequiredError}
|
|
759
|
+
*/
|
|
760
|
+
postAddedMovies: (tmdbId, imdbId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
761
|
+
const localVarPath = `/Library/Movies/Added`;
|
|
762
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
763
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
764
|
+
let baseOptions;
|
|
765
|
+
if (configuration) {
|
|
766
|
+
baseOptions = configuration.baseOptions;
|
|
767
|
+
}
|
|
768
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
769
|
+
const localVarHeaderParameter = {};
|
|
770
|
+
const localVarQueryParameter = {};
|
|
771
|
+
// authentication CustomAuthentication required
|
|
772
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
773
|
+
if (tmdbId !== undefined) {
|
|
774
|
+
localVarQueryParameter['tmdbId'] = tmdbId;
|
|
775
|
+
}
|
|
776
|
+
if (imdbId !== undefined) {
|
|
777
|
+
localVarQueryParameter['imdbId'] = imdbId;
|
|
778
|
+
}
|
|
779
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
780
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
781
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
782
|
+
return {
|
|
783
|
+
url: toPathString(localVarUrlObj),
|
|
784
|
+
options: localVarRequestOptions,
|
|
785
|
+
};
|
|
786
|
+
}),
|
|
787
|
+
/**
|
|
788
|
+
*
|
|
789
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
790
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
791
|
+
* @param {*} [options] Override http request option.
|
|
792
|
+
* @throws {RequiredError}
|
|
793
|
+
*/
|
|
794
|
+
postAddedSeries: (tvdbId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
795
|
+
const localVarPath = `/Library/Series/Added`;
|
|
796
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
797
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
798
|
+
let baseOptions;
|
|
799
|
+
if (configuration) {
|
|
800
|
+
baseOptions = configuration.baseOptions;
|
|
801
|
+
}
|
|
802
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
803
|
+
const localVarHeaderParameter = {};
|
|
804
|
+
const localVarQueryParameter = {};
|
|
805
|
+
// authentication CustomAuthentication required
|
|
806
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
807
|
+
if (tvdbId !== undefined) {
|
|
808
|
+
localVarQueryParameter['tvdbId'] = tvdbId;
|
|
809
|
+
}
|
|
810
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
811
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
812
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
813
|
+
return {
|
|
814
|
+
url: toPathString(localVarUrlObj),
|
|
815
|
+
options: localVarRequestOptions,
|
|
816
|
+
};
|
|
817
|
+
}),
|
|
818
|
+
/**
|
|
819
|
+
*
|
|
820
|
+
* @summary Reports that new movies have been added by an external source.
|
|
821
|
+
* @param {MediaUpdateInfoDto} mediaUpdateInfoDto The update paths.
|
|
822
|
+
* @param {*} [options] Override http request option.
|
|
823
|
+
* @throws {RequiredError}
|
|
824
|
+
*/
|
|
825
|
+
postUpdatedMedia: (mediaUpdateInfoDto, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
826
|
+
// verify required parameter 'mediaUpdateInfoDto' is not null or undefined
|
|
827
|
+
assertParamExists('postUpdatedMedia', 'mediaUpdateInfoDto', mediaUpdateInfoDto);
|
|
828
|
+
const localVarPath = `/Library/Media/Updated`;
|
|
829
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
830
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
831
|
+
let baseOptions;
|
|
832
|
+
if (configuration) {
|
|
833
|
+
baseOptions = configuration.baseOptions;
|
|
834
|
+
}
|
|
835
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
836
|
+
const localVarHeaderParameter = {};
|
|
837
|
+
const localVarQueryParameter = {};
|
|
838
|
+
// authentication CustomAuthentication required
|
|
839
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
840
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
841
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
842
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
843
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
844
|
+
localVarRequestOptions.data = serializeDataIfNeeded(mediaUpdateInfoDto, localVarRequestOptions, configuration);
|
|
845
|
+
return {
|
|
846
|
+
url: toPathString(localVarUrlObj),
|
|
847
|
+
options: localVarRequestOptions,
|
|
848
|
+
};
|
|
849
|
+
}),
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* @summary Reports that new movies have been added by an external source.
|
|
853
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
854
|
+
* @param {string} [imdbId] The imdbId.
|
|
855
|
+
* @param {*} [options] Override http request option.
|
|
856
|
+
* @throws {RequiredError}
|
|
857
|
+
*/
|
|
858
|
+
postUpdatedMovies: (tmdbId, imdbId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
859
|
+
const localVarPath = `/Library/Movies/Updated`;
|
|
860
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
861
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
862
|
+
let baseOptions;
|
|
863
|
+
if (configuration) {
|
|
864
|
+
baseOptions = configuration.baseOptions;
|
|
865
|
+
}
|
|
866
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
867
|
+
const localVarHeaderParameter = {};
|
|
868
|
+
const localVarQueryParameter = {};
|
|
869
|
+
// authentication CustomAuthentication required
|
|
870
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
871
|
+
if (tmdbId !== undefined) {
|
|
872
|
+
localVarQueryParameter['tmdbId'] = tmdbId;
|
|
873
|
+
}
|
|
874
|
+
if (imdbId !== undefined) {
|
|
875
|
+
localVarQueryParameter['imdbId'] = imdbId;
|
|
876
|
+
}
|
|
877
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
878
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
879
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
880
|
+
return {
|
|
881
|
+
url: toPathString(localVarUrlObj),
|
|
882
|
+
options: localVarRequestOptions,
|
|
883
|
+
};
|
|
884
|
+
}),
|
|
885
|
+
/**
|
|
886
|
+
*
|
|
887
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
888
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
889
|
+
* @param {*} [options] Override http request option.
|
|
890
|
+
* @throws {RequiredError}
|
|
891
|
+
*/
|
|
892
|
+
postUpdatedSeries: (tvdbId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
893
|
+
const localVarPath = `/Library/Series/Updated`;
|
|
894
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
895
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
896
|
+
let baseOptions;
|
|
897
|
+
if (configuration) {
|
|
898
|
+
baseOptions = configuration.baseOptions;
|
|
899
|
+
}
|
|
900
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
901
|
+
const localVarHeaderParameter = {};
|
|
902
|
+
const localVarQueryParameter = {};
|
|
903
|
+
// authentication CustomAuthentication required
|
|
904
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
905
|
+
if (tvdbId !== undefined) {
|
|
906
|
+
localVarQueryParameter['tvdbId'] = tvdbId;
|
|
907
|
+
}
|
|
908
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
909
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
910
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
911
|
+
return {
|
|
912
|
+
url: toPathString(localVarUrlObj),
|
|
913
|
+
options: localVarRequestOptions,
|
|
914
|
+
};
|
|
915
|
+
}),
|
|
916
|
+
/**
|
|
917
|
+
*
|
|
918
|
+
* @summary Starts a library scan.
|
|
919
|
+
* @param {*} [options] Override http request option.
|
|
920
|
+
* @throws {RequiredError}
|
|
921
|
+
*/
|
|
922
|
+
refreshLibrary: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
923
|
+
const localVarPath = `/Library/Refresh`;
|
|
924
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
925
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
926
|
+
let baseOptions;
|
|
927
|
+
if (configuration) {
|
|
928
|
+
baseOptions = configuration.baseOptions;
|
|
929
|
+
}
|
|
930
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
931
|
+
const localVarHeaderParameter = {};
|
|
932
|
+
const localVarQueryParameter = {};
|
|
933
|
+
// authentication CustomAuthentication required
|
|
934
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
935
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
936
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
937
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
938
|
+
return {
|
|
939
|
+
url: toPathString(localVarUrlObj),
|
|
940
|
+
options: localVarRequestOptions,
|
|
941
|
+
};
|
|
942
|
+
}),
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
/**
|
|
946
|
+
* LibraryApi - functional programming interface
|
|
947
|
+
* @export
|
|
948
|
+
*/
|
|
949
|
+
export const LibraryApiFp = function (configuration) {
|
|
950
|
+
const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration);
|
|
951
|
+
return {
|
|
952
|
+
/**
|
|
953
|
+
*
|
|
954
|
+
* @summary Deletes an item from the library and filesystem.
|
|
955
|
+
* @param {string} itemId The item id.
|
|
956
|
+
* @param {*} [options] Override http request option.
|
|
957
|
+
* @throws {RequiredError}
|
|
958
|
+
*/
|
|
959
|
+
deleteItem(itemId, options) {
|
|
960
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
961
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteItem(itemId, options);
|
|
962
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
963
|
+
});
|
|
964
|
+
},
|
|
965
|
+
/**
|
|
966
|
+
*
|
|
967
|
+
* @summary Deletes items from the library and filesystem.
|
|
968
|
+
* @param {Array<string>} [ids] The item ids.
|
|
969
|
+
* @param {*} [options] Override http request option.
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
*/
|
|
972
|
+
deleteItems(ids, options) {
|
|
973
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
974
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteItems(ids, options);
|
|
975
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
976
|
+
});
|
|
977
|
+
},
|
|
978
|
+
/**
|
|
979
|
+
*
|
|
980
|
+
* @summary Gets all parents of an item.
|
|
981
|
+
* @param {string} itemId The item id.
|
|
982
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
983
|
+
* @param {*} [options] Override http request option.
|
|
984
|
+
* @throws {RequiredError}
|
|
985
|
+
*/
|
|
986
|
+
getAncestors(itemId, userId, options) {
|
|
987
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
988
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAncestors(itemId, userId, options);
|
|
989
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
990
|
+
});
|
|
991
|
+
},
|
|
992
|
+
/**
|
|
993
|
+
*
|
|
994
|
+
* @summary Gets critic review for an item.
|
|
995
|
+
* @param {string} itemId
|
|
996
|
+
* @param {*} [options] Override http request option.
|
|
997
|
+
* @deprecated
|
|
998
|
+
* @throws {RequiredError}
|
|
999
|
+
*/
|
|
1000
|
+
getCriticReviews(itemId, options) {
|
|
1001
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1002
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCriticReviews(itemId, options);
|
|
1003
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1004
|
+
});
|
|
1005
|
+
},
|
|
1006
|
+
/**
|
|
1007
|
+
*
|
|
1008
|
+
* @summary Downloads item media.
|
|
1009
|
+
* @param {string} itemId The item id.
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
*/
|
|
1013
|
+
getDownload(itemId, options) {
|
|
1014
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1015
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDownload(itemId, options);
|
|
1016
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1017
|
+
});
|
|
1018
|
+
},
|
|
1019
|
+
/**
|
|
1020
|
+
*
|
|
1021
|
+
* @summary Get the original file of an item.
|
|
1022
|
+
* @param {string} itemId The item id.
|
|
1023
|
+
* @param {*} [options] Override http request option.
|
|
1024
|
+
* @throws {RequiredError}
|
|
1025
|
+
*/
|
|
1026
|
+
getFile(itemId, options) {
|
|
1027
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1028
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFile(itemId, options);
|
|
1029
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1030
|
+
});
|
|
1031
|
+
},
|
|
1032
|
+
/**
|
|
1033
|
+
*
|
|
1034
|
+
* @summary Get item counts.
|
|
1035
|
+
* @param {string} [userId] Optional. Get counts from a specific user\'s library.
|
|
1036
|
+
* @param {boolean} [isFavorite] Optional. Get counts of favorite items.
|
|
1037
|
+
* @param {*} [options] Override http request option.
|
|
1038
|
+
* @throws {RequiredError}
|
|
1039
|
+
*/
|
|
1040
|
+
getItemCounts(userId, isFavorite, options) {
|
|
1041
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1042
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getItemCounts(userId, isFavorite, options);
|
|
1043
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1044
|
+
});
|
|
1045
|
+
},
|
|
1046
|
+
/**
|
|
1047
|
+
*
|
|
1048
|
+
* @summary Gets the library options info.
|
|
1049
|
+
* @param {string} [libraryContentType] Library content type.
|
|
1050
|
+
* @param {boolean} [isNewLibrary] Whether this is a new library.
|
|
1051
|
+
* @param {*} [options] Override http request option.
|
|
1052
|
+
* @throws {RequiredError}
|
|
1053
|
+
*/
|
|
1054
|
+
getLibraryOptionsInfo(libraryContentType, isNewLibrary, options) {
|
|
1055
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1056
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options);
|
|
1057
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1058
|
+
});
|
|
1059
|
+
},
|
|
1060
|
+
/**
|
|
1061
|
+
*
|
|
1062
|
+
* @summary Gets all user media folders.
|
|
1063
|
+
* @param {boolean} [isHidden] Optional. Filter by folders that are marked hidden, or not.
|
|
1064
|
+
* @param {*} [options] Override http request option.
|
|
1065
|
+
* @throws {RequiredError}
|
|
1066
|
+
*/
|
|
1067
|
+
getMediaFolders(isHidden, options) {
|
|
1068
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1069
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMediaFolders(isHidden, options);
|
|
1070
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1071
|
+
});
|
|
1072
|
+
},
|
|
1073
|
+
/**
|
|
1074
|
+
*
|
|
1075
|
+
* @summary Gets a list of physical paths from virtual folders.
|
|
1076
|
+
* @param {*} [options] Override http request option.
|
|
1077
|
+
* @throws {RequiredError}
|
|
1078
|
+
*/
|
|
1079
|
+
getPhysicalPaths(options) {
|
|
1080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1081
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPhysicalPaths(options);
|
|
1082
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1083
|
+
});
|
|
1084
|
+
},
|
|
1085
|
+
/**
|
|
1086
|
+
*
|
|
1087
|
+
* @summary Gets similar items.
|
|
1088
|
+
* @param {string} itemId The item id.
|
|
1089
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1090
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1091
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1092
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1093
|
+
* @param {*} [options] Override http request option.
|
|
1094
|
+
* @throws {RequiredError}
|
|
1095
|
+
*/
|
|
1096
|
+
getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1097
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1098
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1099
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1100
|
+
});
|
|
1101
|
+
},
|
|
1102
|
+
/**
|
|
1103
|
+
*
|
|
1104
|
+
* @summary Gets similar items.
|
|
1105
|
+
* @param {string} itemId The item id.
|
|
1106
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1107
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1108
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1109
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1110
|
+
* @param {*} [options] Override http request option.
|
|
1111
|
+
* @throws {RequiredError}
|
|
1112
|
+
*/
|
|
1113
|
+
getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1115
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1116
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1117
|
+
});
|
|
1118
|
+
},
|
|
1119
|
+
/**
|
|
1120
|
+
*
|
|
1121
|
+
* @summary Gets similar items.
|
|
1122
|
+
* @param {string} itemId The item id.
|
|
1123
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1124
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1125
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1126
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1127
|
+
* @param {*} [options] Override http request option.
|
|
1128
|
+
* @throws {RequiredError}
|
|
1129
|
+
*/
|
|
1130
|
+
getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1133
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1134
|
+
});
|
|
1135
|
+
},
|
|
1136
|
+
/**
|
|
1137
|
+
*
|
|
1138
|
+
* @summary Gets similar items.
|
|
1139
|
+
* @param {string} itemId The item id.
|
|
1140
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1141
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1142
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1143
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1144
|
+
* @param {*} [options] Override http request option.
|
|
1145
|
+
* @throws {RequiredError}
|
|
1146
|
+
*/
|
|
1147
|
+
getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1149
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1150
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1151
|
+
});
|
|
1152
|
+
},
|
|
1153
|
+
/**
|
|
1154
|
+
*
|
|
1155
|
+
* @summary Gets similar items.
|
|
1156
|
+
* @param {string} itemId The item id.
|
|
1157
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1158
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1159
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1160
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1161
|
+
* @param {*} [options] Override http request option.
|
|
1162
|
+
* @throws {RequiredError}
|
|
1163
|
+
*/
|
|
1164
|
+
getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1166
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1167
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1168
|
+
});
|
|
1169
|
+
},
|
|
1170
|
+
/**
|
|
1171
|
+
*
|
|
1172
|
+
* @summary Gets similar items.
|
|
1173
|
+
* @param {string} itemId The item id.
|
|
1174
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1175
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1176
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1177
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1178
|
+
* @param {*} [options] Override http request option.
|
|
1179
|
+
* @throws {RequiredError}
|
|
1180
|
+
*/
|
|
1181
|
+
getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1183
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options);
|
|
1184
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1185
|
+
});
|
|
1186
|
+
},
|
|
1187
|
+
/**
|
|
1188
|
+
*
|
|
1189
|
+
* @summary Get theme songs and videos for an item.
|
|
1190
|
+
* @param {string} itemId The item id.
|
|
1191
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1192
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1193
|
+
* @param {*} [options] Override http request option.
|
|
1194
|
+
* @throws {RequiredError}
|
|
1195
|
+
*/
|
|
1196
|
+
getThemeMedia(itemId, userId, inheritFromParent, options) {
|
|
1197
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1198
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThemeMedia(itemId, userId, inheritFromParent, options);
|
|
1199
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1200
|
+
});
|
|
1201
|
+
},
|
|
1202
|
+
/**
|
|
1203
|
+
*
|
|
1204
|
+
* @summary Get theme songs for an item.
|
|
1205
|
+
* @param {string} itemId The item id.
|
|
1206
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1207
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
*/
|
|
1211
|
+
getThemeSongs(itemId, userId, inheritFromParent, options) {
|
|
1212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1213
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThemeSongs(itemId, userId, inheritFromParent, options);
|
|
1214
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1215
|
+
});
|
|
1216
|
+
},
|
|
1217
|
+
/**
|
|
1218
|
+
*
|
|
1219
|
+
* @summary Get theme videos for an item.
|
|
1220
|
+
* @param {string} itemId The item id.
|
|
1221
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1222
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1223
|
+
* @param {*} [options] Override http request option.
|
|
1224
|
+
* @throws {RequiredError}
|
|
1225
|
+
*/
|
|
1226
|
+
getThemeVideos(itemId, userId, inheritFromParent, options) {
|
|
1227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1228
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThemeVideos(itemId, userId, inheritFromParent, options);
|
|
1229
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1230
|
+
});
|
|
1231
|
+
},
|
|
1232
|
+
/**
|
|
1233
|
+
*
|
|
1234
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1235
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
1236
|
+
* @param {string} [imdbId] The imdbId.
|
|
1237
|
+
* @param {*} [options] Override http request option.
|
|
1238
|
+
* @throws {RequiredError}
|
|
1239
|
+
*/
|
|
1240
|
+
postAddedMovies(tmdbId, imdbId, options) {
|
|
1241
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1242
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postAddedMovies(tmdbId, imdbId, options);
|
|
1243
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1244
|
+
});
|
|
1245
|
+
},
|
|
1246
|
+
/**
|
|
1247
|
+
*
|
|
1248
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1249
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
1250
|
+
* @param {*} [options] Override http request option.
|
|
1251
|
+
* @throws {RequiredError}
|
|
1252
|
+
*/
|
|
1253
|
+
postAddedSeries(tvdbId, options) {
|
|
1254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1255
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postAddedSeries(tvdbId, options);
|
|
1256
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1257
|
+
});
|
|
1258
|
+
},
|
|
1259
|
+
/**
|
|
1260
|
+
*
|
|
1261
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1262
|
+
* @param {MediaUpdateInfoDto} mediaUpdateInfoDto The update paths.
|
|
1263
|
+
* @param {*} [options] Override http request option.
|
|
1264
|
+
* @throws {RequiredError}
|
|
1265
|
+
*/
|
|
1266
|
+
postUpdatedMedia(mediaUpdateInfoDto, options) {
|
|
1267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1268
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postUpdatedMedia(mediaUpdateInfoDto, options);
|
|
1269
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1270
|
+
});
|
|
1271
|
+
},
|
|
1272
|
+
/**
|
|
1273
|
+
*
|
|
1274
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1275
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
1276
|
+
* @param {string} [imdbId] The imdbId.
|
|
1277
|
+
* @param {*} [options] Override http request option.
|
|
1278
|
+
* @throws {RequiredError}
|
|
1279
|
+
*/
|
|
1280
|
+
postUpdatedMovies(tmdbId, imdbId, options) {
|
|
1281
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1282
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postUpdatedMovies(tmdbId, imdbId, options);
|
|
1283
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1284
|
+
});
|
|
1285
|
+
},
|
|
1286
|
+
/**
|
|
1287
|
+
*
|
|
1288
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1289
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
1290
|
+
* @param {*} [options] Override http request option.
|
|
1291
|
+
* @throws {RequiredError}
|
|
1292
|
+
*/
|
|
1293
|
+
postUpdatedSeries(tvdbId, options) {
|
|
1294
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1295
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postUpdatedSeries(tvdbId, options);
|
|
1296
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1297
|
+
});
|
|
1298
|
+
},
|
|
1299
|
+
/**
|
|
1300
|
+
*
|
|
1301
|
+
* @summary Starts a library scan.
|
|
1302
|
+
* @param {*} [options] Override http request option.
|
|
1303
|
+
* @throws {RequiredError}
|
|
1304
|
+
*/
|
|
1305
|
+
refreshLibrary(options) {
|
|
1306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1307
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.refreshLibrary(options);
|
|
1308
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1309
|
+
});
|
|
1310
|
+
},
|
|
1311
|
+
};
|
|
1312
|
+
};
|
|
1313
|
+
/**
|
|
1314
|
+
* LibraryApi - factory interface
|
|
1315
|
+
* @export
|
|
1316
|
+
*/
|
|
1317
|
+
export const LibraryApiFactory = function (configuration, basePath, axios) {
|
|
1318
|
+
const localVarFp = LibraryApiFp(configuration);
|
|
1319
|
+
return {
|
|
1320
|
+
/**
|
|
1321
|
+
*
|
|
1322
|
+
* @summary Deletes an item from the library and filesystem.
|
|
1323
|
+
* @param {string} itemId The item id.
|
|
1324
|
+
* @param {*} [options] Override http request option.
|
|
1325
|
+
* @throws {RequiredError}
|
|
1326
|
+
*/
|
|
1327
|
+
deleteItem(itemId, options) {
|
|
1328
|
+
return localVarFp.deleteItem(itemId, options).then((request) => request(axios, basePath));
|
|
1329
|
+
},
|
|
1330
|
+
/**
|
|
1331
|
+
*
|
|
1332
|
+
* @summary Deletes items from the library and filesystem.
|
|
1333
|
+
* @param {Array<string>} [ids] The item ids.
|
|
1334
|
+
* @param {*} [options] Override http request option.
|
|
1335
|
+
* @throws {RequiredError}
|
|
1336
|
+
*/
|
|
1337
|
+
deleteItems(ids, options) {
|
|
1338
|
+
return localVarFp.deleteItems(ids, options).then((request) => request(axios, basePath));
|
|
1339
|
+
},
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
* @summary Gets all parents of an item.
|
|
1343
|
+
* @param {string} itemId The item id.
|
|
1344
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1345
|
+
* @param {*} [options] Override http request option.
|
|
1346
|
+
* @throws {RequiredError}
|
|
1347
|
+
*/
|
|
1348
|
+
getAncestors(itemId, userId, options) {
|
|
1349
|
+
return localVarFp.getAncestors(itemId, userId, options).then((request) => request(axios, basePath));
|
|
1350
|
+
},
|
|
1351
|
+
/**
|
|
1352
|
+
*
|
|
1353
|
+
* @summary Gets critic review for an item.
|
|
1354
|
+
* @param {string} itemId
|
|
1355
|
+
* @param {*} [options] Override http request option.
|
|
1356
|
+
* @deprecated
|
|
1357
|
+
* @throws {RequiredError}
|
|
1358
|
+
*/
|
|
1359
|
+
getCriticReviews(itemId, options) {
|
|
1360
|
+
return localVarFp.getCriticReviews(itemId, options).then((request) => request(axios, basePath));
|
|
1361
|
+
},
|
|
1362
|
+
/**
|
|
1363
|
+
*
|
|
1364
|
+
* @summary Downloads item media.
|
|
1365
|
+
* @param {string} itemId The item id.
|
|
1366
|
+
* @param {*} [options] Override http request option.
|
|
1367
|
+
* @throws {RequiredError}
|
|
1368
|
+
*/
|
|
1369
|
+
getDownload(itemId, options) {
|
|
1370
|
+
return localVarFp.getDownload(itemId, options).then((request) => request(axios, basePath));
|
|
1371
|
+
},
|
|
1372
|
+
/**
|
|
1373
|
+
*
|
|
1374
|
+
* @summary Get the original file of an item.
|
|
1375
|
+
* @param {string} itemId The item id.
|
|
1376
|
+
* @param {*} [options] Override http request option.
|
|
1377
|
+
* @throws {RequiredError}
|
|
1378
|
+
*/
|
|
1379
|
+
getFile(itemId, options) {
|
|
1380
|
+
return localVarFp.getFile(itemId, options).then((request) => request(axios, basePath));
|
|
1381
|
+
},
|
|
1382
|
+
/**
|
|
1383
|
+
*
|
|
1384
|
+
* @summary Get item counts.
|
|
1385
|
+
* @param {string} [userId] Optional. Get counts from a specific user\'s library.
|
|
1386
|
+
* @param {boolean} [isFavorite] Optional. Get counts of favorite items.
|
|
1387
|
+
* @param {*} [options] Override http request option.
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
*/
|
|
1390
|
+
getItemCounts(userId, isFavorite, options) {
|
|
1391
|
+
return localVarFp.getItemCounts(userId, isFavorite, options).then((request) => request(axios, basePath));
|
|
1392
|
+
},
|
|
1393
|
+
/**
|
|
1394
|
+
*
|
|
1395
|
+
* @summary Gets the library options info.
|
|
1396
|
+
* @param {string} [libraryContentType] Library content type.
|
|
1397
|
+
* @param {boolean} [isNewLibrary] Whether this is a new library.
|
|
1398
|
+
* @param {*} [options] Override http request option.
|
|
1399
|
+
* @throws {RequiredError}
|
|
1400
|
+
*/
|
|
1401
|
+
getLibraryOptionsInfo(libraryContentType, isNewLibrary, options) {
|
|
1402
|
+
return localVarFp.getLibraryOptionsInfo(libraryContentType, isNewLibrary, options).then((request) => request(axios, basePath));
|
|
1403
|
+
},
|
|
1404
|
+
/**
|
|
1405
|
+
*
|
|
1406
|
+
* @summary Gets all user media folders.
|
|
1407
|
+
* @param {boolean} [isHidden] Optional. Filter by folders that are marked hidden, or not.
|
|
1408
|
+
* @param {*} [options] Override http request option.
|
|
1409
|
+
* @throws {RequiredError}
|
|
1410
|
+
*/
|
|
1411
|
+
getMediaFolders(isHidden, options) {
|
|
1412
|
+
return localVarFp.getMediaFolders(isHidden, options).then((request) => request(axios, basePath));
|
|
1413
|
+
},
|
|
1414
|
+
/**
|
|
1415
|
+
*
|
|
1416
|
+
* @summary Gets a list of physical paths from virtual folders.
|
|
1417
|
+
* @param {*} [options] Override http request option.
|
|
1418
|
+
* @throws {RequiredError}
|
|
1419
|
+
*/
|
|
1420
|
+
getPhysicalPaths(options) {
|
|
1421
|
+
return localVarFp.getPhysicalPaths(options).then((request) => request(axios, basePath));
|
|
1422
|
+
},
|
|
1423
|
+
/**
|
|
1424
|
+
*
|
|
1425
|
+
* @summary Gets similar items.
|
|
1426
|
+
* @param {string} itemId The item id.
|
|
1427
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1428
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1429
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1430
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1431
|
+
* @param {*} [options] Override http request option.
|
|
1432
|
+
* @throws {RequiredError}
|
|
1433
|
+
*/
|
|
1434
|
+
getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1435
|
+
return localVarFp.getSimilarAlbums(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1436
|
+
},
|
|
1437
|
+
/**
|
|
1438
|
+
*
|
|
1439
|
+
* @summary Gets similar items.
|
|
1440
|
+
* @param {string} itemId The item id.
|
|
1441
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1442
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1443
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1444
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1445
|
+
* @param {*} [options] Override http request option.
|
|
1446
|
+
* @throws {RequiredError}
|
|
1447
|
+
*/
|
|
1448
|
+
getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1449
|
+
return localVarFp.getSimilarArtists(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1450
|
+
},
|
|
1451
|
+
/**
|
|
1452
|
+
*
|
|
1453
|
+
* @summary Gets similar items.
|
|
1454
|
+
* @param {string} itemId The item id.
|
|
1455
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1456
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1457
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1458
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1459
|
+
* @param {*} [options] Override http request option.
|
|
1460
|
+
* @throws {RequiredError}
|
|
1461
|
+
*/
|
|
1462
|
+
getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1463
|
+
return localVarFp.getSimilarItems(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1464
|
+
},
|
|
1465
|
+
/**
|
|
1466
|
+
*
|
|
1467
|
+
* @summary Gets similar items.
|
|
1468
|
+
* @param {string} itemId The item id.
|
|
1469
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1470
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1471
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1472
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1473
|
+
* @param {*} [options] Override http request option.
|
|
1474
|
+
* @throws {RequiredError}
|
|
1475
|
+
*/
|
|
1476
|
+
getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1477
|
+
return localVarFp.getSimilarMovies(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1478
|
+
},
|
|
1479
|
+
/**
|
|
1480
|
+
*
|
|
1481
|
+
* @summary Gets similar items.
|
|
1482
|
+
* @param {string} itemId The item id.
|
|
1483
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1484
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1485
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1486
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1487
|
+
* @param {*} [options] Override http request option.
|
|
1488
|
+
* @throws {RequiredError}
|
|
1489
|
+
*/
|
|
1490
|
+
getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1491
|
+
return localVarFp.getSimilarShows(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1492
|
+
},
|
|
1493
|
+
/**
|
|
1494
|
+
*
|
|
1495
|
+
* @summary Gets similar items.
|
|
1496
|
+
* @param {string} itemId The item id.
|
|
1497
|
+
* @param {Array<string>} [excludeArtistIds] Exclude artist ids.
|
|
1498
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1499
|
+
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
1500
|
+
* @param {Array<ItemFields>} [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, TrailerUrls.
|
|
1501
|
+
* @param {*} [options] Override http request option.
|
|
1502
|
+
* @throws {RequiredError}
|
|
1503
|
+
*/
|
|
1504
|
+
getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options) {
|
|
1505
|
+
return localVarFp.getSimilarTrailers(itemId, excludeArtistIds, userId, limit, fields, options).then((request) => request(axios, basePath));
|
|
1506
|
+
},
|
|
1507
|
+
/**
|
|
1508
|
+
*
|
|
1509
|
+
* @summary Get theme songs and videos for an item.
|
|
1510
|
+
* @param {string} itemId The item id.
|
|
1511
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1512
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1513
|
+
* @param {*} [options] Override http request option.
|
|
1514
|
+
* @throws {RequiredError}
|
|
1515
|
+
*/
|
|
1516
|
+
getThemeMedia(itemId, userId, inheritFromParent, options) {
|
|
1517
|
+
return localVarFp.getThemeMedia(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
|
|
1518
|
+
},
|
|
1519
|
+
/**
|
|
1520
|
+
*
|
|
1521
|
+
* @summary Get theme songs for an item.
|
|
1522
|
+
* @param {string} itemId The item id.
|
|
1523
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1524
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1525
|
+
* @param {*} [options] Override http request option.
|
|
1526
|
+
* @throws {RequiredError}
|
|
1527
|
+
*/
|
|
1528
|
+
getThemeSongs(itemId, userId, inheritFromParent, options) {
|
|
1529
|
+
return localVarFp.getThemeSongs(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
|
|
1530
|
+
},
|
|
1531
|
+
/**
|
|
1532
|
+
*
|
|
1533
|
+
* @summary Get theme videos for an item.
|
|
1534
|
+
* @param {string} itemId The item id.
|
|
1535
|
+
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
1536
|
+
* @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media.
|
|
1537
|
+
* @param {*} [options] Override http request option.
|
|
1538
|
+
* @throws {RequiredError}
|
|
1539
|
+
*/
|
|
1540
|
+
getThemeVideos(itemId, userId, inheritFromParent, options) {
|
|
1541
|
+
return localVarFp.getThemeVideos(itemId, userId, inheritFromParent, options).then((request) => request(axios, basePath));
|
|
1542
|
+
},
|
|
1543
|
+
/**
|
|
1544
|
+
*
|
|
1545
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1546
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
1547
|
+
* @param {string} [imdbId] The imdbId.
|
|
1548
|
+
* @param {*} [options] Override http request option.
|
|
1549
|
+
* @throws {RequiredError}
|
|
1550
|
+
*/
|
|
1551
|
+
postAddedMovies(tmdbId, imdbId, options) {
|
|
1552
|
+
return localVarFp.postAddedMovies(tmdbId, imdbId, options).then((request) => request(axios, basePath));
|
|
1553
|
+
},
|
|
1554
|
+
/**
|
|
1555
|
+
*
|
|
1556
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1557
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
1558
|
+
* @param {*} [options] Override http request option.
|
|
1559
|
+
* @throws {RequiredError}
|
|
1560
|
+
*/
|
|
1561
|
+
postAddedSeries(tvdbId, options) {
|
|
1562
|
+
return localVarFp.postAddedSeries(tvdbId, options).then((request) => request(axios, basePath));
|
|
1563
|
+
},
|
|
1564
|
+
/**
|
|
1565
|
+
*
|
|
1566
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1567
|
+
* @param {MediaUpdateInfoDto} mediaUpdateInfoDto The update paths.
|
|
1568
|
+
* @param {*} [options] Override http request option.
|
|
1569
|
+
* @throws {RequiredError}
|
|
1570
|
+
*/
|
|
1571
|
+
postUpdatedMedia(mediaUpdateInfoDto, options) {
|
|
1572
|
+
return localVarFp.postUpdatedMedia(mediaUpdateInfoDto, options).then((request) => request(axios, basePath));
|
|
1573
|
+
},
|
|
1574
|
+
/**
|
|
1575
|
+
*
|
|
1576
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1577
|
+
* @param {string} [tmdbId] The tmdbId.
|
|
1578
|
+
* @param {string} [imdbId] The imdbId.
|
|
1579
|
+
* @param {*} [options] Override http request option.
|
|
1580
|
+
* @throws {RequiredError}
|
|
1581
|
+
*/
|
|
1582
|
+
postUpdatedMovies(tmdbId, imdbId, options) {
|
|
1583
|
+
return localVarFp.postUpdatedMovies(tmdbId, imdbId, options).then((request) => request(axios, basePath));
|
|
1584
|
+
},
|
|
1585
|
+
/**
|
|
1586
|
+
*
|
|
1587
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1588
|
+
* @param {string} [tvdbId] The tvdbId.
|
|
1589
|
+
* @param {*} [options] Override http request option.
|
|
1590
|
+
* @throws {RequiredError}
|
|
1591
|
+
*/
|
|
1592
|
+
postUpdatedSeries(tvdbId, options) {
|
|
1593
|
+
return localVarFp.postUpdatedSeries(tvdbId, options).then((request) => request(axios, basePath));
|
|
1594
|
+
},
|
|
1595
|
+
/**
|
|
1596
|
+
*
|
|
1597
|
+
* @summary Starts a library scan.
|
|
1598
|
+
* @param {*} [options] Override http request option.
|
|
1599
|
+
* @throws {RequiredError}
|
|
1600
|
+
*/
|
|
1601
|
+
refreshLibrary(options) {
|
|
1602
|
+
return localVarFp.refreshLibrary(options).then((request) => request(axios, basePath));
|
|
1603
|
+
},
|
|
1604
|
+
};
|
|
1605
|
+
};
|
|
1606
|
+
/**
|
|
1607
|
+
* LibraryApi - object-oriented interface
|
|
1608
|
+
* @export
|
|
1609
|
+
* @class LibraryApi
|
|
1610
|
+
* @extends {BaseAPI}
|
|
1611
|
+
*/
|
|
1612
|
+
export class LibraryApi extends BaseAPI {
|
|
1613
|
+
/**
|
|
1614
|
+
*
|
|
1615
|
+
* @summary Deletes an item from the library and filesystem.
|
|
1616
|
+
* @param {LibraryApiDeleteItemRequest} requestParameters Request parameters.
|
|
1617
|
+
* @param {*} [options] Override http request option.
|
|
1618
|
+
* @throws {RequiredError}
|
|
1619
|
+
* @memberof LibraryApi
|
|
1620
|
+
*/
|
|
1621
|
+
deleteItem(requestParameters, options) {
|
|
1622
|
+
return LibraryApiFp(this.configuration).deleteItem(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
1623
|
+
}
|
|
1624
|
+
/**
|
|
1625
|
+
*
|
|
1626
|
+
* @summary Deletes items from the library and filesystem.
|
|
1627
|
+
* @param {LibraryApiDeleteItemsRequest} requestParameters Request parameters.
|
|
1628
|
+
* @param {*} [options] Override http request option.
|
|
1629
|
+
* @throws {RequiredError}
|
|
1630
|
+
* @memberof LibraryApi
|
|
1631
|
+
*/
|
|
1632
|
+
deleteItems(requestParameters = {}, options) {
|
|
1633
|
+
return LibraryApiFp(this.configuration).deleteItems(requestParameters.ids, options).then((request) => request(this.axios, this.basePath));
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
*
|
|
1637
|
+
* @summary Gets all parents of an item.
|
|
1638
|
+
* @param {LibraryApiGetAncestorsRequest} requestParameters Request parameters.
|
|
1639
|
+
* @param {*} [options] Override http request option.
|
|
1640
|
+
* @throws {RequiredError}
|
|
1641
|
+
* @memberof LibraryApi
|
|
1642
|
+
*/
|
|
1643
|
+
getAncestors(requestParameters, options) {
|
|
1644
|
+
return LibraryApiFp(this.configuration).getAncestors(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1645
|
+
}
|
|
1646
|
+
/**
|
|
1647
|
+
*
|
|
1648
|
+
* @summary Gets critic review for an item.
|
|
1649
|
+
* @param {LibraryApiGetCriticReviewsRequest} requestParameters Request parameters.
|
|
1650
|
+
* @param {*} [options] Override http request option.
|
|
1651
|
+
* @deprecated
|
|
1652
|
+
* @throws {RequiredError}
|
|
1653
|
+
* @memberof LibraryApi
|
|
1654
|
+
*/
|
|
1655
|
+
getCriticReviews(requestParameters, options) {
|
|
1656
|
+
return LibraryApiFp(this.configuration).getCriticReviews(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
1657
|
+
}
|
|
1658
|
+
/**
|
|
1659
|
+
*
|
|
1660
|
+
* @summary Downloads item media.
|
|
1661
|
+
* @param {LibraryApiGetDownloadRequest} requestParameters Request parameters.
|
|
1662
|
+
* @param {*} [options] Override http request option.
|
|
1663
|
+
* @throws {RequiredError}
|
|
1664
|
+
* @memberof LibraryApi
|
|
1665
|
+
*/
|
|
1666
|
+
getDownload(requestParameters, options) {
|
|
1667
|
+
return LibraryApiFp(this.configuration).getDownload(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
1668
|
+
}
|
|
1669
|
+
/**
|
|
1670
|
+
*
|
|
1671
|
+
* @summary Get the original file of an item.
|
|
1672
|
+
* @param {LibraryApiGetFileRequest} requestParameters Request parameters.
|
|
1673
|
+
* @param {*} [options] Override http request option.
|
|
1674
|
+
* @throws {RequiredError}
|
|
1675
|
+
* @memberof LibraryApi
|
|
1676
|
+
*/
|
|
1677
|
+
getFile(requestParameters, options) {
|
|
1678
|
+
return LibraryApiFp(this.configuration).getFile(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
1679
|
+
}
|
|
1680
|
+
/**
|
|
1681
|
+
*
|
|
1682
|
+
* @summary Get item counts.
|
|
1683
|
+
* @param {LibraryApiGetItemCountsRequest} requestParameters Request parameters.
|
|
1684
|
+
* @param {*} [options] Override http request option.
|
|
1685
|
+
* @throws {RequiredError}
|
|
1686
|
+
* @memberof LibraryApi
|
|
1687
|
+
*/
|
|
1688
|
+
getItemCounts(requestParameters = {}, options) {
|
|
1689
|
+
return LibraryApiFp(this.configuration).getItemCounts(requestParameters.userId, requestParameters.isFavorite, options).then((request) => request(this.axios, this.basePath));
|
|
1690
|
+
}
|
|
1691
|
+
/**
|
|
1692
|
+
*
|
|
1693
|
+
* @summary Gets the library options info.
|
|
1694
|
+
* @param {LibraryApiGetLibraryOptionsInfoRequest} requestParameters Request parameters.
|
|
1695
|
+
* @param {*} [options] Override http request option.
|
|
1696
|
+
* @throws {RequiredError}
|
|
1697
|
+
* @memberof LibraryApi
|
|
1698
|
+
*/
|
|
1699
|
+
getLibraryOptionsInfo(requestParameters = {}, options) {
|
|
1700
|
+
return LibraryApiFp(this.configuration).getLibraryOptionsInfo(requestParameters.libraryContentType, requestParameters.isNewLibrary, options).then((request) => request(this.axios, this.basePath));
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
*
|
|
1704
|
+
* @summary Gets all user media folders.
|
|
1705
|
+
* @param {LibraryApiGetMediaFoldersRequest} requestParameters Request parameters.
|
|
1706
|
+
* @param {*} [options] Override http request option.
|
|
1707
|
+
* @throws {RequiredError}
|
|
1708
|
+
* @memberof LibraryApi
|
|
1709
|
+
*/
|
|
1710
|
+
getMediaFolders(requestParameters = {}, options) {
|
|
1711
|
+
return LibraryApiFp(this.configuration).getMediaFolders(requestParameters.isHidden, options).then((request) => request(this.axios, this.basePath));
|
|
1712
|
+
}
|
|
1713
|
+
/**
|
|
1714
|
+
*
|
|
1715
|
+
* @summary Gets a list of physical paths from virtual folders.
|
|
1716
|
+
* @param {*} [options] Override http request option.
|
|
1717
|
+
* @throws {RequiredError}
|
|
1718
|
+
* @memberof LibraryApi
|
|
1719
|
+
*/
|
|
1720
|
+
getPhysicalPaths(options) {
|
|
1721
|
+
return LibraryApiFp(this.configuration).getPhysicalPaths(options).then((request) => request(this.axios, this.basePath));
|
|
1722
|
+
}
|
|
1723
|
+
/**
|
|
1724
|
+
*
|
|
1725
|
+
* @summary Gets similar items.
|
|
1726
|
+
* @param {LibraryApiGetSimilarAlbumsRequest} requestParameters Request parameters.
|
|
1727
|
+
* @param {*} [options] Override http request option.
|
|
1728
|
+
* @throws {RequiredError}
|
|
1729
|
+
* @memberof LibraryApi
|
|
1730
|
+
*/
|
|
1731
|
+
getSimilarAlbums(requestParameters, options) {
|
|
1732
|
+
return LibraryApiFp(this.configuration).getSimilarAlbums(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
1733
|
+
}
|
|
1734
|
+
/**
|
|
1735
|
+
*
|
|
1736
|
+
* @summary Gets similar items.
|
|
1737
|
+
* @param {LibraryApiGetSimilarArtistsRequest} requestParameters Request parameters.
|
|
1738
|
+
* @param {*} [options] Override http request option.
|
|
1739
|
+
* @throws {RequiredError}
|
|
1740
|
+
* @memberof LibraryApi
|
|
1741
|
+
*/
|
|
1742
|
+
getSimilarArtists(requestParameters, options) {
|
|
1743
|
+
return LibraryApiFp(this.configuration).getSimilarArtists(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
1744
|
+
}
|
|
1745
|
+
/**
|
|
1746
|
+
*
|
|
1747
|
+
* @summary Gets similar items.
|
|
1748
|
+
* @param {LibraryApiGetSimilarItemsRequest} requestParameters Request parameters.
|
|
1749
|
+
* @param {*} [options] Override http request option.
|
|
1750
|
+
* @throws {RequiredError}
|
|
1751
|
+
* @memberof LibraryApi
|
|
1752
|
+
*/
|
|
1753
|
+
getSimilarItems(requestParameters, options) {
|
|
1754
|
+
return LibraryApiFp(this.configuration).getSimilarItems(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
1755
|
+
}
|
|
1756
|
+
/**
|
|
1757
|
+
*
|
|
1758
|
+
* @summary Gets similar items.
|
|
1759
|
+
* @param {LibraryApiGetSimilarMoviesRequest} requestParameters Request parameters.
|
|
1760
|
+
* @param {*} [options] Override http request option.
|
|
1761
|
+
* @throws {RequiredError}
|
|
1762
|
+
* @memberof LibraryApi
|
|
1763
|
+
*/
|
|
1764
|
+
getSimilarMovies(requestParameters, options) {
|
|
1765
|
+
return LibraryApiFp(this.configuration).getSimilarMovies(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
1766
|
+
}
|
|
1767
|
+
/**
|
|
1768
|
+
*
|
|
1769
|
+
* @summary Gets similar items.
|
|
1770
|
+
* @param {LibraryApiGetSimilarShowsRequest} requestParameters Request parameters.
|
|
1771
|
+
* @param {*} [options] Override http request option.
|
|
1772
|
+
* @throws {RequiredError}
|
|
1773
|
+
* @memberof LibraryApi
|
|
1774
|
+
*/
|
|
1775
|
+
getSimilarShows(requestParameters, options) {
|
|
1776
|
+
return LibraryApiFp(this.configuration).getSimilarShows(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
1777
|
+
}
|
|
1778
|
+
/**
|
|
1779
|
+
*
|
|
1780
|
+
* @summary Gets similar items.
|
|
1781
|
+
* @param {LibraryApiGetSimilarTrailersRequest} requestParameters Request parameters.
|
|
1782
|
+
* @param {*} [options] Override http request option.
|
|
1783
|
+
* @throws {RequiredError}
|
|
1784
|
+
* @memberof LibraryApi
|
|
1785
|
+
*/
|
|
1786
|
+
getSimilarTrailers(requestParameters, options) {
|
|
1787
|
+
return LibraryApiFp(this.configuration).getSimilarTrailers(requestParameters.itemId, requestParameters.excludeArtistIds, requestParameters.userId, requestParameters.limit, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
*
|
|
1791
|
+
* @summary Get theme songs and videos for an item.
|
|
1792
|
+
* @param {LibraryApiGetThemeMediaRequest} requestParameters Request parameters.
|
|
1793
|
+
* @param {*} [options] Override http request option.
|
|
1794
|
+
* @throws {RequiredError}
|
|
1795
|
+
* @memberof LibraryApi
|
|
1796
|
+
*/
|
|
1797
|
+
getThemeMedia(requestParameters, options) {
|
|
1798
|
+
return LibraryApiFp(this.configuration).getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
|
|
1799
|
+
}
|
|
1800
|
+
/**
|
|
1801
|
+
*
|
|
1802
|
+
* @summary Get theme songs for an item.
|
|
1803
|
+
* @param {LibraryApiGetThemeSongsRequest} requestParameters Request parameters.
|
|
1804
|
+
* @param {*} [options] Override http request option.
|
|
1805
|
+
* @throws {RequiredError}
|
|
1806
|
+
* @memberof LibraryApi
|
|
1807
|
+
*/
|
|
1808
|
+
getThemeSongs(requestParameters, options) {
|
|
1809
|
+
return LibraryApiFp(this.configuration).getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
*
|
|
1813
|
+
* @summary Get theme videos for an item.
|
|
1814
|
+
* @param {LibraryApiGetThemeVideosRequest} requestParameters Request parameters.
|
|
1815
|
+
* @param {*} [options] Override http request option.
|
|
1816
|
+
* @throws {RequiredError}
|
|
1817
|
+
* @memberof LibraryApi
|
|
1818
|
+
*/
|
|
1819
|
+
getThemeVideos(requestParameters, options) {
|
|
1820
|
+
return LibraryApiFp(this.configuration).getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath));
|
|
1821
|
+
}
|
|
1822
|
+
/**
|
|
1823
|
+
*
|
|
1824
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1825
|
+
* @param {LibraryApiPostAddedMoviesRequest} requestParameters Request parameters.
|
|
1826
|
+
* @param {*} [options] Override http request option.
|
|
1827
|
+
* @throws {RequiredError}
|
|
1828
|
+
* @memberof LibraryApi
|
|
1829
|
+
*/
|
|
1830
|
+
postAddedMovies(requestParameters = {}, options) {
|
|
1831
|
+
return LibraryApiFp(this.configuration).postAddedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then((request) => request(this.axios, this.basePath));
|
|
1832
|
+
}
|
|
1833
|
+
/**
|
|
1834
|
+
*
|
|
1835
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1836
|
+
* @param {LibraryApiPostAddedSeriesRequest} requestParameters Request parameters.
|
|
1837
|
+
* @param {*} [options] Override http request option.
|
|
1838
|
+
* @throws {RequiredError}
|
|
1839
|
+
* @memberof LibraryApi
|
|
1840
|
+
*/
|
|
1841
|
+
postAddedSeries(requestParameters = {}, options) {
|
|
1842
|
+
return LibraryApiFp(this.configuration).postAddedSeries(requestParameters.tvdbId, options).then((request) => request(this.axios, this.basePath));
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
*
|
|
1846
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1847
|
+
* @param {LibraryApiPostUpdatedMediaRequest} requestParameters Request parameters.
|
|
1848
|
+
* @param {*} [options] Override http request option.
|
|
1849
|
+
* @throws {RequiredError}
|
|
1850
|
+
* @memberof LibraryApi
|
|
1851
|
+
*/
|
|
1852
|
+
postUpdatedMedia(requestParameters, options) {
|
|
1853
|
+
return LibraryApiFp(this.configuration).postUpdatedMedia(requestParameters.mediaUpdateInfoDto, options).then((request) => request(this.axios, this.basePath));
|
|
1854
|
+
}
|
|
1855
|
+
/**
|
|
1856
|
+
*
|
|
1857
|
+
* @summary Reports that new movies have been added by an external source.
|
|
1858
|
+
* @param {LibraryApiPostUpdatedMoviesRequest} requestParameters Request parameters.
|
|
1859
|
+
* @param {*} [options] Override http request option.
|
|
1860
|
+
* @throws {RequiredError}
|
|
1861
|
+
* @memberof LibraryApi
|
|
1862
|
+
*/
|
|
1863
|
+
postUpdatedMovies(requestParameters = {}, options) {
|
|
1864
|
+
return LibraryApiFp(this.configuration).postUpdatedMovies(requestParameters.tmdbId, requestParameters.imdbId, options).then((request) => request(this.axios, this.basePath));
|
|
1865
|
+
}
|
|
1866
|
+
/**
|
|
1867
|
+
*
|
|
1868
|
+
* @summary Reports that new episodes of a series have been added by an external source.
|
|
1869
|
+
* @param {LibraryApiPostUpdatedSeriesRequest} requestParameters Request parameters.
|
|
1870
|
+
* @param {*} [options] Override http request option.
|
|
1871
|
+
* @throws {RequiredError}
|
|
1872
|
+
* @memberof LibraryApi
|
|
1873
|
+
*/
|
|
1874
|
+
postUpdatedSeries(requestParameters = {}, options) {
|
|
1875
|
+
return LibraryApiFp(this.configuration).postUpdatedSeries(requestParameters.tvdbId, options).then((request) => request(this.axios, this.basePath));
|
|
1876
|
+
}
|
|
1877
|
+
/**
|
|
1878
|
+
*
|
|
1879
|
+
* @summary Starts a library scan.
|
|
1880
|
+
* @param {*} [options] Override http request option.
|
|
1881
|
+
* @throws {RequiredError}
|
|
1882
|
+
* @memberof LibraryApi
|
|
1883
|
+
*/
|
|
1884
|
+
refreshLibrary(options) {
|
|
1885
|
+
return LibraryApiFp(this.configuration).refreshLibrary(options).then((request) => request(this.axios, this.basePath));
|
|
1886
|
+
}
|
|
1887
|
+
}
|