@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, serializeDataIfNeeded, 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 SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
deleteSubtitle:
|
|
31
|
+
deleteSubtitle: async (itemId, index, options = {}) => {
|
|
33
32
|
// verify required parameter 'itemId' is not null or undefined
|
|
34
33
|
assertParamExists('deleteSubtitle', 'itemId', itemId);
|
|
35
34
|
// verify required parameter 'index' is not null or undefined
|
|
@@ -43,19 +42,19 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
43
42
|
if (configuration) {
|
|
44
43
|
baseOptions = configuration.baseOptions;
|
|
45
44
|
}
|
|
46
|
-
const localVarRequestOptions =
|
|
45
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
47
46
|
const localVarHeaderParameter = {};
|
|
48
47
|
const localVarQueryParameter = {};
|
|
49
48
|
// authentication CustomAuthentication required
|
|
50
|
-
|
|
49
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
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 Downloads a remote subtitle.
|
|
@@ -64,7 +63,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
64
63
|
* @param {*} [options] Override http request option.
|
|
65
64
|
* @throws {RequiredError}
|
|
66
65
|
*/
|
|
67
|
-
downloadRemoteSubtitles:
|
|
66
|
+
downloadRemoteSubtitles: async (itemId, subtitleId, options = {}) => {
|
|
68
67
|
// verify required parameter 'itemId' is not null or undefined
|
|
69
68
|
assertParamExists('downloadRemoteSubtitles', 'itemId', itemId);
|
|
70
69
|
// verify required parameter 'subtitleId' is not null or undefined
|
|
@@ -78,19 +77,19 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
78
77
|
if (configuration) {
|
|
79
78
|
baseOptions = configuration.baseOptions;
|
|
80
79
|
}
|
|
81
|
-
const localVarRequestOptions =
|
|
80
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
82
81
|
const localVarHeaderParameter = {};
|
|
83
82
|
const localVarQueryParameter = {};
|
|
84
83
|
// authentication CustomAuthentication required
|
|
85
|
-
|
|
84
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
86
85
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
87
86
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
88
|
-
localVarRequestOptions.headers =
|
|
87
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
89
88
|
return {
|
|
90
89
|
url: toPathString(localVarUrlObj),
|
|
91
90
|
options: localVarRequestOptions,
|
|
92
91
|
};
|
|
93
|
-
}
|
|
92
|
+
},
|
|
94
93
|
/**
|
|
95
94
|
*
|
|
96
95
|
* @summary Gets a fallback font file.
|
|
@@ -98,7 +97,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
98
97
|
* @param {*} [options] Override http request option.
|
|
99
98
|
* @throws {RequiredError}
|
|
100
99
|
*/
|
|
101
|
-
getFallbackFont:
|
|
100
|
+
getFallbackFont: async (name, options = {}) => {
|
|
102
101
|
// verify required parameter 'name' is not null or undefined
|
|
103
102
|
assertParamExists('getFallbackFont', 'name', name);
|
|
104
103
|
const localVarPath = `/FallbackFont/Fonts/{name}`
|
|
@@ -109,26 +108,26 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
109
108
|
if (configuration) {
|
|
110
109
|
baseOptions = configuration.baseOptions;
|
|
111
110
|
}
|
|
112
|
-
const localVarRequestOptions =
|
|
111
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
113
112
|
const localVarHeaderParameter = {};
|
|
114
113
|
const localVarQueryParameter = {};
|
|
115
114
|
// authentication CustomAuthentication required
|
|
116
|
-
|
|
115
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
117
116
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
118
117
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
-
localVarRequestOptions.headers =
|
|
118
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
120
119
|
return {
|
|
121
120
|
url: toPathString(localVarUrlObj),
|
|
122
121
|
options: localVarRequestOptions,
|
|
123
122
|
};
|
|
124
|
-
}
|
|
123
|
+
},
|
|
125
124
|
/**
|
|
126
125
|
*
|
|
127
126
|
* @summary Gets a list of available fallback font files.
|
|
128
127
|
* @param {*} [options] Override http request option.
|
|
129
128
|
* @throws {RequiredError}
|
|
130
129
|
*/
|
|
131
|
-
getFallbackFontList:
|
|
130
|
+
getFallbackFontList: async (options = {}) => {
|
|
132
131
|
const localVarPath = `/FallbackFont/Fonts`;
|
|
133
132
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
134
133
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -136,19 +135,19 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
136
135
|
if (configuration) {
|
|
137
136
|
baseOptions = configuration.baseOptions;
|
|
138
137
|
}
|
|
139
|
-
const localVarRequestOptions =
|
|
138
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
140
139
|
const localVarHeaderParameter = {};
|
|
141
140
|
const localVarQueryParameter = {};
|
|
142
141
|
// authentication CustomAuthentication required
|
|
143
|
-
|
|
142
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
144
143
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
145
144
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
-
localVarRequestOptions.headers =
|
|
145
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
147
146
|
return {
|
|
148
147
|
url: toPathString(localVarUrlObj),
|
|
149
148
|
options: localVarRequestOptions,
|
|
150
149
|
};
|
|
151
|
-
}
|
|
150
|
+
},
|
|
152
151
|
/**
|
|
153
152
|
*
|
|
154
153
|
* @summary Gets the remote subtitles.
|
|
@@ -156,7 +155,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
156
155
|
* @param {*} [options] Override http request option.
|
|
157
156
|
* @throws {RequiredError}
|
|
158
157
|
*/
|
|
159
|
-
getRemoteSubtitles:
|
|
158
|
+
getRemoteSubtitles: async (subtitleId, options = {}) => {
|
|
160
159
|
// verify required parameter 'subtitleId' is not null or undefined
|
|
161
160
|
assertParamExists('getRemoteSubtitles', 'subtitleId', subtitleId);
|
|
162
161
|
const localVarPath = `/Providers/Subtitles/Subtitles/{subtitleId}`
|
|
@@ -167,19 +166,19 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
167
166
|
if (configuration) {
|
|
168
167
|
baseOptions = configuration.baseOptions;
|
|
169
168
|
}
|
|
170
|
-
const localVarRequestOptions =
|
|
169
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
171
170
|
const localVarHeaderParameter = {};
|
|
172
171
|
const localVarQueryParameter = {};
|
|
173
172
|
// authentication CustomAuthentication required
|
|
174
|
-
|
|
173
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
175
174
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
176
175
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
177
|
-
localVarRequestOptions.headers =
|
|
176
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
178
177
|
return {
|
|
179
178
|
url: toPathString(localVarUrlObj),
|
|
180
179
|
options: localVarRequestOptions,
|
|
181
180
|
};
|
|
182
|
-
}
|
|
181
|
+
},
|
|
183
182
|
/**
|
|
184
183
|
*
|
|
185
184
|
* @summary Gets subtitles in a specified format.
|
|
@@ -198,7 +197,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
198
197
|
* @param {*} [options] Override http request option.
|
|
199
198
|
* @throws {RequiredError}
|
|
200
199
|
*/
|
|
201
|
-
getSubtitle:
|
|
200
|
+
getSubtitle: async (routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId, mediaSourceId, index, format, endPositionTicks, copyTimestamps, addVttTimeMap, startPositionTicks, options = {}) => {
|
|
202
201
|
// verify required parameter 'routeItemId' is not null or undefined
|
|
203
202
|
assertParamExists('getSubtitle', 'routeItemId', routeItemId);
|
|
204
203
|
// verify required parameter 'routeMediaSourceId' is not null or undefined
|
|
@@ -218,7 +217,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
218
217
|
if (configuration) {
|
|
219
218
|
baseOptions = configuration.baseOptions;
|
|
220
219
|
}
|
|
221
|
-
const localVarRequestOptions =
|
|
220
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
222
221
|
const localVarHeaderParameter = {};
|
|
223
222
|
const localVarQueryParameter = {};
|
|
224
223
|
if (itemId !== undefined) {
|
|
@@ -247,12 +246,12 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
247
246
|
}
|
|
248
247
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
249
248
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
250
|
-
localVarRequestOptions.headers =
|
|
249
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
251
250
|
return {
|
|
252
251
|
url: toPathString(localVarUrlObj),
|
|
253
252
|
options: localVarRequestOptions,
|
|
254
253
|
};
|
|
255
|
-
}
|
|
254
|
+
},
|
|
256
255
|
/**
|
|
257
256
|
*
|
|
258
257
|
* @summary Gets an HLS subtitle playlist.
|
|
@@ -263,7 +262,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
263
262
|
* @param {*} [options] Override http request option.
|
|
264
263
|
* @throws {RequiredError}
|
|
265
264
|
*/
|
|
266
|
-
getSubtitlePlaylist:
|
|
265
|
+
getSubtitlePlaylist: async (itemId, index, mediaSourceId, segmentLength, options = {}) => {
|
|
267
266
|
// verify required parameter 'itemId' is not null or undefined
|
|
268
267
|
assertParamExists('getSubtitlePlaylist', 'itemId', itemId);
|
|
269
268
|
// verify required parameter 'index' is not null or undefined
|
|
@@ -282,22 +281,22 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
282
281
|
if (configuration) {
|
|
283
282
|
baseOptions = configuration.baseOptions;
|
|
284
283
|
}
|
|
285
|
-
const localVarRequestOptions =
|
|
284
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
286
285
|
const localVarHeaderParameter = {};
|
|
287
286
|
const localVarQueryParameter = {};
|
|
288
287
|
// authentication CustomAuthentication required
|
|
289
|
-
|
|
288
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
290
289
|
if (segmentLength !== undefined) {
|
|
291
290
|
localVarQueryParameter['segmentLength'] = segmentLength;
|
|
292
291
|
}
|
|
293
292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
294
293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
295
|
-
localVarRequestOptions.headers =
|
|
294
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
296
295
|
return {
|
|
297
296
|
url: toPathString(localVarUrlObj),
|
|
298
297
|
options: localVarRequestOptions,
|
|
299
298
|
};
|
|
300
|
-
}
|
|
299
|
+
},
|
|
301
300
|
/**
|
|
302
301
|
*
|
|
303
302
|
* @summary Gets subtitles in a specified format.
|
|
@@ -317,7 +316,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
317
316
|
* @param {*} [options] Override http request option.
|
|
318
317
|
* @throws {RequiredError}
|
|
319
318
|
*/
|
|
320
|
-
getSubtitleWithTicks:
|
|
319
|
+
getSubtitleWithTicks: async (routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId, mediaSourceId, index, startPositionTicks, format, endPositionTicks, copyTimestamps, addVttTimeMap, options = {}) => {
|
|
321
320
|
// verify required parameter 'routeItemId' is not null or undefined
|
|
322
321
|
assertParamExists('getSubtitleWithTicks', 'routeItemId', routeItemId);
|
|
323
322
|
// verify required parameter 'routeMediaSourceId' is not null or undefined
|
|
@@ -340,7 +339,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
340
339
|
if (configuration) {
|
|
341
340
|
baseOptions = configuration.baseOptions;
|
|
342
341
|
}
|
|
343
|
-
const localVarRequestOptions =
|
|
342
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
344
343
|
const localVarHeaderParameter = {};
|
|
345
344
|
const localVarQueryParameter = {};
|
|
346
345
|
if (itemId !== undefined) {
|
|
@@ -369,12 +368,12 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
369
368
|
}
|
|
370
369
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
371
370
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
372
|
-
localVarRequestOptions.headers =
|
|
371
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
373
372
|
return {
|
|
374
373
|
url: toPathString(localVarUrlObj),
|
|
375
374
|
options: localVarRequestOptions,
|
|
376
375
|
};
|
|
377
|
-
}
|
|
376
|
+
},
|
|
378
377
|
/**
|
|
379
378
|
*
|
|
380
379
|
* @summary Search remote subtitles.
|
|
@@ -384,7 +383,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
384
383
|
* @param {*} [options] Override http request option.
|
|
385
384
|
* @throws {RequiredError}
|
|
386
385
|
*/
|
|
387
|
-
searchRemoteSubtitles:
|
|
386
|
+
searchRemoteSubtitles: async (itemId, language, isPerfectMatch, options = {}) => {
|
|
388
387
|
// verify required parameter 'itemId' is not null or undefined
|
|
389
388
|
assertParamExists('searchRemoteSubtitles', 'itemId', itemId);
|
|
390
389
|
// verify required parameter 'language' is not null or undefined
|
|
@@ -398,22 +397,22 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
398
397
|
if (configuration) {
|
|
399
398
|
baseOptions = configuration.baseOptions;
|
|
400
399
|
}
|
|
401
|
-
const localVarRequestOptions =
|
|
400
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
402
401
|
const localVarHeaderParameter = {};
|
|
403
402
|
const localVarQueryParameter = {};
|
|
404
403
|
// authentication CustomAuthentication required
|
|
405
|
-
|
|
404
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
406
405
|
if (isPerfectMatch !== undefined) {
|
|
407
406
|
localVarQueryParameter['isPerfectMatch'] = isPerfectMatch;
|
|
408
407
|
}
|
|
409
408
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
410
409
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
411
|
-
localVarRequestOptions.headers =
|
|
410
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
412
411
|
return {
|
|
413
412
|
url: toPathString(localVarUrlObj),
|
|
414
413
|
options: localVarRequestOptions,
|
|
415
414
|
};
|
|
416
|
-
}
|
|
415
|
+
},
|
|
417
416
|
/**
|
|
418
417
|
*
|
|
419
418
|
* @summary Upload an external subtitle file.
|
|
@@ -422,7 +421,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
422
421
|
* @param {*} [options] Override http request option.
|
|
423
422
|
* @throws {RequiredError}
|
|
424
423
|
*/
|
|
425
|
-
uploadSubtitle:
|
|
424
|
+
uploadSubtitle: async (itemId, uploadSubtitleDto, options = {}) => {
|
|
426
425
|
// verify required parameter 'itemId' is not null or undefined
|
|
427
426
|
assertParamExists('uploadSubtitle', 'itemId', itemId);
|
|
428
427
|
// verify required parameter 'uploadSubtitleDto' is not null or undefined
|
|
@@ -435,21 +434,21 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
435
434
|
if (configuration) {
|
|
436
435
|
baseOptions = configuration.baseOptions;
|
|
437
436
|
}
|
|
438
|
-
const localVarRequestOptions =
|
|
437
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
439
438
|
const localVarHeaderParameter = {};
|
|
440
439
|
const localVarQueryParameter = {};
|
|
441
440
|
// authentication CustomAuthentication required
|
|
442
|
-
|
|
441
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
443
442
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
444
443
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
445
444
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
446
|
-
localVarRequestOptions.headers =
|
|
445
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
447
446
|
localVarRequestOptions.data = serializeDataIfNeeded(uploadSubtitleDto, localVarRequestOptions, configuration);
|
|
448
447
|
return {
|
|
449
448
|
url: toPathString(localVarUrlObj),
|
|
450
449
|
options: localVarRequestOptions,
|
|
451
450
|
};
|
|
452
|
-
}
|
|
451
|
+
},
|
|
453
452
|
};
|
|
454
453
|
};
|
|
455
454
|
/**
|
|
@@ -467,11 +466,12 @@ const SubtitleApiFp = function (configuration) {
|
|
|
467
466
|
* @param {*} [options] Override http request option.
|
|
468
467
|
* @throws {RequiredError}
|
|
469
468
|
*/
|
|
470
|
-
deleteSubtitle(itemId, index, options) {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
469
|
+
async deleteSubtitle(itemId, index, options) {
|
|
470
|
+
var _a, _b, _c;
|
|
471
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSubtitle(itemId, index, options);
|
|
472
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
473
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubtitleApi.deleteSubtitle']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
474
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
475
475
|
},
|
|
476
476
|
/**
|
|
477
477
|
*
|
|
@@ -481,11 +481,12 @@ const SubtitleApiFp = function (configuration) {
|
|
|
481
481
|
* @param {*} [options] Override http request option.
|
|
482
482
|
* @throws {RequiredError}
|
|
483
483
|
*/
|
|
484
|
-
downloadRemoteSubtitles(itemId, subtitleId, options) {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
484
|
+
async downloadRemoteSubtitles(itemId, subtitleId, options) {
|
|
485
|
+
var _a, _b, _c;
|
|
486
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadRemoteSubtitles(itemId, subtitleId, options);
|
|
487
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
488
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubtitleApi.downloadRemoteSubtitles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
489
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
489
490
|
},
|
|
490
491
|
/**
|
|
491
492
|
*
|
|
@@ -494,11 +495,12 @@ const SubtitleApiFp = function (configuration) {
|
|
|
494
495
|
* @param {*} [options] Override http request option.
|
|
495
496
|
* @throws {RequiredError}
|
|
496
497
|
*/
|
|
497
|
-
getFallbackFont(name, options) {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
498
|
+
async getFallbackFont(name, options) {
|
|
499
|
+
var _a, _b, _c;
|
|
500
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFallbackFont(name, options);
|
|
501
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
502
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubtitleApi.getFallbackFont']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
503
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
502
504
|
},
|
|
503
505
|
/**
|
|
504
506
|
*
|
|
@@ -506,11 +508,12 @@ const SubtitleApiFp = function (configuration) {
|
|
|
506
508
|
* @param {*} [options] Override http request option.
|
|
507
509
|
* @throws {RequiredError}
|
|
508
510
|
*/
|
|
509
|
-
getFallbackFontList(options) {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
511
|
+
async getFallbackFontList(options) {
|
|
512
|
+
var _a, _b, _c;
|
|
513
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFallbackFontList(options);
|
|
514
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
515
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubtitleApi.getFallbackFontList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
516
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
514
517
|
},
|
|
515
518
|
/**
|
|
516
519
|
*
|
|
@@ -519,11 +522,12 @@ const SubtitleApiFp = function (configuration) {
|
|
|
519
522
|
* @param {*} [options] Override http request option.
|
|
520
523
|
* @throws {RequiredError}
|
|
521
524
|
*/
|
|
522
|
-
getRemoteSubtitles(subtitleId, options) {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
async getRemoteSubtitles(subtitleId, options) {
|
|
526
|
+
var _a, _b, _c;
|
|
527
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRemoteSubtitles(subtitleId, options);
|
|
528
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
529
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubtitleApi.getRemoteSubtitles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
530
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
527
531
|
},
|
|
528
532
|
/**
|
|
529
533
|
*
|
|
@@ -543,11 +547,12 @@ const SubtitleApiFp = function (configuration) {
|
|
|
543
547
|
* @param {*} [options] Override http request option.
|
|
544
548
|
* @throws {RequiredError}
|
|
545
549
|
*/
|
|
546
|
-
getSubtitle(routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId, mediaSourceId, index, format, endPositionTicks, copyTimestamps, addVttTimeMap, startPositionTicks, options) {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
550
|
+
async getSubtitle(routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId, mediaSourceId, index, format, endPositionTicks, copyTimestamps, addVttTimeMap, startPositionTicks, options) {
|
|
551
|
+
var _a, _b, _c;
|
|
552
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSubtitle(routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId, mediaSourceId, index, format, endPositionTicks, copyTimestamps, addVttTimeMap, startPositionTicks, options);
|
|
553
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
554
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubtitleApi.getSubtitle']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
555
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
551
556
|
},
|
|
552
557
|
/**
|
|
553
558
|
*
|
|
@@ -559,11 +564,12 @@ const SubtitleApiFp = function (configuration) {
|
|
|
559
564
|
* @param {*} [options] Override http request option.
|
|
560
565
|
* @throws {RequiredError}
|
|
561
566
|
*/
|
|
562
|
-
getSubtitlePlaylist(itemId, index, mediaSourceId, segmentLength, options) {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
+
async getSubtitlePlaylist(itemId, index, mediaSourceId, segmentLength, options) {
|
|
568
|
+
var _a, _b, _c;
|
|
569
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSubtitlePlaylist(itemId, index, mediaSourceId, segmentLength, options);
|
|
570
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
571
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubtitleApi.getSubtitlePlaylist']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
572
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
567
573
|
},
|
|
568
574
|
/**
|
|
569
575
|
*
|
|
@@ -584,11 +590,12 @@ const SubtitleApiFp = function (configuration) {
|
|
|
584
590
|
* @param {*} [options] Override http request option.
|
|
585
591
|
* @throws {RequiredError}
|
|
586
592
|
*/
|
|
587
|
-
getSubtitleWithTicks(routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId, mediaSourceId, index, startPositionTicks, format, endPositionTicks, copyTimestamps, addVttTimeMap, options) {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
593
|
+
async getSubtitleWithTicks(routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId, mediaSourceId, index, startPositionTicks, format, endPositionTicks, copyTimestamps, addVttTimeMap, options) {
|
|
594
|
+
var _a, _b, _c;
|
|
595
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSubtitleWithTicks(routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId, mediaSourceId, index, startPositionTicks, format, endPositionTicks, copyTimestamps, addVttTimeMap, options);
|
|
596
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
597
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubtitleApi.getSubtitleWithTicks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
598
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
592
599
|
},
|
|
593
600
|
/**
|
|
594
601
|
*
|
|
@@ -599,11 +606,12 @@ const SubtitleApiFp = function (configuration) {
|
|
|
599
606
|
* @param {*} [options] Override http request option.
|
|
600
607
|
* @throws {RequiredError}
|
|
601
608
|
*/
|
|
602
|
-
searchRemoteSubtitles(itemId, language, isPerfectMatch, options) {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
609
|
+
async searchRemoteSubtitles(itemId, language, isPerfectMatch, options) {
|
|
610
|
+
var _a, _b, _c;
|
|
611
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchRemoteSubtitles(itemId, language, isPerfectMatch, options);
|
|
612
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
613
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubtitleApi.searchRemoteSubtitles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
614
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
607
615
|
},
|
|
608
616
|
/**
|
|
609
617
|
*
|
|
@@ -613,11 +621,12 @@ const SubtitleApiFp = function (configuration) {
|
|
|
613
621
|
* @param {*} [options] Override http request option.
|
|
614
622
|
* @throws {RequiredError}
|
|
615
623
|
*/
|
|
616
|
-
uploadSubtitle(itemId, uploadSubtitleDto, options) {
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
624
|
+
async uploadSubtitle(itemId, uploadSubtitleDto, options) {
|
|
625
|
+
var _a, _b, _c;
|
|
626
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadSubtitle(itemId, uploadSubtitleDto, options);
|
|
627
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
628
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubtitleApi.uploadSubtitle']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
629
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
621
630
|
},
|
|
622
631
|
};
|
|
623
632
|
};
|
|
@@ -631,34 +640,32 @@ const SubtitleApiFactory = function (configuration, basePath, axios) {
|
|
|
631
640
|
/**
|
|
632
641
|
*
|
|
633
642
|
* @summary Deletes an external subtitle file.
|
|
634
|
-
* @param {
|
|
635
|
-
* @param {number} index The index of the subtitle file.
|
|
643
|
+
* @param {SubtitleApiDeleteSubtitleRequest} requestParameters Request parameters.
|
|
636
644
|
* @param {*} [options] Override http request option.
|
|
637
645
|
* @throws {RequiredError}
|
|
638
646
|
*/
|
|
639
|
-
deleteSubtitle(
|
|
640
|
-
return localVarFp.deleteSubtitle(itemId, index, options).then((request) => request(axios, basePath));
|
|
647
|
+
deleteSubtitle(requestParameters, options) {
|
|
648
|
+
return localVarFp.deleteSubtitle(requestParameters.itemId, requestParameters.index, options).then((request) => request(axios, basePath));
|
|
641
649
|
},
|
|
642
650
|
/**
|
|
643
651
|
*
|
|
644
652
|
* @summary Downloads a remote subtitle.
|
|
645
|
-
* @param {
|
|
646
|
-
* @param {string} subtitleId The subtitle id.
|
|
653
|
+
* @param {SubtitleApiDownloadRemoteSubtitlesRequest} requestParameters Request parameters.
|
|
647
654
|
* @param {*} [options] Override http request option.
|
|
648
655
|
* @throws {RequiredError}
|
|
649
656
|
*/
|
|
650
|
-
downloadRemoteSubtitles(
|
|
651
|
-
return localVarFp.downloadRemoteSubtitles(itemId, subtitleId, options).then((request) => request(axios, basePath));
|
|
657
|
+
downloadRemoteSubtitles(requestParameters, options) {
|
|
658
|
+
return localVarFp.downloadRemoteSubtitles(requestParameters.itemId, requestParameters.subtitleId, options).then((request) => request(axios, basePath));
|
|
652
659
|
},
|
|
653
660
|
/**
|
|
654
661
|
*
|
|
655
662
|
* @summary Gets a fallback font file.
|
|
656
|
-
* @param {
|
|
663
|
+
* @param {SubtitleApiGetFallbackFontRequest} requestParameters Request parameters.
|
|
657
664
|
* @param {*} [options] Override http request option.
|
|
658
665
|
* @throws {RequiredError}
|
|
659
666
|
*/
|
|
660
|
-
getFallbackFont(
|
|
661
|
-
return localVarFp.getFallbackFont(name, options).then((request) => request(axios, basePath));
|
|
667
|
+
getFallbackFont(requestParameters, options) {
|
|
668
|
+
return localVarFp.getFallbackFont(requestParameters.name, options).then((request) => request(axios, basePath));
|
|
662
669
|
},
|
|
663
670
|
/**
|
|
664
671
|
*
|
|
@@ -672,91 +679,62 @@ const SubtitleApiFactory = function (configuration, basePath, axios) {
|
|
|
672
679
|
/**
|
|
673
680
|
*
|
|
674
681
|
* @summary Gets the remote subtitles.
|
|
675
|
-
* @param {
|
|
682
|
+
* @param {SubtitleApiGetRemoteSubtitlesRequest} requestParameters Request parameters.
|
|
676
683
|
* @param {*} [options] Override http request option.
|
|
677
684
|
* @throws {RequiredError}
|
|
678
685
|
*/
|
|
679
|
-
getRemoteSubtitles(
|
|
680
|
-
return localVarFp.getRemoteSubtitles(subtitleId, options).then((request) => request(axios, basePath));
|
|
686
|
+
getRemoteSubtitles(requestParameters, options) {
|
|
687
|
+
return localVarFp.getRemoteSubtitles(requestParameters.subtitleId, options).then((request) => request(axios, basePath));
|
|
681
688
|
},
|
|
682
689
|
/**
|
|
683
690
|
*
|
|
684
691
|
* @summary Gets subtitles in a specified format.
|
|
685
|
-
* @param {
|
|
686
|
-
* @param {string} routeMediaSourceId The (route) media source id.
|
|
687
|
-
* @param {number} routeIndex The (route) subtitle stream index.
|
|
688
|
-
* @param {string} routeFormat The (route) format of the returned subtitle.
|
|
689
|
-
* @param {string} [itemId] The item id.
|
|
690
|
-
* @param {string} [mediaSourceId] The media source id.
|
|
691
|
-
* @param {number} [index] The subtitle stream index.
|
|
692
|
-
* @param {string} [format] The format of the returned subtitle.
|
|
693
|
-
* @param {number} [endPositionTicks] Optional. The end position of the subtitle in ticks.
|
|
694
|
-
* @param {boolean} [copyTimestamps] Optional. Whether to copy the timestamps.
|
|
695
|
-
* @param {boolean} [addVttTimeMap] Optional. Whether to add a VTT time map.
|
|
696
|
-
* @param {number} [startPositionTicks] The start position of the subtitle in ticks.
|
|
692
|
+
* @param {SubtitleApiGetSubtitleRequest} requestParameters Request parameters.
|
|
697
693
|
* @param {*} [options] Override http request option.
|
|
698
694
|
* @throws {RequiredError}
|
|
699
695
|
*/
|
|
700
|
-
getSubtitle(
|
|
701
|
-
return localVarFp.getSubtitle(routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId, mediaSourceId, index, format, endPositionTicks, copyTimestamps, addVttTimeMap, startPositionTicks, options).then((request) => request(axios, basePath));
|
|
696
|
+
getSubtitle(requestParameters, options) {
|
|
697
|
+
return localVarFp.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((request) => request(axios, basePath));
|
|
702
698
|
},
|
|
703
699
|
/**
|
|
704
700
|
*
|
|
705
701
|
* @summary Gets an HLS subtitle playlist.
|
|
706
|
-
* @param {
|
|
707
|
-
* @param {number} index The subtitle stream index.
|
|
708
|
-
* @param {string} mediaSourceId The media source id.
|
|
709
|
-
* @param {number} segmentLength The subtitle segment length.
|
|
702
|
+
* @param {SubtitleApiGetSubtitlePlaylistRequest} requestParameters Request parameters.
|
|
710
703
|
* @param {*} [options] Override http request option.
|
|
711
704
|
* @throws {RequiredError}
|
|
712
705
|
*/
|
|
713
|
-
getSubtitlePlaylist(
|
|
714
|
-
return localVarFp.getSubtitlePlaylist(itemId, index, mediaSourceId, segmentLength, options).then((request) => request(axios, basePath));
|
|
706
|
+
getSubtitlePlaylist(requestParameters, options) {
|
|
707
|
+
return localVarFp.getSubtitlePlaylist(requestParameters.itemId, requestParameters.index, requestParameters.mediaSourceId, requestParameters.segmentLength, options).then((request) => request(axios, basePath));
|
|
715
708
|
},
|
|
716
709
|
/**
|
|
717
710
|
*
|
|
718
711
|
* @summary Gets subtitles in a specified format.
|
|
719
|
-
* @param {
|
|
720
|
-
* @param {string} routeMediaSourceId The (route) media source id.
|
|
721
|
-
* @param {number} routeIndex The (route) subtitle stream index.
|
|
722
|
-
* @param {number} routeStartPositionTicks The (route) start position of the subtitle in ticks.
|
|
723
|
-
* @param {string} routeFormat The (route) format of the returned subtitle.
|
|
724
|
-
* @param {string} [itemId] The item id.
|
|
725
|
-
* @param {string} [mediaSourceId] The media source id.
|
|
726
|
-
* @param {number} [index] The subtitle stream index.
|
|
727
|
-
* @param {number} [startPositionTicks] The start position of the subtitle in ticks.
|
|
728
|
-
* @param {string} [format] The format of the returned subtitle.
|
|
729
|
-
* @param {number} [endPositionTicks] Optional. The end position of the subtitle in ticks.
|
|
730
|
-
* @param {boolean} [copyTimestamps] Optional. Whether to copy the timestamps.
|
|
731
|
-
* @param {boolean} [addVttTimeMap] Optional. Whether to add a VTT time map.
|
|
712
|
+
* @param {SubtitleApiGetSubtitleWithTicksRequest} requestParameters Request parameters.
|
|
732
713
|
* @param {*} [options] Override http request option.
|
|
733
714
|
* @throws {RequiredError}
|
|
734
715
|
*/
|
|
735
|
-
getSubtitleWithTicks(
|
|
736
|
-
return localVarFp.getSubtitleWithTicks(routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId, mediaSourceId, index, startPositionTicks, format, endPositionTicks, copyTimestamps, addVttTimeMap, options).then((request) => request(axios, basePath));
|
|
716
|
+
getSubtitleWithTicks(requestParameters, options) {
|
|
717
|
+
return localVarFp.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((request) => request(axios, basePath));
|
|
737
718
|
},
|
|
738
719
|
/**
|
|
739
720
|
*
|
|
740
721
|
* @summary Search remote subtitles.
|
|
741
|
-
* @param {
|
|
742
|
-
* @param {string} language The language of the subtitles.
|
|
743
|
-
* @param {boolean} [isPerfectMatch] Optional. Only show subtitles which are a perfect match.
|
|
722
|
+
* @param {SubtitleApiSearchRemoteSubtitlesRequest} requestParameters Request parameters.
|
|
744
723
|
* @param {*} [options] Override http request option.
|
|
745
724
|
* @throws {RequiredError}
|
|
746
725
|
*/
|
|
747
|
-
searchRemoteSubtitles(
|
|
748
|
-
return localVarFp.searchRemoteSubtitles(itemId, language, isPerfectMatch, options).then((request) => request(axios, basePath));
|
|
726
|
+
searchRemoteSubtitles(requestParameters, options) {
|
|
727
|
+
return localVarFp.searchRemoteSubtitles(requestParameters.itemId, requestParameters.language, requestParameters.isPerfectMatch, options).then((request) => request(axios, basePath));
|
|
749
728
|
},
|
|
750
729
|
/**
|
|
751
730
|
*
|
|
752
731
|
* @summary Upload an external subtitle file.
|
|
753
|
-
* @param {
|
|
754
|
-
* @param {UploadSubtitleDto} uploadSubtitleDto The request body.
|
|
732
|
+
* @param {SubtitleApiUploadSubtitleRequest} requestParameters Request parameters.
|
|
755
733
|
* @param {*} [options] Override http request option.
|
|
756
734
|
* @throws {RequiredError}
|
|
757
735
|
*/
|
|
758
|
-
uploadSubtitle(
|
|
759
|
-
return localVarFp.uploadSubtitle(itemId, uploadSubtitleDto, options).then((request) => request(axios, basePath));
|
|
736
|
+
uploadSubtitle(requestParameters, options) {
|
|
737
|
+
return localVarFp.uploadSubtitle(requestParameters.itemId, requestParameters.uploadSubtitleDto, options).then((request) => request(axios, basePath));
|
|
760
738
|
},
|
|
761
739
|
};
|
|
762
740
|
};
|