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