@jellyfin/sdk 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +5 -0
- package/LICENSE +373 -0
- package/README.md +141 -0
- package/lib/api.d.ts +42 -0
- package/lib/api.js +99 -0
- package/lib/discovery/discovery-service.d.ts +41 -0
- package/lib/discovery/discovery-service.js +112 -0
- package/lib/discovery/index.d.ts +7 -0
- package/lib/discovery/index.js +23 -0
- package/lib/discovery/recommended-server-discovery.d.ts +23 -0
- package/lib/discovery/recommended-server-discovery.js +153 -0
- package/lib/generated-client/api/activity-log-api.d.ts +113 -0
- package/lib/generated-client/api/activity-log-api.js +234 -0
- package/lib/generated-client/api/api-key-api.d.ts +161 -0
- package/lib/generated-client/api/api-key-api.js +374 -0
- package/lib/generated-client/api/artists-api.d.ts +751 -0
- package/lib/generated-client/api/artists-api.js +759 -0
- package/lib/generated-client/api/audio-api.d.ts +1985 -0
- package/lib/generated-client/api/audio-api.js +1582 -0
- package/lib/generated-client/api/branding-api.d.ts +127 -0
- package/lib/generated-client/api/branding-api.js +334 -0
- package/lib/generated-client/api/channels-api.d.ts +419 -0
- package/lib/generated-client/api/channels-api.js +648 -0
- package/lib/generated-client/api/client-log-api.d.ts +86 -0
- package/lib/generated-client/api/client-log-api.js +213 -0
- package/lib/generated-client/api/collection-api.d.ts +223 -0
- package/lib/generated-client/api/collection-api.js +414 -0
- package/lib/generated-client/api/configuration-api.d.ts +293 -0
- package/lib/generated-client/api/configuration-api.js +623 -0
- package/lib/generated-client/api/dashboard-api.d.ts +132 -0
- package/lib/generated-client/api/dashboard-api.js +290 -0
- package/lib/generated-client/api/devices-api.d.ts +291 -0
- package/lib/generated-client/api/devices-api.js +567 -0
- package/lib/generated-client/api/display-preferences-api.d.ts +177 -0
- package/lib/generated-client/api/display-preferences-api.js +335 -0
- package/lib/generated-client/api/dlna-api.d.ts +292 -0
- package/lib/generated-client/api/dlna-api.js +619 -0
- package/lib/generated-client/api/dlna-server-api.d.ts +784 -0
- package/lib/generated-client/api/dlna-server-api.js +1464 -0
- package/lib/generated-client/api/dynamic-hls-api.d.ts +4604 -0
- package/lib/generated-client/api/dynamic-hls-api.js +3611 -0
- package/lib/generated-client/api/environment-api.d.ts +289 -0
- package/lib/generated-client/api/environment-api.js +628 -0
- package/lib/generated-client/api/filter-api.d.ts +242 -0
- package/lib/generated-client/api/filter-api.js +370 -0
- package/lib/generated-client/api/genres-api.d.ts +299 -0
- package/lib/generated-client/api/genres-api.js +405 -0
- package/lib/generated-client/api/hls-segment-api.d.ts +332 -0
- package/lib/generated-client/api/hls-segment-api.js +567 -0
- package/lib/generated-client/api/image-api.d.ts +6744 -0
- package/lib/generated-client/api/image-api.js +6515 -0
- package/lib/generated-client/api/image-by-name-api.d.ts +292 -0
- package/lib/generated-client/api/image-by-name-api.js +601 -0
- package/lib/generated-client/api/instant-mix-api.d.ts +918 -0
- package/lib/generated-client/api/instant-mix-api.js +1138 -0
- package/lib/generated-client/api/item-lookup-api.d.ts +574 -0
- package/lib/generated-client/api/item-lookup-api.js +1065 -0
- package/lib/generated-client/api/item-refresh-api.d.ts +122 -0
- package/lib/generated-client/api/item-refresh-api.js +237 -0
- package/lib/generated-client/api/item-update-api.d.ts +197 -0
- package/lib/generated-client/api/item-update-api.js +392 -0
- package/lib/generated-client/api/items-api.d.ts +1824 -0
- package/lib/generated-client/api/items-api.js +1488 -0
- package/lib/generated-client/api/library-api.d.ts +1482 -0
- package/lib/generated-client/api/library-api.js +2414 -0
- package/lib/generated-client/api/library-structure-api.d.ts +486 -0
- package/lib/generated-client/api/library-structure-api.js +852 -0
- package/lib/generated-client/api/live-tv-api.d.ts +2844 -0
- package/lib/generated-client/api/live-tv-api.js +4165 -0
- package/lib/generated-client/api/localization-api.d.ts +159 -0
- package/lib/generated-client/api/localization-api.js +434 -0
- package/lib/generated-client/api/media-info-api.d.ts +516 -0
- package/lib/generated-client/api/media-info-api.js +711 -0
- package/lib/generated-client/api/movies-api.d.ts +123 -0
- package/lib/generated-client/api/movies-api.js +238 -0
- package/lib/generated-client/api/music-genres-api.d.ts +303 -0
- package/lib/generated-client/api/music-genres-api.js +409 -0
- package/lib/generated-client/api/notifications-api.d.ts +332 -0
- package/lib/generated-client/api/notifications-api.js +698 -0
- package/lib/generated-client/api/package-api.d.ts +319 -0
- package/lib/generated-client/api/package-api.js +639 -0
- package/lib/generated-client/api/persons-api.d.ts +253 -0
- package/lib/generated-client/api/persons-api.js +375 -0
- package/lib/generated-client/api/playlists-api.d.ts +427 -0
- package/lib/generated-client/api/playlists-api.js +649 -0
- package/lib/generated-client/api/playstate-api.d.ts +720 -0
- package/lib/generated-client/api/playstate-api.js +1055 -0
- package/lib/generated-client/api/plugins-api.d.ts +477 -0
- package/lib/generated-client/api/plugins-api.js +898 -0
- package/lib/generated-client/api/quick-connect-api.d.ts +190 -0
- package/lib/generated-client/api/quick-connect-api.js +428 -0
- package/lib/generated-client/api/remote-image-api.d.ts +243 -0
- package/lib/generated-client/api/remote-image-api.js +423 -0
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +289 -0
- package/lib/generated-client/api/scheduled-tasks-api.js +559 -0
- package/lib/generated-client/api/search-api.d.ts +240 -0
- package/lib/generated-client/api/search-api.js +317 -0
- package/lib/generated-client/api/session-api.d.ts +985 -0
- package/lib/generated-client/api/session-api.js +1622 -0
- package/lib/generated-client/api/startup-api.d.ts +296 -0
- package/lib/generated-client/api/startup-api.js +685 -0
- package/lib/generated-client/api/studios-api.d.ts +289 -0
- package/lib/generated-client/api/studios-api.js +399 -0
- package/lib/generated-client/api/subtitle-api.d.ts +764 -0
- package/lib/generated-client/api/subtitle-api.js +1126 -0
- package/lib/generated-client/api/suggestions-api.d.ts +132 -0
- package/lib/generated-client/api/suggestions-api.js +243 -0
- package/lib/generated-client/api/sync-play-api.d.ts +937 -0
- package/lib/generated-client/api/sync-play-api.js +1854 -0
- package/lib/generated-client/api/system-api.d.ts +355 -0
- package/lib/generated-client/api/system-api.js +879 -0
- package/lib/generated-client/api/time-sync-api.d.ts +69 -0
- package/lib/generated-client/api/time-sync-api.js +198 -0
- package/lib/generated-client/api/tmdb-api.d.ts +69 -0
- package/lib/generated-client/api/tmdb-api.js +206 -0
- package/lib/generated-client/api/trailers-api.d.ts +841 -0
- package/lib/generated-client/api/trailers-api.js +720 -0
- package/lib/generated-client/api/tv-shows-api.d.ts +622 -0
- package/lib/generated-client/api/tv-shows-api.js +730 -0
- package/lib/generated-client/api/universal-audio-api.d.ts +437 -0
- package/lib/generated-client/api/universal-audio-api.js +500 -0
- package/lib/generated-client/api/user-api.d.ts +826 -0
- package/lib/generated-client/api/user-api.js +1457 -0
- package/lib/generated-client/api/user-library-api.d.ts +676 -0
- package/lib/generated-client/api/user-library-api.js +1074 -0
- package/lib/generated-client/api/user-views-api.d.ts +160 -0
- package/lib/generated-client/api/user-views-api.js +314 -0
- package/lib/generated-client/api/video-attachments-api.d.ts +103 -0
- package/lib/generated-client/api/video-attachments-api.js +217 -0
- package/lib/generated-client/api/videos-api.d.ts +2205 -0
- package/lib/generated-client/api/videos-api.js +1887 -0
- package/lib/generated-client/api/years-api.d.ts +272 -0
- package/lib/generated-client/api/years-api.js +387 -0
- package/lib/generated-client/api.d.ts +71 -0
- package/lib/generated-client/api.js +89 -0
- package/lib/generated-client/base.d.ts +54 -0
- package/lib/generated-client/base.js +84 -0
- package/lib/generated-client/common.d.ts +64 -0
- package/lib/generated-client/common.js +242 -0
- package/lib/generated-client/configuration.d.ts +82 -0
- package/lib/generated-client/configuration.js +43 -0
- package/lib/generated-client/index.d.ts +13 -0
- package/lib/generated-client/index.js +31 -0
- package/lib/generated-client/models/access-schedule.d.ts +48 -0
- package/lib/generated-client/models/access-schedule.js +14 -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 +14 -0
- package/lib/generated-client/models/activity-log-entry.d.ts +79 -0
- package/lib/generated-client/models/activity-log-entry.js +14 -0
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +24 -0
- package/lib/generated-client/models/add-virtual-folder-dto.js +14 -0
- package/lib/generated-client/models/admin-notification-dto.d.ts +42 -0
- package/lib/generated-client/models/admin-notification-dto.js +14 -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 +14 -0
- package/lib/generated-client/models/album-info.d.ts +106 -0
- package/lib/generated-client/models/album-info.js +14 -0
- package/lib/generated-client/models/all-theme-media-result.d.ts +36 -0
- package/lib/generated-client/models/all-theme-media-result.js +14 -0
- package/lib/generated-client/models/architecture.d.ts +23 -0
- package/lib/generated-client/models/architecture.js +29 -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 +14 -0
- package/lib/generated-client/models/artist-info.d.ts +92 -0
- package/lib/generated-client/models/artist-info.js +14 -0
- package/lib/generated-client/models/authenticate-user-by-name.d.ts +36 -0
- package/lib/generated-client/models/authenticate-user-by-name.js +14 -0
- package/lib/generated-client/models/authentication-info-query-result.d.ts +36 -0
- package/lib/generated-client/models/authentication-info-query-result.js +14 -0
- package/lib/generated-client/models/authentication-info.d.ts +89 -0
- package/lib/generated-client/models/authentication-info.js +14 -0
- package/lib/generated-client/models/authentication-result.d.ts +43 -0
- package/lib/generated-client/models/authentication-result.js +14 -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 +14 -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 +14 -0
- package/lib/generated-client/models/base-item-dto.d.ts +947 -0
- package/lib/generated-client/models/base-item-dto.js +14 -0
- package/lib/generated-client/models/base-item-kind.d.ts +54 -0
- package/lib/generated-client/models/base-item-kind.js +60 -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 +14 -0
- package/lib/generated-client/models/base-item-person.d.ts +54 -0
- package/lib/generated-client/models/base-item-person.js +14 -0
- package/lib/generated-client/models/base-item.d.ts +84 -0
- package/lib/generated-client/models/base-item.js +14 -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 +14 -0
- package/lib/generated-client/models/book-info.d.ts +91 -0
- package/lib/generated-client/models/book-info.js +14 -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 +14 -0
- package/lib/generated-client/models/box-set-info.d.ts +85 -0
- package/lib/generated-client/models/box-set-info.js +14 -0
- package/lib/generated-client/models/branding-options.d.ts +35 -0
- package/lib/generated-client/models/branding-options.js +14 -0
- package/lib/generated-client/models/buffer-request-dto.d.ts +41 -0
- package/lib/generated-client/models/buffer-request-dto.js +14 -0
- package/lib/generated-client/models/channel-features.d.ts +92 -0
- package/lib/generated-client/models/channel-features.js +14 -0
- package/lib/generated-client/models/channel-item-sort-field.d.ts +24 -0
- package/lib/generated-client/models/channel-item-sort-field.js +30 -0
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +44 -0
- package/lib/generated-client/models/channel-mapping-options-dto.js +14 -0
- package/lib/generated-client/models/channel-media-content-type.d.ts +25 -0
- package/lib/generated-client/models/channel-media-content-type.js +31 -0
- package/lib/generated-client/models/channel-media-type.d.ts +20 -0
- package/lib/generated-client/models/channel-media-type.js +26 -0
- package/lib/generated-client/models/channel-type.d.ts +19 -0
- package/lib/generated-client/models/channel-type.js +25 -0
- package/lib/generated-client/models/chapter-info.d.ts +47 -0
- package/lib/generated-client/models/chapter-info.js +14 -0
- package/lib/generated-client/models/client-capabilities-dto.d.ts +79 -0
- package/lib/generated-client/models/client-capabilities-dto.js +14 -0
- package/lib/generated-client/models/client-capabilities.d.ts +79 -0
- package/lib/generated-client/models/client-capabilities.js +14 -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 +14 -0
- package/lib/generated-client/models/codec-profile.d.ts +49 -0
- package/lib/generated-client/models/codec-profile.js +14 -0
- package/lib/generated-client/models/codec-type.d.ts +20 -0
- package/lib/generated-client/models/codec-type.js +26 -0
- package/lib/generated-client/models/collection-creation-result.d.ts +23 -0
- package/lib/generated-client/models/collection-creation-result.js +14 -0
- package/lib/generated-client/models/collection-type-options.d.ts +25 -0
- package/lib/generated-client/models/collection-type-options.js +31 -0
- package/lib/generated-client/models/config-image-types.d.ts +59 -0
- package/lib/generated-client/models/config-image-types.js +14 -0
- package/lib/generated-client/models/configuration-page-info.d.ts +53 -0
- package/lib/generated-client/models/configuration-page-info.js +14 -0
- package/lib/generated-client/models/container-profile.d.ts +37 -0
- package/lib/generated-client/models/container-profile.js +14 -0
- package/lib/generated-client/models/control-response.d.ts +37 -0
- package/lib/generated-client/models/control-response.js +14 -0
- package/lib/generated-client/models/country-info.d.ts +41 -0
- package/lib/generated-client/models/country-info.js +14 -0
- package/lib/generated-client/models/create-playlist-dto.d.ts +41 -0
- package/lib/generated-client/models/create-playlist-dto.js +14 -0
- package/lib/generated-client/models/create-user-by-name.d.ts +29 -0
- package/lib/generated-client/models/create-user-by-name.js +14 -0
- package/lib/generated-client/models/culture-dto.d.ts +47 -0
- package/lib/generated-client/models/culture-dto.js +14 -0
- package/lib/generated-client/models/day-of-week.d.ts +24 -0
- package/lib/generated-client/models/day-of-week.js +30 -0
- package/lib/generated-client/models/day-pattern.d.ts +20 -0
- package/lib/generated-client/models/day-pattern.js +26 -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 +14 -0
- package/lib/generated-client/models/device-identification.d.ts +72 -0
- package/lib/generated-client/models/device-identification.js +14 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-query-result.js +14 -0
- package/lib/generated-client/models/device-info.d.ts +78 -0
- package/lib/generated-client/models/device-info.js +14 -0
- package/lib/generated-client/models/device-options-dto.d.ts +35 -0
- package/lib/generated-client/models/device-options-dto.js +14 -0
- package/lib/generated-client/models/device-options.d.ts +35 -0
- package/lib/generated-client/models/device-options.js +14 -0
- package/lib/generated-client/models/device-profile-info.d.ts +36 -0
- package/lib/generated-client/models/device-profile-info.js +14 -0
- package/lib/generated-client/models/device-profile-type.d.ts +19 -0
- package/lib/generated-client/models/device-profile-type.js +25 -0
- package/lib/generated-client/models/device-profile.d.ts +259 -0
- package/lib/generated-client/models/device-profile.js +14 -0
- package/lib/generated-client/models/direct-play-profile.d.ts +42 -0
- package/lib/generated-client/models/direct-play-profile.js +14 -0
- package/lib/generated-client/models/display-preferences-dto.d.ts +105 -0
- package/lib/generated-client/models/display-preferences-dto.js +14 -0
- package/lib/generated-client/models/dlna-options.d.ts +83 -0
- package/lib/generated-client/models/dlna-options.js +14 -0
- package/lib/generated-client/models/dlna-profile-type.d.ts +21 -0
- package/lib/generated-client/models/dlna-profile-type.js +27 -0
- package/lib/generated-client/models/dynamic-day-of-week.d.ts +27 -0
- package/lib/generated-client/models/dynamic-day-of-week.js +33 -0
- package/lib/generated-client/models/embedded-subtitle-options.d.ts +21 -0
- package/lib/generated-client/models/embedded-subtitle-options.js +27 -0
- package/lib/generated-client/models/encoding-context.d.ts +19 -0
- package/lib/generated-client/models/encoding-context.js +25 -0
- package/lib/generated-client/models/encoding-options.d.ts +245 -0
- package/lib/generated-client/models/encoding-options.js +14 -0
- package/lib/generated-client/models/end-point-info.d.ts +29 -0
- package/lib/generated-client/models/end-point-info.js +14 -0
- package/lib/generated-client/models/external-id-info.d.ts +42 -0
- package/lib/generated-client/models/external-id-info.js +14 -0
- package/lib/generated-client/models/external-id-media-type.d.ts +29 -0
- package/lib/generated-client/models/external-id-media-type.js +35 -0
- package/lib/generated-client/models/external-url.d.ts +29 -0
- package/lib/generated-client/models/external-url.js +14 -0
- package/lib/generated-client/models/ffmpeg-location.d.ts +21 -0
- package/lib/generated-client/models/ffmpeg-location.js +27 -0
- package/lib/generated-client/models/file-system-entry-info.d.ts +36 -0
- package/lib/generated-client/models/file-system-entry-info.js +14 -0
- package/lib/generated-client/models/file-system-entry-type.d.ts +21 -0
- package/lib/generated-client/models/file-system-entry-type.js +27 -0
- package/lib/generated-client/models/font-file.d.ts +41 -0
- package/lib/generated-client/models/font-file.js +14 -0
- package/lib/generated-client/models/forgot-password-action.d.ts +20 -0
- package/lib/generated-client/models/forgot-password-action.js +26 -0
- package/lib/generated-client/models/forgot-password-dto.d.ts +23 -0
- package/lib/generated-client/models/forgot-password-dto.js +14 -0
- package/lib/generated-client/models/forgot-password-pin-dto.d.ts +23 -0
- package/lib/generated-client/models/forgot-password-pin-dto.js +14 -0
- package/lib/generated-client/models/forgot-password-result.d.ts +36 -0
- package/lib/generated-client/models/forgot-password-result.js +14 -0
- package/lib/generated-client/models/general-command-type.d.ts +59 -0
- package/lib/generated-client/models/general-command-type.js +65 -0
- package/lib/generated-client/models/general-command.d.ts +38 -0
- package/lib/generated-client/models/general-command.js +14 -0
- package/lib/generated-client/models/get-programs-dto.d.ts +182 -0
- package/lib/generated-client/models/get-programs-dto.js +14 -0
- package/lib/generated-client/models/group-info-dto.d.ts +48 -0
- package/lib/generated-client/models/group-info-dto.js +14 -0
- package/lib/generated-client/models/group-queue-mode.d.ts +19 -0
- package/lib/generated-client/models/group-queue-mode.js +25 -0
- package/lib/generated-client/models/group-repeat-mode.d.ts +20 -0
- package/lib/generated-client/models/group-repeat-mode.js +26 -0
- package/lib/generated-client/models/group-shuffle-mode.d.ts +19 -0
- package/lib/generated-client/models/group-shuffle-mode.js +25 -0
- package/lib/generated-client/models/group-state-type.d.ts +21 -0
- package/lib/generated-client/models/group-state-type.js +27 -0
- package/lib/generated-client/models/group-update-type.d.ts +28 -0
- package/lib/generated-client/models/group-update-type.js +34 -0
- package/lib/generated-client/models/guide-info.d.ts +29 -0
- package/lib/generated-client/models/guide-info.js +14 -0
- package/lib/generated-client/models/hardware-encoding-type.d.ts +23 -0
- package/lib/generated-client/models/hardware-encoding-type.js +29 -0
- package/lib/generated-client/models/header-match-type.d.ts +20 -0
- package/lib/generated-client/models/header-match-type.js +26 -0
- package/lib/generated-client/models/http-header-info.d.ts +36 -0
- package/lib/generated-client/models/http-header-info.js +14 -0
- package/lib/generated-client/models/ignore-wait-request-dto.d.ts +23 -0
- package/lib/generated-client/models/ignore-wait-request-dto.js +14 -0
- package/lib/generated-client/models/image-by-name-info.d.ts +47 -0
- package/lib/generated-client/models/image-by-name-info.js +14 -0
- package/lib/generated-client/models/image-format.d.ts +22 -0
- package/lib/generated-client/models/image-format.js +28 -0
- package/lib/generated-client/models/image-info.d.ts +66 -0
- package/lib/generated-client/models/image-info.js +14 -0
- package/lib/generated-client/models/image-option.d.ts +36 -0
- package/lib/generated-client/models/image-option.js +14 -0
- package/lib/generated-client/models/image-orientation.d.ts +25 -0
- package/lib/generated-client/models/image-orientation.js +31 -0
- package/lib/generated-client/models/image-provider-info.d.ts +30 -0
- package/lib/generated-client/models/image-provider-info.js +14 -0
- package/lib/generated-client/models/image-saving-convention.d.ts +19 -0
- package/lib/generated-client/models/image-saving-convention.js +25 -0
- package/lib/generated-client/models/image-type.d.ts +30 -0
- package/lib/generated-client/models/image-type.js +36 -0
- package/lib/generated-client/models/index.d.ts +284 -0
- package/lib/generated-client/models/index.js +300 -0
- package/lib/generated-client/models/installation-info.d.ts +60 -0
- package/lib/generated-client/models/installation-info.js +14 -0
- package/lib/generated-client/models/iplugin.d.ts +59 -0
- package/lib/generated-client/models/iplugin.js +14 -0
- package/lib/generated-client/models/iso-type.d.ts +19 -0
- package/lib/generated-client/models/iso-type.js +25 -0
- package/lib/generated-client/models/item-counts.d.ts +89 -0
- package/lib/generated-client/models/item-counts.js +14 -0
- package/lib/generated-client/models/item-fields.d.ts +78 -0
- package/lib/generated-client/models/item-fields.js +84 -0
- package/lib/generated-client/models/item-filter.d.ts +26 -0
- package/lib/generated-client/models/item-filter.js +32 -0
- package/lib/generated-client/models/join-group-request-dto.d.ts +23 -0
- package/lib/generated-client/models/join-group-request-dto.js +14 -0
- package/lib/generated-client/models/keep-until.d.ts +21 -0
- package/lib/generated-client/models/keep-until.js +27 -0
- package/lib/generated-client/models/library-option-info-dto.d.ts +29 -0
- package/lib/generated-client/models/library-option-info-dto.js +14 -0
- package/lib/generated-client/models/library-options-result-dto.d.ts +43 -0
- package/lib/generated-client/models/library-options-result-dto.js +14 -0
- package/lib/generated-client/models/library-options.d.ts +183 -0
- package/lib/generated-client/models/library-options.js +14 -0
- package/lib/generated-client/models/library-type-options-dto.d.ts +50 -0
- package/lib/generated-client/models/library-type-options-dto.js +14 -0
- package/lib/generated-client/models/library-update-info.d.ts +59 -0
- package/lib/generated-client/models/library-update-info.js +14 -0
- package/lib/generated-client/models/listings-provider-info.d.ts +126 -0
- package/lib/generated-client/models/listings-provider-info.js +14 -0
- package/lib/generated-client/models/live-stream-response.d.ts +24 -0
- package/lib/generated-client/models/live-stream-response.js +14 -0
- package/lib/generated-client/models/live-tv-info.d.ts +36 -0
- package/lib/generated-client/models/live-tv-info.js +14 -0
- package/lib/generated-client/models/live-tv-options.d.ts +97 -0
- package/lib/generated-client/models/live-tv-options.js +14 -0
- package/lib/generated-client/models/live-tv-service-info.d.ts +66 -0
- package/lib/generated-client/models/live-tv-service-info.js +14 -0
- package/lib/generated-client/models/live-tv-service-status.d.ts +19 -0
- package/lib/generated-client/models/live-tv-service-status.js +25 -0
- package/lib/generated-client/models/localization-option.d.ts +29 -0
- package/lib/generated-client/models/localization-option.js +14 -0
- package/lib/generated-client/models/location-type.d.ts +21 -0
- package/lib/generated-client/models/location-type.js +27 -0
- package/lib/generated-client/models/log-file.d.ts +41 -0
- package/lib/generated-client/models/log-file.js +14 -0
- package/lib/generated-client/models/log-level.d.ts +24 -0
- package/lib/generated-client/models/log-level.js +30 -0
- package/lib/generated-client/models/media-attachment.d.ts +59 -0
- package/lib/generated-client/models/media-attachment.js +14 -0
- package/lib/generated-client/models/media-encoder-path-dto.d.ts +29 -0
- package/lib/generated-client/models/media-encoder-path-dto.js +14 -0
- package/lib/generated-client/models/media-path-dto.d.ts +36 -0
- package/lib/generated-client/models/media-path-dto.js +14 -0
- package/lib/generated-client/models/media-path-info.d.ts +29 -0
- package/lib/generated-client/models/media-path-info.js +14 -0
- package/lib/generated-client/models/media-protocol.d.ts +24 -0
- package/lib/generated-client/models/media-protocol.js +30 -0
- package/lib/generated-client/models/media-source-info.d.ts +279 -0
- package/lib/generated-client/models/media-source-info.js +14 -0
- package/lib/generated-client/models/media-source-type.d.ts +20 -0
- package/lib/generated-client/models/media-source-type.js +26 -0
- package/lib/generated-client/models/media-stream-type.d.ts +21 -0
- package/lib/generated-client/models/media-stream-type.js +27 -0
- package/lib/generated-client/models/media-stream.d.ts +367 -0
- package/lib/generated-client/models/media-stream.js +14 -0
- package/lib/generated-client/models/media-update-info-dto.d.ts +24 -0
- package/lib/generated-client/models/media-update-info-dto.js +14 -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 +14 -0
- package/lib/generated-client/models/media-url.d.ts +29 -0
- package/lib/generated-client/models/media-url.js +14 -0
- package/lib/generated-client/models/message-command.d.ts +35 -0
- package/lib/generated-client/models/message-command.js +14 -0
- package/lib/generated-client/models/metadata-configuration.d.ts +23 -0
- package/lib/generated-client/models/metadata-configuration.js +14 -0
- package/lib/generated-client/models/metadata-editor-info.d.ts +58 -0
- package/lib/generated-client/models/metadata-editor-info.js +14 -0
- package/lib/generated-client/models/metadata-field.d.ts +26 -0
- package/lib/generated-client/models/metadata-field.js +32 -0
- package/lib/generated-client/models/metadata-options.d.ts +59 -0
- package/lib/generated-client/models/metadata-options.js +14 -0
- package/lib/generated-client/models/metadata-refresh-mode.d.ts +21 -0
- package/lib/generated-client/models/metadata-refresh-mode.js +27 -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 +14 -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 +14 -0
- package/lib/generated-client/models/movie-info.d.ts +85 -0
- package/lib/generated-client/models/movie-info.js +14 -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 +14 -0
- package/lib/generated-client/models/music-video-info.d.ts +91 -0
- package/lib/generated-client/models/music-video-info.js +14 -0
- package/lib/generated-client/models/name-guid-pair.d.ts +29 -0
- package/lib/generated-client/models/name-guid-pair.js +14 -0
- package/lib/generated-client/models/name-id-pair.d.ts +29 -0
- package/lib/generated-client/models/name-id-pair.js +14 -0
- package/lib/generated-client/models/name-value-pair.d.ts +29 -0
- package/lib/generated-client/models/name-value-pair.js +14 -0
- package/lib/generated-client/models/network-configuration.d.ts +221 -0
- package/lib/generated-client/models/network-configuration.js +14 -0
- package/lib/generated-client/models/new-group-request-dto.d.ts +23 -0
- package/lib/generated-client/models/new-group-request-dto.js +14 -0
- package/lib/generated-client/models/next-item-request-dto.d.ts +23 -0
- package/lib/generated-client/models/next-item-request-dto.js +14 -0
- package/lib/generated-client/models/notification-dto.d.ts +66 -0
- package/lib/generated-client/models/notification-dto.js +14 -0
- package/lib/generated-client/models/notification-level.d.ts +20 -0
- package/lib/generated-client/models/notification-level.js +26 -0
- package/lib/generated-client/models/notification-option.d.ts +54 -0
- package/lib/generated-client/models/notification-option.js +14 -0
- package/lib/generated-client/models/notification-options.d.ts +24 -0
- package/lib/generated-client/models/notification-options.js +14 -0
- package/lib/generated-client/models/notification-result-dto.d.ts +30 -0
- package/lib/generated-client/models/notification-result-dto.js +14 -0
- package/lib/generated-client/models/notification-type-info.d.ts +47 -0
- package/lib/generated-client/models/notification-type-info.js +14 -0
- package/lib/generated-client/models/notifications-summary-dto.d.ts +30 -0
- package/lib/generated-client/models/notifications-summary-dto.js +14 -0
- package/lib/generated-client/models/object-group-update.d.ts +36 -0
- package/lib/generated-client/models/object-group-update.js +14 -0
- package/lib/generated-client/models/open-live-stream-dto.d.ts +97 -0
- package/lib/generated-client/models/open-live-stream-dto.js +14 -0
- package/lib/generated-client/models/package-info.d.ts +66 -0
- package/lib/generated-client/models/package-info.js +14 -0
- package/lib/generated-client/models/parental-rating.d.ts +29 -0
- package/lib/generated-client/models/parental-rating.js +14 -0
- package/lib/generated-client/models/path-substitution.d.ts +29 -0
- package/lib/generated-client/models/path-substitution.js +14 -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 +14 -0
- package/lib/generated-client/models/person-lookup-info.d.ts +85 -0
- package/lib/generated-client/models/person-lookup-info.js +14 -0
- package/lib/generated-client/models/pin-redeem-result.d.ts +29 -0
- package/lib/generated-client/models/pin-redeem-result.js +14 -0
- package/lib/generated-client/models/ping-request-dto.d.ts +23 -0
- package/lib/generated-client/models/ping-request-dto.js +14 -0
- package/lib/generated-client/models/play-access.d.ts +19 -0
- package/lib/generated-client/models/play-access.js +25 -0
- package/lib/generated-client/models/play-command.d.ts +22 -0
- package/lib/generated-client/models/play-command.js +28 -0
- package/lib/generated-client/models/play-method.d.ts +20 -0
- package/lib/generated-client/models/play-method.js +26 -0
- package/lib/generated-client/models/play-request-dto.d.ts +35 -0
- package/lib/generated-client/models/play-request-dto.js +14 -0
- package/lib/generated-client/models/play-request.d.ts +66 -0
- package/lib/generated-client/models/play-request.js +14 -0
- package/lib/generated-client/models/playback-error-code.d.ts +20 -0
- package/lib/generated-client/models/playback-error-code.js +26 -0
- package/lib/generated-client/models/playback-info-dto.d.ts +108 -0
- package/lib/generated-client/models/playback-info-dto.js +14 -0
- package/lib/generated-client/models/playback-info-response.d.ts +37 -0
- package/lib/generated-client/models/playback-info-response.js +14 -0
- package/lib/generated-client/models/playback-progress-info.d.ts +141 -0
- package/lib/generated-client/models/playback-progress-info.js +14 -0
- package/lib/generated-client/models/playback-start-info.d.ts +141 -0
- package/lib/generated-client/models/playback-start-info.js +14 -0
- package/lib/generated-client/models/playback-stop-info.d.ts +85 -0
- package/lib/generated-client/models/playback-stop-info.js +14 -0
- package/lib/generated-client/models/player-state-info.d.ts +85 -0
- package/lib/generated-client/models/player-state-info.js +14 -0
- package/lib/generated-client/models/playlist-creation-result.d.ts +23 -0
- package/lib/generated-client/models/playlist-creation-result.js +14 -0
- package/lib/generated-client/models/playstate-command.d.ts +26 -0
- package/lib/generated-client/models/playstate-command.js +32 -0
- package/lib/generated-client/models/playstate-request.d.ts +36 -0
- package/lib/generated-client/models/playstate-request.js +14 -0
- package/lib/generated-client/models/plugin-info.d.ts +66 -0
- package/lib/generated-client/models/plugin-info.js +14 -0
- package/lib/generated-client/models/plugin-status.d.ts +24 -0
- package/lib/generated-client/models/plugin-status.js +30 -0
- package/lib/generated-client/models/previous-item-request-dto.d.ts +23 -0
- package/lib/generated-client/models/previous-item-request-dto.js +14 -0
- package/lib/generated-client/models/problem-details.d.ts +48 -0
- package/lib/generated-client/models/problem-details.js +14 -0
- package/lib/generated-client/models/profile-condition-type.d.ts +22 -0
- package/lib/generated-client/models/profile-condition-type.js +28 -0
- package/lib/generated-client/models/profile-condition-value.d.ts +41 -0
- package/lib/generated-client/models/profile-condition-value.js +47 -0
- package/lib/generated-client/models/profile-condition.d.ts +43 -0
- package/lib/generated-client/models/profile-condition.js +14 -0
- package/lib/generated-client/models/program-audio.d.ts +23 -0
- package/lib/generated-client/models/program-audio.js +29 -0
- package/lib/generated-client/models/public-system-info.d.ts +59 -0
- package/lib/generated-client/models/public-system-info.js +14 -0
- package/lib/generated-client/models/query-filters-legacy.d.ts +41 -0
- package/lib/generated-client/models/query-filters-legacy.js +14 -0
- package/lib/generated-client/models/query-filters.d.ts +30 -0
- package/lib/generated-client/models/query-filters.js +14 -0
- package/lib/generated-client/models/queue-item.d.ts +29 -0
- package/lib/generated-client/models/queue-item.js +14 -0
- package/lib/generated-client/models/queue-request-dto.d.ts +30 -0
- package/lib/generated-client/models/queue-request-dto.js +14 -0
- package/lib/generated-client/models/quick-connect-dto.d.ts +23 -0
- package/lib/generated-client/models/quick-connect-dto.js +14 -0
- package/lib/generated-client/models/quick-connect-result.d.ts +65 -0
- package/lib/generated-client/models/quick-connect-result.js +14 -0
- package/lib/generated-client/models/rating-type.d.ts +19 -0
- package/lib/generated-client/models/rating-type.js +25 -0
- package/lib/generated-client/models/ready-request-dto.d.ts +41 -0
- package/lib/generated-client/models/ready-request-dto.js +14 -0
- package/lib/generated-client/models/recommendation-dto.d.ts +43 -0
- package/lib/generated-client/models/recommendation-dto.js +14 -0
- package/lib/generated-client/models/recommendation-type.d.ts +23 -0
- package/lib/generated-client/models/recommendation-type.js +29 -0
- package/lib/generated-client/models/recording-status.d.ts +24 -0
- package/lib/generated-client/models/recording-status.js +30 -0
- package/lib/generated-client/models/remote-image-info.d.ts +79 -0
- package/lib/generated-client/models/remote-image-info.js +14 -0
- package/lib/generated-client/models/remote-image-result.d.ts +36 -0
- package/lib/generated-client/models/remote-image-result.js +14 -0
- package/lib/generated-client/models/remote-search-result.d.ts +91 -0
- package/lib/generated-client/models/remote-search-result.js +14 -0
- package/lib/generated-client/models/remote-subtitle-info.d.ts +83 -0
- package/lib/generated-client/models/remote-subtitle-info.js +14 -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 +14 -0
- package/lib/generated-client/models/repeat-mode.d.ts +20 -0
- package/lib/generated-client/models/repeat-mode.js +26 -0
- package/lib/generated-client/models/repository-info.d.ts +35 -0
- package/lib/generated-client/models/repository-info.js +14 -0
- package/lib/generated-client/models/response-profile.d.ts +61 -0
- package/lib/generated-client/models/response-profile.js +14 -0
- package/lib/generated-client/models/scroll-direction.d.ts +19 -0
- package/lib/generated-client/models/scroll-direction.js +25 -0
- package/lib/generated-client/models/search-hint-result.d.ts +30 -0
- package/lib/generated-client/models/search-hint-result.js +14 -0
- package/lib/generated-client/models/search-hint.d.ts +191 -0
- package/lib/generated-client/models/search-hint.js +14 -0
- package/lib/generated-client/models/seek-request-dto.d.ts +23 -0
- package/lib/generated-client/models/seek-request-dto.js +14 -0
- package/lib/generated-client/models/send-command-type.d.ts +21 -0
- package/lib/generated-client/models/send-command-type.js +27 -0
- package/lib/generated-client/models/send-command.d.ts +54 -0
- package/lib/generated-client/models/send-command.js +14 -0
- package/lib/generated-client/models/send-to-user-type.d.ts +20 -0
- package/lib/generated-client/models/send-to-user-type.js +26 -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 +14 -0
- package/lib/generated-client/models/series-info.d.ts +85 -0
- package/lib/generated-client/models/series-info.js +14 -0
- package/lib/generated-client/models/series-status.d.ts +19 -0
- package/lib/generated-client/models/series-status.js +25 -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 +14 -0
- package/lib/generated-client/models/series-timer-info-dto.d.ts +232 -0
- package/lib/generated-client/models/series-timer-info-dto.js +14 -0
- package/lib/generated-client/models/server-configuration.d.ts +310 -0
- package/lib/generated-client/models/server-configuration.js +14 -0
- package/lib/generated-client/models/server-discovery-info.d.ts +41 -0
- package/lib/generated-client/models/server-discovery-info.js +14 -0
- package/lib/generated-client/models/session-info.d.ts +199 -0
- package/lib/generated-client/models/session-info.js +14 -0
- package/lib/generated-client/models/session-message-type.d.ts +51 -0
- package/lib/generated-client/models/session-message-type.js +57 -0
- package/lib/generated-client/models/session-user-info.d.ts +29 -0
- package/lib/generated-client/models/session-user-info.js +14 -0
- package/lib/generated-client/models/set-channel-mapping-dto.d.ts +35 -0
- package/lib/generated-client/models/set-channel-mapping-dto.js +14 -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 +14 -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 +14 -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 +14 -0
- package/lib/generated-client/models/song-info.d.ts +103 -0
- package/lib/generated-client/models/song-info.js +14 -0
- package/lib/generated-client/models/sort-order.d.ts +19 -0
- package/lib/generated-client/models/sort-order.js +25 -0
- package/lib/generated-client/models/special-view-option-dto.d.ts +29 -0
- package/lib/generated-client/models/special-view-option-dto.js +14 -0
- package/lib/generated-client/models/startup-configuration-dto.d.ts +35 -0
- package/lib/generated-client/models/startup-configuration-dto.js +14 -0
- package/lib/generated-client/models/startup-remote-access-dto.d.ts +29 -0
- package/lib/generated-client/models/startup-remote-access-dto.js +14 -0
- package/lib/generated-client/models/startup-user-dto.d.ts +29 -0
- package/lib/generated-client/models/startup-user-dto.js +14 -0
- package/lib/generated-client/models/subtitle-delivery-method.d.ts +22 -0
- package/lib/generated-client/models/subtitle-delivery-method.js +28 -0
- package/lib/generated-client/models/subtitle-options.d.ts +71 -0
- package/lib/generated-client/models/subtitle-options.js +14 -0
- package/lib/generated-client/models/subtitle-playback-mode.d.ts +22 -0
- package/lib/generated-client/models/subtitle-playback-mode.js +28 -0
- package/lib/generated-client/models/subtitle-profile.d.ts +48 -0
- package/lib/generated-client/models/subtitle-profile.js +14 -0
- package/lib/generated-client/models/sync-play-user-access-type.d.ts +20 -0
- package/lib/generated-client/models/sync-play-user-access-type.js +26 -0
- package/lib/generated-client/models/system-info.d.ts +177 -0
- package/lib/generated-client/models/system-info.js +14 -0
- package/lib/generated-client/models/task-completion-status.d.ts +21 -0
- package/lib/generated-client/models/task-completion-status.js +27 -0
- package/lib/generated-client/models/task-info.d.ts +80 -0
- package/lib/generated-client/models/task-info.js +14 -0
- package/lib/generated-client/models/task-result.d.ts +66 -0
- package/lib/generated-client/models/task-result.js +14 -0
- package/lib/generated-client/models/task-state.d.ts +20 -0
- package/lib/generated-client/models/task-state.js +26 -0
- package/lib/generated-client/models/task-trigger-info.d.ts +48 -0
- package/lib/generated-client/models/task-trigger-info.js +14 -0
- package/lib/generated-client/models/theme-media-result.d.ts +42 -0
- package/lib/generated-client/models/theme-media-result.js +14 -0
- package/lib/generated-client/models/timer-event-info.d.ts +29 -0
- package/lib/generated-client/models/timer-event-info.js +14 -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 +14 -0
- package/lib/generated-client/models/timer-info-dto.d.ts +188 -0
- package/lib/generated-client/models/timer-info-dto.js +14 -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 +14 -0
- package/lib/generated-client/models/trailer-info.d.ts +85 -0
- package/lib/generated-client/models/trailer-info.js +14 -0
- package/lib/generated-client/models/transcode-seek-info.d.ts +19 -0
- package/lib/generated-client/models/transcode-seek-info.js +25 -0
- package/lib/generated-client/models/transcoding-info.d.ts +127 -0
- package/lib/generated-client/models/transcoding-info.js +47 -0
- package/lib/generated-client/models/transcoding-profile.d.ts +117 -0
- package/lib/generated-client/models/transcoding-profile.js +14 -0
- package/lib/generated-client/models/transport-stream-timestamp.d.ts +20 -0
- package/lib/generated-client/models/transport-stream-timestamp.js +26 -0
- package/lib/generated-client/models/tuner-channel-mapping.d.ts +41 -0
- package/lib/generated-client/models/tuner-channel-mapping.js +14 -0
- package/lib/generated-client/models/tuner-host-info.d.ts +83 -0
- package/lib/generated-client/models/tuner-host-info.js +14 -0
- package/lib/generated-client/models/type-options.d.ts +54 -0
- package/lib/generated-client/models/type-options.js +14 -0
- package/lib/generated-client/models/unrated-item.d.ts +26 -0
- package/lib/generated-client/models/unrated-item.js +32 -0
- package/lib/generated-client/models/update-library-options-dto.d.ts +30 -0
- package/lib/generated-client/models/update-library-options-dto.js +14 -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 +14 -0
- package/lib/generated-client/models/update-user-easy-password.d.ts +35 -0
- package/lib/generated-client/models/update-user-easy-password.js +14 -0
- package/lib/generated-client/models/update-user-password.d.ts +41 -0
- package/lib/generated-client/models/update-user-password.js +14 -0
- package/lib/generated-client/models/upload-subtitle-dto.d.ts +41 -0
- package/lib/generated-client/models/upload-subtitle-dto.js +14 -0
- package/lib/generated-client/models/user-configuration.d.ts +108 -0
- package/lib/generated-client/models/user-configuration.js +14 -0
- package/lib/generated-client/models/user-dto.d.ts +103 -0
- package/lib/generated-client/models/user-dto.js +14 -0
- package/lib/generated-client/models/user-item-data-dto.d.ts +83 -0
- package/lib/generated-client/models/user-item-data-dto.js +14 -0
- package/lib/generated-client/models/user-policy.d.ts +254 -0
- package/lib/generated-client/models/user-policy.js +14 -0
- package/lib/generated-client/models/utc-time-response.d.ts +29 -0
- package/lib/generated-client/models/utc-time-response.js +14 -0
- package/lib/generated-client/models/validate-path-dto.d.ts +35 -0
- package/lib/generated-client/models/validate-path-dto.js +14 -0
- package/lib/generated-client/models/version-info.d.ts +71 -0
- package/lib/generated-client/models/version-info.js +14 -0
- package/lib/generated-client/models/video-type.d.ts +21 -0
- package/lib/generated-client/models/video-type.js +27 -0
- package/lib/generated-client/models/video3-dformat.d.ts +22 -0
- package/lib/generated-client/models/video3-dformat.js +28 -0
- package/lib/generated-client/models/virtual-folder-info.d.ts +67 -0
- package/lib/generated-client/models/virtual-folder-info.js +14 -0
- package/lib/generated-client/models/wake-on-lan-info.d.ts +29 -0
- package/lib/generated-client/models/wake-on-lan-info.js +14 -0
- package/lib/generated-client/models/xbmc-metadata-options.d.ts +47 -0
- package/lib/generated-client/models/xbmc-metadata-options.js +14 -0
- package/lib/generated-client/models/xml-attribute.d.ts +29 -0
- package/lib/generated-client/models/xml-attribute.js +14 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +39 -0
- package/lib/jellyfin.d.ts +33 -0
- package/lib/jellyfin.js +34 -0
- package/lib/models/api/image-request-parameters.d.ts +29 -0
- package/lib/models/api/image-request-parameters.js +7 -0
- package/lib/models/api/index.d.ts +7 -0
- package/lib/models/api/index.js +23 -0
- package/lib/models/api/item-sort-by.d.ts +40 -0
- package/lib/models/api/item-sort-by.js +44 -0
- package/lib/models/client-info.d.ts +12 -0
- package/lib/models/client-info.js +7 -0
- package/lib/models/device-info.d.ts +12 -0
- package/lib/models/device-info.js +7 -0
- package/lib/models/index.d.ts +9 -0
- package/lib/models/index.js +25 -0
- package/lib/models/recommended-server-info.d.ts +22 -0
- package/lib/models/recommended-server-info.js +16 -0
- package/lib/models/recommended-server-issue.d.ts +48 -0
- package/lib/models/recommended-server-issue.js +103 -0
- package/lib/utils/address-candidates.d.ts +16 -0
- package/lib/utils/address-candidates.js +85 -0
- package/lib/utils/api/activity-log-api.d.ts +8 -0
- package/lib/utils/api/activity-log-api.js +13 -0
- package/lib/utils/api/api-key-api.d.ts +8 -0
- package/lib/utils/api/api-key-api.js +13 -0
- package/lib/utils/api/artists-api.d.ts +8 -0
- package/lib/utils/api/artists-api.js +13 -0
- package/lib/utils/api/audio-api.d.ts +8 -0
- package/lib/utils/api/audio-api.js +13 -0
- package/lib/utils/api/branding-api.d.ts +8 -0
- package/lib/utils/api/branding-api.js +13 -0
- package/lib/utils/api/channels-api.d.ts +8 -0
- package/lib/utils/api/channels-api.js +13 -0
- package/lib/utils/api/client-log-api.d.ts +8 -0
- package/lib/utils/api/client-log-api.js +13 -0
- package/lib/utils/api/collection-api.d.ts +8 -0
- package/lib/utils/api/collection-api.js +13 -0
- package/lib/utils/api/configuration-api.d.ts +8 -0
- package/lib/utils/api/configuration-api.js +13 -0
- package/lib/utils/api/dashboard-api.d.ts +8 -0
- package/lib/utils/api/dashboard-api.js +13 -0
- package/lib/utils/api/devices-api.d.ts +8 -0
- package/lib/utils/api/devices-api.js +13 -0
- package/lib/utils/api/display-preferences-api.d.ts +8 -0
- package/lib/utils/api/display-preferences-api.js +13 -0
- package/lib/utils/api/dlna-api.d.ts +8 -0
- package/lib/utils/api/dlna-api.js +13 -0
- package/lib/utils/api/dlna-server-api.d.ts +8 -0
- package/lib/utils/api/dlna-server-api.js +13 -0
- package/lib/utils/api/dynamic-hls-api.d.ts +8 -0
- package/lib/utils/api/dynamic-hls-api.js +13 -0
- package/lib/utils/api/environment-api.d.ts +8 -0
- package/lib/utils/api/environment-api.js +13 -0
- package/lib/utils/api/filter-api.d.ts +8 -0
- package/lib/utils/api/filter-api.js +13 -0
- package/lib/utils/api/genres-api.d.ts +8 -0
- package/lib/utils/api/genres-api.js +13 -0
- package/lib/utils/api/hls-segment-api.d.ts +8 -0
- package/lib/utils/api/hls-segment-api.js +13 -0
- package/lib/utils/api/image-api.d.ts +8 -0
- package/lib/utils/api/image-api.js +13 -0
- package/lib/utils/api/image-by-name-api.d.ts +8 -0
- package/lib/utils/api/image-by-name-api.js +13 -0
- package/lib/utils/api/instant-mix-api.d.ts +8 -0
- package/lib/utils/api/instant-mix-api.js +13 -0
- package/lib/utils/api/item-lookup-api.d.ts +8 -0
- package/lib/utils/api/item-lookup-api.js +13 -0
- package/lib/utils/api/item-refresh-api.d.ts +8 -0
- package/lib/utils/api/item-refresh-api.js +13 -0
- package/lib/utils/api/item-update-api.d.ts +8 -0
- package/lib/utils/api/item-update-api.js +13 -0
- package/lib/utils/api/items-api.d.ts +8 -0
- package/lib/utils/api/items-api.js +13 -0
- package/lib/utils/api/library-api.d.ts +8 -0
- package/lib/utils/api/library-api.js +13 -0
- package/lib/utils/api/library-structure-api.d.ts +8 -0
- package/lib/utils/api/library-structure-api.js +13 -0
- package/lib/utils/api/live-tv-api.d.ts +8 -0
- package/lib/utils/api/live-tv-api.js +13 -0
- package/lib/utils/api/localization-api.d.ts +8 -0
- package/lib/utils/api/localization-api.js +13 -0
- package/lib/utils/api/media-info-api.d.ts +8 -0
- package/lib/utils/api/media-info-api.js +13 -0
- package/lib/utils/api/movies-api.d.ts +8 -0
- package/lib/utils/api/movies-api.js +13 -0
- package/lib/utils/api/music-genres-api.d.ts +8 -0
- package/lib/utils/api/music-genres-api.js +13 -0
- package/lib/utils/api/notifications-api.d.ts +8 -0
- package/lib/utils/api/notifications-api.js +13 -0
- package/lib/utils/api/package-api.d.ts +8 -0
- package/lib/utils/api/package-api.js +13 -0
- package/lib/utils/api/persons-api.d.ts +8 -0
- package/lib/utils/api/persons-api.js +13 -0
- package/lib/utils/api/playlists-api.d.ts +8 -0
- package/lib/utils/api/playlists-api.js +13 -0
- package/lib/utils/api/playstate-api.d.ts +8 -0
- package/lib/utils/api/playstate-api.js +13 -0
- package/lib/utils/api/plugins-api.d.ts +8 -0
- package/lib/utils/api/plugins-api.js +13 -0
- package/lib/utils/api/quick-connect-api.d.ts +8 -0
- package/lib/utils/api/quick-connect-api.js +13 -0
- package/lib/utils/api/remote-image-api.d.ts +8 -0
- package/lib/utils/api/remote-image-api.js +13 -0
- package/lib/utils/api/scheduled-tasks-api.d.ts +8 -0
- package/lib/utils/api/scheduled-tasks-api.js +13 -0
- package/lib/utils/api/search-api.d.ts +8 -0
- package/lib/utils/api/search-api.js +13 -0
- package/lib/utils/api/session-api.d.ts +8 -0
- package/lib/utils/api/session-api.js +13 -0
- package/lib/utils/api/startup-api.d.ts +8 -0
- package/lib/utils/api/startup-api.js +13 -0
- package/lib/utils/api/studios-api.d.ts +8 -0
- package/lib/utils/api/studios-api.js +13 -0
- package/lib/utils/api/subtitle-api.d.ts +8 -0
- package/lib/utils/api/subtitle-api.js +13 -0
- package/lib/utils/api/suggestions-api.d.ts +8 -0
- package/lib/utils/api/suggestions-api.js +13 -0
- package/lib/utils/api/sync-play-api.d.ts +8 -0
- package/lib/utils/api/sync-play-api.js +13 -0
- package/lib/utils/api/system-api.d.ts +8 -0
- package/lib/utils/api/system-api.js +13 -0
- package/lib/utils/api/time-sync-api.d.ts +8 -0
- package/lib/utils/api/time-sync-api.js +13 -0
- package/lib/utils/api/tmdb-api.d.ts +8 -0
- package/lib/utils/api/tmdb-api.js +13 -0
- package/lib/utils/api/trailers-api.d.ts +8 -0
- package/lib/utils/api/trailers-api.js +13 -0
- package/lib/utils/api/tv-shows-api.d.ts +8 -0
- package/lib/utils/api/tv-shows-api.js +13 -0
- package/lib/utils/api/universal-audio-api.d.ts +8 -0
- package/lib/utils/api/universal-audio-api.js +13 -0
- package/lib/utils/api/user-api.d.ts +8 -0
- package/lib/utils/api/user-api.js +13 -0
- package/lib/utils/api/user-library-api.d.ts +8 -0
- package/lib/utils/api/user-library-api.js +13 -0
- package/lib/utils/api/user-views-api.d.ts +8 -0
- package/lib/utils/api/user-views-api.js +13 -0
- package/lib/utils/api/video-attachments-api.d.ts +8 -0
- package/lib/utils/api/video-attachments-api.js +13 -0
- package/lib/utils/api/videos-api.d.ts +8 -0
- package/lib/utils/api/videos-api.js +13 -0
- package/lib/utils/api/years-api.d.ts +8 -0
- package/lib/utils/api/years-api.js +13 -0
- package/lib/utils/authentication.d.ts +10 -0
- package/lib/utils/authentication.js +18 -0
- package/lib/utils/browser-profiles.d.ts +25 -0
- package/lib/utils/browser-profiles.js +44 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.js +25 -0
- package/lib/utils/normalize-url.d.ts +20 -0
- package/lib/utils/normalize-url.js +96 -0
- package/lib/utils/url.d.ts +31 -0
- package/lib/utils/url.js +54 -0
- package/openapi-templates/licenseInfo.mustache +10 -0
- package/package.json +46 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1,1126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
6
|
+
* Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
* Jellyfin API
|
|
9
|
+
*
|
|
10
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
11
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
12
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
13
|
+
*/
|
|
14
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __assign = (this && this.__assign) || function () {
|
|
30
|
+
__assign = Object.assign || function(t) {
|
|
31
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32
|
+
s = arguments[i];
|
|
33
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
34
|
+
t[p] = s[p];
|
|
35
|
+
}
|
|
36
|
+
return t;
|
|
37
|
+
};
|
|
38
|
+
return __assign.apply(this, arguments);
|
|
39
|
+
};
|
|
40
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
50
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
51
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
52
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
|
+
function step(op) {
|
|
54
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
+
while (_) try {
|
|
56
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
57
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
|
+
switch (op[0]) {
|
|
59
|
+
case 0: case 1: t = op; break;
|
|
60
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
61
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
62
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
63
|
+
default:
|
|
64
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
65
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
68
|
+
if (t[2]) _.ops.pop();
|
|
69
|
+
_.trys.pop(); continue;
|
|
70
|
+
}
|
|
71
|
+
op = body.call(thisArg, _);
|
|
72
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
73
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
77
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
78
|
+
};
|
|
79
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
80
|
+
exports.SubtitleApi = exports.SubtitleApiFactory = exports.SubtitleApiFp = exports.SubtitleApiAxiosParamCreator = void 0;
|
|
81
|
+
var axios_1 = __importDefault(require("axios"));
|
|
82
|
+
// Some imports not used depending on template conditions
|
|
83
|
+
// @ts-ignore
|
|
84
|
+
var common_1 = require("../common");
|
|
85
|
+
// @ts-ignore
|
|
86
|
+
var base_1 = require("../base");
|
|
87
|
+
/**
|
|
88
|
+
* SubtitleApi - axios parameter creator
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
var SubtitleApiAxiosParamCreator = function (configuration) {
|
|
92
|
+
var _this = this;
|
|
93
|
+
return {
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @summary Deletes an external subtitle file.
|
|
97
|
+
* @param {string} itemId The item id.
|
|
98
|
+
* @param {number} index The index of the subtitle file.
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
deleteSubtitle: function (itemId, index, options) {
|
|
103
|
+
if (options === void 0) { options = {}; }
|
|
104
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
105
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
106
|
+
return __generator(this, function (_a) {
|
|
107
|
+
switch (_a.label) {
|
|
108
|
+
case 0:
|
|
109
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
110
|
+
(0, common_1.assertParamExists)('deleteSubtitle', 'itemId', itemId);
|
|
111
|
+
// verify required parameter 'index' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('deleteSubtitle', 'index', index);
|
|
113
|
+
localVarPath = "/Videos/{itemId}/Subtitles/{index}"
|
|
114
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)))
|
|
115
|
+
.replace("{".concat("index", "}"), encodeURIComponent(String(index)));
|
|
116
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
}
|
|
120
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
121
|
+
localVarHeaderParameter = {};
|
|
122
|
+
localVarQueryParameter = {};
|
|
123
|
+
// authentication CustomAuthentication required
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
125
|
+
case 1:
|
|
126
|
+
// authentication CustomAuthentication required
|
|
127
|
+
_a.sent();
|
|
128
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
129
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
131
|
+
return [2 /*return*/, {
|
|
132
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
133
|
+
options: localVarRequestOptions,
|
|
134
|
+
}];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @summary Downloads a remote subtitle.
|
|
142
|
+
* @param {string} itemId The item id.
|
|
143
|
+
* @param {string} subtitleId The subtitle id.
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
downloadRemoteSubtitles: function (itemId, subtitleId, options) {
|
|
148
|
+
if (options === void 0) { options = {}; }
|
|
149
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
150
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
switch (_a.label) {
|
|
153
|
+
case 0:
|
|
154
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
155
|
+
(0, common_1.assertParamExists)('downloadRemoteSubtitles', 'itemId', itemId);
|
|
156
|
+
// verify required parameter 'subtitleId' is not null or undefined
|
|
157
|
+
(0, common_1.assertParamExists)('downloadRemoteSubtitles', 'subtitleId', subtitleId);
|
|
158
|
+
localVarPath = "/Items/{itemId}/RemoteSearch/Subtitles/{subtitleId}"
|
|
159
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)))
|
|
160
|
+
.replace("{".concat("subtitleId", "}"), encodeURIComponent(String(subtitleId)));
|
|
161
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
162
|
+
if (configuration) {
|
|
163
|
+
baseOptions = configuration.baseOptions;
|
|
164
|
+
}
|
|
165
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
166
|
+
localVarHeaderParameter = {};
|
|
167
|
+
localVarQueryParameter = {};
|
|
168
|
+
// authentication CustomAuthentication required
|
|
169
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
170
|
+
case 1:
|
|
171
|
+
// authentication CustomAuthentication required
|
|
172
|
+
_a.sent();
|
|
173
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
174
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
176
|
+
return [2 /*return*/, {
|
|
177
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
178
|
+
options: localVarRequestOptions,
|
|
179
|
+
}];
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
},
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @summary Gets a fallback font file.
|
|
187
|
+
* @param {string} name The name of the fallback font file to get.
|
|
188
|
+
* @param {*} [options] Override http request option.
|
|
189
|
+
* @throws {RequiredError}
|
|
190
|
+
*/
|
|
191
|
+
getFallbackFont: function (name, options) {
|
|
192
|
+
if (options === void 0) { options = {}; }
|
|
193
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
194
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
switch (_a.label) {
|
|
197
|
+
case 0:
|
|
198
|
+
// verify required parameter 'name' is not null or undefined
|
|
199
|
+
(0, common_1.assertParamExists)('getFallbackFont', 'name', name);
|
|
200
|
+
localVarPath = "/FallbackFont/Fonts/{name}"
|
|
201
|
+
.replace("{".concat("name", "}"), encodeURIComponent(String(name)));
|
|
202
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
203
|
+
if (configuration) {
|
|
204
|
+
baseOptions = configuration.baseOptions;
|
|
205
|
+
}
|
|
206
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
207
|
+
localVarHeaderParameter = {};
|
|
208
|
+
localVarQueryParameter = {};
|
|
209
|
+
// authentication CustomAuthentication required
|
|
210
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
211
|
+
case 1:
|
|
212
|
+
// authentication CustomAuthentication required
|
|
213
|
+
_a.sent();
|
|
214
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
215
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
216
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
217
|
+
return [2 /*return*/, {
|
|
218
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
219
|
+
options: localVarRequestOptions,
|
|
220
|
+
}];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @summary Gets a list of available fallback font files.
|
|
228
|
+
* @param {*} [options] Override http request option.
|
|
229
|
+
* @throws {RequiredError}
|
|
230
|
+
*/
|
|
231
|
+
getFallbackFontList: function (options) {
|
|
232
|
+
if (options === void 0) { options = {}; }
|
|
233
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
234
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
235
|
+
return __generator(this, function (_a) {
|
|
236
|
+
switch (_a.label) {
|
|
237
|
+
case 0:
|
|
238
|
+
localVarPath = "/FallbackFont/Fonts";
|
|
239
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
240
|
+
if (configuration) {
|
|
241
|
+
baseOptions = configuration.baseOptions;
|
|
242
|
+
}
|
|
243
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
244
|
+
localVarHeaderParameter = {};
|
|
245
|
+
localVarQueryParameter = {};
|
|
246
|
+
// authentication CustomAuthentication required
|
|
247
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
248
|
+
case 1:
|
|
249
|
+
// authentication CustomAuthentication required
|
|
250
|
+
_a.sent();
|
|
251
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
252
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
253
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
254
|
+
return [2 /*return*/, {
|
|
255
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
256
|
+
options: localVarRequestOptions,
|
|
257
|
+
}];
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
},
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @summary Gets the remote subtitles.
|
|
265
|
+
* @param {string} id The item id.
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
getRemoteSubtitles: function (id, options) {
|
|
270
|
+
if (options === void 0) { options = {}; }
|
|
271
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
272
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
273
|
+
return __generator(this, function (_a) {
|
|
274
|
+
switch (_a.label) {
|
|
275
|
+
case 0:
|
|
276
|
+
// verify required parameter 'id' is not null or undefined
|
|
277
|
+
(0, common_1.assertParamExists)('getRemoteSubtitles', 'id', id);
|
|
278
|
+
localVarPath = "/Providers/Subtitles/Subtitles/{id}"
|
|
279
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
280
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
281
|
+
if (configuration) {
|
|
282
|
+
baseOptions = configuration.baseOptions;
|
|
283
|
+
}
|
|
284
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
285
|
+
localVarHeaderParameter = {};
|
|
286
|
+
localVarQueryParameter = {};
|
|
287
|
+
// authentication CustomAuthentication required
|
|
288
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
289
|
+
case 1:
|
|
290
|
+
// authentication CustomAuthentication required
|
|
291
|
+
_a.sent();
|
|
292
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
293
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
295
|
+
return [2 /*return*/, {
|
|
296
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
297
|
+
options: localVarRequestOptions,
|
|
298
|
+
}];
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
},
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @summary Gets subtitles in a specified format.
|
|
306
|
+
* @param {string} routeItemId The (route) item id.
|
|
307
|
+
* @param {string} routeMediaSourceId The (route) media source id.
|
|
308
|
+
* @param {number} routeIndex The (route) subtitle stream index.
|
|
309
|
+
* @param {string} routeFormat The (route) format of the returned subtitle.
|
|
310
|
+
* @param {string} [itemId] The item id.
|
|
311
|
+
* @param {string} [mediaSourceId] The media source id.
|
|
312
|
+
* @param {number} [index] The subtitle stream index.
|
|
313
|
+
* @param {string} [format] The format of the returned subtitle.
|
|
314
|
+
* @param {number} [endPositionTicks] Optional. The end position of the subtitle in ticks.
|
|
315
|
+
* @param {boolean} [copyTimestamps] Optional. Whether to copy the timestamps.
|
|
316
|
+
* @param {boolean} [addVttTimeMap] Optional. Whether to add a VTT time map.
|
|
317
|
+
* @param {number} [startPositionTicks] The start position of the subtitle in ticks.
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
getSubtitle: function (routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId, mediaSourceId, index, format, endPositionTicks, copyTimestamps, addVttTimeMap, startPositionTicks, options) {
|
|
322
|
+
if (options === void 0) { options = {}; }
|
|
323
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
324
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
325
|
+
return __generator(this, function (_a) {
|
|
326
|
+
// verify required parameter 'routeItemId' is not null or undefined
|
|
327
|
+
(0, common_1.assertParamExists)('getSubtitle', 'routeItemId', routeItemId);
|
|
328
|
+
// verify required parameter 'routeMediaSourceId' is not null or undefined
|
|
329
|
+
(0, common_1.assertParamExists)('getSubtitle', 'routeMediaSourceId', routeMediaSourceId);
|
|
330
|
+
// verify required parameter 'routeIndex' is not null or undefined
|
|
331
|
+
(0, common_1.assertParamExists)('getSubtitle', 'routeIndex', routeIndex);
|
|
332
|
+
// verify required parameter 'routeFormat' is not null or undefined
|
|
333
|
+
(0, common_1.assertParamExists)('getSubtitle', 'routeFormat', routeFormat);
|
|
334
|
+
localVarPath = "/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat}"
|
|
335
|
+
.replace("{".concat("routeItemId", "}"), encodeURIComponent(String(routeItemId)))
|
|
336
|
+
.replace("{".concat("routeMediaSourceId", "}"), encodeURIComponent(String(routeMediaSourceId)))
|
|
337
|
+
.replace("{".concat("routeIndex", "}"), encodeURIComponent(String(routeIndex)))
|
|
338
|
+
.replace("{".concat("routeFormat", "}"), encodeURIComponent(String(routeFormat)));
|
|
339
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
340
|
+
if (configuration) {
|
|
341
|
+
baseOptions = configuration.baseOptions;
|
|
342
|
+
}
|
|
343
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
344
|
+
localVarHeaderParameter = {};
|
|
345
|
+
localVarQueryParameter = {};
|
|
346
|
+
if (itemId !== undefined) {
|
|
347
|
+
localVarQueryParameter['itemId'] = itemId;
|
|
348
|
+
}
|
|
349
|
+
if (mediaSourceId !== undefined) {
|
|
350
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
351
|
+
}
|
|
352
|
+
if (index !== undefined) {
|
|
353
|
+
localVarQueryParameter['index'] = index;
|
|
354
|
+
}
|
|
355
|
+
if (format !== undefined) {
|
|
356
|
+
localVarQueryParameter['format'] = format;
|
|
357
|
+
}
|
|
358
|
+
if (endPositionTicks !== undefined) {
|
|
359
|
+
localVarQueryParameter['endPositionTicks'] = endPositionTicks;
|
|
360
|
+
}
|
|
361
|
+
if (copyTimestamps !== undefined) {
|
|
362
|
+
localVarQueryParameter['copyTimestamps'] = copyTimestamps;
|
|
363
|
+
}
|
|
364
|
+
if (addVttTimeMap !== undefined) {
|
|
365
|
+
localVarQueryParameter['addVttTimeMap'] = addVttTimeMap;
|
|
366
|
+
}
|
|
367
|
+
if (startPositionTicks !== undefined) {
|
|
368
|
+
localVarQueryParameter['startPositionTicks'] = startPositionTicks;
|
|
369
|
+
}
|
|
370
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
371
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
372
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
373
|
+
return [2 /*return*/, {
|
|
374
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
375
|
+
options: localVarRequestOptions,
|
|
376
|
+
}];
|
|
377
|
+
});
|
|
378
|
+
});
|
|
379
|
+
},
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
* @summary Gets an HLS subtitle playlist.
|
|
383
|
+
* @param {string} itemId The item id.
|
|
384
|
+
* @param {number} index The subtitle stream index.
|
|
385
|
+
* @param {string} mediaSourceId The media source id.
|
|
386
|
+
* @param {number} segmentLength The subtitle segment length.
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
*/
|
|
390
|
+
getSubtitlePlaylist: function (itemId, index, mediaSourceId, segmentLength, options) {
|
|
391
|
+
if (options === void 0) { options = {}; }
|
|
392
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
393
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
394
|
+
return __generator(this, function (_a) {
|
|
395
|
+
switch (_a.label) {
|
|
396
|
+
case 0:
|
|
397
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
398
|
+
(0, common_1.assertParamExists)('getSubtitlePlaylist', 'itemId', itemId);
|
|
399
|
+
// verify required parameter 'index' is not null or undefined
|
|
400
|
+
(0, common_1.assertParamExists)('getSubtitlePlaylist', 'index', index);
|
|
401
|
+
// verify required parameter 'mediaSourceId' is not null or undefined
|
|
402
|
+
(0, common_1.assertParamExists)('getSubtitlePlaylist', 'mediaSourceId', mediaSourceId);
|
|
403
|
+
// verify required parameter 'segmentLength' is not null or undefined
|
|
404
|
+
(0, common_1.assertParamExists)('getSubtitlePlaylist', 'segmentLength', segmentLength);
|
|
405
|
+
localVarPath = "/Videos/{itemId}/{mediaSourceId}/Subtitles/{index}/subtitles.m3u8"
|
|
406
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)))
|
|
407
|
+
.replace("{".concat("index", "}"), encodeURIComponent(String(index)))
|
|
408
|
+
.replace("{".concat("mediaSourceId", "}"), encodeURIComponent(String(mediaSourceId)));
|
|
409
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
410
|
+
if (configuration) {
|
|
411
|
+
baseOptions = configuration.baseOptions;
|
|
412
|
+
}
|
|
413
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
414
|
+
localVarHeaderParameter = {};
|
|
415
|
+
localVarQueryParameter = {};
|
|
416
|
+
// authentication CustomAuthentication required
|
|
417
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
418
|
+
case 1:
|
|
419
|
+
// authentication CustomAuthentication required
|
|
420
|
+
_a.sent();
|
|
421
|
+
if (segmentLength !== undefined) {
|
|
422
|
+
localVarQueryParameter['segmentLength'] = segmentLength;
|
|
423
|
+
}
|
|
424
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
425
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
426
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
427
|
+
return [2 /*return*/, {
|
|
428
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
429
|
+
options: localVarRequestOptions,
|
|
430
|
+
}];
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
},
|
|
435
|
+
/**
|
|
436
|
+
*
|
|
437
|
+
* @summary Gets subtitles in a specified format.
|
|
438
|
+
* @param {string} routeItemId The (route) item id.
|
|
439
|
+
* @param {string} routeMediaSourceId The (route) media source id.
|
|
440
|
+
* @param {number} routeIndex The (route) subtitle stream index.
|
|
441
|
+
* @param {number} routeStartPositionTicks The (route) start position of the subtitle in ticks.
|
|
442
|
+
* @param {string} routeFormat The (route) format of the returned subtitle.
|
|
443
|
+
* @param {string} [itemId] The item id.
|
|
444
|
+
* @param {string} [mediaSourceId] The media source id.
|
|
445
|
+
* @param {number} [index] The subtitle stream index.
|
|
446
|
+
* @param {number} [startPositionTicks] The start position of the subtitle in ticks.
|
|
447
|
+
* @param {string} [format] The format of the returned subtitle.
|
|
448
|
+
* @param {number} [endPositionTicks] Optional. The end position of the subtitle in ticks.
|
|
449
|
+
* @param {boolean} [copyTimestamps] Optional. Whether to copy the timestamps.
|
|
450
|
+
* @param {boolean} [addVttTimeMap] Optional. Whether to add a VTT time map.
|
|
451
|
+
* @param {*} [options] Override http request option.
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
getSubtitleWithTicks: function (routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId, mediaSourceId, index, startPositionTicks, format, endPositionTicks, copyTimestamps, addVttTimeMap, options) {
|
|
455
|
+
if (options === void 0) { options = {}; }
|
|
456
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
457
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
458
|
+
return __generator(this, function (_a) {
|
|
459
|
+
// verify required parameter 'routeItemId' is not null or undefined
|
|
460
|
+
(0, common_1.assertParamExists)('getSubtitleWithTicks', 'routeItemId', routeItemId);
|
|
461
|
+
// verify required parameter 'routeMediaSourceId' is not null or undefined
|
|
462
|
+
(0, common_1.assertParamExists)('getSubtitleWithTicks', 'routeMediaSourceId', routeMediaSourceId);
|
|
463
|
+
// verify required parameter 'routeIndex' is not null or undefined
|
|
464
|
+
(0, common_1.assertParamExists)('getSubtitleWithTicks', 'routeIndex', routeIndex);
|
|
465
|
+
// verify required parameter 'routeStartPositionTicks' is not null or undefined
|
|
466
|
+
(0, common_1.assertParamExists)('getSubtitleWithTicks', 'routeStartPositionTicks', routeStartPositionTicks);
|
|
467
|
+
// verify required parameter 'routeFormat' is not null or undefined
|
|
468
|
+
(0, common_1.assertParamExists)('getSubtitleWithTicks', 'routeFormat', routeFormat);
|
|
469
|
+
localVarPath = "/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/{routeStartPositionTicks}/Stream.{routeFormat}"
|
|
470
|
+
.replace("{".concat("routeItemId", "}"), encodeURIComponent(String(routeItemId)))
|
|
471
|
+
.replace("{".concat("routeMediaSourceId", "}"), encodeURIComponent(String(routeMediaSourceId)))
|
|
472
|
+
.replace("{".concat("routeIndex", "}"), encodeURIComponent(String(routeIndex)))
|
|
473
|
+
.replace("{".concat("routeStartPositionTicks", "}"), encodeURIComponent(String(routeStartPositionTicks)))
|
|
474
|
+
.replace("{".concat("routeFormat", "}"), encodeURIComponent(String(routeFormat)));
|
|
475
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
476
|
+
if (configuration) {
|
|
477
|
+
baseOptions = configuration.baseOptions;
|
|
478
|
+
}
|
|
479
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
480
|
+
localVarHeaderParameter = {};
|
|
481
|
+
localVarQueryParameter = {};
|
|
482
|
+
if (itemId !== undefined) {
|
|
483
|
+
localVarQueryParameter['itemId'] = itemId;
|
|
484
|
+
}
|
|
485
|
+
if (mediaSourceId !== undefined) {
|
|
486
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
487
|
+
}
|
|
488
|
+
if (index !== undefined) {
|
|
489
|
+
localVarQueryParameter['index'] = index;
|
|
490
|
+
}
|
|
491
|
+
if (startPositionTicks !== undefined) {
|
|
492
|
+
localVarQueryParameter['startPositionTicks'] = startPositionTicks;
|
|
493
|
+
}
|
|
494
|
+
if (format !== undefined) {
|
|
495
|
+
localVarQueryParameter['format'] = format;
|
|
496
|
+
}
|
|
497
|
+
if (endPositionTicks !== undefined) {
|
|
498
|
+
localVarQueryParameter['endPositionTicks'] = endPositionTicks;
|
|
499
|
+
}
|
|
500
|
+
if (copyTimestamps !== undefined) {
|
|
501
|
+
localVarQueryParameter['copyTimestamps'] = copyTimestamps;
|
|
502
|
+
}
|
|
503
|
+
if (addVttTimeMap !== undefined) {
|
|
504
|
+
localVarQueryParameter['addVttTimeMap'] = addVttTimeMap;
|
|
505
|
+
}
|
|
506
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
507
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
508
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
509
|
+
return [2 /*return*/, {
|
|
510
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
511
|
+
options: localVarRequestOptions,
|
|
512
|
+
}];
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @summary Search remote subtitles.
|
|
519
|
+
* @param {string} itemId The item id.
|
|
520
|
+
* @param {string} language The language of the subtitles.
|
|
521
|
+
* @param {boolean} [isPerfectMatch] Optional. Only show subtitles which are a perfect match.
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
*/
|
|
525
|
+
searchRemoteSubtitles: function (itemId, language, isPerfectMatch, options) {
|
|
526
|
+
if (options === void 0) { options = {}; }
|
|
527
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
528
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
529
|
+
return __generator(this, function (_a) {
|
|
530
|
+
switch (_a.label) {
|
|
531
|
+
case 0:
|
|
532
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
533
|
+
(0, common_1.assertParamExists)('searchRemoteSubtitles', 'itemId', itemId);
|
|
534
|
+
// verify required parameter 'language' is not null or undefined
|
|
535
|
+
(0, common_1.assertParamExists)('searchRemoteSubtitles', 'language', language);
|
|
536
|
+
localVarPath = "/Items/{itemId}/RemoteSearch/Subtitles/{language}"
|
|
537
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)))
|
|
538
|
+
.replace("{".concat("language", "}"), encodeURIComponent(String(language)));
|
|
539
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
540
|
+
if (configuration) {
|
|
541
|
+
baseOptions = configuration.baseOptions;
|
|
542
|
+
}
|
|
543
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
544
|
+
localVarHeaderParameter = {};
|
|
545
|
+
localVarQueryParameter = {};
|
|
546
|
+
// authentication CustomAuthentication required
|
|
547
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
548
|
+
case 1:
|
|
549
|
+
// authentication CustomAuthentication required
|
|
550
|
+
_a.sent();
|
|
551
|
+
if (isPerfectMatch !== undefined) {
|
|
552
|
+
localVarQueryParameter['isPerfectMatch'] = isPerfectMatch;
|
|
553
|
+
}
|
|
554
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
555
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
556
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
557
|
+
return [2 /*return*/, {
|
|
558
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
559
|
+
options: localVarRequestOptions,
|
|
560
|
+
}];
|
|
561
|
+
}
|
|
562
|
+
});
|
|
563
|
+
});
|
|
564
|
+
},
|
|
565
|
+
/**
|
|
566
|
+
*
|
|
567
|
+
* @summary Upload an external subtitle file.
|
|
568
|
+
* @param {string} itemId The item the subtitle belongs to.
|
|
569
|
+
* @param {UploadSubtitleDto} uploadSubtitleDto The request body.
|
|
570
|
+
* @param {*} [options] Override http request option.
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
*/
|
|
573
|
+
uploadSubtitle: function (itemId, uploadSubtitleDto, options) {
|
|
574
|
+
if (options === void 0) { options = {}; }
|
|
575
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
576
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
577
|
+
return __generator(this, function (_a) {
|
|
578
|
+
switch (_a.label) {
|
|
579
|
+
case 0:
|
|
580
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
581
|
+
(0, common_1.assertParamExists)('uploadSubtitle', 'itemId', itemId);
|
|
582
|
+
// verify required parameter 'uploadSubtitleDto' is not null or undefined
|
|
583
|
+
(0, common_1.assertParamExists)('uploadSubtitle', 'uploadSubtitleDto', uploadSubtitleDto);
|
|
584
|
+
localVarPath = "/Videos/{itemId}/Subtitles"
|
|
585
|
+
.replace("{".concat("itemId", "}"), encodeURIComponent(String(itemId)));
|
|
586
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
587
|
+
if (configuration) {
|
|
588
|
+
baseOptions = configuration.baseOptions;
|
|
589
|
+
}
|
|
590
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
591
|
+
localVarHeaderParameter = {};
|
|
592
|
+
localVarQueryParameter = {};
|
|
593
|
+
// authentication CustomAuthentication required
|
|
594
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
|
|
595
|
+
case 1:
|
|
596
|
+
// authentication CustomAuthentication required
|
|
597
|
+
_a.sent();
|
|
598
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
599
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
600
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
601
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
602
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadSubtitleDto, localVarRequestOptions, configuration);
|
|
603
|
+
return [2 /*return*/, {
|
|
604
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
605
|
+
options: localVarRequestOptions,
|
|
606
|
+
}];
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
});
|
|
610
|
+
},
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
exports.SubtitleApiAxiosParamCreator = SubtitleApiAxiosParamCreator;
|
|
614
|
+
/**
|
|
615
|
+
* SubtitleApi - functional programming interface
|
|
616
|
+
* @export
|
|
617
|
+
*/
|
|
618
|
+
var SubtitleApiFp = function (configuration) {
|
|
619
|
+
var localVarAxiosParamCreator = (0, exports.SubtitleApiAxiosParamCreator)(configuration);
|
|
620
|
+
return {
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
* @summary Deletes an external subtitle file.
|
|
624
|
+
* @param {string} itemId The item id.
|
|
625
|
+
* @param {number} index The index of the subtitle file.
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
*/
|
|
629
|
+
deleteSubtitle: function (itemId, index, options) {
|
|
630
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
631
|
+
var localVarAxiosArgs;
|
|
632
|
+
return __generator(this, function (_a) {
|
|
633
|
+
switch (_a.label) {
|
|
634
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSubtitle(itemId, index, options)];
|
|
635
|
+
case 1:
|
|
636
|
+
localVarAxiosArgs = _a.sent();
|
|
637
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
});
|
|
641
|
+
},
|
|
642
|
+
/**
|
|
643
|
+
*
|
|
644
|
+
* @summary Downloads a remote subtitle.
|
|
645
|
+
* @param {string} itemId The item id.
|
|
646
|
+
* @param {string} subtitleId The subtitle id.
|
|
647
|
+
* @param {*} [options] Override http request option.
|
|
648
|
+
* @throws {RequiredError}
|
|
649
|
+
*/
|
|
650
|
+
downloadRemoteSubtitles: function (itemId, subtitleId, options) {
|
|
651
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
652
|
+
var localVarAxiosArgs;
|
|
653
|
+
return __generator(this, function (_a) {
|
|
654
|
+
switch (_a.label) {
|
|
655
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadRemoteSubtitles(itemId, subtitleId, options)];
|
|
656
|
+
case 1:
|
|
657
|
+
localVarAxiosArgs = _a.sent();
|
|
658
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
659
|
+
}
|
|
660
|
+
});
|
|
661
|
+
});
|
|
662
|
+
},
|
|
663
|
+
/**
|
|
664
|
+
*
|
|
665
|
+
* @summary Gets a fallback font file.
|
|
666
|
+
* @param {string} name The name of the fallback font file to get.
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
*/
|
|
670
|
+
getFallbackFont: function (name, options) {
|
|
671
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
672
|
+
var localVarAxiosArgs;
|
|
673
|
+
return __generator(this, function (_a) {
|
|
674
|
+
switch (_a.label) {
|
|
675
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFallbackFont(name, options)];
|
|
676
|
+
case 1:
|
|
677
|
+
localVarAxiosArgs = _a.sent();
|
|
678
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
});
|
|
682
|
+
},
|
|
683
|
+
/**
|
|
684
|
+
*
|
|
685
|
+
* @summary Gets a list of available fallback font files.
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
*/
|
|
689
|
+
getFallbackFontList: function (options) {
|
|
690
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
691
|
+
var localVarAxiosArgs;
|
|
692
|
+
return __generator(this, function (_a) {
|
|
693
|
+
switch (_a.label) {
|
|
694
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFallbackFontList(options)];
|
|
695
|
+
case 1:
|
|
696
|
+
localVarAxiosArgs = _a.sent();
|
|
697
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
698
|
+
}
|
|
699
|
+
});
|
|
700
|
+
});
|
|
701
|
+
},
|
|
702
|
+
/**
|
|
703
|
+
*
|
|
704
|
+
* @summary Gets the remote subtitles.
|
|
705
|
+
* @param {string} id The item id.
|
|
706
|
+
* @param {*} [options] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
*/
|
|
709
|
+
getRemoteSubtitles: function (id, options) {
|
|
710
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
711
|
+
var localVarAxiosArgs;
|
|
712
|
+
return __generator(this, function (_a) {
|
|
713
|
+
switch (_a.label) {
|
|
714
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRemoteSubtitles(id, options)];
|
|
715
|
+
case 1:
|
|
716
|
+
localVarAxiosArgs = _a.sent();
|
|
717
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
});
|
|
721
|
+
},
|
|
722
|
+
/**
|
|
723
|
+
*
|
|
724
|
+
* @summary Gets subtitles in a specified format.
|
|
725
|
+
* @param {string} routeItemId The (route) item id.
|
|
726
|
+
* @param {string} routeMediaSourceId The (route) media source id.
|
|
727
|
+
* @param {number} routeIndex The (route) subtitle stream index.
|
|
728
|
+
* @param {string} routeFormat The (route) format of the returned subtitle.
|
|
729
|
+
* @param {string} [itemId] The item id.
|
|
730
|
+
* @param {string} [mediaSourceId] The media source id.
|
|
731
|
+
* @param {number} [index] The subtitle stream index.
|
|
732
|
+
* @param {string} [format] The format of the returned subtitle.
|
|
733
|
+
* @param {number} [endPositionTicks] Optional. The end position of the subtitle in ticks.
|
|
734
|
+
* @param {boolean} [copyTimestamps] Optional. Whether to copy the timestamps.
|
|
735
|
+
* @param {boolean} [addVttTimeMap] Optional. Whether to add a VTT time map.
|
|
736
|
+
* @param {number} [startPositionTicks] The start position of the subtitle in ticks.
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
*/
|
|
740
|
+
getSubtitle: function (routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId, mediaSourceId, index, format, endPositionTicks, copyTimestamps, addVttTimeMap, startPositionTicks, options) {
|
|
741
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
742
|
+
var localVarAxiosArgs;
|
|
743
|
+
return __generator(this, function (_a) {
|
|
744
|
+
switch (_a.label) {
|
|
745
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSubtitle(routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId, mediaSourceId, index, format, endPositionTicks, copyTimestamps, addVttTimeMap, startPositionTicks, options)];
|
|
746
|
+
case 1:
|
|
747
|
+
localVarAxiosArgs = _a.sent();
|
|
748
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
});
|
|
752
|
+
},
|
|
753
|
+
/**
|
|
754
|
+
*
|
|
755
|
+
* @summary Gets an HLS subtitle playlist.
|
|
756
|
+
* @param {string} itemId The item id.
|
|
757
|
+
* @param {number} index The subtitle stream index.
|
|
758
|
+
* @param {string} mediaSourceId The media source id.
|
|
759
|
+
* @param {number} segmentLength The subtitle segment length.
|
|
760
|
+
* @param {*} [options] Override http request option.
|
|
761
|
+
* @throws {RequiredError}
|
|
762
|
+
*/
|
|
763
|
+
getSubtitlePlaylist: function (itemId, index, mediaSourceId, segmentLength, options) {
|
|
764
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
765
|
+
var localVarAxiosArgs;
|
|
766
|
+
return __generator(this, function (_a) {
|
|
767
|
+
switch (_a.label) {
|
|
768
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSubtitlePlaylist(itemId, index, mediaSourceId, segmentLength, options)];
|
|
769
|
+
case 1:
|
|
770
|
+
localVarAxiosArgs = _a.sent();
|
|
771
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
});
|
|
775
|
+
},
|
|
776
|
+
/**
|
|
777
|
+
*
|
|
778
|
+
* @summary Gets subtitles in a specified format.
|
|
779
|
+
* @param {string} routeItemId The (route) item id.
|
|
780
|
+
* @param {string} routeMediaSourceId The (route) media source id.
|
|
781
|
+
* @param {number} routeIndex The (route) subtitle stream index.
|
|
782
|
+
* @param {number} routeStartPositionTicks The (route) start position of the subtitle in ticks.
|
|
783
|
+
* @param {string} routeFormat The (route) format of the returned subtitle.
|
|
784
|
+
* @param {string} [itemId] The item id.
|
|
785
|
+
* @param {string} [mediaSourceId] The media source id.
|
|
786
|
+
* @param {number} [index] The subtitle stream index.
|
|
787
|
+
* @param {number} [startPositionTicks] The start position of the subtitle in ticks.
|
|
788
|
+
* @param {string} [format] The format of the returned subtitle.
|
|
789
|
+
* @param {number} [endPositionTicks] Optional. The end position of the subtitle in ticks.
|
|
790
|
+
* @param {boolean} [copyTimestamps] Optional. Whether to copy the timestamps.
|
|
791
|
+
* @param {boolean} [addVttTimeMap] Optional. Whether to add a VTT time map.
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
*/
|
|
795
|
+
getSubtitleWithTicks: function (routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId, mediaSourceId, index, startPositionTicks, format, endPositionTicks, copyTimestamps, addVttTimeMap, options) {
|
|
796
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
797
|
+
var localVarAxiosArgs;
|
|
798
|
+
return __generator(this, function (_a) {
|
|
799
|
+
switch (_a.label) {
|
|
800
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSubtitleWithTicks(routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId, mediaSourceId, index, startPositionTicks, format, endPositionTicks, copyTimestamps, addVttTimeMap, options)];
|
|
801
|
+
case 1:
|
|
802
|
+
localVarAxiosArgs = _a.sent();
|
|
803
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
});
|
|
807
|
+
},
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @summary Search remote subtitles.
|
|
811
|
+
* @param {string} itemId The item id.
|
|
812
|
+
* @param {string} language The language of the subtitles.
|
|
813
|
+
* @param {boolean} [isPerfectMatch] Optional. Only show subtitles which are a perfect match.
|
|
814
|
+
* @param {*} [options] Override http request option.
|
|
815
|
+
* @throws {RequiredError}
|
|
816
|
+
*/
|
|
817
|
+
searchRemoteSubtitles: function (itemId, language, isPerfectMatch, options) {
|
|
818
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
819
|
+
var localVarAxiosArgs;
|
|
820
|
+
return __generator(this, function (_a) {
|
|
821
|
+
switch (_a.label) {
|
|
822
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchRemoteSubtitles(itemId, language, isPerfectMatch, options)];
|
|
823
|
+
case 1:
|
|
824
|
+
localVarAxiosArgs = _a.sent();
|
|
825
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
});
|
|
829
|
+
},
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* @summary Upload an external subtitle file.
|
|
833
|
+
* @param {string} itemId The item the subtitle belongs to.
|
|
834
|
+
* @param {UploadSubtitleDto} uploadSubtitleDto The request body.
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
*/
|
|
838
|
+
uploadSubtitle: function (itemId, uploadSubtitleDto, options) {
|
|
839
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
840
|
+
var localVarAxiosArgs;
|
|
841
|
+
return __generator(this, function (_a) {
|
|
842
|
+
switch (_a.label) {
|
|
843
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadSubtitle(itemId, uploadSubtitleDto, options)];
|
|
844
|
+
case 1:
|
|
845
|
+
localVarAxiosArgs = _a.sent();
|
|
846
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
847
|
+
}
|
|
848
|
+
});
|
|
849
|
+
});
|
|
850
|
+
},
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
exports.SubtitleApiFp = SubtitleApiFp;
|
|
854
|
+
/**
|
|
855
|
+
* SubtitleApi - factory interface
|
|
856
|
+
* @export
|
|
857
|
+
*/
|
|
858
|
+
var SubtitleApiFactory = function (configuration, basePath, axios) {
|
|
859
|
+
var localVarFp = (0, exports.SubtitleApiFp)(configuration);
|
|
860
|
+
return {
|
|
861
|
+
/**
|
|
862
|
+
*
|
|
863
|
+
* @summary Deletes an external subtitle file.
|
|
864
|
+
* @param {string} itemId The item id.
|
|
865
|
+
* @param {number} index The index of the subtitle file.
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
deleteSubtitle: function (itemId, index, options) {
|
|
870
|
+
return localVarFp.deleteSubtitle(itemId, index, options).then(function (request) { return request(axios, basePath); });
|
|
871
|
+
},
|
|
872
|
+
/**
|
|
873
|
+
*
|
|
874
|
+
* @summary Downloads a remote subtitle.
|
|
875
|
+
* @param {string} itemId The item id.
|
|
876
|
+
* @param {string} subtitleId The subtitle id.
|
|
877
|
+
* @param {*} [options] Override http request option.
|
|
878
|
+
* @throws {RequiredError}
|
|
879
|
+
*/
|
|
880
|
+
downloadRemoteSubtitles: function (itemId, subtitleId, options) {
|
|
881
|
+
return localVarFp.downloadRemoteSubtitles(itemId, subtitleId, options).then(function (request) { return request(axios, basePath); });
|
|
882
|
+
},
|
|
883
|
+
/**
|
|
884
|
+
*
|
|
885
|
+
* @summary Gets a fallback font file.
|
|
886
|
+
* @param {string} name The name of the fallback font file to get.
|
|
887
|
+
* @param {*} [options] Override http request option.
|
|
888
|
+
* @throws {RequiredError}
|
|
889
|
+
*/
|
|
890
|
+
getFallbackFont: function (name, options) {
|
|
891
|
+
return localVarFp.getFallbackFont(name, options).then(function (request) { return request(axios, basePath); });
|
|
892
|
+
},
|
|
893
|
+
/**
|
|
894
|
+
*
|
|
895
|
+
* @summary Gets a list of available fallback font files.
|
|
896
|
+
* @param {*} [options] Override http request option.
|
|
897
|
+
* @throws {RequiredError}
|
|
898
|
+
*/
|
|
899
|
+
getFallbackFontList: function (options) {
|
|
900
|
+
return localVarFp.getFallbackFontList(options).then(function (request) { return request(axios, basePath); });
|
|
901
|
+
},
|
|
902
|
+
/**
|
|
903
|
+
*
|
|
904
|
+
* @summary Gets the remote subtitles.
|
|
905
|
+
* @param {string} id The item id.
|
|
906
|
+
* @param {*} [options] Override http request option.
|
|
907
|
+
* @throws {RequiredError}
|
|
908
|
+
*/
|
|
909
|
+
getRemoteSubtitles: function (id, options) {
|
|
910
|
+
return localVarFp.getRemoteSubtitles(id, options).then(function (request) { return request(axios, basePath); });
|
|
911
|
+
},
|
|
912
|
+
/**
|
|
913
|
+
*
|
|
914
|
+
* @summary Gets subtitles in a specified format.
|
|
915
|
+
* @param {string} routeItemId The (route) item id.
|
|
916
|
+
* @param {string} routeMediaSourceId The (route) media source id.
|
|
917
|
+
* @param {number} routeIndex The (route) subtitle stream index.
|
|
918
|
+
* @param {string} routeFormat The (route) format of the returned subtitle.
|
|
919
|
+
* @param {string} [itemId] The item id.
|
|
920
|
+
* @param {string} [mediaSourceId] The media source id.
|
|
921
|
+
* @param {number} [index] The subtitle stream index.
|
|
922
|
+
* @param {string} [format] The format of the returned subtitle.
|
|
923
|
+
* @param {number} [endPositionTicks] Optional. The end position of the subtitle in ticks.
|
|
924
|
+
* @param {boolean} [copyTimestamps] Optional. Whether to copy the timestamps.
|
|
925
|
+
* @param {boolean} [addVttTimeMap] Optional. Whether to add a VTT time map.
|
|
926
|
+
* @param {number} [startPositionTicks] The start position of the subtitle in ticks.
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
getSubtitle: function (routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId, mediaSourceId, index, format, endPositionTicks, copyTimestamps, addVttTimeMap, startPositionTicks, options) {
|
|
931
|
+
return localVarFp.getSubtitle(routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId, mediaSourceId, index, format, endPositionTicks, copyTimestamps, addVttTimeMap, startPositionTicks, options).then(function (request) { return request(axios, basePath); });
|
|
932
|
+
},
|
|
933
|
+
/**
|
|
934
|
+
*
|
|
935
|
+
* @summary Gets an HLS subtitle playlist.
|
|
936
|
+
* @param {string} itemId The item id.
|
|
937
|
+
* @param {number} index The subtitle stream index.
|
|
938
|
+
* @param {string} mediaSourceId The media source id.
|
|
939
|
+
* @param {number} segmentLength The subtitle segment length.
|
|
940
|
+
* @param {*} [options] Override http request option.
|
|
941
|
+
* @throws {RequiredError}
|
|
942
|
+
*/
|
|
943
|
+
getSubtitlePlaylist: function (itemId, index, mediaSourceId, segmentLength, options) {
|
|
944
|
+
return localVarFp.getSubtitlePlaylist(itemId, index, mediaSourceId, segmentLength, options).then(function (request) { return request(axios, basePath); });
|
|
945
|
+
},
|
|
946
|
+
/**
|
|
947
|
+
*
|
|
948
|
+
* @summary Gets subtitles in a specified format.
|
|
949
|
+
* @param {string} routeItemId The (route) item id.
|
|
950
|
+
* @param {string} routeMediaSourceId The (route) media source id.
|
|
951
|
+
* @param {number} routeIndex The (route) subtitle stream index.
|
|
952
|
+
* @param {number} routeStartPositionTicks The (route) start position of the subtitle in ticks.
|
|
953
|
+
* @param {string} routeFormat The (route) format of the returned subtitle.
|
|
954
|
+
* @param {string} [itemId] The item id.
|
|
955
|
+
* @param {string} [mediaSourceId] The media source id.
|
|
956
|
+
* @param {number} [index] The subtitle stream index.
|
|
957
|
+
* @param {number} [startPositionTicks] The start position of the subtitle in ticks.
|
|
958
|
+
* @param {string} [format] The format of the returned subtitle.
|
|
959
|
+
* @param {number} [endPositionTicks] Optional. The end position of the subtitle in ticks.
|
|
960
|
+
* @param {boolean} [copyTimestamps] Optional. Whether to copy the timestamps.
|
|
961
|
+
* @param {boolean} [addVttTimeMap] Optional. Whether to add a VTT time map.
|
|
962
|
+
* @param {*} [options] Override http request option.
|
|
963
|
+
* @throws {RequiredError}
|
|
964
|
+
*/
|
|
965
|
+
getSubtitleWithTicks: function (routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId, mediaSourceId, index, startPositionTicks, format, endPositionTicks, copyTimestamps, addVttTimeMap, options) {
|
|
966
|
+
return localVarFp.getSubtitleWithTicks(routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId, mediaSourceId, index, startPositionTicks, format, endPositionTicks, copyTimestamps, addVttTimeMap, options).then(function (request) { return request(axios, basePath); });
|
|
967
|
+
},
|
|
968
|
+
/**
|
|
969
|
+
*
|
|
970
|
+
* @summary Search remote subtitles.
|
|
971
|
+
* @param {string} itemId The item id.
|
|
972
|
+
* @param {string} language The language of the subtitles.
|
|
973
|
+
* @param {boolean} [isPerfectMatch] Optional. Only show subtitles which are a perfect match.
|
|
974
|
+
* @param {*} [options] Override http request option.
|
|
975
|
+
* @throws {RequiredError}
|
|
976
|
+
*/
|
|
977
|
+
searchRemoteSubtitles: function (itemId, language, isPerfectMatch, options) {
|
|
978
|
+
return localVarFp.searchRemoteSubtitles(itemId, language, isPerfectMatch, options).then(function (request) { return request(axios, basePath); });
|
|
979
|
+
},
|
|
980
|
+
/**
|
|
981
|
+
*
|
|
982
|
+
* @summary Upload an external subtitle file.
|
|
983
|
+
* @param {string} itemId The item the subtitle belongs to.
|
|
984
|
+
* @param {UploadSubtitleDto} uploadSubtitleDto The request body.
|
|
985
|
+
* @param {*} [options] Override http request option.
|
|
986
|
+
* @throws {RequiredError}
|
|
987
|
+
*/
|
|
988
|
+
uploadSubtitle: function (itemId, uploadSubtitleDto, options) {
|
|
989
|
+
return localVarFp.uploadSubtitle(itemId, uploadSubtitleDto, options).then(function (request) { return request(axios, basePath); });
|
|
990
|
+
},
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
exports.SubtitleApiFactory = SubtitleApiFactory;
|
|
994
|
+
/**
|
|
995
|
+
* SubtitleApi - object-oriented interface
|
|
996
|
+
* @export
|
|
997
|
+
* @class SubtitleApi
|
|
998
|
+
* @extends {BaseAPI}
|
|
999
|
+
*/
|
|
1000
|
+
var SubtitleApi = /** @class */ (function (_super) {
|
|
1001
|
+
__extends(SubtitleApi, _super);
|
|
1002
|
+
function SubtitleApi() {
|
|
1003
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
* @summary Deletes an external subtitle file.
|
|
1008
|
+
* @param {SubtitleApiDeleteSubtitleRequest} requestParameters Request parameters.
|
|
1009
|
+
* @param {*} [options] Override http request option.
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
* @memberof SubtitleApi
|
|
1012
|
+
*/
|
|
1013
|
+
SubtitleApi.prototype.deleteSubtitle = function (requestParameters, options) {
|
|
1014
|
+
var _this = this;
|
|
1015
|
+
return (0, exports.SubtitleApiFp)(this.configuration).deleteSubtitle(requestParameters.itemId, requestParameters.index, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1016
|
+
};
|
|
1017
|
+
/**
|
|
1018
|
+
*
|
|
1019
|
+
* @summary Downloads a remote subtitle.
|
|
1020
|
+
* @param {SubtitleApiDownloadRemoteSubtitlesRequest} requestParameters Request parameters.
|
|
1021
|
+
* @param {*} [options] Override http request option.
|
|
1022
|
+
* @throws {RequiredError}
|
|
1023
|
+
* @memberof SubtitleApi
|
|
1024
|
+
*/
|
|
1025
|
+
SubtitleApi.prototype.downloadRemoteSubtitles = function (requestParameters, options) {
|
|
1026
|
+
var _this = this;
|
|
1027
|
+
return (0, exports.SubtitleApiFp)(this.configuration).downloadRemoteSubtitles(requestParameters.itemId, requestParameters.subtitleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1028
|
+
};
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @summary Gets a fallback font file.
|
|
1032
|
+
* @param {SubtitleApiGetFallbackFontRequest} requestParameters Request parameters.
|
|
1033
|
+
* @param {*} [options] Override http request option.
|
|
1034
|
+
* @throws {RequiredError}
|
|
1035
|
+
* @memberof SubtitleApi
|
|
1036
|
+
*/
|
|
1037
|
+
SubtitleApi.prototype.getFallbackFont = function (requestParameters, options) {
|
|
1038
|
+
var _this = this;
|
|
1039
|
+
return (0, exports.SubtitleApiFp)(this.configuration).getFallbackFont(requestParameters.name, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1040
|
+
};
|
|
1041
|
+
/**
|
|
1042
|
+
*
|
|
1043
|
+
* @summary Gets a list of available fallback font files.
|
|
1044
|
+
* @param {*} [options] Override http request option.
|
|
1045
|
+
* @throws {RequiredError}
|
|
1046
|
+
* @memberof SubtitleApi
|
|
1047
|
+
*/
|
|
1048
|
+
SubtitleApi.prototype.getFallbackFontList = function (options) {
|
|
1049
|
+
var _this = this;
|
|
1050
|
+
return (0, exports.SubtitleApiFp)(this.configuration).getFallbackFontList(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1051
|
+
};
|
|
1052
|
+
/**
|
|
1053
|
+
*
|
|
1054
|
+
* @summary Gets the remote subtitles.
|
|
1055
|
+
* @param {SubtitleApiGetRemoteSubtitlesRequest} requestParameters Request parameters.
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
* @memberof SubtitleApi
|
|
1059
|
+
*/
|
|
1060
|
+
SubtitleApi.prototype.getRemoteSubtitles = function (requestParameters, options) {
|
|
1061
|
+
var _this = this;
|
|
1062
|
+
return (0, exports.SubtitleApiFp)(this.configuration).getRemoteSubtitles(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1063
|
+
};
|
|
1064
|
+
/**
|
|
1065
|
+
*
|
|
1066
|
+
* @summary Gets subtitles in a specified format.
|
|
1067
|
+
* @param {SubtitleApiGetSubtitleRequest} requestParameters Request parameters.
|
|
1068
|
+
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @throws {RequiredError}
|
|
1070
|
+
* @memberof SubtitleApi
|
|
1071
|
+
*/
|
|
1072
|
+
SubtitleApi.prototype.getSubtitle = function (requestParameters, options) {
|
|
1073
|
+
var _this = this;
|
|
1074
|
+
return (0, exports.SubtitleApiFp)(this.configuration).getSubtitle(requestParameters.routeItemId, requestParameters.routeMediaSourceId, requestParameters.routeIndex, requestParameters.routeFormat, requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.index, requestParameters.format, requestParameters.endPositionTicks, requestParameters.copyTimestamps, requestParameters.addVttTimeMap, requestParameters.startPositionTicks, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1075
|
+
};
|
|
1076
|
+
/**
|
|
1077
|
+
*
|
|
1078
|
+
* @summary Gets an HLS subtitle playlist.
|
|
1079
|
+
* @param {SubtitleApiGetSubtitlePlaylistRequest} requestParameters Request parameters.
|
|
1080
|
+
* @param {*} [options] Override http request option.
|
|
1081
|
+
* @throws {RequiredError}
|
|
1082
|
+
* @memberof SubtitleApi
|
|
1083
|
+
*/
|
|
1084
|
+
SubtitleApi.prototype.getSubtitlePlaylist = function (requestParameters, options) {
|
|
1085
|
+
var _this = this;
|
|
1086
|
+
return (0, exports.SubtitleApiFp)(this.configuration).getSubtitlePlaylist(requestParameters.itemId, requestParameters.index, requestParameters.mediaSourceId, requestParameters.segmentLength, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1087
|
+
};
|
|
1088
|
+
/**
|
|
1089
|
+
*
|
|
1090
|
+
* @summary Gets subtitles in a specified format.
|
|
1091
|
+
* @param {SubtitleApiGetSubtitleWithTicksRequest} requestParameters Request parameters.
|
|
1092
|
+
* @param {*} [options] Override http request option.
|
|
1093
|
+
* @throws {RequiredError}
|
|
1094
|
+
* @memberof SubtitleApi
|
|
1095
|
+
*/
|
|
1096
|
+
SubtitleApi.prototype.getSubtitleWithTicks = function (requestParameters, options) {
|
|
1097
|
+
var _this = this;
|
|
1098
|
+
return (0, exports.SubtitleApiFp)(this.configuration).getSubtitleWithTicks(requestParameters.routeItemId, requestParameters.routeMediaSourceId, requestParameters.routeIndex, requestParameters.routeStartPositionTicks, requestParameters.routeFormat, requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.index, requestParameters.startPositionTicks, requestParameters.format, requestParameters.endPositionTicks, requestParameters.copyTimestamps, requestParameters.addVttTimeMap, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1099
|
+
};
|
|
1100
|
+
/**
|
|
1101
|
+
*
|
|
1102
|
+
* @summary Search remote subtitles.
|
|
1103
|
+
* @param {SubtitleApiSearchRemoteSubtitlesRequest} requestParameters Request parameters.
|
|
1104
|
+
* @param {*} [options] Override http request option.
|
|
1105
|
+
* @throws {RequiredError}
|
|
1106
|
+
* @memberof SubtitleApi
|
|
1107
|
+
*/
|
|
1108
|
+
SubtitleApi.prototype.searchRemoteSubtitles = function (requestParameters, options) {
|
|
1109
|
+
var _this = this;
|
|
1110
|
+
return (0, exports.SubtitleApiFp)(this.configuration).searchRemoteSubtitles(requestParameters.itemId, requestParameters.language, requestParameters.isPerfectMatch, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1111
|
+
};
|
|
1112
|
+
/**
|
|
1113
|
+
*
|
|
1114
|
+
* @summary Upload an external subtitle file.
|
|
1115
|
+
* @param {SubtitleApiUploadSubtitleRequest} requestParameters Request parameters.
|
|
1116
|
+
* @param {*} [options] Override http request option.
|
|
1117
|
+
* @throws {RequiredError}
|
|
1118
|
+
* @memberof SubtitleApi
|
|
1119
|
+
*/
|
|
1120
|
+
SubtitleApi.prototype.uploadSubtitle = function (requestParameters, options) {
|
|
1121
|
+
var _this = this;
|
|
1122
|
+
return (0, exports.SubtitleApiFp)(this.configuration).uploadSubtitle(requestParameters.itemId, requestParameters.uploadSubtitleDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1123
|
+
};
|
|
1124
|
+
return SubtitleApi;
|
|
1125
|
+
}(base_1.BaseAPI));
|
|
1126
|
+
exports.SubtitleApi = SubtitleApi;
|