@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 */
|
|
@@ -28,7 +27,7 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
closeLiveStream:
|
|
30
|
+
closeLiveStream: async (liveStreamId, options = {}) => {
|
|
32
31
|
// verify required parameter 'liveStreamId' is not null or undefined
|
|
33
32
|
assertParamExists('closeLiveStream', 'liveStreamId', liveStreamId);
|
|
34
33
|
const localVarPath = `/LiveStreams/Close`;
|
|
@@ -38,22 +37,22 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
38
37
|
if (configuration) {
|
|
39
38
|
baseOptions = configuration.baseOptions;
|
|
40
39
|
}
|
|
41
|
-
const localVarRequestOptions =
|
|
40
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
42
41
|
const localVarHeaderParameter = {};
|
|
43
42
|
const localVarQueryParameter = {};
|
|
44
43
|
// authentication CustomAuthentication required
|
|
45
|
-
|
|
44
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
46
45
|
if (liveStreamId !== undefined) {
|
|
47
46
|
localVarQueryParameter['liveStreamId'] = liveStreamId;
|
|
48
47
|
}
|
|
49
48
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50
49
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51
|
-
localVarRequestOptions.headers =
|
|
50
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
52
51
|
return {
|
|
53
52
|
url: toPathString(localVarUrlObj),
|
|
54
53
|
options: localVarRequestOptions,
|
|
55
54
|
};
|
|
56
|
-
}
|
|
55
|
+
},
|
|
57
56
|
/**
|
|
58
57
|
*
|
|
59
58
|
* @summary Tests the network with a request with the size of the bitrate.
|
|
@@ -61,7 +60,7 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
61
60
|
* @param {*} [options] Override http request option.
|
|
62
61
|
* @throws {RequiredError}
|
|
63
62
|
*/
|
|
64
|
-
getBitrateTestBytes:
|
|
63
|
+
getBitrateTestBytes: async (size, options = {}) => {
|
|
65
64
|
const localVarPath = `/Playback/BitrateTest`;
|
|
66
65
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
67
66
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -69,22 +68,22 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
69
68
|
if (configuration) {
|
|
70
69
|
baseOptions = configuration.baseOptions;
|
|
71
70
|
}
|
|
72
|
-
const localVarRequestOptions =
|
|
71
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
73
72
|
const localVarHeaderParameter = {};
|
|
74
73
|
const localVarQueryParameter = {};
|
|
75
74
|
// authentication CustomAuthentication required
|
|
76
|
-
|
|
75
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
77
76
|
if (size !== undefined) {
|
|
78
77
|
localVarQueryParameter['size'] = size;
|
|
79
78
|
}
|
|
80
79
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
81
80
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82
|
-
localVarRequestOptions.headers =
|
|
81
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
83
82
|
return {
|
|
84
83
|
url: toPathString(localVarUrlObj),
|
|
85
84
|
options: localVarRequestOptions,
|
|
86
85
|
};
|
|
87
|
-
}
|
|
86
|
+
},
|
|
88
87
|
/**
|
|
89
88
|
*
|
|
90
89
|
* @summary Gets live playback media info for an item.
|
|
@@ -93,7 +92,7 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
93
92
|
* @param {*} [options] Override http request option.
|
|
94
93
|
* @throws {RequiredError}
|
|
95
94
|
*/
|
|
96
|
-
getPlaybackInfo:
|
|
95
|
+
getPlaybackInfo: async (itemId, userId, options = {}) => {
|
|
97
96
|
// verify required parameter 'itemId' is not null or undefined
|
|
98
97
|
assertParamExists('getPlaybackInfo', 'itemId', itemId);
|
|
99
98
|
const localVarPath = `/Items/{itemId}/PlaybackInfo`
|
|
@@ -104,22 +103,22 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
104
103
|
if (configuration) {
|
|
105
104
|
baseOptions = configuration.baseOptions;
|
|
106
105
|
}
|
|
107
|
-
const localVarRequestOptions =
|
|
106
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
108
107
|
const localVarHeaderParameter = {};
|
|
109
108
|
const localVarQueryParameter = {};
|
|
110
109
|
// authentication CustomAuthentication required
|
|
111
|
-
|
|
110
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
112
111
|
if (userId !== undefined) {
|
|
113
112
|
localVarQueryParameter['userId'] = userId;
|
|
114
113
|
}
|
|
115
114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
116
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
|
-
localVarRequestOptions.headers =
|
|
116
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
118
117
|
return {
|
|
119
118
|
url: toPathString(localVarUrlObj),
|
|
120
119
|
options: localVarRequestOptions,
|
|
121
120
|
};
|
|
122
|
-
}
|
|
121
|
+
},
|
|
123
122
|
/**
|
|
124
123
|
* For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.
|
|
125
124
|
* @summary Gets live playback media info for an item.
|
|
@@ -142,7 +141,7 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
142
141
|
* @param {*} [options] Override http request option.
|
|
143
142
|
* @throws {RequiredError}
|
|
144
143
|
*/
|
|
145
|
-
getPostedPlaybackInfo:
|
|
144
|
+
getPostedPlaybackInfo: async (itemId, userId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, mediaSourceId, liveStreamId, autoOpenLiveStream, enableDirectPlay, enableDirectStream, enableTranscoding, allowVideoStreamCopy, allowAudioStreamCopy, playbackInfoDto, options = {}) => {
|
|
146
145
|
// verify required parameter 'itemId' is not null or undefined
|
|
147
146
|
assertParamExists('getPostedPlaybackInfo', 'itemId', itemId);
|
|
148
147
|
const localVarPath = `/Items/{itemId}/PlaybackInfo`
|
|
@@ -153,11 +152,11 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
153
152
|
if (configuration) {
|
|
154
153
|
baseOptions = configuration.baseOptions;
|
|
155
154
|
}
|
|
156
|
-
const localVarRequestOptions =
|
|
155
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
157
156
|
const localVarHeaderParameter = {};
|
|
158
157
|
const localVarQueryParameter = {};
|
|
159
158
|
// authentication CustomAuthentication required
|
|
160
|
-
|
|
159
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
161
160
|
if (userId !== undefined) {
|
|
162
161
|
localVarQueryParameter['userId'] = userId;
|
|
163
162
|
}
|
|
@@ -203,13 +202,13 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
203
202
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
204
203
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
205
204
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
206
|
-
localVarRequestOptions.headers =
|
|
205
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
207
206
|
localVarRequestOptions.data = serializeDataIfNeeded(playbackInfoDto, localVarRequestOptions, configuration);
|
|
208
207
|
return {
|
|
209
208
|
url: toPathString(localVarUrlObj),
|
|
210
209
|
options: localVarRequestOptions,
|
|
211
210
|
};
|
|
212
|
-
}
|
|
211
|
+
},
|
|
213
212
|
/**
|
|
214
213
|
*
|
|
215
214
|
* @summary Opens a media source.
|
|
@@ -224,11 +223,12 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
224
223
|
* @param {string} [itemId] The item id.
|
|
225
224
|
* @param {boolean} [enableDirectPlay] Whether to enable direct play. Default: true.
|
|
226
225
|
* @param {boolean} [enableDirectStream] Whether to enable direct stream. Default: true.
|
|
226
|
+
* @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Always burn-in subtitle when transcoding.
|
|
227
227
|
* @param {OpenLiveStreamDto} [openLiveStreamDto] The open live stream dto.
|
|
228
228
|
* @param {*} [options] Override http request option.
|
|
229
229
|
* @throws {RequiredError}
|
|
230
230
|
*/
|
|
231
|
-
openLiveStream:
|
|
231
|
+
openLiveStream: async (openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, alwaysBurnInSubtitleWhenTranscoding, openLiveStreamDto, options = {}) => {
|
|
232
232
|
const localVarPath = `/LiveStreams/Open`;
|
|
233
233
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
234
234
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -236,11 +236,11 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
236
236
|
if (configuration) {
|
|
237
237
|
baseOptions = configuration.baseOptions;
|
|
238
238
|
}
|
|
239
|
-
const localVarRequestOptions =
|
|
239
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
240
240
|
const localVarHeaderParameter = {};
|
|
241
241
|
const localVarQueryParameter = {};
|
|
242
242
|
// authentication CustomAuthentication required
|
|
243
|
-
|
|
243
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
244
244
|
if (openToken !== undefined) {
|
|
245
245
|
localVarQueryParameter['openToken'] = openToken;
|
|
246
246
|
}
|
|
@@ -274,16 +274,19 @@ const MediaInfoApiAxiosParamCreator = function (configuration) {
|
|
|
274
274
|
if (enableDirectStream !== undefined) {
|
|
275
275
|
localVarQueryParameter['enableDirectStream'] = enableDirectStream;
|
|
276
276
|
}
|
|
277
|
+
if (alwaysBurnInSubtitleWhenTranscoding !== undefined) {
|
|
278
|
+
localVarQueryParameter['alwaysBurnInSubtitleWhenTranscoding'] = alwaysBurnInSubtitleWhenTranscoding;
|
|
279
|
+
}
|
|
277
280
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
278
281
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
279
282
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
-
localVarRequestOptions.headers =
|
|
283
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
281
284
|
localVarRequestOptions.data = serializeDataIfNeeded(openLiveStreamDto, localVarRequestOptions, configuration);
|
|
282
285
|
return {
|
|
283
286
|
url: toPathString(localVarUrlObj),
|
|
284
287
|
options: localVarRequestOptions,
|
|
285
288
|
};
|
|
286
|
-
}
|
|
289
|
+
},
|
|
287
290
|
};
|
|
288
291
|
};
|
|
289
292
|
/**
|
|
@@ -300,11 +303,12 @@ const MediaInfoApiFp = function (configuration) {
|
|
|
300
303
|
* @param {*} [options] Override http request option.
|
|
301
304
|
* @throws {RequiredError}
|
|
302
305
|
*/
|
|
303
|
-
closeLiveStream(liveStreamId, options) {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
async closeLiveStream(liveStreamId, options) {
|
|
307
|
+
var _a, _b, _c;
|
|
308
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.closeLiveStream(liveStreamId, options);
|
|
309
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
310
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaInfoApi.closeLiveStream']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
311
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
308
312
|
},
|
|
309
313
|
/**
|
|
310
314
|
*
|
|
@@ -313,11 +317,12 @@ const MediaInfoApiFp = function (configuration) {
|
|
|
313
317
|
* @param {*} [options] Override http request option.
|
|
314
318
|
* @throws {RequiredError}
|
|
315
319
|
*/
|
|
316
|
-
getBitrateTestBytes(size, options) {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
320
|
+
async getBitrateTestBytes(size, options) {
|
|
321
|
+
var _a, _b, _c;
|
|
322
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBitrateTestBytes(size, options);
|
|
323
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
324
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaInfoApi.getBitrateTestBytes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
325
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
321
326
|
},
|
|
322
327
|
/**
|
|
323
328
|
*
|
|
@@ -327,11 +332,12 @@ const MediaInfoApiFp = function (configuration) {
|
|
|
327
332
|
* @param {*} [options] Override http request option.
|
|
328
333
|
* @throws {RequiredError}
|
|
329
334
|
*/
|
|
330
|
-
getPlaybackInfo(itemId, userId, options) {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
+
async getPlaybackInfo(itemId, userId, options) {
|
|
336
|
+
var _a, _b, _c;
|
|
337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaybackInfo(itemId, userId, options);
|
|
338
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
339
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaInfoApi.getPlaybackInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
340
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
335
341
|
},
|
|
336
342
|
/**
|
|
337
343
|
* For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.
|
|
@@ -355,11 +361,12 @@ const MediaInfoApiFp = function (configuration) {
|
|
|
355
361
|
* @param {*} [options] Override http request option.
|
|
356
362
|
* @throws {RequiredError}
|
|
357
363
|
*/
|
|
358
|
-
getPostedPlaybackInfo(itemId, userId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, mediaSourceId, liveStreamId, autoOpenLiveStream, enableDirectPlay, enableDirectStream, enableTranscoding, allowVideoStreamCopy, allowAudioStreamCopy, playbackInfoDto, options) {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
364
|
+
async getPostedPlaybackInfo(itemId, userId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, mediaSourceId, liveStreamId, autoOpenLiveStream, enableDirectPlay, enableDirectStream, enableTranscoding, allowVideoStreamCopy, allowAudioStreamCopy, playbackInfoDto, options) {
|
|
365
|
+
var _a, _b, _c;
|
|
366
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPostedPlaybackInfo(itemId, userId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, mediaSourceId, liveStreamId, autoOpenLiveStream, enableDirectPlay, enableDirectStream, enableTranscoding, allowVideoStreamCopy, allowAudioStreamCopy, playbackInfoDto, options);
|
|
367
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
368
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaInfoApi.getPostedPlaybackInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
369
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
363
370
|
},
|
|
364
371
|
/**
|
|
365
372
|
*
|
|
@@ -375,15 +382,17 @@ const MediaInfoApiFp = function (configuration) {
|
|
|
375
382
|
* @param {string} [itemId] The item id.
|
|
376
383
|
* @param {boolean} [enableDirectPlay] Whether to enable direct play. Default: true.
|
|
377
384
|
* @param {boolean} [enableDirectStream] Whether to enable direct stream. Default: true.
|
|
385
|
+
* @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Always burn-in subtitle when transcoding.
|
|
378
386
|
* @param {OpenLiveStreamDto} [openLiveStreamDto] The open live stream dto.
|
|
379
387
|
* @param {*} [options] Override http request option.
|
|
380
388
|
* @throws {RequiredError}
|
|
381
389
|
*/
|
|
382
|
-
openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, openLiveStreamDto, options) {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
390
|
+
async openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, alwaysBurnInSubtitleWhenTranscoding, openLiveStreamDto, options) {
|
|
391
|
+
var _a, _b, _c;
|
|
392
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, alwaysBurnInSubtitleWhenTranscoding, openLiveStreamDto, options);
|
|
393
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
394
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaInfoApi.openLiveStream']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
395
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
387
396
|
},
|
|
388
397
|
};
|
|
389
398
|
};
|
|
@@ -397,79 +406,52 @@ const MediaInfoApiFactory = function (configuration, basePath, axios) {
|
|
|
397
406
|
/**
|
|
398
407
|
*
|
|
399
408
|
* @summary Closes a media source.
|
|
400
|
-
* @param {
|
|
409
|
+
* @param {MediaInfoApiCloseLiveStreamRequest} requestParameters Request parameters.
|
|
401
410
|
* @param {*} [options] Override http request option.
|
|
402
411
|
* @throws {RequiredError}
|
|
403
412
|
*/
|
|
404
|
-
closeLiveStream(
|
|
405
|
-
return localVarFp.closeLiveStream(liveStreamId, options).then((request) => request(axios, basePath));
|
|
413
|
+
closeLiveStream(requestParameters, options) {
|
|
414
|
+
return localVarFp.closeLiveStream(requestParameters.liveStreamId, options).then((request) => request(axios, basePath));
|
|
406
415
|
},
|
|
407
416
|
/**
|
|
408
417
|
*
|
|
409
418
|
* @summary Tests the network with a request with the size of the bitrate.
|
|
410
|
-
* @param {
|
|
419
|
+
* @param {MediaInfoApiGetBitrateTestBytesRequest} requestParameters Request parameters.
|
|
411
420
|
* @param {*} [options] Override http request option.
|
|
412
421
|
* @throws {RequiredError}
|
|
413
422
|
*/
|
|
414
|
-
getBitrateTestBytes(
|
|
415
|
-
return localVarFp.getBitrateTestBytes(size, options).then((request) => request(axios, basePath));
|
|
423
|
+
getBitrateTestBytes(requestParameters = {}, options) {
|
|
424
|
+
return localVarFp.getBitrateTestBytes(requestParameters.size, options).then((request) => request(axios, basePath));
|
|
416
425
|
},
|
|
417
426
|
/**
|
|
418
427
|
*
|
|
419
428
|
* @summary Gets live playback media info for an item.
|
|
420
|
-
* @param {
|
|
421
|
-
* @param {string} [userId] The user id.
|
|
429
|
+
* @param {MediaInfoApiGetPlaybackInfoRequest} requestParameters Request parameters.
|
|
422
430
|
* @param {*} [options] Override http request option.
|
|
423
431
|
* @throws {RequiredError}
|
|
424
432
|
*/
|
|
425
|
-
getPlaybackInfo(
|
|
426
|
-
return localVarFp.getPlaybackInfo(itemId, userId, options).then((request) => request(axios, basePath));
|
|
433
|
+
getPlaybackInfo(requestParameters, options) {
|
|
434
|
+
return localVarFp.getPlaybackInfo(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
427
435
|
},
|
|
428
436
|
/**
|
|
429
437
|
* For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.
|
|
430
438
|
* @summary Gets live playback media info for an item.
|
|
431
|
-
* @param {
|
|
432
|
-
* @param {string} [userId] The user id.
|
|
433
|
-
* @param {number} [maxStreamingBitrate] The maximum streaming bitrate.
|
|
434
|
-
* @param {number} [startTimeTicks] The start time in ticks.
|
|
435
|
-
* @param {number} [audioStreamIndex] The audio stream index.
|
|
436
|
-
* @param {number} [subtitleStreamIndex] The subtitle stream index.
|
|
437
|
-
* @param {number} [maxAudioChannels] The maximum number of audio channels.
|
|
438
|
-
* @param {string} [mediaSourceId] The media source id.
|
|
439
|
-
* @param {string} [liveStreamId] The livestream id.
|
|
440
|
-
* @param {boolean} [autoOpenLiveStream] Whether to auto open the livestream.
|
|
441
|
-
* @param {boolean} [enableDirectPlay] Whether to enable direct play. Default: true.
|
|
442
|
-
* @param {boolean} [enableDirectStream] Whether to enable direct stream. Default: true.
|
|
443
|
-
* @param {boolean} [enableTranscoding] Whether to enable transcoding. Default: true.
|
|
444
|
-
* @param {boolean} [allowVideoStreamCopy] Whether to allow to copy the video stream. Default: true.
|
|
445
|
-
* @param {boolean} [allowAudioStreamCopy] Whether to allow to copy the audio stream. Default: true.
|
|
446
|
-
* @param {PlaybackInfoDto} [playbackInfoDto] The playback info.
|
|
439
|
+
* @param {MediaInfoApiGetPostedPlaybackInfoRequest} requestParameters Request parameters.
|
|
447
440
|
* @param {*} [options] Override http request option.
|
|
448
441
|
* @throws {RequiredError}
|
|
449
442
|
*/
|
|
450
|
-
getPostedPlaybackInfo(
|
|
451
|
-
return localVarFp.getPostedPlaybackInfo(itemId, userId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, mediaSourceId, liveStreamId, autoOpenLiveStream, enableDirectPlay, enableDirectStream, enableTranscoding, allowVideoStreamCopy, allowAudioStreamCopy, playbackInfoDto, options).then((request) => request(axios, basePath));
|
|
443
|
+
getPostedPlaybackInfo(requestParameters, options) {
|
|
444
|
+
return localVarFp.getPostedPlaybackInfo(requestParameters.itemId, requestParameters.userId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.mediaSourceId, requestParameters.liveStreamId, requestParameters.autoOpenLiveStream, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.enableTranscoding, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.playbackInfoDto, options).then((request) => request(axios, basePath));
|
|
452
445
|
},
|
|
453
446
|
/**
|
|
454
447
|
*
|
|
455
448
|
* @summary Opens a media source.
|
|
456
|
-
* @param {
|
|
457
|
-
* @param {string} [userId] The user id.
|
|
458
|
-
* @param {string} [playSessionId] The play session id.
|
|
459
|
-
* @param {number} [maxStreamingBitrate] The maximum streaming bitrate.
|
|
460
|
-
* @param {number} [startTimeTicks] The start time in ticks.
|
|
461
|
-
* @param {number} [audioStreamIndex] The audio stream index.
|
|
462
|
-
* @param {number} [subtitleStreamIndex] The subtitle stream index.
|
|
463
|
-
* @param {number} [maxAudioChannels] The maximum number of audio channels.
|
|
464
|
-
* @param {string} [itemId] The item id.
|
|
465
|
-
* @param {boolean} [enableDirectPlay] Whether to enable direct play. Default: true.
|
|
466
|
-
* @param {boolean} [enableDirectStream] Whether to enable direct stream. Default: true.
|
|
467
|
-
* @param {OpenLiveStreamDto} [openLiveStreamDto] The open live stream dto.
|
|
449
|
+
* @param {MediaInfoApiOpenLiveStreamRequest} requestParameters Request parameters.
|
|
468
450
|
* @param {*} [options] Override http request option.
|
|
469
451
|
* @throws {RequiredError}
|
|
470
452
|
*/
|
|
471
|
-
openLiveStream(
|
|
472
|
-
return localVarFp.openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, openLiveStreamDto, options).then((request) => request(axios, basePath));
|
|
453
|
+
openLiveStream(requestParameters = {}, options) {
|
|
454
|
+
return localVarFp.openLiveStream(requestParameters.openToken, requestParameters.userId, requestParameters.playSessionId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.itemId, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.alwaysBurnInSubtitleWhenTranscoding, requestParameters.openLiveStreamDto, options).then((request) => request(axios, basePath));
|
|
473
455
|
},
|
|
474
456
|
};
|
|
475
457
|
};
|
|
@@ -533,7 +515,7 @@ class MediaInfoApi extends BaseAPI {
|
|
|
533
515
|
* @memberof MediaInfoApi
|
|
534
516
|
*/
|
|
535
517
|
openLiveStream(requestParameters = {}, options) {
|
|
536
|
-
return MediaInfoApiFp(this.configuration).openLiveStream(requestParameters.openToken, requestParameters.userId, requestParameters.playSessionId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.itemId, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.openLiveStreamDto, options).then((request) => request(this.axios, this.basePath));
|
|
518
|
+
return MediaInfoApiFp(this.configuration).openLiveStream(requestParameters.openToken, requestParameters.userId, requestParameters.playSessionId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.itemId, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.alwaysBurnInSubtitleWhenTranscoding, requestParameters.openLiveStreamDto, options).then((request) => request(this.axios, this.basePath));
|
|
537
519
|
}
|
|
538
520
|
}
|
|
539
521
|
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3
|
+
* Do not edit the class manually.
|
|
4
|
+
*
|
|
5
|
+
* Jellyfin API
|
|
6
|
+
*
|
|
7
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
8
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
|
+
*/
|
|
11
|
+
import type { Configuration } from '../configuration';
|
|
12
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import type { MediaSegmentDtoQueryResult } from '../models';
|
|
15
|
+
import type { MediaSegmentType } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* MediaSegmentsApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const MediaSegmentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary Gets all media segments based on an itemId.
|
|
24
|
+
* @param {string} itemId The ItemId.
|
|
25
|
+
* @param {Array<MediaSegmentType>} [includeSegmentTypes] Optional filter of requested segment types.
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
getItemSegments: (itemId: string, includeSegmentTypes?: Array<MediaSegmentType>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* MediaSegmentsApi - functional programming interface
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const MediaSegmentsApiFp: (configuration?: Configuration) => {
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @summary Gets all media segments based on an itemId.
|
|
39
|
+
* @param {string} itemId The ItemId.
|
|
40
|
+
* @param {Array<MediaSegmentType>} [includeSegmentTypes] Optional filter of requested segment types.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
getItemSegments(itemId: string, includeSegmentTypes?: Array<MediaSegmentType>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaSegmentDtoQueryResult>>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* MediaSegmentsApi - factory interface
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const MediaSegmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @summary Gets all media segments based on an itemId.
|
|
54
|
+
* @param {MediaSegmentsApiGetItemSegmentsRequest} requestParameters Request parameters.
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
getItemSegments(requestParameters: MediaSegmentsApiGetItemSegmentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<MediaSegmentDtoQueryResult>;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Request parameters for getItemSegments operation in MediaSegmentsApi.
|
|
62
|
+
* @export
|
|
63
|
+
* @interface MediaSegmentsApiGetItemSegmentsRequest
|
|
64
|
+
*/
|
|
65
|
+
export interface MediaSegmentsApiGetItemSegmentsRequest {
|
|
66
|
+
/**
|
|
67
|
+
* The ItemId.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof MediaSegmentsApiGetItemSegments
|
|
70
|
+
*/
|
|
71
|
+
readonly itemId: string;
|
|
72
|
+
/**
|
|
73
|
+
* Optional filter of requested segment types.
|
|
74
|
+
* @type {Array<MediaSegmentType>}
|
|
75
|
+
* @memberof MediaSegmentsApiGetItemSegments
|
|
76
|
+
*/
|
|
77
|
+
readonly includeSegmentTypes?: Array<MediaSegmentType>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* MediaSegmentsApi - object-oriented interface
|
|
81
|
+
* @export
|
|
82
|
+
* @class MediaSegmentsApi
|
|
83
|
+
* @extends {BaseAPI}
|
|
84
|
+
*/
|
|
85
|
+
export declare class MediaSegmentsApi extends BaseAPI {
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @summary Gets all media segments based on an itemId.
|
|
89
|
+
* @param {MediaSegmentsApiGetItemSegmentsRequest} requestParameters Request parameters.
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
* @memberof MediaSegmentsApi
|
|
93
|
+
*/
|
|
94
|
+
getItemSegments(requestParameters: MediaSegmentsApiGetItemSegmentsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MediaSegmentDtoQueryResult, any>>;
|
|
95
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import globalAxios from 'axios';
|
|
2
|
+
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Jellyfin API
|
|
12
|
+
*
|
|
13
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
14
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
15
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* MediaSegmentsApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
const MediaSegmentsApiAxiosParamCreator = function (configuration) {
|
|
22
|
+
return {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary Gets all media segments based on an itemId.
|
|
26
|
+
* @param {string} itemId The ItemId.
|
|
27
|
+
* @param {Array<MediaSegmentType>} [includeSegmentTypes] Optional filter of requested segment types.
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
getItemSegments: async (itemId, includeSegmentTypes, options = {}) => {
|
|
32
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
33
|
+
assertParamExists('getItemSegments', 'itemId', itemId);
|
|
34
|
+
const localVarPath = `/MediaSegments/{itemId}`
|
|
35
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
36
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38
|
+
let baseOptions;
|
|
39
|
+
if (configuration) {
|
|
40
|
+
baseOptions = configuration.baseOptions;
|
|
41
|
+
}
|
|
42
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
43
|
+
const localVarHeaderParameter = {};
|
|
44
|
+
const localVarQueryParameter = {};
|
|
45
|
+
// authentication CustomAuthentication required
|
|
46
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
47
|
+
if (includeSegmentTypes) {
|
|
48
|
+
localVarQueryParameter['includeSegmentTypes'] = includeSegmentTypes;
|
|
49
|
+
}
|
|
50
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
52
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
53
|
+
return {
|
|
54
|
+
url: toPathString(localVarUrlObj),
|
|
55
|
+
options: localVarRequestOptions,
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* MediaSegmentsApi - functional programming interface
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
const MediaSegmentsApiFp = function (configuration) {
|
|
65
|
+
const localVarAxiosParamCreator = MediaSegmentsApiAxiosParamCreator(configuration);
|
|
66
|
+
return {
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @summary Gets all media segments based on an itemId.
|
|
70
|
+
* @param {string} itemId The ItemId.
|
|
71
|
+
* @param {Array<MediaSegmentType>} [includeSegmentTypes] Optional filter of requested segment types.
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
*/
|
|
75
|
+
async getItemSegments(itemId, includeSegmentTypes, options) {
|
|
76
|
+
var _a, _b, _c;
|
|
77
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getItemSegments(itemId, includeSegmentTypes, options);
|
|
78
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
79
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MediaSegmentsApi.getItemSegments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
80
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* MediaSegmentsApi - factory interface
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
const MediaSegmentsApiFactory = function (configuration, basePath, axios) {
|
|
89
|
+
const localVarFp = MediaSegmentsApiFp(configuration);
|
|
90
|
+
return {
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @summary Gets all media segments based on an itemId.
|
|
94
|
+
* @param {MediaSegmentsApiGetItemSegmentsRequest} requestParameters Request parameters.
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
getItemSegments(requestParameters, options) {
|
|
99
|
+
return localVarFp.getItemSegments(requestParameters.itemId, requestParameters.includeSegmentTypes, options).then((request) => request(axios, basePath));
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* MediaSegmentsApi - object-oriented interface
|
|
105
|
+
* @export
|
|
106
|
+
* @class MediaSegmentsApi
|
|
107
|
+
* @extends {BaseAPI}
|
|
108
|
+
*/
|
|
109
|
+
class MediaSegmentsApi extends BaseAPI {
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @summary Gets all media segments based on an itemId.
|
|
113
|
+
* @param {MediaSegmentsApiGetItemSegmentsRequest} requestParameters Request parameters.
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
* @memberof MediaSegmentsApi
|
|
117
|
+
*/
|
|
118
|
+
getItemSegments(requestParameters, options) {
|
|
119
|
+
return MediaSegmentsApiFp(this.configuration).getItemSegments(requestParameters.itemId, requestParameters.includeSegmentTypes, options).then((request) => request(this.axios, this.basePath));
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { MediaSegmentsApi, MediaSegmentsApiAxiosParamCreator, MediaSegmentsApiFactory, MediaSegmentsApiFp };
|