@jellyfin/sdk 0.9.0 → 0.11.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/README.md +10 -0
- package/lib/api.d.ts +0 -11
- package/lib/api.js +0 -14
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +17 -22
- package/lib/generated-client/api/activity-log-api.d.ts +9 -12
- package/lib/generated-client/api/activity-log-api.js +15 -18
- package/lib/generated-client/api/api-key-api.d.ts +18 -18
- package/lib/generated-client/api/api-key-api.js +40 -38
- package/lib/generated-client/api/artists-api.d.ts +27 -90
- package/lib/generated-client/api/artists-api.js +43 -104
- package/lib/generated-client/api/audio-api.d.ts +81 -249
- package/lib/generated-client/api/audio-api.js +105 -266
- package/lib/generated-client/api/branding-api.d.ts +16 -16
- package/lib/generated-client/api/branding-api.js +31 -29
- package/lib/generated-client/api/channels-api.d.ts +33 -51
- package/lib/generated-client/api/channels-api.js +68 -82
- package/lib/generated-client/api/client-log-api.d.ts +13 -13
- package/lib/generated-client/api/client-log-api.js +17 -17
- package/lib/generated-client/api/collection-api.d.ts +19 -24
- package/lib/generated-client/api/collection-api.js +43 -46
- package/lib/generated-client/api/configuration-api.d.ts +28 -29
- package/lib/generated-client/api/configuration-api.js +65 -62
- package/lib/generated-client/api/dashboard-api.d.ts +14 -14
- package/lib/generated-client/api/dashboard-api.js +28 -27
- package/lib/generated-client/api/devices-api.d.ts +31 -33
- package/lib/generated-client/api/devices-api.js +71 -68
- package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
- package/lib/generated-client/api/display-preferences-api.js +29 -33
- package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
- package/lib/generated-client/api/dynamic-hls-api.js +269 -628
- package/lib/generated-client/api/environment-api.d.ts +33 -35
- package/lib/generated-client/api/environment-api.js +76 -73
- package/lib/generated-client/api/filter-api.d.ts +17 -29
- package/lib/generated-client/api/filter-api.js +29 -40
- package/lib/generated-client/api/genres-api.d.ts +20 -38
- package/lib/generated-client/api/genres-api.js +29 -46
- package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
- package/lib/generated-client/api/hls-segment-api.js +68 -71
- package/lib/generated-client/api/image-api.d.ts +206 -644
- package/lib/generated-client/api/image-api.js +501 -903
- package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
- package/lib/generated-client/api/instant-mix-api.js +113 -162
- package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
- package/lib/generated-client/api/item-lookup-api.js +155 -147
- package/lib/generated-client/api/item-refresh-api.d.ts +9 -13
- package/lib/generated-client/api/item-refresh-api.js +15 -19
- package/lib/generated-client/api/item-update-api.d.ts +20 -22
- package/lib/generated-client/api/item-update-api.js +43 -43
- package/lib/generated-client/api/items-api.d.ts +44 -137
- package/lib/generated-client/api/items-api.js +63 -156
- package/lib/generated-client/api/library-api.d.ts +185 -170
- package/lib/generated-client/api/library-api.js +378 -359
- package/lib/generated-client/api/library-structure-api.d.ts +48 -58
- package/lib/generated-client/api/library-structure-api.js +110 -113
- package/lib/generated-client/api/live-tv-api.d.ts +224 -332
- package/lib/generated-client/api/live-tv-api.js +558 -626
- package/lib/generated-client/api/localization-api.d.ts +23 -23
- package/lib/generated-client/api/localization-api.js +45 -42
- package/lib/generated-client/api/lyrics-api.d.ts +39 -42
- package/lib/generated-client/api/lyrics-api.js +87 -85
- package/lib/generated-client/api/media-info-api.d.ts +40 -59
- package/lib/generated-client/api/media-info-api.js +77 -95
- package/lib/generated-client/api/media-segments-api.d.ts +95 -0
- package/lib/generated-client/api/media-segments-api.js +123 -0
- package/lib/generated-client/api/movies-api.d.ts +10 -14
- package/lib/generated-client/api/movies-api.js +15 -19
- package/lib/generated-client/api/music-genres-api.d.ts +20 -38
- package/lib/generated-client/api/music-genres-api.js +29 -46
- package/lib/generated-client/api/package-api.d.ts +33 -37
- package/lib/generated-client/api/package-api.js +79 -78
- package/lib/generated-client/api/persons-api.d.ts +18 -31
- package/lib/generated-client/api/persons-api.js +29 -41
- package/lib/generated-client/api/playlists-api.d.ts +109 -84
- package/lib/generated-client/api/playlists-api.js +207 -154
- package/lib/generated-client/api/playstate-api.d.ts +54 -80
- package/lib/generated-client/api/playstate-api.js +127 -145
- package/lib/generated-client/api/plugins-api.d.ts +48 -52
- package/lib/generated-client/api/plugins-api.js +124 -120
- package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
- package/lib/generated-client/api/quick-connect-api.js +48 -46
- package/lib/generated-client/api/remote-image-api.d.ts +21 -28
- package/lib/generated-client/api/remote-image-api.js +43 -48
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
- package/lib/generated-client/api/scheduled-tasks-api.js +71 -69
- package/lib/generated-client/api/search-api.d.ts +11 -28
- package/lib/generated-client/api/search-api.js +15 -32
- package/lib/generated-client/api/session-api.d.ts +90 -117
- package/lib/generated-client/api/session-api.js +216 -228
- package/lib/generated-client/api/startup-api.d.ts +37 -37
- package/lib/generated-client/api/startup-api.js +87 -81
- package/lib/generated-client/api/studios-api.d.ts +18 -35
- package/lib/generated-client/api/studios-api.js +29 -45
- package/lib/generated-client/api/subtitle-api.d.ts +55 -86
- package/lib/generated-client/api/subtitle-api.js +136 -158
- package/lib/generated-client/api/suggestions-api.d.ts +11 -16
- package/lib/generated-client/api/suggestions-api.js +15 -20
- package/lib/generated-client/api/sync-play-api.d.ts +120 -120
- package/lib/generated-client/api/sync-play-api.js +280 -260
- package/lib/generated-client/api/system-api.d.ts +49 -49
- package/lib/generated-client/api/system-api.js +111 -102
- package/lib/generated-client/api/time-sync-api.d.ts +8 -8
- package/lib/generated-client/api/time-sync-api.js +11 -11
- package/lib/generated-client/api/tmdb-api.d.ts +8 -8
- package/lib/generated-client/api/tmdb-api.js +12 -12
- package/lib/generated-client/api/trailers-api.d.ts +19 -102
- package/lib/generated-client/api/trailers-api.js +15 -98
- package/lib/generated-client/api/trickplay-api.d.ts +13 -18
- package/lib/generated-client/api/trickplay-api.js +29 -33
- package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
- package/lib/generated-client/api/tv-shows-api.js +57 -99
- package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
- package/lib/generated-client/api/universal-audio-api.js +41 -64
- package/lib/generated-client/api/user-api.d.ts +83 -88
- package/lib/generated-client/api/user-api.js +186 -178
- package/lib/generated-client/api/user-library-api.d.ts +59 -78
- package/lib/generated-client/api/user-library-api.js +141 -151
- package/lib/generated-client/api/user-views-api.d.ts +16 -19
- package/lib/generated-client/api/user-views-api.js +29 -31
- package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
- package/lib/generated-client/api/video-attachments-api.js +14 -16
- package/lib/generated-client/api/videos-api.d.ts +97 -274
- package/lib/generated-client/api/videos-api.js +147 -314
- package/lib/generated-client/api/years-api.d.ts +21 -36
- package/lib/generated-client/api/years-api.js +29 -43
- package/lib/generated-client/api.d.ts +1 -0
- package/lib/generated-client/base.d.ts +15 -4
- package/lib/generated-client/base.js +8 -4
- package/lib/generated-client/common.d.ts +3 -3
- package/lib/generated-client/common.js +30 -24
- package/lib/generated-client/configuration.d.ts +8 -0
- package/lib/generated-client/configuration.js +1 -0
- package/lib/generated-client/index.js +8 -1
- package/lib/generated-client/models/access-schedule.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-message.d.ts +2 -2
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
- package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry.d.ts +1 -1
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/album-info.d.ts +5 -5
- package/lib/generated-client/models/all-theme-media-result.d.ts +1 -1
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/artist-info.d.ts +3 -3
- package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
- package/lib/generated-client/models/authentication-result.d.ts +7 -7
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/base-item-dto.d.ts +26 -26
- package/lib/generated-client/models/base-item-person.d.ts +2 -2
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/book-info.d.ts +2 -2
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/box-set-info.d.ts +2 -2
- package/lib/generated-client/models/channel-features.d.ts +3 -3
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +3 -3
- package/lib/generated-client/models/client-capabilities-dto.d.ts +3 -17
- package/lib/generated-client/models/client-capabilities.d.ts +3 -3
- package/lib/generated-client/models/codec-profile.d.ts +15 -9
- package/lib/generated-client/models/container-profile.d.ts +12 -6
- package/lib/generated-client/models/create-playlist-dto.d.ts +2 -2
- package/lib/generated-client/models/deinterlace-method.d.ts +20 -0
- package/lib/generated-client/models/{hardware-encoding-type.js → deinterlace-method.js} +5 -10
- package/lib/generated-client/models/device-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-dto.d.ts +84 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +1 -1
- package/lib/generated-client/models/device-info.d.ts +1 -1
- package/lib/generated-client/models/device-profile.d.ts +8 -8
- package/lib/generated-client/models/direct-play-profile.d.ts +6 -6
- package/lib/generated-client/models/display-preferences-dto.d.ts +4 -4
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +3 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.js +4 -2
- package/lib/generated-client/models/encoder-preset.d.ts +29 -0
- package/lib/generated-client/models/encoder-preset.js +32 -0
- package/lib/generated-client/models/encoding-options.d.ts +43 -19
- package/lib/generated-client/models/external-id-info.d.ts +2 -1
- package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
- package/lib/generated-client/models/force-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/forgot-password-result.d.ts +1 -1
- package/lib/generated-client/models/general-command-message.d.ts +2 -2
- package/lib/generated-client/models/general-command.d.ts +3 -3
- package/lib/generated-client/models/get-programs-dto.d.ts +34 -34
- package/lib/generated-client/models/group-info-dto-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-info-dto.d.ts +1 -1
- package/lib/generated-client/models/group-state-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-state-update.d.ts +2 -2
- package/lib/generated-client/models/group-update.d.ts +23 -5
- package/lib/generated-client/models/hardware-acceleration-type.d.ts +26 -0
- package/lib/generated-client/models/hardware-acceleration-type.js +29 -0
- package/lib/generated-client/models/image-info.d.ts +1 -1
- package/lib/generated-client/models/image-option.d.ts +1 -1
- package/lib/generated-client/models/image-provider-info.d.ts +1 -1
- package/lib/generated-client/models/inbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/inbound-web-socket-message.d.ts +22 -8
- package/lib/generated-client/models/index.d.ts +13 -6
- package/lib/generated-client/models/index.js +7 -1
- package/lib/generated-client/models/installation-info.d.ts +1 -1
- package/lib/generated-client/models/library-changed-message.d.ts +2 -2
- package/lib/generated-client/models/library-options-result-dto.d.ts +8 -2
- package/lib/generated-client/models/library-options.d.ts +57 -3
- package/lib/generated-client/models/library-type-options-dto.d.ts +3 -3
- package/lib/generated-client/models/listings-provider-info.d.ts +1 -1
- package/lib/generated-client/models/live-stream-response.d.ts +1 -1
- package/lib/generated-client/models/live-tv-info.d.ts +1 -1
- package/lib/generated-client/models/live-tv-options.d.ts +2 -2
- package/lib/generated-client/models/live-tv-service-info.d.ts +1 -1
- package/lib/generated-client/models/lyric-dto.d.ts +2 -2
- package/lib/generated-client/models/media-path-dto.d.ts +1 -1
- package/lib/generated-client/models/media-path-info.d.ts +0 -6
- package/lib/generated-client/models/media-segment-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/media-segment-dto.d.ts +48 -0
- package/lib/generated-client/models/media-segment-type.d.ts +24 -0
- package/lib/generated-client/models/media-segment-type.js +27 -0
- package/lib/generated-client/models/media-source-info.d.ts +29 -11
- package/lib/generated-client/models/media-stream.d.ts +17 -5
- package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
- package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/movie-info.d.ts +2 -2
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/music-video-info.d.ts +2 -2
- package/lib/generated-client/models/open-live-stream-dto.d.ts +8 -2
- package/lib/generated-client/models/outbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +85 -29
- package/lib/generated-client/models/package-info.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info.d.ts +2 -2
- package/lib/generated-client/models/play-message.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update.d.ts +4 -4
- package/lib/generated-client/models/play-request.d.ts +1 -1
- package/lib/generated-client/models/playback-info-dto.d.ts +7 -1
- package/lib/generated-client/models/playback-info-response.d.ts +2 -2
- package/lib/generated-client/models/playback-progress-info.d.ts +5 -5
- package/lib/generated-client/models/playback-start-info.d.ts +5 -5
- package/lib/generated-client/models/playback-stop-info.d.ts +2 -2
- package/lib/generated-client/models/player-state-info.d.ts +3 -3
- package/lib/generated-client/models/playlist-dto.d.ts +36 -0
- package/lib/generated-client/models/playstate-message.d.ts +2 -2
- package/lib/generated-client/models/playstate-request.d.ts +1 -1
- package/lib/generated-client/models/plugin-info.d.ts +1 -1
- package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-completed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-failed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installing-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-uninstalled-message.d.ts +2 -2
- package/lib/generated-client/models/problem-details.d.ts +1 -1
- package/lib/generated-client/models/profile-condition.d.ts +2 -2
- package/lib/generated-client/models/query-filters.d.ts +1 -1
- package/lib/generated-client/models/queue-request-dto.d.ts +1 -1
- package/lib/generated-client/models/recommendation-dto.d.ts +2 -2
- package/lib/generated-client/models/refresh-progress-message.d.ts +3 -3
- package/lib/generated-client/models/remote-image-info.d.ts +2 -2
- package/lib/generated-client/models/remote-image-result.d.ts +1 -1
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +1 -1
- package/lib/generated-client/models/remote-search-result.d.ts +2 -2
- package/lib/generated-client/models/restart-required-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-task-ended-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +1 -1
- package/lib/generated-client/models/search-hint-result.d.ts +1 -1
- package/lib/generated-client/models/search-hint.d.ts +3 -3
- package/lib/generated-client/models/send-command.d.ts +1 -1
- package/lib/generated-client/models/series-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/series-info.d.ts +2 -2
- package/lib/generated-client/models/series-timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/series-timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/server-configuration.d.ts +8 -14
- package/lib/generated-client/models/server-restarting-message.d.ts +1 -1
- package/lib/generated-client/models/server-shutting-down-message.d.ts +1 -1
- package/lib/generated-client/models/session-info-dto.d.ts +199 -0
- package/lib/generated-client/models/session-info.d.ts +8 -8
- package/lib/generated-client/models/sessions-message.d.ts +4 -4
- package/lib/generated-client/models/sessions-start-message.d.ts +1 -1
- package/lib/generated-client/models/sessions-stop-message.d.ts +1 -1
- package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/song-info.d.ts +2 -2
- package/lib/generated-client/models/string-group-update.d.ts +1 -1
- package/lib/generated-client/models/subtitle-profile.d.ts +6 -6
- package/lib/generated-client/models/sync-play-command-message.d.ts +2 -2
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
- package/lib/generated-client/models/system-info.d.ts +2 -2
- package/lib/generated-client/models/task-info.d.ts +3 -3
- package/lib/generated-client/models/task-result.d.ts +1 -1
- package/lib/generated-client/models/task-trigger-info.d.ts +1 -1
- package/lib/generated-client/models/theme-media-result.d.ts +2 -2
- package/lib/generated-client/models/timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/tonemapping-algorithm.d.ts +26 -0
- package/lib/generated-client/models/tonemapping-algorithm.js +29 -0
- package/lib/generated-client/models/tonemapping-mode.d.ts +23 -0
- package/lib/generated-client/models/tonemapping-mode.js +26 -0
- package/lib/generated-client/models/tonemapping-range.d.ts +21 -0
- package/lib/generated-client/models/tonemapping-range.js +24 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/trailer-info.d.ts +2 -2
- package/lib/generated-client/models/transcode-reason.d.ts +1 -0
- package/lib/generated-client/models/transcode-reason.js +2 -1
- package/lib/generated-client/models/transcoding-info.d.ts +16 -16
- package/lib/generated-client/models/transcoding-profile.d.ts +24 -18
- package/lib/generated-client/models/trickplay-options.d.ts +8 -2
- package/lib/generated-client/models/tuner-host-info.d.ts +18 -0
- package/lib/generated-client/models/type-options.d.ts +1 -1
- package/lib/generated-client/models/update-library-options-dto.d.ts +1 -1
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +1 -1
- package/lib/generated-client/models/update-playlist-dto.d.ts +1 -1
- package/lib/generated-client/models/user-configuration.d.ts +1 -1
- package/lib/generated-client/models/user-data-change-info.d.ts +3 -3
- package/lib/generated-client/models/user-data-changed-message.d.ts +2 -2
- package/lib/generated-client/models/user-deleted-message.d.ts +1 -1
- package/lib/generated-client/models/user-dto.d.ts +2 -2
- package/lib/generated-client/models/user-item-data-dto.d.ts +2 -2
- package/lib/generated-client/models/user-policy.d.ts +3 -3
- package/lib/generated-client/models/user-updated-message.d.ts +2 -2
- package/lib/generated-client/models/virtual-folder-info.d.ts +2 -2
- package/lib/generated-client/models/web-socket-message.d.ts +2 -2
- package/lib/utils/address-candidates.js +15 -10
- package/lib/utils/api/image-urls-api.js +16 -4
- package/lib/utils/api/index.d.ts +1 -0
- package/lib/utils/api/index.js +1 -0
- package/lib/utils/api/media-segments-api.d.ts +8 -0
- package/lib/utils/api/media-segments-api.js +12 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/url/index.d.ts +16 -3
- package/lib/utils/url/index.js +26 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +13 -12
- package/lib/node_modules/tslib/tslib.es6.js +0 -33
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
5
4
|
|
|
6
5
|
/* tslint:disable */
|
|
7
6
|
/* eslint-disable */
|
|
@@ -29,7 +28,7 @@ const StudiosApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
getStudio:
|
|
31
|
+
getStudio: async (name, userId, options = {}) => {
|
|
33
32
|
// verify required parameter 'name' is not null or undefined
|
|
34
33
|
assertParamExists('getStudio', 'name', name);
|
|
35
34
|
const localVarPath = `/Studios/{name}`
|
|
@@ -40,22 +39,22 @@ const StudiosApiAxiosParamCreator = function (configuration) {
|
|
|
40
39
|
if (configuration) {
|
|
41
40
|
baseOptions = configuration.baseOptions;
|
|
42
41
|
}
|
|
43
|
-
const localVarRequestOptions =
|
|
42
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
44
43
|
const localVarHeaderParameter = {};
|
|
45
44
|
const localVarQueryParameter = {};
|
|
46
45
|
// authentication CustomAuthentication required
|
|
47
|
-
|
|
46
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
48
47
|
if (userId !== undefined) {
|
|
49
48
|
localVarQueryParameter['userId'] = userId;
|
|
50
49
|
}
|
|
51
50
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
52
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
|
-
localVarRequestOptions.headers =
|
|
52
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
54
53
|
return {
|
|
55
54
|
url: toPathString(localVarUrlObj),
|
|
56
55
|
options: localVarRequestOptions,
|
|
57
56
|
};
|
|
58
|
-
}
|
|
57
|
+
},
|
|
59
58
|
/**
|
|
60
59
|
*
|
|
61
60
|
* @summary Gets all studios from a given item, folder, or the entire library.
|
|
@@ -79,7 +78,7 @@ const StudiosApiAxiosParamCreator = function (configuration) {
|
|
|
79
78
|
* @param {*} [options] Override http request option.
|
|
80
79
|
* @throws {RequiredError}
|
|
81
80
|
*/
|
|
82
|
-
getStudios:
|
|
81
|
+
getStudios: async (startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options = {}) => {
|
|
83
82
|
const localVarPath = `/Studios`;
|
|
84
83
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
85
84
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -87,11 +86,11 @@ const StudiosApiAxiosParamCreator = function (configuration) {
|
|
|
87
86
|
if (configuration) {
|
|
88
87
|
baseOptions = configuration.baseOptions;
|
|
89
88
|
}
|
|
90
|
-
const localVarRequestOptions =
|
|
89
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
91
90
|
const localVarHeaderParameter = {};
|
|
92
91
|
const localVarQueryParameter = {};
|
|
93
92
|
// authentication CustomAuthentication required
|
|
94
|
-
|
|
93
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
95
94
|
if (startIndex !== undefined) {
|
|
96
95
|
localVarQueryParameter['startIndex'] = startIndex;
|
|
97
96
|
}
|
|
@@ -145,12 +144,12 @@ const StudiosApiAxiosParamCreator = function (configuration) {
|
|
|
145
144
|
}
|
|
146
145
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147
146
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
148
|
-
localVarRequestOptions.headers =
|
|
147
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
149
148
|
return {
|
|
150
149
|
url: toPathString(localVarUrlObj),
|
|
151
150
|
options: localVarRequestOptions,
|
|
152
151
|
};
|
|
153
|
-
}
|
|
152
|
+
},
|
|
154
153
|
};
|
|
155
154
|
};
|
|
156
155
|
/**
|
|
@@ -168,11 +167,12 @@ const StudiosApiFp = function (configuration) {
|
|
|
168
167
|
* @param {*} [options] Override http request option.
|
|
169
168
|
* @throws {RequiredError}
|
|
170
169
|
*/
|
|
171
|
-
getStudio(name, userId, options) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
170
|
+
async getStudio(name, userId, options) {
|
|
171
|
+
var _a, _b, _c;
|
|
172
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStudio(name, userId, options);
|
|
173
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
174
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StudiosApi.getStudio']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
175
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
176
176
|
},
|
|
177
177
|
/**
|
|
178
178
|
*
|
|
@@ -197,11 +197,12 @@ const StudiosApiFp = function (configuration) {
|
|
|
197
197
|
* @param {*} [options] Override http request option.
|
|
198
198
|
* @throws {RequiredError}
|
|
199
199
|
*/
|
|
200
|
-
getStudios(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
200
|
+
async getStudios(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options) {
|
|
201
|
+
var _a, _b, _c;
|
|
202
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStudios(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options);
|
|
203
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
204
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StudiosApi.getStudios']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
205
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
205
206
|
},
|
|
206
207
|
};
|
|
207
208
|
};
|
|
@@ -215,39 +216,22 @@ const StudiosApiFactory = function (configuration, basePath, axios) {
|
|
|
215
216
|
/**
|
|
216
217
|
*
|
|
217
218
|
* @summary Gets a studio by name.
|
|
218
|
-
* @param {
|
|
219
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
219
|
+
* @param {StudiosApiGetStudioRequest} requestParameters Request parameters.
|
|
220
220
|
* @param {*} [options] Override http request option.
|
|
221
221
|
* @throws {RequiredError}
|
|
222
222
|
*/
|
|
223
|
-
getStudio(
|
|
224
|
-
return localVarFp.getStudio(name, userId, options).then((request) => request(axios, basePath));
|
|
223
|
+
getStudio(requestParameters, options) {
|
|
224
|
+
return localVarFp.getStudio(requestParameters.name, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
225
225
|
},
|
|
226
226
|
/**
|
|
227
227
|
*
|
|
228
228
|
* @summary Gets all studios from a given item, folder, or the entire library.
|
|
229
|
-
* @param {
|
|
230
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
231
|
-
* @param {string} [searchTerm] Optional. Search term.
|
|
232
|
-
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
233
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
234
|
-
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited.
|
|
235
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
236
|
-
* @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not.
|
|
237
|
-
* @param {boolean} [enableUserData] Optional, include user data.
|
|
238
|
-
* @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
|
|
239
|
-
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
240
|
-
* @param {string} [userId] User id.
|
|
241
|
-
* @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string.
|
|
242
|
-
* @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string.
|
|
243
|
-
* @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string.
|
|
244
|
-
* @param {boolean} [enableImages] Optional, include image information in output.
|
|
245
|
-
* @param {boolean} [enableTotalRecordCount] Total record count.
|
|
229
|
+
* @param {StudiosApiGetStudiosRequest} requestParameters Request parameters.
|
|
246
230
|
* @param {*} [options] Override http request option.
|
|
247
231
|
* @throws {RequiredError}
|
|
248
232
|
*/
|
|
249
|
-
getStudios(
|
|
250
|
-
return localVarFp.getStudios(startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options).then((request) => request(axios, basePath));
|
|
233
|
+
getStudios(requestParameters = {}, options) {
|
|
234
|
+
return localVarFp.getStudios(requestParameters.startIndex, requestParameters.limit, requestParameters.searchTerm, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.isFavorite, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.userId, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.enableImages, requestParameters.enableTotalRecordCount, options).then((request) => request(axios, basePath));
|
|
251
235
|
},
|
|
252
236
|
};
|
|
253
237
|
};
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
9
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
14
|
-
import { FontFile } from '../models';
|
|
15
|
-
import { RemoteSubtitleInfo } from '../models';
|
|
16
|
-
import { UploadSubtitleDto } from '../models';
|
|
11
|
+
import type { Configuration } from '../configuration';
|
|
12
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import type { FontFile } from '../models';
|
|
15
|
+
import type { RemoteSubtitleInfo } from '../models';
|
|
16
|
+
import type { UploadSubtitleDto } from '../models';
|
|
17
17
|
/**
|
|
18
18
|
* SubtitleApi - axios parameter creator
|
|
19
19
|
* @export
|
|
@@ -27,7 +27,7 @@ export declare const SubtitleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
28
28
|
* @throws {RequiredError}
|
|
29
29
|
*/
|
|
30
|
-
deleteSubtitle: (itemId: string, index: number, options?:
|
|
30
|
+
deleteSubtitle: (itemId: string, index: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @summary Downloads a remote subtitle.
|
|
@@ -36,7 +36,7 @@ export declare const SubtitleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
36
36
|
* @param {*} [options] Override http request option.
|
|
37
37
|
* @throws {RequiredError}
|
|
38
38
|
*/
|
|
39
|
-
downloadRemoteSubtitles: (itemId: string, subtitleId: string, options?:
|
|
39
|
+
downloadRemoteSubtitles: (itemId: string, subtitleId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @summary Gets a fallback font file.
|
|
@@ -44,14 +44,14 @@ export declare const SubtitleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
45
45
|
* @throws {RequiredError}
|
|
46
46
|
*/
|
|
47
|
-
getFallbackFont: (name: string, options?:
|
|
47
|
+
getFallbackFont: (name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @summary Gets a list of available fallback font files.
|
|
51
51
|
* @param {*} [options] Override http request option.
|
|
52
52
|
* @throws {RequiredError}
|
|
53
53
|
*/
|
|
54
|
-
getFallbackFontList: (options?:
|
|
54
|
+
getFallbackFontList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @summary Gets the remote subtitles.
|
|
@@ -59,7 +59,7 @@ export declare const SubtitleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
59
59
|
* @param {*} [options] Override http request option.
|
|
60
60
|
* @throws {RequiredError}
|
|
61
61
|
*/
|
|
62
|
-
getRemoteSubtitles: (subtitleId: string, options?:
|
|
62
|
+
getRemoteSubtitles: (subtitleId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @summary Gets subtitles in a specified format.
|
|
@@ -78,7 +78,7 @@ export declare const SubtitleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
*/
|
|
81
|
-
getSubtitle: (routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, startPositionTicks?: number, options?:
|
|
81
|
+
getSubtitle: (routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, startPositionTicks?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @summary Gets an HLS subtitle playlist.
|
|
@@ -89,7 +89,7 @@ export declare const SubtitleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
89
89
|
* @param {*} [options] Override http request option.
|
|
90
90
|
* @throws {RequiredError}
|
|
91
91
|
*/
|
|
92
|
-
getSubtitlePlaylist: (itemId: string, index: number, mediaSourceId: string, segmentLength: number, options?:
|
|
92
|
+
getSubtitlePlaylist: (itemId: string, index: number, mediaSourceId: string, segmentLength: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @summary Gets subtitles in a specified format.
|
|
@@ -109,7 +109,7 @@ export declare const SubtitleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
*/
|
|
112
|
-
getSubtitleWithTicks: (routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeStartPositionTicks: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, startPositionTicks?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, options?:
|
|
112
|
+
getSubtitleWithTicks: (routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeStartPositionTicks: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, startPositionTicks?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
113
113
|
/**
|
|
114
114
|
*
|
|
115
115
|
* @summary Search remote subtitles.
|
|
@@ -119,7 +119,7 @@ export declare const SubtitleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
119
119
|
* @param {*} [options] Override http request option.
|
|
120
120
|
* @throws {RequiredError}
|
|
121
121
|
*/
|
|
122
|
-
searchRemoteSubtitles: (itemId: string, language: string, isPerfectMatch?: boolean, options?:
|
|
122
|
+
searchRemoteSubtitles: (itemId: string, language: string, isPerfectMatch?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
123
123
|
/**
|
|
124
124
|
*
|
|
125
125
|
* @summary Upload an external subtitle file.
|
|
@@ -128,7 +128,7 @@ export declare const SubtitleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
128
128
|
* @param {*} [options] Override http request option.
|
|
129
129
|
* @throws {RequiredError}
|
|
130
130
|
*/
|
|
131
|
-
uploadSubtitle: (itemId: string, uploadSubtitleDto: UploadSubtitleDto, options?:
|
|
131
|
+
uploadSubtitle: (itemId: string, uploadSubtitleDto: UploadSubtitleDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
132
132
|
};
|
|
133
133
|
/**
|
|
134
134
|
* SubtitleApi - functional programming interface
|
|
@@ -143,7 +143,7 @@ export declare const SubtitleApiFp: (configuration?: Configuration) => {
|
|
|
143
143
|
* @param {*} [options] Override http request option.
|
|
144
144
|
* @throws {RequiredError}
|
|
145
145
|
*/
|
|
146
|
-
deleteSubtitle(itemId: string, index: number, options?:
|
|
146
|
+
deleteSubtitle(itemId: string, index: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
149
|
* @summary Downloads a remote subtitle.
|
|
@@ -152,7 +152,7 @@ export declare const SubtitleApiFp: (configuration?: Configuration) => {
|
|
|
152
152
|
* @param {*} [options] Override http request option.
|
|
153
153
|
* @throws {RequiredError}
|
|
154
154
|
*/
|
|
155
|
-
downloadRemoteSubtitles(itemId: string, subtitleId: string, options?:
|
|
155
|
+
downloadRemoteSubtitles(itemId: string, subtitleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
156
156
|
/**
|
|
157
157
|
*
|
|
158
158
|
* @summary Gets a fallback font file.
|
|
@@ -160,14 +160,14 @@ export declare const SubtitleApiFp: (configuration?: Configuration) => {
|
|
|
160
160
|
* @param {*} [options] Override http request option.
|
|
161
161
|
* @throws {RequiredError}
|
|
162
162
|
*/
|
|
163
|
-
getFallbackFont(name: string, options?:
|
|
163
|
+
getFallbackFont(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
164
164
|
/**
|
|
165
165
|
*
|
|
166
166
|
* @summary Gets a list of available fallback font files.
|
|
167
167
|
* @param {*} [options] Override http request option.
|
|
168
168
|
* @throws {RequiredError}
|
|
169
169
|
*/
|
|
170
|
-
getFallbackFontList(options?:
|
|
170
|
+
getFallbackFontList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FontFile>>>;
|
|
171
171
|
/**
|
|
172
172
|
*
|
|
173
173
|
* @summary Gets the remote subtitles.
|
|
@@ -175,7 +175,7 @@ export declare const SubtitleApiFp: (configuration?: Configuration) => {
|
|
|
175
175
|
* @param {*} [options] Override http request option.
|
|
176
176
|
* @throws {RequiredError}
|
|
177
177
|
*/
|
|
178
|
-
getRemoteSubtitles(subtitleId: string, options?:
|
|
178
|
+
getRemoteSubtitles(subtitleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
179
179
|
/**
|
|
180
180
|
*
|
|
181
181
|
* @summary Gets subtitles in a specified format.
|
|
@@ -194,7 +194,7 @@ export declare const SubtitleApiFp: (configuration?: Configuration) => {
|
|
|
194
194
|
* @param {*} [options] Override http request option.
|
|
195
195
|
* @throws {RequiredError}
|
|
196
196
|
*/
|
|
197
|
-
getSubtitle(routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, startPositionTicks?: number, options?:
|
|
197
|
+
getSubtitle(routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, startPositionTicks?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
198
198
|
/**
|
|
199
199
|
*
|
|
200
200
|
* @summary Gets an HLS subtitle playlist.
|
|
@@ -205,7 +205,7 @@ export declare const SubtitleApiFp: (configuration?: Configuration) => {
|
|
|
205
205
|
* @param {*} [options] Override http request option.
|
|
206
206
|
* @throws {RequiredError}
|
|
207
207
|
*/
|
|
208
|
-
getSubtitlePlaylist(itemId: string, index: number, mediaSourceId: string, segmentLength: number, options?:
|
|
208
|
+
getSubtitlePlaylist(itemId: string, index: number, mediaSourceId: string, segmentLength: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
209
209
|
/**
|
|
210
210
|
*
|
|
211
211
|
* @summary Gets subtitles in a specified format.
|
|
@@ -225,7 +225,7 @@ export declare const SubtitleApiFp: (configuration?: Configuration) => {
|
|
|
225
225
|
* @param {*} [options] Override http request option.
|
|
226
226
|
* @throws {RequiredError}
|
|
227
227
|
*/
|
|
228
|
-
getSubtitleWithTicks(routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeStartPositionTicks: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, startPositionTicks?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, options?:
|
|
228
|
+
getSubtitleWithTicks(routeItemId: string, routeMediaSourceId: string, routeIndex: number, routeStartPositionTicks: number, routeFormat: string, itemId?: string, mediaSourceId?: string, index?: number, startPositionTicks?: number, format?: string, endPositionTicks?: number, copyTimestamps?: boolean, addVttTimeMap?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
229
229
|
/**
|
|
230
230
|
*
|
|
231
231
|
* @summary Search remote subtitles.
|
|
@@ -235,7 +235,7 @@ export declare const SubtitleApiFp: (configuration?: Configuration) => {
|
|
|
235
235
|
* @param {*} [options] Override http request option.
|
|
236
236
|
* @throws {RequiredError}
|
|
237
237
|
*/
|
|
238
|
-
searchRemoteSubtitles(itemId: string, language: string, isPerfectMatch?: boolean, options?:
|
|
238
|
+
searchRemoteSubtitles(itemId: string, language: string, isPerfectMatch?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RemoteSubtitleInfo>>>;
|
|
239
239
|
/**
|
|
240
240
|
*
|
|
241
241
|
* @summary Upload an external subtitle file.
|
|
@@ -244,7 +244,7 @@ export declare const SubtitleApiFp: (configuration?: Configuration) => {
|
|
|
244
244
|
* @param {*} [options] Override http request option.
|
|
245
245
|
* @throws {RequiredError}
|
|
246
246
|
*/
|
|
247
|
-
uploadSubtitle(itemId: string, uploadSubtitleDto: UploadSubtitleDto, options?:
|
|
247
|
+
uploadSubtitle(itemId: string, uploadSubtitleDto: UploadSubtitleDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
248
248
|
};
|
|
249
249
|
/**
|
|
250
250
|
* SubtitleApi - factory interface
|
|
@@ -254,113 +254,82 @@ export declare const SubtitleApiFactory: (configuration?: Configuration, basePat
|
|
|
254
254
|
/**
|
|
255
255
|
*
|
|
256
256
|
* @summary Deletes an external subtitle file.
|
|
257
|
-
* @param {
|
|
258
|
-
* @param {number} index The index of the subtitle file.
|
|
257
|
+
* @param {SubtitleApiDeleteSubtitleRequest} requestParameters Request parameters.
|
|
259
258
|
* @param {*} [options] Override http request option.
|
|
260
259
|
* @throws {RequiredError}
|
|
261
260
|
*/
|
|
262
|
-
deleteSubtitle(
|
|
261
|
+
deleteSubtitle(requestParameters: SubtitleApiDeleteSubtitleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
263
262
|
/**
|
|
264
263
|
*
|
|
265
264
|
* @summary Downloads a remote subtitle.
|
|
266
|
-
* @param {
|
|
267
|
-
* @param {string} subtitleId The subtitle id.
|
|
265
|
+
* @param {SubtitleApiDownloadRemoteSubtitlesRequest} requestParameters Request parameters.
|
|
268
266
|
* @param {*} [options] Override http request option.
|
|
269
267
|
* @throws {RequiredError}
|
|
270
268
|
*/
|
|
271
|
-
downloadRemoteSubtitles(
|
|
269
|
+
downloadRemoteSubtitles(requestParameters: SubtitleApiDownloadRemoteSubtitlesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
272
270
|
/**
|
|
273
271
|
*
|
|
274
272
|
* @summary Gets a fallback font file.
|
|
275
|
-
* @param {
|
|
273
|
+
* @param {SubtitleApiGetFallbackFontRequest} requestParameters Request parameters.
|
|
276
274
|
* @param {*} [options] Override http request option.
|
|
277
275
|
* @throws {RequiredError}
|
|
278
276
|
*/
|
|
279
|
-
getFallbackFont(
|
|
277
|
+
getFallbackFont(requestParameters: SubtitleApiGetFallbackFontRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
280
278
|
/**
|
|
281
279
|
*
|
|
282
280
|
* @summary Gets a list of available fallback font files.
|
|
283
281
|
* @param {*} [options] Override http request option.
|
|
284
282
|
* @throws {RequiredError}
|
|
285
283
|
*/
|
|
286
|
-
getFallbackFontList(options?:
|
|
284
|
+
getFallbackFontList(options?: RawAxiosRequestConfig): AxiosPromise<Array<FontFile>>;
|
|
287
285
|
/**
|
|
288
286
|
*
|
|
289
287
|
* @summary Gets the remote subtitles.
|
|
290
|
-
* @param {
|
|
288
|
+
* @param {SubtitleApiGetRemoteSubtitlesRequest} requestParameters Request parameters.
|
|
291
289
|
* @param {*} [options] Override http request option.
|
|
292
290
|
* @throws {RequiredError}
|
|
293
291
|
*/
|
|
294
|
-
getRemoteSubtitles(
|
|
292
|
+
getRemoteSubtitles(requestParameters: SubtitleApiGetRemoteSubtitlesRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
295
293
|
/**
|
|
296
294
|
*
|
|
297
295
|
* @summary Gets subtitles in a specified format.
|
|
298
|
-
* @param {
|
|
299
|
-
* @param {string} routeMediaSourceId The (route) media source id.
|
|
300
|
-
* @param {number} routeIndex The (route) subtitle stream index.
|
|
301
|
-
* @param {string} routeFormat The (route) format of the returned subtitle.
|
|
302
|
-
* @param {string} [itemId] The item id.
|
|
303
|
-
* @param {string} [mediaSourceId] The media source id.
|
|
304
|
-
* @param {number} [index] The subtitle stream index.
|
|
305
|
-
* @param {string} [format] The format of the returned subtitle.
|
|
306
|
-
* @param {number} [endPositionTicks] Optional. The end position of the subtitle in ticks.
|
|
307
|
-
* @param {boolean} [copyTimestamps] Optional. Whether to copy the timestamps.
|
|
308
|
-
* @param {boolean} [addVttTimeMap] Optional. Whether to add a VTT time map.
|
|
309
|
-
* @param {number} [startPositionTicks] The start position of the subtitle in ticks.
|
|
296
|
+
* @param {SubtitleApiGetSubtitleRequest} requestParameters Request parameters.
|
|
310
297
|
* @param {*} [options] Override http request option.
|
|
311
298
|
* @throws {RequiredError}
|
|
312
299
|
*/
|
|
313
|
-
getSubtitle(
|
|
300
|
+
getSubtitle(requestParameters: SubtitleApiGetSubtitleRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
314
301
|
/**
|
|
315
302
|
*
|
|
316
303
|
* @summary Gets an HLS subtitle playlist.
|
|
317
|
-
* @param {
|
|
318
|
-
* @param {number} index The subtitle stream index.
|
|
319
|
-
* @param {string} mediaSourceId The media source id.
|
|
320
|
-
* @param {number} segmentLength The subtitle segment length.
|
|
304
|
+
* @param {SubtitleApiGetSubtitlePlaylistRequest} requestParameters Request parameters.
|
|
321
305
|
* @param {*} [options] Override http request option.
|
|
322
306
|
* @throws {RequiredError}
|
|
323
307
|
*/
|
|
324
|
-
getSubtitlePlaylist(
|
|
308
|
+
getSubtitlePlaylist(requestParameters: SubtitleApiGetSubtitlePlaylistRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
325
309
|
/**
|
|
326
310
|
*
|
|
327
311
|
* @summary Gets subtitles in a specified format.
|
|
328
|
-
* @param {
|
|
329
|
-
* @param {string} routeMediaSourceId The (route) media source id.
|
|
330
|
-
* @param {number} routeIndex The (route) subtitle stream index.
|
|
331
|
-
* @param {number} routeStartPositionTicks The (route) start position of the subtitle in ticks.
|
|
332
|
-
* @param {string} routeFormat The (route) format of the returned subtitle.
|
|
333
|
-
* @param {string} [itemId] The item id.
|
|
334
|
-
* @param {string} [mediaSourceId] The media source id.
|
|
335
|
-
* @param {number} [index] The subtitle stream index.
|
|
336
|
-
* @param {number} [startPositionTicks] The start position of the subtitle in ticks.
|
|
337
|
-
* @param {string} [format] The format of the returned subtitle.
|
|
338
|
-
* @param {number} [endPositionTicks] Optional. The end position of the subtitle in ticks.
|
|
339
|
-
* @param {boolean} [copyTimestamps] Optional. Whether to copy the timestamps.
|
|
340
|
-
* @param {boolean} [addVttTimeMap] Optional. Whether to add a VTT time map.
|
|
312
|
+
* @param {SubtitleApiGetSubtitleWithTicksRequest} requestParameters Request parameters.
|
|
341
313
|
* @param {*} [options] Override http request option.
|
|
342
314
|
* @throws {RequiredError}
|
|
343
315
|
*/
|
|
344
|
-
getSubtitleWithTicks(
|
|
316
|
+
getSubtitleWithTicks(requestParameters: SubtitleApiGetSubtitleWithTicksRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
345
317
|
/**
|
|
346
318
|
*
|
|
347
319
|
* @summary Search remote subtitles.
|
|
348
|
-
* @param {
|
|
349
|
-
* @param {string} language The language of the subtitles.
|
|
350
|
-
* @param {boolean} [isPerfectMatch] Optional. Only show subtitles which are a perfect match.
|
|
320
|
+
* @param {SubtitleApiSearchRemoteSubtitlesRequest} requestParameters Request parameters.
|
|
351
321
|
* @param {*} [options] Override http request option.
|
|
352
322
|
* @throws {RequiredError}
|
|
353
323
|
*/
|
|
354
|
-
searchRemoteSubtitles(
|
|
324
|
+
searchRemoteSubtitles(requestParameters: SubtitleApiSearchRemoteSubtitlesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<RemoteSubtitleInfo>>;
|
|
355
325
|
/**
|
|
356
326
|
*
|
|
357
327
|
* @summary Upload an external subtitle file.
|
|
358
|
-
* @param {
|
|
359
|
-
* @param {UploadSubtitleDto} uploadSubtitleDto The request body.
|
|
328
|
+
* @param {SubtitleApiUploadSubtitleRequest} requestParameters Request parameters.
|
|
360
329
|
* @param {*} [options] Override http request option.
|
|
361
330
|
* @throws {RequiredError}
|
|
362
331
|
*/
|
|
363
|
-
uploadSubtitle(
|
|
332
|
+
uploadSubtitle(requestParameters: SubtitleApiUploadSubtitleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
364
333
|
};
|
|
365
334
|
/**
|
|
366
335
|
* Request parameters for deleteSubtitle operation in SubtitleApi.
|
|
@@ -680,7 +649,7 @@ export declare class SubtitleApi extends BaseAPI {
|
|
|
680
649
|
* @throws {RequiredError}
|
|
681
650
|
* @memberof SubtitleApi
|
|
682
651
|
*/
|
|
683
|
-
deleteSubtitle(requestParameters: SubtitleApiDeleteSubtitleRequest, options?:
|
|
652
|
+
deleteSubtitle(requestParameters: SubtitleApiDeleteSubtitleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
684
653
|
/**
|
|
685
654
|
*
|
|
686
655
|
* @summary Downloads a remote subtitle.
|
|
@@ -689,7 +658,7 @@ export declare class SubtitleApi extends BaseAPI {
|
|
|
689
658
|
* @throws {RequiredError}
|
|
690
659
|
* @memberof SubtitleApi
|
|
691
660
|
*/
|
|
692
|
-
downloadRemoteSubtitles(requestParameters: SubtitleApiDownloadRemoteSubtitlesRequest, options?:
|
|
661
|
+
downloadRemoteSubtitles(requestParameters: SubtitleApiDownloadRemoteSubtitlesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
693
662
|
/**
|
|
694
663
|
*
|
|
695
664
|
* @summary Gets a fallback font file.
|
|
@@ -698,7 +667,7 @@ export declare class SubtitleApi extends BaseAPI {
|
|
|
698
667
|
* @throws {RequiredError}
|
|
699
668
|
* @memberof SubtitleApi
|
|
700
669
|
*/
|
|
701
|
-
getFallbackFont(requestParameters: SubtitleApiGetFallbackFontRequest, options?:
|
|
670
|
+
getFallbackFont(requestParameters: SubtitleApiGetFallbackFontRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
702
671
|
/**
|
|
703
672
|
*
|
|
704
673
|
* @summary Gets a list of available fallback font files.
|
|
@@ -706,7 +675,7 @@ export declare class SubtitleApi extends BaseAPI {
|
|
|
706
675
|
* @throws {RequiredError}
|
|
707
676
|
* @memberof SubtitleApi
|
|
708
677
|
*/
|
|
709
|
-
getFallbackFontList(options?:
|
|
678
|
+
getFallbackFontList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FontFile[], any>>;
|
|
710
679
|
/**
|
|
711
680
|
*
|
|
712
681
|
* @summary Gets the remote subtitles.
|
|
@@ -715,7 +684,7 @@ export declare class SubtitleApi extends BaseAPI {
|
|
|
715
684
|
* @throws {RequiredError}
|
|
716
685
|
* @memberof SubtitleApi
|
|
717
686
|
*/
|
|
718
|
-
getRemoteSubtitles(requestParameters: SubtitleApiGetRemoteSubtitlesRequest, options?:
|
|
687
|
+
getRemoteSubtitles(requestParameters: SubtitleApiGetRemoteSubtitlesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
719
688
|
/**
|
|
720
689
|
*
|
|
721
690
|
* @summary Gets subtitles in a specified format.
|
|
@@ -724,7 +693,7 @@ export declare class SubtitleApi extends BaseAPI {
|
|
|
724
693
|
* @throws {RequiredError}
|
|
725
694
|
* @memberof SubtitleApi
|
|
726
695
|
*/
|
|
727
|
-
getSubtitle(requestParameters: SubtitleApiGetSubtitleRequest, options?:
|
|
696
|
+
getSubtitle(requestParameters: SubtitleApiGetSubtitleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
728
697
|
/**
|
|
729
698
|
*
|
|
730
699
|
* @summary Gets an HLS subtitle playlist.
|
|
@@ -733,7 +702,7 @@ export declare class SubtitleApi extends BaseAPI {
|
|
|
733
702
|
* @throws {RequiredError}
|
|
734
703
|
* @memberof SubtitleApi
|
|
735
704
|
*/
|
|
736
|
-
getSubtitlePlaylist(requestParameters: SubtitleApiGetSubtitlePlaylistRequest, options?:
|
|
705
|
+
getSubtitlePlaylist(requestParameters: SubtitleApiGetSubtitlePlaylistRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
737
706
|
/**
|
|
738
707
|
*
|
|
739
708
|
* @summary Gets subtitles in a specified format.
|
|
@@ -742,7 +711,7 @@ export declare class SubtitleApi extends BaseAPI {
|
|
|
742
711
|
* @throws {RequiredError}
|
|
743
712
|
* @memberof SubtitleApi
|
|
744
713
|
*/
|
|
745
|
-
getSubtitleWithTicks(requestParameters: SubtitleApiGetSubtitleWithTicksRequest, options?:
|
|
714
|
+
getSubtitleWithTicks(requestParameters: SubtitleApiGetSubtitleWithTicksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
746
715
|
/**
|
|
747
716
|
*
|
|
748
717
|
* @summary Search remote subtitles.
|
|
@@ -751,7 +720,7 @@ export declare class SubtitleApi extends BaseAPI {
|
|
|
751
720
|
* @throws {RequiredError}
|
|
752
721
|
* @memberof SubtitleApi
|
|
753
722
|
*/
|
|
754
|
-
searchRemoteSubtitles(requestParameters: SubtitleApiSearchRemoteSubtitlesRequest, options?:
|
|
723
|
+
searchRemoteSubtitles(requestParameters: SubtitleApiSearchRemoteSubtitlesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RemoteSubtitleInfo[], any>>;
|
|
755
724
|
/**
|
|
756
725
|
*
|
|
757
726
|
* @summary Upload an external subtitle file.
|
|
@@ -760,5 +729,5 @@ export declare class SubtitleApi extends BaseAPI {
|
|
|
760
729
|
* @throws {RequiredError}
|
|
761
730
|
* @memberof SubtitleApi
|
|
762
731
|
*/
|
|
763
|
-
uploadSubtitle(requestParameters: SubtitleApiUploadSubtitleRequest, options?:
|
|
732
|
+
uploadSubtitle(requestParameters: SubtitleApiUploadSubtitleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
764
733
|
}
|